@univerjs-pro/collaboration-client 0.3.0 → 0.4.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x7011be=_0x312b;(function(_0x2448c2,_0x289c31){const _0x2ec18d=_0x312b,_0x234f7e=_0x2448c2();while(!![]){try{const _0x4ef9c5=parseInt(_0x2ec18d(0x21d))/0x1*(-parseInt(_0x2ec18d(0x4cd))/0x2)+-parseInt(_0x2ec18d(0x2f0))/0x3*(parseInt(_0x2ec18d(0x33d))/0x4)+parseInt(_0x2ec18d(0x1b7))/0x5+parseInt(_0x2ec18d(0x435))/0x6*(parseInt(_0x2ec18d(0x1b1))/0x7)+-parseInt(_0x2ec18d(0x1e7))/0x8*(-parseInt(_0x2ec18d(0x246))/0x9)+-parseInt(_0x2ec18d(0x320))/0xa+parseInt(_0x2ec18d(0x392))/0xb*(-parseInt(_0x2ec18d(0x2ce))/0xc);if(_0x4ef9c5===_0x289c31)break;else _0x234f7e['push'](_0x234f7e['shift']());}catch(_0x2e63c3){_0x234f7e['push'](_0x234f7e['shift']());}}}(_0xf131,0x26d7a));var zs=Object[_0x7011be(0x38b)],Zs=(_0x2c100c,_0x456b6c,_0x56d66d)=>_0x456b6c in _0x2c100c?zs(_0x2c100c,_0x456b6c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56d66d}):_0x2c100c[_0x456b6c]=_0x56d66d,l=(_0x47422b,_0x43f394,_0x6c7130)=>Zs(_0x47422b,typeof _0x43f394!=_0x7011be(0x4d5)?_0x43f394+'':_0x43f394,_0x6c7130);import{createIdentifier as _0x1e5b71,Inject as _0x4f6f98,Disposable as _0xd7d44c,DisposableCollection as _0x45d03e,toDisposable as _0x4b6fbe,IConfigService as _0x516197,ILogService as _0x2f2df5,UserManagerService as _0x16eb3c,UniverInstanceType as _0x223004,IUniverInstanceService as _0x29e7a7,LocaleService as _0x95964d,Optional as _0x59d638,RxDisposable as _0x101c13,Injector as _0x8f002c,Tools as _0x14f99b,ILocalStorageService as _0x594a58,ICommandService as _0x2cea1d,JSONX as _0x42b912,CommandType as _0xba6e30,IPermissionService as _0x28c276,IUndoRedoService as _0x2334b3,sequenceExecute as _0x621390,Rectangle as _0x32f126,debounce as _0x3c0cdf,OnLifecycle as _0x4a01a1,LifecycleStages as _0x268ec2,COLORS as _0x133fd5,ColorKit as _0x146cd6,ThemeService as _0x5d9d21,fromEventSubject as _0x331c20,useDependency as _0x147122,connectInjector as _0xbbe883,Workbook as _0x1b7a0e,isInternalEditorID as _0x1b37cc,LocalUndoRedoService as _0x4b8f0d,IContextService as _0x55e323,DependentOn as _0xc3da8d,Plugin as _0x1cfc3b,IAuthzIoService as _0x485c8a,mergeOverrideWithDependencies as _0x130074}from'@univerjs/core';import{Subject as _0x4339d0,merge as _0x2b5f15,takeUntil as _0x25a74d,BehaviorSubject as _0x2048f5,distinctUntilChanged as _0x4814b2,fromEvent as _0x446249,map as _0x39d5f6,shareReplay as _0x290704,take as _0x4d0f5c,of as _0x1f8bdc,debounceTime as _0x3d52b8,filter as _0x1e07a2,switchMap as _0x396bbc,combineLatest as _0x25e7d9,concatMap as _0x156a35,mapTo as _0x5cdfe1}from'rxjs';import{map as _0x4b1d28,take as _0x577ed3,filter as _0x273b1e,delay as _0x2e63b2,throttleTime as _0x46d884,takeUntil as _0x559853,switchMap as _0x2b4b41}from'rxjs/operators';import{MessageType as _0x5638e0,Tooltip as _0x5d56c6}from'@univerjs/design';import{IBeforeCloseService as _0x3d7ec6,IMessageService as _0x13bf44,INotificationService as _0x4ed61f,useObservable as _0x58f9f3,BuiltInUIPart as _0x23bd16,IUIPartsService as _0x59ba8f}from'@univerjs/ui';import{HTTPService as _0x263986,WebSocketService as _0x3cd3ec,MergeInterceptorFactory as _0x144d61,HTTPRequest as _0x2b95ea,IHTTPImplementation as _0x3aeab2,XHRHTTPImplementation as _0x28fad5,ThresholdInterceptorFactory as _0x5485d7}from'@univerjs/network';import{CollaborationEvent as _0x3edc6c,parseChangesetToProtocol as _0x5ea06f,ISnapshotServerService as _0x2b166c,isTransformMutationFailure as _0x1870ea,isTransformMutationsWithChangesetSuccess as _0x50faaa,ITransformService as _0x49c306,RevisionService as _0xd9ea18,mapDocumentTypeToUniverType as _0x47e8e5,isTransformChangesetsSuccess as _0x571ad7,CompressMutationService as _0x479762,parseProtocolChangeset as _0x3d95ae,SnapshotService as _0x41eb9e,textEncoder as _0x16f5f9,b64DecodeUnicode as _0x5316b9,isTransformMutationsWithChangesetFailure as _0x1e8ba7,UniverCollaborationPlugin as _0x19c1c0}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x544e05}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x1198ee,RichTextEditingMutation as _0x565f33,SetTextSelectionsOperation as _0x30bff4,DocSkeletonManagerService as _0x46bdda}from'@univerjs/docs';import{DocIMEInputManagerService as _0xe82a9,DocStateChangeManagerService as _0x21dbbb,NodePositionConvertToCursor as _0x559cdc,isValidRectRange as _0x585369,NodePositionConvertToRectRange as _0x562558,TEXT_RANGE_LAYER_INDEX as _0xb477f6,SetDocZoomRatioOperation as _0x527e19}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x23d40e,SetSelectionsOperation as _0x49df62,InsertSheetMutation as _0x2abee6,EmptyMutation as _0x64ba06,WorkbookEditablePermission as _0x37edea,RefRangeService as _0x5f205b,EffectRefRangId as _0x217673,handleIRemoveRow as _0x57f03f,handleIRemoveCol as _0x554a8c,handleMoveRange as _0x35b8eb,handleInsertRow as _0x468758,handleInsertRangeMoveRight as _0x393880,handleInsertRangeMoveDown as _0x418883,handleInsertCol as _0x3ad79c,handleDeleteRangeMoveUp as _0x18bdab,handleDeleteRangeMoveLeft as _0x38a975,runRefRangeMutations as _0x140a5c,SetWorksheetActivateCommand as _0x330d5c}from'@univerjs/sheets';import{IRenderManagerService as _0x5d47cb,Shape as _0x1390df,Rect as _0x406574,getColor as _0x409cfa,RegularPolygon as _0x3731ab,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x223d13,Vector2 as _0x25b778}from'@univerjs/engine-render';import{ImageSourceType as _0x5687f1,ImageUploadStatusType as _0x51de88,IImageIoService as _0x934fc7}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x1f6a7e,serializeRangeWithSheet as _0x26b6ee}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x23732c,VIEWPORT_KEY as _0x2ddac5,getCoordByCell as _0x39aa42,getSheetObject as _0xc97df6,SheetPermissionInitController as _0x223460}from'@univerjs/sheets-ui';import _0x193848,{forwardRef as _0x5bcfca,useRef as _0x4907ca,createElement as _0x2ec225,useCallback as _0x309442}from'react';import _0x26e85f from'clsx';import{IRemoteInstanceService as _0xc60c98}from'@univerjs/rpc';import{getAttachHeader as _0x1a079a}from'@univerjs-pro/license';const fn='SNAPSHOT_SERVER_URL_KEY',mn=_0x7011be(0x2cf),gn='SNAPSHOT_URL_KEY',Da=_0x7011be(0x233),Sn=0x7d0,pn=_0x7011be(0x3bb),vn=_0x7011be(0x444),In=_0x7011be(0x46e),En=0x7530,Us='HEARTBEAT_TIMEOUT',Ms=0x4e20,Cn=0x4e20,bn='RETRY_CONNECTING_MAX_COUNT',Tn=0x3,Rn=_0x7011be(0x308),On=0x3e8,Dn=_0x7011be(0x3b4),wn=_0x7011be(0x28d),Pn='LOGIN_URL_KEY',yn='/universer-api/oidc/authpage';var As=(_0xf95158=>(_0xf95158[_0xf95158[_0x7011be(0x1eb)]=0x0]='UNDEFINED',_0xf95158[_0xf95158['OK']=0x1]='OK',_0xf95158[_0xf95158['INTERNAL_ERROR']=0x2]=_0x7011be(0x45b),_0xf95158[_0xf95158[_0x7011be(0x4c1)]=0x3]=_0x7011be(0x4c1),_0xf95158[_0xf95158[_0x7011be(0x407)]=0x4]=_0x7011be(0x407),_0xf95158[_0xf95158[_0x7011be(0x3d1)]=0x5]=_0x7011be(0x3d1),_0xf95158[_0xf95158['ALREADY_EXISTS']=0x6]=_0x7011be(0x3ee),_0xf95158[_0xf95158[_0x7011be(0x1a4)]=0x7]='INVALID_ARGUMENT',_0xf95158[_0xf95158[_0x7011be(0x2ef)]=0x8]=_0x7011be(0x2ef),_0xf95158[_0xf95158[_0x7011be(0x454)]=0x9]=_0x7011be(0x454),_0xf95158[_0xf95158[_0x7011be(0x35a)]=0x1389]=_0x7011be(0x35a),_0xf95158[_0xf95158[_0x7011be(0x17f)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xf95158[_0xf95158['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xf95158[_0xf95158[_0x7011be(0x44a)]=0x1b59]=_0x7011be(0x44a),_0xf95158[_0xf95158[_0x7011be(0x478)]=0x1b5a]=_0x7011be(0x478),_0xf95158[_0xf95158[_0x7011be(0x34e)]=0x1b5b]=_0x7011be(0x34e),_0xf95158[_0xf95158[_0x7011be(0x28a)]=0x1b5c]=_0x7011be(0x28a),_0xf95158[_0xf95158[_0x7011be(0x2b2)]=0x1f41]=_0x7011be(0x2b2),_0xf95158[_0xf95158['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xf95158[_0xf95158['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x7011be(0x4b2),_0xf95158[_0xf95158[_0x7011be(0x42f)]=0x232b]=_0x7011be(0x42f),_0xf95158[_0xf95158[_0x7011be(0x31b)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xf95158[_0xf95158[_0x7011be(0x2c5)]=0x232d]=_0x7011be(0x2c5),_0xf95158[_0xf95158[_0x7011be(0x4b5)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0xf95158[_0xf95158['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x7011be(0x21c),_0xf95158[_0xf95158[_0x7011be(0x4e4)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0xf95158[_0xf95158[_0x7011be(0x479)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xf95158[_0xf95158['UNRECOGNIZED']=-0x1]=_0x7011be(0x309),_0xf95158))(As||{}),H=(_0x367300=>(_0x367300[_0x367300[_0x7011be(0x1e2)]=0x0]=_0x7011be(0x1e2),_0x367300[_0x367300[_0x7011be(0x1a0)]=0x1]=_0x7011be(0x1a0),_0x367300[_0x367300['UNIVER_SHEET']=0x2]=_0x7011be(0x42d),_0x367300[_0x367300['UNIVER_SLIDE']=0x3]=_0x7011be(0x3c1),_0x367300[_0x367300[_0x7011be(0x312)]=0x4]=_0x7011be(0x312),_0x367300[_0x367300[_0x7011be(0x309)]=-0x1]=_0x7011be(0x309),_0x367300))(H||{}),I=(_0x2a4fa3=>(_0x2a4fa3[_0x2a4fa3[_0x7011be(0x4b9)]=0x0]=_0x7011be(0x4b9),_0x2a4fa3[_0x2a4fa3[_0x7011be(0x45f)]=0x1]=_0x7011be(0x45f),_0x2a4fa3[_0x2a4fa3[_0x7011be(0x1b8)]=0x2]=_0x7011be(0x1b8),_0x2a4fa3[_0x2a4fa3[_0x7011be(0x229)]=0x3]='LEAVE',_0x2a4fa3[_0x2a4fa3[_0x7011be(0x17c)]=0x4]=_0x7011be(0x17c),_0x2a4fa3[_0x2a4fa3[_0x7011be(0x29b)]=0x5]=_0x7011be(0x29b),_0x2a4fa3[_0x2a4fa3['RECV']=0x6]=_0x7011be(0x297),_0x2a4fa3[_0x2a4fa3['UNRECOGNIZED']=-0x1]=_0x7011be(0x309),_0x2a4fa3))(I||{}),Vt=(_0x4aed47=>(_0x4aed47[_0x4aed47[_0x7011be(0x2be)]=0x0]=_0x7011be(0x2be),_0x4aed47[_0x4aed47['OK']=0x1]='OK',_0x4aed47[_0x4aed47['FAIL']=0x2]=_0x7011be(0x1fa),_0x4aed47[_0x4aed47[_0x7011be(0x309)]=-0x1]=_0x7011be(0x309),_0x4aed47))(Vt||{}),Ls=(_0x38ef61=>(_0x38ef61[_0x38ef61[_0x7011be(0x469)]=0x0]='Undefined',_0x38ef61[_0x38ef61[_0x7011be(0x3f7)]=0x1]=_0x7011be(0x3f7),_0x38ef61[_0x38ef61[_0x7011be(0x37f)]=0x2]=_0x7011be(0x37f),_0x38ef61[_0x38ef61[_0x7011be(0x268)]=0x3]=_0x7011be(0x268),_0x38ef61[_0x38ef61['UnitSnapshot']=0x4]=_0x7011be(0x2fe),_0x38ef61[_0x38ef61[_0x7011be(0x309)]=-0x1]=_0x7011be(0x309),_0x38ef61))(Ls||{});const L='collaboration-client.config',Nn={};function Un(_0x41160d){const _0x3bfbb5=_0x7011be;var _0x171081,_0x2a2adb,_0x3e4a2b,_0x18c9a0;const _0x162eff=_0x41160d[_0x3bfbb5(0x253)],_0x54c31b=JSON['parse'](_0x162eff);switch(_0x54c31b['cmd']){case I[_0x3bfbb5(0x29b)]:case I[_0x3bfbb5(0x45f)]:{const _0x24cddc=_0x54c31b[_0x3bfbb5(0x29d)];return{..._0x54c31b,'data':_0x24cddc,'cmd':_0x54c31b[_0x3bfbb5(0x318)]};}case I[_0x3bfbb5(0x1b8)]:{const _0x35f5e0=_0x54c31b[_0x3bfbb5(0x425)];return{..._0x54c31b,'data':_0x35f5e0,'cmd':_0x54c31b[_0x3bfbb5(0x318)]};}case I['RECV']:{const _0x5b6854=_0x54c31b['collaMsg'];switch(_0x5b6854[_0x3bfbb5(0x2fb)]){case _0x3edc6c['PERMISSION_REJ']:return{..._0x54c31b,'data':{..._0x5b6854,'data':(_0x171081=_0x5b6854[_0x3bfbb5(0x1fb)])==null?void 0x0:_0x171081['cs']},'cmd':_0x54c31b['cmd']};case _0x3edc6c[_0x3bfbb5(0x324)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':(_0x2a2adb=_0x5b6854[_0x3bfbb5(0x1cd)])==null?void 0x0:_0x2a2adb['cs']},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x4d7)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':(_0x3e4a2b=_0x5b6854[_0x3bfbb5(0x4b6)])==null?void 0x0:_0x3e4a2b['cs']},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x20e)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':(_0x18c9a0=_0x5b6854[_0x3bfbb5(0x38e)])==null?void 0x0:_0x18c9a0['cs']},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c['UPDATE_CURSOR']:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854[_0x3bfbb5(0x177)]},'cmd':_0x54c31b['cmd']};case _0x3edc6c[_0x3bfbb5(0x202)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854['joinEvent']},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c['USERS_LEAVE']:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854[_0x3bfbb5(0x301)]},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x352)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854[_0x3bfbb5(0x22e)]},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c['LIVESHARE_FETCH_OPERATIONS']:case _0x3edc6c[_0x3bfbb5(0x4ab)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854[_0x3bfbb5(0x342)]},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x196)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854[_0x3bfbb5(0x22e)]},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x295)]:return{..._0x54c31b,'data':_0x5b6854,'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x3e9)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854['commentUpdateEvent']},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c['UPDATE_PERMISSION_OBJ']:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854['updatePermissionObjEvent']},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x214)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854[_0x3bfbb5(0x1ea)]},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};default:return _0x54c31b;}}default:return _0x54c31b;}}function Mn(_0x5448e6){const _0x21b571=_0x7011be;switch(_0x5448e6[_0x21b571(0x318)]){case I['HEARTBEAT']:case I[_0x21b571(0x45f)]:return JSON[_0x21b571(0x3ec)]({'cmd':_0x5448e6[_0x21b571(0x318)],'routeKey':_0x5448e6['routeKey']});case I[_0x21b571(0x17c)]:{let _0x24fdd6;switch(_0x5448e6[_0x21b571(0x253)][_0x21b571(0x2fb)]){case _0x3edc6c[_0x21b571(0x17b)]:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x17b)],'updateCursorEvent':_0x5448e6['data'][_0x21b571(0x253)]};break;}case _0x3edc6c[_0x21b571(0x33f)]:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x33f)],'leaveEvent':_0x5448e6[_0x21b571(0x253)]['data']};break;}case _0x3edc6c[_0x21b571(0x202)]:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x202)],'joinEvent':_0x5448e6[_0x21b571(0x253)]['data']};break;}case _0x3edc6c[_0x21b571(0x352)]:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x352)],'liveShareNewHost':_0x5448e6[_0x21b571(0x253)]['data']};break;}case _0x3edc6c['LIVESHARE_OPERATION']:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x4ab)],'liveShareOperation':_0x5448e6[_0x21b571(0x253)][_0x21b571(0x253)]};break;}case _0x3edc6c[_0x21b571(0x196)]:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x196)],'liveShareTerminate':_0x5448e6['data'][_0x21b571(0x253)]};break;}case _0x3edc6c[_0x21b571(0x419)]:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x419)],'liveShareRequestHost':_0x5448e6[_0x21b571(0x253)][_0x21b571(0x253)]};break;}case _0x3edc6c[_0x21b571(0x463)]:{_0x24fdd6={'eventID':_0x3edc6c['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x24fdd6={'eventID':_0x5448e6[_0x21b571(0x253)][_0x21b571(0x2fb)]};}return JSON[_0x21b571(0x3ec)]({'cmd':_0x5448e6[_0x21b571(0x318)],'routeKey':_0x5448e6[_0x21b571(0x289)],'collaMsg':_0x24fdd6});}case I[_0x21b571(0x1b8)]:return JSON[_0x21b571(0x3ec)]({'cmd':_0x5448e6[_0x21b571(0x318)],'routeKey':_0x5448e6[_0x21b571(0x289)],'joinReq':_0x5448e6['data']});case I[_0x21b571(0x229)]:return JSON[_0x21b571(0x3ec)]({'cmd':_0x5448e6[_0x21b571(0x318)],'routeKey':_0x5448e6[_0x21b571(0x289)],'leaveReq':_0x5448e6[_0x21b571(0x253)]});default:throw new Error(_0x21b571(0x206));}}var An=Object[_0x7011be(0x38b)],Ln=Object[_0x7011be(0x24f)],$n=(_0x311a9d,_0x5346c7,_0x165ea7,_0x22ee75)=>{const _0x3787aa=_0x7011be;for(var _0x4d6a9b=_0x22ee75>0x1?void 0x0:_0x22ee75?Ln(_0x5346c7,_0x165ea7):_0x5346c7,_0x48ad53=_0x311a9d[_0x3787aa(0x2db)]-0x1,_0x24123d;_0x48ad53>=0x0;_0x48ad53--)(_0x24123d=_0x311a9d[_0x48ad53])&&(_0x4d6a9b=(_0x22ee75?_0x24123d(_0x5346c7,_0x165ea7,_0x4d6a9b):_0x24123d(_0x4d6a9b))||_0x4d6a9b);return _0x22ee75&&_0x4d6a9b&&An(_0x5346c7,_0x165ea7,_0x4d6a9b),_0x4d6a9b;},Re=(_0x28191d,_0x3ca9fb)=>(_0x12e306,_0x2ec696)=>_0x3ca9fb(_0x12e306,_0x2ec696,_0x28191d);const $s=_0x1e5b71(_0x7011be(0x3b8));function jn(_0xe99f79,_0x518402,_0x56975b){return _0xe99f79+'/'+_0x518402+'/unit/'+_0x56975b+'/new_changes';}let Tt=class extends _0xd7d44c{constructor(_0x4ca663,_0x3f15b7,_0x2ec823,_0x12c19f,_0x5442a5){const _0x17eb02=_0x7011be;super(),this['_http']=_0x4ca663,this[_0x17eb02(0x1ae)]=_0x3f15b7,this[_0x17eb02(0x1c9)]=_0x2ec823,this[_0x17eb02(0x1b4)]=_0x12c19f,this[_0x17eb02(0x26b)]=_0x5442a5;}[_0x7011be(0x231)](_0x2287b2){const _0x59ba64=_0x7011be,_0x2196b9=this[_0x59ba64(0x1ae)][_0x59ba64(0x231)](_0x2287b2);if(!_0x2196b9)throw new Error(_0x59ba64(0x225));const _0x515697=new _0x45d03e(),_0x59cd77=new _0x4339d0();_0x515697[_0x59ba64(0x3cb)](_0x2196b9[_0x59ba64(0x43e)]['subscribe'](_0x1e928b=>_0x59cd77[_0x59ba64(0x40f)](_0x1e928b))),_0x515697[_0x59ba64(0x3cb)](_0x4b6fbe(()=>_0x59cd77[_0x59ba64(0x4e0)]()));const _0x152294=new _0x4339d0();_0x515697[_0x59ba64(0x3cb)](_0x2196b9['error$'][_0x59ba64(0x376)](_0x37482b=>_0x152294[_0x59ba64(0x40f)](_0x37482b))),_0x515697['add'](_0x4b6fbe(()=>_0x152294[_0x59ba64(0x4e0)]()));const _0x36ea04=new _0x4339d0();_0x515697['add'](_0x2196b9['message$'][_0x59ba64(0x376)](_0x4fa25a=>{const _0x4aadb6=_0x59ba64,_0x1b5511=Un(_0x4fa25a);_0x36ea04[_0x4aadb6(0x40f)](_0x1b5511);})),_0x515697['add'](_0x4b6fbe(()=>_0x36ea04[_0x59ba64(0x4e0)]()));let _0x1e9748;const _0x3f631b=()=>{const _0x3f6b9e=_0x59ba64;_0x152294[_0x3f6b9e(0x40f)](new Event(_0x3f6b9e(0x23d))),_0x59cd77[_0x3f6b9e(0x40f)](new CloseEvent(_0x3f6b9e(0x23d))),_0x1e9748[_0x3f6b9e(0x3fb)]();};return _0x1e9748={'memberID':'','close$':_0x59cd77[_0x59ba64(0x1f7)](),'error$':_0x152294[_0x59ba64(0x1f7)](),'open$':_0x2196b9[_0x59ba64(0x1ec)],'message$':_0x36ea04[_0x59ba64(0x1f7)](),'send':_0x5d4576=>{const _0x45544a=_0x59ba64;if(_0x5d4576[_0x45544a(0x318)]===I[_0x45544a(0x17c)]){if(_0x5d4576[_0x45544a(0x253)][_0x45544a(0x2fb)]===_0x3edc6c[_0x45544a(0x3ef)]){this[_0x45544a(0x258)](_0x1e9748,_0x5d4576[_0x45544a(0x253)])[_0x45544a(0x4a1)](_0x2fa5d5=>{const _0x5ce52b=_0x45544a;this[_0x5ce52b(0x1b4)][_0x5ce52b(0x174)](_0x2fa5d5),_0x3f631b();});return;}if(_0x5d4576[_0x45544a(0x253)][_0x45544a(0x2fb)]===_0x3edc6c[_0x45544a(0x1d8)]){const _0x1da208=_0x5d4576[_0x45544a(0x253)];this['_fetchMissChangesets'](_0x1da208)[_0x45544a(0x26e)](_0x57fc9f=>{const _0x5dfec7=_0x45544a;_0x36ea04[_0x5dfec7(0x40f)]({'cmd':I['RECV'],'code':Vt['OK'],'routeKey':_0x1da208[_0x5dfec7(0x253)]['unitID'],'routeType':'','data':{'eventID':_0x3edc6c[_0x5dfec7(0x468)],'data':{'changesets':_0x57fc9f}}});})[_0x45544a(0x4a1)](_0x23baaf=>{const _0x122094=_0x45544a;this[_0x122094(0x1b4)][_0x122094(0x174)](_0x23baaf),_0x3f631b();});return;}}_0x2196b9[_0x45544a(0x4bb)](Mn(_0x5d4576));},'close':()=>{const _0x2e49a0=_0x59ba64;_0x2196b9['close'](),_0x515697[_0x2e49a0(0x326)]();}},_0x1e9748;}async[_0x7011be(0x258)](_0x4bd0c3,_0x347401){const _0x5a4dce=_0x7011be;var _0x4c0d4d,_0x2bd581;const {unitType:_0x4a7067,unitID:_0x30635f,changeset:_0x23392f}=_0x347401[_0x5a4dce(0x253)],_0x2ef972={'unitID':_0x30635f,'memberID':_0x4bd0c3[_0x5a4dce(0x22a)],'type':_0x4a7067,'changeset':_0x5ea06f(_0x23392f)},_0x180221=this[_0x5a4dce(0x1c9)][_0x5a4dce(0x34f)](Dn),_0x3fb725=this[_0x5a4dce(0x1c9)][_0x5a4dce(0x34f)](L),_0x21fa53=jn((_0x2bd581=(_0x4c0d4d=_0x3fb725==null?void 0x0:_0x3fb725['collabSubmitChangesetUrl'])!=null?_0x4c0d4d:_0x180221)!=null?_0x2bd581:wn,_0x4a7067,_0x30635f);try{await this[_0x5a4dce(0x38a)]['post'](_0x21fa53,{'body':_0x2ef972});}catch(_0x4f83ec){throw this['_logService']['error']('[CollaborationSession]',_0x5a4dce(0x2d4)),_0x4f83ec;}}async['_fetchMissChangesets'](_0x1dda6b){const _0xd7805f=_0x7011be,{unitID:_0x2b0cac,from:_0x1c5954,to:_0x4c7e82,unitType:_0x1c7cf6}=_0x1dda6b['data'];return(await this['_snapshotServerService'][_0xd7805f(0x262)]({'metadata':void 0x0},{'unitID':_0x2b0cac,'type':_0x1c7cf6,'from':_0x1c5954,'to':_0x4c7e82}))[_0xd7805f(0x19d)];}};Tt=$n([Re(0x0,_0x4f6f98(_0x263986)),Re(0x1,_0x4f6f98(_0x3cd3ec)),Re(0x2,_0x516197),Re(0x3,_0x2f2df5),Re(0x4,_0x2b166c)],Tt);const xn='collaboration_new_changeset';function Hn(_0x18c190){return JSON['stringify'](_0x18c190)['length'];}class js{constructor(){const _0x44094c=_0x7011be;l(this,_0x44094c(0x283),new _0x4339d0()),l(this,'commentUpdate$',this[_0x44094c(0x283)][_0x44094c(0x1f7)]());}[_0x7011be(0x41e)](_0x5e5858){const _0x4689cf=_0x7011be;this[_0x4689cf(0x283)][_0x4689cf(0x40f)](_0x5e5858);}}var kn=Object[_0x7011be(0x38b)],Bn=Object['getOwnPropertyDescriptor'],Vn=(_0x383d9a,_0x17ed06,_0x4b083d,_0x285777)=>{const _0x252fb1=_0x7011be;for(var _0x38881c=_0x285777>0x1?void 0x0:_0x285777?Bn(_0x17ed06,_0x4b083d):_0x17ed06,_0x277726=_0x383d9a[_0x252fb1(0x2db)]-0x1,_0x5ef37f;_0x277726>=0x0;_0x277726--)(_0x5ef37f=_0x383d9a[_0x277726])&&(_0x38881c=(_0x285777?_0x5ef37f(_0x17ed06,_0x4b083d,_0x38881c):_0x5ef37f(_0x38881c))||_0x38881c);return _0x285777&&_0x38881c&&kn(_0x17ed06,_0x4b083d,_0x38881c),_0x38881c;},os=(_0x44f592,_0x511043)=>(_0x41d1c2,_0x19ab16)=>_0x511043(_0x41d1c2,_0x19ab16,_0x44f592);let ae=class extends _0xd7d44c{constructor(_0x4918ad,_0x2793e6){const _0x4a9fdf=_0x7011be;super(),l(this,_0x4a9fdf(0x1be),new Map()),(this[_0x4a9fdf(0x2c3)]=_0x4918ad,this[_0x4a9fdf(0x4aa)]=_0x2793e6,this[_0x4a9fdf(0x26d)](_0x4b6fbe(_0x2b5f15(this['_univerInstanceService'][_0x4a9fdf(0x2fc)](_0x223004['UNIVER_SHEET'])['pipe'](_0x4b1d28(_0x180a2e=>_0x180a2e[_0x4a9fdf(0x3bf)]())),this[_0x4a9fdf(0x2c3)][_0x4a9fdf(0x2fc)](_0x223004[_0x4a9fdf(0x1a0)])['pipe'](_0x4b1d28(_0x3e6cc8=>_0x3e6cc8[_0x4a9fdf(0x3bf)]())),this['_univerInstanceService'][_0x4a9fdf(0x2fc)](_0x223004[_0x4a9fdf(0x3c1)])['pipe'](_0x4b1d28(_0x4eb0c8=>_0x4eb0c8['getUnitId']())))[_0x4a9fdf(0x376)](_0x5bd838=>this['_removeRoom'](_0x5bd838)))));}[_0x7011be(0x28c)](_0x4812b3){const _0x24cece=_0x7011be;this['_userManagerService'][_0x24cece(0x28c)](_0x4812b3);}[_0x7011be(0x389)](){const _0x105d10=_0x7011be;return this[_0x105d10(0x4aa)][_0x105d10(0x389)]();}['updateMember'](_0x49f8c3,_0x54289b){const _0x11a996=_0x7011be;let _0x5cdc06=this[_0x11a996(0x1be)][_0x11a996(0x3be)](_0x49f8c3);_0x5cdc06||(_0x5cdc06=new Fn(),this[_0x11a996(0x1be)][_0x11a996(0x2e0)](_0x49f8c3,_0x5cdc06)),_0x5cdc06[_0x11a996(0x38c)](_0x54289b);}['removeMember'](_0x582e1a,_0x4f7db3){const _0x31ed8a=_0x7011be,_0x40a642=this[_0x31ed8a(0x1be)][_0x31ed8a(0x3be)](_0x582e1a);_0x40a642&&_0x40a642[_0x31ed8a(0x261)](_0x4f7db3);}['getRoom'](_0x355055){const _0x2fb82e=_0x7011be;return this[_0x2fb82e(0x1be)][_0x2fb82e(0x3be)](_0x355055);}['getMember'](_0x19453a,_0x215d44){const _0x43e406=_0x7011be,_0x23df45=this[_0x43e406(0x1be)]['get'](_0x19453a);if(_0x23df45)return _0x23df45[_0x43e406(0x2a1)](_0x215d44);}[_0x7011be(0x4dc)](_0x4f5c22){const _0x3e2c97=_0x7011be,_0x297524=this[_0x3e2c97(0x1be)][_0x3e2c97(0x3be)](_0x4f5c22);_0x297524&&(_0x297524[_0x3e2c97(0x326)](),this[_0x3e2c97(0x1be)][_0x3e2c97(0x415)](_0x4f5c22));}[_0x7011be(0x326)](){const _0x4096e7=_0x7011be;this[_0x4096e7(0x1be)][_0x4096e7(0x429)](_0x6422c2=>_0x6422c2[_0x4096e7(0x326)]()),this[_0x4096e7(0x1be)][_0x4096e7(0x2d3)]();}};ae=Vn([os(0x0,_0x29e7a7),os(0x1,_0x4f6f98(_0x16eb3c))],ae);class Fn extends _0xd7d44c{constructor(){const _0x3ca2d7=_0x7011be;super(...arguments),l(this,_0x3ca2d7(0x44e),new Map());}['dispose'](){const _0x437855=_0x7011be;this[_0x437855(0x44e)][_0x437855(0x2d3)]();}[_0x7011be(0x38c)](_0x1d0490){const _0xee0acf=_0x7011be;this['_members'][_0xee0acf(0x2e0)](_0x1d0490[_0xee0acf(0x22a)],_0x1d0490);}[_0x7011be(0x261)](_0x122253){const _0x221f3c=_0x7011be;this[_0x221f3c(0x44e)][_0x221f3c(0x415)](_0x122253);}['getMember'](_0x3e931d){const _0x48e158=_0x7011be;return this[_0x48e158(0x44e)][_0x48e158(0x3be)](_0x3e931d);}}var Wn=Object['defineProperty'],Gn=Object[_0x7011be(0x24f)],Yn=(_0x18d92c,_0x222862,_0x434284,_0x5ec5d3)=>{const _0x449f15=_0x7011be;for(var _0x491710=_0x5ec5d3>0x1?void 0x0:_0x5ec5d3?Gn(_0x222862,_0x434284):_0x222862,_0xb83d0e=_0x18d92c[_0x449f15(0x2db)]-0x1,_0xeb0991;_0xb83d0e>=0x0;_0xb83d0e--)(_0xeb0991=_0x18d92c[_0xb83d0e])&&(_0x491710=(_0x5ec5d3?_0xeb0991(_0x222862,_0x434284,_0x491710):_0xeb0991(_0x491710))||_0x491710);return _0x5ec5d3&&_0x491710&&Wn(_0x222862,_0x434284,_0x491710),_0x491710;},J=(_0x2698a6,_0x49c139)=>(_0x171f53,_0x447a81)=>_0x49c139(_0x171f53,_0x447a81,_0x2698a6),G=(_0x137075=>(_0x137075[_0x137075['IDLE']=0x0]='IDLE',_0x137075[_0x137075[_0x7011be(0x36a)]=0x1]=_0x7011be(0x36a),_0x137075[_0x137075['OFFLINE']=0x2]=_0x7011be(0x2ca),_0x137075[_0x137075['ONLINE']=0x3]='ONLINE',_0x137075))(G||{});let Rt=class extends _0x101c13{constructor(_0x593dc5,_0x2bcc59,_0x2bd2b1,_0x25d641,_0x50b537,_0x23b879,_0x3045be,_0xbc37e5,_0x3236d6,_0x2e8928){const _0x3fdcb6=_0x7011be;super(),l(this,'_sessionStatus$',new _0x2048f5(0x0)),l(this,'sessionStatus$',this['_sessionStatus$'][_0x3fdcb6(0x1f7)]()),l(this,_0x3fdcb6(0x251),new _0x4339d0()),l(this,_0x3fdcb6(0x27f),this[_0x3fdcb6(0x251)][_0x3fdcb6(0x1f7)]()),l(this,_0x3fdcb6(0x337)),l(this,_0x3fdcb6(0x33a)),l(this,_0x3fdcb6(0x4a7)),l(this,_0x3fdcb6(0x38d),!0x1),l(this,_0x3fdcb6(0x412),null),(this[_0x3fdcb6(0x330)]=_0x593dc5,this['_logService']=_0x2bd2b1,this[_0x3fdcb6(0x45d)]=_0x25d641,this[_0x3fdcb6(0x398)]=_0x50b537,this[_0x3fdcb6(0x1c9)]=_0x23b879,this['_localeService']=_0x3045be,this[_0x3fdcb6(0x328)]=_0xbc37e5,this['_commentService']=_0x3236d6,this[_0x3fdcb6(0x25c)]=_0x2e8928,this[_0x3fdcb6(0x38d)]=!!this[_0x3fdcb6(0x25c)],_0x2bcc59['pipe'](_0x25a74d(this[_0x3fdcb6(0x3f3)]))['subscribe'](_0x409212=>{const _0x522dcf=_0x3fdcb6;var _0x294ebb;typeof _0x409212>'u'||(this[_0x522dcf(0x337)]=_0x409212,_0x409212?(this[_0x522dcf(0x200)](_0x409212),this[_0x522dcf(0x33a)]=_0x409212[_0x522dcf(0x20f)][_0x522dcf(0x376)](_0x5f1d75=>{const _0x43e9fb=_0x522dcf;_0x5f1d75[_0x43e9fb(0x289)]===this[_0x43e9fb(0x330)]&&this[_0x43e9fb(0x1a6)](_0x5f1d75);})):(this[_0x522dcf(0x29f)](),this[_0x522dcf(0x414)][_0x522dcf(0x40f)](0x2),(_0x294ebb=this[_0x522dcf(0x33a)])==null||_0x294ebb[_0x522dcf(0x416)](),this[_0x522dcf(0x33a)]=null));}),this[_0x3fdcb6(0x26d)](this[_0x3fdcb6(0x45d)]['registerOnClose'](()=>{const _0x2f53a8=_0x3fdcb6;var _0xcf85d7;(_0xcf85d7=this[_0x2f53a8(0x337)])==null||_0xcf85d7[_0x2f53a8(0x4bb)]({'cmd':I[_0x2f53a8(0x229)],'data':{'roomID':this[_0x2f53a8(0x330)]}});})));}get[_0x7011be(0x20c)](){const _0x2237c3=_0x7011be;return this[_0x2237c3(0x414)][_0x2237c3(0x2d5)]();}[_0x7011be(0x34b)](){const _0x509921=_0x7011be;var _0x477f01,_0x490c94;return(_0x490c94=(_0x477f01=this[_0x509921(0x337)])==null?void 0x0:_0x477f01[_0x509921(0x22a)])!=null?_0x490c94:null;}['dispose'](){const _0x5b8378=_0x7011be;super[_0x5b8378(0x326)](),this['dispose$'][_0x5b8378(0x40f)](),this[_0x5b8378(0x3f3)][_0x5b8378(0x4e0)]();}['close'](){const _0x4e4486=_0x7011be;var _0x419e57,_0x34ab32;this[_0x4e4486(0x29f)](),(_0x419e57=this[_0x4e4486(0x337)])==null||_0x419e57[_0x4e4486(0x4bb)]({'cmd':I[_0x4e4486(0x229)],'data':{'roomID':this[_0x4e4486(0x330)]}}),(_0x34ab32=this['_socket'])==null||_0x34ab32[_0x4e4486(0x3fb)](),this[_0x4e4486(0x251)][_0x4e4486(0x4e0)](),this[_0x4e4486(0x414)][_0x4e4486(0x4e0)](),this[_0x4e4486(0x326)]();}[_0x7011be(0x1a6)](_0xb36002){const _0x3feb36=_0x7011be;_0xb36002[_0x3feb36(0x318)]===I[_0x3feb36(0x1b8)]?this[_0x3feb36(0x404)](_0xb36002):_0xb36002[_0x3feb36(0x318)]===I[_0x3feb36(0x297)]&&this['_onRecvEvent'](_0xb36002);}['_joinRoom'](_0x75ed9e){const _0x5dbbfa=_0x7011be;this['_sessionStatus$'][_0x5dbbfa(0x40f)](0x1),_0x75ed9e[_0x5dbbfa(0x4bb)]({'cmd':I['JOIN'],'routeKey':this[_0x5dbbfa(0x330)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5dbbfa(0x330)]}]}});}['_onJoinRoomEvent'](_0x40b7e7){const _0x4c97e4=_0x7011be;var _0x2251c9;if(_0x40b7e7[_0x4c97e4(0x35f)]===Vt[_0x4c97e4(0x1fa)]){this[_0x4c97e4(0x398)][_0x4c97e4(0x2ee)]({'type':_0x5638e0[_0x4c97e4(0x3a8)],'content':this[_0x4c97e4(0x2f8)]['t'](_0x4c97e4(0x3f4))}),this[_0x4c97e4(0x414)][_0x4c97e4(0x40f)](0x2);return;}this[_0x4c97e4(0x414)][_0x4c97e4(0x40f)](0x3);const _0x569688=(_0x2251c9=_0x40b7e7[_0x4c97e4(0x253)][_0x4c97e4(0x3af)][this['_unitID']])==null?void 0x0:_0x2251c9[_0x4c97e4(0x2d7)];_0x569688&&_0x569688[_0x4c97e4(0x429)](_0x33cdef=>this[_0x4c97e4(0x328)][_0x4c97e4(0x38c)](this[_0x4c97e4(0x330)],_0x33cdef));}[_0x7011be(0x176)](_0x16c4c1){const _0x44e642=_0x7011be;try{const _0x202c31=_0x16c4c1[_0x44e642(0x253)];switch(_0x202c31[_0x44e642(0x2fb)]){case _0x3edc6c[_0x44e642(0x202)]:this[_0x44e642(0x3f2)](_0x202c31),this['_event$']['next'](_0x202c31);break;case _0x3edc6c[_0x44e642(0x33f)]:this[_0x44e642(0x224)](_0x202c31),this[_0x44e642(0x251)]['next'](_0x202c31);break;case _0x3edc6c[_0x44e642(0x324)]:this[_0x44e642(0x203)](),this[_0x44e642(0x4b8)](),this[_0x44e642(0x251)][_0x44e642(0x40f)](_0x202c31);break;case _0x3edc6c[_0x44e642(0x295)]:this[_0x44e642(0x1b4)][_0x44e642(0x174)](_0x44e642(0x448)+JSON['stringify'](_0x202c31)),this[_0x44e642(0x251)][_0x44e642(0x40f)](_0x202c31);break;case _0x3edc6c[_0x44e642(0x3e9)]:this[_0x44e642(0x48f)][_0x44e642(0x41e)](_0x202c31['data']),this['_event$'][_0x44e642(0x40f)](_0x202c31);break;default:this[_0x44e642(0x251)]['next'](_0x202c31);}}catch(_0x38938f){this[_0x44e642(0x1b4)][_0x44e642(0x174)](_0x38938f,_0x16c4c1);}}[_0x7011be(0x3f2)](_0x1f4957){const _0x558d50=_0x7011be;this[_0x558d50(0x328)][_0x558d50(0x38c)](this['_unitID'],_0x1f4957['data']);}[_0x7011be(0x224)](_0x3a6bf8){const _0x1423b5=_0x7011be;this[_0x1423b5(0x328)][_0x1423b5(0x261)](this[_0x1423b5(0x330)],_0x3a6bf8[_0x1423b5(0x253)][_0x1423b5(0x22a)]);}async['send'](_0x18fa8f,_0x216a67){const _0x443323=_0x7011be;if(this[_0x443323(0x20c)]!==0x3||!this[_0x443323(0x337)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x18fa8f[_0x443323(0x2fb)]===_0x3edc6c[_0x443323(0x3ef)]&&(this[_0x443323(0x25b)](),this[_0x443323(0x2ec)](_0x18fa8f)),this[_0x443323(0x337)][_0x443323(0x4bb)]({'cmd':I[_0x443323(0x17c)],'routeKey':_0x216a67,'routeType':'','data':_0x18fa8f});}catch(_0x25cf50){this[_0x443323(0x1b4)]['error'](_0x25cf50);}}['_scheduleCollaborationTimeoutTimer'](){const _0x229829=_0x7011be;var _0x259728;this[_0x229829(0x4a7)]=window[_0x229829(0x42a)](()=>{const _0x5f55a9=_0x229829;this[_0x5f55a9(0x4a7)]=null,this['_messageService']['show']({'type':_0x5638e0[_0x5f55a9(0x270)],'content':this[_0x5f55a9(0x2f8)]['t'](_0x5f55a9(0x2bf))});},(_0x259728=this['_configService'][_0x229829(0x34f)](Us))!=null?_0x259728:Ms);}['_clearCollaborationTimeoutTimer'](){const _0x1d8d30=_0x7011be;this[_0x1d8d30(0x4a7)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x1d8d30(0x4a7)]=null);}[_0x7011be(0x2ec)](_0x33ec5b){const _0x32a8d5=_0x7011be;if(!this['_shouldReportTelemetry'])return;const {data:_0x5c997a}=_0x33ec5b,{unitID:_0x20627a,changeset:_0x2c7fdc}=_0x5c997a,{mutations:_0x15ace7,type:_0x3e626f}=_0x2c7fdc;this[_0x32a8d5(0x412)]={'unitId':_0x20627a,'type':_0x3e626f,'startTime':performance[_0x32a8d5(0x240)](),'stopTime':0x0,'duration':0x0,'size':Hn(_0x15ace7)};}[_0x7011be(0x203)](){const _0x5f3694=_0x7011be;if(this[_0x5f3694(0x38d)]){if(!this[_0x5f3694(0x412)]){this[_0x5f3694(0x1b4)][_0x5f3694(0x174)](_0x5f3694(0x273),_0x5f3694(0x1e8));return;}this[_0x5f3694(0x412)][_0x5f3694(0x3c8)]=performance[_0x5f3694(0x240)](),this['_telemetryInfo'][_0x5f3694(0x1af)]=this[_0x5f3694(0x412)][_0x5f3694(0x3c8)]-this[_0x5f3694(0x412)]['startTime'],this['_telemetryService'][_0x5f3694(0x2dd)](xn,this[_0x5f3694(0x412)]),this[_0x5f3694(0x412)]=null;}}[_0x7011be(0x29f)](){const _0xac1766=_0x7011be;this[_0xac1766(0x412)]=null;}};Rt=Yn([J(0x2,_0x2f2df5),J(0x3,_0x3d7ec6),J(0x4,_0x13bf44),J(0x5,_0x516197),J(0x6,_0x4f6f98(_0x95964d)),J(0x7,_0x4f6f98(ae)),J(0x8,_0x4f6f98(js)),J(0x9,_0x59d638(_0x544e05))],Rt);var Kn=Object['defineProperty'],Xn=Object[_0x7011be(0x24f)],Jn=(_0x3e639e,_0x55cd10,_0x4c0103,_0x441769)=>{const _0x15063e=_0x7011be;for(var _0x2fc807=_0x441769>0x1?void 0x0:_0x441769?Xn(_0x55cd10,_0x4c0103):_0x55cd10,_0x1ce7f0=_0x3e639e[_0x15063e(0x2db)]-0x1,_0xc9a733;_0x1ce7f0>=0x0;_0x1ce7f0--)(_0xc9a733=_0x3e639e[_0x1ce7f0])&&(_0x2fc807=(_0x441769?_0xc9a733(_0x55cd10,_0x4c0103,_0x2fc807):_0xc9a733(_0x2fc807))||_0x2fc807);return _0x441769&&_0x2fc807&&Kn(_0x55cd10,_0x4c0103,_0x2fc807),_0x2fc807;},de=(_0x573325,_0x42da99)=>(_0x3c9ee0,_0x36ac43)=>_0x42da99(_0x3c9ee0,_0x36ac43,_0x573325);let ce=class extends _0xd7d44c{constructor(_0x54cfa0,_0x4ffd12,_0x487efc,_0x4f92f6,_0x574a2f,_0xaef51c){const _0x3e5571=_0x7011be;super(),l(this,_0x3e5571(0x183),new _0x2048f5(void 0x0)),l(this,_0x3e5571(0x2dc),this[_0x3e5571(0x183)][_0x3e5571(0x1f7)]()),l(this,_0x3e5571(0x356),null),l(this,'_sessions',new Map()),l(this,_0x3e5571(0x45c),new _0x2048f5(G[_0x3e5571(0x35d)])),l(this,_0x3e5571(0x294),this['_status$'][_0x3e5571(0x1f7)]()),l(this,_0x3e5571(0x486),!0x1),l(this,_0x3e5571(0x236)),l(this,'_retryCount',0x0),l(this,_0x3e5571(0x3d7)),l(this,'_timeoutTimer'),(this[_0x3e5571(0x47c)]=_0x54cfa0,this[_0x3e5571(0x2f8)]=_0x4ffd12,this['_messageService']=_0x487efc,this[_0x3e5571(0x1b4)]=_0x4f92f6,this['_configService']=_0x574a2f,this[_0x3e5571(0x311)]=_0xaef51c,this[_0x3e5571(0x3e8)]());}get[_0x7011be(0x337)](){const _0x1001f2=_0x7011be;return this['_socket$'][_0x1001f2(0x2d5)]();}[_0x7011be(0x3e8)](){const _0x22b63e=_0x7011be;this['_listenToOfflineEvent'](),this[_0x22b63e(0x31e)]();}[_0x7011be(0x326)](){const _0x17ca10=_0x7011be;super[_0x17ca10(0x326)](),this[_0x17ca10(0x263)][_0x17ca10(0x429)](_0x4ef4d8=>_0x4ef4d8[_0x17ca10(0x326)]()),this['_sessions'][_0x17ca10(0x2d3)](),this[_0x17ca10(0x45c)][_0x17ca10(0x4e0)]();}async['requireSession'](_0x4bdfa2){const _0x6afe38=_0x7011be;if(this['_sessions']['has'](_0x4bdfa2))return this[_0x6afe38(0x263)][_0x6afe38(0x3be)](_0x4bdfa2);this[_0x6afe38(0x302)]();const _0x2852b4=this['_injector']['createInstance'](Rt,_0x4bdfa2,this[_0x6afe38(0x183)][_0x6afe38(0x1f7)]());return this[_0x6afe38(0x263)][_0x6afe38(0x2e0)](_0x4bdfa2,_0x2852b4),_0x2852b4;}[_0x7011be(0x3d4)](_0x4cc127){const _0x1f7cc9=_0x7011be;var _0x5e2515;const _0x117652=this['_sessions']['get'](_0x4cc127);_0x117652&&(this[_0x1f7cc9(0x263)][_0x1f7cc9(0x415)](_0x4cc127),_0x117652['close']()),this['_sessions'][_0x1f7cc9(0x43c)]||(_0x5e2515=this['_socket'])==null||_0x5e2515[_0x1f7cc9(0x3fb)]();}[_0x7011be(0x375)](){const _0x56c8dc=_0x7011be;this[_0x56c8dc(0x487)]=0x0,this[_0x56c8dc(0x236)]!=null&&(clearTimeout(this[_0x56c8dc(0x236)]),this['_retryConnectingTimer']=null),this[_0x56c8dc(0x495)]();}[_0x7011be(0x3a4)](){const _0x573886=_0x7011be;var _0x9a833f,_0x41e8c6;const _0x22d064=this[_0x573886(0x1c9)][_0x573886(0x34f)](pn),_0x2d79e3=this[_0x573886(0x1c9)][_0x573886(0x34f)](L),_0x46e39b=(_0x41e8c6=(_0x9a833f=_0x2d79e3==null?void 0x0:_0x2d79e3[_0x573886(0x3f5)])!=null?_0x9a833f:_0x22d064)!=null?_0x41e8c6:vn,_0x32d6a9=this[_0x573886(0x311)][_0x573886(0x231)](_0x46e39b);return this[_0x573886(0x356)]=_0x32d6a9,_0x32d6a9;}[_0x7011be(0x302)](){const _0x45e7ac=_0x7011be;var _0xdd57f2,_0x2604f1;try{const _0x43093a=(_0x2604f1=(_0xdd57f2=this[_0x45e7ac(0x337)])!=null?_0xdd57f2:this[_0x45e7ac(0x356)])!=null?_0x2604f1:this['_createSocket']();if(_0x43093a){const _0x3594c6=_0x43093a[_0x45e7ac(0x4bb)];_0x43093a[_0x45e7ac(0x4bb)]=_0x5aa801=>(this[_0x45e7ac(0x3cd)](),_0x3594c6['apply'](_0x43093a,[_0x5aa801])),_0x43093a[_0x45e7ac(0x20f)][_0x45e7ac(0x376)](_0x59e9cc=>this[_0x45e7ac(0x291)](_0x43093a,_0x59e9cc)),_0x43093a[_0x45e7ac(0x18e)][_0x45e7ac(0x185)](_0x577ed3(0x1))['subscribe'](_0x588404=>this[_0x45e7ac(0x1b4)][_0x45e7ac(0x174)](_0x45e7ac(0x27c),_0x588404)),_0x43093a['open$'][_0x45e7ac(0x185)](_0x577ed3(0x1))[_0x45e7ac(0x376)](()=>{const _0x36a2ca=_0x45e7ac;this[_0x36a2ca(0x30b)](_0x43093a);}),_0x43093a['close$']['pipe'](_0x577ed3(0x1))[_0x45e7ac(0x376)](_0x345abd=>{const _0x4f49d2=_0x45e7ac;this[_0x4f49d2(0x1b4)][_0x4f49d2(0x368)](_0x4f49d2(0x1e1),_0x4f49d2(0x3da),_0x345abd),this['_onConnectionFailed']();});}}catch(_0x2c3254){this[_0x45e7ac(0x1b4)][_0x45e7ac(0x174)](_0x2c3254),this[_0x45e7ac(0x446)]();}}[_0x7011be(0x30b)](_0x57ff44){const _0x3fccdc=_0x7011be;this[_0x3fccdc(0x1b4)][_0x3fccdc(0x368)](_0x3fccdc(0x1e1),'socket\x20open.'),_0x57ff44[_0x3fccdc(0x4bb)]({'cmd':I[_0x3fccdc(0x45f)]}),this['_rescheduleHeartbeat']();}[_0x7011be(0x439)](){const _0x538eca=_0x7011be;window[_0x538eca(0x441)](_0x538eca(0x3e3),()=>this[_0x538eca(0x4ce)]());}[_0x7011be(0x4ce)](){const _0x2a7543=_0x7011be;this[_0x2a7543(0x486)]=!0x1,this[_0x2a7543(0x356)]=null,this[_0x2a7543(0x45c)][_0x2a7543(0x40f)](G[_0x2a7543(0x2ca)]),this[_0x2a7543(0x183)][_0x2a7543(0x40f)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}[_0x7011be(0x446)](){const _0x39f2b0=_0x7011be;var _0x8e1203;this[_0x39f2b0(0x4ce)](),this[_0x39f2b0(0x487)]<((_0x8e1203=this[_0x39f2b0(0x1c9)][_0x39f2b0(0x34f)](bn))!=null?_0x8e1203:Tn)?(this['_messageService'][_0x39f2b0(0x2ee)]({'key':_0x39f2b0(0x1aa),'type':_0x5638e0['Warning'],'content':this[_0x39f2b0(0x2f8)]['t']('session.will-retry')}),this[_0x39f2b0(0x495)]()):this[_0x39f2b0(0x398)]['show']({'key':_0x39f2b0(0x1aa),'type':_0x5638e0[_0x39f2b0(0x270)],'content':this[_0x39f2b0(0x2f8)]['t'](_0x39f2b0(0x1ac))});}[_0x7011be(0x31e)](){const _0x45b3f4=_0x7011be,_0x283b5c=()=>{const _0x2ce230=_0x312b;this[_0x2ce230(0x337)]||this[_0x2ce230(0x375)]();},_0x5eb947=()=>{const _0x4d955c=_0x312b;this[_0x4d955c(0x337)]||document[_0x4d955c(0x455)]==='hidden'||this['reconnect']();};window[_0x45b3f4(0x441)](_0x45b3f4(0x32c),_0x283b5c),document[_0x45b3f4(0x441)]('visibilitychange',_0x5eb947);}[_0x7011be(0x495)](){const _0x5b221c=_0x7011be;var _0x579835;const _0x4643f7=this['_retryCount'],_0x54b5a0=this[_0x5b221c(0x1c9)][_0x5b221c(0x34f)](L),_0x288345=_0x4643f7===0x0?0x0:((_0x579835=_0x54b5a0==null?void 0x0:_0x54b5a0[_0x5b221c(0x4d2)])!=null?_0x579835:Cn)*0x2**_0x4643f7;this[_0x5b221c(0x236)]=window[_0x5b221c(0x42a)](()=>{const _0x54afdb=_0x5b221c;clearTimeout(this[_0x54afdb(0x236)]),this['_retryConnectingTimer']=null,this[_0x54afdb(0x302)]();},_0x288345),this[_0x5b221c(0x487)]+=0x1;}[_0x7011be(0x291)](_0x4289b2,_0x42e38e){const _0x11ccd7=_0x7011be,{cmd:_0x42cc39}=_0x42e38e;_0x42cc39===I[_0x11ccd7(0x45f)]&&!this['_socketReady']&&(_0x4289b2['memberID']=_0x42e38e[_0x11ccd7(0x253)][_0x11ccd7(0x22a)],this[_0x11ccd7(0x183)][_0x11ccd7(0x40f)](_0x4289b2),this[_0x11ccd7(0x45c)][_0x11ccd7(0x40f)](G[_0x11ccd7(0x493)]),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x42cc39===I[_0x11ccd7(0x29b)]&&this[_0x11ccd7(0x4ad)](),this[_0x11ccd7(0x3cd)]();}[_0x7011be(0x3cd)](){const _0x9a3f24=_0x7011be;var _0x4dbf45;this[_0x9a3f24(0x430)](),this[_0x9a3f24(0x3d7)]=window['setTimeout'](()=>this[_0x9a3f24(0x230)](),(_0x4dbf45=this[_0x9a3f24(0x1c9)]['getConfig'](In))!=null?_0x4dbf45:En);}[_0x7011be(0x230)](){const _0x3338a6=_0x7011be;this['_socket']['send']({'cmd':I[_0x3338a6(0x29b)]}),this[_0x3338a6(0x41b)]();}[_0x7011be(0x41b)](){const _0x3d365a=_0x7011be;var _0x1735bd;this[_0x3d365a(0x3ba)]=window['setTimeout'](()=>this[_0x3d365a(0x446)](),(_0x1735bd=this[_0x3d365a(0x1c9)]['getConfig'](Us))!=null?_0x1735bd:Ms);}[_0x7011be(0x430)](){const _0x471b17=_0x7011be;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x471b17(0x3d7)]),this[_0x471b17(0x3d7)]=null);}['_clearTimeoutTimer'](){const _0x29a9be=_0x7011be;this[_0x29a9be(0x3ba)]!=null&&(clearTimeout(this[_0x29a9be(0x3ba)]),this[_0x29a9be(0x3ba)]=null);}};ce=Jn([de(0x0,_0x4f6f98(_0x8f002c)),de(0x1,_0x4f6f98(_0x95964d)),de(0x2,_0x13bf44),de(0x3,_0x2f2df5),de(0x4,_0x516197),de(0x5,$s)],ce);var qn=Object[_0x7011be(0x38b)],zn=Object[_0x7011be(0x24f)],Zn=(_0x4398e7,_0x59ce6b,_0x2693f5,_0x3d11b8)=>{const _0x252425=_0x7011be;for(var _0x433d3b=_0x3d11b8>0x1?void 0x0:_0x3d11b8?zn(_0x59ce6b,_0x2693f5):_0x59ce6b,_0x2931de=_0x4398e7[_0x252425(0x2db)]-0x1,_0x49a965;_0x2931de>=0x0;_0x2931de--)(_0x49a965=_0x4398e7[_0x2931de])&&(_0x433d3b=(_0x3d11b8?_0x49a965(_0x59ce6b,_0x2693f5,_0x433d3b):_0x49a965(_0x433d3b))||_0x433d3b);return _0x3d11b8&&_0x433d3b&&qn(_0x59ce6b,_0x2693f5,_0x433d3b),_0x433d3b;},_t=(_0x205cf9,_0xe249b2)=>(_0x4964c7,_0x1a13e2)=>_0xe249b2(_0x4964c7,_0x1a13e2,_0x205cf9);let Ze=class{constructor(_0x1b76c6,_0x4d3935,_0x57a23d){const _0x1eb033=_0x7011be;this[_0x1eb033(0x47c)]=_0x1b76c6,this['_transformService']=_0x4d3935,this['_renderManagerService']=_0x57a23d;}[_0x7011be(0x3a2)](_0x349a1b){const _0x534380=_0x7011be;this[_0x534380(0x4d3)](_0x349a1b),this[_0x534380(0x3c6)](_0x349a1b);}[_0x7011be(0x179)](_0x568ffd){const _0x243e50=_0x7011be,{unitID:_0x46a75d}=_0x568ffd,_0x29b71b=this[_0x243e50(0x18b)][_0x243e50(0x2f5)](_0x46a75d)['with'](_0xe82a9),{redoCache:_0x170593}=_0x29b71b['getUndoRedoMutationParamsCache']();if(_0x170593[_0x243e50(0x2db)]===0x0)return _0x568ffd;let _0x29b635=_0x14f99b[_0x243e50(0x271)](_0x568ffd[_0x243e50(0x459)][0x0]);for(let _0x4f119a=0x0;_0x4f119a<_0x170593['length'];_0x4f119a++){const _0x2c4b63={'id':_0x243e50(0x450),'params':{..._0x170593[_0x4f119a]}},_0x371531=this['_transformService'][_0x243e50(0x47b)](_0x29b635,_0x2c4b63,!0x1);if(_0x1870ea(_0x371531))throw _0x371531['error'];_0x29b635=_0x371531[_0x243e50(0x385)];}return{..._0x14f99b['deepClone'](_0x568ffd),'mutations':[_0x29b635]};}[_0x7011be(0x4d3)](_0x972e16){const _0x305059=_0x7011be,{unitID:_0x135165}=_0x972e16,_0x210d1c=this['_renderManagerService'][_0x305059(0x2f5)](_0x135165)[_0x305059(0x204)](_0xe82a9),{undoCache:_0x242a41,redoCache:_0x3554ea}=_0x210d1c[_0x305059(0x1dc)]();if(_0x242a41[_0x305059(0x2db)]===0x0||_0x3554ea[_0x305059(0x2db)]===0x0)return;const _0x44d51e=[],_0x5e33f2=[];let _0xb46685=_0x14f99b[_0x305059(0x271)](_0x972e16[_0x305059(0x459)][0x0]),_0x23fb06=_0x14f99b[_0x305059(0x271)](_0x972e16[_0x305059(0x459)][0x0]);for(let _0x10c92d=_0x242a41[_0x305059(0x2db)]-0x1;_0x10c92d>=0x0;_0x10c92d--){const _0x3cc0b9={'id':_0x305059(0x450),'params':{..._0x242a41[_0x10c92d]}},_0x2ee2f2={'id':_0x305059(0x450),'params':{..._0x3554ea[_0x10c92d]}},_0x1818c3=this[_0x305059(0x26f)]['transformMutation'](_0xb46685,_0x3cc0b9,!0x1),_0x56abf9=this[_0x305059(0x26f)][_0x305059(0x47b)](_0x23fb06,_0x2ee2f2,!0x1);if(_0x1870ea(_0x1818c3))throw _0x1818c3[_0x305059(0x174)];if(_0x1870ea(_0x56abf9))throw _0x56abf9[_0x305059(0x174)];_0x44d51e[_0x305059(0x466)](_0x1818c3[_0x305059(0x1d5)][_0x305059(0x329)]),_0x5e33f2[_0x305059(0x466)](_0x56abf9[_0x305059(0x1d5)][_0x305059(0x329)]),_0xb46685=_0x1818c3[_0x305059(0x385)],_0x23fb06=_0x56abf9[_0x305059(0x385)];}_0x210d1c['setUndoRedoMutationParamsCache']({'undoCache':_0x44d51e,'redoCache':_0x5e33f2});}[_0x7011be(0x3c6)](_0x21c51e){const _0x5afcb8=_0x7011be,{unitID:_0x2a7daa}=_0x21c51e,_0x227996=this[_0x5afcb8(0x18b)]['getRenderById'](_0x2a7daa)[_0x5afcb8(0x204)](_0xe82a9),_0x381b30=_0x227996['getActiveRange']();if(_0x381b30==null)return;const _0x3c4f65=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x21c51e[_0x5afcb8(0x363)],'actions':null,'textRanges':[_0x381b30]}}],_0xa10ff0=this[_0x5afcb8(0x26f)][_0x5afcb8(0x37b)](_0x21c51e,_0x3c4f65);if(!_0x50faaa(_0xa10ff0))throw _0xa10ff0['error'];const _0x3cf0f5=_0xa10ff0[_0x5afcb8(0x1d5)][0x0][_0x5afcb8(0x329)]['textRanges'];Array[_0x5afcb8(0x383)](_0x3cf0f5)&&_0x3cf0f5['length']&&_0x227996[_0x5afcb8(0x496)](_0x3cf0f5[0x0]);}};Ze=Zn([_t(0x0,_0x4f6f98(_0x8f002c)),_t(0x1,_0x49c306),_t(0x2,_0x5d47cb)],Ze);var Qn=Object[_0x7011be(0x38b)],er=Object[_0x7011be(0x24f)],tr=(_0x4378cf,_0x5d52e6,_0x1cda95,_0x331bd3)=>{const _0xc86abc=_0x7011be;for(var _0x22777f=_0x331bd3>0x1?void 0x0:_0x331bd3?er(_0x5d52e6,_0x1cda95):_0x5d52e6,_0x24f6b8=_0x4378cf[_0xc86abc(0x2db)]-0x1,_0x450e1b;_0x24f6b8>=0x0;_0x24f6b8--)(_0x450e1b=_0x4378cf[_0x24f6b8])&&(_0x22777f=(_0x331bd3?_0x450e1b(_0x5d52e6,_0x1cda95,_0x22777f):_0x450e1b(_0x22777f))||_0x22777f);return _0x331bd3&&_0x22777f&&Qn(_0x5d52e6,_0x1cda95,_0x22777f),_0x22777f;},Oe=(_0x3c1fae,_0xbb9939)=>(_0x1199d6,_0x5b9360)=>_0xbb9939(_0x1199d6,_0x5b9360,_0x3c1fae);let D=class extends _0xd7d44c{constructor(_0x51aaec,_0x484064,_0x4553fd,_0x475e76,_0x490d04){const _0x4a3eb8=_0x7011be;super(),l(this,_0x4a3eb8(0x3aa),new Map()),l(this,_0x4a3eb8(0x2e3),new Map()),l(this,'_disabled',!0x1),(this[_0x4a3eb8(0x1c9)]=_0x51aaec,this[_0x4a3eb8(0x464)]=_0x484064,this['_beforeCloseService']=_0x4553fd,this[_0x4a3eb8(0x2f8)]=_0x475e76,this[_0x4a3eb8(0x4c8)]=_0x490d04,this[_0x4a3eb8(0x4d6)]());}['disableLocalCache'](){const _0x5c5c0b=_0x7011be;this[_0x5c5c0b(0x266)]=!0x0;}[_0x7011be(0x3b2)](){const _0x4002f7=_0x7011be;this[_0x4002f7(0x266)]=!0x1;}[_0x7011be(0x326)](){const _0x3386a2=_0x7011be;this[_0x3386a2(0x4d0)]()['then'](()=>super[_0x3386a2(0x326)]());}async['loadOfflineData'](_0x586c7d){const _0x5e7b44=_0x7011be;return this['_disabled']?null:this[_0x5e7b44(0x464)][_0x5e7b44(0x260)](as(_0x586c7d));}async['saveOfflineData'](_0x2bec35,_0x2e3602){const _0x3c9d3a=_0x7011be;return!!this['_localStorageService'][_0x3c9d3a(0x35e)](_0x2bec35,_0x2e3602);}[_0x7011be(0x39a)](_0x4b76de,_0x21655f,_0xb956f6,_0x213367){const _0x38c355=_0x7011be,_0x2338b6=this[_0x38c355(0x4c8)][_0x38c355(0x334)](_0x4b76de);this[_0x38c355(0x3aa)]['set'](_0x4b76de,{'unitID':_0x4b76de,'type':_0x21655f,'awaitingChangeset':_0xb956f6,'mutations':_0x213367,'rev':_0x2338b6}),this[_0x38c355(0x2e3)][_0x38c355(0x436)](_0x4b76de)||this[_0x38c355(0x386)](_0x4b76de);}[_0x7011be(0x386)](_0xf2d841){const _0xbc56bf=_0x7011be,_0x324951=this['_getSaveTimeout']();_0x324951===0x0?this[_0xbc56bf(0x300)](_0xf2d841):this[_0xbc56bf(0x2e3)][_0xbc56bf(0x2e0)](_0xf2d841,setTimeout(()=>this[_0xbc56bf(0x300)](_0xf2d841),_0x324951));}[_0x7011be(0x4e5)](){const _0x358334=_0x7011be;var _0x47b7ff;return(_0x47b7ff=this[_0x358334(0x1c9)]['getConfig'](Rn))!=null?_0x47b7ff:On;}['_saveCache'](_0x499ad3){const _0x1ba20e=_0x7011be,_0x4c12aa=this[_0x1ba20e(0x2e3)][_0x1ba20e(0x3be)](_0x499ad3);return _0x4c12aa!==void 0x0&&window['clearTimeout'](_0x4c12aa),this['_localStorageService']['setItem'](as(_0x499ad3),this[_0x1ba20e(0x3aa)]['get'](_0x499ad3))[_0x1ba20e(0x26e)](()=>this[_0x1ba20e(0x2e3)][_0x1ba20e(0x415)](_0x499ad3));}async[_0x7011be(0x4d0)](){const _0x4d1b9a=_0x7011be,_0x35753b=[];this[_0x4d1b9a(0x2e3)][_0x4d1b9a(0x429)]((_0x40ee5a,_0x58514f)=>{const _0x1b6fb1=_0x4d1b9a;window[_0x1b6fb1(0x351)](_0x40ee5a),_0x35753b[_0x1b6fb1(0x1c4)](this[_0x1b6fb1(0x300)](_0x58514f)[_0x1b6fb1(0x26e)](()=>{const _0x1a9d1d=_0x1b6fb1;this[_0x1a9d1d(0x2e3)][_0x1a9d1d(0x415)](_0x58514f);}));}),await Promise[_0x4d1b9a(0x350)](_0x35753b);}[_0x7011be(0x4d6)](){const _0x607885=_0x7011be;this[_0x607885(0x26d)](this[_0x607885(0x45d)]['registerBeforeClose'](()=>{const _0x36d03b=_0x607885;if(this[_0x36d03b(0x2e3)][_0x36d03b(0x43c)])return this[_0x36d03b(0x2f8)]['t'](_0x36d03b(0x187));}));}};function _0x312b(_0x49904b,_0x15565f){const _0xf13147=_0xf131();return _0x312b=function(_0x312b5f,_0x4ae738){_0x312b5f=_0x312b5f-0x174;let _0xfe5917=_0xf13147[_0x312b5f];return _0xfe5917;},_0x312b(_0x49904b,_0x15565f);}D=tr([Oe(0x0,_0x516197),Oe(0x1,_0x594a58),Oe(0x2,_0x3d7ec6),Oe(0x3,_0x4f6f98(_0x95964d)),Oe(0x4,_0x4f6f98(_0xd9ea18))],D);function as(_0x222712){return'unit-cache-'+_0x222712;}var sr=Object[_0x7011be(0x38b)],ir=Object[_0x7011be(0x24f)],nr=(_0x44510c,_0x1fc967,_0x521c9f,_0x2308a3)=>{const _0x28cdf5=_0x7011be;for(var _0x2650ba=_0x2308a3>0x1?void 0x0:_0x2308a3?ir(_0x1fc967,_0x521c9f):_0x1fc967,_0x56a5d0=_0x44510c[_0x28cdf5(0x2db)]-0x1,_0x5cb8fb;_0x56a5d0>=0x0;_0x56a5d0--)(_0x5cb8fb=_0x44510c[_0x56a5d0])&&(_0x2650ba=(_0x2308a3?_0x5cb8fb(_0x1fc967,_0x521c9f,_0x2650ba):_0x5cb8fb(_0x2650ba))||_0x2650ba);return _0x2308a3&&_0x2650ba&&sr(_0x1fc967,_0x521c9f,_0x2650ba),_0x2650ba;},ut=(_0x3f54f9,_0x9deb04)=>(_0x52de98,_0x1a1b75)=>_0x9deb04(_0x52de98,_0x1a1b75,_0x3f54f9);function rr(_0x606bc4){const _0x133bee=_0x7011be,{unitID:_0x3beb9b,mutations:_0x51b2b2}=_0x606bc4;return{'unitId':_0x3beb9b,'subUnitId':_0x51b2b2[0x0][_0x133bee(0x329)][_0x133bee(0x30f)]};}let Qe=class{constructor(_0x4b9ff3,_0x96243f,_0x118a81){const _0x3097bb=_0x7011be;this[_0x3097bb(0x47c)]=_0x4b9ff3,this[_0x3097bb(0x26f)]=_0x96243f,this[_0x3097bb(0x3ac)]=_0x118a81;}[_0x7011be(0x250)](_0x6bedff){const _0x509f1c=_0x7011be;var _0x299ded,_0x5a34c1,_0x113336,_0x4f0180;const _0x4724bb=this[_0x509f1c(0x47c)][_0x509f1c(0x3be)](_0x23d40e),{unitId:_0x882239,subUnitId:_0x3690ca}=rr(_0x6bedff),_0x53ce5b=_0x4724bb[_0x509f1c(0x367)](_0x882239)[_0x509f1c(0x489)](),_0x223fba=(_0x5a34c1=(_0x299ded=this[_0x509f1c(0x3ac)]['getUnit'](_0x882239))==null?void 0x0:_0x299ded[_0x509f1c(0x23c)]())==null?void 0x0:_0x5a34c1[_0x509f1c(0x3ff)]();if(_0x53ce5b[_0x509f1c(0x2db)]===0x0||!_0x882239||!_0x3690ca)return;const _0x35d72e=[{'id':_0x49df62['id'],'params':{'unitId':_0x882239,'subUnitId':_0x223fba,'selections':_0x14f99b[_0x509f1c(0x271)](_0x53ce5b)}}],_0x1b49de=this['_transformService'][_0x509f1c(0x37b)](_0x6bedff,_0x35d72e);if(!_0x50faaa(_0x1b49de))throw _0x1b49de[_0x509f1c(0x174)];const _0x570ae8=(_0x4f0180=(_0x113336=_0x1b49de[_0x509f1c(0x1d5)][0x0])==null?void 0x0:_0x113336[_0x509f1c(0x329)])==null?void 0x0:_0x4f0180[_0x509f1c(0x39b)];Array[_0x509f1c(0x383)](_0x570ae8)&&_0x570ae8[_0x509f1c(0x2db)]&&this[_0x509f1c(0x47c)][_0x509f1c(0x3be)](_0x2cea1d)[_0x509f1c(0x431)](_0x49df62['id'],{'unitId':_0x882239,'subUnitId':_0x223fba,'selections':_0x570ae8});}};Qe=nr([ut(0x0,_0x4f6f98(_0x8f002c)),ut(0x1,_0x49c306),ut(0x2,_0x29e7a7)],Qe);const nt=_0x1e5b71(_0x7011be(0x1c7));function _0xf131(){const _0x14c2d4=['_timeoutTimer','COLLAB_WEB_SOCKET_URL','_name','c2Prime','get','getUnitId','xlink:href','UNIVER_SLIDE','_compressMutationService','conflict.content','_collabCursorController','off-line-single_clip0_910_343','_transformPreviousActiveRange','getDocRanges','stopTime','_getAPIPrefix','socketService','add','_lockTransition','_rescheduleHeartbeat','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','sendChangesetTimeout','currentColor','UNAUTHENTICATED','0\x200\x2017\x2016','_schedule','closeSession','session','_handleHeartbeatEvent','_sendHeartbeatTimer','authzUrl','hide','socket\x20close','colorChannel1','interceptor','values','_awaitingChangeset','target','_refRangeService','[CollaborationState]:\x20apply\x20error!','className','offline','override','_transformStack','onTransformChange$','getUnitOnRev','_initEventListeners','COMMENT_UPDATE','moveTo','getUnitStatus$','stringify','getRangePointData','ALREADY_EXISTS','SUBMIT_CHANGESET','_transformIMECache','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_onUserJoin','dispose$','session.room-full','collabWebSocketUrl','_drawRectRange','HttpImport','patch','[DataLoaderController]','_type','close','selection','fetchMiss','newValue','getSheetId','url(#$1','_onRemoteRejected','_removeClearOtherTimer','loadOfflineData','_onJoinRoomEvent','_initCloseConn','saveImage','NOT_FOUND','/universer-api/authz','_hideTimer','x-univer-host','_entityInit$','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_localCacheService','_showConflictNotification','next','_undoStacks','[CollaborationEntity]','_telemetryInfo','trim','_sessionStatus$','delete','unsubscribe','saveSnapshot','_unitStatus','LIVESHARE_REQUEST_HOST','_substituteRedoStack','_waitForHeartbeatResponse','_shapes','_assignedColors','onCommentUpdate','_handleHover','onTransformIME','enableAuthServer','_send','div','getViewport','joinRsp','flatMap','cursorInfo$','UniverIcon','forEach','setTimeout','VIEW_MAIN','_getSendChangesetTimeout','UNIVER_SHEET','_initModules','LICENSE_IMPORT_SIZE_EXCEEDED','_clearHeartbeatTimer','executeCommand','row','call','list','318gUIAOl','has','DEFAULT_FILE_NAME','Starting','_listenToOfflineEvent','onRemoteAck','addObject','size','[PendingState]:\x20received\x20acknowledgement.','close$','onTransformRemoteChangesetByIMECache','_clearLocalCache','addEventListener','resourceIDs','unitId\x20is\x20not\x20found','ws://127.0.0.1:8000/universer-api/comb/connect','auth.needGotoLoginAlert','_onConnectionFailed','/role','save\x20fail\x20reason\x20is\x20','children','APPLY_REJECT','replace','hasOwnProperty','registerRenderModule','_members','_getCtorByUniverType','doc.mutation.rich-text-editing','_eventUnsubscribe','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_getDownloadEndpointURL','COMPLETION_FINISHED','visibilityState','/resources','replaceTextRanges','univer-online-status','mutations','_cursorShapes','INTERNAL_ERROR','_status$','_beforeCloseService','onStateChange','HELLO','triggerDblclick','prototype','[OfflineState]:\x20received\x20changeset.','LIVESHARE_FETCH_OPERATIONS','_localStorageService','_redoStacks','unshift','width','PSEUDO_FETCH_MISSING_RESULT','Undefined','[UniverCollaborationClientPlugin]','BASE64','/allowed','_createInitialStateImpl','HEARTBEAT_INTERVAL','/collaborator','/object/','skeleton','_substituteUndoStack','_color','onMissedChangesetFetched','Ready','title','registerHTTPInterceptor','APPLY_NON_SEQUENTIAL_REVISION','YUUMI_SUBSCRIPTION_NOT_FOUND','max','transformMutation','_injector','cursorInfo','_getSignURL','getSheetBlock','_sendingTimer','black','top','on-line-single','ranges','toggleOnline','_socketReady','_retryCount','_anchorDot','getCurrentSelections','pushState','subunit','_permissionService','{fileID}','_state','_commentService','ERROR_IMAGE','getSkeleton','backgroundColor','ONLINE','[OfflineState]:\x20received\x20acknowledgement.','_tryReconnect','setActiveRange','snapshotServerUrl','onlineStatusIcon','image/jpeg','incrementRevOfUnit','_getCurrentRevision','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','post','href','location','userID','catch','unknown','\x20to\x20','includes','setShapeProps','_transformUndoredo','_collaborationTimeoutTimer','_collaborationSessionService','collabStatus.conflict','_userManagerService','LIVESHARE_OPERATION','_clearUndo','_clearTimeoutTimer','_startDocCollabCursor','M0\x200H16V16H0z','url(#on-line-single_clip0_910_349)','addObjects','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_transitionLocked','_remoteChangesetQueue','YUUMI_UNABLE_LOAD_URL','newCsEvent','type','_clearCollaborationTimeoutTimer','UNKNOWN_CMD','univerjs-icon\x20univerjs-icon-','send','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','PERMISSION_REJ','[SyncedState]:\x20received\x20acknowledgement.','registerComponent','fillRule','PERMISSION_DENIED','UNIVER_COLLABORATION_CLIENT_PLUGIN','_updateStatus','copyFileMeta','labelPosition','url','getTypeOfUnitAdded$','_revisionService','_updateSubUnitFromURLParams','_handleJoinEvent','_hovered','AUTHZ_URL_KEY','201466xcyryB','_onOffline','[PendingState]:\x20received\x20rejection.','exhaustSavingTask','getAncestorScale','retryConnectingInterval','_transformUndoRedoStack','currentTheme$','symbol','_setupBeforeClosingHandler','NEW_CHANGESETS','_sheetTransformSelectionsService','_handleLeaveEvent','sheetId','_replayCachedMutations','_removeRoom','getRelativeToViewportCoord','withCredentials','_handleEvent','complete','_createHandler','_getUploadFileURL','objectType','YUUMI_RATE_OVER_LIMIT','_getSaveTimeout','error','fillText','_onRecvEvent','updateCursorEvent','objects','transformRemoteChangeset','originalMeta','UPDATE_CURSOR','INGEST','encodeURIComponent','&to=','SNAPSHOT_INVALID_SNAPSHOT','_transformRemoteChangesetByIMECache','random','isEditing','_socket$','CONFLICT','pipe','reduce','collaboration-client.offline-data-not-saved','PENDING','save','startColumn','_renderManagerService','getImage','color','error$','fetching\x20missing\x20changesets\x20from\x20','reverse','awaitingChangeset','findNodePositionByCharIndex','allowed','NOT_COLLAB','getCurrent','LIVESHARE_TERMINATE','_collabSessionService','arc','failed\x20to\x20apply\x20missed\x20changesets!','_clearScheduledTask','_draw','AWAITING','changesets','restore','#fff','UNIVER_DOC','urlChange$','_acknowledgedAwaitingChangeset','OTHER_CLIENTS_EDITING','INVALID_ARGUMENT','onRendered','_onCombEvent','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','isPermissionRej','textRanges','collaboration-session-retry','_docTransformIMECacheService','session.connection-failed','conflict','_ws','duration','_scene','20279lrGOtY','fetchThroughInterceptors','getOwnPropertySymbols','_logService','none','icon','828785uqbRNd','JOIN','_collaborationPaused','min','UPDATE_PERMISSION_OBJ','resize','synced','_roomMembers','_collabCursorState$','bottom','_onCursorDelete','method','deleteCollaborator','push','collaboratorID','revision','univer-pro.collaboration-client.single-active-unit-service','_onFetchMissResult','_configService','onlineStatusTitle','createInstance','startRow','csAckEvent','body','Error\x20on\x20receiving\x20event','actions','onMouseMove','_state$','assign','_loadDoc','m2Prime','requireSession','slice','FETCH_MISSING','_clearOtherTimers','use','putCollaborators','getUndoRedoMutationParamsCache','font','_waitCount','_anchor','propertyIsEnumerable','[CollaborationSessionService]','UNIVER_UNKNOWN','_unitOnClients','indexOf','transformUndoRedo','_heartbeatTimer','16WpWRdy','telemetry\x20info\x20is\x20not\x20initialized','FETCH_MISS','shouldCloseConn','UNDEFINED','open$','_online','DeleteRangeMoveLeftCommandId','toggleOffline','text','&assign=','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_getAPIPrefixPath','find','FileId','_init','asObservable','_onRefRangeChange','defIds','FAIL','permissionRejEvent','_range','_change$','0\x200\x2016\x2016','getImageSourceCache','_joinRoom','parse','USERS_ENTER','_stopTelemetryCollaborationNewChangeset','with','split','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','?url=','name','history','makeDirty','_getMergeRange','sessionStatus','pluginName','CHANGESET_REJ','message$','getVpScrollXYInfoByPosToVp','_context','currentSkeleton$','/-/object/list','SHOULD_CLOSE_CONN','image/png','result','_sheetSkeletonManagerService','onlyLocal','collabStatus.synced','baseRev','update','YUUMI_URL_COL_OUT_OF_RANGE','1PITAxm','requestParams','#FFF','_httpService','drawWith','collabStatus.fetchMiss','getFocusedUnit','_onUserLeave','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','idSuffix','tag','getTime','LEAVE','memberID','unload','_pendingMutations','conflict.title','liveShareNewHost','roomMembers$','_sendHeartbeat','createSocket','_decreaseWaiting','SEND_CHANGESET_TIMEOUT','getUnitType','_updateState','_retryConnectingTimer','_initMergeInterceptor','collabStatus.offline','collabCursorState$','Unknown\x20user','clearInterval','getActiveSheet','connection\x20error','_colorAssignService','put','now','collabStatus.syncing','engine','roles','_scheduleClearOtherTimer','saveChangeset','1400931qUQmCA','_docSkeletonManagerService','objectID','_config','resend','getInterceptPoints','_textBubble','_onConflict','_checkMissing','getOwnPropertyDescriptor','transformSelections','_event$','image/gif','data','fillStyle','[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.','_getLoginPath','transformChangesets','_submitChangeset','Univer','unit','_scheduleCollaborationTimeoutTimer','_telemetryService','_onRemoteChangeset','toString','syncEditingCollabCursor','getItem','removeMember','fetchMissingChangesets','_sessions','POST','src','_disabled','collab-text-range-','UnitEmbedded','_startCollaboration','disableLocalCache','_snapshotServerService','rev','disposeWithMe','then','_transformService','Error','deepClone','createElement','[CollaborationSession]','initWorkbookPermissionChange','some','setParam','storage','roomMembers','_getSheetObject','_cursors','getParam','[CollaborationSessionService]:\x20socket\x20error','entries','_labelPosition','event$','_queuedRemoteChangesets','_notificationService','onSendChangeset','_commentUpdate$','getUnhiddenWorksheets','_unlockTransition','listRoles','searchParams','_removeCollabCursors','routeKey','APPLY_PERMISSION_DENIED','_ensureSubject','setCurrentUser','/universer-api/comb','...','onRemoteRej','_transformSelections','_onMessage','ACTIVE_UNIT_EVENT_CHANNEL','downloadEndpointUrl','status$','MSG_FOR_ERROR','_refreshCollabCursors','RECV','awaiting','_registerRenderDependencies','_getSnapshotAPIPrefix','HEARTBEAT','disposeUnit','infoRsp','permission.content','_throwTelemetryCollaborationNewChangeset','_exhaustRemoteChangesetQueue','getMember','RemoveColCommandId','_onLocalMutation','image/jpg','fromCollab','pending','_cursor','height','_isPermissionRej','compose','_lastPointer','string','/-/object/-/batch_allowed','defs','map','_drawTextRange','appendMutation','CONNECTOR_DATA_TOO_LARGE','headers','onCommandExecuted','transformStack\x20failed!','_themeService','SYNCED','_roomMembers$','_HTTPService','_loadSheet','responseType','_hover','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','UNKNOWN_CODE','session.collaboration-timeout','uploadFileServerUrl','1em','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_univerInstanceService','_initResize','LICENSE_DISTRO_REJECTED','_commandService','path','[FetchMissState]','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','OFFLINE','_applyRemoteChangeset','RemoveRowCommandId','AWAITING_WITH_PENDING','12PMEGOL','/universer-api/snapshot','_toggleOnline','getMergeData','/universer-api/snapshot/','clear','submit\x20changeset\x20error!','getValue','every','members','onPointerLeave$','evenodd','jiqing500','length','socket$','capture','svg','onMissingChangesets','set','startsWith','univer-online-status-title','_saveTaskMap','_singleActiveUnitService','onTransformSelections','_updateCollabCursors','/rev/','displayName','subscribeEvent','hovered','?size=','_startTelemetryCollaborationNewChangeset','onSyncEditingCollabCursor','show','TOO_MANY_REQUESTS','66wrYjuW','_updateURLWithCurrentState','fetch_missing','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_entities','getRenderById','_docSyncEditingCollabCursorService','resolve','_localeService','_onRemoteACK','_updateLocalCache','eventID','getTypeOfUnitDisposed$','gold400','UnitSnapshot','encode','_saveCache','leaveEvent','_tryEnsureSocket','change$','onload','_clearRedo','localeService','_docTransformSelectionsService','LOCAL_CACHE_INTERVAL','UNRECOGNIZED','onPointerEnter$','_onConnectionOpen','lineTo','verdancy600','MUTATION','subUnitId','_createInitialState','_socketService','UNIVER_PROJECT','loadDoc','_handler','_scheduleHeartbeat','pauseCollaboration','translate(.97)','cmd','COMPRESS_MUTATION_SEND','collaboration.single-unit.warning','LICENSE_EXPORT_SIZE_EXCEEDED','_updateLocalCursor','_getUndoStack','_listenToOnlineEvent','status','505660DWnDOx','getCollabCursors$','_imageSourceCache','json','CHANGESET_ACK','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose','InsertRowCommandId','_memberService','params','_registerDependencies','replaceState','online','_undoRedoService','onRemoteChangeset','_colorIndex','_unitID','reject','setAlpha','NO_OTHER_CLIENTS_EDITING','getCurrentRevOfUnit','removeParam','updateCollaborator','_socket','_incrementRevisionNumber','measureText','_socketMessageSubscription','create','enableSingleActiveInstanceLock','29656kpcLyQ','setConfig','USERS_LEAVE','_initStatusComponent','_disableEditing','liveShareOperation','COMPRESS_MUTATION_APPLY','key','_initCommandExecutedListener','toRgbString','enableOfflineEditing','_session','setWaitCount','_backgroundColor','getMemberID','collaborators','[PendingState]:\x20unhandled\x20univer\x20type:\x20','APPLY_REVISION_CONFILICT','getConfig','all','clearTimeout','LIVESHARE_NEW_HOST','_getScale','getCollabEntity$','on-line-single_clip0_910_349','_candidateSocket','_urlService','_syncEditingCollabCursor','substring','CHANGESET_REVISION_CONFILICT','round','editingUnit','IDLE','setItem','code','_replaceFileID','state','attrs','unitID','sessionStatus$','concat','_scheduleTimestamp','getWorkbookSelections','debug','onlineStatus','JOINING','unitId','_setupSubUnitSync','_selfUnitIDs','registerRefRange','createCollaborator','getResourcesRequest','/block/','popstate','getOffsetConfig','extend','reconnect','subscribe','_id','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','from','editing\x20status\x20changed\x20to','transformMutationsWithChangeset','state$','rgba(255,\x20255,\x20255,\x200.01)','getCollabEntity','HttpExport','_startSheetCollabCursor','univer-online-status-icon','blue400','isArray','uni.network.url-service','m1Prime','_scheduleSaving','[OfflineState]:\x20received\x20rejection.','readAsDataURL','getCurrentUser','_http','defineProperty','updateMember','_shouldReportTelemetry','csRejEvent','objectActions','isActive','getSheetBySheetId','1728221KXYCsw','filter','generateRandomId','init','function','_uiPartsService','_messageService','_executeRemoteChangeset','updateOfflineData','selections','updatePermissionPoint','_onCursorUpdate','_toggleOffline','_render','onStarting','snapshot','transformIMECache','transform','_createSocket','purple300','transformByState','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Warning','_getRedoStack','_cachedData','_initRequestHeader','_instanceService','_getAnchorBounding','collab-client.tooltip.reconnect','roomInfos','setInterval','assignAColorForMemberID','enableLocalCache','_cursorInfo$','COLLAB_SUBMIT_CHANGESET_URL','&source=','fill','/unit/','univer-pro.collaboration-client-socket-service','origin'];_0xf131=function(){return _0x14c2d4;};return _0xf131();}var xs=(_0x2c544f=>(_0x2c544f[_0x2c544f[_0x7011be(0x333)]=0x0]=_0x7011be(0x333),_0x2c544f[_0x2c544f[_0x7011be(0x1a3)]=0x1]=_0x7011be(0x1a3),_0x2c544f))(xs||{});const cs=0x7530,hs=_0x7011be(0x292);class or extends _0xd7d44c{constructor(){const _0x3654fe=_0x7011be;super(),l(this,_0x3654fe(0x377),_0x14f99b[_0x3654fe(0x394)]()),l(this,'_selfUnitIDs',new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x3654fe(0x1e6),null),l(this,_0x3654fe(0x1d9),new Map()),l(this,_0x3654fe(0x418),new Map()),this[_0x3654fe(0x1f6)]();}['dispose'](){const _0x4e24ee=_0x7011be;super[_0x4e24ee(0x326)](),this['_clearOtherTimers'][_0x4e24ee(0x429)]((_0x37aa7f,_0x56c2c6)=>this['_removeClearOtherTimer'](_0x56c2c6)),this[_0x4e24ee(0x1e6)]&&window[_0x4e24ee(0x23b)](this[_0x4e24ee(0x1e6)]);}[_0x7011be(0x3eb)](_0x3ef02c){const _0xd0681f=_0x7011be;return this[_0xd0681f(0x28b)](_0x3ef02c)['pipe'](_0x4814b2());}[_0x7011be(0x35c)](_0x1fbc36){const _0x2c4323=_0x7011be;this[_0x2c4323(0x36d)][_0x2c4323(0x43c)]===0x0&&this['_scheduleHeartbeat'](),this[_0x2c4323(0x36d)][_0x2c4323(0x3cb)](_0x1fbc36),this[_0x2c4323(0x422)]({'type':0x0,'memberID':this[_0x2c4323(0x377)],'unitIDs':[_0x1fbc36],'isForwarded':!0x1});}[_0x7011be(0x29c)](_0x36c21f){const _0x2a06f8=_0x7011be;this[_0x2a06f8(0x36d)][_0x2a06f8(0x415)](_0x36c21f),this['_selfUnitIDs'][_0x2a06f8(0x43c)]===0x0&&this['_heartbeatTimer']&&window[_0x2a06f8(0x23b)](this[_0x2a06f8(0x1e6)]);}[_0x7011be(0x1f6)](){const _0x1fe930=_0x7011be;this[_0x1fe930(0x26d)](_0x4b6fbe(_0x446249(window,_0x1fe930(0x277))[_0x1fe930(0x376)](_0x4dd6df=>{const _0x252fc0=_0x1fe930;if(_0x4dd6df[_0x252fc0(0x344)]!==hs||!_0x4dd6df[_0x252fc0(0x3fe)])return;const _0x4ab76b=JSON[_0x252fc0(0x201)](_0x4dd6df['newValue']);this[_0x252fc0(0x4df)](_0x4ab76b);}))),window['addEventListener'](_0x1fe930(0x22b),()=>this[_0x1fe930(0x422)]({'type':0x1,'memberID':this[_0x1fe930(0x377)],'unitIDs':Array[_0x1fe930(0x379)](this[_0x1fe930(0x36d)])}));}[_0x7011be(0x4df)](_0x2797c2){const _0x2c4134=_0x7011be;switch(_0x2797c2[_0x2c4134(0x4b7)]){case 0x0:this['_handleJoinEvent'](_0x2797c2);break;case 0x1:this[_0x2c4134(0x4d9)](_0x2797c2);break;case 0x2:this[_0x2c4134(0x3d6)](_0x2797c2);break;}}[_0x7011be(0x4ca)](_0x201959){const _0x5764d5=_0x7011be,{unitIDs:_0x5de2d3,memberID:_0x2a8656,isForwarded:_0x33333d}=_0x201959;_0x5de2d3[_0x5764d5(0x429)](_0x1f85ea=>{const _0x1fc9e8=_0x5764d5;if(!_0x33333d&&this[_0x1fc9e8(0x1e3)][_0x1fc9e8(0x436)](_0x1f85ea)&&this[_0x1fc9e8(0x28b)](_0x1f85ea)[_0x1fc9e8(0x40f)](0x1),!this[_0x1fc9e8(0x1e3)][_0x1fc9e8(0x436)](_0x1f85ea)||!this[_0x1fc9e8(0x1e3)]['get'](_0x1f85ea)[_0x1fc9e8(0x436)](_0x2a8656)){const _0x13d784=this[_0x1fc9e8(0x1e3)][_0x1fc9e8(0x3be)](_0x1f85ea)||new Set();_0x13d784[_0x1fc9e8(0x3cb)](_0x2a8656),this[_0x1fc9e8(0x1e3)][_0x1fc9e8(0x2e0)](_0x1f85ea,_0x13d784),this[_0x1fc9e8(0x244)](_0x2a8656);}}),_0x33333d||this['_send']({'type':0x0,'memberID':this[_0x5764d5(0x377)],'unitIDs':[...this[_0x5764d5(0x36d)]],'isForwarded':!0x0});}[_0x7011be(0x244)](_0x6a7d98){const _0xac2a60=_0x7011be;this[_0xac2a60(0x402)](_0x6a7d98);const _0x4cc9ca=window[_0xac2a60(0x42a)](()=>{const _0x277be8=_0xac2a60;this[_0x277be8(0x1e3)][_0x277be8(0x429)](_0x39defe=>{const _0x24a96b=_0x277be8;_0x39defe[_0x24a96b(0x415)](_0x6a7d98);});},cs*0x2);this[_0xac2a60(0x1d9)][_0xac2a60(0x2e0)](_0x6a7d98,_0x4cc9ca);}[_0x7011be(0x402)](_0x25cf53){const _0x5653b7=_0x7011be;if(this[_0x5653b7(0x1d9)][_0x5653b7(0x436)](_0x25cf53)){const _0x40bf1=this[_0x5653b7(0x1d9)][_0x5653b7(0x3be)](_0x25cf53);_0x40bf1&&window[_0x5653b7(0x351)](_0x40bf1),this[_0x5653b7(0x1d9)][_0x5653b7(0x2e0)](_0x25cf53,null);}}[_0x7011be(0x4d9)](_0xbad65b){const _0x16540a=_0x7011be,{memberID:_0x490f0f,unitIDs:_0x31bb4e}=_0xbad65b;_0x31bb4e[_0x16540a(0x429)](_0x5aea3f=>{const _0x34c2c8=_0x16540a;var _0x32b6ba;const _0x31a5ce=this[_0x34c2c8(0x1e3)][_0x34c2c8(0x3be)](_0x5aea3f);_0x31a5ce&&(_0x31a5ce[_0x34c2c8(0x415)](_0x490f0f),(_0x32b6ba=this[_0x34c2c8(0x28b)](_0x5aea3f))==null||_0x32b6ba['next'](_0x31a5ce['size']===0x0?0x0:0x1));}),this[_0x16540a(0x402)](_0x490f0f);}['_handleHeartbeatEvent'](_0x4b4117){const _0x1a7a2d=_0x7011be;this['_scheduleClearOtherTimer'](_0x4b4117[_0x1a7a2d(0x22a)]);}['_send'](_0x11570f){const _0x2099e9=_0x7011be;localStorage[_0x2099e9(0x35e)](hs,JSON[_0x2099e9(0x3ec)](_0x11570f));}[_0x7011be(0x315)](){const _0x57ab46=_0x7011be;this['_heartbeatTimer']=window[_0x57ab46(0x3b0)](()=>{const _0x455de0=_0x57ab46;this[_0x455de0(0x422)]({'type':0x2,'memberID':this[_0x455de0(0x377)]});},cs);}[_0x7011be(0x28b)](_0x5211f2){const _0x1857b2=_0x7011be;return this[_0x1857b2(0x418)][_0x1857b2(0x436)](_0x5211f2)||this[_0x1857b2(0x418)][_0x1857b2(0x2e0)](_0x5211f2,new _0x2048f5(0x0)),this[_0x1857b2(0x418)][_0x1857b2(0x3be)](_0x5211f2);}}function Hs(_0x9bcde2){const _0x5ddb4a=_0x7011be;let _0x571ad3='';for(const _0x1d6f20 of _0x9bcde2){const {startOffset:_0x2ed6c1,endOffset:_0xac14f9,isActive:_0x308ad1}=_0x1d6f20;_0x571ad3[_0x5ddb4a(0x2db)]&&(_0x571ad3+=','),_0x571ad3+=_0x2ed6c1+':'+_0xac14f9+':'+(_0x308ad1?'1':'0');}return _0x571ad3;}function ar(_0x43ce9a){const _0x51bb11=_0x7011be,_0x190662=_0x43ce9a[_0x51bb11(0x205)](','),_0x5a11ad=[];for(const _0x5ab62d of _0x190662){const [_0x597797,_0xa452f1,_0x294d42]=_0x5ab62d[_0x51bb11(0x205)](':');_0x5a11ad['push']({'startOffset':Number(_0x597797),'endOffset':Number(_0xa452f1),'collapsed':_0x597797===_0xa452f1,'isActive':_0x294d42==='1'});}return _0x5a11ad[_0x51bb11(0x275)](_0x2e99df=>_0x2e99df[_0x51bb11(0x390)])||(_0x5a11ad[0x0][_0x51bb11(0x390)]=!0x0),_0x5a11ad;}class Ft extends _0x101c13{constructor(){const _0x2359f9=_0x7011be;super(...arguments),l(this,_0x2359f9(0x1bf),new _0x2048f5(null)),l(this,_0x2359f9(0x239),this[_0x2359f9(0x1bf)][_0x2359f9(0x1f7)]());}[_0x7011be(0x25f)](_0x3a4bf8){const _0x4c7d0a=_0x7011be,{unitID:_0x4fa140,memberID:_0x2976c9,textRanges:_0x55ef15}=_0x3a4bf8,_0x3cb392=Hs(_0x55ef15),_0x1f54a4={'unitID':_0x4fa140,'memberID':_0x2976c9,'selection':_0x3cb392};this[_0x4c7d0a(0x1bf)][_0x4c7d0a(0x40f)](_0x1f54a4);}}var cr=Object[_0x7011be(0x38b)],hr=Object[_0x7011be(0x24f)],lr=(_0x687a45,_0x4f9eb2,_0x266f7a,_0x4148c8)=>{const _0x1d6533=_0x7011be;for(var _0x3ef731=_0x4148c8>0x1?void 0x0:_0x4148c8?hr(_0x4f9eb2,_0x266f7a):_0x4f9eb2,_0x5192a9=_0x687a45[_0x1d6533(0x2db)]-0x1,_0x41c4ea;_0x5192a9>=0x0;_0x5192a9--)(_0x41c4ea=_0x687a45[_0x5192a9])&&(_0x3ef731=(_0x4148c8?_0x41c4ea(_0x4f9eb2,_0x266f7a,_0x3ef731):_0x41c4ea(_0x3ef731))||_0x3ef731);return _0x4148c8&&_0x3ef731&&cr(_0x4f9eb2,_0x266f7a,_0x3ef731),_0x3ef731;},ls=(_0x229ccf,_0x363480)=>(_0x1919e0,_0x256bd5)=>_0x363480(_0x1919e0,_0x256bd5,_0x229ccf);let et=class{constructor(_0x109a9a,_0x11dd5c){const _0x5da744=_0x7011be;this['_injector']=_0x109a9a,this[_0x5da744(0x26f)]=_0x11dd5c;}[_0x7011be(0x250)](_0xe4acdc){const _0x3bf859=_0x7011be;var _0x5ba50f;const _0x15e6bd=this[_0x3bf859(0x47c)]['get'](_0x1198ee),_0x627476=(_0x5ba50f=_0x15e6bd[_0x3bf859(0x3c7)]())!=null?_0x5ba50f:[];if(_0x627476[_0x3bf859(0x2db)]===0x0)return;const _0x1da7cb=[{'id':_0x3bf859(0x450),'params':{'unitId':_0xe4acdc[_0x3bf859(0x363)],'actions':null,'textRanges':_0x627476}}],_0x4270c7=this[_0x3bf859(0x26f)][_0x3bf859(0x37b)](_0xe4acdc,_0x1da7cb);if(!_0x50faaa(_0x4270c7))throw _0x4270c7[_0x3bf859(0x174)];const _0x38f935=_0x4270c7[_0x3bf859(0x1d5)][0x0][_0x3bf859(0x329)][_0x3bf859(0x1a9)];Array[_0x3bf859(0x383)](_0x38f935)&&_0x38f935[_0x3bf859(0x2db)]&&_0x15e6bd[_0x3bf859(0x457)](_0x38f935,!0x1);}};et=lr([ls(0x0,_0x4f6f98(_0x8f002c)),ls(0x1,_0x49c306)],et);const _r=new Set([_0x2abee6['id']]);function _s(_0x2f2815,_0x58c493,_0x202719,_0x5278c2,_0x22a054){const _0x97c7a9=_0x7011be;var _0x10b592,_0x476a35,_0x4874d5,_0x20ab53;const _0x161d11=[];for(const _0x319872 of _0x2f2815)if(_r[_0x97c7a9(0x436)](_0x319872['id'])){if(_0x161d11[_0x97c7a9(0x2db)]>0x0)break;_0x161d11[_0x97c7a9(0x1c4)](_0x319872);break;}else _0x161d11[_0x97c7a9(0x1c4)](_0x319872);const _0x2577b1=(_0x476a35=(_0x10b592=_0x22a054[_0x97c7a9(0x389)]())==null?void 0x0:_0x10b592[_0x97c7a9(0x4a0)])!=null?_0x476a35:'unknown',_0x2844fb=(_0x20ab53=(_0x4874d5=_0x22a054[_0x97c7a9(0x389)]())==null?void 0x0:_0x4874d5['memberID'])!=null?_0x20ab53:_0x97c7a9(0x4a2);return{'changeset':{'unitID':_0x58c493,'type':_0x47e8e5(_0x202719[_0x97c7a9(0x234)](_0x58c493)),'baseRev':_0x5278c2[_0x97c7a9(0x334)](_0x58c493),'revision':0x0,'userID':_0x2577b1,'memberID':_0x2844fb,'mutations':_0x161d11},'pendingMutations':_0x2f2815[_0x97c7a9(0x1d7)](_0x161d11[_0x97c7a9(0x2db)])};}function ur(_0x12e95f,_0x1b1e3b,_0x45f0c9,_0x3d4791,_0x4d79c9){const _0x1ea0dc=_0x7011be;var _0x39df04,_0x3b8f95,_0x3d1aec,_0x3f7030;const _0x87db76=[_0x12e95f[_0x1ea0dc(0x186)]((_0x45a61e,_0x4efafd)=>{const _0xa86b1b=_0x1ea0dc;var _0x54f5f6;const {id:_0x5dd86c}=_0x45a61e,{id:_0x4042d8,type:_0x3f5c66}=_0x4efafd,_0x5918b6=(_0x54f5f6=_0x45a61e[_0xa86b1b(0x329)])!=null?_0x54f5f6:{'actions':null},_0x195303=_0x4efafd[_0xa86b1b(0x329)];if(_0x5dd86c&&_0x5dd86c!==_0x4042d8)throw new Error(_0xa86b1b(0x49c)+_0x5dd86c+'\x20-\x20'+_0x4042d8+'.');return{..._0x45a61e,'id':_0x4042d8,'type':_0x3f5c66,'params':{'unitId':_0x195303[_0xa86b1b(0x36b)],'textRanges':_0x195303['textRanges'],'actions':_0x42b912[_0xa86b1b(0x2aa)](_0x5918b6[_0xa86b1b(0x1d0)],_0x195303['actions'])}};},{})],_0x952dfc=(_0x3b8f95=(_0x39df04=_0x4d79c9['getCurrentUser']())==null?void 0x0:_0x39df04[_0x1ea0dc(0x4a0)])!=null?_0x3b8f95:_0x1ea0dc(0x4a2),_0x33760e=(_0x3f7030=(_0x3d1aec=_0x4d79c9[_0x1ea0dc(0x389)]())==null?void 0x0:_0x3d1aec[_0x1ea0dc(0x22a)])!=null?_0x3f7030:'unknown';return{'changeset':{'unitID':_0x1b1e3b,'type':_0x47e8e5(_0x45f0c9[_0x1ea0dc(0x234)](_0x1b1e3b)),'baseRev':_0x3d4791[_0x1ea0dc(0x334)](_0x1b1e3b),'revision':0x0,'userID':_0x952dfc,'memberID':_0x33760e,'mutations':_0x87db76},'pendingMutations':[]};}const dr={'id':_0x64ba06['id'],'type':_0xba6e30[_0x7011be(0x30e)],'params':{}};var fr=Object[_0x7011be(0x38b)],mr=Object['getOwnPropertyDescriptor'],le=(_0x36de1d,_0x3b4bde,_0x3babfe,_0x5cc37b)=>{for(var _0x5c9782=_0x5cc37b>0x1?void 0x0:_0x5cc37b?mr(_0x3b4bde,_0x3babfe):_0x3b4bde,_0x4b7449=_0x36de1d['length']-0x1,_0xf07abd;_0x4b7449>=0x0;_0x4b7449--)(_0xf07abd=_0x36de1d[_0x4b7449])&&(_0x5c9782=(_0x5cc37b?_0xf07abd(_0x3b4bde,_0x3babfe,_0x5c9782):_0xf07abd(_0x5c9782))||_0x5c9782);return _0x5cc37b&&_0x5c9782&&fr(_0x3b4bde,_0x3babfe,_0x5c9782),_0x5c9782;},m=(_0x584ddb,_0x5209e7)=>(_0x4b3544,_0x2ef523)=>_0x5209e7(_0x4b3544,_0x2ef523,_0x584ddb),w=(_0x2b6d52=>(_0x2b6d52[_0x7011be(0x194)]='not_collab',_0x2b6d52['SYNCED']=_0x7011be(0x1bd),_0x2b6d52['PENDING']=_0x7011be(0x2a6),_0x2b6d52[_0x7011be(0x19c)]=_0x7011be(0x298),_0x2b6d52[_0x7011be(0x2cd)]='awaiting_with_pending',_0x2b6d52[_0x7011be(0x1e9)]=_0x7011be(0x2f2),_0x2b6d52[_0x7011be(0x184)]=_0x7011be(0x1ad),_0x2b6d52[_0x7011be(0x2ca)]=_0x7011be(0x3e3),_0x2b6d52))(w||{});class _e{constructor(_0x2c3347,_0x42d97f,_0x5e32a4,_0x214ad9,_0x4badff,_0x27ca4a,_0x182fbc,_0x19016d,_0x5126b7){const _0x596ab3=_0x7011be;l(this,'_awaitingChangeset',null),l(this,_0x596ab3(0x22c),[]),(this['unitID']=_0x2c3347,this[_0x596ab3(0x4b7)]=_0x42d97f,this[_0x596ab3(0x314)]=_0x4badff,this[_0x596ab3(0x2c6)]=_0x27ca4a,this['_undoRedoService']=_0x182fbc,this[_0x596ab3(0x4c8)]=_0x19016d,this['_localCacheService']=_0x5126b7,this[_0x596ab3(0x3de)]=_0x5e32a4,this[_0x596ab3(0x22c)]=_0x214ad9);}[_0x7011be(0x24e)](_0x4b615f){const _0x3365cd=_0x7011be,_0x569ab2=this[_0x3365cd(0x4c8)][_0x3365cd(0x334)](this['unitID']);return _0x4b615f[_0x3365cd(0x1c6)]>_0x569ab2+0x1?(this[_0x3365cd(0x314)][_0x3365cd(0x2df)]({'from':_0x569ab2,'to':_0x4b615f[_0x3365cd(0x1c6)]-0x1}),!0x0):!0x1;}[_0x7011be(0x4a6)](_0x433c4e){const _0x376df3=_0x7011be;this[_0x376df3(0x32d)]['transformUndoRedo'](this[_0x376df3(0x363)],_0x433c4e);}['_transformSelections'](_0xe761f4){const _0x414af6=_0x7011be;var _0x38e4c5,_0x5b1fd6;(_0x5b1fd6=(_0x38e4c5=this['_handler'])[_0x414af6(0x2e5)])==null||_0x5b1fd6['call'](_0x38e4c5,_0xe761f4);}[_0x7011be(0x3f0)](_0x5a1a45){const _0x5eabf7=_0x7011be;var _0x35da8c,_0x3c027d;return(_0x3c027d=(_0x35da8c=this[_0x5eabf7(0x314)])[_0x5eabf7(0x420)])==null?void 0x0:_0x3c027d[_0x5eabf7(0x433)](_0x35da8c,_0x5a1a45);}[_0x7011be(0x180)](_0x277050){const _0x4c28ed=_0x7011be;var _0x22a8c4,_0x2e00cc,_0x5c6e10;return(_0x5c6e10=(_0x2e00cc=(_0x22a8c4=this[_0x4c28ed(0x314)])[_0x4c28ed(0x43f)])==null?void 0x0:_0x2e00cc[_0x4c28ed(0x433)](_0x22a8c4,_0x277050))!=null?_0x5c6e10:_0x277050;}[_0x7011be(0x358)](_0x1fdcd0){const _0x45c40f=_0x7011be;var _0x1e78f9,_0x4fe286;if(this[_0x45c40f(0x4b7)]===H[_0x45c40f(0x1a0)]){const {unitID:_0x24df91,mutations:_0x483b2d,memberID:_0x4eec03}=_0x1fdcd0,_0x468053=_0x483b2d[0x0]['params'][_0x45c40f(0x1a9)];Array[_0x45c40f(0x383)](_0x468053)&&_0x468053[_0x45c40f(0x2db)]>0x0&&((_0x4fe286=(_0x1e78f9=this[_0x45c40f(0x314)])['onSyncEditingCollabCursor'])==null||_0x4fe286[_0x45c40f(0x433)](_0x1e78f9,{'unitID':_0x24df91,'memberID':_0x4eec03,'textRanges':_0x468053}));}}[_0x7011be(0x2fa)](){const _0x5519fb=_0x7011be;this[_0x5519fb(0x40d)][_0x5519fb(0x39a)](this[_0x5519fb(0x363)],this['type'],this[_0x5519fb(0x3de)],this[_0x5519fb(0x22c)]);}[_0x7011be(0x49b)](){const _0x44fc07=_0x7011be;return this['_revisionService'][_0x44fc07(0x334)](this[_0x44fc07(0x363)]);}[_0x7011be(0x338)](){const _0x37b282=_0x7011be;this['_revisionService'][_0x37b282(0x49a)](this[_0x37b282(0x363)]);}[_0x7011be(0x399)](_0x3356ff){const _0x896eb=_0x7011be;var _0x44eb82;const _0x3c246d=this[_0x896eb(0x180)](_0x3356ff),_0x58cd1e=_0x621390(_0x3c246d[_0x896eb(0x459)],this['_commandService'],{'fromCollab':!0x0});if(!_0x58cd1e[_0x896eb(0x216)])throw _0x58cd1e['error']instanceof Error?_0x58cd1e[_0x896eb(0x174)]:new Error((_0x44eb82=_0x58cd1e[_0x896eb(0x174)])!=null?_0x44eb82:_0x896eb(0x3e1));this['_transformIMECache'](_0x3c246d),this[_0x896eb(0x4a6)](_0x3356ff),this[_0x896eb(0x290)](_0x3c246d),this[_0x896eb(0x358)](_0x3c246d),this[_0x896eb(0x338)]();}}let pe=class extends _e{constructor(_0x344c3a,_0x5b9ba5,_0x26625f,_0x261f46,_0x5a8735,_0x264627,_0x549c9b,_0x2bbe9b,_0x351e0f,_0x42698d){const _0x4db020=_0x7011be;super(_0x344c3a,_0x5b9ba5,null,[],_0x26625f,_0x2bbe9b,_0x549c9b,_0x261f46,_0x5a8735),l(this,'status','synced'),(this[_0x4db020(0x47c)]=_0x264627,this[_0x4db020(0x1b4)]=_0x351e0f,this[_0x4db020(0x26f)]=_0x42698d);}[_0x7011be(0x2b1)](_0x42df7c){const _0x37869f=_0x7011be,_0x25814f=this['_injector']['createInstance'](K,this[_0x37869f(0x363)],this[_0x37869f(0x4b7)],[_0x42df7c],this['_handler']);return _0x25814f['_schedule'](),_0x25814f['_updateLocalCache'](),_0x25814f;}[_0x7011be(0x32e)](_0x114074){const _0x240190=_0x7011be;if(this[_0x240190(0x24e)](_0x114074))return this['_injector'][_0x240190(0x1cb)](k,this[_0x240190(0x363)],this[_0x240190(0x4b7)],null,[],null,[_0x114074],this[_0x240190(0x314)]);try{const _0x1cd47f=this[_0x240190(0x26f)][_0x240190(0x37b)](_0x114074,[dr]);if(_0x50faaa(_0x1cd47f)){const {c1Prime:_0x12b40f}=_0x1cd47f;return this['_executeRemoteChangeset'](_0x12b40f),this;}throw _0x1cd47f[_0x240190(0x174)];}catch(_0x1affd9){return this[_0x240190(0x1b4)][_0x240190(0x174)](_0x1affd9),this['_onConflict'](!0x1);}}['_onConflict'](_0x49f032){const _0x41c4c8=_0x7011be;return this[_0x41c4c8(0x47c)]['createInstance'](ee,this[_0x41c4c8(0x363)],this[_0x41c4c8(0x4b7)],null,[],this['_handler'],_0x49f032);}[_0x7011be(0x43a)](){const _0x5c5dd8=_0x7011be;throw new Error(_0x5c5dd8(0x4be));}[_0x7011be(0x28f)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x1bc8fd=_0x7011be;return this[_0x1bc8fd(0x47c)][_0x1bc8fd(0x1cb)](te,this[_0x1bc8fd(0x363)],this['type'],null,[],this[_0x1bc8fd(0x314)]);}[_0x7011be(0x485)](){return this;}[_0x7011be(0x24a)](){const _0x232de1=_0x7011be;throw new Error(_0x232de1(0x378));}[_0x7011be(0x3fd)](){const _0xb0b6b4=_0x7011be,_0x1dc9b4=this[_0xb0b6b4(0x4c8)]['getCurrentRevOfUnit'](this[_0xb0b6b4(0x363)]);return this['_handler'][_0xb0b6b4(0x2df)]({'from':_0x1dc9b4,'to':0x0}),this['_injector'][_0xb0b6b4(0x1cb)](k,this[_0xb0b6b4(0x363)],this[_0xb0b6b4(0x4b7)],null,[],null,[],this[_0xb0b6b4(0x314)]);}};pe=le([m(0x3,_0x4f6f98(_0xd9ea18)),m(0x4,_0x4f6f98(D)),m(0x5,_0x4f6f98(_0x8f002c)),m(0x6,_0x2334b3),m(0x7,_0x2cea1d),m(0x8,_0x2f2df5),m(0x9,_0x49c306)],pe);let K=class extends _e{constructor(_0x2e02d4,_0x30022f,_0x152fbd,_0x1a6d51,_0x2e1a04,_0x4926c0,_0x5d68aa,_0x1aa068,_0x22a595,_0x36ceaa,_0x4e6d2a,_0x2e33b0,_0x24958f,_0x1cac90){const _0xf0bdd3=_0x7011be;super(_0x2e02d4,_0x30022f,null,_0x152fbd,_0x1a6d51,_0x36ceaa,_0x1cac90,_0x4926c0,_0x5d68aa),l(this,'status',_0xf0bdd3(0x2a6)),l(this,_0xf0bdd3(0x366),null),l(this,_0xf0bdd3(0x480),null),(this[_0xf0bdd3(0x47c)]=_0x2e1a04,this['_memberService']=_0x1aa068,this[_0xf0bdd3(0x1b4)]=_0x22a595,this['_configService']=_0x4e6d2a,this[_0xf0bdd3(0x26f)]=_0x2e33b0,this[_0xf0bdd3(0x2c3)]=_0x24958f);}[_0x7011be(0x2b1)](_0x5de19d){const _0x4c7b44=_0x7011be;return this[_0x4c7b44(0x22c)][_0x4c7b44(0x1c4)](_0x5de19d),this[_0x4c7b44(0x2fa)](),this;}[_0x7011be(0x32e)](_0x528c67){const _0x43187b=_0x7011be;if(this[_0x43187b(0x24e)](_0x528c67))return this[_0x43187b(0x19a)](),this[_0x43187b(0x47c)][_0x43187b(0x1cb)](k,this['unitID'],this[_0x43187b(0x4b7)],null,this[_0x43187b(0x22c)],null,[_0x528c67],this[_0x43187b(0x314)]);try{const _0x72701d=this[_0x43187b(0x26f)][_0x43187b(0x37b)](_0x528c67,this['_pendingMutations']);if(_0x50faaa(_0x72701d)){const {c1Prime:_0x4ecc77,m2Prime:_0x5e769f}=_0x72701d;this[_0x43187b(0x399)](_0x4ecc77);const _0x31a5b3=this[_0x43187b(0x47c)][_0x43187b(0x1cb)](K,this[_0x43187b(0x363)],this[_0x43187b(0x4b7)],_0x5e769f,this[_0x43187b(0x314)]);return this[_0x43187b(0x19a)](),_0x31a5b3[_0x43187b(0x3d3)](this[_0x43187b(0x366)]?Math[_0x43187b(0x47a)](0x0,new Date()['getTime']()-this[_0x43187b(0x366)]):this[_0x43187b(0x42c)]()),_0x31a5b3;}throw _0x72701d[_0x43187b(0x174)];}catch(_0x59deaa){return this[_0x43187b(0x1b4)]['error'](_0x59deaa),this[_0x43187b(0x24d)](!0x1);}}['onRemoteAck'](){const _0x1c8785=_0x7011be;throw new Error(_0x1c8785(0x43d));}[_0x7011be(0x28f)](){const _0x35f6cf=_0x7011be;throw new Error(_0x35f6cf(0x4cf));}[_0x7011be(0x1ef)](){const _0x6ca23c=_0x7011be;return this['_clearScheduledTask'](),this[_0x6ca23c(0x47c)][_0x6ca23c(0x1cb)](te,this[_0x6ca23c(0x363)],this[_0x6ca23c(0x4b7)],null,this[_0x6ca23c(0x22c)],this[_0x6ca23c(0x314)]);}[_0x7011be(0x485)](){return this;}[_0x7011be(0x3d3)](_0x181d45){const _0x196c7c=_0x7011be,_0x1104d3=_0x181d45!=null?_0x181d45:this[_0x196c7c(0x42c)]();this['_scheduleTimestamp']=new Date()[_0x196c7c(0x228)](),this[_0x196c7c(0x480)]=window[_0x196c7c(0x42a)](()=>{const _0x4a5756=_0x196c7c;this[_0x4a5756(0x19a)]();let _0xdac004=null;switch(this['type']){case H[_0x4a5756(0x42d)]:{_0xdac004=_s(this[_0x4a5756(0x22c)],this[_0x4a5756(0x363)],this[_0x4a5756(0x2c3)],this[_0x4a5756(0x4c8)],this[_0x4a5756(0x328)]);break;}case H[_0x4a5756(0x1a0)]:{this[_0x4a5756(0x22c)][_0x4a5756(0x2d6)](_0x482181=>_0x482181['id']===_0x565f33['id'])?_0xdac004=ur(this[_0x4a5756(0x22c)],this[_0x4a5756(0x363)],this[_0x4a5756(0x2c3)],this[_0x4a5756(0x4c8)],this[_0x4a5756(0x328)]):_0xdac004=_s(this['_pendingMutations'],this[_0x4a5756(0x363)],this['_univerInstanceService'],this[_0x4a5756(0x4c8)],this['_memberService']);break;}default:throw new Error(_0x4a5756(0x34d)+this[_0x4a5756(0x4b7)]+'\x20in\x20_schedule.');}const {changeset:_0x1cf526,pendingMutations:_0x328e74}=_0xdac004;this['_handler'][_0x4a5756(0x282)](_0x1cf526);const _0x54056a=_0x328e74[_0x4a5756(0x2db)]?this[_0x4a5756(0x47c)]['createInstance'](X,this['unitID'],this[_0x4a5756(0x4b7)],_0x1cf526,_0x328e74,this[_0x4a5756(0x314)]):this['_injector'][_0x4a5756(0x1cb)](Q,this[_0x4a5756(0x363)],this[_0x4a5756(0x4b7)],_0x1cf526,this[_0x4a5756(0x314)]);_0x54056a[_0x4a5756(0x2fa)](),this['_handler'][_0x4a5756(0x45e)](this,_0x54056a);},_0x1104d3);}[_0x7011be(0x42c)](){const _0x3736a3=_0x7011be;var _0x2be93f;const _0x4763ee=this[_0x3736a3(0x1c9)][_0x3736a3(0x34f)](L);return(_0x2be93f=_0x4763ee==null?void 0x0:_0x4763ee[_0x3736a3(0x3cf)])!=null?_0x2be93f:Sn;}[_0x7011be(0x24a)](){const _0x1901ed=_0x7011be;throw new Error(_0x1901ed(0x325));}[_0x7011be(0x19a)](){const _0xa1d675=_0x7011be;this[_0xa1d675(0x480)]!=null&&(clearTimeout(this[_0xa1d675(0x480)]),this[_0xa1d675(0x480)]=null);}[_0x7011be(0x24d)](_0x15175c){const _0x489edc=_0x7011be;return this[_0x489edc(0x19a)](),this[_0x489edc(0x47c)]['createInstance'](ee,this['unitID'],this[_0x489edc(0x4b7)],null,this[_0x489edc(0x22c)],this[_0x489edc(0x314)],_0x15175c);}};K=le([m(0x4,_0x4f6f98(_0x8f002c)),m(0x5,_0x4f6f98(_0xd9ea18)),m(0x6,_0x4f6f98(D)),m(0x7,_0x4f6f98(ae)),m(0x8,_0x2f2df5),m(0x9,_0x2cea1d),m(0xa,_0x516197),m(0xb,_0x49c306),m(0xc,_0x29e7a7),m(0xd,_0x2334b3)],K);let Q=class extends _e{constructor(_0x4c1d0b,_0x25def5,_0x3ca604,_0x4d6b16,_0x228cea,_0x352f27,_0x240390,_0x152b10,_0x27b76d,_0x5dbe0e,_0x121f82){const _0x4ff5ea=_0x7011be;super(_0x4c1d0b,_0x25def5,_0x3ca604,[],_0x4d6b16,_0x152b10,_0x121f82,_0x352f27,_0x240390),l(this,'status',_0x4ff5ea(0x298)),(this[_0x4ff5ea(0x47c)]=_0x228cea,this[_0x4ff5ea(0x1b4)]=_0x27b76d,this['_transformService']=_0x5dbe0e);}['appendMutation'](_0x384113){const _0x56f428=_0x7011be,_0x300c80=this[_0x56f428(0x47c)][_0x56f428(0x1cb)](X,this[_0x56f428(0x363)],this[_0x56f428(0x4b7)],this[_0x56f428(0x3de)],[_0x384113],this[_0x56f428(0x314)]);return _0x300c80[_0x56f428(0x2fa)](),_0x300c80;}['onRemoteChangeset'](_0x27431e){const _0x4d4229=_0x7011be;if(this[_0x4d4229(0x24e)](_0x27431e))return this['_injector'][_0x4d4229(0x1cb)](k,this[_0x4d4229(0x363)],this[_0x4d4229(0x4b7)],this[_0x4d4229(0x3de)],[],null,[_0x27431e],this[_0x4d4229(0x314)]);try{const _0x2a271b=this[_0x4d4229(0x26f)]['transformChangesets']([_0x27431e],[this['_awaitingChangeset']],!0x1);if(_0x571ad7(_0x2a271b)){const {c1Prime:_0x4c7992,c2Prime:_0x8a8190}=_0x2a271b;this[_0x4d4229(0x399)](_0x4c7992[0x0]),_0x8a8190[0x0][_0x4d4229(0x21a)]=this[_0x4d4229(0x49b)]();const _0x320d6a=this[_0x4d4229(0x47c)][_0x4d4229(0x1cb)](Q,this[_0x4d4229(0x363)],this[_0x4d4229(0x4b7)],_0x8a8190[0x0],this[_0x4d4229(0x314)]);return _0x320d6a[_0x4d4229(0x2fa)](),_0x320d6a;}return this['_onConflict'](!0x1);}catch(_0x510bbe){return this[_0x4d4229(0x1b4)][_0x4d4229(0x174)](_0x510bbe),this['_onConflict'](!0x1);}}[_0x7011be(0x43a)](_0xb20d29){const _0x3bb196=_0x7011be,_0x337ee1=this[_0x3bb196(0x4c8)][_0x3bb196(0x334)](this[_0x3bb196(0x363)]);if(_0xb20d29[_0x3bb196(0x1c6)]<_0x337ee1-0x1)return this;if(this[_0x3bb196(0x24e)](_0xb20d29))return this[_0x3bb196(0x47c)][_0x3bb196(0x1cb)](k,this[_0x3bb196(0x363)],this[_0x3bb196(0x4b7)],null,[],this['_awaitingChangeset'],[],this[_0x3bb196(0x314)]);this['_incrementRevisionNumber']();const _0x44cb9=this[_0x3bb196(0x47c)]['createInstance'](pe,this['unitID'],this[_0x3bb196(0x4b7)],this[_0x3bb196(0x314)]);return _0x44cb9['_updateLocalCache'](),_0x44cb9;}[_0x7011be(0x28f)](_0x5c1dcc){const _0x58d875=_0x7011be;return this[_0x58d875(0x24d)](!!(_0x5c1dcc!=null&&_0x5c1dcc['isPermissionRej']));}[_0x7011be(0x1ef)](){const _0x5d4ff2=_0x7011be;return this[_0x5d4ff2(0x47c)][_0x5d4ff2(0x1cb)](te,this[_0x5d4ff2(0x363)],this[_0x5d4ff2(0x4b7)],this[_0x5d4ff2(0x3de)],[],this[_0x5d4ff2(0x314)]);}['toggleOnline'](){return this;}['resend'](){const _0x535123=_0x7011be;this['_handler'][_0x535123(0x282)](this[_0x535123(0x3de)]);}['_onConflict'](_0x138caf){const _0x53a895=_0x7011be;return this[_0x53a895(0x47c)][_0x53a895(0x1cb)](ee,this[_0x53a895(0x363)],this[_0x53a895(0x4b7)],this['_awaitingChangeset'],[],this[_0x53a895(0x314)],_0x138caf);}};Q=le([m(0x4,_0x4f6f98(_0x8f002c)),m(0x5,_0x4f6f98(_0xd9ea18)),m(0x6,_0x4f6f98(D)),m(0x7,_0x2cea1d),m(0x8,_0x2f2df5),m(0x9,_0x49c306),m(0xa,_0x2334b3)],Q);let X=class extends _e{constructor(_0xf0282a,_0x5158d8,_0x206550,_0x3dca7d,_0x4fdff9,_0x24dcf9,_0x32f387,_0x380e5f,_0x57fa1a,_0x46e57a,_0x242e6e,_0x115d4d){const _0x152cf9=_0x7011be;super(_0xf0282a,_0x5158d8,_0x206550,_0x3dca7d,_0x4fdff9,_0x57fa1a,_0x115d4d,_0x32f387,_0x380e5f),l(this,_0x152cf9(0x31f),'awaiting_with_pending'),(this['_injector']=_0x24dcf9,this['_logService']=_0x46e57a,this['_transformService']=_0x242e6e);}[_0x7011be(0x2b1)](_0x1cbdf3){const _0x2e4033=_0x7011be;return this[_0x2e4033(0x22c)]['push'](_0x1cbdf3),this;}[_0x7011be(0x32e)](_0xc03a0c){const _0x8a8504=_0x7011be;if(this['_checkMissing'](_0xc03a0c))return this['_injector'][_0x8a8504(0x1cb)](k,this[_0x8a8504(0x363)],this[_0x8a8504(0x4b7)],this[_0x8a8504(0x3de)],this['_pendingMutations'],null,[_0xc03a0c],this[_0x8a8504(0x314)]);try{const _0x6d0849=this['_transformService'][_0x8a8504(0x257)]([_0xc03a0c],[this['_awaitingChangeset']],!0x1);if(_0x571ad7(_0x6d0849)){const {c1Prime:_0x4d4781,c2Prime:_0x5b8a03}=_0x6d0849,_0x4c235d=this['_transformService'][_0x8a8504(0x37b)](_0x4d4781[0x0],this[_0x8a8504(0x22c)]);if(_0x50faaa(_0x4c235d)){const {c1Prime:_0xa848ba,m2Prime:_0x3fb880}=_0x4c235d;return this[_0x8a8504(0x399)](_0xa848ba),_0x5b8a03[0x0][_0x8a8504(0x21a)]=this['_getCurrentRevision'](),this['_injector'][_0x8a8504(0x1cb)](X,this[_0x8a8504(0x363)],this[_0x8a8504(0x4b7)],_0x5b8a03[0x0],_0x3fb880,this['_handler']);}throw _0x4c235d[_0x8a8504(0x174)];}throw _0x6d0849[_0x8a8504(0x174)];}catch(_0x4ae900){return this[_0x8a8504(0x1b4)][_0x8a8504(0x174)](_0x4ae900),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x2c0af5){const _0x5daae5=_0x7011be;if(this[_0x5daae5(0x24e)](_0x2c0af5))return this['_injector']['createInstance'](k,this[_0x5daae5(0x363)],this[_0x5daae5(0x4b7)],null,this[_0x5daae5(0x22c)],this[_0x5daae5(0x3de)],[],this[_0x5daae5(0x314)]);this[_0x5daae5(0x338)]();const _0xe85799=this[_0x5daae5(0x47c)][_0x5daae5(0x1cb)](K,this[_0x5daae5(0x363)],this[_0x5daae5(0x4b7)],this[_0x5daae5(0x22c)],this[_0x5daae5(0x314)]);return _0xe85799[_0x5daae5(0x3d3)](),_0xe85799[_0x5daae5(0x2fa)](),_0xe85799;}['onRemoteRej'](_0x131e01){const _0x9387a2=_0x7011be;return this[_0x9387a2(0x24d)](!!(_0x131e01!=null&&_0x131e01[_0x9387a2(0x1a8)]));}[_0x7011be(0x1ef)](){const _0x5f5d86=_0x7011be;return this[_0x5f5d86(0x47c)][_0x5f5d86(0x1cb)](te,this['unitID'],this[_0x5f5d86(0x4b7)],this[_0x5f5d86(0x3de)],this['_pendingMutations'],this[_0x5f5d86(0x314)]);}['toggleOnline'](){return this;}[_0x7011be(0x24a)](){const _0x494421=_0x7011be;this[_0x494421(0x314)][_0x494421(0x282)](this['_awaitingChangeset']);}[_0x7011be(0x24d)](_0x15038b){const _0x2c1dfe=_0x7011be;return this[_0x2c1dfe(0x47c)]['createInstance'](ee,this['unitID'],this['type'],null,this[_0x2c1dfe(0x22c)],this[_0x2c1dfe(0x314)],_0x15038b);}};X=le([m(0x5,_0x4f6f98(_0x8f002c)),m(0x6,_0x4f6f98(_0xd9ea18)),m(0x7,_0x4f6f98(D)),m(0x8,_0x2cea1d),m(0x9,_0x2f2df5),m(0xa,_0x49c306),m(0xb,_0x2334b3)],X);let ee=class extends _e{constructor(_0x588641,_0x532a07,_0x4b43ba,_0xae6077,_0x4a5e78,_0x227d8c=!0x1,_0x9257d6,_0x4897a4,_0x4a91dc,_0x368ebc,_0x588789,_0x416960,_0x1fcfa0){const _0x2eba64=_0x7011be;super(_0x588641,_0x532a07,_0x4b43ba,_0xae6077,_0x4a5e78,_0x4897a4,_0x4a91dc,_0x588789,_0x368ebc),l(this,_0x2eba64(0x31f),_0x2eba64(0x1ad)),(this[_0x2eba64(0x2a9)]=_0x227d8c,this['_permissionService']=_0x9257d6,this[_0x2eba64(0x2f8)]=_0x416960,this[_0x2eba64(0x281)]=_0x1fcfa0,this[_0x2eba64(0x40e)](),this[_0x2eba64(0x440)](),this[_0x2eba64(0x341)]());}[_0x7011be(0x2b1)](){return this;}['onRemoteChangeset'](){return this;}[_0x7011be(0x43a)](){return this;}['onRemoteRej'](){return this;}[_0x7011be(0x1ef)](){return this;}['toggleOnline'](){return this;}[_0x7011be(0x24a)](){const _0x447ed9=_0x7011be;throw new Error(_0x447ed9(0x2f3));}[_0x7011be(0x440)](){const _0x3ff48f=_0x7011be;this[_0x3ff48f(0x40d)][_0x3ff48f(0x39a)](this[_0x3ff48f(0x363)],this[_0x3ff48f(0x4b7)],null,[]);}['_showConflictNotification'](){const _0x3426c7=_0x7011be;this[_0x3426c7(0x2a9)]?this[_0x3426c7(0x281)][_0x3426c7(0x2ee)]({'title':this[_0x3426c7(0x2f8)]['t']('permission.title'),'content':this[_0x3426c7(0x2f8)]['t'](_0x3426c7(0x29e)),'type':_0x3426c7(0x174),'duration':0x0}):this[_0x3426c7(0x281)][_0x3426c7(0x2ee)]({'title':this['_localeService']['t'](_0x3426c7(0x22d)),'content':this[_0x3426c7(0x2f8)]['t'](_0x3426c7(0x3c3)),'type':_0x3426c7(0x174),'duration':0x0});}['_disableEditing'](){const _0x5db9e8=_0x7011be;this['_permissionService'][_0x5db9e8(0x39c)](new _0x37edea(this[_0x5db9e8(0x363)])['id'],!0x1);}};ee=le([m(0x6,_0x4f6f98(_0x28c276)),m(0x7,_0x2cea1d),m(0x8,_0x2334b3),m(0x9,_0x4f6f98(D)),m(0xa,_0x4f6f98(_0xd9ea18)),m(0xb,_0x4f6f98(_0x95964d)),m(0xc,_0x4ed61f)],ee);let te=class extends _e{constructor(_0x3f1f4d,_0x5427b1,_0x5735c3,_0x34a0b1,_0x4e7df7,_0x31d893,_0x36aeb1,_0x5a6656,_0x32681,_0x3878b7){super(_0x3f1f4d,_0x5427b1,_0x5735c3,_0x34a0b1,_0x4e7df7,_0x32681,_0x3878b7,_0x36aeb1,_0x5a6656),l(this,'status','offline'),this['_injector']=_0x31d893;}[_0x7011be(0x2b1)](_0xec2d78){const _0x55e7fc=_0x7011be;return this[_0x55e7fc(0x22c)][_0x55e7fc(0x1c4)](_0xec2d78),this[_0x55e7fc(0x2fa)](),this;}[_0x7011be(0x32e)](_0x8cf63e){const _0x28082c=_0x7011be;throw new Error(_0x28082c(0x462));}[_0x7011be(0x43a)](){const _0x12d77d=_0x7011be;throw new Error(_0x12d77d(0x494));}['onRemoteRej'](){const _0x3af6bc=_0x7011be;throw new Error(_0x3af6bc(0x387));}[_0x7011be(0x1ef)](){return this;}[_0x7011be(0x485)](){const _0x2bd220=_0x7011be,{_injector:_0x4869dc,_pendingMutations:_0x80a733,_awaitingChangeset:_0x2e43c3,unitID:_0x5d7062,_handler:_0x47809e,type:_0x2341b6}=this,_0x133a20=ks(_0x4869dc,_0x5d7062,_0x2341b6,_0x2e43c3,_0x80a733,_0x47809e);return _0x133a20 instanceof K?_0x133a20[_0x2bd220(0x3d3)]():(_0x133a20 instanceof X||_0x133a20 instanceof Q)&&_0x133a20[_0x2bd220(0x24a)](),_0x133a20;}[_0x7011be(0x24a)](){const _0x57c99d=_0x7011be;throw new Error(_0x57c99d(0x4bc));}};te=le([m(0x5,_0x4f6f98(_0x8f002c)),m(0x6,_0x4f6f98(_0xd9ea18)),m(0x7,_0x4f6f98(D)),m(0x8,_0x2cea1d),m(0x9,_0x2334b3)],te);let k=class extends _e{constructor(_0x1d1d1f,_0x26acb0,_0x1ecaae,_0x42d37b,_0x56a755,_0x4713ac,_0x3321cd,_0x377341,_0x25a3c0,_0x4d56d8,_0x889ad,_0x172046,_0x5e994d,_0x2aede2){const _0x5423ee=_0x7011be;super(_0x1d1d1f,_0x26acb0,_0x1ecaae,_0x42d37b,_0x3321cd,_0x172046,_0x5e994d,_0x25a3c0,_0x4d56d8),l(this,_0x5423ee(0x31f),_0x5423ee(0x2f2)),(this[_0x5423ee(0x1a2)]=_0x56a755,this[_0x5423ee(0x280)]=_0x4713ac,this[_0x5423ee(0x47c)]=_0x377341,this[_0x5423ee(0x1b4)]=_0x889ad,this[_0x5423ee(0x26f)]=_0x2aede2);}[_0x7011be(0x474)](_0x58b747){const _0x7875c7=_0x7011be;try{const _0x1db938=[..._0x58b747,...this[_0x7875c7(0x280)]],_0xc4f32a=[this['_awaitingChangeset']||this[_0x7875c7(0x1a2)]]['filter'](_0x4e4d5d=>!!_0x4e4d5d);let _0x1f8db3,_0x17e94a;if(_0xc4f32a[_0x7875c7(0x2db)]){const _0x375312=this[_0x7875c7(0x26f)]['transformChangesets'](_0x1db938,_0xc4f32a,!0x1);if(!_0x571ad7(_0x375312))throw _0x375312[_0x7875c7(0x174)];_0x1f8db3=_0x375312['c1Prime'],_0x17e94a=_0x375312[_0x7875c7(0x3bd)];}else _0x1f8db3=_0x1db938,_0x17e94a=[];let _0x2cae0b=this[_0x7875c7(0x22c)];_0x1f8db3[_0x7875c7(0x429)](_0x528f22=>{const _0x58e4d3=_0x7875c7;let _0x2ac0d4;if(_0x2cae0b[_0x58e4d3(0x2db)]){const _0x160c75=this[_0x58e4d3(0x26f)]['transformMutationsWithChangeset'](_0x528f22,_0x2cae0b);if(!_0x50faaa(_0x160c75))throw _0x160c75[_0x58e4d3(0x174)];_0x2ac0d4=_0x160c75['c1Prime'],_0x2cae0b=_0x160c75['m2Prime'];}else _0x2ac0d4=_0x528f22;this[_0x58e4d3(0x399)](_0x2ac0d4);}),this[_0x7875c7(0x1a2)]&&this[_0x7875c7(0x338)](),this[_0x7875c7(0x3de)]&&_0x17e94a[_0x7875c7(0x2db)]&&(_0x17e94a[0x0][_0x7875c7(0x21a)]=this[_0x7875c7(0x49b)]());let _0x2b7d7d;if(this[_0x7875c7(0x3de)]&&_0x2cae0b[_0x7875c7(0x2db)]!==0x0)_0x2b7d7d=this[_0x7875c7(0x47c)][_0x7875c7(0x1cb)](X,this[_0x7875c7(0x363)],this['type'],_0x17e94a[0x0],_0x2cae0b,this[_0x7875c7(0x314)]);else{if(this[_0x7875c7(0x3de)]&&_0x2cae0b[_0x7875c7(0x2db)]===0x0)_0x17e94a[0x0]['baseRev']=this[_0x7875c7(0x49b)](),_0x2b7d7d=this[_0x7875c7(0x47c)][_0x7875c7(0x1cb)](Q,this['unitID'],this[_0x7875c7(0x4b7)],_0x17e94a[0x0],this[_0x7875c7(0x314)]);else{if(_0x2cae0b[_0x7875c7(0x2db)]!==0x0){const _0x284f1b=this['_injector'][_0x7875c7(0x1cb)](K,this[_0x7875c7(0x363)],this[_0x7875c7(0x4b7)],_0x2cae0b,this[_0x7875c7(0x314)]);_0x284f1b[_0x7875c7(0x3d3)](),_0x2b7d7d=_0x284f1b;}else _0x2b7d7d=this[_0x7875c7(0x47c)][_0x7875c7(0x1cb)](pe,this[_0x7875c7(0x363)],this[_0x7875c7(0x4b7)],this['_handler']);}}return _0x2b7d7d[_0x7875c7(0x2fa)](),_0x2b7d7d;}catch(_0x55bbdd){return this[_0x7875c7(0x1b4)][_0x7875c7(0x174)](_0x7875c7(0x2c8),_0x7875c7(0x199),_0x55bbdd),this[_0x7875c7(0x47c)]['createInstance'](ee,this[_0x7875c7(0x363)],this['type'],this[_0x7875c7(0x3de)],this[_0x7875c7(0x22c)],this[_0x7875c7(0x314)],!0x1);}}[_0x7011be(0x24a)](){const _0x443025=_0x7011be;throw new Error(_0x443025(0x1f2));}[_0x7011be(0x2b1)](_0x5f519a){const _0x4e6978=_0x7011be;return this['_pendingMutations'][_0x4e6978(0x1c4)](_0x5f519a),this;}[_0x7011be(0x32e)](_0x15e052){const _0x3ec263=_0x7011be;return this[_0x3ec263(0x280)][_0x3ec263(0x1c4)](_0x15e052),this;}[_0x7011be(0x43a)](_0x2ea95c){const _0x24fdde=_0x7011be;if(this['_awaitingChangeset'])return this[_0x24fdde(0x1a2)]=this[_0x24fdde(0x3de)],this[_0x24fdde(0x3de)]=null,this;throw new Error(_0x24fdde(0x2bd));}[_0x7011be(0x28f)](_0x2e83b1){const _0x663740=_0x7011be;return this['_onConflict'](!!(_0x2e83b1!=null&&_0x2e83b1[_0x663740(0x1a8)]));}[_0x7011be(0x1ef)](){const _0x35c9bb=_0x7011be;return this[_0x35c9bb(0x47c)][_0x35c9bb(0x1cb)](te,this[_0x35c9bb(0x363)],this['type'],this[_0x35c9bb(0x3de)],this[_0x35c9bb(0x22c)],this[_0x35c9bb(0x314)]);}['toggleOnline'](){return this;}[_0x7011be(0x24d)](_0x4c6c24){const _0x3c145e=_0x7011be;return this[_0x3c145e(0x47c)][_0x3c145e(0x1cb)](ee,this['unitID'],this[_0x3c145e(0x4b7)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x4c6c24);}};k=le([m(0x7,_0x4f6f98(_0x8f002c)),m(0x8,_0x4f6f98(_0xd9ea18)),m(0x9,_0x4f6f98(D)),m(0xa,_0x2f2df5),m(0xb,_0x2cea1d),m(0xc,_0x2334b3),m(0xd,_0x49c306)],k);function ks(_0x3c5952,_0x2c1e2e,_0x2e363b,_0x472832,_0x1f55c2,_0x8fa6fd){const _0x2f3723=_0x7011be;return _0x472832&&_0x1f55c2[_0x2f3723(0x2db)]?_0x3c5952[_0x2f3723(0x1cb)](X,_0x2c1e2e,_0x2e363b,_0x472832,_0x1f55c2,_0x8fa6fd):_0x472832?_0x3c5952[_0x2f3723(0x1cb)](Q,_0x2c1e2e,_0x2e363b,_0x472832,_0x8fa6fd):_0x1f55c2[_0x2f3723(0x2db)]?_0x3c5952[_0x2f3723(0x1cb)](K,_0x2c1e2e,_0x2e363b,_0x1f55c2,_0x8fa6fd):_0x3c5952[_0x2f3723(0x1cb)](pe,_0x2c1e2e,_0x2e363b,_0x8fa6fd);}var gr=Object[_0x7011be(0x38b)],Sr=Object['getOwnPropertyDescriptor'],Wt=(_0x505b9c,_0x2d4612,_0x39169a,_0x5681e9)=>{const _0x356ea4=_0x7011be;for(var _0x3dd06a=_0x5681e9>0x1?void 0x0:_0x5681e9?Sr(_0x2d4612,_0x39169a):_0x2d4612,_0x3c8123=_0x505b9c[_0x356ea4(0x2db)]-0x1,_0x5e5809;_0x3c8123>=0x0;_0x3c8123--)(_0x5e5809=_0x505b9c[_0x3c8123])&&(_0x3dd06a=(_0x5681e9?_0x5e5809(_0x2d4612,_0x39169a,_0x3dd06a):_0x5e5809(_0x3dd06a))||_0x3dd06a);return _0x5681e9&&_0x3dd06a&&gr(_0x2d4612,_0x39169a,_0x3dd06a),_0x3dd06a;},p=(_0x2923e2,_0x1f1972)=>(_0xe8ff0e,_0x16f796)=>_0x1f1972(_0xe8ff0e,_0x16f796,_0x2923e2);let tt=class extends _0x101c13{constructor(_0xe1b99a,_0x33ccd8,_0x2a7f71,_0x440356,_0x4181ce,_0x3342e1,_0x27c0ef,_0x36be5b,_0x1fc59e,_0x3578d8,_0xba40d5,_0x53165e,_0x13952c){const _0x26e9de=_0x7011be;super(),l(this,'_state$',new _0x2048f5(null)),l(this,_0x26e9de(0x37c),this[_0x26e9de(0x1d2)][_0x26e9de(0x1f7)]()),l(this,'_state'),l(this,_0x26e9de(0x1b9),!0x1),l(this,_0x26e9de(0x294),this[_0x26e9de(0x37c)][_0x26e9de(0x185)](_0x39d5f6(_0x52cefc=>_0x52cefc?_0x52cefc[_0x26e9de(0x31f)]:w[_0x26e9de(0x2ca)]),_0x290704(0x1))),l(this,_0x26e9de(0x4b3),!0x1),l(this,_0x26e9de(0x4b4),[]),(this[_0x26e9de(0x363)]=_0xe1b99a,this[_0x26e9de(0x3d5)]=_0x33ccd8,this[_0x26e9de(0x3fa)]=_0x2a7f71,this[_0x26e9de(0x47c)]=_0x440356,this[_0x26e9de(0x40d)]=_0x4181ce,this[_0x26e9de(0x3c2)]=_0x3342e1,this[_0x26e9de(0x2f8)]=_0x27c0ef,this['_revisionService']=_0x36be5b,this[_0x26e9de(0x1b4)]=_0x1fc59e,this['_commandService']=_0x3578d8,this[_0x26e9de(0x398)]=_0xba40d5,this['_permissionService']=_0x53165e,this[_0x26e9de(0x2e4)]=_0x13952c);}get['state'](){const _0xf98a12=_0x7011be;return this[_0xf98a12(0x48e)];}async[_0x7011be(0x395)](){const _0x461b87=_0x7011be;if(this[_0x461b87(0x361)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x461b87(0x1f6)]();}[_0x7011be(0x316)](){const _0x599e6f=_0x7011be;return this[_0x599e6f(0x1b9)]=!0x0,_0x4b6fbe(()=>{const _0x28f516=_0x599e6f;this[_0x28f516(0x1b9)]=!0x1,this[_0x28f516(0x2a0)]();});}[_0x7011be(0x235)](_0x37dc69){this['_state']=_0x37dc69,this['_state$']['next'](_0x37dc69);}async[_0x7011be(0x1f6)](){const _0x134f1c=_0x7011be;var _0x51051e;this[_0x134f1c(0x235)](await this[_0x134f1c(0x310)]()),this[_0x134f1c(0x2e4)]&&((_0x51051e=this[_0x134f1c(0x2e4)])==null||_0x51051e['editingUnit'](this[_0x134f1c(0x363)]),this['disposeWithMe'](this[_0x134f1c(0x2e4)]['getUnitStatus$'](this[_0x134f1c(0x363)])[_0x134f1c(0x376)](_0x255d8b=>{const _0x14fa27=_0x134f1c;this[_0x14fa27(0x1b4)][_0x14fa27(0x368)](_0x14fa27(0x411),_0x14fa27(0x37a),_0x255d8b),_0x255d8b===xs['OTHER_CLIENTS_EDITING']?(this[_0x14fa27(0x398)]['show']({'content':this[_0x14fa27(0x2f8)]['t'](_0x14fa27(0x31a)),'type':_0x5638e0[_0x14fa27(0x3a8)]}),this['_permissionService']['updatePermissionPoint'](new _0x37edea(this[_0x14fa27(0x363)])['id'],!0x1)):this[_0x14fa27(0x48c)][_0x14fa27(0x39c)](new _0x37edea(this[_0x14fa27(0x363)])['id'],!0x0);})));let _0x3af31d=!0x1;return this[_0x134f1c(0x26d)](this[_0x134f1c(0x3d5)][_0x134f1c(0x364)]['subscribe'](_0x8f0e70=>{const _0x3242ce=_0x134f1c;_0x8f0e70===G['ONLINE']?this['_toggleOnline'](_0x3af31d):_0x8f0e70===G['OFFLINE']&&(_0x3af31d=!0x0,this[_0x3242ce(0x39e)]());})),this['disposeWithMe'](this[_0x134f1c(0x3d5)][_0x134f1c(0x27f)][_0x134f1c(0x376)](_0x16f80a=>{const _0x58e556=_0x134f1c;try{switch(_0x16f80a[_0x58e556(0x2fb)]){case _0x3edc6c[_0x58e556(0x4d7)]:{this[_0x58e556(0x25d)](_0x3d95ae(_0x16f80a[_0x58e556(0x253)]));break;}case _0x3edc6c[_0x58e556(0x324)]:{this[_0x58e556(0x2f9)](_0x16f80a[_0x58e556(0x253)]);break;}case _0x3edc6c['CHANGESET_REJ']:{this[_0x58e556(0x401)]();break;}case _0x3edc6c['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x58e556(0x1c8)](_0x16f80a[_0x58e556(0x253)][_0x58e556(0x19d)][_0x58e556(0x2af)](_0x5a7a34=>_0x3d95ae(_0x5a7a34)));break;}case _0x3edc6c[_0x58e556(0x4bd)]:this[_0x58e556(0x401)]({'isPermissionRej':!0x0});}}catch(_0x429fcf){throw console[_0x58e556(0x174)](_0x58e556(0x1cf),_0x429fcf),_0x429fcf;}})),this[_0x134f1c(0x48e)];}[_0x7011be(0x285)](){const _0x1e1454=_0x7011be;this[_0x1e1454(0x4b3)]=!0x1;}['_lockTransition'](){const _0x3ff7f5=_0x7011be;if(this[_0x3ff7f5(0x4b3)])throw new Error(_0x3ff7f5(0x255));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x2cbd43){const _0x300a47=_0x7011be;this[_0x300a47(0x3cc)](),this[_0x300a47(0x235)](this[_0x300a47(0x48e)][_0x300a47(0x2b1)](_0x2cbd43)),this[_0x300a47(0x285)]();}[_0x7011be(0x25d)](_0x58d35b){const _0x42838c=_0x7011be;if(!(_0x58d35b['revision']<=this[_0x42838c(0x4c8)]['getCurrentRevOfUnit'](this[_0x42838c(0x363)]))){if(this['_collaborationPaused']){this[_0x42838c(0x4b4)][_0x42838c(0x1c4)](_0x58d35b);return;}this[_0x42838c(0x2cb)](_0x58d35b);}}['_exhaustRemoteChangesetQueue'](){const _0x85ae71=_0x7011be;this[_0x85ae71(0x4b4)][_0x85ae71(0x429)](_0x11a830=>this[_0x85ae71(0x2cb)](_0x11a830)),this[_0x85ae71(0x4b4)]=[];}[_0x7011be(0x2cb)](_0x843564){const _0x261098=_0x7011be,_0x2c353a=this[_0x261098(0x3c2)][_0x261098(0x3dc)][_0x261098(0x1b2)](this[_0x261098(0x3c2)][_0x261098(0x3dc)][_0x261098(0x24b)]()[_0x261098(0x343)])(_0x843564['mutations'],null)||_0x843564[_0x261098(0x459)],_0x1b038c={..._0x843564,'mutations':_0x2c353a};this[_0x261098(0x3cc)](),this[_0x261098(0x235)](this[_0x261098(0x48e)][_0x261098(0x32e)](_0x1b038c)),this[_0x261098(0x285)]();}['_onRemoteACK'](_0x1057a3){const _0x4f9f3d=_0x7011be;this[_0x4f9f3d(0x3cc)](),this[_0x4f9f3d(0x235)](this[_0x4f9f3d(0x48e)][_0x4f9f3d(0x43a)](_0x1057a3)),this[_0x4f9f3d(0x285)]();}[_0x7011be(0x401)](_0x56fb7d){const _0x24cff2=_0x7011be;this[_0x24cff2(0x3cc)](),this['_updateState'](this[_0x24cff2(0x48e)]['onRemoteRej'](_0x56fb7d)),this[_0x24cff2(0x285)]();}[_0x7011be(0x1c8)](_0x16eca2){const _0x4571f5=_0x7011be;if(!(this[_0x4571f5(0x48e)]instanceof k))throw new TypeError(_0x4571f5(0x3f1));const _0x33b143=_0x16eca2[_0x4571f5(0x2af)](_0x1a7bd7=>{const _0x2b2376=_0x4571f5,_0x1295bd=this[_0x2b2376(0x3c2)][_0x2b2376(0x3dc)][_0x2b2376(0x1b2)](this[_0x2b2376(0x3c2)][_0x2b2376(0x3dc)][_0x2b2376(0x24b)]()[_0x2b2376(0x343)])(_0x1a7bd7[_0x2b2376(0x459)],null)||_0x1a7bd7['mutations'];return{..._0x1a7bd7,'mutations':_0x1295bd};});this[_0x4571f5(0x3cc)](),this[_0x4571f5(0x235)](this[_0x4571f5(0x48e)][_0x4571f5(0x474)](_0x33b143)),this['_unlockTransition']();}[_0x7011be(0x39e)](){const _0x4df300=_0x7011be;this['_lockTransition'](),this[_0x4df300(0x235)](this[_0x4df300(0x48e)]['toggleOffline']()),this['_unlockTransition']();}[_0x7011be(0x2d0)](_0x2c13ee=!0x1){const _0x170cea=_0x7011be;this[_0x170cea(0x3cc)](),this['_updateState'](this['_state'][_0x170cea(0x485)]()),this[_0x170cea(0x285)]();const _0x11ffda=this[_0x170cea(0x48e)];_0x2c13ee&&_0x11ffda instanceof pe&&(this[_0x170cea(0x3cc)](),this[_0x170cea(0x235)](_0x11ffda[_0x170cea(0x3fd)]()),this[_0x170cea(0x285)]());}async['_createInitialState'](){return new Promise(_0x2a4a9b=>{const _0x223447=_0x312b;this[_0x223447(0x3d5)][_0x223447(0x364)][_0x223447(0x185)](_0x4d0f5c(0x1))[_0x223447(0x376)](async _0x714c8c=>{const _0x567e36=_0x223447;_0x2a4a9b(await this[_0x567e36(0x46d)](_0x714c8c===G['ONLINE']));});});}[_0x7011be(0x4e1)](){const _0x3fec8a=_0x7011be,_0x41bec3=this[_0x3fec8a(0x363)];return{'onStateChange':(_0x2cfb07,_0x289613)=>{const _0x4e1073=_0x3fec8a;if(_0x2cfb07!==this[_0x4e1073(0x48e)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x2cfb07[_0x4e1073(0x31f)]+'\x0aAfter:\x20'+_0x289613[_0x4e1073(0x31f)]+'\x0aCurrent:\x20'+this[_0x4e1073(0x48e)][_0x4e1073(0x31f)]);this[_0x4e1073(0x235)](_0x289613);},'onSendChangeset':_0x4a7576=>{const _0x34a753=_0x3fec8a,_0x2cf878={'eventID':_0x3edc6c['SUBMIT_CHANGESET'],'data':{'unitID':_0x4a7576['unitID'],'unitType':this[_0x34a753(0x3fa)],'changeset':_0x4a7576,'memberID':this[_0x34a753(0x3d5)][_0x34a753(0x34b)]()}};this[_0x34a753(0x3d5)][_0x34a753(0x4bb)](_0x2cf878,this[_0x34a753(0x363)]);},'onMissingChangesets':({from:_0x171e58,to:_0x3aa942})=>{const _0x161d59=_0x3fec8a;this[_0x161d59(0x1b4)][_0x161d59(0x368)]('[CollaborationEntity]',_0x161d59(0x18f)+_0x171e58+_0x161d59(0x4a3)+_0x3aa942);const _0x55e040={'eventID':_0x3edc6c[_0x161d59(0x1d8)],'data':{'unitID':_0x41bec3,'unitType':this[_0x161d59(0x3fa)],'from':_0x171e58,'to':_0x3aa942}};this[_0x161d59(0x3d5)][_0x161d59(0x4bb)](_0x55e040,this[_0x161d59(0x363)]);}};}async['_createInitialStateImpl'](_0x182500){const _0x30d2bd=_0x7011be;var _0x592d88,_0x254460;const _0x3dc02e=await this[_0x30d2bd(0x40d)][_0x30d2bd(0x403)](this[_0x30d2bd(0x363)]),_0x5875eb=(_0x592d88=_0x3dc02e==null?void 0x0:_0x3dc02e[_0x30d2bd(0x459)])!=null?_0x592d88:[],_0x4cf22b=(_0x254460=_0x3dc02e==null?void 0x0:_0x3dc02e['awaitingChangeset'])!=null?_0x254460:null,_0x45873d=this[_0x30d2bd(0x363)];try{this['_replayCachedMutations'](_0x4cf22b,_0x5875eb);}catch(_0xedd2b0){this[_0x30d2bd(0x1b4)][_0x30d2bd(0x174)](_0xedd2b0);}const _0x564a37=this['_createHandler']();if(_0x182500){const _0x48972c=ks(this[_0x30d2bd(0x47c)],_0x45873d,this[_0x30d2bd(0x3fa)],_0x4cf22b,_0x5875eb,_0x564a37);return _0x48972c instanceof K?_0x48972c['_schedule']():(_0x48972c instanceof X||_0x48972c instanceof Q)&&_0x48972c[_0x30d2bd(0x24a)](),_0x48972c;}return this[_0x30d2bd(0x47c)][_0x30d2bd(0x1cb)](te,_0x45873d,this[_0x30d2bd(0x3fa)],_0x4cf22b,_0x5875eb,_0x564a37);}[_0x7011be(0x4db)](_0x577960,_0x1044ec){const _0x1f3331=_0x7011be;var _0x1038b0,_0x5acd84;const _0x1d4cec=this[_0x1f3331(0x3c2)][_0x1f3331(0x3dc)][_0x1f3331(0x1b2)](this['_compressMutationService'][_0x1f3331(0x3dc)][_0x1f3331(0x24b)]()['COMPRESS_MUTATION_APPLY']);(_0x1038b0=_0x1d4cec((_0x577960==null?void 0x0:_0x577960[_0x1f3331(0x459)])||[],null))==null||_0x1038b0['forEach'](_0x41c9c9=>this[_0x1f3331(0x2c6)][_0x1f3331(0x431)](_0x41c9c9['id'],_0x41c9c9[_0x1f3331(0x329)])),(_0x5acd84=_0x1d4cec(_0x1044ec||[],null))==null||_0x5acd84['forEach'](_0x52f9db=>this[_0x1f3331(0x2c6)]['executeCommand'](_0x52f9db['id'],_0x52f9db[_0x1f3331(0x329)]));}};tt=Wt([p(0x3,_0x4f6f98(_0x8f002c)),p(0x4,_0x4f6f98(D)),p(0x5,_0x4f6f98(_0x479762)),p(0x6,_0x4f6f98(_0x95964d)),p(0x7,_0x4f6f98(_0xd9ea18)),p(0x8,_0x2f2df5),p(0x9,_0x2cea1d),p(0xa,_0x13bf44),p(0xb,_0x28c276),p(0xc,_0x59d638(nt))],tt);let Ot=class extends tt{constructor(_0x42c9ba,_0x4fe291,_0x48da4b,_0x4a7bed,_0x26ecdc,_0x1e2639,_0x12fd87,_0x280dee,_0x2fdb26,_0x19b374,_0x388e3e,_0x4b8c93,_0x5cfd08,_0x13e5ec,_0x4725ed,_0x5da595,_0x2713bc){const _0x256875=_0x7011be;super(_0x42c9ba,_0x48da4b,_0x4fe291,_0x4a7bed,_0x26ecdc,_0x1e2639,_0x12fd87,_0x280dee,_0x5cfd08,_0x13e5ec,_0x4725ed,_0x5da595,_0x2713bc),this[_0x256875(0x363)]=_0x42c9ba,this[_0x256875(0x4b7)]=_0x4fe291,this['_docStateChangeManagerService']=_0x2fdb26,this['_docTransformIMECacheService']=_0x19b374,this[_0x256875(0x307)]=_0x388e3e,this[_0x256875(0x2f6)]=_0x4b8c93;}['_createHandler'](){const _0xd1bd75=_0x7011be,_0x25e8b0=super[_0xd1bd75(0x4e1)]();return _0x25e8b0['onTransformIME']=_0x406589=>this[_0xd1bd75(0x1ab)][_0xd1bd75(0x3a2)](_0x406589),_0x25e8b0['onTransformSelections']=_0x197864=>this[_0xd1bd75(0x307)][_0xd1bd75(0x250)](_0x197864),_0x25e8b0[_0xd1bd75(0x2ed)]=_0x5e55f6=>this[_0xd1bd75(0x2f6)][_0xd1bd75(0x25f)](_0x5e55f6),_0x25e8b0[_0xd1bd75(0x43f)]=_0x12dd36=>this[_0xd1bd75(0x1ab)][_0xd1bd75(0x179)](_0x12dd36),_0x25e8b0;}async[_0x7011be(0x1f6)](){const _0x262411=_0x7011be,_0x1433bf=await super[_0x262411(0x1f6)]();return this[_0x262411(0x26d)](this[_0x262411(0x2c6)][_0x262411(0x2b4)]((_0x39ee1f,_0x1d4723)=>{const _0x358732=_0x262411;if(_0x39ee1f['type']!==_0xba6e30[_0x358732(0x30e)]||_0x1d4723!=null&&_0x1d4723[_0x358732(0x2a5)]||_0x1d4723!=null&&_0x1d4723[_0x358732(0x218)])return;const _0x15d939=_0x39ee1f[_0x358732(0x329)];if((_0x15d939==null?void 0x0:_0x15d939[_0x358732(0x36b)])!==this[_0x358732(0x363)])return;let _0x40ac88=_0x39ee1f;if(_0x40ac88['id']===_0x565f33['id']){const _0x2f3e16=_0x40ac88['params'];_0x40ac88={'id':_0x565f33['id'],'type':_0xba6e30[_0x358732(0x30e)],'params':{'unitId':_0x2f3e16['unitId'],'actions':_0x2f3e16[_0x358732(0x1d0)],'textRanges':null}};}const _0x52ad5c=this[_0x358732(0x3c2)][_0x358732(0x3dc)][_0x358732(0x1b2)](this[_0x358732(0x3c2)][_0x358732(0x3dc)][_0x358732(0x24b)]()[_0x358732(0x319)])([_0x40ac88],null)||[_0x40ac88];this[_0x358732(0x2a3)](_0x52ad5c[0x0]);})),_0x1433bf;}};Ot=Wt([p(0x3,_0x4f6f98(_0x8f002c)),p(0x4,_0x4f6f98(D)),p(0x5,_0x4f6f98(_0x479762)),p(0x6,_0x4f6f98(_0x95964d)),p(0x7,_0x4f6f98(_0xd9ea18)),p(0x8,_0x4f6f98(_0x21dbbb)),p(0x9,_0x4f6f98(Ze)),p(0xa,_0x4f6f98(et)),p(0xb,_0x4f6f98(Ft)),p(0xc,_0x2f2df5),p(0xd,_0x2cea1d),p(0xe,_0x13bf44),p(0xf,_0x28c276),p(0x10,_0x59d638(nt))],Ot);let Dt=class extends tt{constructor(_0x56d186,_0x4755c8,_0x26ccca,_0x53fdaa,_0x1aec0d,_0x1a5cad,_0x3d64da,_0x19d6bb,_0x4ddd7d,_0x3c0f2c,_0x442225,_0x219e27,_0x2cab58,_0x5d1ebd){const _0x4e69fe=_0x7011be;super(_0x56d186,_0x26ccca,_0x4755c8,_0x53fdaa,_0x1aec0d,_0x1a5cad,_0x3d64da,_0x19d6bb,_0x3c0f2c,_0x442225,_0x219e27,_0x2cab58,_0x5d1ebd),this[_0x4e69fe(0x363)]=_0x56d186,this[_0x4e69fe(0x4b7)]=_0x4755c8,this['_sheetTransformSelectionsService']=_0x4ddd7d;}[_0x7011be(0x4e1)](){const _0x395168=_0x7011be,_0x1539b7=super[_0x395168(0x4e1)]();return _0x1539b7[_0x395168(0x2e5)]=_0x4139b4=>this[_0x395168(0x4d8)][_0x395168(0x250)](_0x4139b4),_0x1539b7;}async[_0x7011be(0x1f6)](){const _0x7e9bb4=_0x7011be,_0x3d7382=await super[_0x7e9bb4(0x1f6)]();return this[_0x7e9bb4(0x26d)](this[_0x7e9bb4(0x2c6)][_0x7e9bb4(0x2b4)]((_0x816f25,_0x141a46)=>{const _0x829b07=_0x7e9bb4;if(_0x816f25['type']!==_0xba6e30['MUTATION']||_0x141a46!=null&&_0x141a46['fromCollab']||_0x141a46!=null&&_0x141a46[_0x829b07(0x218)])return;const _0x55cbaa=_0x816f25[_0x829b07(0x329)];if((_0x55cbaa==null?void 0x0:_0x55cbaa[_0x829b07(0x36b)])!==this[_0x829b07(0x363)])return;const _0x406423=_0x816f25,_0x4004e1=this[_0x829b07(0x3c2)][_0x829b07(0x3dc)][_0x829b07(0x1b2)](this[_0x829b07(0x3c2)][_0x829b07(0x3dc)][_0x829b07(0x24b)]()['COMPRESS_MUTATION_SEND'])([_0x406423],null)||[_0x406423];this['_onLocalMutation'](_0x4004e1[0x0]);})),_0x3d7382;}};Dt=Wt([p(0x3,_0x4f6f98(_0x8f002c)),p(0x4,_0x4f6f98(D)),p(0x5,_0x4f6f98(_0x479762)),p(0x6,_0x4f6f98(_0x95964d)),p(0x7,_0x4f6f98(_0xd9ea18)),p(0x8,_0x4f6f98(Qe)),p(0x9,_0x2f2df5),p(0xa,_0x2cea1d),p(0xb,_0x13bf44),p(0xc,_0x28c276),p(0xd,_0x59d638(nt))],Dt);var pr=Object[_0x7011be(0x38b)],vr=Object['getOwnPropertyDescriptor'],Ir=(_0x42728b,_0x35be38,_0x1ea2ff,_0x1bd345)=>{const _0x3d9160=_0x7011be;for(var _0x591be2=_0x1bd345>0x1?void 0x0:_0x1bd345?vr(_0x35be38,_0x1ea2ff):_0x35be38,_0x13d701=_0x42728b[_0x3d9160(0x2db)]-0x1,_0x57d463;_0x13d701>=0x0;_0x13d701--)(_0x57d463=_0x42728b[_0x13d701])&&(_0x591be2=(_0x1bd345?_0x57d463(_0x35be38,_0x1ea2ff,_0x591be2):_0x57d463(_0x591be2))||_0x591be2);return _0x1bd345&&_0x591be2&&pr(_0x35be38,_0x1ea2ff,_0x591be2),_0x591be2;},dt=(_0x31a3f5,_0x2c13b8)=>(_0x5a4a6e,_0x55e8a0)=>_0x2c13b8(_0x5a4a6e,_0x55e8a0,_0x31a3f5);let Ae=class extends _0x101c13{constructor(_0x50fe5d,_0x110343,_0x206214){const _0x394ed3=_0x7011be;super(),l(this,_0x394ed3(0x2f4),new Map()),l(this,_0x394ed3(0x40b),new _0x4339d0()),(this[_0x394ed3(0x47c)]=_0x50fe5d,this['_collabSessionService']=_0x110343,this[_0x394ed3(0x2c3)]=_0x206214,this[_0x394ed3(0x1f6)]());}[_0x7011be(0x326)](){const _0x2b2c0d=_0x7011be;super[_0x2b2c0d(0x326)](),this[_0x2b2c0d(0x2f4)][_0x2b2c0d(0x429)](_0x520540=>_0x520540[_0x2b2c0d(0x326)]()),this['_entities'][_0x2b2c0d(0x2d3)]();}[_0x7011be(0x37e)](_0x4e95be){const _0x30abcf=_0x7011be;var _0x3c2970;return(_0x3c2970=this[_0x30abcf(0x2f4)][_0x30abcf(0x3be)](_0x4e95be))!=null?_0x3c2970:null;}['getCollabEntity$'](_0x200db5){const _0x25da69=_0x7011be,_0x34a6c3=this[_0x25da69(0x37e)](_0x200db5);return _0x34a6c3?_0x1f8bdc(_0x34a6c3):this['_entityInit$'][_0x25da69(0x185)](_0x273b1e(_0xc9fb91=>_0xc9fb91[_0x25da69(0x363)]===_0x200db5));}[_0x7011be(0x1f6)](){const _0x4fe7ce=_0x7011be;this[_0x4fe7ce(0x2c3)][_0x4fe7ce(0x4c7)](_0x223004[_0x4fe7ce(0x42d)])[_0x4fe7ce(0x185)](_0x25a74d(this['dispose$']),_0x2e63b2(0x10))[_0x4fe7ce(0x376)](async _0x4fae28=>{const _0x274150=_0x4fe7ce,_0x27d202=_0x4fae28[_0x274150(0x3bf)](),_0x577907=await this['_startCollaboration'](_0x27d202,H[_0x274150(0x42d)]);this[_0x274150(0x2f4)]['set'](_0x27d202,_0x577907);}),this[_0x4fe7ce(0x2c3)][_0x4fe7ce(0x4c7)](_0x223004['UNIVER_DOC'])[_0x4fe7ce(0x185)](_0x25a74d(this[_0x4fe7ce(0x3f3)]),_0x2e63b2(0x10))['pipe'](_0x273b1e(_0x47d69d=>!_0x47d69d['getUnitId']()[_0x4fe7ce(0x2e1)]('__')))[_0x4fe7ce(0x376)](async _0x36cfc6=>{const _0x1c3335=_0x4fe7ce,_0x2537d6=_0x36cfc6['getUnitId'](),_0x476e19=await this[_0x1c3335(0x269)](_0x2537d6,H[_0x1c3335(0x1a0)]);this[_0x1c3335(0x2f4)][_0x1c3335(0x2e0)](_0x2537d6,_0x476e19);}),_0x2b5f15(this[_0x4fe7ce(0x2c3)][_0x4fe7ce(0x2fc)](_0x223004[_0x4fe7ce(0x42d)]),this['_univerInstanceService'][_0x4fe7ce(0x2fc)](_0x223004['UNIVER_DOC']))[_0x4fe7ce(0x185)](_0x25a74d(this[_0x4fe7ce(0x3f3)]))[_0x4fe7ce(0x376)](_0x16a61c=>{const _0x767be2=_0x4fe7ce,_0x56bcda=_0x16a61c[_0x767be2(0x3bf)](),_0x314681=this[_0x767be2(0x2f4)][_0x767be2(0x3be)](_0x56bcda);_0x314681&&(_0x314681[_0x767be2(0x326)](),this['_entities'][_0x767be2(0x415)](_0x56bcda));});}async[_0x7011be(0x269)](_0x40aeb3,_0x46c25f){const _0x10acfc=_0x7011be,_0x29ebbe=await this[_0x10acfc(0x197)]['requireSession'](_0x40aeb3),_0x30ca22=this[_0x10acfc(0x47c)][_0x10acfc(0x1cb)](this[_0x10acfc(0x44f)](_0x46c25f),_0x40aeb3,_0x46c25f,_0x29ebbe);return await _0x30ca22[_0x10acfc(0x395)](),this['_entityInit$'][_0x10acfc(0x40f)](_0x30ca22),_0x30ca22;}[_0x7011be(0x44f)](_0x146ac6){const _0x59684a=_0x7011be;switch(_0x146ac6){case H[_0x59684a(0x1a0)]:return Ot;case H[_0x59684a(0x42d)]:return Dt;default:throw new Error(_0x59684a(0x452)+_0x146ac6);}}};Ae=Ir([dt(0x0,_0x4f6f98(_0x8f002c)),dt(0x1,_0x4f6f98(ce)),dt(0x2,_0x29e7a7)],Ae);const us=[_0x7011be(0x3a5),_0x7011be(0x2da),_0x7011be(0x30d),'red300',_0x7011be(0x382),_0x7011be(0x2fd)];class Gt extends _0xd7d44c{constructor(){const _0x35d845=_0x7011be;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x35d845(0x32f),0x0);}[_0x7011be(0x3b1)](_0x5ed1c3){const _0x579b4f=_0x7011be;if(this[_0x579b4f(0x41d)][_0x579b4f(0x436)](_0x5ed1c3))return this[_0x579b4f(0x41d)]['get'](_0x5ed1c3);const _0x42c46e=us[this[_0x579b4f(0x32f)]];return this[_0x579b4f(0x32f)]=(this[_0x579b4f(0x32f)]+0x1)%us[_0x579b4f(0x2db)],this[_0x579b4f(0x41d)]['set'](_0x5ed1c3,_0x42c46e),_0x42c46e;}}var Er=Object[_0x7011be(0x38b)],Cr=Object[_0x7011be(0x24f)],br=(_0x1d2c27,_0x560b1f,_0x4dbedb,_0x520479)=>{const _0x2f59bd=_0x7011be;for(var _0x3a4b57=_0x520479>0x1?void 0x0:_0x520479?Cr(_0x560b1f,_0x4dbedb):_0x560b1f,_0x504b22=_0x1d2c27[_0x2f59bd(0x2db)]-0x1,_0x29e355;_0x504b22>=0x0;_0x504b22--)(_0x29e355=_0x1d2c27[_0x504b22])&&(_0x3a4b57=(_0x520479?_0x29e355(_0x560b1f,_0x4dbedb,_0x3a4b57):_0x29e355(_0x3a4b57))||_0x3a4b57);return _0x520479&&_0x3a4b57&&Er(_0x560b1f,_0x4dbedb,_0x3a4b57),_0x3a4b57;},fe=(_0x1ae2b7,_0x427dd8)=>(_0x47b3e0,_0x566158)=>_0x427dd8(_0x47b3e0,_0x566158,_0x1ae2b7);const Tr=0x12c,Rr=0x64,Or=()=>{let _0x5a9637=[],_0x555b84=!0x1;return _0x545dc1=>{const _0x5d2bdd=_0x312b;_0x5a9637[_0x5d2bdd(0x1c4)](_0x545dc1),_0x555b84||(_0x555b84=!0x0,setTimeout(()=>{const _0x473889=_0x5d2bdd;_0x5a9637[_0x473889(0x429)](_0x43f395=>_0x43f395()),_0x5a9637=[],_0x555b84=!0x1;}));};};let wt=class extends _0x101c13{constructor(_0x39dcbf,_0x21acb1,_0x422b2b,_0x2f2d6f,_0x1b912c,_0x5271b2,_0x458187,_0x42adc9){const _0x1d4a15=_0x7011be;super(),l(this,_0x1d4a15(0x1ed),!0x1),l(this,_0x1d4a15(0x1f6),!0x1),l(this,_0x1d4a15(0x3b3),new _0x2048f5(new Map())),l(this,'cursorInfo$',this[_0x1d4a15(0x3b3)]['asObservable']()),l(this,'_roomMembers$',new _0x2048f5([])),l(this,_0x1d4a15(0x22f),this[_0x1d4a15(0x2b8)]['pipe'](_0x3d52b8(Tr))),l(this,_0x1d4a15(0x31c),_0x3c0cdf((_0x1c6ff5,_0x822894)=>{const _0x17fe56=_0x1d4a15,_0x2b31b5={'eventID':_0x3edc6c['UPDATE_CURSOR'],'data':{'unitID':this[_0x17fe56(0x363)],'memberID':this[_0x17fe56(0x348)][_0x17fe56(0x34b)](),'selection':_0x26b6ee(_0x1c6ff5,_0x822894['range'])}};this[_0x17fe56(0x348)][_0x17fe56(0x4bb)](_0x2b31b5,this[_0x17fe56(0x363)]);},Rr)),(this[_0x1d4a15(0x363)]=_0x39dcbf,this[_0x1d4a15(0x348)]=_0x21acb1,this[_0x1d4a15(0x47c)]=_0x422b2b,this[_0x1d4a15(0x23e)]=_0x2f2d6f,this[_0x1d4a15(0x328)]=_0x1b912c,this[_0x1d4a15(0x2c3)]=_0x5271b2,this['_commandService']=_0x458187,this['_refRangeService']=_0x42adc9);}get[_0x7011be(0x47d)](){const _0x35adcb=_0x7011be;return this[_0x35adcb(0x3b3)][_0x35adcb(0x2d5)]();}get[_0x7011be(0x278)](){const _0x8c21cf=_0x7011be;return this[_0x8c21cf(0x2b8)][_0x8c21cf(0x2d5)]();}[_0x7011be(0x326)](){const _0x3cd4f6=_0x7011be;super[_0x3cd4f6(0x326)](),this[_0x3cd4f6(0x3b3)]['next'](new Map()),this[_0x3cd4f6(0x3b3)][_0x3cd4f6(0x4e0)](),this[_0x3cd4f6(0x2b8)]['next']([]),this['_roomMembers$']['complete']();}[_0x7011be(0x395)](){const _0x4245de=_0x7011be;this[_0x4245de(0x1f6)]||(this[_0x4245de(0x1f6)]=!0x0,this[_0x4245de(0x348)][_0x4245de(0x364)]['pipe'](_0x25a74d(this[_0x4245de(0x3f3)]))['subscribe'](_0x21253c=>{const _0x2b918c=_0x4245de;_0x21253c===G[_0x2b918c(0x493)]?this[_0x2b918c(0x2d0)]():this['_toggleOffline']();}),this[_0x4245de(0x348)][_0x4245de(0x27f)][_0x4245de(0x185)](_0x25a74d(this['dispose$']))[_0x4245de(0x376)](_0xeb587e=>{const _0x16f254=_0x4245de,_0x25f0c1=_0xeb587e['eventID'];_0x25f0c1===_0x3edc6c[_0x16f254(0x17b)]&&this[_0x16f254(0x39d)](_0xeb587e),_0x25f0c1===_0x3edc6c['USERS_LEAVE']&&this[_0x16f254(0x1c1)](_0xeb587e);}),this[_0x4245de(0x1f8)](),this[_0x4245de(0x26d)](this[_0x4245de(0x2c6)][_0x4245de(0x2b4)](_0x1d644c=>{const _0x14a9c6=_0x4245de;if(this[_0x14a9c6(0x1ed)]&&_0x1d644c['id']===_0x49df62['id']&&_0x1d644c[_0x14a9c6(0x329)]['unitId']===this[_0x14a9c6(0x363)]){const _0x27c7de=_0x1d644c[_0x14a9c6(0x329)];this[_0x14a9c6(0x31c)](_0x27c7de[_0x14a9c6(0x30f)],_0x27c7de[_0x14a9c6(0x39b)][0x0]);}})));}[_0x7011be(0x39d)](_0x567dbc){const _0x158024=_0x7011be;var _0x65041d,_0x4d464;const {memberID:_0x515abc,selection:_0x151ec2}=_0x567dbc['data'],{sheetName:_0x1cce09,range:_0x293c9a}=_0x1f6a7e(_0x151ec2),_0x2b41a5={'name':(_0x4d464=(_0x65041d=this['_memberService'][_0x158024(0x2a1)](this[_0x158024(0x363)],_0x515abc))==null?void 0x0:_0x65041d[_0x158024(0x208)])!=null?_0x4d464:_0x158024(0x23a),'range':this[_0x158024(0x20b)](_0x1cce09,_0x293c9a),'sheetID':_0x1cce09,'color':this[_0x158024(0x23e)]['assignAColorForMemberID'](_0x515abc),'selection':_0x151ec2},_0x578bad=this['cursorInfo'];_0x578bad[_0x158024(0x2e0)](_0x515abc,_0x2b41a5),this[_0x158024(0x3b3)][_0x158024(0x40f)](_0x578bad);}[_0x7011be(0x1c1)](_0x8e9dfa){const _0x2aa4f9=_0x7011be,{memberID:_0x2fc3cd}=_0x8e9dfa[_0x2aa4f9(0x253)],_0x1293ac=this[_0x2aa4f9(0x47d)];_0x1293ac[_0x2aa4f9(0x415)](_0x2fc3cd),this['_cursorInfo$'][_0x2aa4f9(0x40f)](_0x1293ac);}[_0x7011be(0x20b)](_0x9c4781,_0xffc67){const _0x5ab22a=_0x7011be;var _0x527839,_0x18654b;const _0x270554=(_0x18654b=(_0x527839=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x5ab22a(0x363)]))==null?void 0x0:_0x527839[_0x5ab22a(0x391)](_0x9c4781))==null?void 0x0:_0x18654b[_0x5ab22a(0x2d1)]();return(_0x270554==null?void 0x0:_0x270554[_0x5ab22a(0x1f4)](_0x33d544=>_0x32f126['contains'](_0x33d544,_0xffc67)))||_0xffc67;}['_onRefRangeChange'](){const _0x1ed77d=_0x7011be,_0x24262c=new _0x45d03e(),_0x2dbef3=Or(),_0x3ff0df=()=>{const _0x229f59=_0x312b;_0x24262c['dispose']();const _0x5a5a84=(_0x186f66,_0x1f6e01,_0x4c09ca,_0x740abe)=>{const _0xb1f2dd=_0x312b;let _0x4527e9=[];switch(_0x186f66['id']){case _0x217673[_0xb1f2dd(0x1ee)]:{_0x4527e9=_0x38a975(_0x186f66,_0x740abe);break;}case _0x217673['DeleteRangeMoveUpCommandId']:{_0x4527e9=_0x18bdab(_0x186f66,_0x740abe);break;}case _0x217673['InsertColCommandId']:{_0x4527e9=_0x3ad79c(_0x186f66,_0x740abe);break;}case _0x217673['InsertRangeMoveDownCommandId']:{_0x4527e9=_0x418883(_0x186f66,_0x740abe);break;}case _0x217673['InsertRangeMoveRightCommandId']:{_0x4527e9=_0x393880(_0x186f66,_0x740abe);break;}case _0x217673[_0xb1f2dd(0x327)]:{_0x4527e9=_0x468758(_0x186f66,_0x740abe);break;}case _0x217673['MoveRangeCommandId']:{_0x4527e9=_0x35b8eb(_0x186f66,_0x740abe);break;}case _0x217673[_0xb1f2dd(0x2a2)]:{_0x4527e9=_0x554a8c(_0x186f66,_0x740abe);break;}case _0x217673[_0xb1f2dd(0x2cc)]:{_0x4527e9=_0x57f03f(_0x186f66,_0x740abe);break;}}const _0x36a6f1=_0x140a5c(_0x4527e9,_0x740abe),_0x34c313=this['cursorInfo'][_0xb1f2dd(0x3be)](_0x1f6e01);if(_0x34c313&&_0x36a6f1){const _0x295c62={..._0x34c313,'range':_0x36a6f1};this['cursorInfo']['set'](_0x1f6e01,_0x295c62),_0x2dbef3(()=>{const _0x307202=_0xb1f2dd,_0x872449=this['_refRangeService'][_0x307202(0x36e)](_0x36a6f1,_0x2dd881=>(_0x872449[_0x307202(0x326)](),_0x5a5a84(_0x2dd881,_0x1f6e01,_0x4c09ca,_0x36a6f1)));_0x24262c[_0x307202(0x3cb)](_0x872449);});}return{'redos':[],'undos':[]};};this[_0x229f59(0x47d)][_0x229f59(0x429)]((_0x2fd1b3,_0x1e5947)=>{const _0x4cb477=_0x229f59,{range:_0x49a543,sheetID:_0x3c839b}=_0x2fd1b3,_0x888a9=this[_0x4cb477(0x3e0)][_0x4cb477(0x36e)](_0x49a543,_0x3897b7=>(_0x888a9[_0x4cb477(0x326)](),_0x5a5a84(_0x3897b7,_0x1e5947,_0x3c839b,_0x49a543)));_0x24262c[_0x4cb477(0x3cb)](_0x888a9);});};this['disposeWithMe'](_0x4b6fbe(this[_0x1ed77d(0x3b3)][_0x1ed77d(0x376)](()=>{_0x3ff0df();})));}[_0x7011be(0x2d0)](){const _0x573aaa=_0x7011be;var _0x4e09ae,_0x5a70dd;if(this[_0x573aaa(0x1ed)]=!0x0,((_0x4e09ae=this['_univerInstanceService'][_0x573aaa(0x223)]())==null?void 0x0:_0x4e09ae[_0x573aaa(0x3bf)]())!==this[_0x573aaa(0x363)])return;const _0x4e38a5=(_0x5a70dd=this[_0x573aaa(0x47c)][_0x573aaa(0x3be)](_0x23d40e)['getCurrentSelections']())==null?void 0x0:_0x5a70dd[0x0],_0x3281ae=this[_0x573aaa(0x2c3)]['getCurrentUnitForType'](_0x223004[_0x573aaa(0x42d)])[_0x573aaa(0x23c)]();_0x4e38a5&&_0x3281ae&&this[_0x573aaa(0x31c)](_0x3281ae['getSheetId'](),_0x4e38a5);}[_0x7011be(0x39e)](){const _0x1170bf=_0x7011be;this[_0x1170bf(0x1ed)]=!0x1;}};wt=br([fe(0x2,_0x4f6f98(_0x8f002c)),fe(0x3,_0x4f6f98(Gt)),fe(0x4,_0x4f6f98(ae)),fe(0x5,_0x29e7a7),fe(0x6,_0x2cea1d),fe(0x7,_0x4f6f98(_0x5f205b))],wt);var Dr=Object[_0x7011be(0x38b)],wr=Object[_0x7011be(0x24f)],Pr=(_0x3000fd,_0x30b5d9,_0x1a3e06,_0xf81253)=>{const _0x51eef7=_0x7011be;for(var _0x5d4445=_0xf81253>0x1?void 0x0:_0xf81253?wr(_0x30b5d9,_0x1a3e06):_0x30b5d9,_0x3db3f7=_0x3000fd[_0x51eef7(0x2db)]-0x1,_0x55a7ae;_0x3db3f7>=0x0;_0x3db3f7--)(_0x55a7ae=_0x3000fd[_0x3db3f7])&&(_0x5d4445=(_0xf81253?_0x55a7ae(_0x30b5d9,_0x1a3e06,_0x5d4445):_0x55a7ae(_0x5d4445))||_0x5d4445);return _0xf81253&&_0x5d4445&&Dr(_0x30b5d9,_0x1a3e06,_0x5d4445),_0x5d4445;},ie=(_0x51b8b4,_0x3e22fd)=>(_0x4acac7,_0x273c99)=>_0x3e22fd(_0x4acac7,_0x273c99,_0x51b8b4);const yr=0x12c,Nr=0x64;let Pt=class extends _0x101c13{constructor(_0x51e1d5,_0x417451,_0x2dafad,_0xebbdef,_0x4e7ab6,_0x43c4d2,_0x4cc1d7,_0x2f29cb,_0x32308d){const _0x138b5a=_0x7011be;super(),l(this,_0x138b5a(0x1ed),!0x1),l(this,'_init',!0x1),l(this,_0x138b5a(0x3b3),new _0x2048f5(new Map())),l(this,'cursorInfo$',this[_0x138b5a(0x3b3)][_0x138b5a(0x1f7)]()),l(this,'_roomMembers$',new _0x2048f5([])),l(this,_0x138b5a(0x22f),this['_roomMembers$']['pipe'](_0x3d52b8(yr))),l(this,_0x138b5a(0x31c),_0x3c0cdf(_0x26656d=>{const _0x9bae8f=_0x138b5a,_0xb8ad6b={'eventID':_0x3edc6c['UPDATE_CURSOR'],'data':{'unitID':this[_0x9bae8f(0x363)],'memberID':this[_0x9bae8f(0x348)]['getMemberID'](),'selection':Hs(_0x26656d)}};this[_0x9bae8f(0x348)]['send'](_0xb8ad6b,this[_0x9bae8f(0x363)]);},Nr)),(this[_0x138b5a(0x363)]=_0x51e1d5,this[_0x138b5a(0x348)]=_0x417451,this[_0x138b5a(0x47c)]=_0x2dafad,this[_0x138b5a(0x23e)]=_0xebbdef,this[_0x138b5a(0x328)]=_0x4e7ab6,this['_syncEditingCollabCursorService']=_0x43c4d2,this['_transformService']=_0x4cc1d7,this[_0x138b5a(0x2c3)]=_0x2f29cb,this['_commandService']=_0x32308d);}get['cursorInfo'](){const _0x244b05=_0x7011be;return this[_0x244b05(0x3b3)]['getValue']();}get['roomMembers'](){const _0x465bc3=_0x7011be;return this['_roomMembers$'][_0x465bc3(0x2d5)]();}[_0x7011be(0x326)](){const _0x3816c5=_0x7011be;super[_0x3816c5(0x326)](),this[_0x3816c5(0x3b3)][_0x3816c5(0x40f)](new Map()),this[_0x3816c5(0x3b3)][_0x3816c5(0x4e0)](),this[_0x3816c5(0x2b8)][_0x3816c5(0x40f)]([]),this[_0x3816c5(0x2b8)][_0x3816c5(0x4e0)]();}[_0x7011be(0x395)](){const _0x300a4f=_0x7011be;this[_0x300a4f(0x1f6)]||(this[_0x300a4f(0x1f6)]=!0x0,this['_session'][_0x300a4f(0x364)][_0x300a4f(0x185)](_0x25a74d(this['dispose$']))[_0x300a4f(0x376)](_0x56ad2c=>{const _0x31b522=_0x300a4f;_0x56ad2c===G[_0x31b522(0x493)]?this[_0x31b522(0x2d0)]():this[_0x31b522(0x39e)]();}),this[_0x300a4f(0x348)][_0x300a4f(0x27f)][_0x300a4f(0x185)](_0x25a74d(this[_0x300a4f(0x3f3)]))[_0x300a4f(0x376)](_0x16dba5=>{const _0x4d3efe=_0x300a4f,_0x26c837=_0x16dba5[_0x4d3efe(0x2fb)];_0x26c837===_0x3edc6c[_0x4d3efe(0x17b)]&&this['_onCursorUpdate'](_0x16dba5),_0x26c837===_0x3edc6c['USERS_LEAVE']&&this[_0x4d3efe(0x1c1)](_0x16dba5);}),this['disposeWithMe'](this[_0x300a4f(0x2c6)][_0x300a4f(0x2b4)](_0x21756e=>{const _0x997de2=_0x300a4f,_0x241eec=_0x21756e[_0x997de2(0x329)];_0x241eec!=null&&this[_0x997de2(0x1ed)]&&_0x21756e['id']===_0x30bff4['id']&&_0x241eec[_0x997de2(0x36b)]===this['unitID']&&_0x241eec[_0x997de2(0x182)]===!0x1&&this[_0x997de2(0x31c)](_0x241eec[_0x997de2(0x484)]);})),this['_syncEditingCollabCursorService'][_0x300a4f(0x239)][_0x300a4f(0x185)](_0x25a74d(this[_0x300a4f(0x3f3)]))[_0x300a4f(0x376)](_0x1ca43a=>{const _0x406140=_0x300a4f;if((_0x1ca43a==null?void 0x0:_0x1ca43a['unitID'])!==this['unitID'])return;const _0xd80e89={'eventID':_0x3edc6c[_0x406140(0x17b)],'data':_0x1ca43a};this['_onCursorUpdate'](_0xd80e89);}),this['disposeWithMe'](this[_0x300a4f(0x2c6)][_0x300a4f(0x2b4)](_0x1c0455=>{const _0x3a0551=_0x300a4f;if(_0x1c0455[_0x3a0551(0x329)]==null)return;const _0x5a120d=_0x1c0455[_0x3a0551(0x329)];if(_0x1c0455['id']!==_0x565f33['id']||_0x5a120d[_0x3a0551(0x36b)]!==this[_0x3a0551(0x363)])return;const _0xf9a867={'id':_0x3a0551(0x450),'params':_0x5a120d},_0x1ffc22=this[_0x3a0551(0x47d)];for(const [_0x14eae3,_0x21c824]of _0x1ffc22){const _0x25e9a0={'id':_0x3a0551(0x450),'params':{'unitId':this[_0x3a0551(0x363)],'actions':null,'textRanges':_0x21c824['ranges']}},_0xb2fa32=this[_0x3a0551(0x26f)]['transformMutation'](_0xf9a867,_0x25e9a0,!0x1);if(_0x1870ea(_0xb2fa32))throw _0xb2fa32[_0x3a0551(0x174)];_0x1ffc22[_0x3a0551(0x2e0)](_0x14eae3,{..._0x21c824,'ranges':_0xb2fa32['m2Prime'][_0x3a0551(0x329)][_0x3a0551(0x1a9)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x1ffc22);});})));}[_0x7011be(0x39d)](_0x54f049){const _0x36c4b0=_0x7011be;var _0x441595,_0x306f99;const {memberID:_0x3e3cc6,selection:_0xa8000b}=_0x54f049['data'],_0x8edf7e=ar(_0xa8000b),_0x675afe=(_0x306f99=(_0x441595=this[_0x36c4b0(0x328)]['getMember'](this[_0x36c4b0(0x363)],_0x3e3cc6))==null?void 0x0:_0x441595['name'])!=null?_0x306f99:_0x36c4b0(0x23a),_0xa52a45={'color':this[_0x36c4b0(0x23e)][_0x36c4b0(0x3b1)](_0x3e3cc6),'name':_0x675afe,'ranges':_0x8edf7e},_0x1c6f8b=this[_0x36c4b0(0x47d)];_0x1c6f8b[_0x36c4b0(0x2e0)](_0x3e3cc6,_0xa52a45),this[_0x36c4b0(0x3b3)][_0x36c4b0(0x40f)](_0x1c6f8b);}[_0x7011be(0x1c1)](_0x503301){const _0x3d1147=_0x7011be,{memberID:_0x46ae3a}=_0x503301['data'],_0x5dde61=this['cursorInfo'];_0x5dde61[_0x3d1147(0x415)](_0x46ae3a),this[_0x3d1147(0x3b3)][_0x3d1147(0x40f)](_0x5dde61);}['_toggleOnline'](){const _0x48a9de=_0x7011be;var _0x174e08;if(this[_0x48a9de(0x1ed)]=!0x0,((_0x174e08=this[_0x48a9de(0x2c3)][_0x48a9de(0x223)]())==null?void 0x0:_0x174e08[_0x48a9de(0x3bf)]())!==this[_0x48a9de(0x363)])return;const _0x43933a=this[_0x48a9de(0x47c)][_0x48a9de(0x3be)](_0x1198ee)[_0x48a9de(0x3c7)]();Array[_0x48a9de(0x383)](_0x43933a)&&_0x43933a[_0x48a9de(0x2db)]>0x0&&this[_0x48a9de(0x31c)](_0x43933a);}[_0x7011be(0x39e)](){const _0x2dd987=_0x7011be;this[_0x2dd987(0x1ed)]=!0x1;}};Pt=Pr([ie(0x2,_0x4f6f98(_0x8f002c)),ie(0x3,_0x4f6f98(Gt)),ie(0x4,_0x4f6f98(ae)),ie(0x5,_0x4f6f98(Ft)),ie(0x6,_0x49c306),ie(0x7,_0x29e7a7),ie(0x8,_0x2cea1d)],Pt);var Ur=Object[_0x7011be(0x38b)],Mr=Object[_0x7011be(0x24f)],Ar=(_0x52c3f7,_0x543b04,_0x3d823d,_0x334b11)=>{for(var _0x5713dd=_0x334b11>0x1?void 0x0:_0x334b11?Mr(_0x543b04,_0x3d823d):_0x543b04,_0x4c81a4=_0x52c3f7['length']-0x1,_0x466ea5;_0x4c81a4>=0x0;_0x4c81a4--)(_0x466ea5=_0x52c3f7[_0x4c81a4])&&(_0x5713dd=(_0x334b11?_0x466ea5(_0x543b04,_0x3d823d,_0x5713dd):_0x466ea5(_0x5713dd))||_0x5713dd);return _0x334b11&&_0x5713dd&&Ur(_0x543b04,_0x3d823d,_0x5713dd),_0x5713dd;},ft=(_0x15b795,_0xf2af68)=>(_0x2d928f,_0x59fce0)=>_0xf2af68(_0x2d928f,_0x59fce0,_0x15b795);let ge=class extends _0x101c13{constructor(_0x2b26eb,_0x106919,_0x29d054){const _0x579db0=_0x7011be;super(),l(this,_0x579db0(0x2f4),new Map()),l(this,_0x579db0(0x40b),new _0x4339d0()),(this['_univerInstanceService']=_0x2b26eb,this[_0x579db0(0x47c)]=_0x106919,this['_collabSessionService']=_0x29d054,this[_0x579db0(0x1f6)]());}[_0x7011be(0x326)](){const _0x5841ef=_0x7011be;super['dispose'](),this['_entityInit$'][_0x5841ef(0x4e0)](),this[_0x5841ef(0x2f4)]['forEach'](_0x25b343=>_0x25b343[_0x5841ef(0x326)]());}[_0x7011be(0x321)](_0x144187){const _0x5838fb=_0x7011be;return this['_entities'][_0x5838fb(0x436)](_0x144187)?this['_entities']['get'](_0x144187)[_0x5838fb(0x427)]:this[_0x5838fb(0x40b)][_0x5838fb(0x185)](_0x1e07a2(_0x2e797b=>_0x2e797b[_0x5838fb(0x363)]===_0x144187),_0x396bbc(_0xbbff10=>_0xbbff10[_0x5838fb(0x427)]));}[_0x7011be(0x1f6)](){const _0x413b82=_0x7011be;this[_0x413b82(0x2c3)][_0x413b82(0x4c7)](_0x223004[_0x413b82(0x42d)])['pipe'](_0x25a74d(this[_0x413b82(0x3f3)]))[_0x413b82(0x376)](async _0x287bf7=>{const _0xd6de53=_0x413b82,_0x81220e=_0x287bf7[_0xd6de53(0x3bf)](),_0x470c74=await this[_0xd6de53(0x380)](_0x81220e);this[_0xd6de53(0x40b)][_0xd6de53(0x40f)](_0x470c74),this[_0xd6de53(0x2f4)][_0xd6de53(0x2e0)](_0x81220e,_0x470c74);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x223004[_0x413b82(0x1a0)])[_0x413b82(0x185)](_0x25a74d(this['dispose$']))['pipe'](_0x1e07a2(_0x5f5812=>!_0x5f5812[_0x413b82(0x3bf)]()[_0x413b82(0x2e1)]('__')))[_0x413b82(0x376)](async _0x1d3171=>{const _0x1ff4df=_0x413b82,_0x5d4942=_0x1d3171['getUnitId'](),_0x2ae921=await this[_0x1ff4df(0x4ae)](_0x5d4942);this[_0x1ff4df(0x40b)][_0x1ff4df(0x40f)](_0x2ae921),this[_0x1ff4df(0x2f4)]['set'](_0x5d4942,_0x2ae921);}),_0x2b5f15(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x223004[_0x413b82(0x1a0)]),this[_0x413b82(0x2c3)][_0x413b82(0x2fc)](_0x223004[_0x413b82(0x42d)]))[_0x413b82(0x185)](_0x25a74d(this['dispose$']))[_0x413b82(0x376)](_0x1028b7=>{const _0x15209c=_0x413b82,_0xbdc25e=_0x1028b7[_0x15209c(0x3bf)](),_0x83e901=this[_0x15209c(0x2f4)][_0x15209c(0x3be)](_0xbdc25e);_0x83e901&&(_0x83e901['dispose'](),this[_0x15209c(0x2f4)][_0x15209c(0x415)](_0xbdc25e));});}async[_0x7011be(0x380)](_0x3e186c){const _0x331c52=_0x7011be,_0xae1e21=await this['_collabSessionService']['requireSession'](_0x3e186c),_0x51636a=this[_0x331c52(0x47c)]['createInstance'](wt,_0x3e186c,_0xae1e21);return _0x51636a[_0x331c52(0x395)](),_0x51636a;}async['_startDocCollabCursor'](_0x3d3f5f){const _0x1a90b3=_0x7011be,_0x296c7a=await this['_collabSessionService'][_0x1a90b3(0x1d6)](_0x3d3f5f),_0x46bd8d=this[_0x1a90b3(0x47c)][_0x1a90b3(0x1cb)](Pt,_0x3d3f5f,_0x296c7a);return _0x46bd8d[_0x1a90b3(0x395)](),_0x46bd8d;}};ge=Ar([_0x4a01a1(_0x268ec2[_0x7011be(0x438)],ge),ft(0x0,_0x29e7a7),ft(0x1,_0x4f6f98(_0x8f002c)),ft(0x2,_0x4f6f98(ce))],ge);const Le=0x14,ds=0xc8,mt=0x4,Lr=0x5;function $r(_0x199817,_0x547a19){const _0x422f7f=_0x7011be;let {radius:_0x58ce47,width:_0x5c4abf,height:_0xa28665}=_0x547a19;_0x58ce47=_0x58ce47!=null?_0x58ce47:0x0,_0x5c4abf=_0x5c4abf!=null?_0x5c4abf:0x1e,_0xa28665=_0xa28665!=null?_0xa28665:0x1e;let _0x570c55=0x0,_0x40a488=0x0,_0x4eff7c=0x0;_0x570c55=_0x40a488=_0x4eff7c=Math[_0x422f7f(0x1ba)](_0x58ce47,_0x5c4abf/0x2,_0xa28665/0x2),_0x199817['beginPath'](),_0x199817[_0x422f7f(0x3ea)](_0x570c55,0x0),_0x199817['lineTo'](_0x5c4abf-_0x40a488,0x0),_0x199817[_0x422f7f(0x198)](_0x5c4abf-_0x40a488,_0x40a488,_0x40a488,Math['PI']*0x3/0x2,0x0,!0x1),_0x199817['lineTo'](_0x5c4abf,_0xa28665-_0x4eff7c),_0x199817[_0x422f7f(0x198)](_0x5c4abf-_0x4eff7c,_0xa28665-_0x4eff7c,_0x4eff7c,0x0,Math['PI']/0x2,!0x1),_0x199817[_0x422f7f(0x30c)](0x0,_0xa28665),_0x199817[_0x422f7f(0x30c)](0x0,_0x570c55),_0x199817[_0x422f7f(0x198)](_0x570c55,_0x570c55,_0x570c55,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x199817['closePath'](),_0x547a19['fill']&&(_0x199817[_0x422f7f(0x189)](),_0x199817[_0x422f7f(0x254)]=_0x547a19[_0x422f7f(0x3b6)],_0x547a19[_0x422f7f(0x4c0)]==='evenodd'?_0x199817[_0x422f7f(0x3b6)](_0x422f7f(0x2d9)):_0x199817['fill'](),_0x199817[_0x422f7f(0x19e)]());}class rt extends _0x1390df{constructor(_0x3888a9,_0x28283e){const _0x31c14a=_0x7011be;super(_0x3888a9,_0x28283e),l(this,_0x31c14a(0x18d)),l(this,_0x31c14a(0x1f0)),(this['color']=_0x28283e==null?void 0x0:_0x28283e[_0x31c14a(0x18d)],this[_0x31c14a(0x1f0)]=_0x28283e==null?void 0x0:_0x28283e[_0x31c14a(0x1f0)]);}static[_0x7011be(0x221)](_0x2e3de9,_0x2a36b0){const _0x5eda9a=_0x7011be,{text:_0x464526,color:_0x2288ce}=_0x2a36b0;_0x2e3de9[_0x5eda9a(0x189)](),_0x2e3de9[_0x5eda9a(0x1dd)]=_0x5eda9a(0x3ce);const _0x5b8715=_0x2e3de9['measureText'](_0x464526)[_0x5eda9a(0x467)],_0x18660e=Math[_0x5eda9a(0x1ba)](_0x5b8715+0x2*mt,ds);$r(_0x2e3de9,{'height':Le,'radius':0x4,'width':_0x18660e,'fill':_0x2288ce,'evented':!0x1}),_0x2e3de9[_0x5eda9a(0x254)]=_0x5eda9a(0x21f);const _0x41a9b7=mt,_0x1533d8=Le-Lr,_0x3fe59c=ds-0x2*mt;if(_0x5b8715>_0x3fe59c){let _0x54c21f='',_0x59e3fd=0x0;for(const _0x3a1d10 of _0x464526){const _0x2c113f=_0x2e3de9[_0x5eda9a(0x339)](_0x3a1d10)[_0x5eda9a(0x467)];if(_0x59e3fd+_0x2c113f<=_0x3fe59c-_0x2e3de9['measureText'](_0x5eda9a(0x28e))[_0x5eda9a(0x467)])_0x54c21f+=_0x3a1d10,_0x59e3fd+=_0x2c113f;else{_0x54c21f+='...';break;}}_0x2e3de9[_0x5eda9a(0x175)](_0x54c21f,_0x41a9b7,_0x1533d8);}else _0x2e3de9[_0x5eda9a(0x175)](_0x464526,_0x41a9b7,_0x1533d8);_0x2e3de9[_0x5eda9a(0x19e)]();}[_0x7011be(0x19b)](_0x4f1170){rt['drawWith'](_0x4f1170,this);}}const gt='collab-text-anchor-',jr=_0x7011be(0x267),xr='collab-rect-range-',De=0x6,Hr=1.5,St=0x4,kr=1.5,Br=_0x7011be(0x37d);class fs{constructor(_0x5c1335,_0x228461,_0xed8b20,_0x21c968){const _0x278cb2=_0x7011be;l(this,_0x278cb2(0x41c),[]),l(this,_0x278cb2(0x1df),null),l(this,_0x278cb2(0x24c),null),l(this,'_anchorDot',null),l(this,'_hideTimer',null),l(this,_0x278cb2(0x451),null),(this['_cursor']=_0x5c1335,this['_scene']=_0x228461,this['_docSkeleton']=_0xed8b20,this['_document']=_0x21c968,this[_0x278cb2(0x39f)]());}set['_hover'](_0x21cf27){const _0x10c6be=_0x7011be;_0x21cf27?(this[_0x10c6be(0x488)]&&this[_0x10c6be(0x488)]['hide'](),this['_textBubble']&&this[_0x10c6be(0x24c)][_0x10c6be(0x2ee)]()):(this[_0x10c6be(0x488)]&&this['_anchorDot'][_0x10c6be(0x2ee)](),this[_0x10c6be(0x24c)]&&this['_textBubble'][_0x10c6be(0x3d9)]());}[_0x7011be(0x326)](){const _0x250b4d=_0x7011be;for(const _0x16642b of this['_shapes'])_0x16642b[_0x250b4d(0x326)]();this[_0x250b4d(0x24c)]&&this[_0x250b4d(0x24c)]['dispose'](),this[_0x250b4d(0x488)]&&this[_0x250b4d(0x488)][_0x250b4d(0x326)](),this[_0x250b4d(0x1df)]&&this['_anchor'][_0x250b4d(0x326)](),this[_0x250b4d(0x451)]&&this['_eventUnsubscribe']();}[_0x7011be(0x39f)](){const _0x14f889=_0x7011be;var _0x331a4f;const {_docSkeleton:_0x13156f,_document:_0x3f6077}=this,{color:_0x458920,name:_0x52521a,ranges:_0x111989}=this[_0x14f889(0x2a7)],_0x14086f=_0x3f6077[_0x14f889(0x373)](),{docsLeft:_0x157168,docsTop:_0x3fd842}=_0x14086f,_0x5358e0=new _0x559cdc(_0x14086f,_0x13156f);for(const {startOffset:_0x2e10da,endOffset:_0x3cfd33,collapsed:_0xc3f07e,isActive:_0x1429a6}of _0x111989){const _0x28d2d4=_0x13156f[_0x14f889(0x192)](_0x2e10da),_0x912cd5=_0x13156f[_0x14f889(0x192)](_0x3cfd33);if(_0x1429a6){const {contentBoxPointGroup:_0x9add8a}=_0x5358e0['getRangePointData'](_0x912cd5,_0x912cd5);if(_0x9add8a[_0x14f889(0x2db)]===0x0)continue;this['_drawAnchor'](_0x458920,_0x9add8a,_0x157168,_0x3fd842,_0x52521a),this[_0x14f889(0x451)]=this[_0x14f889(0x41f)]();}if(!_0xc3f07e&&_0x28d2d4&&_0x912cd5){if(_0x585369(_0x28d2d4,_0x912cd5)){const _0x39da65=new _0x562558(_0x14086f,_0x13156f),{pointGroup:_0x5d490a}=(_0x331a4f=_0x39da65['getRangePointData'](_0x28d2d4,_0x912cd5))!=null?_0x331a4f:{};if(_0x5d490a==null||_0x5d490a[_0x14f889(0x2db)]===0x0)continue;this[_0x14f889(0x3f6)](_0x458920,_0x5d490a,_0x157168,_0x3fd842);}else{const {contentBoxPointGroup:_0x5a6e42}=_0x5358e0[_0x14f889(0x3ed)](_0x28d2d4,_0x912cd5);if(_0x5a6e42['length']===0x0)continue;this[_0x14f889(0x2b0)](_0x458920,_0x5a6e42,_0x157168,_0x3fd842);}}}}['_drawAnchor'](_0x4585bc,_0x5cbe09,_0x292083,_0x568863,_0x4322de){const _0x1ca998=_0x7011be,_0x11e4c3=this[_0x1ca998(0x3ad)](_0x5cbe09),{left:_0x20a1bd,top:_0x2d4605,height:_0x2ed75a}=_0x11e4c3,_0x10d9a6=this[_0x1ca998(0x353)](),_0xcc9bae=kr/_0x10d9a6,_0x57b5c0=new _0x406574(gt+_0x14f99b[_0x1ca998(0x394)](De),{'left':_0x20a1bd+_0x292083-_0xcc9bae,'top':_0x2d4605+_0x568863,'height':_0x2ed75a,'width':Hr,'fill':_0x4585bc||_0x409cfa(_0x133fd5[_0x1ca998(0x481)],0x0),'strokeWidth':_0xcc9bae,'stroke':Br,'evented':!0x0});this[_0x1ca998(0x1df)]=_0x57b5c0,this[_0x1ca998(0x1b0)]['addObject'](_0x57b5c0,_0xb477f6);const _0x48fd9e=new _0x406574(gt+_0x14f99b['generateRandomId'](De),{'left':_0x20a1bd+_0x292083-_0xcc9bae,'top':_0x2d4605+_0x568863-St/0x2,'height':St,'width':St,'fill':_0x4585bc||_0x409cfa(_0x133fd5[_0x1ca998(0x481)],0x0),'strokeWidth':0x0,'stroke':_0x4585bc||_0x409cfa(_0x133fd5['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x48fd9e,this[_0x1ca998(0x1b0)][_0x1ca998(0x43b)](_0x48fd9e,_0xb477f6);const _0x24ffec=new rt(gt+_0x14f99b[_0x1ca998(0x394)](De),{'left':_0x20a1bd+_0x292083-_0xcc9bae,'top':_0x2d4605+_0x568863-Le,'text':_0x4322de,'color':_0x4585bc});this[_0x1ca998(0x24c)]=_0x24ffec,this[_0x1ca998(0x1b0)][_0x1ca998(0x43b)](_0x24ffec,_0xb477f6),this['_hover']=!0x1;}[_0x7011be(0x41f)](){const _0xa9cd1d=_0x7011be,_0x434ad5=this[_0xa9cd1d(0x1df)][_0xa9cd1d(0x30a)][_0xa9cd1d(0x2e9)](()=>{const _0x315fdc=_0xa9cd1d;this[_0x315fdc(0x2bc)]=!0x0;}),_0x4f1f7a=this[_0xa9cd1d(0x1df)][_0xa9cd1d(0x2d8)][_0xa9cd1d(0x2e9)](()=>{const _0x1bc430=_0xa9cd1d;this[_0x1bc430(0x409)]&&clearTimeout(this[_0x1bc430(0x409)]),this['_hideTimer']=setTimeout(()=>{const _0x1f529f=_0x1bc430;this[_0x1f529f(0x2bc)]=!0x1;},0x7d0);});return()=>{const _0x5c6d85=_0xa9cd1d;_0x434ad5[_0x5c6d85(0x416)](),_0x4f1f7a['unsubscribe']();};}[_0x7011be(0x2b0)](_0x24f514,_0x48167c,_0x5c0456,_0x246911){const _0x421ac2=_0x7011be,_0x550834=new _0x146cd6(_0x24f514)['setAlpha'](0.2)['toRgbString'](),_0x2670ab=new _0x3731ab(jr+_0x14f99b[_0x421ac2(0x394)](De),{'pointsGroup':_0x48167c,'fill':_0x550834||_0x409cfa(_0x133fd5[_0x421ac2(0x481)],0.2),'left':_0x5c0456,'top':_0x246911,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x421ac2(0x41c)][_0x421ac2(0x1c4)](_0x2670ab),this[_0x421ac2(0x1b0)][_0x421ac2(0x43b)](_0x2670ab,_0xb477f6);}['_drawRectRange'](_0x108981,_0x2fa731,_0x3d6d20,_0x1ae575){const _0x3fb343=_0x7011be,_0x3e1ec1=new _0x146cd6(_0x108981)[_0x3fb343(0x332)](0.2)[_0x3fb343(0x346)](),_0x119133=new _0x3731ab(xr+_0x14f99b[_0x3fb343(0x394)](De),{'pointsGroup':_0x2fa731,'fill':_0x3e1ec1||_0x409cfa(_0x133fd5[_0x3fb343(0x481)],0.2),'left':_0x3d6d20,'top':_0x1ae575,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3fb343(0x41c)][_0x3fb343(0x1c4)](_0x119133),this[_0x3fb343(0x1b0)]['addObject'](_0x119133,_0xb477f6);}[_0x7011be(0x3ad)](_0x1eaed8){const _0x47fbfe=_0x1eaed8[0x0],_0x2a1d46=_0x47fbfe[0x0],_0x8edd42=_0x47fbfe[0x2],{x:_0x4ddbf5,y:_0x40d32a}=_0x2a1d46,{x:_0x12d968,y:_0x4cada8}=_0x8edd42;return{'left':_0x4ddbf5,'top':_0x40d32a,'width':_0x12d968-_0x4ddbf5,'height':_0x4cada8-_0x40d32a};}[_0x7011be(0x353)](){const _0x1a5329=_0x7011be,{scaleX:_0x3f767f,scaleY:_0x53ec95}=this[_0x1a5329(0x1b0)]['getAncestorScale']();return Math[_0x1a5329(0x47a)](_0x3f767f,_0x53ec95);}}var Vr=Object[_0x7011be(0x38b)],Fr=Object['getOwnPropertyDescriptor'],Wr=(_0x2a582d,_0x4fab1c,_0x3f5bd9,_0x1accec)=>{const _0x2a0ff2=_0x7011be;for(var _0x2aae79=_0x1accec>0x1?void 0x0:_0x1accec?Fr(_0x4fab1c,_0x3f5bd9):_0x4fab1c,_0x4535e1=_0x2a582d[_0x2a0ff2(0x2db)]-0x1,_0x527320;_0x4535e1>=0x0;_0x4535e1--)(_0x527320=_0x2a582d[_0x4535e1])&&(_0x2aae79=(_0x1accec?_0x527320(_0x4fab1c,_0x3f5bd9,_0x2aae79):_0x527320(_0x2aae79))||_0x2aae79);return _0x1accec&&_0x2aae79&&Vr(_0x4fab1c,_0x3f5bd9,_0x2aae79),_0x2aae79;},ke=(_0x327902,_0x43f531)=>(_0xf32657,_0xad4892)=>_0x43f531(_0xf32657,_0xad4892,_0x327902);let We=class extends _0x101c13{constructor(_0x1e0fb5,_0x7e422d,_0x1c0a61,_0x21d27c,_0x3b7e28){const _0x439e80=_0x7011be;super(),l(this,_0x439e80(0x45a),[]),l(this,_0x439e80(0x27a),[]),(this['_context']=_0x1e0fb5,this[_0x439e80(0x247)]=_0x7e422d,this[_0x439e80(0x3c4)]=_0x1c0a61,this[_0x439e80(0x2c6)]=_0x21d27c,this['_themeService']=_0x3b7e28,this['_init']());}[_0x7011be(0x1f6)](){const _0x3c0138=_0x7011be,_0x2b3559=this[_0x3c0138(0x211)][_0x3c0138(0x36b)],_0x42fc67=this[_0x3c0138(0x247)];this['disposeWithMe'](_0x25e7d9([this[_0x3c0138(0x3c4)][_0x3c0138(0x321)](_0x2b3559),this['_themeService'][_0x3c0138(0x4d4)]])['pipe'](_0x4b1d28(([_0x422311,_0x221656])=>({'skeleton':_0x42fc67[_0x3c0138(0x491)](),'cursors':[..._0x422311[_0x3c0138(0x3dd)]()][_0x3c0138(0x426)](_0x324c87=>({..._0x324c87,'color':_0x221656[_0x324c87['color']]}))})))['subscribe'](_0x1a3bd3=>{const _0x3b6452=_0x3c0138;if(this[_0x3b6452(0x288)](),_0x1a3bd3){const {skeleton:_0x3ee8c0,cursors:_0x37b400}=_0x1a3bd3;this[_0x3b6452(0x2e6)](_0x3ee8c0,_0x37b400);}})),this[_0x3c0138(0x2c4)](),this[_0x3c0138(0x345)]();}[_0x7011be(0x2e6)](_0x32679f,_0x57a126){const _0x1c9b35=_0x7011be,{scene:_0x21a219,mainComponent:_0x2450c5}=this[_0x1c9b35(0x211)],_0x2f5c49=_0x57a126[_0x1c9b35(0x2af)](_0x4bc550=>new fs(_0x4bc550,_0x21a219,_0x32679f,_0x2450c5));this[_0x1c9b35(0x45a)]=_0x2f5c49,this[_0x1c9b35(0x27a)]=_0x57a126;}[_0x7011be(0x296)](){const _0x1ca863=_0x7011be;this['_removeCollabCursors']();const {scene:_0x4ff4c6,mainComponent:_0x1d3fd1}=this[_0x1ca863(0x211)],_0x469056=this[_0x1ca863(0x247)]['getSkeleton'](),_0x3e0ea1=this['_cursors'][_0x1ca863(0x2af)](_0x47ed69=>new fs(_0x47ed69,_0x4ff4c6,_0x469056,_0x1d3fd1));this[_0x1ca863(0x45a)]=_0x3e0ea1;}['_removeCollabCursors'](){const _0x3ec83f=_0x7011be;this[_0x3ec83f(0x45a)]['forEach'](_0x23a511=>_0x23a511['dispose']()),this[_0x3ec83f(0x45a)]=[];}[_0x7011be(0x345)](){const _0x521f7a=_0x7011be,_0x19c8c2=[_0x527e19['id']];this[_0x521f7a(0x26d)](this[_0x521f7a(0x2c6)][_0x521f7a(0x2b4)](_0x53b0ed=>{const _0x161209=_0x521f7a;_0x19c8c2[_0x161209(0x4a4)](_0x53b0ed['id'])&&_0x53b0ed[_0x161209(0x329)][_0x161209(0x36b)]===this[_0x161209(0x211)][_0x161209(0x36b)]&&this[_0x161209(0x296)]();}));}[_0x7011be(0x2c4)](){const _0x52f8e5=_0x7011be;this[_0x52f8e5(0x26d)](_0x331c20(this[_0x52f8e5(0x211)][_0x52f8e5(0x242)][_0x52f8e5(0x3e6)])['pipe'](_0x273b1e(_0x2a9bf0=>_0x2a9bf0[_0x52f8e5(0x4b7)]===_0x223d13[_0x52f8e5(0x1bc)]),_0x46d884(0x10))[_0x52f8e5(0x376)](()=>{const _0x184b9a=_0x52f8e5;this[_0x184b9a(0x296)]();}));}};We=Wr([_0x4a01a1(_0x268ec2['Steady'],We),ke(0x1,_0x4f6f98(_0x46bdda)),ke(0x2,_0x4f6f98(ge)),ke(0x3,_0x2cea1d),ke(0x4,_0x4f6f98(_0x5d9d21))],We);const Gr=0x1,Yr=1.5;class Kr extends _0x1390df{constructor(_0x3f3a3d,_0x50216f){const _0x497b9b=_0x7011be;super(_0x3f3a3d,_0x50216f),l(this,_0x497b9b(0x473)),l(this,_0x497b9b(0x4cb),!0x1),l(this,'_range'),l(this,'_name',''),l(this,_0x497b9b(0x27e),_0x497b9b(0x482)),l(this,_0x497b9b(0x34a)),(_0x50216f&&this['setShapeProps'](_0x50216f),this['onPointerEnter$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x497b9b(0x2d8)][_0x497b9b(0x2e9)](()=>this[_0x497b9b(0x4a5)]({'hovered':!0x1})));}[_0x7011be(0x4a5)](_0x159081){const _0x3ad4fb=_0x7011be;var _0x11d10e,_0x13bf03,_0x4c35c2,_0xcba6c1,_0x2db159,_0x2f66b3;this['_color']=(_0x11d10e=_0x159081['color'])!=null?_0x11d10e:this[_0x3ad4fb(0x473)],this['_hovered']=(_0x13bf03=_0x159081[_0x3ad4fb(0x2ea)])!=null?_0x13bf03:this['_hovered'],this[_0x3ad4fb(0x1fc)]=(_0x4c35c2=_0x159081['range'])!=null?_0x4c35c2:this[_0x3ad4fb(0x1fc)],this[_0x3ad4fb(0x3bc)]=(_0xcba6c1=_0x159081['name'])!=null?_0xcba6c1:this['_name'],this[_0x3ad4fb(0x27e)]=(_0x2db159=_0x159081[_0x3ad4fb(0x4c5)])!=null?_0x2db159:this[_0x3ad4fb(0x27e)],this[_0x3ad4fb(0x34a)]=(_0x2f66b3=_0x159081[_0x3ad4fb(0x492)])!=null?_0x2f66b3:this['_backgroundColor'],this[_0x3ad4fb(0x3a6)]({'width':_0x159081[_0x3ad4fb(0x467)],'height':_0x159081[_0x3ad4fb(0x2a8)]});}[_0x7011be(0x1d1)](_0x1b4fee){const _0xcd8082=_0x7011be,{row:_0x59cc6e,column:_0x35bf04}=_0x1b4fee;if(_0x59cc6e>=this[_0xcd8082(0x1fc)][_0xcd8082(0x1cc)]&&_0x59cc6e<=this[_0xcd8082(0x1fc)]['endRow']&&_0x35bf04>=this[_0xcd8082(0x1fc)][_0xcd8082(0x18a)]&&_0x35bf04<=this[_0xcd8082(0x1fc)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0xcd8082(0x4a5)]({'hovered':!0x1});}[_0x7011be(0x460)](_0x8eb302){return!0x1;}['_draw'](_0x17ed99){const _0xdd63d5=_0x7011be;_0x406574['drawWith'](_0x17ed99,{'width':this[_0xdd63d5(0x467)],'height':this[_0xdd63d5(0x2a8)],'strokeWidth':Yr,'stroke':this[_0xdd63d5(0x473)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0xdd63d5(0x4cb)]&&(_0x17ed99[_0xdd63d5(0x189)](),_0x17ed99[_0xdd63d5(0x3a3)](0x1,0x0,0x0,0x1,this[_0xdd63d5(0x467)],this[_0xdd63d5(0x27e)]===_0xdd63d5(0x1c0)?0x0:-Le),rt['drawWith'](_0x17ed99,{'text':this['_name'],'color':this['_color']}),_0x17ed99[_0xdd63d5(0x19e)]());}}var Xr=Object['defineProperty'],Jr=Object['getOwnPropertyDescriptor'],qr=(_0x4a9e5f,_0x59751d,_0x2d5b9a,_0x3ef9fc)=>{const _0x4bebd1=_0x7011be;for(var _0x438ce7=_0x3ef9fc>0x1?void 0x0:_0x3ef9fc?Jr(_0x59751d,_0x2d5b9a):_0x59751d,_0x249cd0=_0x4a9e5f[_0x4bebd1(0x2db)]-0x1,_0x1f725b;_0x249cd0>=0x0;_0x249cd0--)(_0x1f725b=_0x4a9e5f[_0x249cd0])&&(_0x438ce7=(_0x3ef9fc?_0x1f725b(_0x59751d,_0x2d5b9a,_0x438ce7):_0x1f725b(_0x438ce7))||_0x438ce7);return _0x3ef9fc&&_0x438ce7&&Xr(_0x59751d,_0x2d5b9a,_0x438ce7),_0x438ce7;},pt=(_0x53e64c,_0x3cf330)=>(_0x24d733,_0x4e70d7)=>_0x3cf330(_0x24d733,_0x4e70d7,_0x53e64c);const zr=0x1389;let yt=class extends _0x101c13{constructor(_0x5ba4bc,_0x1aa9d7,_0x3ff9b3,_0x4b2d9b){const _0x5e94b2=_0x7011be;super(),l(this,_0x5e94b2(0x27a),new Set()),l(this,_0x5e94b2(0x2ab),null),(this[_0x5e94b2(0x211)]=_0x5ba4bc,this['_sheetSkeletonManagerService']=_0x1aa9d7,this[_0x5e94b2(0x3c4)]=_0x3ff9b3,this[_0x5e94b2(0x2b6)]=_0x4b2d9b,this[_0x5e94b2(0x1f6)]());}[_0x7011be(0x1f6)](){const _0x10d6c2=_0x7011be;this[_0x10d6c2(0x217)][_0x10d6c2(0x212)][_0x10d6c2(0x185)](_0x559853(this[_0x10d6c2(0x3f3)]),_0x2b4b41(_0x492142=>{const _0x594b98=_0x10d6c2;if(_0x492142){const _0x322472=_0x492142[_0x594b98(0x4da)];return _0x25e7d9(this['_collabCursorController'][_0x594b98(0x321)](this[_0x594b98(0x211)][_0x594b98(0x36b)]),this['_themeService']['currentTheme$'])['pipe'](_0x4b1d28(([_0x226ca3,_0x3c4632])=>{const _0x51ffcb=_0x594b98,_0x38d756=new Map();return _0x226ca3[_0x51ffcb(0x429)]((_0x5e6f87,_0x4fc75e)=>{const _0x22cb6e=_0x51ffcb;if(_0x5e6f87['sheetID']===_0x322472){const _0x59867f={..._0x5e6f87};_0x59867f[_0x22cb6e(0x18d)]=_0x3c4632[_0x5e6f87[_0x22cb6e(0x18d)]],_0x38d756[_0x22cb6e(0x2e0)](_0x4fc75e,_0x59867f);}}),{'skeleton':_0x492142,'cursors':_0x38d756};}));}return _0x1f8bdc({'skeleton':null,'cursors':new Map()});}))[_0x10d6c2(0x376)](({skeleton:_0x2b6e22,cursors:_0xb51df1})=>{const _0x41a4b5=_0x10d6c2;this[_0x41a4b5(0x288)](),_0x2b6e22&&this[_0x41a4b5(0x2e6)](_0x2b6e22,_0xb51df1);}),this['_sheetSkeletonManagerService'][_0x10d6c2(0x212)][_0x10d6c2(0x376)](_0x25145d=>{const _0x1b7a94=_0x10d6c2;if(_0x25145d==null)return;const {skeleton:_0x4b11f7}=_0x25145d,{scene:_0x3c6e68}=this[_0x1b7a94(0x211)];_0x3c6e68['onPointerMove$'][_0x1b7a94(0x2e9)](_0x3c0cdf(_0x8a6292=>{const _0x24cb7f=_0x1b7a94;var _0x2066e1,_0x1fb072;const {offsetX:_0x377732,offsetY:_0x379a9f}=_0x8a6292,{x:_0x47e01b,y:_0x55cb43}=_0x3c6e68[_0x24cb7f(0x4dd)](_0x25b778['FromArray']([_0x377732,_0x379a9f])),{scaleX:_0x45c7a0,scaleY:_0x280683}=_0x3c6e68[_0x24cb7f(0x4d1)](),_0x457f0c=_0x3c6e68[_0x24cb7f(0x424)](_0x2ddac5[_0x24cb7f(0x42b)]),_0x2a8b75=_0x3c6e68[_0x24cb7f(0x210)](_0x25b778['FromArray']([_0x47e01b,_0x55cb43]),_0x457f0c),_0x5600a9=_0x4b11f7['getCellPositionByOffset'](_0x377732,_0x379a9f,_0x45c7a0,_0x280683,_0x2a8b75);((_0x2066e1=this[_0x24cb7f(0x2ab)])==null?void 0x0:_0x2066e1['column'])===_0x5600a9['column']&&((_0x1fb072=this[_0x24cb7f(0x2ab)])==null?void 0x0:_0x1fb072['row'])===_0x5600a9[_0x24cb7f(0x432)]||this['_cursors'][_0x24cb7f(0x429)](_0x2defaf=>{const _0x1e017d=_0x24cb7f;_0x2defaf[_0x1e017d(0x1d1)](_0x5600a9);});},0x64));});}[_0x7011be(0x2e6)](_0x293f9b,_0x15e8e4){const _0x10b682=_0x7011be;var _0x44249e;const _0x417da9=(_0x44249e=this[_0x10b682(0x217)][_0x10b682(0x195)]())==null?void 0x0:_0x44249e[_0x10b682(0x471)];if(!_0x417da9)return;const _0x3481a4=this[_0x10b682(0x279)]();if(!_0x3481a4)return;this['_cursors'][_0x10b682(0x429)](_0x40e97b=>{const _0x29cb0b=_0x10b682;_0x40e97b[_0x29cb0b(0x20a)]();});const {scene:_0x5108d3}=_0x3481a4,_0xec30fa=Zr(Array['from'](_0x15e8e4[_0x10b682(0x3dd)]()))['map'](_0x4b4a81=>{const _0xca78c=_0x10b682,{color:_0x3717f4,range:_0x2b9ea9,name:_0x4c2416,selection:_0x63f532,sheetID:_0x34ebc2}=_0x4b4a81,{startColumn:_0x6aa968,startRow:_0x210bec,endColumn:_0x29e58b,endRow:_0x1b7eaf}=_0x2b9ea9,_0x906630=_0x39aa42(_0x210bec,_0x6aa968,_0x5108d3,_0x417da9),_0x25dd86=_0x39aa42(_0x1b7eaf,_0x29e58b,_0x5108d3,_0x417da9),{columnHeaderHeightAndMarginTop:_0x410882}=_0x417da9,{startX:_0x276eff,startY:_0x1feaac}=_0x906630,{endX:_0x1be371,endY:_0x55bb81}=_0x25dd86,_0x29eab7=_0x1be371-_0x276eff,_0x4fe8b9=_0x55bb81-_0x1feaac,_0x3fe1f1={'labelPosition':_0x1feaac-_0x410882>=Le?_0xca78c(0x482):'bottom','sheetID':_0x34ebc2,'range':_0x2b9ea9,'color':_0x3717f4,'name':_0x4c2416,'selection':_0x63f532,'left':_0x276eff,'top':_0x1feaac,'width':_0x29eab7,'height':_0x4fe8b9,'evented':!0x1,'zIndex':zr};return new Kr(_0x4c2416,_0x3fe1f1);});_0x5108d3[_0x10b682(0x4b1)](_0xec30fa,Gr),this[_0x10b682(0x27a)]=new Set(_0xec30fa);}['_removeCollabCursors'](){const _0x2d3daa=_0x7011be;var _0xaf8494;(_0xaf8494=this[_0x2d3daa(0x27a)])==null||_0xaf8494[_0x2d3daa(0x429)](_0x14a1ee=>_0x14a1ee[_0x2d3daa(0x326)]());}[_0x7011be(0x279)](){const _0x227cd5=_0x7011be;return _0xc97df6(this['_context'][_0x227cd5(0x25a)],this[_0x227cd5(0x211)]);}};yt=qr([pt(0x1,_0x4f6f98(_0x23732c)),pt(0x2,_0x4f6f98(ge)),pt(0x3,_0x4f6f98(_0x5d9d21))],yt);function Zr(_0x235117){const _0x3612a2=_0x7011be,_0x14a262=new Map();return _0x235117['forEach'](_0x34beba=>{const _0x525141=_0x312b;if(_0x14a262[_0x525141(0x436)](_0x34beba[_0x525141(0x3fc)])){const _0xe01d65=_0x14a262[_0x525141(0x3be)](_0x34beba[_0x525141(0x3fc)]);_0xe01d65[_0x525141(0x208)]+=',\x20'+_0x34beba['name'];}else _0x14a262['set'](_0x34beba[_0x525141(0x3fc)],_0x34beba);}),Array[_0x3612a2(0x379)](_0x14a262[_0x3612a2(0x3dd)]());}var N=function(){return N=Object['assign']||function(_0x410a2e){const _0x34f659=_0x312b;for(var _0x4055a7,_0x2007ba=0x1,_0x2ec02f=arguments['length'];_0x2007ba<_0x2ec02f;_0x2007ba++){_0x4055a7=arguments[_0x2007ba];for(var _0x5c3c05 in _0x4055a7)Object[_0x34f659(0x461)][_0x34f659(0x44c)][_0x34f659(0x433)](_0x4055a7,_0x5c3c05)&&(_0x410a2e[_0x5c3c05]=_0x4055a7[_0x5c3c05]);}return _0x410a2e;},N['apply'](this,arguments);},Qr=function(_0x13e5da,_0x928cbf){const _0x1c13f0=_0x7011be;var _0x4e6917={};for(var _0x1e63ba in _0x13e5da)Object[_0x1c13f0(0x461)][_0x1c13f0(0x44c)][_0x1c13f0(0x433)](_0x13e5da,_0x1e63ba)&&_0x928cbf[_0x1c13f0(0x1e4)](_0x1e63ba)<0x0&&(_0x4e6917[_0x1e63ba]=_0x13e5da[_0x1e63ba]);if(_0x13e5da!=null&&typeof Object['getOwnPropertySymbols']==_0x1c13f0(0x396)){for(var _0x1a1fc9=0x0,_0x1e63ba=Object[_0x1c13f0(0x1b3)](_0x13e5da);_0x1a1fc9<_0x1e63ba[_0x1c13f0(0x2db)];_0x1a1fc9++)_0x928cbf['indexOf'](_0x1e63ba[_0x1a1fc9])<0x0&&Object[_0x1c13f0(0x461)][_0x1c13f0(0x1e0)][_0x1c13f0(0x433)](_0x13e5da,_0x1e63ba[_0x1a1fc9])&&(_0x4e6917[_0x1e63ba[_0x1a1fc9]]=_0x13e5da[_0x1e63ba[_0x1a1fc9]]);}return _0x4e6917;},Yt=_0x5bcfca(function(_0x565caf,_0x1ebc5f){const _0x6a52fb=_0x7011be;var _0x587c52=_0x565caf[_0x6a52fb(0x1b6)],_0x3bcd03=_0x565caf['id'],_0x4abae6=_0x565caf[_0x6a52fb(0x3e2)],_0x41ea9c=_0x565caf[_0x6a52fb(0x374)],_0x366a5f=Qr(_0x565caf,['icon','id',_0x6a52fb(0x3e2),_0x6a52fb(0x374)]),_0x144f09=_0x6a52fb(0x4ba)[_0x6a52fb(0x365)](_0x3bcd03,'\x20')[_0x6a52fb(0x365)](_0x4abae6||'')[_0x6a52fb(0x413)](),_0x198cce=_0x4907ca('_'[_0x6a52fb(0x365)](so()));return Bs(_0x587c52,''[_0x6a52fb(0x365)](_0x3bcd03),{'defIds':_0x587c52[_0x6a52fb(0x1f9)],'idSuffix':_0x198cce['current']},N({'ref':_0x1ebc5f,'className':_0x144f09},_0x366a5f),_0x41ea9c);});function Bs(_0x9a02f7,_0x30dff1,_0xa397e1,_0x1465c5,_0x3b615e){const _0x7675d8=_0x7011be;return _0x2ec225(_0x9a02f7[_0x7675d8(0x227)],N(N({'key':_0x30dff1},eo(_0x9a02f7,_0xa397e1,_0x3b615e)),_0x1465c5),(to(_0x9a02f7,_0xa397e1)[_0x7675d8(0x449)]||[])[_0x7675d8(0x2af)](function(_0x349006,_0x51a079){const _0x4c5ce5=_0x7675d8;return Bs(_0x349006,''[_0x4c5ce5(0x365)](_0x30dff1,'-')[_0x4c5ce5(0x365)](_0x9a02f7['tag'],'-')[_0x4c5ce5(0x365)](_0x51a079),_0xa397e1,void 0x0,_0x3b615e);}));}function eo(_0x290e0f,_0x7c5de2,_0x4cc194){const _0x1ae53b=_0x7011be;var _0x3e214c=N({},_0x290e0f['attrs']);_0x4cc194!=null&&_0x4cc194[_0x1ae53b(0x3db)]&&_0x3e214c[_0x1ae53b(0x3b6)]==='colorChannel1'&&(_0x3e214c['fill']=_0x4cc194[_0x1ae53b(0x3db)]);var _0x4ba9cb=_0x7c5de2['defIds'];return!_0x4ba9cb||_0x4ba9cb[_0x1ae53b(0x2db)]===0x0||(_0x290e0f[_0x1ae53b(0x227)]===_0x1ae53b(0x1da)&&_0x3e214c['xlink:href']&&(_0x3e214c[_0x1ae53b(0x3c0)]=_0x3e214c[_0x1ae53b(0x3c0)]+_0x7c5de2[_0x1ae53b(0x226)]),Object[_0x1ae53b(0x27d)](_0x3e214c)[_0x1ae53b(0x429)](function(_0x25f319){const _0x1f47eb=_0x1ae53b;var _0x2bcf88=_0x25f319[0x0],_0x4e0177=_0x25f319[0x1];typeof _0x4e0177==_0x1f47eb(0x2ac)&&(_0x3e214c[_0x2bcf88]=_0x4e0177['replace'](/url\(#(.*)\)/,_0x1f47eb(0x400)[_0x1f47eb(0x365)](_0x7c5de2['idSuffix'],')')));})),_0x3e214c;}function to(_0x15f0e6,_0x2f22c3){const _0x32100d=_0x7011be;var _0x2d0761,_0x3e2119=_0x2f22c3[_0x32100d(0x1f9)];return!_0x3e2119||_0x3e2119[_0x32100d(0x2db)]===0x0?_0x15f0e6:_0x15f0e6[_0x32100d(0x227)]===_0x32100d(0x2ae)&&(!((_0x2d0761=_0x15f0e6['children'])===null||_0x2d0761===void 0x0)&&_0x2d0761[_0x32100d(0x2db)])?N(N({},_0x15f0e6),{'children':_0x15f0e6[_0x32100d(0x449)][_0x32100d(0x2af)](function(_0x45487d){const _0x10509d=_0x32100d;return typeof _0x45487d[_0x10509d(0x362)]['id']==_0x10509d(0x2ac)&&_0x3e2119&&_0x3e2119[_0x10509d(0x1e4)](_0x45487d[_0x10509d(0x362)]['id'])>-0x1?N(N({},_0x45487d),{'attrs':N(N({},_0x45487d[_0x10509d(0x362)]),{'id':_0x45487d[_0x10509d(0x362)]['id']+_0x2f22c3[_0x10509d(0x226)]})}):_0x45487d;})}):_0x15f0e6;}function so(){const _0x2184ff=_0x7011be;return Math[_0x2184ff(0x181)]()[_0x2184ff(0x25e)](0x24)[_0x2184ff(0x359)](0x2,0x8);}Yt[_0x7011be(0x2e8)]=_0x7011be(0x428);var io={'tag':_0x7011be(0x2de),'attrs':{'fill':_0x7011be(0x1b5),'viewBox':_0x7011be(0x1fe),'width':_0x7011be(0x2c1),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x7011be(0x2c7),'attrs':{'stroke':_0x7011be(0x3d0),'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':'round','strokeLinejoin':_0x7011be(0x35b),'strokeWidth':1.2}}]},{'tag':_0x7011be(0x2ae),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x7011be(0x3c5)},'children':[{'tag':_0x7011be(0x2c7),'attrs':{'fill':_0x7011be(0x19f),'d':_0x7011be(0x4af)}}]}]}],'defIds':[_0x7011be(0x3c5)]},Vs=_0x5bcfca(function(_0x5e110f,_0x37ea3a){const _0x4c3b16=_0x7011be;return _0x2ec225(Yt,Object[_0x4c3b16(0x1d3)]({},_0x5e110f,{'id':'off-line-single','ref':_0x37ea3a,'icon':io}));});Vs[_0x7011be(0x2e8)]='OffLineSingle';var no={'tag':'svg','attrs':{'fill':_0x7011be(0x1b5),'viewBox':_0x7011be(0x3d2),'width':_0x7011be(0x2c1),'height':_0x7011be(0x2c1)},'children':[{'tag':'g','attrs':{'clipPath':_0x7011be(0x4b0)},'children':[{'tag':_0x7011be(0x2c7),'attrs':{'stroke':_0x7011be(0x3d0),'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':_0x7011be(0x35b),'strokeLinejoin':_0x7011be(0x35b),'strokeWidth':1.2}}]},{'tag':_0x7011be(0x2ae),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x7011be(0x355)},'children':[{'tag':_0x7011be(0x2c7),'attrs':{'fill':_0x7011be(0x19f),'d':_0x7011be(0x4af),'transform':_0x7011be(0x317)}}]}]}],'defIds':[_0x7011be(0x355)]},Fs=_0x5bcfca(function(_0x3b2cc1,_0x235bc7){const _0x532f4b=_0x7011be;return _0x2ec225(Yt,Object[_0x532f4b(0x1d3)]({},_0x3b2cc1,{'id':_0x532f4b(0x483),'ref':_0x235bc7,'icon':no}));});Fs['displayName']='OnLineSingle';const ro=_0x7011be(0x381),oo=_0x7011be(0x2e2),ao=_0x7011be(0x458),co='univer-online',ho='univer-offline',we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0x3dfa76){const _0x42d924=_0x7011be;switch(_0x3dfa76){case w['OFFLINE']:return _0x42d924(0x238);case w[_0x42d924(0x184)]:return _0x42d924(0x4a9);case w[_0x42d924(0x1e9)]:return _0x42d924(0x222);case w['NOT_COLLAB']:return'collabStatus.notCollab';case w[_0x42d924(0x188)]:case w[_0x42d924(0x19c)]:case w[_0x42d924(0x2cd)]:return _0x42d924(0x241);case w[_0x42d924(0x2b7)]:return _0x42d924(0x219);}}function _o(_0x17a69e){const _0x11b14d=_0x7011be,{status$:_0xe7a8ff}=_0x17a69e,_0x106e95=_0x58f9f3(_0xe7a8ff,w['NOT_COLLAB']),_0x21b80e=_0x147122(_0x95964d),_0x5aacd3=_0x147122(ce),_0x420298=_0x106e95!==w[_0x11b14d(0x2ca)],_0x9cb72f=_0x21b80e['t'](lo(_0x106e95)),_0x5a5340=_0x26e85f(we[_0x11b14d(0x369)],{[we['online']]:_0x420298,[we['offline']]:!_0x420298}),_0x2d56c5=_0x420298?_0x193848[_0x11b14d(0x272)](Fs,null):_0x193848[_0x11b14d(0x272)](Vs,null),_0x15d0ae=_0x309442(()=>{_0x420298||_0x5aacd3['reconnect']();},[_0x420298,_0x5aacd3]);function _0x6ea57b(){const _0x386529=_0x11b14d;return _0x193848['createElement'](_0x386529(0x423),{'className':_0x5a5340,'onClick':_0x15d0ae},_0x193848[_0x386529(0x272)](_0x386529(0x423),{'className':we[_0x386529(0x498)]},_0x2d56c5),_0x193848[_0x386529(0x272)](_0x386529(0x423),{'className':we[_0x386529(0x1ca)]},_0x9cb72f));}return _0x420298?_0x6ea57b():_0x193848[_0x11b14d(0x272)](_0x5d56c6,{'title':_0x21b80e['t'](_0x11b14d(0x3ae))},_0x6ea57b());}var uo=Object[_0x7011be(0x38b)],fo=Object[_0x7011be(0x24f)],mo=(_0x364686,_0x64fb3e,_0x12145d,_0x3015bd)=>{const _0xc2004d=_0x7011be;for(var _0x49dc67=_0x3015bd>0x1?void 0x0:_0x3015bd?fo(_0x64fb3e,_0x12145d):_0x64fb3e,_0x5dace7=_0x364686[_0xc2004d(0x2db)]-0x1,_0x5ead37;_0x5dace7>=0x0;_0x5dace7--)(_0x5ead37=_0x364686[_0x5dace7])&&(_0x49dc67=(_0x3015bd?_0x5ead37(_0x64fb3e,_0x12145d,_0x49dc67):_0x5ead37(_0x49dc67))||_0x49dc67);return _0x3015bd&&_0x49dc67&&uo(_0x64fb3e,_0x12145d,_0x49dc67),_0x49dc67;},Be=(_0x343840,_0x17368d)=>(_0x2b33b2,_0x5c4588)=>_0x17368d(_0x2b33b2,_0x5c4588,_0x343840);let Ue=class extends _0xd7d44c{constructor(_0x5eb291,_0x544339,_0xdeaf51,_0x12f32d){const _0x42f1d6=_0x7011be;super(),l(this,_0x42f1d6(0x45c),new _0x2048f5(w['NOT_COLLAB'])),(this['_univerInstanceService']=_0x5eb291,this[_0x42f1d6(0x397)]=_0x544339,this['_injector']=_0xdeaf51,this['_collaborationController']=_0x12f32d,this[_0x42f1d6(0x340)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x19b533=_0x7011be;this[_0x19b533(0x26d)](this['_univerInstanceService']['focused$'][_0x19b533(0x185)](_0x396bbc(()=>{const _0x35ef2b=_0x19b533,_0x382d7c=this[_0x35ef2b(0x2c3)]['getFocusedUnit']();return _0x382d7c?this['_collaborationController'][_0x35ef2b(0x354)](_0x382d7c[_0x35ef2b(0x3bf)]()):_0x1f8bdc(null);}),_0x396bbc(_0x5395bb=>_0x5395bb?_0x5395bb[_0x19b533(0x294)]:_0x1f8bdc(w['NOT_COLLAB'])))['subscribe'](_0x5bbfc8=>{const _0x2ba96d=_0x19b533;this[_0x2ba96d(0x45c)][_0x2ba96d(0x40f)](_0x5bbfc8);}));}['_initStatusComponent'](){const _0x38a264=_0x7011be;this[_0x38a264(0x26d)](this[_0x38a264(0x397)][_0x38a264(0x4bf)](_0x23bd16['HEADER_MENU'],()=>_0xbbe883(go({'status$':this[_0x38a264(0x45c)][_0x38a264(0x1f7)]()}),this['_injector'])));}};Ue=mo([Be(0x0,_0x29e7a7),Be(0x1,_0x59ba8f),Be(0x2,_0x4f6f98(_0x8f002c)),Be(0x3,_0x4f6f98(Ae))],Ue);function go(_0x35ec7b){const {status$:_0x1df387}=_0x35ec7b;return function(){const _0x5093c3=_0x312b;return _0x193848[_0x5093c3(0x272)](_o,{'status$':_0x1df387});};}const Ws=_0x1e5b71(_0x7011be(0x384));var So=Object['defineProperty'],po=Object[_0x7011be(0x24f)],vo=(_0x58d2f1,_0xbb8ef7,_0xd170fe,_0x490113)=>{for(var _0x594bb2=_0x490113>0x1?void 0x0:_0x490113?po(_0xbb8ef7,_0xd170fe):_0xbb8ef7,_0x1c33c6=_0x58d2f1['length']-0x1,_0x35f029;_0x1c33c6>=0x0;_0x1c33c6--)(_0x35f029=_0x58d2f1[_0x1c33c6])&&(_0x594bb2=(_0x490113?_0x35f029(_0xbb8ef7,_0xd170fe,_0x594bb2):_0x35f029(_0x594bb2))||_0x594bb2);return _0x490113&&_0x594bb2&&So(_0xbb8ef7,_0xd170fe,_0x594bb2),_0x594bb2;},me=(_0x287011,_0x48b92b)=>(_0x41ebcb,_0x23d270)=>_0x48b92b(_0x41ebcb,_0x23d270,_0x287011);let Ge=class extends _0x101c13{constructor(_0x3be14e,_0x10e65c,_0x20ba20,_0x4a1811,_0x38c02d,_0x3a2e9d){const _0x5eca34=_0x7011be;super(),this[_0x5eca34(0x357)]=_0x3be14e,this[_0x5eca34(0x1b4)]=_0x10e65c,this[_0x5eca34(0x2c6)]=_0x20ba20,this[_0x5eca34(0x40d)]=_0x4a1811,this['_snapshotService']=_0x38c02d,_0x3a2e9d?_0x3a2e9d==null||_0x3a2e9d['whenReady']()[_0x5eca34(0x26e)](()=>this[_0x5eca34(0x1f6)]()):(this[_0x5eca34(0x1b4)][_0x5eca34(0x368)](_0x5eca34(0x3f9),_0x5eca34(0x3a7)),this[_0x5eca34(0x1f6)]());}async['_init'](){const _0x35bb95=_0x7011be,_0x417fa0=this[_0x35bb95(0x357)]['getParam'](_0x35bb95(0x25a)),_0x57951=this['_urlService'][_0x35bb95(0x27b)](_0x35bb95(0x4b7));if(!_0x417fa0||!_0x57951){this[_0x35bb95(0x1b4)][_0x35bb95(0x368)](_0x35bb95(0x3f9),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x57951)){case H[_0x35bb95(0x42d)]:{const _0xc1aa67=await this[_0x35bb95(0x2ba)](_0x417fa0);this[_0x35bb95(0x36c)](_0xc1aa67);break;}case H[_0x35bb95(0x1a0)]:{await this[_0x35bb95(0x1d4)](_0x417fa0);break;}default:{this[_0x35bb95(0x1b4)][_0x35bb95(0x174)](_0x35bb95(0x3f9),_0x35bb95(0x1a7));break;}}}async[_0x7011be(0x36c)](_0x22c257){const _0x4a5e96=_0x7011be;await this[_0x4a5e96(0x4c9)](_0x22c257),_0x22c257['activeSheet$'][_0x4a5e96(0x185)](_0x25a74d(this[_0x4a5e96(0x3f3)]))['subscribe'](_0x26a220=>{const _0x248808=_0x4a5e96;_0x26a220&&this[_0x248808(0x2f1)](_0x26a220);}),this[_0x4a5e96(0x357)][_0x4a5e96(0x1a1)][_0x4a5e96(0x185)](_0x25a74d(this[_0x4a5e96(0x3f3)]))[_0x4a5e96(0x376)](()=>this[_0x4a5e96(0x4c9)](_0x22c257));}[_0x7011be(0x2f1)](_0x49858b,_0x227415=!0x1){const _0x4611b6=_0x7011be,_0x409e9c=this[_0x4611b6(0x357)][_0x4611b6(0x27b)](_0x4611b6(0x48b));_0x49858b[_0x4611b6(0x3ff)]()!==_0x409e9c&&this[_0x4611b6(0x357)][_0x4611b6(0x276)](_0x4611b6(0x48b),_0x49858b[_0x4611b6(0x3ff)](),_0x227415);}async[_0x7011be(0x4c9)](_0x3a44b8){const _0x24be86=_0x7011be;var _0x2cc9b6;const _0x230f59=this['_urlService'][_0x24be86(0x27b)](_0x24be86(0x48b));if(!_0x230f59||!_0x3a44b8[_0x24be86(0x391)](_0x230f59)){const _0x58f381=_0x3a44b8[_0x24be86(0x284)]()[0x0],_0x52d5d3=_0x3a44b8['getSheetBySheetId'](_0x58f381);if(!_0x52d5d3)return;this[_0x24be86(0x2f1)](_0x52d5d3,!0x0),await this[_0x24be86(0x2c6)][_0x24be86(0x431)](_0x330d5c['id'],{'unitId':_0x3a44b8[_0x24be86(0x3bf)](),'subUnitId':_0x58f381});return;}((_0x2cc9b6=_0x3a44b8[_0x24be86(0x23c)]())==null?void 0x0:_0x2cc9b6[_0x24be86(0x3ff)]())!==_0x230f59&&await this['_commandService'][_0x24be86(0x431)](_0x330d5c['id'],{'unitId':_0x3a44b8['getUnitId'](),'subUnitId':_0x230f59});}async[_0x7011be(0x2ba)](_0x31894e){const _0x1e45bd=_0x7011be;let _0x3a0945=0x0;const _0xb7e1cd=await this['_localCacheService'][_0x1e45bd(0x403)](_0x31894e);return _0xb7e1cd&&(_0xb7e1cd[_0x1e45bd(0x191)]||_0xb7e1cd['mutations'][_0x1e45bd(0x2db)]!==0x0)&&(_0x3a0945=_0xb7e1cd[_0x1e45bd(0x26c)]),_0x3a0945===0x0&&this['_logService'][_0x1e45bd(0x368)](_0x1e45bd(0x3f9),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadSheet'](_0x31894e,_0x3a0945);}async['_loadDoc'](_0x113d39){const _0xc1508e=_0x7011be;let _0x210356=0x0;const _0x3283f6=await this[_0xc1508e(0x40d)][_0xc1508e(0x403)](_0x113d39);return _0x3283f6&&(_0x3283f6[_0xc1508e(0x191)]||_0x3283f6[_0xc1508e(0x459)]['length']!==0x0)&&(_0x210356=_0x3283f6[_0xc1508e(0x26c)]),_0x210356===0x0&&this[_0xc1508e(0x1b4)][_0xc1508e(0x368)]('[DataLoaderController]',_0xc1508e(0x2c2)),this['_snapshotService'][_0xc1508e(0x313)](_0x113d39,_0x210356);}};Ge=vo([_0x4a01a1(_0x268ec2[_0x7011be(0x438)],Ge),me(0x0,Ws),me(0x1,_0x2f2df5),me(0x2,_0x2cea1d),me(0x3,_0x4f6f98(D)),me(0x4,_0x4f6f98(_0x41eb9e)),me(0x5,_0x59d638(_0xc60c98))],Ge);var Io=Object[_0x7011be(0x38b)],Eo=Object[_0x7011be(0x24f)],Co=(_0x43aecd,_0x5ded6a,_0x4e46da,_0x505453)=>{const _0x141ba9=_0x7011be;for(var _0x5c7fb3=_0x505453>0x1?void 0x0:_0x505453?Eo(_0x5ded6a,_0x4e46da):_0x5ded6a,_0x51f7a8=_0x43aecd[_0x141ba9(0x2db)]-0x1,_0x581c8a;_0x51f7a8>=0x0;_0x51f7a8--)(_0x581c8a=_0x43aecd[_0x51f7a8])&&(_0x5c7fb3=(_0x505453?_0x581c8a(_0x5ded6a,_0x4e46da,_0x5c7fb3):_0x581c8a(_0x5c7fb3))||_0x5c7fb3);return _0x505453&&_0x5c7fb3&&Io(_0x5ded6a,_0x4e46da,_0x5c7fb3),_0x5c7fb3;},ms=(_0x26b538,_0x241193)=>(_0x39d678,_0xd8b7dd)=>_0x241193(_0x39d678,_0xd8b7dd,_0x26b538);const bo=_0x7011be(0x437),To=_0x7011be(0x259);let Ye=class extends _0xd7d44c{constructor(_0x321e51,_0x387d94){const _0x10a7b2=_0x7011be;super(),this[_0x10a7b2(0x2c3)]=_0x321e51,this[_0x10a7b2(0x1c9)]=_0x387d94,this[_0x10a7b2(0x1f6)]();}[_0x7011be(0x1f6)](){const _0x4aebf5=_0x7011be;this[_0x4aebf5(0x26d)](_0x4b6fbe(this[_0x4aebf5(0x2c3)]['focused$']['subscribe'](()=>{const _0x20b529=_0x4aebf5;var _0x5634ce;const _0x2936c1=this[_0x20b529(0x2c3)][_0x20b529(0x223)]();let _0x384119=(_0x5634ce=this['_configService']['getConfig'](bo))!=null?_0x5634ce:To;_0x2936c1 instanceof _0x1b7a0e&&(_0x384119=_0x2936c1[_0x20b529(0x208)]),document[_0x20b529(0x476)]=_0x384119;})));}};Ye=Co([_0x4a01a1(_0x268ec2[_0x7011be(0x475)],Ye),ms(0x0,_0x29e7a7),ms(0x1,_0x516197)],Ye);var Ro=Object[_0x7011be(0x38b)],Oo=Object[_0x7011be(0x24f)],Do=(_0x52e670,_0x58afc3,_0x24406e,_0x1a3d7c)=>{const _0x197f71=_0x7011be;for(var _0x2b41cf=_0x1a3d7c>0x1?void 0x0:_0x1a3d7c?Oo(_0x58afc3,_0x24406e):_0x58afc3,_0x36390d=_0x52e670[_0x197f71(0x2db)]-0x1,_0x44e49;_0x36390d>=0x0;_0x36390d--)(_0x44e49=_0x52e670[_0x36390d])&&(_0x2b41cf=(_0x1a3d7c?_0x44e49(_0x58afc3,_0x24406e,_0x2b41cf):_0x44e49(_0x2b41cf))||_0x2b41cf);return _0x1a3d7c&&_0x2b41cf&&Ro(_0x58afc3,_0x24406e,_0x2b41cf),_0x2b41cf;},vt=(_0xb1024f,_0x55401b)=>(_0x4a2988,_0x23083e)=>_0x55401b(_0x4a2988,_0x23083e,_0xb1024f);let st=class{constructor(_0x37b21a,_0x164823,_0x3166a5){const _0x43080b=_0x7011be;this['_configService']=_0x37b21a,this[_0x43080b(0x220)]=_0x164823,this[_0x43080b(0x306)]=_0x3166a5,this[_0x43080b(0x395)]();}['init'](){const _0x5dddf1=_0x7011be;this[_0x5dddf1(0x220)][_0x5dddf1(0x477)]({'priority':0x1,'interceptor':(_0x53f33d,_0x415b07)=>_0x415b07(_0x53f33d)[_0x5dddf1(0x185)](_0x156a35(async _0x44b106=>{const _0x232f8c=_0x5dddf1,_0x512477=_0x44b106;if(_0x512477[_0x232f8c(0x31f)]===0x191&&window['confirm'](this[_0x232f8c(0x306)]['t'](_0x232f8c(0x445)))){const _0x436192=window[_0x232f8c(0x17d)](window['location'][_0x232f8c(0x49e)]);window[_0x232f8c(0x49f)][_0x232f8c(0x49e)]=this[_0x232f8c(0x256)]()+_0x232f8c(0x207)+_0x436192;}return _0x512477;}))});}['_getLoginPath'](){const _0x25cdc5=_0x7011be;var _0x1a49af,_0x2fab81;const _0x474b23=this[_0x25cdc5(0x1c9)]['getConfig'](Pn),_0x2d1281=this['_configService'][_0x25cdc5(0x34f)](L);return(_0x2fab81=(_0x1a49af=_0x2d1281==null?void 0x0:_0x2d1281['loginUrlKey'])!=null?_0x1a49af:_0x474b23)!=null?_0x2fab81:yn;}};st=Do([vt(0x0,_0x516197),vt(0x1,_0x4f6f98(_0x263986)),vt(0x2,_0x4f6f98(_0x95964d))],st);var wo=Object['defineProperty'],Po=Object[_0x7011be(0x24f)],yo=(_0x4c8eeb,_0x60ee4d,_0x335f30,_0x373a35)=>{for(var _0x4df74e=_0x373a35>0x1?void 0x0:_0x373a35?Po(_0x60ee4d,_0x335f30):_0x60ee4d,_0x4f964d=_0x4c8eeb['length']-0x1,_0x3a7888;_0x4f964d>=0x0;_0x4f964d--)(_0x3a7888=_0x4c8eeb[_0x4f964d])&&(_0x4df74e=(_0x373a35?_0x3a7888(_0x60ee4d,_0x335f30,_0x4df74e):_0x3a7888(_0x4df74e))||_0x4df74e);return _0x373a35&&_0x4df74e&&wo(_0x60ee4d,_0x335f30,_0x4df74e),_0x4df74e;},gs=(_0x479d5c,_0x2b0add)=>(_0x207796,_0x421ae9)=>_0x2b0add(_0x207796,_0x421ae9,_0x479d5c);const No=_0x7011be(0x4cc),Uo=_0x7011be(0x408);let Nt=class extends _0xd7d44c{constructor(_0x18e3f6,_0x20e44f){const _0x2f0977=_0x7011be;super(),this[_0x2f0977(0x2b9)]=_0x18e3f6,this[_0x2f0977(0x1c9)]=_0x20e44f,this[_0x2f0977(0x237)]();}[_0x7011be(0x237)](){const _0x414b58=_0x7011be,_0x3f9b73=this;this[_0x414b58(0x26d)](this['_HTTPService'][_0x414b58(0x477)]({'priority':0x3e7,'interceptor':_0x144d61({'isMatch'(_0x4ad625){const _0x445e34=_0x414b58;var _0x1b73f5;if(_0x4ad625[_0x445e34(0x1c2)]===_0x445e34(0x264)&&((_0x1b73f5=_0x4ad625[_0x445e34(0x21e)])!=null&&_0x1b73f5['body'])){const {objectID:_0x206314,objectType:_0x110fc5}=_0x4ad625[_0x445e34(0x21e)]['body']||{};if(!_0x206314||_0x110fc5===void 0x0)return!0x1;const _0x3308a0=_0x3f9b73[_0x445e34(0x1f3)]()+'/'+_0x110fc5+_0x445e34(0x470)+_0x206314+_0x445e34(0x46c);if(_0x4ad625[_0x445e34(0x4c6)]===_0x3308a0)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x581696){const _0x321b32=_0x414b58;var _0x13794d;return(_0x13794d=_0x581696['requestParams'])==null?void 0x0:_0x13794d[_0x321b32(0x1ce)];},'mergeParamsToRequest'(_0x2714f7,_0x33c367){const _0x150b1d=_0x414b58,_0x233f3f=_0x3f9b73[_0x150b1d(0x1f3)]()+'/-/object/-/batch_allowed',_0x472c35=_0x2714f7[_0x150b1d(0x186)]((_0x669240,_0x17bcc9)=>{const _0x145b12=_0x150b1d,{unitID:_0x22b958,objectID:_0x366640,objectType:_0x376f5a,actions:_0x3138bf}=_0x17bcc9;return _0x669240[_0x22b958]||(_0x669240[_0x22b958]={}),_0x669240[_0x22b958][_0x366640]||(_0x669240[_0x22b958][_0x366640]={'objectID':_0x366640,'objectType':_0x376f5a,'actions':[]}),_0x669240[_0x22b958][_0x366640]['actions'][_0x145b12(0x1c4)](..._0x3138bf),_0x669240;},{}),_0x150427=[];for(const _0x4b324f in _0x472c35)for(const _0x1c62f8 in _0x472c35[_0x4b324f]){const {actions:_0x5532f5,objectType:_0x58d01d}=_0x472c35[_0x4b324f][_0x1c62f8],_0xac4434=[...new Set(_0x5532f5)];_0x150427[_0x150b1d(0x1c4)]({'unitID':_0x4b324f,'objectID':_0x1c62f8,'objectType':_0x58d01d,'actions':_0xac4434});}return new _0x2b95ea('POST',_0x233f3f,{'headers':_0x33c367['headers'],'withCredentials':_0x33c367[_0x150b1d(0x4de)],'responseType':_0x33c367[_0x150b1d(0x2bb)],'body':{'requests':_0x150427}});}},{'distributeResult'(_0x534586,_0x3193da){const _0x574347=_0x414b58,{objectActions:_0x517f45}=_0x534586;return _0x3193da[_0x574347(0x2af)](_0x510b9e=>{const _0x20fb6b=_0x574347,{unitID:_0x12e881,objectID:_0x507316,actions:_0x337718}=_0x510b9e,_0x418c61=_0x517f45['find'](_0x965d31=>_0x965d31[_0x20fb6b(0x363)]===_0x12e881&&_0x965d31[_0x20fb6b(0x248)]===_0x507316),_0x43f2ef=_0x337718[_0x20fb6b(0x2af)](_0x20d39f=>_0x418c61==null?void 0x0:_0x418c61['actions']['find'](_0x3edf32=>_0x3edf32['action']===_0x20d39f))[_0x20fb6b(0x393)](_0x182cb8=>!!_0x182cb8);return{'config':_0x510b9e,'result':{'actions':_0x43f2ef,'error':_0x534586[_0x20fb6b(0x174)]}};});}})}));}['_getAPIPrefixPath'](){const _0x2feb35=_0x7011be;var _0x47008d,_0x2790f5;const _0x51af0b=this['_configService'][_0x2feb35(0x34f)](No),_0x5b4736=this[_0x2feb35(0x1c9)][_0x2feb35(0x34f)](L);return(_0x2790f5=(_0x47008d=_0x5b4736==null?void 0x0:_0x5b4736[_0x2feb35(0x3d8)])!=null?_0x47008d:_0x51af0b)!=null?_0x2790f5:Uo;}async[_0x7011be(0x33b)](_0x20bae3){const _0x42d560=_0x7011be,_0x39c93c=this[_0x42d560(0x1f3)]()+'/'+_0x20bae3[_0x42d560(0x4e3)]+'/object';return(await this['_HTTPService'][_0x42d560(0x49d)](_0x39c93c,{'body':_0x20bae3}))[_0x42d560(0x1ce)][_0x42d560(0x248)]||'';}async[_0x7011be(0x434)](_0x3ff893){const _0x29fd48=_0x7011be,_0x1723fc=this[_0x29fd48(0x1f3)]()+_0x29fd48(0x213);return(await this[_0x29fd48(0x2b9)][_0x29fd48(0x49d)](_0x1723fc,{'body':_0x3ff893}))[_0x29fd48(0x1ce)][_0x29fd48(0x178)];}async[_0x7011be(0x21b)](_0x43497b){const _0xbee312=_0x7011be,_0x4c030e=this['_getAPIPrefixPath']()+'/'+_0x43497b[_0xbee312(0x4e3)]+'/object/'+_0x43497b[_0xbee312(0x248)];await this[_0xbee312(0x2b9)][_0xbee312(0x23f)](_0x4c030e,{'body':_0x43497b});}async[_0x7011be(0x193)](_0x3764d8){const _0xa4d00=_0x7011be,_0x17cb69=this['_getAPIPrefixPath']()+'/'+_0x3764d8['objectType']+_0xa4d00(0x470)+_0x3764d8[_0xa4d00(0x248)]+'/allowed';return(await this[_0xa4d00(0x2b9)][_0xa4d00(0x49d)](_0x17cb69,{'body':_0x3764d8}))[_0xa4d00(0x1ce)][_0xa4d00(0x1d0)];}async['batchAllowed'](_0x1e7b70){const _0x14c3ac=_0x7011be,_0x33b312=this[_0x14c3ac(0x1f3)]()+_0x14c3ac(0x2ad);return(await this['_HTTPService']['post'](_0x33b312,{'body':{'requests':_0x1e7b70}}))['body'][_0x14c3ac(0x38f)];}async[_0x7011be(0x286)](_0x8afb97){const _0x4721d0=_0x7011be,_0x4533e1=this['_getAPIPrefixPath']()+'/'+_0x8afb97['objectType']+_0x4721d0(0x447),_0x3349d7=await this['_HTTPService'][_0x4721d0(0x49d)](_0x4533e1,{'body':_0x8afb97});return{'roles':_0x3349d7[_0x4721d0(0x1ce)][_0x4721d0(0x243)],'actions':_0x3349d7[_0x4721d0(0x1ce)][_0x4721d0(0x1d0)]};}async[_0x7011be(0x1c3)](_0xaa61ac){const _0x47c396=_0x7011be,_0x38b38b=this['_getAPIPrefixPath']()+_0x47c396(0x46f);await this[_0x47c396(0x2b9)][_0x47c396(0x415)](_0x38b38b,{'params':{'collaboratorID':_0xaa61ac[_0x47c396(0x1c5)],'objectID':_0xaa61ac['objectID'],'unitID':_0xaa61ac['unitID']}});}async[_0x7011be(0x336)](_0x39d232){const _0x30c8ba=_0x7011be,_0x9ff85e=this[_0x30c8ba(0x1f3)]()+_0x30c8ba(0x46f);await this[_0x30c8ba(0x2b9)][_0x30c8ba(0x3f8)](_0x9ff85e,{'body':_0x39d232});}async[_0x7011be(0x36f)](_0x560e1d){const _0x12f7ec=_0x7011be,_0x398725=this[_0x12f7ec(0x1f3)]()+_0x12f7ec(0x46f);await this['_HTTPService']['post'](_0x398725,{'body':_0x560e1d});}async['listCollaborators'](_0x1cf6b6){const _0x39bf3c=_0x7011be,_0x1b7a5c=this[_0x39bf3c(0x1f3)]()+_0x39bf3c(0x46f);return(await this[_0x39bf3c(0x2b9)][_0x39bf3c(0x3be)](_0x1b7a5c,{'params':{'objectID':_0x1cf6b6['objectID'],'unitID':_0x1cf6b6['unitID']}}))[_0x39bf3c(0x1ce)][_0x39bf3c(0x34c)];}async[_0x7011be(0x1db)](_0x206eda){const _0x333c65=_0x7011be,_0xbd1668=this['_getAPIPrefixPath']()+_0x333c65(0x46f);await this['_HTTPService'][_0x333c65(0x23f)](_0xbd1668,{'body':_0x206eda});}};Nt=yo([gs(0x0,_0x4f6f98(_0x263986)),gs(0x1,_0x4f6f98(_0x516197))],Nt);var Mo=Object[_0x7011be(0x38b)],Ao=Object[_0x7011be(0x24f)],Lo=(_0x4ed184,_0x4c3337,_0x3f1c37,_0x26c823)=>{const _0x455227=_0x7011be;for(var _0x141729=_0x26c823>0x1?void 0x0:_0x26c823?Ao(_0x4c3337,_0x3f1c37):_0x4c3337,_0x362d83=_0x4ed184[_0x455227(0x2db)]-0x1,_0x5e096c;_0x362d83>=0x0;_0x362d83--)(_0x5e096c=_0x4ed184[_0x362d83])&&(_0x141729=(_0x26c823?_0x5e096c(_0x4c3337,_0x3f1c37,_0x141729):_0x5e096c(_0x141729))||_0x141729);return _0x26c823&&_0x141729&&Mo(_0x4c3337,_0x3f1c37,_0x141729),_0x141729;},$o=(_0x147aae,_0x269096)=>(_0x540c72,_0x103246)=>_0x269096(_0x540c72,_0x103246,_0x147aae);let it=class{constructor(_0x16134a){const _0x382563=_0x7011be;this[_0x382563(0x220)]=_0x16134a,this[_0x382563(0x3ab)]();}[_0x7011be(0x3ab)](){const _0x1089ec=_0x7011be;this['_httpService'][_0x1089ec(0x477)]({'interceptor':(_0x5b67b0,_0x389476)=>{const _0x4d0c8e=_0x1089ec,_0x274309=_0x5b67b0[_0x4d0c8e(0x2b3)],_0xbe5edd=_0x1a079a();return _0xbe5edd&&_0x274309[_0x4d0c8e(0x2e0)](_0x4d0c8e(0x40a),_0xbe5edd),_0x389476(_0x5b67b0);}});}};it=Lo([$o(0x0,_0x4f6f98(_0x263986))],it);var jo=Object[_0x7011be(0x38b)],xo=Object[_0x7011be(0x24f)],Ho=(_0x4e6bdf,_0x895196,_0x177eb1,_0x1fc3ab)=>{const _0x270925=_0x7011be;for(var _0x97fe2d=_0x1fc3ab>0x1?void 0x0:_0x1fc3ab?xo(_0x895196,_0x177eb1):_0x895196,_0x29b976=_0x4e6bdf[_0x270925(0x2db)]-0x1,_0xe392aa;_0x29b976>=0x0;_0x29b976--)(_0xe392aa=_0x4e6bdf[_0x29b976])&&(_0x97fe2d=(_0x1fc3ab?_0xe392aa(_0x895196,_0x177eb1,_0x97fe2d):_0xe392aa(_0x97fe2d))||_0x97fe2d);return _0x1fc3ab&&_0x97fe2d&&jo(_0x895196,_0x177eb1,_0x97fe2d),_0x97fe2d;},It=(_0x3b8ea1,_0x3ca232)=>(_0xcc418e,_0x54de90)=>_0x3ca232(_0xcc418e,_0x54de90,_0x3b8ea1);const ko=[_0x7011be(0x215),_0x7011be(0x499),_0x7011be(0x2a4),_0x7011be(0x252),'image/bmp'],Bo=0x5*0x400*0x400,Vo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Fo='/universer-api/stream/file/upload',Wo=_0x7011be(0x40c),Go='/universer-api/file/{fileID}/sign-url';let Ut=class{constructor(_0x59a9d7,_0x4dedf4,_0x33db1c){const _0x4caacb=_0x7011be;l(this,_0x4caacb(0x1de),0x0),l(this,_0x4caacb(0x1fd),new _0x4339d0()),l(this,_0x4caacb(0x303),this[_0x4caacb(0x1fd)]),l(this,_0x4caacb(0x322),new Map()),(this[_0x4caacb(0x220)]=_0x59a9d7,this[_0x4caacb(0x1c9)]=_0x4dedf4,this[_0x4caacb(0x2c3)]=_0x33db1c);}[_0x7011be(0x349)](_0x48bac2){const _0x5a2de7=_0x7011be;this[_0x5a2de7(0x1de)]=_0x48bac2,this[_0x5a2de7(0x1fd)][_0x5a2de7(0x40f)](_0x48bac2);}[_0x7011be(0x1ff)](_0x154383,_0x5a4f7c){const _0x3513fb=_0x7011be;if(_0x5a4f7c===_0x5687f1[_0x3513fb(0x46b)]){const _0x53f07d=new Image();return _0x53f07d[_0x3513fb(0x265)]=_0x154383,_0x53f07d;}return this[_0x3513fb(0x322)][_0x3513fb(0x3be)](_0x154383);}['addImageSourceCache'](_0x24d2e3,_0x2260e7,_0x55a3ce){const _0x254003=_0x7011be;_0x2260e7===_0x5687f1[_0x254003(0x46b)]||_0x55a3ce==null||this[_0x254003(0x322)][_0x254003(0x2e0)](_0x24d2e3,_0x55a3ce);}async[_0x7011be(0x18c)](_0x57a467){const _0x18810c=_0x7011be;try{const _0x54d89f=this[_0x18810c(0x360)](this['_getSignURL'](),''+_0x57a467),_0x5316a2=(await this['_httpService']['get'](_0x54d89f))[_0x18810c(0x1ce)];if(_0x5316a2[_0x18810c(0x174)]&&_0x5316a2[_0x18810c(0x174)][_0x18810c(0x35f)]===As['OK']){const _0x3bb9c2=new URL(_0x5316a2[_0x18810c(0x4c6)],this[_0x18810c(0x453)]())[_0x18810c(0x25e)]();return Promise[_0x18810c(0x2f7)](_0x3bb9c2);}return Promise[_0x18810c(0x331)](_0x5316a2[_0x18810c(0x174)]);}catch(_0x3bafe5){return Promise['reject'](_0x3bafe5);}}async[_0x7011be(0x406)](_0x28451f){const _0x5df594=_0x7011be;let _0x21896f='';if(!ko[_0x5df594(0x4a4)](_0x28451f[_0x5df594(0x4b7)]))return this[_0x5df594(0x232)](),Promise[_0x5df594(0x331)](new Error(_0x51de88['ERROR_IMAGE_TYPE']));if(_0x28451f[_0x5df594(0x43c)]>Bo)return this[_0x5df594(0x232)](),Promise[_0x5df594(0x331)](new Error(_0x51de88['ERROR_EXCEED_SIZE']));try{const _0xfe03ea=new FormData();_0xfe03ea['append']('file',_0x28451f);const _0x400d3e=this[_0x5df594(0x2c3)]['getFocusedUnit'](),_0x3a4cf8=_0x400d3e==null?void 0x0:_0x400d3e['getUnitId']();if(!_0x3a4cf8)throw new Error(_0x5df594(0x443));const _0x18c563=this[_0x5df594(0x4e2)]()+_0x5df594(0x2eb)+_0x28451f['size']['toString']()+_0x5df594(0x3b5)+Ls[_0x5df594(0x268)]+_0x5df594(0x1f1)+encodeURIComponent(_0x3a4cf8),_0x188423=await(await fetch(_0x18c563,{'method':_0x5df594(0x264),'body':_0xfe03ea}))[_0x5df594(0x323)]();if(typeof _0x188423[_0x5df594(0x1f5)]!='string')return this[_0x5df594(0x232)](),Promise[_0x5df594(0x331)](new Error(_0x51de88['ERROR_IMAGE']));_0x21896f=_0x188423[_0x5df594(0x1f5)];}catch{return this[_0x5df594(0x232)](),Promise[_0x5df594(0x331)](new Error(_0x51de88[_0x5df594(0x490)]));}return new Promise((_0x4dab4d,_0x4e2bf5)=>{const _0x2a5d34=_0x5df594,_0x15486e=new FileReader();_0x15486e[_0x2a5d34(0x388)](_0x28451f),_0x15486e[_0x2a5d34(0x304)]=_0x15a39d=>{const _0x4cefa3=_0x2a5d34;var _0x2932f3;const _0x2fe598=(_0x2932f3=_0x15a39d[_0x4cefa3(0x3df)])==null?void 0x0:_0x2932f3[_0x4cefa3(0x216)];if(_0x2fe598==null){this[_0x4cefa3(0x232)](),_0x4e2bf5(new Error(_0x51de88[_0x4cefa3(0x490)]));return;}const _0x511688=_0x14f99b[_0x4cefa3(0x394)](0x6);_0x4dab4d({'imageId':_0x511688,'imageSourceType':_0x5687f1['UUID'],'source':_0x21896f,'base64Cache':_0x2fe598,'status':_0x51de88['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x7011be(0x4e2)](){const _0x5d44d3=_0x7011be;var _0x53b862,_0x32a758;const _0x11ee22=this[_0x5d44d3(0x1c9)][_0x5d44d3(0x34f)](Vo),_0x2a1b51=this[_0x5d44d3(0x1c9)][_0x5d44d3(0x34f)](L);return(_0x32a758=(_0x53b862=_0x2a1b51==null?void 0x0:_0x2a1b51[_0x5d44d3(0x2c0)])!=null?_0x53b862:_0x11ee22)!=null?_0x32a758:Fo;}[_0x7011be(0x47e)](){const _0x34b6d9=_0x7011be;var _0x263ef0,_0x4ea365;const _0x3a65dd=this[_0x34b6d9(0x1c9)][_0x34b6d9(0x34f)](Wo),_0x5360cb=this[_0x34b6d9(0x1c9)]['getConfig'](L);return(_0x4ea365=(_0x263ef0=_0x5360cb==null?void 0x0:_0x5360cb['signUrlServerUrl'])!=null?_0x263ef0:_0x3a65dd)!=null?_0x4ea365:Go;}['_getDownloadEndpointURL'](){const _0x4d0b3b=_0x7011be;var _0x58c390;const _0x20e825=this[_0x4d0b3b(0x1c9)][_0x4d0b3b(0x34f)](L);return(_0x58c390=_0x20e825==null?void 0x0:_0x20e825[_0x4d0b3b(0x293)])!=null?_0x58c390:location[_0x4d0b3b(0x3b9)];}[_0x7011be(0x360)](_0x31d402,_0x2d319f){const _0x3c45b9=_0x7011be;return _0x31d402[_0x3c45b9(0x44b)](_0x3c45b9(0x48d),_0x2d319f);}['_decreaseWaiting'](){const _0x597e57=_0x7011be;this['_waitCount']-=0x1,this[_0x597e57(0x1fd)]['next'](this[_0x597e57(0x1de)]);}};Ut=Ho([It(0x0,_0x4f6f98(_0x263986)),It(0x1,_0x516197),It(0x2,_0x4f6f98(_0x29e7a7))],Ut);var Yo=Object[_0x7011be(0x38b)],Ko=Object[_0x7011be(0x24f)],Xo=(_0x2328d1,_0x563320,_0x2ceddb,_0x3de608)=>{const _0x3688f7=_0x7011be;for(var _0x5eb72b=_0x3de608>0x1?void 0x0:_0x3de608?Ko(_0x563320,_0x2ceddb):_0x563320,_0x5619a6=_0x2328d1[_0x3688f7(0x2db)]-0x1,_0x203cf7;_0x5619a6>=0x0;_0x5619a6--)(_0x203cf7=_0x2328d1[_0x5619a6])&&(_0x5eb72b=(_0x3de608?_0x203cf7(_0x563320,_0x2ceddb,_0x5eb72b):_0x203cf7(_0x5eb72b))||_0x5eb72b);return _0x3de608&&_0x5eb72b&&Yo(_0x563320,_0x2ceddb,_0x5eb72b),_0x5eb72b;},Pe=(_0x771227,_0x2914d8)=>(_0x65a525,_0x1288e9)=>_0x2914d8(_0x65a525,_0x1288e9,_0x771227);let Ke=class extends _0x101c13{constructor(_0x3443f6,_0x184305,_0x5a4fdd,_0x53a4f4,_0x4e1f2d){const _0x4f19cb=_0x7011be;super(),this['_injector']=_0x3443f6,this[_0x4f19cb(0x2c3)]=_0x184305,this[_0x4f19cb(0x48c)]=_0x5a4fdd,this[_0x4f19cb(0x4a8)]=_0x53a4f4,this[_0x4f19cb(0x2f8)]=_0x4e1f2d,this['_initUnitPermissionChange'](),this[_0x4f19cb(0x405)]();}[_0x7011be(0x405)](){const _0x1ebb79=_0x7011be,_0x248b68=async _0x247a0e=>{const _0x1100f4=_0x312b;(await this[_0x1100f4(0x4a8)][_0x1100f4(0x1d6)](_0x247a0e))[_0x1100f4(0x27f)]['pipe'](_0x273b1e(_0x45994f=>_0x45994f[_0x1100f4(0x2fb)]===_0x3edc6c[_0x1100f4(0x214)]),_0x559853(this['dispose$']))['subscribe'](_0xee61c4=>{const _0x38f0c8=_0x1100f4,_0x53e17a=_0xee61c4,{reason:_0x5637cf}=_0x53e17a[_0x38f0c8(0x253)];this['_injector'][_0x38f0c8(0x3be)](_0x13bf44)[_0x38f0c8(0x2ee)]({'type':_0x5638e0[_0x38f0c8(0x270)],'content':this[_0x38f0c8(0x2f8)]['t']('collaboration.closeRoom')+'('+_0x5637cf+')'}),this[_0x38f0c8(0x48c)]['updatePermissionPoint'](new _0x37edea(_0x247a0e)['id'],!0x1),this[_0x38f0c8(0x4a8)][_0x38f0c8(0x3d4)](_0x247a0e);});};_0x2b5f15(this['_univerInstanceService'][_0x1ebb79(0x4c7)](_0x223004[_0x1ebb79(0x42d)]),this[_0x1ebb79(0x2c3)][_0x1ebb79(0x4c7)](_0x223004[_0x1ebb79(0x1a0)]))[_0x1ebb79(0x185)](_0x4b1d28(_0x1e80e1=>_0x1e80e1['getUnitId']()),_0x273b1e(_0x4c1bb9=>!_0x1b37cc(_0x4c1bb9)),_0x559853(this[_0x1ebb79(0x3f3)]))['subscribe'](_0x2af62e=>{_0x248b68(_0x2af62e);});}['_initUnitPermissionChange'](){const _0x4418ec=_0x7011be,_0x372828=async _0x844349=>{const _0x3eadba=_0x312b;(await this[_0x3eadba(0x4a8)]['requireSession'](_0x844349))['event$'][_0x3eadba(0x185)](_0x273b1e(_0x1878b6=>_0x1878b6[_0x3eadba(0x2fb)]===_0x3edc6c[_0x3eadba(0x1bb)]),_0x559853(this[_0x3eadba(0x3f3)]))['subscribe'](_0x2840b3=>{const _0x1e9e6d=_0x3eadba,_0x722295=_0x2840b3,{objectId:_0x5391a4}=_0x722295[_0x1e9e6d(0x253)],_0x124a4e=this[_0x1e9e6d(0x47c)][_0x1e9e6d(0x3be)](_0x223460);_0x5391a4===_0x844349?_0x124a4e[_0x1e9e6d(0x274)](_0x844349):_0x124a4e['refreshPermission'](_0x844349,_0x5391a4);});};_0x2b5f15(this[_0x4418ec(0x2c3)][_0x4418ec(0x4c7)](_0x223004['UNIVER_SHEET']),this[_0x4418ec(0x2c3)][_0x4418ec(0x4c7)](_0x223004[_0x4418ec(0x1a0)]))[_0x4418ec(0x185)](_0x4b1d28(_0x1c54eb=>_0x1c54eb[_0x4418ec(0x3bf)]()),_0x273b1e(_0x5bc424=>!_0x1b37cc(_0x5bc424)),_0x559853(this[_0x4418ec(0x3f3)]))[_0x4418ec(0x376)](_0x3d4c9d=>{_0x372828(_0x3d4c9d);});}};Ke=Xo([_0x4a01a1(_0x268ec2[_0x7011be(0x438)],Ke),Pe(0x0,_0x4f6f98(_0x8f002c)),Pe(0x1,_0x29e7a7),Pe(0x2,_0x28c276),Pe(0x3,_0x4f6f98(ce)),Pe(0x4,_0x4f6f98(_0x95964d))],Ke);var Jo=Object[_0x7011be(0x38b)],qo=Object[_0x7011be(0x24f)],zo=(_0x276a27,_0xa700cc,_0x18a140,_0x4488f7)=>{const _0x42558b=_0x7011be;for(var _0x435a76=_0x4488f7>0x1?void 0x0:_0x4488f7?qo(_0xa700cc,_0x18a140):_0xa700cc,_0x36b4fb=_0x276a27[_0x42558b(0x2db)]-0x1,_0x4943bb;_0x36b4fb>=0x0;_0x36b4fb--)(_0x4943bb=_0x276a27[_0x36b4fb])&&(_0x435a76=(_0x4488f7?_0x4943bb(_0xa700cc,_0x18a140,_0x435a76):_0x4943bb(_0x435a76))||_0x435a76);return _0x4488f7&&_0x435a76&&Jo(_0xa700cc,_0x18a140,_0x435a76),_0x435a76;},Ss=(_0x4f2ea6,_0x1ffd4f)=>(_0x2e0eff,_0x28d2af)=>_0x1ffd4f(_0x2e0eff,_0x28d2af,_0x4f2ea6);let Mt=class{constructor(_0x1c8f20,_0x531633){const _0x1314b4=_0x7011be;this['_configService']=_0x1c8f20,this[_0x1314b4(0x220)]=_0x531633;}async[_0x7011be(0x3e7)](_0x4d8c98,_0x2e383b){const _0x1c2f3e=_0x7011be;var _0x33b4fe;const {unitID:_0x153d51,type:_0x146d48,revision:_0x5b7eb1=0x0}=_0x2e383b,_0x7c43ee=this['_getSnapshotAPIPrefix']()+'/'+_0x146d48+_0x1c2f3e(0x3b7)+_0x153d51+_0x1c2f3e(0x2e7)+_0x5b7eb1,_0x215ff0=(await this[_0x1c2f3e(0x220)][_0x1c2f3e(0x3be)](_0x7c43ee))[_0x1c2f3e(0x1ce)],_0x5a6587=(_0x33b4fe=_0x215ff0[_0x1c2f3e(0x3a1)])==null?void 0x0:_0x33b4fe['workbook'];if(_0x5a6587){const _0x2a3a72=_0x5a6587==null?void 0x0:_0x5a6587[_0x1c2f3e(0x17a)],_0x23bb6b=_0x16f5f9[_0x1c2f3e(0x2ff)](_0x5316b9(_0x2a3a72));_0x5a6587[_0x1c2f3e(0x17a)]=_0x23bb6b,Object[_0x1c2f3e(0x27d)](_0x5a6587['sheets'])[_0x1c2f3e(0x429)](([,_0x2987c8])=>{const _0x26fea3=_0x1c2f3e,_0x4c696d=_0x2987c8['originalMeta'],_0x188f0f=_0x16f5f9[_0x26fea3(0x2ff)](_0x5316b9(_0x4c696d));_0x2987c8[_0x26fea3(0x17a)]=_0x188f0f;});}return _0x215ff0;}async[_0x7011be(0x47f)](_0xfecbf7,_0x57b303){const _0x4b6800=_0x7011be,{unitID:_0x1b2a48,type:_0x23b963,blockID:_0xc5011e}=_0x57b303,_0x22713d=this[_0x4b6800(0x3c9)]()+'/'+_0x23b963+_0x4b6800(0x3b7)+_0x1b2a48+'/block/'+_0xc5011e;return(await this[_0x4b6800(0x220)][_0x4b6800(0x3be)](_0x22713d))['body'];}async['getDeserializedSheetBlock'](_0x28c805,_0x310e90){const _0x5d26c5=_0x7011be,{unitID:_0x1825d3,type:_0x3a0b74,blockID:_0x243f7c}=_0x310e90,_0x1d9f02=this[_0x5d26c5(0x3c9)]()+_0x5d26c5(0x371)+_0x3a0b74+'/unit/'+_0x1825d3+_0x5d26c5(0x371)+_0x243f7c;return(await this[_0x5d26c5(0x220)][_0x5d26c5(0x3be)](_0x1d9f02))[_0x5d26c5(0x1ce)];}async[_0x7011be(0x262)](_0x27984d,_0x884eca){const _0x318d0c=_0x7011be,{unitID:_0x4f7c50,type:_0x22cf16,from:_0x58a5ec,to:_0x4b29f9}=_0x884eca,_0x10c014=this[_0x318d0c(0x3c9)]()+'/'+_0x22cf16+_0x318d0c(0x3b7)+_0x4f7c50+'/fetchmissing?from='+_0x58a5ec+_0x318d0c(0x17e)+_0x4b29f9;return(await this[_0x318d0c(0x220)][_0x318d0c(0x3be)](_0x10c014))[_0x318d0c(0x1ce)];}[_0x7011be(0x29a)](){const _0xdb4f04=_0x7011be;var _0x1c197c;return(_0x1c197c=this[_0xdb4f04(0x1c9)][_0xdb4f04(0x34f)](gn))!=null?_0x1c197c:this[_0xdb4f04(0x3c9)]();}[_0x7011be(0x3c9)](){const _0xb60b93=_0x7011be;var _0x3b4456,_0x1d4e6d;const _0x66abe9=this['_configService'][_0xb60b93(0x34f)](fn),_0x3ef6ed=this[_0xb60b93(0x1c9)]['getConfig'](L);return(_0x1d4e6d=(_0x3b4456=_0x3ef6ed==null?void 0x0:_0x3ef6ed[_0xb60b93(0x497)])!=null?_0x3b4456:_0x66abe9)!=null?_0x1d4e6d:mn;}async[_0x7011be(0x370)](_0x26f650,_0x1d5265){const _0x4d418f=_0x7011be,_0x304d5f=_0x4d418f(0x2d2)+_0x1d5265[_0x4d418f(0x4b7)]+'/unit/'+_0x1d5265[_0x4d418f(0x363)]+_0x4d418f(0x456);return(await this[_0x4d418f(0x220)][_0x4d418f(0x3be)](_0x304d5f,{'params':{'resourceId':JSON[_0x4d418f(0x3ec)](_0x1d5265[_0x4d418f(0x442)])}}))[_0x4d418f(0x1ce)];}[_0x7011be(0x417)](){const _0x9d8683=_0x7011be;throw new Error(_0x9d8683(0x2c9));}['saveSheetBlock'](){const _0x493665=_0x7011be;throw new Error(_0x493665(0x2c9));}[_0x7011be(0x245)](){const _0x224b44=_0x7011be;throw new Error(_0x224b44(0x2c9));}[_0x7011be(0x4c4)](){const _0x4422c9=_0x7011be;throw new Error(_0x4422c9(0x2c9));}};Mt=zo([Ss(0x0,_0x516197),Ss(0x1,_0x4f6f98(_0x263986))],Mt);var Zo=Object['defineProperty'],Qo=Object[_0x7011be(0x24f)],ea=(_0xff2c90,_0x5cec58,_0x1cdb31,_0x40523)=>{for(var _0x5c4c3a=_0x40523>0x1?void 0x0:_0x40523?Qo(_0x5cec58,_0x1cdb31):_0x5cec58,_0x4a52ad=_0xff2c90['length']-0x1,_0x39ec89;_0x4a52ad>=0x0;_0x4a52ad--)(_0x39ec89=_0xff2c90[_0x4a52ad])&&(_0x5c4c3a=(_0x40523?_0x39ec89(_0x5cec58,_0x1cdb31,_0x5c4c3a):_0x39ec89(_0x5c4c3a))||_0x5c4c3a);return _0x40523&&_0x5c4c3a&&Zo(_0x5cec58,_0x1cdb31,_0x5c4c3a),_0x5c4c3a;},ye=(_0x3237a4,_0x2ad93e)=>(_0xc44f00,_0x535dbd)=>_0x2ad93e(_0xc44f00,_0x535dbd,_0x3237a4);let At=class extends _0x4b8f0d{constructor(_0x2407a2,_0x3eccbe,_0x17fd01,_0x1ebfbb,_0x31eec3){super(_0x2407a2,_0x3eccbe,_0x17fd01),this['_transformService']=_0x1ebfbb,this['_logService']=_0x31eec3;}[_0x7011be(0x1e5)](_0x5cee0d,_0x54c16e){const _0x2a37bb=_0x7011be,_0x5d59cb=this[_0x2a37bb(0x31d)](_0x5cee0d);if(_0x5d59cb)try{const _0x2e1cb4=this[_0x2a37bb(0x3e5)](_0x5d59cb,_0x54c16e);this[_0x2a37bb(0x472)](_0x5cee0d,_0x2e1cb4);}catch(_0x31c917){this[_0x2a37bb(0x1b4)]['error']('[CollaborationUndoRedoService]',_0x31c917),this[_0x2a37bb(0x4ac)](_0x5cee0d);}const _0x28b2d4=this['_getRedoStack'](_0x5cee0d);if(_0x28b2d4)try{const _0x22f06c=this[_0x2a37bb(0x3e5)](_0x28b2d4,_0x54c16e);this[_0x2a37bb(0x41a)](_0x5cee0d,_0x22f06c);}catch(_0x3b1264){this[_0x2a37bb(0x1b4)][_0x2a37bb(0x174)](_0x3b1264),this[_0x2a37bb(0x305)](_0x5cee0d);}}[_0x7011be(0x4ac)](_0x5efdab){const _0x2d9fc7=_0x7011be,_0xcc6742=this[_0x2d9fc7(0x31d)](_0x5efdab);_0xcc6742&&(_0xcc6742[_0x2d9fc7(0x2db)]=0x0,this[_0x2d9fc7(0x4c3)]());}[_0x7011be(0x305)](_0x6379cc){const _0x3616d0=_0x7011be,_0x1c28e8=this[_0x3616d0(0x3a9)](_0x6379cc);_0x1c28e8&&(_0x1c28e8[_0x3616d0(0x2db)]=0x0,this[_0x3616d0(0x4c3)]());}[_0x7011be(0x472)](_0x3e27e7,_0x357e9f){const _0x587040=_0x7011be;this[_0x587040(0x410)][_0x587040(0x2e0)](_0x3e27e7,_0x357e9f),this[_0x587040(0x4c3)]();}[_0x7011be(0x41a)](_0x467750,_0x4ae38f){const _0x41ccc5=_0x7011be;this[_0x41ccc5(0x465)][_0x41ccc5(0x2e0)](_0x467750,_0x4ae38f),this[_0x41ccc5(0x4c3)]();}[_0x7011be(0x3e5)](_0x4ae351,_0x5ef106){const _0x48925d=_0x7011be,_0x232d22=[];let _0x3e3d8a=_0x5ef106,_0x1d26f8=_0x5ef106;for(let _0x239bf1=_0x4ae351[_0x48925d(0x2db)]-0x1;_0x239bf1>=0x0;_0x239bf1--){const {unitID:_0xf751e5,undoMutations:_0x55d986,redoMutations:_0x56aff5}=_0x4ae351[_0x239bf1],_0x5e7eb8=this[_0x48925d(0x26f)][_0x48925d(0x37b)](_0x3e3d8a,_0x55d986),_0x349013=this[_0x48925d(0x26f)]['transformMutationsWithChangeset'](_0x1d26f8,_0x56aff5);if(_0x1e8ba7(_0x5e7eb8)||_0x1e8ba7(_0x349013)){this[_0x48925d(0x1b4)][_0x48925d(0x174)]('[CollaborationUndoRedoService]',_0x48925d(0x2b5),_0x5e7eb8,_0x349013);break;}_0x3e3d8a=_0x5e7eb8['c1Prime'],_0x1d26f8=_0x349013['c1Prime'],_0x232d22[_0x48925d(0x1c4)]({'unitID':_0xf751e5,'undoMutations':_0x5e7eb8['m2Prime'],'redoMutations':_0x349013[_0x48925d(0x1d5)]});}return _0x232d22[_0x48925d(0x190)]();}};At=ea([ye(0x0,_0x29e7a7),ye(0x1,_0x2cea1d),ye(0x2,_0x55e323),ye(0x3,_0x49c306),ye(0x4,_0x2f2df5)],At);class ta extends _0x101c13{constructor(){const _0xe74d94=_0x7011be;super(),l(this,_0xe74d94(0x1a1)),this[_0xe74d94(0x1a1)]=_0x446249(window,_0xe74d94(0x372))[_0xe74d94(0x185)](_0x25a74d(this[_0xe74d94(0x3f3)]),_0x290704(0x1),_0x5cdfe1(void 0x0));}[_0x7011be(0x276)](_0x462b51,_0x441a89,_0x4f2467=!0x1){const _0x45d8df=_0x7011be,_0x4a6827=new URL(window['location'][_0x45d8df(0x49e)]);_0x4a6827['searchParams'][_0x45d8df(0x2e0)](_0x462b51,_0x441a89),_0x4f2467?window[_0x45d8df(0x209)][_0x45d8df(0x32b)]('','',_0x4a6827[_0x45d8df(0x25e)]()):window['history'][_0x45d8df(0x48a)]('','',_0x4a6827['toString']());}[_0x7011be(0x335)](_0xac55b0,_0x376ac5=!0x1){const _0x52a82c=_0x7011be,_0x3d3225=new URL(window[_0x52a82c(0x49f)][_0x52a82c(0x49e)]);_0x3d3225[_0x52a82c(0x287)][_0x52a82c(0x415)](_0xac55b0),_0x376ac5?window[_0x52a82c(0x209)][_0x52a82c(0x32b)]('','',_0x3d3225[_0x52a82c(0x25e)]()):window[_0x52a82c(0x209)]['pushState']('','',_0x3d3225[_0x52a82c(0x25e)]());}[_0x7011be(0x27b)](_0x5d8305){const _0x34b1fd=_0x7011be;var _0x116059;return(_0x116059=new URL(window[_0x34b1fd(0x49f)][_0x34b1fd(0x49e)])[_0x34b1fd(0x287)][_0x34b1fd(0x3be)](_0x5d8305))!=null?_0x116059:void 0x0;}}var Gs=Object[_0x7011be(0x38b)],sa=Object[_0x7011be(0x24f)],ia=(_0x5b90b6,_0x3bf7f3,_0x2dff81)=>_0x3bf7f3 in _0x5b90b6?Gs(_0x5b90b6,_0x3bf7f3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2dff81}):_0x5b90b6[_0x3bf7f3]=_0x2dff81,na=(_0x140f86,_0x4a5125,_0x1e06a1,_0xa3242f)=>{const _0x5f960f=_0x7011be;for(var _0x6d4345=_0xa3242f>0x1?void 0x0:_0xa3242f?sa(_0x4a5125,_0x1e06a1):_0x4a5125,_0x30ea82=_0x140f86[_0x5f960f(0x2db)]-0x1,_0x1623ec;_0x30ea82>=0x0;_0x30ea82--)(_0x1623ec=_0x140f86[_0x30ea82])&&(_0x6d4345=(_0xa3242f?_0x1623ec(_0x4a5125,_0x1e06a1,_0x6d4345):_0x1623ec(_0x6d4345))||_0x6d4345);return _0xa3242f&&_0x6d4345&&Gs(_0x4a5125,_0x1e06a1,_0x6d4345),_0x6d4345;},Ve=(_0x215e4c,_0x326d93)=>(_0x57255f,_0x45a9bc)=>_0x326d93(_0x57255f,_0x45a9bc,_0x215e4c),ra=(_0x1a6522,_0x17ad28,_0x5e6b19)=>ia(_0x1a6522,_0x17ad28+'',_0x5e6b19);const oa=_0x7011be(0x4c2);let Lt=class extends _0x1cfc3b{constructor(_0x474a19=Nn,_0x1bbbc8,_0x275d61,_0x9f3d87,_0x348d3a){const _0x3b7342=_0x7011be;super(),this[_0x3b7342(0x249)]=_0x474a19,this[_0x3b7342(0x1b4)]=_0x1bbbc8,this[_0x3b7342(0x18b)]=_0x275d61,this[_0x3b7342(0x47c)]=_0x9f3d87,this[_0x3b7342(0x1c9)]=_0x348d3a;const {..._0x52bd3d}=this[_0x3b7342(0x249)];this[_0x3b7342(0x1c9)][_0x3b7342(0x33e)](L,_0x52bd3d);}[_0x7011be(0x3a0)](){this['_registerDependencies']();}[_0x7011be(0x1a5)](){this['_registerRenderDependencies']();}[_0x7011be(0x32a)](){const _0x2ec000=_0x7011be;var _0x28c017,_0x61cd36,_0x5822b0,_0x39427a;this[_0x2ec000(0x47c)]['has'](_0x2334b3)&&this[_0x2ec000(0x1b4)][_0x2ec000(0x174)](_0x2ec000(0x46a),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x2235ab=[[_0x2334b3,{'useClass':At}],[ce],[Gt],[_0x263986],[Ws,{'useClass':ta}],[ae],[D],[_0x3cd3ec],[Qe],[et],[Ze],[Ft],[st],[it],[js],[Ke],[$s,{'useClass':(_0x61cd36=(_0x28c017=this[_0x2ec000(0x249)])==null?void 0x0:_0x28c017[_0x2ec000(0x3ca)])!=null?_0x61cd36:Tt}],[_0x3aeab2,{'useClass':_0x28fad5}],[_0x2b166c,{'useClass':Mt}],[_0x485c8a,{'useClass':Nt}],[_0x934fc7,{'useClass':Ut}],[Ae],[Ge],[Ue],[Ye],[ge]];(_0x5822b0=this['_config'])!=null&&_0x5822b0[_0x2ec000(0x33c)]&&_0x2235ab[_0x2ec000(0x1c4)]([nt,{'useClass':or}]),_0x2235ab=_0x130074(_0x2235ab,(_0x39427a=this[_0x2ec000(0x249)])==null?void 0x0:_0x39427a[_0x2ec000(0x3e4)]),_0x2235ab[_0x2ec000(0x429)](_0x247906=>this[_0x2ec000(0x47c)][_0x2ec000(0x3cb)](_0x247906)),this[_0x2ec000(0x42e)]();}[_0x7011be(0x299)](){const _0x34a21e=_0x7011be;this[_0x34a21e(0x26d)](this[_0x34a21e(0x18b)][_0x34a21e(0x44d)](_0x223004[_0x34a21e(0x1a0)],[We])),this[_0x34a21e(0x26d)](this[_0x34a21e(0x18b)][_0x34a21e(0x44d)](_0x223004[_0x34a21e(0x42d)],[yt]));}[_0x7011be(0x42e)](){const _0x53279c=_0x7011be;var _0x3e70c4,_0xa8dd13;this[_0x53279c(0x47c)][_0x53279c(0x3be)](_0x263986)[_0x53279c(0x477)]({'priority':0x14,'interceptor':_0x5485d7({'maxParallel':0x6})}),this['_injector'][_0x53279c(0x3be)](it),(_0x3e70c4=this['_config'])!=null&&_0x3e70c4[_0x53279c(0x347)]||this[_0x53279c(0x47c)]['get'](D)[_0x53279c(0x26a)](),(_0xa8dd13=this[_0x53279c(0x249)])!=null&&_0xa8dd13[_0x53279c(0x421)]&&this['_injector'][_0x53279c(0x3be)](st),this[_0x53279c(0x47c)][_0x53279c(0x3be)](Ae),this['_injector'][_0x53279c(0x436)](Ue)&&this['_injector'][_0x53279c(0x3be)](Ue);}};ra(Lt,_0x7011be(0x20d),oa),Lt=na([_0xc3da8d(_0x19c1c0),Ve(0x1,_0x2f2df5),Ve(0x2,_0x5d47cb),Ve(0x3,_0x4f6f98(_0x8f002c)),Ve(0x4,_0x516197)],Lt);export{No as AUTHZ_URL_KEY,Nt as AuthzIoHttpService,Dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,pn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,tt as CollaborationEntity,Rt as CollaborationSession,ce as CollaborationSessionService,Tt as CollaborationSocketService,w as CollaborationStatus,_o as CollaborationStatusDisplay,js as CommentService,Ge as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,Ot as DocCollaborationEntity,In as HEARTBEAT_INTERVAL_KEY,Us as HEARTBEAT_TIMEOUT_KEY,$s as ICollaborationSocketService,Ws as IURLService,Ut as ImageIoService,Rn as LOCAL_CACHE_INTERVAL_KEY,Pn as LOGIN_URL_KEY,D as LocalCacheService,bn as RETRY_CONNECTING_MAX_COUNT_KEY,Da as SEND_CHANGESET_TIMEOUT_KEY,fn as SNAPSHOT_SERVER_URL_KEY,gn as SNAPSHOT_URL_KEY,G as SessionStatus,Kr as SheetCollabCursorShape,Dt as SheetCollaborationEntity,Mt as SnapshotServerOverHTTPService,Lt as UniverCollaborationClientPlugin,ta as WebURLService,Un as deserializeToCombResponse,Mn as serializeCombRequest};
1
+ const _0x4c1f23=_0x4c7d;(function(_0x584523,_0x59eca4){const _0x3c939b=_0x4c7d,_0x418f4c=_0x584523();while(!![]){try{const _0x117914=parseInt(_0x3c939b(0x122))/0x1+parseInt(_0x3c939b(0x39c))/0x2+-parseInt(_0x3c939b(0x3d2))/0x3*(-parseInt(_0x3c939b(0x2d8))/0x4)+parseInt(_0x3c939b(0x2a4))/0x5*(parseInt(_0x3c939b(0x3a1))/0x6)+-parseInt(_0x3c939b(0x349))/0x7*(-parseInt(_0x3c939b(0x231))/0x8)+-parseInt(_0x3c939b(0x39b))/0x9*(-parseInt(_0x3c939b(0x18b))/0xa)+-parseInt(_0x3c939b(0x267))/0xb*(parseInt(_0x3c939b(0x2e8))/0xc);if(_0x117914===_0x59eca4)break;else _0x418f4c['push'](_0x418f4c['shift']());}catch(_0x50b02c){_0x418f4c['push'](_0x418f4c['shift']());}}}(_0x583f,0xc16f8));var qs=Object[_0x4c1f23(0x2e9)],zs=(_0x958bb9,_0x488792,_0x396ceb)=>_0x488792 in _0x958bb9?qs(_0x958bb9,_0x488792,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x396ceb}):_0x958bb9[_0x488792]=_0x396ceb,l=(_0x2c576a,_0x5caf02,_0xe76fb6)=>zs(_0x2c576a,typeof _0x5caf02!=_0x4c1f23(0x12f)?_0x5caf02+'':_0x5caf02,_0xe76fb6);import{createIdentifier as _0x2d62b5,Inject as _0x321449,Disposable as _0x22db72,DisposableCollection as _0x242419,toDisposable as _0x5738c2,IConfigService as _0x4d21d1,ILogService as _0x50688a,UserManagerService as _0xc3ed3,UniverInstanceType as _0x4c91c9,IUniverInstanceService as _0x375068,LocaleService as _0x2e153b,Optional as _0x9bfc3c,RxDisposable as _0x2dacfb,Injector as _0x313fa0,Tools as _0x403f58,ILocalStorageService as _0x23441d,ICommandService as _0x265863,JSONX as _0x107e10,CommandType as _0xcd477b,IPermissionService as _0x52f39f,IUndoRedoService as _0x2fbed3,sequenceExecute as _0x2aed7d,debounce as _0x1b3960,Rectangle as _0x31476b,COLORS as _0x3ca793,ColorKit as _0x3fd1db,ThemeService as _0x6f1691,fromEventSubject as _0x46c56e,useDependency as _0x18fbb6,connectInjector as _0x538d64,Workbook as _0xa32c6e,isInternalEditorID as _0x46dc72,LocalUndoRedoService as _0x2d287d,IContextService as _0x163f08,DependentOn as _0x4869be,Plugin as _0x43f0d0,touchDependencies as _0x50ed8d,IAuthzIoService as _0x2eeda2,mergeOverrideWithDependencies as _0x1588d5}from'@univerjs/core';import{Subject as _0xacaad6,merge as _0x5de0ce,takeUntil as _0x289d57,BehaviorSubject as _0x2ec58d,distinctUntilChanged as _0x1f43e4,fromEvent as _0x1e2c02,map as _0x16d2df,shareReplay as _0xb96cea,take as _0x448807,of as _0x570d55,debounceTime as _0x3504d2,filter as _0x4c7e5a,switchMap as _0x4e9858,combineLatest as _0x4fd693,concatMap as _0x42e091,mapTo as _0x5810d1}from'rxjs';import{map as _0x3d528e,take as _0x41fec6,filter as _0x1f1135,delay as _0x160a7a,throttleTime as _0x4ac9c9,takeUntil as _0x3ae8cf,switchMap as _0x59e45c}from'rxjs/operators';import{MessageType as _0x57eb36,Tooltip as _0x465a5c}from'@univerjs/design';import{IBeforeCloseService as _0x3cc7ef,IMessageService as _0x5d3b7c,INotificationService as _0x7f7802,useObservable as _0x481936,BuiltInUIPart as _0x385326,IUIPartsService as _0x3fbc73}from'@univerjs/ui';import{HTTPService as _0x1fbfa2,WebSocketService as _0x57aa72,MergeInterceptorFactory as _0x34ac01,HTTPRequest as _0x4a19a1,IHTTPImplementation as _0x147a26,XHRHTTPImplementation as _0x5d6c50,ThresholdInterceptorFactory as _0x537a47}from'@univerjs/network';import{CollaborationEvent as _0x273d8c,parseChangesetToProtocol as _0x2b2dd8,ISnapshotServerService as _0x4c90dd,isTransformMutationFailure as _0x3737c9,isTransformMutationsWithChangesetSuccess as _0x8db330,ITransformService as _0x56767e,RevisionService as _0x5d1c03,mapDocumentTypeToUniverType as _0x53eda4,isTransformChangesetsSuccess as _0x428767,CompressMutationService as _0x2615ec,parseProtocolChangeset as _0x569e1c,SnapshotService as _0x38d13f,textEncoder as _0x2c535e,b64DecodeUnicode as _0x58e839,isTransformMutationsWithChangesetFailure as _0x54fa31,UniverCollaborationPlugin as _0x229d30}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x2263bf}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x322779,RichTextEditingMutation as _0x1b2745,SetTextSelectionsOperation as _0x254038,DocSkeletonManagerService as _0x5e9e87}from'@univerjs/docs';import{DocIMEInputManagerService as _0x74964,DocStateChangeManagerService as _0x3f8e0c,NodePositionConvertToCursor as _0x2b89f0,isValidRectRange as _0x53f2b8,NodePositionConvertToRectRange as _0x459c36,TEXT_RANGE_LAYER_INDEX as _0x1c10b5,SetDocZoomRatioOperation as _0xd8bdfb}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x152281,SetSelectionsOperation as _0x137748,InsertSheetMutation as _0x3f0b63,EmptyMutation as _0x489e71,WorkbookEditablePermission as _0x42c12f,RefRangeService as _0x70f3a6,EffectRefRangId as _0x5bd706,handleIRemoveRow as _0x37d328,handleIRemoveCol as _0x5ebff0,handleMoveRange as _0x104260,handleInsertRow as _0x4c71a9,handleInsertRangeMoveRight as _0x2d766e,handleInsertRangeMoveDown as _0x40cb3b,handleInsertCol as _0xb9b59c,handleDeleteRangeMoveUp as _0x362d52,handleDeleteRangeMoveLeft as _0x28d514,runRefRangeMutations as _0x12db35,SetWorksheetActivateCommand as _0x2ca650}from'@univerjs/sheets';import{IRenderManagerService as _0x3f9a6b,Shape as _0xca1f86,Rect as _0x3a075a,getColor as _0x17a368,RegularPolygon as _0x28ffa0,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x58f61e,Vector2 as _0x3b739f}from'@univerjs/engine-render';import{ImageSourceType as _0x1946dd,ImageUploadStatusType as _0x1f89ce,IImageIoService as _0x74670d}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x2363ba,serializeRangeWithSheet as _0x48cd80}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x3d1738,VIEWPORT_KEY as _0x14e392,getCoordByCell as _0x14b841,getSheetObject as _0x24a93b,SheetPermissionInitController as _0x293481}from'@univerjs/sheets-ui';import _0x1e4ea9,{forwardRef as _0x2e90f2,useRef as _0x5ed056,createElement as _0xff9a40,useCallback as _0x1d425c}from'react';function _0x583f(){const _0x5687a0=['_socketService','_lockTransition','_waitCount','updateOfflineData','removeMember','colorChannel1','reconnect','getSkeleton','cursorInfo$','_disableEditing','function','getRangePointData','status$','addObject','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','indexOf','addEventListener','toggleOffline','LIVESHARE_OPERATION','_clearScheduledTask','collaboration_new_changeset','CHANGESET_REJ','_substituteUndoStack','infoRsp','/allowed','_getSaveTimeout','_registerRenderDependencies','min','_unlockTransition','[PendingState]:\x20received\x20rejection.','YUUMI_RATE_OVER_LIMIT','_labelPosition','_docSkeleton','setCurrentUser','_revisionService','code','permission.content','history','create','207hTwWFi','228938vCtfAV','socketService','with','getMember','transformChangesets','642UCXBTx','disableLocalCache','_collabCursorController','clipPath','exhaustSavingTask','_eventUnsubscribe','PENDING','_notificationService','[CollaborationSessionService]','_executeRemoteChangeset','_setupBeforeClosingHandler','jiqing500','_clearOtherTimers','_listenToOfflineEvent','call','FileId','USERS_ENTER','location','_handleJoinEvent','...','triggerDblclick','_getUndoStack','_docSyncEditingCollabCursorService','requestParams','isPermissionRej','json','UNKNOWN_CODE','unload','_substituteRedoStack','resolve','_textBubble','InsertRangeMoveRightCommandId','_incrementRevisionNumber','_syncEditingCollabCursorService','_state$','_createSocket','_getAPIPrefixPath','_checkMissing','createElement','_clearRedo','_shouldReportTelemetry','tag','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','setTimeout','reduce','_undoRedoService','retryConnectingInterval','?url=','enableLocalCache','57RnxwCM','updateCollaborator','OFFLINE','_syncEditingCollabCursor','revision','mutations','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_snapshotService','onMouseMove','LIVESHARE_NEW_HOST','_sendingTimer','liveShareOperation','initWorkbookPermissionChange','NOT_COLLAB','resourceIDs','/unit/','none','_name','Error\x20on\x20receiving\x20event','UNDEFINED','values','LICENSE_MAX_UNITS_EXCEEDED','/universer-api/snapshot','_retryConnectingTimer','FETCH_MISSING','_snapshotServerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','localeService','appendMutation','transformMutation','blue400','_initCommandExecutedListener','editingUnit','_getSendChangesetTimeout','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','#fff','getTypeOfUnitAdded$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','close','_submitChangeset','[OfflineState]:\x20received\x20rejection.','getSheetBySheetId','length','_getUploadFileURL','black','OnLineSingle','getViewport','collab-text-range-','_initRequestHeader','_updateStatus','rgba(255,\x20255,\x20255,\x200.01)','UnitSnapshot','/block/','responseType','getCurrentSelections','c1Prime','JOIN','_members','sheets','closeSession','SUBMIT_CHANGESET','apply','_HTTPService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_createInitialStateImpl','getWorkbookSelections','then','_collaborationTimeoutTimer','svg','_handleEvent','gold400','unitId\x20is\x20not\x20found','_id','column','_joinRoom','event$','restore','_drawTextRange','LEAVE','_getMergeRange','OffLineSingle','MoveRangeCommandId','getParam','registerHTTPInterceptor','objectID','_compressMutationService','_shapes','_http','image/bmp','_cursor','clear','onStarting','getSheetBlock','_updateCollabCursors','_entities','status','LIVESHARE_FETCH_OPERATIONS','_getRedoStack','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','idSuffix','searchParams','[PendingState]:\x20unhandled\x20univer\x20type:\x20','INTERNAL_ERROR','getOwnPropertySymbols','updatePermissionPoint','/-/object/-/batch_allowed','/new_changes','_tryReconnect','_commentService','method','memberID','collabStatus.syncing','_telemetryInfo','transformMutationsWithChangeset','_hover','_heartbeatTimer','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_scheduleHeartbeat','UniverIcon','_updateURLWithCurrentState','[FetchMissState]','_scheduleTimestamp','_status$','_anchorDot','image/jpeg','_collaborationPaused','getAncestorScale','Error','_removeRoom','_scene','delete','InsertRowCommandId','_sheetTransformSelectionsService','defIds','font','_onCombEvent','getRelativeToViewportCoord','_localCacheService','_waitForHeartbeatResponse','_removeClearOtherTimer','\x20to\x20','now','LICENSE_DISTRO_REJECTED','_send','saveChangeset','MUTATION','state$','UNIVER_COLLABORATION_CLIENT_PLUGIN','encode','origin','_registerDependencies','unitId','_removeCollabCursors','saveImage','_toggleOffline','duration','_getSnapshotAPIPrefix','allowed','bottom','error$','shouldCloseConn','find','generateRandomId','subunit','UPDATE_CURSOR','OTHER_CLIENTS_EDITING','onRemoteRej','[PendingState]:\x20received\x20acknowledgement.','_fetchMissChangesets','_createHandler','_ws','editing\x20status\x20changed\x20to','_docTransformIMECacheService','onMissedChangesetFetched','asObservable','registerComponent','awaitingChangeset','fetchMiss','forEach','m2Prime','setConfig','reverse','off-line-single_clip0_910_343','[OfflineState]:\x20received\x20acknowledgement.','_onCursorUpdate','loadOfflineData','doc.mutation.rich-text-editing','prototype','sheetID','skeleton','onRemoteChangeset','UNIVER_SHEET','BASE64','range','sessionStatus','getConfig','urlChange$','SNAPSHOT_HAS_BEEN_REMOVED','enableOfflineEditing','roomMembers$','includes','message$','/-/object/list','_localeService','transformIMECache','getUniverSheetInstance','collaboration-session-retry','UNIVER_DOC','_drawAnchor','_handleHeartbeatEvent','onTransformChange$','url','494373KfsTJA','activeSheet$','name','textRanges','from','JOINING','_logService','Warning','CONFLICT','/universer-api/comb','getCellPositionByOffset','_getLoginPath','_transformUndoredo','symbol','some','_unitOnClients','_configService','getOwnPropertyDescriptor','getUnitOnRev','getActiveSheet','INGEST','_instanceService','ranges','snapshotServerUrl','_clearUndo','_socket','_replayCachedMutations','_onConnectionFailed','concat','/role','withCredentials','APPLY_PERMISSION_DENIED','compose','collaboration.single-unit.warning','[CollaborationSession]','_rescheduleHeartbeat','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_urlService','save','loginUrlKey','subscribeEvent','_pendingMutations','_updateState','_localStorageService','getTime','resize','size','_sendHeartbeat','executeCommand','round','_onRemoteACK','fetchMissingChangesets','MSG_FOR_ERROR','every','_startDocCollabCursor','USERS_LEAVE','originalMeta','_permissionService','unshift','unsubscribe','reject','show','_event$','_injector','csAckEvent','_transformStack','href','APPLY_REVISION_CONFILICT','_disabled','onCommandExecuted','_docSkeletonManagerService','_type','_getSignURL','getUndoRedoMutationParamsCache','getCurrentUser','path','_assignedColors','selections','createInstance','setActiveRange','deepClone','stopTime','COLLAB_SUBMIT_CHANGESET_URL','_getSheetObject','session','{fileID}','_refRangeService','error','_toggleOnline','clearInterval','map','verdancy600','commentUpdate$','/collaborator','src','NOT_FOUND','_onOffline','members','_initCloseConn','eventID','getUnitStatus$','close$','getCurrentRevOfUnit','roles','465830xlEJZm','_unitStatus','DeleteRangeMoveUpCommandId','replace','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','HELLO','COMPRESS_MUTATION_SEND','incrementRevOfUnit','SEND_CHANGESET_TIMEOUT','_state','_replaceFileID','HEARTBEAT_TIMEOUT','/object/','setParam','_loadSheet','m1Prime','_onUserJoin','_onJoinRoomEvent','_transformUndoRedoStack','_httpService','_clearCollaborationTimeoutTimer','_startCollaboration','override','_hideTimer','COMPRESS_MUTATION_APPLY','_range','createSocket','pipe','getActiveRange','getSheetId','className','copyFileMeta','_onRemoteChangeset','_transformPreviousActiveRange','_userManagerService','setInterval','red300','headers','getRenderById','_getDownloadEndpointURL','_onRecvEvent','_drawRectRange','YUUMI_SUBSCRIPTION_NOT_FOUND','_stopTelemetryCollaborationNewChangeset','collabStatus.fetchMiss','_colorIndex','init','_config','onStateChange','_redoStacks','substring','_beforeCloseService','getInterceptPoints','onTransformSelections','_unitID','_saveCache','UNIVER_SLIDE','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','FETCH_MISS','TOO_MANY_REQUESTS','registerRenderModule','_queuedRemoteChangesets','AWAITING','UNRECOGNIZED','[CollaborationState]:\x20apply\x20error!','session.collaboration-timeout','fromCollab','_cursorInfo$','lineTo','visibilitychange','body','type','image/jpg','_onRemoteRejected','getOffsetConfig','SHOULD_CLOSE_CONN','UNIVER_PROJECT','/object','_clearLocalCache','leaveEvent','fetch_missing','SNAPSHOT_INVALID_SNAPSHOT','univerjs-icon\x20univerjs-icon-','liveShareNewHost','HEARTBEAT','_collabSessionService','pushState','engine','dispose','hide','userID','onSyncEditingCollabCursor','newValue','max','createCollaborator','joinRsp','url(#on-line-single_clip0_910_349)','_sendHeartbeatTimer','_onFetchMissResult','_commandService','_transitionLocked','getCurrent','drawWith','unitID','_onRefRangeChange','_getCtorByUniverType','replaceState','conflict.title','syncEditingCollabCursor','_change$','transformStack\x20failed!','setShapeProps','baseRev','_initMergeInterceptor','_socket$','_remoteChangesetQueue','onTransformIME','loadSheet','_ensureSubject','_hovered','getFocusedUnit','findNodePositionByCharIndex','YUUMI_URL_COL_OUT_OF_RANGE','file','_render','offline','transformRemoteChangeset','debug','currentColor','_clearHeartbeatTimer','has','_scheduleSaving','_onUserLeave','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','UNAUTHENTICATED','subUnitId','commentUpdateEvent','RemoveColCommandId','/universer-api/snapshot/','DEFAULT_FILE_NAME','send','changesets','endRow','_imageSourceCache','div','M0\x200H16V16H0z','session.room-full','_handleHover','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_sessionStatus$','_onConflict','_initResize','catch','authzUrl','toString','resend','_telemetryService','collab-text-anchor-','collabStatus.conflict','assignAColorForMemberID','fillStyle','_sessions','EXCHANGE_SIGN_URL_SERVER_URL_KEY','confirm','SNAPSHOT_SERVER_URL_KEY','8dtDurG','_cursors','_collaborationController','onPointerEnter$','&source=','split','IDLE','visibilityState','collaboration-client.offline-data-not-saved','put','_cachedData','pauseCollaboration','next','measureText','[SyncedState]:\x20received\x20rejection.','_initUnitPermissionChange','uploadFileServerUrl','updatePermissionObjEvent','sheetId','hasOwnProperty','workbook','addImageSourceCache','closePath','disposeWithMe','x-univer-host','0\x200\x2017\x2016','_exhaustRemoteChangesetQueue','updateCursorEvent','_showConflictNotification','univer-online-status-icon','_selfUnitIDs','APPLY_REJECT','disposeUnit','_updateLocalCursor','conflict.content','getCollabEntity','readAsDataURL','string','_scheduleClearOtherTimer','_roomMembers$','collabSubmitChangesetUrl','onPointerLeave$','_online','getValue','_refreshCollabCursors','joinEvent','defs','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','onlineStatusTitle','_cursorShapes','fillText','_updateSubUnitFromURLParams','dispose$','_onMessage','7876sOPuki','entries','rev','UUID','_applyRemoteChangeset','change$','moveTo','hovered','#FFF','startsWith','_colorAssignService','endColumn','onRendered','_tryEnsureSocket','CONNECTOR_DATA_TOO_LARGE','/universer-api/authz','_anchor','xlink:href','attrs','_lastPointer','getUnitType','push','addObjects','_socketReady','submit\x20changeset\x20error!','subscribe','parse','_listenToOnlineEvent','currentTheme$','_uiPartsService','_clearTimeoutTimer','_startTelemetryCollaborationNewChangeset','unit','registerRefRange','collaborators','Undefined','failed\x20to\x20apply\x20missed\x20changesets!','InsertRangeMoveDownCommandId','SNAPSHOT_URL_KEY','getImageSourceCache','_messageService','LICENSE_IMPORT_SIZE_EXCEEDED','fill','_throwTelemetryCollaborationNewChangeset','loadDoc','sessionStatus$','_acknowledgedAwaitingChangeset','HEADER_MENU','replaceTextRanges','_schedule','collab-rect-range-','_retryCount','connection\x20error','url(#off-line-single_clip0_910_343)','slice','collaboration.closeRoom','_entityInit$','_createInitialState','use','isActive','/universer-api/stream/file/upload','12165ZzPxmy','capture','APPLY_NON_SEQUENTIAL_REVISION','fetching\x20missing\x20changesets\x20from\x20','_collaborationSessionService','off-line-single','_onConnectionOpen','DeleteRangeMoveLeftCommandId','_setupSubUnitSync','HttpExport','auth.needGotoLoginAlert','currentSkeleton$','COLLAB_WEB_SOCKET_URL','list','target','awaiting_with_pending','_initModules','_backgroundColor','online','getCollabEntity$','cursorInfo','_sheetSkeletonManagerService','row','labelPosition','transformUndoRedo','getDocRanges','ALREADY_EXISTS','PERMISSION_REJ','_session','FromArray','[SyncedState]:\x20received\x20acknowledgement.','univer-online-status','complete','result','RETRY_CONNECTING_MAX_COUNT','whenReady','_themeService','UPDATE_PERMISSION_OBJ','AUTHZ_URL_KEY','RemoveRowCommandId','FAIL','_isPermissionRej','_transformService','_getAPIPrefix','synced','saveSnapshot','_candidateSocket','_onCursorDelete','onSendChangeset','1em','updateMember','_initStatusComponent','9148UscBzD','toRgbString','_color','collab-client.tooltip.reconnect','_roomMembers','_onLocalMutation','displayName','_transformRemoteChangesetByIMECache','_getAnchorBounding','ONLINE','focused$','LIVESHARE_TERMINATE','NEW_CHANGESETS','onTransformRemoteChangesetByIMECache','extend','\x20in\x20_schedule.','27876PVTNMg','defineProperty','newCsEvent','&to=','requireSession','_memberService','getTypeOfUnitDisposed$','objectType','getResourcesRequest','ERROR_IMAGE','getUnhiddenWorksheets','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onPointerMove$','collabCursorState$','getUnit','all','setItem','_decreaseWaiting','startColumn','add','action','conflict','listCollaborators','_docTransformSelectionsService','_document','setUndoRedoMutationParamsCache','top','roomMembers','UnitEmbedded','height','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','_socketMessageSubscription','_context','_getCurrentRevision','registerOnClose','onlyLocal','text','color','ws://127.0.0.1:8000/universer-api/comb/connect','unknown','_univerInstanceService','socket\x20open.','saveOfflineData','_timeoutTimer','clearTimeout','cmd','SYNCED','InsertColCommandId','_initStatusListener','[CollaborationUndoRedoService]','/resources','HttpImport','/universer-api/oidc/authpage','assign','onMissingChangesets','toggleOnline','getCollabCursors$','width','PERMISSION_DENIED','evenodd','ACTIVE_UNIT_EVENT_CHANNEL','arc','RECV','YUUMI_UNABLE_LOAD_URL','random','set','_updateLocalCache','collabStatus.offline','isEditing','patch','_awaitingChangeset','_transformIMECache','startRow','removeParam','LIVESHARE_REQUEST_HOST','_renderManagerService','_loadDoc','_singleActiveUnitService','[DataLoaderController]','collabStatus.synced','setAlpha','data','Unknown\x20user','/fetchmissing?from=','_draw','actions','SUCCUSS','collabStatus.notCollab','getRoom','post','[UniverCollaborationClientPlugin]','_commentUpdate$','append','open$','_transformSelections','filter','get','3300815EeivvE','_init','_handler','transformSelections','\x0aCurrent:\x20','getUnitId','unit-cache-','onReady','_saveTaskMap','getItem','POST','state','LICENSE_EXPORT_SIZE_EXCEEDED','_collabCursorState$','onRemoteAck','_startSheetCollabCursor','uni.network.url-service','onCommentUpdate','isArray','_initEventListeners','interceptor','fetchThroughInterceptors','_handleLeaveEvent','stringify','UNIVER_UNKNOWN','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','selection','params','onlineStatusIcon','CHANGESET_REVISION_CONFILICT','key','CHANGESET_ACK','awaiting','[CollaborationSessionService]:\x20socket\x20error','not_collab','collaboration-client.config','purple300','update','roomInfos','getMemberID','Univer','image/gif','routeKey'];_0x583f=function(){return _0x5687a0;};return _0x583f();}import _0x42940b from'clsx';import{IRemoteInstanceService as _0x51139b}from'@univerjs/rpc';import{getAttachHeader as _0x575ac8}from'@univerjs-pro/license';const dn=_0x4c1f23(0x230),fn=_0x4c1f23(0x3e8),mn=_0x4c1f23(0x28d),Oa=_0x4c1f23(0x194),gn=0x7d0,Sn=_0x4c1f23(0x2b0),pn=_0x4c1f23(0x30e),vn='HEARTBEAT_INTERVAL',In=0x7530,Ns=_0x4c1f23(0x197),Us=0x4e20,En=0x4e20,Cn=_0x4c1f23(0x2c6),bn=0x3,Tn='LOCAL_CACHE_INTERVAL',Rn=0x3e8,On=_0x4c1f23(0x175),Dn=_0x4c1f23(0x12b),wn='LOGIN_URL_KEY',Pn=_0x4c1f23(0x31c);var Ms=(_0x3c8afd=>(_0x3c8afd[_0x3c8afd[_0x4c1f23(0x3e5)]=0x0]=_0x4c1f23(0x3e5),_0x3c8afd[_0x3c8afd['OK']=0x1]='OK',_0x3c8afd[_0x3c8afd[_0x4c1f23(0xb4)]=0x2]='INTERNAL_ERROR',_0x3c8afd[_0x3c8afd['PERMISSION_DENIED']=0x3]=_0x4c1f23(0x322),_0x3c8afd[_0x3c8afd['NOT_FOUND']=0x4]=_0x4c1f23(0x182),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x212)]=0x5]=_0x4c1f23(0x212),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x2be)]=0x6]=_0x4c1f23(0x2be),_0x3c8afd[_0x3c8afd['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1c7)]=0x8]='TOO_MANY_REQUESTS',_0x3c8afd[_0x3c8afd['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x366)]=0x1389]=_0x4c1f23(0x366),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1dd)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x113)]=0x1772]=_0x4c1f23(0x113),_0x3c8afd[_0x3c8afd['APPLY_REJECT']=0x1b59]=_0x4c1f23(0x250),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x2a6)]=0x1b5a]=_0x4c1f23(0x2a6),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x166)]=0x1b5b]=_0x4c1f23(0x166),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x141)]=0x1b5c]=_0x4c1f23(0x141),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x275)]=0x1f41]=_0x4c1f23(0x275),_0x3c8afd[_0x3c8afd['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4c1f23(0x3e7),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x3ed)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x290)]=0x232b]=_0x4c1f23(0x290),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x355)]=0x232c]=_0x4c1f23(0x355),_0x3c8afd[_0x3c8afd[_0x4c1f23(0xdc)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x327)]=0x2711]=_0x4c1f23(0x327),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x206)]=0x2712]=_0x4c1f23(0x206),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x392)]=0x2713]=_0x4c1f23(0x392),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1b6)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1cb)]=-0x1]=_0x4c1f23(0x1cb),_0x3c8afd))(Ms||{}),H=(_0x193fa5=>(_0x193fa5[_0x193fa5[_0x4c1f23(0x361)]=0x0]=_0x4c1f23(0x361),_0x193fa5[_0x193fa5[_0x4c1f23(0x11d)]=0x1]=_0x4c1f23(0x11d),_0x193fa5[_0x193fa5[_0x4c1f23(0x10d)]=0x2]=_0x4c1f23(0x10d),_0x193fa5[_0x193fa5[_0x4c1f23(0x1c4)]=0x3]='UNIVER_SLIDE',_0x193fa5[_0x193fa5[_0x4c1f23(0x1d8)]=0x4]='UNIVER_PROJECT',_0x193fa5[_0x193fa5[_0x4c1f23(0x1cb)]=-0x1]=_0x4c1f23(0x1cb),_0x193fa5))(H||{}),I=(_0x436903=>(_0x436903[_0x436903['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x436903[_0x436903['HELLO']=0x1]=_0x4c1f23(0x191),_0x436903[_0x436903[_0x4c1f23(0x86)]=0x2]='JOIN',_0x436903[_0x436903['LEAVE']=0x3]=_0x4c1f23(0x9c),_0x436903[_0x436903[_0x4c1f23(0x136)]=0x4]=_0x4c1f23(0x136),_0x436903[_0x436903['HEARTBEAT']=0x5]=_0x4c1f23(0x1e0),_0x436903[_0x436903['RECV']=0x6]='RECV',_0x436903[_0x436903['UNRECOGNIZED']=-0x1]=_0x4c1f23(0x1cb),_0x436903))(I||{}),kt=(_0x13dbbd=>(_0x13dbbd[_0x13dbbd[_0x4c1f23(0x3bb)]=0x0]=_0x4c1f23(0x3bb),_0x13dbbd[_0x13dbbd['OK']=0x1]='OK',_0x13dbbd[_0x13dbbd[_0x4c1f23(0x2cc)]=0x2]=_0x4c1f23(0x2cc),_0x13dbbd[_0x13dbbd['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x13dbbd))(kt||{}),As=(_0x14d295=>(_0x14d295[_0x14d295[_0x4c1f23(0x28a)]=0x0]=_0x4c1f23(0x28a),_0x14d295[_0x14d295[_0x4c1f23(0x31b)]=0x1]='HttpImport',_0x14d295[_0x14d295[_0x4c1f23(0x2ad)]=0x2]=_0x4c1f23(0x2ad),_0x14d295[_0x14d295['UnitEmbedded']=0x3]=_0x4c1f23(0x304),_0x14d295[_0x14d295[_0x4c1f23(0x81)]=0x4]=_0x4c1f23(0x81),_0x14d295[_0x14d295[_0x4c1f23(0x1cb)]=-0x1]=_0x4c1f23(0x1cb),_0x14d295))(As||{});const L=_0x4c1f23(0x36c),yn={};function Nn(_0xa62d04){const _0xede628=_0x4c1f23;var _0x1fa07b,_0x255cec,_0x1627b9,_0x20807b;const _0x3b16c9=_0xa62d04[_0xede628(0x339)],_0x4112c5=JSON['parse'](_0x3b16c9);switch(_0x4112c5[_0xede628(0x315)]){case I[_0xede628(0x1e0)]:case I[_0xede628(0x191)]:{const _0x27634f=_0x4112c5[_0xede628(0x38b)];return{..._0x4112c5,'data':_0x27634f,'cmd':_0x4112c5[_0xede628(0x315)]};}case I[_0xede628(0x86)]:{const _0x5d1b9f=_0x4112c5[_0xede628(0x1eb)];return{..._0x4112c5,'data':_0x5d1b9f,'cmd':_0x4112c5[_0xede628(0x315)]};}case I['RECV']:{const _0x21ce19=_0x4112c5['collaMsg'];switch(_0x21ce19[_0xede628(0x186)]){case _0x273d8c[_0xede628(0x2bf)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x1fa07b=_0x21ce19['permissionRejEvent'])==null?void 0x0:_0x1fa07b['cs']},'cmd':_0x4112c5['cmd']};case _0x273d8c[_0xede628(0x368)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x255cec=_0x21ce19[_0xede628(0x163)])==null?void 0x0:_0x255cec['cs']},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x2e4)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x1627b9=_0x21ce19[_0xede628(0x2ea)])==null?void 0x0:_0x1627b9['cs']},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x389)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x20807b=_0x21ce19['csRejEvent'])==null?void 0x0:_0x20807b['cs']},'cmd':_0x4112c5['cmd']};case _0x273d8c['UPDATE_CURSOR']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x24c)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c['USERS_ENTER']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x25e)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x15a)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x1db)]},'cmd':_0x4112c5['cmd']};case _0x273d8c[_0xede628(0x3db)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x1df)]},'cmd':_0x4112c5['cmd']};case _0x273d8c['LIVESHARE_FETCH_OPERATIONS']:case _0x273d8c[_0xede628(0x386)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x3dd)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c['LIVESHARE_TERMINATE']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x1df)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x157)]:return{..._0x4112c5,'data':_0x21ce19,'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c['COMMENT_UPDATE']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x214)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x2c9)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x242)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x1d7)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0xee)]},'cmd':_0x4112c5['cmd']};default:return _0x4112c5;}}default:return _0x4112c5;}}function Un(_0x582c4a){const _0x2c03ad=_0x4c1f23;switch(_0x582c4a[_0x2c03ad(0x315)]){case I['HEARTBEAT']:case I['HELLO']:return JSON[_0x2c03ad(0x360)]({'cmd':_0x582c4a[_0x2c03ad(0x315)],'routeKey':_0x582c4a[_0x2c03ad(0x373)]});case I['INGEST']:{let _0x5b4dd4;switch(_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x186)]){case _0x273d8c[_0x2c03ad(0xf2)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0xf2)],'updateCursorEvent':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c['USERS_LEAVE']:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x15a)],'leaveEvent':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0x3b1)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x3b1)],'joinEvent':_0x582c4a[_0x2c03ad(0x339)]['data']};break;}case _0x273d8c[_0x2c03ad(0x3db)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x3db)],'liveShareNewHost':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0x386)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x386)],'liveShareOperation':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0x2e3)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x2e3)],'liveShareTerminate':_0x582c4a[_0x2c03ad(0x339)]['data']};break;}case _0x273d8c['LIVESHARE_REQUEST_HOST']:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x332)],'liveShareRequestHost':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0xae)]:{_0x5b4dd4={'eventID':_0x273d8c['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x5b4dd4={'eventID':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x186)]};}return JSON[_0x2c03ad(0x360)]({'cmd':_0x582c4a['cmd'],'routeKey':_0x582c4a['routeKey'],'collaMsg':_0x5b4dd4});}case I['JOIN']:return JSON['stringify']({'cmd':_0x582c4a['cmd'],'routeKey':_0x582c4a[_0x2c03ad(0x373)],'joinReq':_0x582c4a[_0x2c03ad(0x339)]});case I['LEAVE']:return JSON['stringify']({'cmd':_0x582c4a[_0x2c03ad(0x315)],'routeKey':_0x582c4a[_0x2c03ad(0x373)],'leaveReq':_0x582c4a['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Mn=Object['defineProperty'],An=Object[_0x4c1f23(0x133)],Ln=(_0x50e760,_0x4acce8,_0x818c9e,_0x23b747)=>{const _0x326986=_0x4c1f23;for(var _0x3eb5f8=_0x23b747>0x1?void 0x0:_0x23b747?An(_0x4acce8,_0x818c9e):_0x4acce8,_0x58eec7=_0x50e760[_0x326986(0x78)]-0x1,_0x52772a;_0x58eec7>=0x0;_0x58eec7--)(_0x52772a=_0x50e760[_0x58eec7])&&(_0x3eb5f8=(_0x23b747?_0x52772a(_0x4acce8,_0x818c9e,_0x3eb5f8):_0x52772a(_0x3eb5f8))||_0x3eb5f8);return _0x23b747&&_0x3eb5f8&&Mn(_0x4acce8,_0x818c9e,_0x3eb5f8),_0x3eb5f8;},Re=(_0x40d5aa,_0x2ade6c)=>(_0xa9fe0c,_0x1dd474)=>_0x2ade6c(_0xa9fe0c,_0x1dd474,_0x40d5aa);const Ls=_0x2d62b5('univer-pro.collaboration-client-socket-service');function $n(_0x2a1dab,_0x42cc4c,_0x3756b7){const _0xaa23be=_0x4c1f23;return _0x2a1dab+'/'+_0x42cc4c+_0xaa23be(0x3e1)+_0x3756b7+_0xaa23be(0xb8);}let Et=class extends _0x22db72{constructor(_0x36dca4,_0x10ab30,_0x186538,_0x2f937b,_0xe172d9){const _0x71c1a5=_0x4c1f23;super(),this[_0x71c1a5(0xa5)]=_0x36dca4,this[_0x71c1a5(0xf8)]=_0x10ab30,this[_0x71c1a5(0x132)]=_0x186538,this[_0x71c1a5(0x128)]=_0x2f937b,this['_snapshotServerService']=_0xe172d9;}[_0x4c1f23(0x1a6)](_0x130798){const _0x35fb53=_0x4c1f23,_0x5ca11d=this[_0x35fb53(0xf8)][_0x35fb53(0x1a6)](_0x130798);if(!_0x5ca11d)throw new Error(_0x35fb53(0x3f5));const _0x693d5c=new _0x242419(),_0x27ff60=new _0xacaad6();_0x693d5c[_0x35fb53(0x2fb)](_0x5ca11d['close$']['subscribe'](_0x4a9793=>_0x27ff60[_0x35fb53(0x23d)](_0x4a9793))),_0x693d5c[_0x35fb53(0x2fb)](_0x5738c2(()=>_0x27ff60[_0x35fb53(0x2c4)]()));const _0x3d209c=new _0xacaad6();_0x693d5c[_0x35fb53(0x2fb)](_0x5ca11d[_0x35fb53(0xed)][_0x35fb53(0x280)](_0x17aa78=>_0x3d209c[_0x35fb53(0x23d)](_0x17aa78))),_0x693d5c[_0x35fb53(0x2fb)](_0x5738c2(()=>_0x3d209c[_0x35fb53(0x2c4)]()));const _0x30c9a9=new _0xacaad6();_0x693d5c[_0x35fb53(0x2fb)](_0x5ca11d[_0x35fb53(0x117)][_0x35fb53(0x280)](_0x23afd1=>{const _0x11dd24=_0x35fb53,_0x15b7b2=Nn(_0x23afd1);_0x30c9a9[_0x11dd24(0x23d)](_0x15b7b2);})),_0x693d5c['add'](_0x5738c2(()=>_0x30c9a9['complete']()));let _0x30d95a;const _0x58cbcc=()=>{const _0x14871c=_0x35fb53;_0x3d209c[_0x14871c(0x23d)](new Event(_0x14871c(0x29b))),_0x27ff60['next'](new CloseEvent(_0x14871c(0x29b))),_0x30d95a[_0x14871c(0x74)]();};return _0x30d95a={'memberID':'','close$':_0x27ff60['asObservable'](),'error$':_0x3d209c[_0x35fb53(0xfc)](),'open$':_0x5ca11d[_0x35fb53(0x345)],'message$':_0x30c9a9[_0x35fb53(0xfc)](),'send':_0x1b66cb=>{const _0x17f8fe=_0x35fb53;if(_0x1b66cb[_0x17f8fe(0x315)]===I['INGEST']){if(_0x1b66cb[_0x17f8fe(0x339)][_0x17f8fe(0x186)]===_0x273d8c[_0x17f8fe(0x8a)]){this[_0x17f8fe(0x75)](_0x30d95a,_0x1b66cb[_0x17f8fe(0x339)])[_0x17f8fe(0x224)](_0x462d26=>{const _0xe8df5b=_0x17f8fe;this[_0xe8df5b(0x128)][_0xe8df5b(0x17a)](_0x462d26),_0x58cbcc();});return;}if(_0x1b66cb[_0x17f8fe(0x339)][_0x17f8fe(0x186)]===_0x273d8c[_0x17f8fe(0x3ea)]){const _0xdd37a3=_0x1b66cb[_0x17f8fe(0x339)];this[_0x17f8fe(0xf6)](_0xdd37a3)[_0x17f8fe(0x90)](_0x4438f9=>{const _0x4458f7=_0x17f8fe;_0x30c9a9[_0x4458f7(0x23d)]({'cmd':I[_0x4458f7(0x326)],'code':kt['OK'],'routeKey':_0xdd37a3[_0x4458f7(0x339)][_0x4458f7(0x1f3)],'routeType':'','data':{'eventID':_0x273d8c['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x4438f9}}});})[_0x17f8fe(0x224)](_0x236185=>{const _0x4a009f=_0x17f8fe;this[_0x4a009f(0x128)][_0x4a009f(0x17a)](_0x236185),_0x58cbcc();});return;}}_0x5ca11d[_0x17f8fe(0x218)](Un(_0x1b66cb));},'close':()=>{_0x5ca11d['close'](),_0x693d5c['dispose']();}},_0x30d95a;}async[_0x4c1f23(0x75)](_0x15b682,_0x209f55){const _0x3b8775=_0x4c1f23;var _0x3a2ad2,_0x34ecda;const {unitType:_0x2a9830,unitID:_0x1befaf,changeset:_0x244cc9}=_0x209f55[_0x3b8775(0x339)],_0x1c3fa8={'unitID':_0x1befaf,'memberID':_0x15b682['memberID'],'type':_0x2a9830,'changeset':_0x2b2dd8(_0x244cc9)},_0x3cf0b7=this[_0x3b8775(0x132)][_0x3b8775(0x111)](On),_0x5dd139=this['_configService'][_0x3b8775(0x111)](L),_0x9c7e2c=$n((_0x34ecda=(_0x3a2ad2=_0x5dd139==null?void 0x0:_0x5dd139[_0x3b8775(0x259)])!=null?_0x3a2ad2:_0x3cf0b7)!=null?_0x34ecda:Dn,_0x2a9830,_0x1befaf);try{await this['_http'][_0x3b8775(0x341)](_0x9c7e2c,{'body':_0x1c3fa8});}catch(_0x4512cb){throw this[_0x3b8775(0x128)][_0x3b8775(0x17a)](_0x3b8775(0x144),_0x3b8775(0x27f)),_0x4512cb;}}async[_0x4c1f23(0xf6)](_0x4896ac){const _0x4d9a09=_0x4c1f23,{unitID:_0x3dfd4f,from:_0x36b267,to:_0x30a705,unitType:_0x35912a}=_0x4896ac['data'];return(await this[_0x4d9a09(0x3eb)][_0x4d9a09(0x156)]({'metadata':void 0x0},{'unitID':_0x3dfd4f,'type':_0x35912a,'from':_0x36b267,'to':_0x30a705}))[_0x4d9a09(0x219)];}};Et=Ln([Re(0x0,_0x321449(_0x1fbfa2)),Re(0x1,_0x321449(_0x57aa72)),Re(0x2,_0x4d21d1),Re(0x3,_0x50688a),Re(0x4,_0x4c90dd)],Et);const jn=_0x4c1f23(0x388);function xn(_0x4e0973){const _0xebb7d3=_0x4c1f23;return JSON[_0xebb7d3(0x360)](_0x4e0973)['length'];}class $s{constructor(){const _0x307a83=_0x4c1f23;l(this,'_commentUpdate$',new _0xacaad6()),l(this,_0x307a83(0x17f),this[_0x307a83(0x343)][_0x307a83(0xfc)]());}['onCommentUpdate'](_0x497178){const _0xd10197=_0x4c1f23;this[_0xd10197(0x343)]['next'](_0x497178);}}var Hn=Object[_0x4c1f23(0x2e9)],kn=Object[_0x4c1f23(0x133)],Bn=(_0x259610,_0x45c057,_0x5b32f6,_0x2954c4)=>{const _0x3e16b8=_0x4c1f23;for(var _0x3975a5=_0x2954c4>0x1?void 0x0:_0x2954c4?kn(_0x45c057,_0x5b32f6):_0x45c057,_0x22362b=_0x259610[_0x3e16b8(0x78)]-0x1,_0x50d417;_0x22362b>=0x0;_0x22362b--)(_0x50d417=_0x259610[_0x22362b])&&(_0x3975a5=(_0x2954c4?_0x50d417(_0x45c057,_0x5b32f6,_0x3975a5):_0x50d417(_0x3975a5))||_0x3975a5);return _0x2954c4&&_0x3975a5&&Hn(_0x45c057,_0x5b32f6,_0x3975a5),_0x3975a5;},rs=(_0x472601,_0x16d3db)=>(_0x2be070,_0x1fc134)=>_0x16d3db(_0x2be070,_0x1fc134,_0x472601);let ae=class extends _0x22db72{constructor(_0x29478b,_0x413952){const _0x242e51=_0x4c1f23;super(),l(this,_0x242e51(0x2dc),new Map()),(this['_univerInstanceService']=_0x29478b,this[_0x242e51(0x1ae)]=_0x413952,this[_0x242e51(0x248)](_0x5738c2(_0x5de0ce(this[_0x242e51(0x310)]['getTypeOfUnitDisposed$'](_0x4c91c9['UNIVER_SHEET'])[_0x242e51(0x1a7)](_0x3d528e(_0x138c70=>_0x138c70[_0x242e51(0x34e)]())),this[_0x242e51(0x310)][_0x242e51(0x2ee)](_0x4c91c9[_0x242e51(0x11d)])[_0x242e51(0x1a7)](_0x3d528e(_0x54ca50=>_0x54ca50[_0x242e51(0x34e)]())),this[_0x242e51(0x310)]['getTypeOfUnitDisposed$'](_0x4c91c9[_0x242e51(0x1c4)])['pipe'](_0x3d528e(_0x243753=>_0x243753[_0x242e51(0x34e)]())))[_0x242e51(0x280)](_0xbd3083=>this[_0x242e51(0xce)](_0xbd3083)))));}[_0x4c1f23(0x395)](_0x40becd){const _0x525e6b=_0x4c1f23;this[_0x525e6b(0x1ae)][_0x525e6b(0x395)](_0x40becd);}[_0x4c1f23(0x16d)](){const _0x5537f8=_0x4c1f23;return this[_0x5537f8(0x1ae)]['getCurrentUser']();}[_0x4c1f23(0x2d6)](_0x16073a,_0x281ffc){const _0x37bffd=_0x4c1f23;let _0x508ff1=this['_roomMembers'][_0x37bffd(0x348)](_0x16073a);_0x508ff1||(_0x508ff1=new Vn(),this[_0x37bffd(0x2dc)]['set'](_0x16073a,_0x508ff1)),_0x508ff1[_0x37bffd(0x2d6)](_0x281ffc);}[_0x4c1f23(0x378)](_0x2d3327,_0x2fe043){const _0x1e95e1=_0x4c1f23,_0x46936b=this[_0x1e95e1(0x2dc)]['get'](_0x2d3327);_0x46936b&&_0x46936b[_0x1e95e1(0x378)](_0x2fe043);}[_0x4c1f23(0x340)](_0x43fc54){return this['_roomMembers']['get'](_0x43fc54);}['getMember'](_0x4dcc02,_0x37b213){const _0x43138e=_0x4c1f23,_0x4e5950=this[_0x43138e(0x2dc)]['get'](_0x4dcc02);if(_0x4e5950)return _0x4e5950[_0x43138e(0x39f)](_0x37b213);}[_0x4c1f23(0xce)](_0x5b9777){const _0x30b1c9=_0x4c1f23,_0x115f2f=this['_roomMembers']['get'](_0x5b9777);_0x115f2f&&(_0x115f2f[_0x30b1c9(0x1e4)](),this[_0x30b1c9(0x2dc)][_0x30b1c9(0xd0)](_0x5b9777));}[_0x4c1f23(0x1e4)](){const _0x47fff3=_0x4c1f23;this[_0x47fff3(0x2dc)][_0x47fff3(0x100)](_0x4e8277=>_0x4e8277[_0x47fff3(0x1e4)]()),this['_roomMembers'][_0x47fff3(0xa8)]();}};ae=Bn([rs(0x0,_0x375068),rs(0x1,_0x321449(_0xc3ed3))],ae);class Vn extends _0x22db72{constructor(){const _0x3d2095=_0x4c1f23;super(...arguments),l(this,_0x3d2095(0x87),new Map());}[_0x4c1f23(0x1e4)](){const _0xa33cb1=_0x4c1f23;this[_0xa33cb1(0x87)][_0xa33cb1(0xa8)]();}[_0x4c1f23(0x2d6)](_0x1650df){const _0x28725d=_0x4c1f23;this[_0x28725d(0x87)]['set'](_0x1650df[_0x28725d(0xbc)],_0x1650df);}['removeMember'](_0x385b58){const _0x4b7738=_0x4c1f23;this[_0x4b7738(0x87)][_0x4b7738(0xd0)](_0x385b58);}[_0x4c1f23(0x39f)](_0x43c94c){const _0x5d70f6=_0x4c1f23;return this['_members'][_0x5d70f6(0x348)](_0x43c94c);}}var Fn=Object['defineProperty'],Wn=Object[_0x4c1f23(0x133)],Gn=(_0x5d884c,_0x10f790,_0x2d69c6,_0x2572b0)=>{for(var _0x3d91bc=_0x2572b0>0x1?void 0x0:_0x2572b0?Wn(_0x10f790,_0x2d69c6):_0x10f790,_0x355d2e=_0x5d884c['length']-0x1,_0x3f10c5;_0x355d2e>=0x0;_0x355d2e--)(_0x3f10c5=_0x5d884c[_0x355d2e])&&(_0x3d91bc=(_0x2572b0?_0x3f10c5(_0x10f790,_0x2d69c6,_0x3d91bc):_0x3f10c5(_0x3d91bc))||_0x3d91bc);return _0x2572b0&&_0x3d91bc&&Fn(_0x10f790,_0x2d69c6,_0x3d91bc),_0x3d91bc;},J=(_0x44fde5,_0x49f553)=>(_0x1fc462,_0x4f3d6e)=>_0x49f553(_0x1fc462,_0x4f3d6e,_0x44fde5),G=(_0x2e7845=>(_0x2e7845[_0x2e7845[_0x4c1f23(0x237)]=0x0]='IDLE',_0x2e7845[_0x2e7845[_0x4c1f23(0x127)]=0x1]='JOINING',_0x2e7845[_0x2e7845['OFFLINE']=0x2]=_0x4c1f23(0x3d4),_0x2e7845[_0x2e7845[_0x4c1f23(0x2e1)]=0x3]=_0x4c1f23(0x2e1),_0x2e7845))(G||{});function _0x4c7d(_0xb72135,_0x28f116){const _0x583f58=_0x583f();return _0x4c7d=function(_0x4c7d20,_0xec52ac){_0x4c7d20=_0x4c7d20-0x73;let _0x238afb=_0x583f58[_0x4c7d20];return _0x238afb;},_0x4c7d(_0xb72135,_0x28f116);}let Ct=class extends _0x2dacfb{constructor(_0x376713,_0x56ae74,_0x2a9705,_0x40006f,_0x53c354,_0x4c1650,_0x1b2322,_0x291af3,_0x39f1ac,_0x25579a){const _0x55d9b2=_0x4c1f23;super(),l(this,_0x55d9b2(0x221),new _0x2ec58d(0x0)),l(this,_0x55d9b2(0x294),this['_sessionStatus$']['asObservable']()),l(this,'_event$',new _0xacaad6()),l(this,_0x55d9b2(0x99),this[_0x55d9b2(0x161)]['asObservable']()),l(this,_0x55d9b2(0x13b)),l(this,'_socketMessageSubscription'),l(this,_0x55d9b2(0x91)),l(this,_0x55d9b2(0x3c9),!0x1),l(this,_0x55d9b2(0xbe),null),(this[_0x55d9b2(0x1c2)]=_0x376713,this[_0x55d9b2(0x128)]=_0x2a9705,this['_beforeCloseService']=_0x40006f,this[_0x55d9b2(0x28f)]=_0x53c354,this[_0x55d9b2(0x132)]=_0x4c1650,this[_0x55d9b2(0x119)]=_0x1b2322,this[_0x55d9b2(0x2ed)]=_0x291af3,this[_0x55d9b2(0xba)]=_0x39f1ac,this['_telemetryService']=_0x25579a,this[_0x55d9b2(0x3c9)]=!!this[_0x55d9b2(0x228)],_0x56ae74[_0x55d9b2(0x1a7)](_0x289d57(this[_0x55d9b2(0x265)]))[_0x55d9b2(0x280)](_0x34c84f=>{const _0x322321=_0x55d9b2;var _0x1edf03;typeof _0x34c84f>'u'||(this[_0x322321(0x13b)]=_0x34c84f,_0x34c84f?(this['_joinRoom'](_0x34c84f),this[_0x322321(0x307)]=_0x34c84f[_0x322321(0x117)][_0x322321(0x280)](_0x114437=>{const _0x55c070=_0x322321;_0x114437[_0x55c070(0x373)]===this[_0x55c070(0x1c2)]&&this[_0x55c070(0xd5)](_0x114437);})):(this[_0x322321(0x292)](),this[_0x322321(0x221)]['next'](0x2),(_0x1edf03=this['_socketMessageSubscription'])==null||_0x1edf03['unsubscribe'](),this[_0x322321(0x307)]=null));}),this[_0x55d9b2(0x248)](this[_0x55d9b2(0x1bf)][_0x55d9b2(0x30a)](()=>{const _0x385b25=_0x55d9b2;var _0x42ea26;(_0x42ea26=this[_0x385b25(0x13b)])==null||_0x42ea26[_0x385b25(0x218)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x385b25(0x1c2)]}});})));}get[_0x4c1f23(0x110)](){const _0x66e913=_0x4c1f23;return this[_0x66e913(0x221)][_0x66e913(0x25c)]();}[_0x4c1f23(0x370)](){const _0x41ef16=_0x4c1f23;var _0x27c515,_0x368a78;return(_0x368a78=(_0x27c515=this[_0x41ef16(0x13b)])==null?void 0x0:_0x27c515[_0x41ef16(0xbc)])!=null?_0x368a78:null;}['dispose'](){const _0x11c284=_0x4c1f23;super[_0x11c284(0x1e4)](),this[_0x11c284(0x265)][_0x11c284(0x23d)](),this[_0x11c284(0x265)][_0x11c284(0x2c4)]();}['close'](){const _0x5bd256=_0x4c1f23;var _0x1fea9c,_0x584a53;this[_0x5bd256(0x292)](),(_0x1fea9c=this[_0x5bd256(0x13b)])==null||_0x1fea9c['send']({'cmd':I[_0x5bd256(0x9c)],'data':{'roomID':this[_0x5bd256(0x1c2)]}}),(_0x584a53=this[_0x5bd256(0x13b)])==null||_0x584a53[_0x5bd256(0x74)](),this['_event$'][_0x5bd256(0x2c4)](),this['_sessionStatus$']['complete'](),this[_0x5bd256(0x1e4)]();}['_onCombEvent'](_0x27c0b0){const _0x5e70e4=_0x4c1f23;_0x27c0b0[_0x5e70e4(0x315)]===I['JOIN']?this[_0x5e70e4(0x19d)](_0x27c0b0):_0x27c0b0[_0x5e70e4(0x315)]===I[_0x5e70e4(0x326)]&&this[_0x5e70e4(0x1b4)](_0x27c0b0);}[_0x4c1f23(0x98)](_0x3028a0){const _0x3cae92=_0x4c1f23;this['_sessionStatus$']['next'](0x1),_0x3028a0[_0x3cae92(0x218)]({'cmd':I[_0x3cae92(0x86)],'routeKey':this[_0x3cae92(0x1c2)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x4c1f23(0x19d)](_0x3a4dfd){const _0x55a458=_0x4c1f23;var _0x5c1ffd;if(_0x3a4dfd[_0x55a458(0x397)]===kt[_0x55a458(0x2cc)]){this[_0x55a458(0x28f)][_0x55a458(0x160)]({'type':_0x57eb36[_0x55a458(0x129)],'content':this[_0x55a458(0x119)]['t'](_0x55a458(0x21e))}),this[_0x55a458(0x221)]['next'](0x2);return;}this[_0x55a458(0x221)][_0x55a458(0x23d)](0x3);const _0x75bf5=(_0x5c1ffd=_0x3a4dfd[_0x55a458(0x339)][_0x55a458(0x36f)][this['_unitID']])==null?void 0x0:_0x5c1ffd[_0x55a458(0x184)];_0x75bf5&&_0x75bf5[_0x55a458(0x100)](_0x5bd3f2=>this['_memberService'][_0x55a458(0x2d6)](this[_0x55a458(0x1c2)],_0x5bd3f2));}[_0x4c1f23(0x1b4)](_0x19d4ce){const _0x345f3f=_0x4c1f23;try{const _0x1fc6fa=_0x19d4ce[_0x345f3f(0x339)];switch(_0x1fc6fa[_0x345f3f(0x186)]){case _0x273d8c[_0x345f3f(0x3b1)]:this[_0x345f3f(0x19c)](_0x1fc6fa),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c[_0x345f3f(0x15a)]:this[_0x345f3f(0x210)](_0x1fc6fa),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c[_0x345f3f(0x368)]:this[_0x345f3f(0x1b7)](),this['_clearCollaborationTimeoutTimer'](),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c[_0x345f3f(0x157)]:this[_0x345f3f(0x128)][_0x345f3f(0x17a)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x1fc6fa)),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c['COMMENT_UPDATE']:this[_0x345f3f(0xba)][_0x345f3f(0x35a)](_0x1fc6fa[_0x345f3f(0x339)]),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;default:this[_0x345f3f(0x161)]['next'](_0x1fc6fa);}}catch(_0x58fafc){this[_0x345f3f(0x128)][_0x345f3f(0x17a)](_0x58fafc,_0x19d4ce);}}['_onUserJoin'](_0x5b8a4b){const _0x1659e6=_0x4c1f23;this[_0x1659e6(0x2ed)][_0x1659e6(0x2d6)](this[_0x1659e6(0x1c2)],_0x5b8a4b['data']);}['_onUserLeave'](_0x513503){const _0x5471fd=_0x4c1f23;this[_0x5471fd(0x2ed)][_0x5471fd(0x378)](this['_unitID'],_0x513503['data']['memberID']);}async['send'](_0x8b6c7b,_0x2c40af){const _0x4c3cfd=_0x4c1f23;if(this['sessionStatus']!==0x3||!this[_0x4c3cfd(0x13b)])throw new Error(_0x4c3cfd(0x147));try{_0x8b6c7b[_0x4c3cfd(0x186)]===_0x273d8c['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x4c3cfd(0x286)](_0x8b6c7b)),this[_0x4c3cfd(0x13b)][_0x4c3cfd(0x218)]({'cmd':I[_0x4c3cfd(0x136)],'routeKey':_0x2c40af,'routeType':'','data':_0x8b6c7b});}catch(_0x257b42){this['_logService']['error'](_0x257b42);}}['_scheduleCollaborationTimeoutTimer'](){const _0x4d5dd7=_0x4c1f23;var _0x2e28bf;this[_0x4d5dd7(0x91)]=window[_0x4d5dd7(0x3cc)](()=>{const _0x39d170=_0x4d5dd7;this['_collaborationTimeoutTimer']=null,this[_0x39d170(0x28f)]['show']({'type':_0x57eb36[_0x39d170(0xcd)],'content':this[_0x39d170(0x119)]['t'](_0x39d170(0x1cd))});},(_0x2e28bf=this[_0x4d5dd7(0x132)][_0x4d5dd7(0x111)](Ns))!=null?_0x2e28bf:Us);}[_0x4c1f23(0x1a0)](){const _0x5a8f64=_0x4c1f23;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x5a8f64(0x91)]),this[_0x5a8f64(0x91)]=null);}[_0x4c1f23(0x286)](_0x7888d4){const _0x38f5f5=_0x4c1f23;if(!this['_shouldReportTelemetry'])return;const {data:_0x4b3226}=_0x7888d4,{unitID:_0x3536de,changeset:_0x2ae39e}=_0x4b3226,{mutations:_0x411111,type:_0x5d0ba8}=_0x2ae39e;this[_0x38f5f5(0xbe)]={'unitId':_0x3536de,'type':_0x5d0ba8,'startTime':performance[_0x38f5f5(0xdb)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x411111)};}[_0x4c1f23(0x1b7)](){const _0x337dad=_0x4c1f23;if(this[_0x337dad(0x3c9)]){if(!this[_0x337dad(0xbe)]){this[_0x337dad(0x128)]['error'](_0x337dad(0x144),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x337dad(0xbe)][_0x337dad(0x174)]=performance['now'](),this[_0x337dad(0xbe)][_0x337dad(0xe9)]=this['_telemetryInfo']['stopTime']-this['_telemetryInfo']['startTime'],this[_0x337dad(0x228)][_0x337dad(0x2a5)](jn,this[_0x337dad(0xbe)]),this[_0x337dad(0xbe)]=null;}}[_0x4c1f23(0x292)](){const _0x485a2c=_0x4c1f23;this[_0x485a2c(0xbe)]=null;}};Ct=Gn([J(0x2,_0x50688a),J(0x3,_0x3cc7ef),J(0x4,_0x5d3b7c),J(0x5,_0x4d21d1),J(0x6,_0x321449(_0x2e153b)),J(0x7,_0x321449(ae)),J(0x8,_0x321449($s)),J(0x9,_0x9bfc3c(_0x2263bf))],Ct);var Yn=Object[_0x4c1f23(0x2e9)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x4b4d69,_0x5ac60f,_0x1a38b1,_0x3392d6)=>{const _0xf6c02a=_0x4c1f23;for(var _0x542e68=_0x3392d6>0x1?void 0x0:_0x3392d6?Kn(_0x5ac60f,_0x1a38b1):_0x5ac60f,_0xb3c961=_0x4b4d69[_0xf6c02a(0x78)]-0x1,_0x623383;_0xb3c961>=0x0;_0xb3c961--)(_0x623383=_0x4b4d69[_0xb3c961])&&(_0x542e68=(_0x3392d6?_0x623383(_0x5ac60f,_0x1a38b1,_0x542e68):_0x623383(_0x542e68))||_0x542e68);return _0x3392d6&&_0x542e68&&Yn(_0x5ac60f,_0x1a38b1,_0x542e68),_0x542e68;},de=(_0x36e9c2,_0x1c5e79)=>(_0x3b2f91,_0x11d767)=>_0x1c5e79(_0x3b2f91,_0x11d767,_0x36e9c2);let ce=class extends _0x22db72{constructor(_0x4f9df5,_0x1c3e4c,_0x2589f8,_0xab7459,_0x1abd30,_0xb4a1bd){const _0x5dcc2f=_0x4c1f23;super(),l(this,_0x5dcc2f(0x1fe),new _0x2ec58d(void 0x0)),l(this,'socket$',this[_0x5dcc2f(0x1fe)][_0x5dcc2f(0xfc)]()),l(this,_0x5dcc2f(0x2d2),null),l(this,'_sessions',new Map()),l(this,_0x5dcc2f(0xc8),new _0x2ec58d(G[_0x5dcc2f(0x237)])),l(this,_0x5dcc2f(0x380),this[_0x5dcc2f(0xc8)][_0x5dcc2f(0xfc)]()),l(this,_0x5dcc2f(0x27e),!0x1),l(this,'_retryConnectingTimer'),l(this,_0x5dcc2f(0x29a),0x0),l(this,_0x5dcc2f(0x1ed)),l(this,_0x5dcc2f(0x313)),(this['_injector']=_0x4f9df5,this[_0x5dcc2f(0x119)]=_0x1c3e4c,this[_0x5dcc2f(0x28f)]=_0x2589f8,this[_0x5dcc2f(0x128)]=_0xab7459,this[_0x5dcc2f(0x132)]=_0x1abd30,this[_0x5dcc2f(0x374)]=_0xb4a1bd,this[_0x5dcc2f(0x35c)]());}get['_socket'](){const _0x3cce74=_0x4c1f23;return this['_socket$'][_0x3cce74(0x25c)]();}['_initEventListeners'](){const _0x595238=_0x4c1f23;this['_listenToOfflineEvent'](),this[_0x595238(0x282)]();}['dispose'](){const _0x1afcd3=_0x4c1f23;super[_0x1afcd3(0x1e4)](),this[_0x1afcd3(0x22d)][_0x1afcd3(0x100)](_0x584510=>_0x584510['dispose']()),this[_0x1afcd3(0x22d)]['clear'](),this[_0x1afcd3(0xc8)]['complete']();}async['requireSession'](_0x4b992c){const _0x4b8fec=_0x4c1f23;if(this[_0x4b8fec(0x22d)]['has'](_0x4b992c))return this[_0x4b8fec(0x22d)][_0x4b8fec(0x348)](_0x4b992c);this[_0x4b8fec(0x274)]();const _0x3df09e=this[_0x4b8fec(0x162)][_0x4b8fec(0x171)](Ct,_0x4b992c,this[_0x4b8fec(0x1fe)][_0x4b8fec(0xfc)]());return this[_0x4b8fec(0x22d)]['set'](_0x4b992c,_0x3df09e),_0x3df09e;}[_0x4c1f23(0x89)](_0x21dacc){const _0x189b65=_0x4c1f23;var _0x5604e5;const _0x186b34=this[_0x189b65(0x22d)][_0x189b65(0x348)](_0x21dacc);_0x186b34&&(this[_0x189b65(0x22d)][_0x189b65(0xd0)](_0x21dacc),_0x186b34[_0x189b65(0x74)]()),this[_0x189b65(0x22d)]['size']||(_0x5604e5=this['_socket'])==null||_0x5604e5[_0x189b65(0x74)]();}[_0x4c1f23(0x37a)](){const _0x4a8f00=_0x4c1f23;this[_0x4a8f00(0x29a)]=0x0,this[_0x4a8f00(0x3e9)]!=null&&(clearTimeout(this[_0x4a8f00(0x3e9)]),this[_0x4a8f00(0x3e9)]=null),this[_0x4a8f00(0xb9)]();}[_0x4c1f23(0x3c4)](){const _0x31bf00=_0x4c1f23;var _0x5db8dd,_0x23f3bf;const _0x2acfd9=this[_0x31bf00(0x132)][_0x31bf00(0x111)](Sn),_0x50e33b=this[_0x31bf00(0x132)][_0x31bf00(0x111)](L),_0x168d50=(_0x23f3bf=(_0x5db8dd=_0x50e33b==null?void 0x0:_0x50e33b['collabWebSocketUrl'])!=null?_0x5db8dd:_0x2acfd9)!=null?_0x23f3bf:pn,_0x3699c4=this[_0x31bf00(0x374)][_0x31bf00(0x1a6)](_0x168d50);return this[_0x31bf00(0x2d2)]=_0x3699c4,_0x3699c4;}[_0x4c1f23(0x274)](){const _0x17335f=_0x4c1f23;var _0x3e2582,_0x265369;try{const _0x5ed0d2=(_0x265369=(_0x3e2582=this[_0x17335f(0x13b)])!=null?_0x3e2582:this[_0x17335f(0x2d2)])!=null?_0x265369:this[_0x17335f(0x3c4)]();if(_0x5ed0d2){const _0x282f8d=_0x5ed0d2[_0x17335f(0x218)];_0x5ed0d2['send']=_0x571705=>(this[_0x17335f(0x145)](),_0x282f8d['apply'](_0x5ed0d2,[_0x571705])),_0x5ed0d2[_0x17335f(0x117)][_0x17335f(0x280)](_0x58c6e3=>this[_0x17335f(0x266)](_0x5ed0d2,_0x58c6e3)),_0x5ed0d2[_0x17335f(0xed)][_0x17335f(0x1a7)](_0x41fec6(0x1))[_0x17335f(0x280)](_0x39b726=>this[_0x17335f(0x128)][_0x17335f(0x17a)](_0x17335f(0x36a),_0x39b726)),_0x5ed0d2[_0x17335f(0x345)][_0x17335f(0x1a7)](_0x41fec6(0x1))[_0x17335f(0x280)](()=>{this['_onConnectionOpen'](_0x5ed0d2);}),_0x5ed0d2[_0x17335f(0x188)][_0x17335f(0x1a7)](_0x41fec6(0x1))[_0x17335f(0x280)](_0x4b723a=>{const _0x319ee1=_0x17335f;this[_0x319ee1(0x128)]['debug']('[CollaborationSessionService]','socket\x20close',_0x4b723a),this[_0x319ee1(0x13d)]();});}}catch(_0x4c4971){this['_logService'][_0x17335f(0x17a)](_0x4c4971),this['_onConnectionFailed']();}}[_0x4c1f23(0x2aa)](_0x983293){const _0x5acecd=_0x4c1f23;this['_logService'][_0x5acecd(0x20b)](_0x5acecd(0x3a9),_0x5acecd(0x311)),_0x983293[_0x5acecd(0x218)]({'cmd':I[_0x5acecd(0x191)]}),this[_0x5acecd(0x145)]();}[_0x4c1f23(0x3ae)](){const _0x279249=_0x4c1f23;window[_0x279249(0x384)](_0x279249(0x209),()=>this[_0x279249(0x183)]());}[_0x4c1f23(0x183)](){const _0x33eb75=_0x4c1f23;this[_0x33eb75(0x27e)]=!0x1,this[_0x33eb75(0x2d2)]=null,this[_0x33eb75(0xc8)][_0x33eb75(0x23d)](G[_0x33eb75(0x3d4)]),this[_0x33eb75(0x1fe)]['next'](null),this[_0x33eb75(0x285)](),this[_0x33eb75(0x20d)]();}['_onConnectionFailed'](){const _0x22de71=_0x4c1f23;var _0x298718;this[_0x22de71(0x183)](),this[_0x22de71(0x29a)]<((_0x298718=this['_configService']['getConfig'](Cn))!=null?_0x298718:bn)?(this['_messageService'][_0x22de71(0x160)]({'key':_0x22de71(0x11c),'type':_0x57eb36[_0x22de71(0x129)],'content':this[_0x22de71(0x119)]['t']('session.will-retry')}),this['_tryReconnect']()):this[_0x22de71(0x28f)][_0x22de71(0x160)]({'key':_0x22de71(0x11c),'type':_0x57eb36['Error'],'content':this[_0x22de71(0x119)]['t']('session.connection-failed')});}[_0x4c1f23(0x282)](){const _0x2a6915=_0x4c1f23,_0x1b4797=()=>{const _0x3e8717=_0x4c7d;this['_socket']||this[_0x3e8717(0x37a)]();},_0x365c55=()=>{const _0x16dad2=_0x4c7d;this[_0x16dad2(0x13b)]||document[_0x16dad2(0x238)]==='hidden'||this[_0x16dad2(0x37a)]();};window[_0x2a6915(0x384)](_0x2a6915(0x2b6),_0x1b4797),document[_0x2a6915(0x384)](_0x2a6915(0x1d1),_0x365c55);}[_0x4c1f23(0xb9)](){const _0x86773e=_0x4c1f23;var _0x57996f;const _0x5cc163=this[_0x86773e(0x29a)],_0x5b2e5c=this[_0x86773e(0x132)][_0x86773e(0x111)](L),_0x368f75=_0x5cc163===0x0?0x0:((_0x57996f=_0x5b2e5c==null?void 0x0:_0x5b2e5c[_0x86773e(0x3cf)])!=null?_0x57996f:En)*0x2**_0x5cc163;this['_retryConnectingTimer']=window[_0x86773e(0x3cc)](()=>{clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x368f75),this['_retryCount']+=0x1;}[_0x4c1f23(0x266)](_0x586ac8,_0x435d95){const _0xed5c97=_0x4c1f23,{cmd:_0x12029a}=_0x435d95;_0x12029a===I['HELLO']&&!this['_socketReady']&&(_0x586ac8['memberID']=_0x435d95['data']['memberID'],this[_0xed5c97(0x1fe)][_0xed5c97(0x23d)](_0x586ac8),this[_0xed5c97(0xc8)][_0xed5c97(0x23d)](G[_0xed5c97(0x2e1)]),this[_0xed5c97(0x27e)]=!0x0,this['_candidateSocket']=null),_0x12029a===I[_0xed5c97(0x1e0)]&&this[_0xed5c97(0x285)](),this[_0xed5c97(0x145)]();}['_rescheduleHeartbeat'](){const _0x3edd88=_0x4c1f23;var _0x3512dd;this['_clearHeartbeatTimer'](),this[_0x3edd88(0x1ed)]=window['setTimeout'](()=>this[_0x3edd88(0x152)](),(_0x3512dd=this['_configService'][_0x3edd88(0x111)](vn))!=null?_0x3512dd:In);}[_0x4c1f23(0x152)](){const _0x304fb2=_0x4c1f23;this[_0x304fb2(0x13b)][_0x304fb2(0x218)]({'cmd':I['HEARTBEAT']}),this[_0x304fb2(0xd8)]();}[_0x4c1f23(0xd8)](){const _0x591c9c=_0x4c1f23;var _0x1ba82c;this[_0x591c9c(0x313)]=window['setTimeout'](()=>this[_0x591c9c(0x13d)](),(_0x1ba82c=this[_0x591c9c(0x132)][_0x591c9c(0x111)](Ns))!=null?_0x1ba82c:Us);}[_0x4c1f23(0x20d)](){const _0x25d89a=_0x4c1f23;this[_0x25d89a(0x1ed)]!=null&&(clearTimeout(this[_0x25d89a(0x1ed)]),this[_0x25d89a(0x1ed)]=null);}[_0x4c1f23(0x285)](){const _0x20300d=_0x4c1f23;this[_0x20300d(0x313)]!=null&&(clearTimeout(this[_0x20300d(0x313)]),this['_timeoutTimer']=null);}};ce=Xn([de(0x0,_0x321449(_0x313fa0)),de(0x1,_0x321449(_0x2e153b)),de(0x2,_0x5d3b7c),de(0x3,_0x50688a),de(0x4,_0x4d21d1),de(0x5,Ls)],ce);var Jn=Object[_0x4c1f23(0x2e9)],qn=Object['getOwnPropertyDescriptor'],zn=(_0x49a211,_0x2351e8,_0x2dcfd1,_0x109817)=>{const _0x230caa=_0x4c1f23;for(var _0x106f69=_0x109817>0x1?void 0x0:_0x109817?qn(_0x2351e8,_0x2dcfd1):_0x2351e8,_0x2c8a05=_0x49a211[_0x230caa(0x78)]-0x1,_0xb2d8c;_0x2c8a05>=0x0;_0x2c8a05--)(_0xb2d8c=_0x49a211[_0x2c8a05])&&(_0x106f69=(_0x109817?_0xb2d8c(_0x2351e8,_0x2dcfd1,_0x106f69):_0xb2d8c(_0x106f69))||_0x106f69);return _0x109817&&_0x106f69&&Jn(_0x2351e8,_0x2dcfd1,_0x106f69),_0x106f69;},ct=(_0x29f393,_0x33f444)=>(_0x561dd1,_0x41793b)=>_0x33f444(_0x561dd1,_0x41793b,_0x29f393);let Ye=class{constructor(_0x1dc3e2,_0x52a656,_0x12817f){const _0x1c5b3d=_0x4c1f23;this[_0x1c5b3d(0x162)]=_0x1dc3e2,this['_transformService']=_0x52a656,this[_0x1c5b3d(0x333)]=_0x12817f;}[_0x4c1f23(0x11a)](_0x52617d){const _0x430673=_0x4c1f23;this[_0x430673(0x19e)](_0x52617d),this[_0x430673(0x1ad)](_0x52617d);}[_0x4c1f23(0x20a)](_0x67d63d){const _0x401b6d=_0x4c1f23,{unitID:_0x376503}=_0x67d63d,_0x1bbe29=this[_0x401b6d(0x333)]['getRenderById'](_0x376503)[_0x401b6d(0x39e)](_0x74964),{redoCache:_0x5365ea}=_0x1bbe29[_0x401b6d(0x16c)]();if(_0x5365ea[_0x401b6d(0x78)]===0x0)return _0x67d63d;let _0x4ffe9e=_0x403f58[_0x401b6d(0x173)](_0x67d63d[_0x401b6d(0x3d7)][0x0]);for(let _0x4f3ecb=0x0;_0x4f3ecb<_0x5365ea[_0x401b6d(0x78)];_0x4f3ecb++){const _0x4f20a4={'id':'doc.mutation.rich-text-editing','params':{..._0x5365ea[_0x4f3ecb]}},_0x39b69a=this['_transformService'][_0x401b6d(0x3f0)](_0x4ffe9e,_0x4f20a4,!0x1);if(_0x3737c9(_0x39b69a))throw _0x39b69a[_0x401b6d(0x17a)];_0x4ffe9e=_0x39b69a[_0x401b6d(0x19b)];}return{..._0x403f58[_0x401b6d(0x173)](_0x67d63d),'mutations':[_0x4ffe9e]};}[_0x4c1f23(0x19e)](_0x4ebc1f){const _0x598eb9=_0x4c1f23,{unitID:_0x56e6eb}=_0x4ebc1f,_0xdb3420=this[_0x598eb9(0x333)][_0x598eb9(0x1b2)](_0x56e6eb)['with'](_0x74964),{undoCache:_0x1fd2b4,redoCache:_0x23d6db}=_0xdb3420[_0x598eb9(0x16c)]();if(_0x1fd2b4[_0x598eb9(0x78)]===0x0||_0x23d6db[_0x598eb9(0x78)]===0x0)return;const _0x6f1942=[],_0x40c458=[];let _0xfe15a0=_0x403f58[_0x598eb9(0x173)](_0x4ebc1f['mutations'][0x0]),_0x1323ce=_0x403f58[_0x598eb9(0x173)](_0x4ebc1f['mutations'][0x0]);for(let _0x5acac1=_0x1fd2b4[_0x598eb9(0x78)]-0x1;_0x5acac1>=0x0;_0x5acac1--){const _0x226f0a={'id':_0x598eb9(0x108),'params':{..._0x1fd2b4[_0x5acac1]}},_0x2c48eb={'id':_0x598eb9(0x108),'params':{..._0x23d6db[_0x5acac1]}},_0x467359=this[_0x598eb9(0x2ce)][_0x598eb9(0x3f0)](_0xfe15a0,_0x226f0a,!0x1),_0x2a3a53=this[_0x598eb9(0x2ce)][_0x598eb9(0x3f0)](_0x1323ce,_0x2c48eb,!0x1);if(_0x3737c9(_0x467359))throw _0x467359[_0x598eb9(0x17a)];if(_0x3737c9(_0x2a3a53))throw _0x2a3a53['error'];_0x6f1942[_0x598eb9(0x15d)](_0x467359[_0x598eb9(0x101)]['params']),_0x40c458[_0x598eb9(0x15d)](_0x2a3a53[_0x598eb9(0x101)][_0x598eb9(0x364)]),_0xfe15a0=_0x467359[_0x598eb9(0x19b)],_0x1323ce=_0x2a3a53[_0x598eb9(0x19b)];}_0xdb3420[_0x598eb9(0x301)]({'undoCache':_0x6f1942,'redoCache':_0x40c458});}[_0x4c1f23(0x1ad)](_0x588559){const _0x1d1c14=_0x4c1f23,{unitID:_0x17552c}=_0x588559,_0x3c9903=this['_renderManagerService']['getRenderById'](_0x17552c)[_0x1d1c14(0x39e)](_0x74964),_0x1578e7=_0x3c9903[_0x1d1c14(0x1a8)]();if(_0x1578e7==null)return;const _0x3e2c77=[{'id':_0x1d1c14(0x108),'params':{'unitId':_0x588559[_0x1d1c14(0x1f3)],'actions':null,'textRanges':[_0x1578e7]}}],_0x30f7fe=this[_0x1d1c14(0x2ce)][_0x1d1c14(0xbf)](_0x588559,_0x3e2c77);if(!_0x8db330(_0x30f7fe))throw _0x30f7fe[_0x1d1c14(0x17a)];const _0x14fd03=_0x30f7fe[_0x1d1c14(0x101)][0x0][_0x1d1c14(0x364)]['textRanges'];Array[_0x1d1c14(0x35b)](_0x14fd03)&&_0x14fd03[_0x1d1c14(0x78)]&&_0x3c9903[_0x1d1c14(0x172)](_0x14fd03[0x0]);}};Ye=zn([ct(0x0,_0x321449(_0x313fa0)),ct(0x1,_0x56767e),ct(0x2,_0x3f9a6b)],Ye);var Zn=Object[_0x4c1f23(0x2e9)],Qn=Object[_0x4c1f23(0x133)],er=(_0x5f1311,_0x363175,_0x26e9e4,_0x12432c)=>{for(var _0x48c474=_0x12432c>0x1?void 0x0:_0x12432c?Qn(_0x363175,_0x26e9e4):_0x363175,_0x27810c=_0x5f1311['length']-0x1,_0x5cda1c;_0x27810c>=0x0;_0x27810c--)(_0x5cda1c=_0x5f1311[_0x27810c])&&(_0x48c474=(_0x12432c?_0x5cda1c(_0x363175,_0x26e9e4,_0x48c474):_0x5cda1c(_0x48c474))||_0x48c474);return _0x12432c&&_0x48c474&&Zn(_0x363175,_0x26e9e4,_0x48c474),_0x48c474;},Oe=(_0x3ca6f8,_0x54e781)=>(_0x251da9,_0x540e1b)=>_0x54e781(_0x251da9,_0x540e1b,_0x3ca6f8);let D=class extends _0x22db72{constructor(_0x46f5bc,_0x134f83,_0x43b87f,_0x3b4c77,_0xcbc34e){const _0x50b47b=_0x4c1f23;super(),l(this,'_cachedData',new Map()),l(this,_0x50b47b(0x351),new Map()),l(this,_0x50b47b(0x167),!0x1),(this[_0x50b47b(0x132)]=_0x46f5bc,this[_0x50b47b(0x14e)]=_0x134f83,this[_0x50b47b(0x1bf)]=_0x43b87f,this['_localeService']=_0x3b4c77,this[_0x50b47b(0x396)]=_0xcbc34e,this[_0x50b47b(0x3ab)]());}[_0x4c1f23(0x3a2)](){const _0x13a41f=_0x4c1f23;this[_0x13a41f(0x167)]=!0x0;}[_0x4c1f23(0x3d1)](){const _0x2e3111=_0x4c1f23;this[_0x2e3111(0x167)]=!0x1;}[_0x4c1f23(0x1e4)](){const _0x3fc0b2=_0x4c1f23;this[_0x3fc0b2(0x3a5)]()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x1ae000){const _0xeb88c9=_0x4c1f23;return this[_0xeb88c9(0x167)]?null:this[_0xeb88c9(0x14e)][_0xeb88c9(0x352)](os(_0x1ae000));}async[_0x4c1f23(0x312)](_0x427cd9,_0x5b9315){const _0x48736b=_0x4c1f23;return!!this['_localStorageService'][_0x48736b(0x2f8)](_0x427cd9,_0x5b9315);}[_0x4c1f23(0x377)](_0x2b47cb,_0xef1e9e,_0x1d486d,_0x2340ad){const _0x582b51=_0x4c1f23,_0x2fe0d7=this[_0x582b51(0x396)]['getCurrentRevOfUnit'](_0x2b47cb);this['_cachedData'][_0x582b51(0x329)](_0x2b47cb,{'unitID':_0x2b47cb,'type':_0xef1e9e,'awaitingChangeset':_0x1d486d,'mutations':_0x2340ad,'rev':_0x2fe0d7}),this['_saveTaskMap'][_0x582b51(0x20e)](_0x2b47cb)||this[_0x582b51(0x20f)](_0x2b47cb);}[_0x4c1f23(0x20f)](_0x213115){const _0x23b728=_0x4c1f23,_0x152f41=this['_getSaveTimeout']();_0x152f41===0x0?this[_0x23b728(0x1c3)](_0x213115):this['_saveTaskMap']['set'](_0x213115,setTimeout(()=>this[_0x23b728(0x1c3)](_0x213115),_0x152f41));}[_0x4c1f23(0x38d)](){const _0x4a926b=_0x4c1f23;var _0x492c38;return(_0x492c38=this[_0x4a926b(0x132)][_0x4a926b(0x111)](Tn))!=null?_0x492c38:Rn;}['_saveCache'](_0x9a30cd){const _0x5b6df2=_0x4c1f23,_0xfee77e=this[_0x5b6df2(0x351)]['get'](_0x9a30cd);return _0xfee77e!==void 0x0&&window['clearTimeout'](_0xfee77e),this[_0x5b6df2(0x14e)][_0x5b6df2(0x2f8)](os(_0x9a30cd),this[_0x5b6df2(0x23b)][_0x5b6df2(0x348)](_0x9a30cd))[_0x5b6df2(0x90)](()=>this[_0x5b6df2(0x351)][_0x5b6df2(0xd0)](_0x9a30cd));}async[_0x4c1f23(0x3a5)](){const _0x93b82c=_0x4c1f23,_0x5d4f7b=[];this['_saveTaskMap'][_0x93b82c(0x100)]((_0x1e4a1f,_0x41443b)=>{const _0x5df8a6=_0x93b82c;window['clearTimeout'](_0x1e4a1f),_0x5d4f7b[_0x5df8a6(0x27c)](this['_saveCache'](_0x41443b)[_0x5df8a6(0x90)](()=>{const _0x17cab9=_0x5df8a6;this[_0x17cab9(0x351)][_0x17cab9(0xd0)](_0x41443b);}));}),await Promise[_0x93b82c(0x2f7)](_0x5d4f7b);}['_setupBeforeClosingHandler'](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x12daa5=_0x4c7d;if(this['_saveTaskMap'][_0x12daa5(0x151)])return this[_0x12daa5(0x119)]['t'](_0x12daa5(0x239));}));}};D=er([Oe(0x0,_0x4d21d1),Oe(0x1,_0x23441d),Oe(0x2,_0x3cc7ef),Oe(0x3,_0x321449(_0x2e153b)),Oe(0x4,_0x321449(_0x5d1c03))],D);function os(_0x56e5b){const _0x1db1d8=_0x4c1f23;return _0x1db1d8(0x34f)+_0x56e5b;}var tr=Object[_0x4c1f23(0x2e9)],sr=Object[_0x4c1f23(0x133)],ir=(_0x7dcf06,_0x38a710,_0x44947f,_0x14f085)=>{const _0x1383d4=_0x4c1f23;for(var _0x29a1e2=_0x14f085>0x1?void 0x0:_0x14f085?sr(_0x38a710,_0x44947f):_0x38a710,_0x3b346f=_0x7dcf06[_0x1383d4(0x78)]-0x1,_0x3c6a2c;_0x3b346f>=0x0;_0x3b346f--)(_0x3c6a2c=_0x7dcf06[_0x3b346f])&&(_0x29a1e2=(_0x14f085?_0x3c6a2c(_0x38a710,_0x44947f,_0x29a1e2):_0x3c6a2c(_0x29a1e2))||_0x29a1e2);return _0x14f085&&_0x29a1e2&&tr(_0x38a710,_0x44947f,_0x29a1e2),_0x29a1e2;},ht=(_0x4f34b0,_0x361283)=>(_0x23e61e,_0x683cc9)=>_0x361283(_0x23e61e,_0x683cc9,_0x4f34b0);function nr(_0x38a887){const _0x538375=_0x4c1f23,{unitID:_0x3f565f,mutations:_0x2bf021}=_0x38a887;return{'unitId':_0x3f565f,'subUnitId':_0x2bf021[0x0][_0x538375(0x364)][_0x538375(0x213)]};}let Ke=class{constructor(_0x5d4b98,_0x208792,_0x2fc560){const _0xcdc69d=_0x4c1f23;this['_injector']=_0x5d4b98,this[_0xcdc69d(0x2ce)]=_0x208792,this[_0xcdc69d(0x137)]=_0x2fc560;}[_0x4c1f23(0x34c)](_0x30cf5e){const _0x56949e=_0x4c1f23;var _0x595825,_0x3af790,_0x35c0e6,_0x51f5ae;const _0x32be0a=this[_0x56949e(0x162)][_0x56949e(0x348)](_0x152281),{unitId:_0x44cd75,subUnitId:_0x46a82e}=nr(_0x30cf5e),_0xf2c67d=_0x32be0a[_0x56949e(0x8f)](_0x44cd75)['getCurrentSelections'](),_0x2b3e04=(_0x3af790=(_0x595825=this[_0x56949e(0x137)][_0x56949e(0x2f6)](_0x44cd75))==null?void 0x0:_0x595825[_0x56949e(0x135)]())==null?void 0x0:_0x3af790[_0x56949e(0x1a9)]();if(_0xf2c67d[_0x56949e(0x78)]===0x0||!_0x44cd75||!_0x46a82e)return;const _0x3ffa16=[{'id':_0x137748['id'],'params':{'unitId':_0x44cd75,'subUnitId':_0x2b3e04,'selections':_0x403f58[_0x56949e(0x173)](_0xf2c67d)}}],_0x15cafa=this[_0x56949e(0x2ce)][_0x56949e(0xbf)](_0x30cf5e,_0x3ffa16);if(!_0x8db330(_0x15cafa))throw _0x15cafa[_0x56949e(0x17a)];const _0xc8311e=(_0x51f5ae=(_0x35c0e6=_0x15cafa['m2Prime'][0x0])==null?void 0x0:_0x35c0e6[_0x56949e(0x364)])==null?void 0x0:_0x51f5ae[_0x56949e(0x170)];Array[_0x56949e(0x35b)](_0xc8311e)&&_0xc8311e[_0x56949e(0x78)]&&this['_injector'][_0x56949e(0x348)](_0x265863)[_0x56949e(0x153)](_0x137748['id'],{'unitId':_0x44cd75,'subUnitId':_0x2b3e04,'selections':_0xc8311e});}};Ke=ir([ht(0x0,_0x321449(_0x313fa0)),ht(0x1,_0x56767e),ht(0x2,_0x375068)],Ke);const tt=_0x2d62b5('univer-pro.collaboration-client.single-active-unit-service');var js=(_0x288605=>(_0x288605[_0x288605['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x288605[_0x288605[_0x4c1f23(0xf3)]=0x1]=_0x4c1f23(0xf3),_0x288605))(js||{});const as=0x7530,cs=_0x4c1f23(0x324);class rr extends _0x22db72{constructor(){const _0x14493b=_0x4c1f23;super(),l(this,_0x14493b(0x96),_0x403f58['generateRandomId']()),l(this,'_selfUnitIDs',new Set()),l(this,_0x14493b(0x131),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x14493b(0x3ad),new Map()),l(this,_0x14493b(0x18c),new Map()),this[_0x14493b(0x34a)]();}[_0x4c1f23(0x1e4)](){const _0x3d96b7=_0x4c1f23;super['dispose'](),this[_0x3d96b7(0x3ad)][_0x3d96b7(0x100)]((_0xda1db8,_0x5bd452)=>this[_0x3d96b7(0xd9)](_0x5bd452)),this[_0x3d96b7(0xc1)]&&window[_0x3d96b7(0x17c)](this['_heartbeatTimer']);}[_0x4c1f23(0x187)](_0xca678a){const _0x506027=_0x4c1f23;return this[_0x506027(0x202)](_0xca678a)[_0x506027(0x1a7)](_0x1f43e4());}[_0x4c1f23(0x3f3)](_0x2ccbc8){const _0x37faca=_0x4c1f23;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x37faca(0x24f)][_0x37faca(0x2fb)](_0x2ccbc8),this[_0x37faca(0xdd)]({'type':0x0,'memberID':this[_0x37faca(0x96)],'unitIDs':[_0x2ccbc8],'isForwarded':!0x1});}[_0x4c1f23(0x251)](_0x47eceb){const _0x5a3ded=_0x4c1f23;this[_0x5a3ded(0x24f)][_0x5a3ded(0xd0)](_0x47eceb),this['_selfUnitIDs'][_0x5a3ded(0x151)]===0x0&&this['_heartbeatTimer']&&window[_0x5a3ded(0x17c)](this[_0x5a3ded(0xc1)]);}[_0x4c1f23(0x34a)](){const _0x4e2975=_0x4c1f23;this['disposeWithMe'](_0x5738c2(_0x1e2c02(window,'storage')[_0x4e2975(0x280)](_0x410abc=>{const _0x1cab54=_0x4e2975;if(_0x410abc[_0x1cab54(0x367)]!==cs||!_0x410abc[_0x1cab54(0x1e8)])return;const _0x5dc432=JSON[_0x1cab54(0x281)](_0x410abc[_0x1cab54(0x1e8)]);this[_0x1cab54(0x93)](_0x5dc432);}))),window['addEventListener'](_0x4e2975(0x3bc),()=>this[_0x4e2975(0xdd)]({'type':0x1,'memberID':this[_0x4e2975(0x96)],'unitIDs':Array[_0x4e2975(0x126)](this[_0x4e2975(0x24f)])}));}[_0x4c1f23(0x93)](_0x49046b){const _0x30e14e=_0x4c1f23;switch(_0x49046b[_0x30e14e(0x1d3)]){case 0x0:this[_0x30e14e(0x3b3)](_0x49046b);break;case 0x1:this[_0x30e14e(0x35f)](_0x49046b);break;case 0x2:this[_0x30e14e(0x11f)](_0x49046b);break;}}[_0x4c1f23(0x3b3)](_0x2a704d){const _0x1d7627=_0x4c1f23,{unitIDs:_0x46037c,memberID:_0x29b6b4,isForwarded:_0x256193}=_0x2a704d;_0x46037c[_0x1d7627(0x100)](_0x5d1cf2=>{const _0x494dd5=_0x1d7627;if(!_0x256193&&this[_0x494dd5(0x131)]['has'](_0x5d1cf2)&&this[_0x494dd5(0x202)](_0x5d1cf2)[_0x494dd5(0x23d)](0x1),!this['_unitOnClients'][_0x494dd5(0x20e)](_0x5d1cf2)||!this[_0x494dd5(0x131)][_0x494dd5(0x348)](_0x5d1cf2)[_0x494dd5(0x20e)](_0x29b6b4)){const _0x2fc01d=this[_0x494dd5(0x131)][_0x494dd5(0x348)](_0x5d1cf2)||new Set();_0x2fc01d[_0x494dd5(0x2fb)](_0x29b6b4),this[_0x494dd5(0x131)][_0x494dd5(0x329)](_0x5d1cf2,_0x2fc01d),this[_0x494dd5(0x257)](_0x29b6b4);}}),_0x256193||this[_0x1d7627(0xdd)]({'type':0x0,'memberID':this[_0x1d7627(0x96)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4c1f23(0x257)](_0x47bf1f){const _0x1da06a=_0x4c1f23;this[_0x1da06a(0xd9)](_0x47bf1f);const _0x1c1cf9=window[_0x1da06a(0x3cc)](()=>{const _0x3117f9=_0x1da06a;this[_0x3117f9(0x131)][_0x3117f9(0x100)](_0x19b342=>{const _0x8091f3=_0x3117f9;_0x19b342[_0x8091f3(0xd0)](_0x47bf1f);});},as*0x2);this['_clearOtherTimers'][_0x1da06a(0x329)](_0x47bf1f,_0x1c1cf9);}[_0x4c1f23(0xd9)](_0x549a9f){const _0x43710a=_0x4c1f23;if(this[_0x43710a(0x3ad)][_0x43710a(0x20e)](_0x549a9f)){const _0x10959f=this['_clearOtherTimers'][_0x43710a(0x348)](_0x549a9f);_0x10959f&&window[_0x43710a(0x314)](_0x10959f),this[_0x43710a(0x3ad)]['set'](_0x549a9f,null);}}[_0x4c1f23(0x35f)](_0x445bd5){const _0x859d7e=_0x4c1f23,{memberID:_0x571eed,unitIDs:_0x131fd2}=_0x445bd5;_0x131fd2[_0x859d7e(0x100)](_0x13a59b=>{const _0x174733=_0x859d7e;var _0x1fd2d4;const _0x321f16=this[_0x174733(0x131)][_0x174733(0x348)](_0x13a59b);_0x321f16&&(_0x321f16[_0x174733(0xd0)](_0x571eed),(_0x1fd2d4=this[_0x174733(0x202)](_0x13a59b))==null||_0x1fd2d4[_0x174733(0x23d)](_0x321f16[_0x174733(0x151)]===0x0?0x0:0x1));}),this[_0x859d7e(0xd9)](_0x571eed);}[_0x4c1f23(0x11f)](_0x25fd20){const _0x16182f=_0x4c1f23;this[_0x16182f(0x257)](_0x25fd20[_0x16182f(0xbc)]);}['_send'](_0x2b090e){const _0x46fbcd=_0x4c1f23;localStorage[_0x46fbcd(0x2f8)](cs,JSON[_0x46fbcd(0x360)](_0x2b090e));}[_0x4c1f23(0xc3)](){const _0x407625=_0x4c1f23;this['_heartbeatTimer']=window[_0x407625(0x1af)](()=>{const _0x231491=_0x407625;this[_0x231491(0xdd)]({'type':0x2,'memberID':this[_0x231491(0x96)]});},as);}[_0x4c1f23(0x202)](_0x4064ad){const _0x38331f=_0x4c1f23;return this[_0x38331f(0x18c)]['has'](_0x4064ad)||this[_0x38331f(0x18c)][_0x38331f(0x329)](_0x4064ad,new _0x2ec58d(0x0)),this[_0x38331f(0x18c)][_0x38331f(0x348)](_0x4064ad);}}function xs(_0x39c3bb){const _0x42d003=_0x4c1f23;let _0x58f14c='';for(const _0x9ff902 of _0x39c3bb){const {startOffset:_0x27d74b,endOffset:_0x169ca0,isActive:_0x186016}=_0x9ff902;_0x58f14c[_0x42d003(0x78)]&&(_0x58f14c+=','),_0x58f14c+=_0x27d74b+':'+_0x169ca0+':'+(_0x186016?'1':'0');}return _0x58f14c;}function or(_0x3096ca){const _0x3dd455=_0x4c1f23,_0x4c94a8=_0x3096ca['split'](','),_0x581272=[];for(const _0x47d3ca of _0x4c94a8){const [_0x133341,_0x138120,_0x31eb6a]=_0x47d3ca[_0x3dd455(0x236)](':');_0x581272['push']({'startOffset':Number(_0x133341),'endOffset':Number(_0x138120),'collapsed':_0x133341===_0x138120,'isActive':_0x31eb6a==='1'});}return _0x581272[_0x3dd455(0x130)](_0x49bb6c=>_0x49bb6c[_0x3dd455(0x2a2)])||(_0x581272[0x0]['isActive']=!0x0),_0x581272;}class Bt extends _0x2dacfb{constructor(){const _0x594772=_0x4c1f23;super(...arguments),l(this,'_collabCursorState$',new _0x2ec58d(null)),l(this,_0x594772(0x2f5),this[_0x594772(0x356)][_0x594772(0xfc)]());}[_0x4c1f23(0x1f8)](_0x8c4037){const _0x2f9923=_0x4c1f23,{unitID:_0x329e02,memberID:_0x8bb08f,textRanges:_0x74bf6c}=_0x8c4037,_0xa46049=xs(_0x74bf6c),_0x52590d={'unitID':_0x329e02,'memberID':_0x8bb08f,'selection':_0xa46049};this[_0x2f9923(0x356)][_0x2f9923(0x23d)](_0x52590d);}}var ar=Object[_0x4c1f23(0x2e9)],cr=Object[_0x4c1f23(0x133)],hr=(_0x3fd7ed,_0x672d69,_0xf9fccb,_0x249774)=>{const _0x5d043f=_0x4c1f23;for(var _0x2e8305=_0x249774>0x1?void 0x0:_0x249774?cr(_0x672d69,_0xf9fccb):_0x672d69,_0x31f8e1=_0x3fd7ed[_0x5d043f(0x78)]-0x1,_0x5c86eb;_0x31f8e1>=0x0;_0x31f8e1--)(_0x5c86eb=_0x3fd7ed[_0x31f8e1])&&(_0x2e8305=(_0x249774?_0x5c86eb(_0x672d69,_0xf9fccb,_0x2e8305):_0x5c86eb(_0x2e8305))||_0x2e8305);return _0x249774&&_0x2e8305&&ar(_0x672d69,_0xf9fccb,_0x2e8305),_0x2e8305;},hs=(_0x20ee1b,_0x355f26)=>(_0x5ab485,_0x2c4ce1)=>_0x355f26(_0x5ab485,_0x2c4ce1,_0x20ee1b);let Xe=class{constructor(_0x263a28,_0x4c6b35){const _0x285ead=_0x4c1f23;this[_0x285ead(0x162)]=_0x263a28,this[_0x285ead(0x2ce)]=_0x4c6b35;}[_0x4c1f23(0x34c)](_0x4d59d3){const _0x242d05=_0x4c1f23;var _0x15128c;const _0x52f9d0=this[_0x242d05(0x162)][_0x242d05(0x348)](_0x322779),_0x5dfba9=(_0x15128c=_0x52f9d0[_0x242d05(0x2bd)]())!=null?_0x15128c:[];if(_0x5dfba9['length']===0x0)return;const _0x1d9535=[{'id':_0x242d05(0x108),'params':{'unitId':_0x4d59d3[_0x242d05(0x1f3)],'actions':null,'textRanges':_0x5dfba9}}],_0x3d677b=this[_0x242d05(0x2ce)][_0x242d05(0xbf)](_0x4d59d3,_0x1d9535);if(!_0x8db330(_0x3d677b))throw _0x3d677b[_0x242d05(0x17a)];const _0x196680=_0x3d677b['m2Prime'][0x0]['params'][_0x242d05(0x125)];Array[_0x242d05(0x35b)](_0x196680)&&_0x196680[_0x242d05(0x78)]&&_0x52f9d0[_0x242d05(0x297)](_0x196680,!0x1);}};Xe=hr([hs(0x0,_0x321449(_0x313fa0)),hs(0x1,_0x56767e)],Xe);const lr=new Set([_0x3f0b63['id']]);function ls(_0x435cf6,_0x53188f,_0x13da7a,_0x4867dc,_0x275391){const _0xa10d72=_0x4c1f23;var _0x5ec821,_0x2ffc1b,_0x316327,_0xf9cb50;const _0x59a4b0=[];for(const _0xf7921b of _0x435cf6)if(lr[_0xa10d72(0x20e)](_0xf7921b['id'])){if(_0x59a4b0['length']>0x0)break;_0x59a4b0[_0xa10d72(0x27c)](_0xf7921b);break;}else _0x59a4b0[_0xa10d72(0x27c)](_0xf7921b);const _0x4c56ce=(_0x2ffc1b=(_0x5ec821=_0x275391[_0xa10d72(0x16d)]())==null?void 0x0:_0x5ec821[_0xa10d72(0x1e6)])!=null?_0x2ffc1b:_0xa10d72(0x30f),_0x5c4e48=(_0xf9cb50=(_0x316327=_0x275391['getCurrentUser']())==null?void 0x0:_0x316327[_0xa10d72(0xbc)])!=null?_0xf9cb50:_0xa10d72(0x30f);return{'changeset':{'unitID':_0x53188f,'type':_0x53eda4(_0x13da7a[_0xa10d72(0x27b)](_0x53188f)),'baseRev':_0x4867dc[_0xa10d72(0x189)](_0x53188f),'revision':0x0,'userID':_0x4c56ce,'memberID':_0x5c4e48,'mutations':_0x59a4b0},'pendingMutations':_0x435cf6[_0xa10d72(0x29d)](_0x59a4b0[_0xa10d72(0x78)])};}function _r(_0x166621,_0x3e6f54,_0x16fa09,_0x594510,_0xe78855){const _0x355e8e=_0x4c1f23;var _0x2df672,_0x49800b,_0x31b858,_0x2bcbf8;const _0x2b199b=[_0x166621[_0x355e8e(0x3cd)]((_0x27d2f2,_0x182e12)=>{const _0x4a48cb=_0x355e8e;var _0x2218b1;const {id:_0x14919a}=_0x27d2f2,{id:_0x5ea084,type:_0x2173cf}=_0x182e12,_0x477a15=(_0x2218b1=_0x27d2f2['params'])!=null?_0x2218b1:{'actions':null},_0x1b0ff5=_0x182e12[_0x4a48cb(0x364)];if(_0x14919a&&_0x14919a!==_0x5ea084)throw new Error(_0x4a48cb(0x260)+_0x14919a+'\x20-\x20'+_0x5ea084+'.');return{..._0x27d2f2,'id':_0x5ea084,'type':_0x2173cf,'params':{'unitId':_0x1b0ff5['unitId'],'textRanges':_0x1b0ff5[_0x4a48cb(0x125)],'actions':_0x107e10[_0x4a48cb(0x142)](_0x477a15[_0x4a48cb(0x33d)],_0x1b0ff5[_0x4a48cb(0x33d)])}};},{})],_0x4e125d=(_0x49800b=(_0x2df672=_0xe78855[_0x355e8e(0x16d)]())==null?void 0x0:_0x2df672['userID'])!=null?_0x49800b:_0x355e8e(0x30f),_0x37828c=(_0x2bcbf8=(_0x31b858=_0xe78855[_0x355e8e(0x16d)]())==null?void 0x0:_0x31b858['memberID'])!=null?_0x2bcbf8:_0x355e8e(0x30f);return{'changeset':{'unitID':_0x3e6f54,'type':_0x53eda4(_0x16fa09[_0x355e8e(0x27b)](_0x3e6f54)),'baseRev':_0x594510[_0x355e8e(0x189)](_0x3e6f54),'revision':0x0,'userID':_0x4e125d,'memberID':_0x37828c,'mutations':_0x2b199b},'pendingMutations':[]};}const ur={'id':_0x489e71['id'],'type':_0xcd477b[_0x4c1f23(0xdf)],'params':{}};var dr=Object['defineProperty'],fr=Object[_0x4c1f23(0x133)],le=(_0x182cf5,_0x5dd82,_0x3e35fc,_0x13a299)=>{const _0x42dbcf=_0x4c1f23;for(var _0x54fbd0=_0x13a299>0x1?void 0x0:_0x13a299?fr(_0x5dd82,_0x3e35fc):_0x5dd82,_0x57aa36=_0x182cf5[_0x42dbcf(0x78)]-0x1,_0x51700b;_0x57aa36>=0x0;_0x57aa36--)(_0x51700b=_0x182cf5[_0x57aa36])&&(_0x54fbd0=(_0x13a299?_0x51700b(_0x5dd82,_0x3e35fc,_0x54fbd0):_0x51700b(_0x54fbd0))||_0x54fbd0);return _0x13a299&&_0x54fbd0&&dr(_0x5dd82,_0x3e35fc,_0x54fbd0),_0x54fbd0;},m=(_0x267d69,_0x23c0ce)=>(_0x3ed41b,_0x5575ab)=>_0x23c0ce(_0x3ed41b,_0x5575ab,_0x267d69),w=(_0x27f830=>(_0x27f830[_0x4c1f23(0x3df)]=_0x4c1f23(0x36b),_0x27f830[_0x4c1f23(0x316)]=_0x4c1f23(0x2d0),_0x27f830[_0x4c1f23(0x3a7)]='pending',_0x27f830[_0x4c1f23(0x1ca)]=_0x4c1f23(0x369),_0x27f830['AWAITING_WITH_PENDING']=_0x4c1f23(0x2b3),_0x27f830[_0x4c1f23(0x1c6)]=_0x4c1f23(0x1dc),_0x27f830[_0x4c1f23(0x12a)]=_0x4c1f23(0x2fd),_0x27f830['OFFLINE']=_0x4c1f23(0x209),_0x27f830))(w||{});class _e{constructor(_0x494ea9,_0x904a6b,_0x37a493,_0x488a08,_0x4a673e,_0x41a300,_0x332bbe,_0x5053dd,_0x2d46b2){const _0x49ccec=_0x4c1f23;l(this,_0x49ccec(0x32e),null),l(this,_0x49ccec(0x14c),[]),(this['unitID']=_0x494ea9,this[_0x49ccec(0x1d3)]=_0x904a6b,this[_0x49ccec(0x34b)]=_0x4a673e,this[_0x49ccec(0x1ef)]=_0x41a300,this[_0x49ccec(0x3ce)]=_0x332bbe,this['_revisionService']=_0x5053dd,this[_0x49ccec(0xd7)]=_0x2d46b2,this[_0x49ccec(0x32e)]=_0x37a493,this[_0x49ccec(0x14c)]=_0x488a08);}[_0x4c1f23(0x3c6)](_0x5267b2){const _0x18004a=_0x4c1f23,_0x537c78=this[_0x18004a(0x396)][_0x18004a(0x189)](this[_0x18004a(0x1f3)]);return _0x5267b2[_0x18004a(0x3d6)]>_0x537c78+0x1?(this[_0x18004a(0x34b)][_0x18004a(0x31e)]({'from':_0x537c78,'to':_0x5267b2['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x2ad504){const _0x2d94b5=_0x4c1f23;this['_undoRedoService'][_0x2d94b5(0x2bc)](this[_0x2d94b5(0x1f3)],_0x2ad504);}[_0x4c1f23(0x346)](_0x236a56){const _0x57d4b5=_0x4c1f23;var _0x4d7582,_0x522483;(_0x522483=(_0x4d7582=this[_0x57d4b5(0x34b)])[_0x57d4b5(0x1c1)])==null||_0x522483[_0x57d4b5(0x3af)](_0x4d7582,_0x236a56);}[_0x4c1f23(0x32f)](_0x46ba72){const _0x4d5cb6=_0x4c1f23;var _0x18255a,_0x2afd71;return(_0x2afd71=(_0x18255a=this[_0x4d5cb6(0x34b)])[_0x4d5cb6(0x200)])==null?void 0x0:_0x2afd71['call'](_0x18255a,_0x46ba72);}[_0x4c1f23(0x2df)](_0xb7ca14){const _0x421973=_0x4c1f23;var _0xd7e3e2,_0x2722ba,_0x57efcb;return(_0x57efcb=(_0x2722ba=(_0xd7e3e2=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x2722ba[_0x421973(0x3af)](_0xd7e3e2,_0xb7ca14))!=null?_0x57efcb:_0xb7ca14;}[_0x4c1f23(0x3d5)](_0x5e7156){const _0x32f894=_0x4c1f23;var _0x2a543c,_0x2f649e;if(this[_0x32f894(0x1d3)]===H['UNIVER_DOC']){const {unitID:_0x10ffd1,mutations:_0x1de38b,memberID:_0x5811f5}=_0x5e7156,_0x8ad858=_0x1de38b[0x0][_0x32f894(0x364)]['textRanges'];Array[_0x32f894(0x35b)](_0x8ad858)&&_0x8ad858['length']>0x0&&((_0x2f649e=(_0x2a543c=this[_0x32f894(0x34b)])[_0x32f894(0x1e7)])==null||_0x2f649e[_0x32f894(0x3af)](_0x2a543c,{'unitID':_0x10ffd1,'memberID':_0x5811f5,'textRanges':_0x8ad858}));}}[_0x4c1f23(0x32a)](){const _0x774252=_0x4c1f23;this[_0x774252(0xd7)][_0x774252(0x377)](this['unitID'],this[_0x774252(0x1d3)],this[_0x774252(0x32e)],this[_0x774252(0x14c)]);}['_getCurrentRevision'](){const _0xa461ab=_0x4c1f23;return this[_0xa461ab(0x396)]['getCurrentRevOfUnit'](this[_0xa461ab(0x1f3)]);}[_0x4c1f23(0x3c1)](){const _0xe8112e=_0x4c1f23;this['_revisionService'][_0xe8112e(0x193)](this['unitID']);}[_0x4c1f23(0x3aa)](_0x3ac055){const _0x2ac698=_0x4c1f23;var _0x3757d4;const _0x3d9b45=this[_0x2ac698(0x2df)](_0x3ac055),_0x636220=_0x2aed7d(_0x3d9b45['mutations'],this[_0x2ac698(0x1ef)],{'fromCollab':!0x0});if(!_0x636220[_0x2ac698(0x2c5)])throw _0x636220[_0x2ac698(0x17a)]instanceof Error?_0x636220[_0x2ac698(0x17a)]:new Error((_0x3757d4=_0x636220[_0x2ac698(0x17a)])!=null?_0x3757d4:_0x2ac698(0x1cc));this[_0x2ac698(0x32f)](_0x3d9b45),this[_0x2ac698(0x12e)](_0x3ac055),this[_0x2ac698(0x346)](_0x3d9b45),this['_syncEditingCollabCursor'](_0x3d9b45),this[_0x2ac698(0x3c1)]();}}let Se=class extends _e{constructor(_0x1cf2d6,_0x550005,_0x11445d,_0x122506,_0x1db12d,_0x35ed5d,_0x5a59cc,_0x3f44c0,_0xbc6877,_0x3af6d9){const _0x4c8c97=_0x4c1f23;super(_0x1cf2d6,_0x550005,null,[],_0x11445d,_0x3f44c0,_0x5a59cc,_0x122506,_0x1db12d),l(this,_0x4c8c97(0xad),'synced'),(this['_injector']=_0x35ed5d,this[_0x4c8c97(0x128)]=_0xbc6877,this[_0x4c8c97(0x2ce)]=_0x3af6d9);}[_0x4c1f23(0x3ef)](_0x20102e){const _0x267814=_0x4c1f23,_0x5010db=this['_injector'][_0x267814(0x171)](K,this[_0x267814(0x1f3)],this[_0x267814(0x1d3)],[_0x20102e],this[_0x267814(0x34b)]);return _0x5010db[_0x267814(0x298)](),_0x5010db[_0x267814(0x32a)](),_0x5010db;}[_0x4c1f23(0x10c)](_0x5a8739){const _0x2321ff=_0x4c1f23;if(this['_checkMissing'](_0x5a8739))return this['_injector'][_0x2321ff(0x171)](k,this[_0x2321ff(0x1f3)],this[_0x2321ff(0x1d3)],null,[],null,[_0x5a8739],this[_0x2321ff(0x34b)]);try{const _0x52816e=this['_transformService']['transformMutationsWithChangeset'](_0x5a8739,[ur]);if(_0x8db330(_0x52816e)){const {c1Prime:_0x71a0e5}=_0x52816e;return this[_0x2321ff(0x3aa)](_0x71a0e5),this;}throw _0x52816e[_0x2321ff(0x17a)];}catch(_0x91a9e4){return this[_0x2321ff(0x128)][_0x2321ff(0x17a)](_0x91a9e4),this[_0x2321ff(0x222)](!0x1);}}[_0x4c1f23(0x222)](_0x2d7205){const _0x221b40=_0x4c1f23;return this[_0x221b40(0x162)][_0x221b40(0x171)](Q,this[_0x221b40(0x1f3)],this[_0x221b40(0x1d3)],null,[],this['_handler'],_0x2d7205);}[_0x4c1f23(0x357)](){const _0x1b4a1f=_0x4c1f23;throw new Error(_0x1b4a1f(0x2c2));}[_0x4c1f23(0xf4)](){const _0x3eaf62=_0x4c1f23;throw new Error(_0x3eaf62(0x23f));}[_0x4c1f23(0x385)](){const _0x2e0343=_0x4c1f23;return this[_0x2e0343(0x162)][_0x2e0343(0x171)](ee,this['unitID'],this[_0x2e0343(0x1d3)],null,[],this[_0x2e0343(0x34b)]);}[_0x4c1f23(0x31f)](){return this;}['resend'](){const _0x3b9aa9=_0x4c1f23;throw new Error(_0x3b9aa9(0x3ec));}[_0x4c1f23(0xff)](){const _0x501cdc=_0x4c1f23,_0x5f5b4a=this['_revisionService'][_0x501cdc(0x189)](this['unitID']);return this[_0x501cdc(0x34b)][_0x501cdc(0x31e)]({'from':_0x5f5b4a,'to':0x0}),this[_0x501cdc(0x162)][_0x501cdc(0x171)](k,this[_0x501cdc(0x1f3)],this[_0x501cdc(0x1d3)],null,[],null,[],this[_0x501cdc(0x34b)]);}};Se=le([m(0x3,_0x321449(_0x5d1c03)),m(0x4,_0x321449(D)),m(0x5,_0x321449(_0x313fa0)),m(0x6,_0x2fbed3),m(0x7,_0x265863),m(0x8,_0x50688a),m(0x9,_0x56767e)],Se);let K=class extends _e{constructor(_0x151b5d,_0x4cee19,_0x4c0f62,_0x3faa6d,_0x4ee8e7,_0x28e173,_0x2c39e3,_0x10ce5e,_0x485fb9,_0x4fdcb0,_0x5dbadd,_0x524a88,_0x1edbe5,_0x3aae5a){const _0x334bda=_0x4c1f23;super(_0x151b5d,_0x4cee19,null,_0x4c0f62,_0x3faa6d,_0x4fdcb0,_0x3aae5a,_0x28e173,_0x2c39e3),l(this,_0x334bda(0xad),'pending'),l(this,_0x334bda(0xc7),null),l(this,'_sendingTimer',null),(this[_0x334bda(0x162)]=_0x4ee8e7,this[_0x334bda(0x2ed)]=_0x10ce5e,this['_logService']=_0x485fb9,this[_0x334bda(0x132)]=_0x5dbadd,this[_0x334bda(0x2ce)]=_0x524a88,this['_univerInstanceService']=_0x1edbe5);}[_0x4c1f23(0x3ef)](_0x2f2db1){const _0x4424b6=_0x4c1f23;return this[_0x4424b6(0x14c)][_0x4424b6(0x27c)](_0x2f2db1),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x31c93b){const _0x3616d8=_0x4c1f23;if(this[_0x3616d8(0x3c6)](_0x31c93b))return this[_0x3616d8(0x387)](),this[_0x3616d8(0x162)][_0x3616d8(0x171)](k,this[_0x3616d8(0x1f3)],this[_0x3616d8(0x1d3)],null,this['_pendingMutations'],null,[_0x31c93b],this['_handler']);try{const _0x2326fa=this['_transformService'][_0x3616d8(0xbf)](_0x31c93b,this[_0x3616d8(0x14c)]);if(_0x8db330(_0x2326fa)){const {c1Prime:_0x5660bc,m2Prime:_0x4a40cc}=_0x2326fa;this[_0x3616d8(0x3aa)](_0x5660bc);const _0x4aac19=this[_0x3616d8(0x162)][_0x3616d8(0x171)](K,this['unitID'],this[_0x3616d8(0x1d3)],_0x4a40cc,this[_0x3616d8(0x34b)]);return this[_0x3616d8(0x387)](),_0x4aac19[_0x3616d8(0x298)](this[_0x3616d8(0xc7)]?Math[_0x3616d8(0x1e9)](0x0,new Date()[_0x3616d8(0x14f)]()-this[_0x3616d8(0xc7)]):this[_0x3616d8(0x3f4)]()),_0x4aac19;}throw _0x2326fa[_0x3616d8(0x17a)];}catch(_0x15bea2){return this[_0x3616d8(0x128)][_0x3616d8(0x17a)](_0x15bea2),this[_0x3616d8(0x222)](!0x1);}}[_0x4c1f23(0x357)](){const _0x5ba2ca=_0x4c1f23;throw new Error(_0x5ba2ca(0xf5));}[_0x4c1f23(0xf4)](){const _0x193912=_0x4c1f23;throw new Error(_0x193912(0x391));}[_0x4c1f23(0x385)](){const _0x26f02d=_0x4c1f23;return this[_0x26f02d(0x387)](),this[_0x26f02d(0x162)][_0x26f02d(0x171)](ee,this[_0x26f02d(0x1f3)],this[_0x26f02d(0x1d3)],null,this[_0x26f02d(0x14c)],this['_handler']);}['toggleOnline'](){return this;}[_0x4c1f23(0x298)](_0x1c115e){const _0x18a12b=_0x4c1f23,_0x4e22d3=_0x1c115e!=null?_0x1c115e:this[_0x18a12b(0x3f4)]();this[_0x18a12b(0xc7)]=new Date()['getTime'](),this[_0x18a12b(0x3dc)]=window[_0x18a12b(0x3cc)](()=>{const _0x1c147f=_0x18a12b;this[_0x1c147f(0x387)]();let _0x412c3d=null;switch(this[_0x1c147f(0x1d3)]){case H[_0x1c147f(0x10d)]:{_0x412c3d=ls(this[_0x1c147f(0x14c)],this[_0x1c147f(0x1f3)],this[_0x1c147f(0x310)],this[_0x1c147f(0x396)],this[_0x1c147f(0x2ed)]);break;}case H[_0x1c147f(0x11d)]:{this[_0x1c147f(0x14c)][_0x1c147f(0x158)](_0xf1e36d=>_0xf1e36d['id']===_0x1b2745['id'])?_0x412c3d=_r(this[_0x1c147f(0x14c)],this[_0x1c147f(0x1f3)],this[_0x1c147f(0x310)],this['_revisionService'],this[_0x1c147f(0x2ed)]):_0x412c3d=ls(this[_0x1c147f(0x14c)],this[_0x1c147f(0x1f3)],this['_univerInstanceService'],this[_0x1c147f(0x396)],this[_0x1c147f(0x2ed)]);break;}default:throw new Error(_0x1c147f(0xb3)+this[_0x1c147f(0x1d3)]+_0x1c147f(0x2e7));}const {changeset:_0xc35701,pendingMutations:_0x3c947c}=_0x412c3d;this[_0x1c147f(0x34b)][_0x1c147f(0x2d4)](_0xc35701);const _0x5a2105=_0x3c947c[_0x1c147f(0x78)]?this['_injector'][_0x1c147f(0x171)](X,this['unitID'],this[_0x1c147f(0x1d3)],_0xc35701,_0x3c947c,this[_0x1c147f(0x34b)]):this[_0x1c147f(0x162)][_0x1c147f(0x171)](Z,this[_0x1c147f(0x1f3)],this[_0x1c147f(0x1d3)],_0xc35701,this[_0x1c147f(0x34b)]);_0x5a2105[_0x1c147f(0x32a)](),this[_0x1c147f(0x34b)][_0x1c147f(0x1bc)](this,_0x5a2105);},_0x4e22d3);}['_getSendChangesetTimeout'](){const _0x499e63=_0x4c1f23;var _0x39679b;const _0x15c0be=this[_0x499e63(0x132)][_0x499e63(0x111)](L);return(_0x39679b=_0x15c0be==null?void 0x0:_0x15c0be['sendChangesetTimeout'])!=null?_0x39679b:gn;}['resend'](){const _0x30c51d=_0x4c1f23;throw new Error(_0x30c51d(0x362));}['_clearScheduledTask'](){const _0xcf5880=_0x4c1f23;this[_0xcf5880(0x3dc)]!=null&&(clearTimeout(this[_0xcf5880(0x3dc)]),this[_0xcf5880(0x3dc)]=null);}[_0x4c1f23(0x222)](_0x1e9691){const _0x3c3da6=_0x4c1f23;return this[_0x3c3da6(0x387)](),this['_injector'][_0x3c3da6(0x171)](Q,this[_0x3c3da6(0x1f3)],this[_0x3c3da6(0x1d3)],null,this[_0x3c3da6(0x14c)],this[_0x3c3da6(0x34b)],_0x1e9691);}};K=le([m(0x4,_0x321449(_0x313fa0)),m(0x5,_0x321449(_0x5d1c03)),m(0x6,_0x321449(D)),m(0x7,_0x321449(ae)),m(0x8,_0x50688a),m(0x9,_0x265863),m(0xa,_0x4d21d1),m(0xb,_0x56767e),m(0xc,_0x375068),m(0xd,_0x2fbed3)],K);let Z=class extends _e{constructor(_0x22badc,_0x43dd7c,_0x1b7796,_0x1b0193,_0x32cb2e,_0xc2804a,_0x3c31cb,_0xbd5e51,_0x38ef78,_0x5b2a57,_0x28e3db){const _0xc9c97a=_0x4c1f23;super(_0x22badc,_0x43dd7c,_0x1b7796,[],_0x1b0193,_0xbd5e51,_0x28e3db,_0xc2804a,_0x3c31cb),l(this,_0xc9c97a(0xad),_0xc9c97a(0x369)),(this[_0xc9c97a(0x162)]=_0x32cb2e,this[_0xc9c97a(0x128)]=_0x38ef78,this[_0xc9c97a(0x2ce)]=_0x5b2a57);}[_0x4c1f23(0x3ef)](_0x41cab8){const _0x4b6238=_0x4c1f23,_0x47bdc7=this[_0x4b6238(0x162)]['createInstance'](X,this[_0x4b6238(0x1f3)],this['type'],this['_awaitingChangeset'],[_0x41cab8],this[_0x4b6238(0x34b)]);return _0x47bdc7['_updateLocalCache'](),_0x47bdc7;}[_0x4c1f23(0x10c)](_0x4fe864){const _0x11695c=_0x4c1f23;if(this[_0x11695c(0x3c6)](_0x4fe864))return this[_0x11695c(0x162)]['createInstance'](k,this[_0x11695c(0x1f3)],this[_0x11695c(0x1d3)],this[_0x11695c(0x32e)],[],null,[_0x4fe864],this[_0x11695c(0x34b)]);try{const _0x5e1b8d=this[_0x11695c(0x2ce)][_0x11695c(0x3a0)]([_0x4fe864],[this[_0x11695c(0x32e)]],!0x1);if(_0x428767(_0x5e1b8d)){const {c1Prime:_0x501c68,c2Prime:_0x3dd012}=_0x5e1b8d;this[_0x11695c(0x3aa)](_0x501c68[0x0]),_0x3dd012[0x0][_0x11695c(0x1fc)]=this[_0x11695c(0x309)]();const _0x560cbd=this[_0x11695c(0x162)][_0x11695c(0x171)](Z,this[_0x11695c(0x1f3)],this[_0x11695c(0x1d3)],_0x3dd012[0x0],this[_0x11695c(0x34b)]);return _0x560cbd[_0x11695c(0x32a)](),_0x560cbd;}return this[_0x11695c(0x222)](!0x1);}catch(_0x31f2f2){return this[_0x11695c(0x128)][_0x11695c(0x17a)](_0x31f2f2),this[_0x11695c(0x222)](!0x1);}}[_0x4c1f23(0x357)](_0x325984){const _0x164750=_0x4c1f23,_0x341dbe=this[_0x164750(0x396)]['getCurrentRevOfUnit'](this[_0x164750(0x1f3)]);if(_0x325984['revision']<_0x341dbe-0x1)return this;if(this['_checkMissing'](_0x325984))return this[_0x164750(0x162)][_0x164750(0x171)](k,this[_0x164750(0x1f3)],this[_0x164750(0x1d3)],null,[],this['_awaitingChangeset'],[],this[_0x164750(0x34b)]);this['_incrementRevisionNumber']();const _0x4c3399=this['_injector'][_0x164750(0x171)](Se,this[_0x164750(0x1f3)],this[_0x164750(0x1d3)],this['_handler']);return _0x4c3399[_0x164750(0x32a)](),_0x4c3399;}[_0x4c1f23(0xf4)](_0x3e9b1a){const _0x23a3a3=_0x4c1f23;return this[_0x23a3a3(0x222)](!!(_0x3e9b1a!=null&&_0x3e9b1a[_0x23a3a3(0x3b9)]));}['toggleOffline'](){const _0x437ade=_0x4c1f23;return this[_0x437ade(0x162)][_0x437ade(0x171)](ee,this[_0x437ade(0x1f3)],this[_0x437ade(0x1d3)],this[_0x437ade(0x32e)],[],this[_0x437ade(0x34b)]);}[_0x4c1f23(0x31f)](){return this;}[_0x4c1f23(0x227)](){const _0x29eba2=_0x4c1f23;this[_0x29eba2(0x34b)][_0x29eba2(0x2d4)](this[_0x29eba2(0x32e)]);}[_0x4c1f23(0x222)](_0xe7903f){const _0x4e2cc5=_0x4c1f23;return this[_0x4e2cc5(0x162)][_0x4e2cc5(0x171)](Q,this[_0x4e2cc5(0x1f3)],this['type'],this[_0x4e2cc5(0x32e)],[],this[_0x4e2cc5(0x34b)],_0xe7903f);}};Z=le([m(0x4,_0x321449(_0x313fa0)),m(0x5,_0x321449(_0x5d1c03)),m(0x6,_0x321449(D)),m(0x7,_0x265863),m(0x8,_0x50688a),m(0x9,_0x56767e),m(0xa,_0x2fbed3)],Z);let X=class extends _e{constructor(_0x4c0f75,_0x26c96b,_0x5f3f3a,_0x17bb8f,_0xf7a19c,_0x4b7607,_0x358856,_0x14fd4f,_0x400910,_0x479d5b,_0x256486,_0x451dc4){const _0x248cdb=_0x4c1f23;super(_0x4c0f75,_0x26c96b,_0x5f3f3a,_0x17bb8f,_0xf7a19c,_0x400910,_0x451dc4,_0x358856,_0x14fd4f),l(this,_0x248cdb(0xad),_0x248cdb(0x2b3)),(this[_0x248cdb(0x162)]=_0x4b7607,this[_0x248cdb(0x128)]=_0x479d5b,this[_0x248cdb(0x2ce)]=_0x256486);}[_0x4c1f23(0x3ef)](_0x8c8974){const _0x2852e4=_0x4c1f23;return this[_0x2852e4(0x14c)]['push'](_0x8c8974),this;}[_0x4c1f23(0x10c)](_0x32446f){const _0x258c2f=_0x4c1f23;if(this['_checkMissing'](_0x32446f))return this[_0x258c2f(0x162)]['createInstance'](k,this[_0x258c2f(0x1f3)],this[_0x258c2f(0x1d3)],this[_0x258c2f(0x32e)],this[_0x258c2f(0x14c)],null,[_0x32446f],this[_0x258c2f(0x34b)]);try{const _0x43d26b=this['_transformService'][_0x258c2f(0x3a0)]([_0x32446f],[this[_0x258c2f(0x32e)]],!0x1);if(_0x428767(_0x43d26b)){const {c1Prime:_0x350c09,c2Prime:_0x3d20f3}=_0x43d26b,_0x46e6c3=this['_transformService'][_0x258c2f(0xbf)](_0x350c09[0x0],this[_0x258c2f(0x14c)]);if(_0x8db330(_0x46e6c3)){const {c1Prime:_0x461dfc,m2Prime:_0x391063}=_0x46e6c3;return this['_executeRemoteChangeset'](_0x461dfc),_0x3d20f3[0x0]['baseRev']=this[_0x258c2f(0x309)](),this['_injector'][_0x258c2f(0x171)](X,this[_0x258c2f(0x1f3)],this[_0x258c2f(0x1d3)],_0x3d20f3[0x0],_0x391063,this[_0x258c2f(0x34b)]);}throw _0x46e6c3[_0x258c2f(0x17a)];}throw _0x43d26b[_0x258c2f(0x17a)];}catch(_0x22473e){return this[_0x258c2f(0x128)]['error'](_0x22473e),this[_0x258c2f(0x222)](!0x1);}}[_0x4c1f23(0x357)](_0x3832dc){const _0x57ff09=_0x4c1f23;if(this[_0x57ff09(0x3c6)](_0x3832dc))return this[_0x57ff09(0x162)][_0x57ff09(0x171)](k,this['unitID'],this[_0x57ff09(0x1d3)],null,this[_0x57ff09(0x14c)],this['_awaitingChangeset'],[],this['_handler']);this[_0x57ff09(0x3c1)]();const _0x4311ee=this['_injector'][_0x57ff09(0x171)](K,this[_0x57ff09(0x1f3)],this[_0x57ff09(0x1d3)],this[_0x57ff09(0x14c)],this['_handler']);return _0x4311ee[_0x57ff09(0x298)](),_0x4311ee[_0x57ff09(0x32a)](),_0x4311ee;}[_0x4c1f23(0xf4)](_0x644362){const _0x547a13=_0x4c1f23;return this[_0x547a13(0x222)](!!(_0x644362!=null&&_0x644362['isPermissionRej']));}[_0x4c1f23(0x385)](){const _0x3d26c6=_0x4c1f23;return this[_0x3d26c6(0x162)][_0x3d26c6(0x171)](ee,this[_0x3d26c6(0x1f3)],this[_0x3d26c6(0x1d3)],this[_0x3d26c6(0x32e)],this['_pendingMutations'],this['_handler']);}[_0x4c1f23(0x31f)](){return this;}['resend'](){const _0x527fdf=_0x4c1f23;this[_0x527fdf(0x34b)][_0x527fdf(0x2d4)](this[_0x527fdf(0x32e)]);}[_0x4c1f23(0x222)](_0x4e9a3c){const _0x192af2=_0x4c1f23;return this[_0x192af2(0x162)][_0x192af2(0x171)](Q,this[_0x192af2(0x1f3)],this[_0x192af2(0x1d3)],null,this[_0x192af2(0x14c)],this['_handler'],_0x4e9a3c);}};X=le([m(0x5,_0x321449(_0x313fa0)),m(0x6,_0x321449(_0x5d1c03)),m(0x7,_0x321449(D)),m(0x8,_0x265863),m(0x9,_0x50688a),m(0xa,_0x56767e),m(0xb,_0x2fbed3)],X);let Q=class extends _e{constructor(_0x2b2b14,_0x57c442,_0x4c3e32,_0x39311f,_0x21395c,_0x293360=!0x1,_0x4ec3b6,_0x568959,_0x54ec88,_0x214168,_0x5a20f2,_0x3cd3a0,_0x2e3734){const _0x129530=_0x4c1f23;super(_0x2b2b14,_0x57c442,_0x4c3e32,_0x39311f,_0x21395c,_0x568959,_0x54ec88,_0x5a20f2,_0x214168),l(this,_0x129530(0xad),_0x129530(0x2fd)),(this[_0x129530(0x2cd)]=_0x293360,this[_0x129530(0x15c)]=_0x4ec3b6,this['_localeService']=_0x3cd3a0,this[_0x129530(0x3a8)]=_0x2e3734,this['_showConflictNotification'](),this[_0x129530(0x1da)](),this[_0x129530(0x37d)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4c1f23(0x357)](){return this;}['onRemoteRej'](){return this;}[_0x4c1f23(0x385)](){return this;}[_0x4c1f23(0x31f)](){return this;}[_0x4c1f23(0x227)](){const _0x267b4f=_0x4c1f23;throw new Error(_0x267b4f(0x220));}[_0x4c1f23(0x1da)](){const _0x452966=_0x4c1f23;this[_0x452966(0xd7)][_0x452966(0x377)](this[_0x452966(0x1f3)],this[_0x452966(0x1d3)],null,[]);}[_0x4c1f23(0x24d)](){const _0xef1b68=_0x4c1f23;this['_isPermissionRej']?this['_notificationService'][_0xef1b68(0x160)]({'title':this[_0xef1b68(0x119)]['t']('permission.title'),'content':this[_0xef1b68(0x119)]['t'](_0xef1b68(0x398)),'type':_0xef1b68(0x17a),'duration':0x0}):this[_0xef1b68(0x3a8)][_0xef1b68(0x160)]({'title':this['_localeService']['t'](_0xef1b68(0x1f7)),'content':this['_localeService']['t'](_0xef1b68(0x253)),'type':'error','duration':0x0});}[_0x4c1f23(0x37d)](){const _0xc21e08=_0x4c1f23;this[_0xc21e08(0x15c)][_0xc21e08(0xb6)](new _0x42c12f(this[_0xc21e08(0x1f3)])['id'],!0x1);}};Q=le([m(0x6,_0x321449(_0x52f39f)),m(0x7,_0x265863),m(0x8,_0x2fbed3),m(0x9,_0x321449(D)),m(0xa,_0x321449(_0x5d1c03)),m(0xb,_0x321449(_0x2e153b)),m(0xc,_0x7f7802)],Q);let ee=class extends _e{constructor(_0x186109,_0x2b96b4,_0x12935f,_0x4e06c9,_0x25911a,_0x25ec44,_0x4e809b,_0x453f10,_0xca638c,_0xbf7522){const _0x3db14c=_0x4c1f23;super(_0x186109,_0x2b96b4,_0x12935f,_0x4e06c9,_0x25911a,_0xca638c,_0xbf7522,_0x4e809b,_0x453f10),l(this,'status',_0x3db14c(0x209)),this[_0x3db14c(0x162)]=_0x25ec44;}['appendMutation'](_0x130fa4){const _0x5afcec=_0x4c1f23;return this[_0x5afcec(0x14c)][_0x5afcec(0x27c)](_0x130fa4),this[_0x5afcec(0x32a)](),this;}[_0x4c1f23(0x10c)](_0x507b95){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x4864a6=_0x4c1f23;throw new Error(_0x4864a6(0x105));}[_0x4c1f23(0xf4)](){const _0x4ae662=_0x4c1f23;throw new Error(_0x4ae662(0x76));}['toggleOffline'](){return this;}[_0x4c1f23(0x31f)](){const _0x570c2b=_0x4c1f23,{_injector:_0x5975b5,_pendingMutations:_0x264191,_awaitingChangeset:_0x3a813c,unitID:_0x250ea1,_handler:_0x37f71d,type:_0x113267}=this,_0x516f2e=Hs(_0x5975b5,_0x250ea1,_0x113267,_0x3a813c,_0x264191,_0x37f71d);return _0x516f2e instanceof K?_0x516f2e[_0x570c2b(0x298)]():(_0x516f2e instanceof X||_0x516f2e instanceof Z)&&_0x516f2e['resend'](),_0x516f2e;}[_0x4c1f23(0x227)](){const _0x186aed=_0x4c1f23;throw new Error(_0x186aed(0x1c5));}};ee=le([m(0x5,_0x321449(_0x313fa0)),m(0x6,_0x321449(_0x5d1c03)),m(0x7,_0x321449(D)),m(0x8,_0x265863),m(0x9,_0x2fbed3)],ee);let k=class extends _e{constructor(_0x4747cd,_0x4a6a02,_0x396f86,_0x428fd0,_0x2adc59,_0x16d44d,_0x3b254d,_0x164c09,_0x5092c1,_0x36f7d2,_0x1a3db9,_0x3d1657,_0x456caa,_0xaa0456){const _0x346d77=_0x4c1f23;super(_0x4747cd,_0x4a6a02,_0x396f86,_0x428fd0,_0x3b254d,_0x3d1657,_0x456caa,_0x5092c1,_0x36f7d2),l(this,_0x346d77(0xad),_0x346d77(0x1dc)),(this[_0x346d77(0x295)]=_0x2adc59,this[_0x346d77(0x1c9)]=_0x16d44d,this[_0x346d77(0x162)]=_0x164c09,this[_0x346d77(0x128)]=_0x1a3db9,this[_0x346d77(0x2ce)]=_0xaa0456);}['onMissedChangesetFetched'](_0x4fca33){const _0x5cbe65=_0x4c1f23;try{const _0xdd2ac5=[..._0x4fca33,...this[_0x5cbe65(0x1c9)]],_0x473da9=[this[_0x5cbe65(0x32e)]||this[_0x5cbe65(0x295)]][_0x5cbe65(0x347)](_0x46968a=>!!_0x46968a);let _0x4192b5,_0x8fc273;if(_0x473da9[_0x5cbe65(0x78)]){const _0x5aa5a7=this['_transformService'][_0x5cbe65(0x3a0)](_0xdd2ac5,_0x473da9,!0x1);if(!_0x428767(_0x5aa5a7))throw _0x5aa5a7[_0x5cbe65(0x17a)];_0x4192b5=_0x5aa5a7['c1Prime'],_0x8fc273=_0x5aa5a7['c2Prime'];}else _0x4192b5=_0xdd2ac5,_0x8fc273=[];let _0x3881ea=this['_pendingMutations'];_0x4192b5[_0x5cbe65(0x100)](_0x26baf0=>{const _0x8452f5=_0x5cbe65;let _0x581545;if(_0x3881ea[_0x8452f5(0x78)]){const _0x4a41f6=this['_transformService'][_0x8452f5(0xbf)](_0x26baf0,_0x3881ea);if(!_0x8db330(_0x4a41f6))throw _0x4a41f6[_0x8452f5(0x17a)];_0x581545=_0x4a41f6['c1Prime'],_0x3881ea=_0x4a41f6[_0x8452f5(0x101)];}else _0x581545=_0x26baf0;this[_0x8452f5(0x3aa)](_0x581545);}),this[_0x5cbe65(0x295)]&&this[_0x5cbe65(0x3c1)](),this['_awaitingChangeset']&&_0x8fc273['length']&&(_0x8fc273[0x0][_0x5cbe65(0x1fc)]=this[_0x5cbe65(0x309)]());let _0x3f4245;if(this['_awaitingChangeset']&&_0x3881ea[_0x5cbe65(0x78)]!==0x0)_0x3f4245=this['_injector'][_0x5cbe65(0x171)](X,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],_0x8fc273[0x0],_0x3881ea,this[_0x5cbe65(0x34b)]);else{if(this[_0x5cbe65(0x32e)]&&_0x3881ea['length']===0x0)_0x8fc273[0x0][_0x5cbe65(0x1fc)]=this[_0x5cbe65(0x309)](),_0x3f4245=this['_injector'][_0x5cbe65(0x171)](Z,this['unitID'],this[_0x5cbe65(0x1d3)],_0x8fc273[0x0],this[_0x5cbe65(0x34b)]);else{if(_0x3881ea['length']!==0x0){const _0x210769=this[_0x5cbe65(0x162)][_0x5cbe65(0x171)](K,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],_0x3881ea,this[_0x5cbe65(0x34b)]);_0x210769[_0x5cbe65(0x298)](),_0x3f4245=_0x210769;}else _0x3f4245=this[_0x5cbe65(0x162)]['createInstance'](Se,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],this[_0x5cbe65(0x34b)]);}}return _0x3f4245[_0x5cbe65(0x32a)](),_0x3f4245;}catch(_0x282da0){return this['_logService']['error'](_0x5cbe65(0xc6),_0x5cbe65(0x28b),_0x282da0),this[_0x5cbe65(0x162)][_0x5cbe65(0x171)](Q,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],this[_0x5cbe65(0x32e)],this[_0x5cbe65(0x14c)],this[_0x5cbe65(0x34b)],!0x1);}}[_0x4c1f23(0x227)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4c1f23(0x3ef)](_0x4223b6){const _0x27ef99=_0x4c1f23;return this[_0x27ef99(0x14c)][_0x27ef99(0x27c)](_0x4223b6),this;}[_0x4c1f23(0x10c)](_0x324787){const _0x290fd1=_0x4c1f23;return this[_0x290fd1(0x1c9)]['push'](_0x324787),this;}['onRemoteAck'](_0x3623d9){const _0x351ba7=_0x4c1f23;if(this['_awaitingChangeset'])return this[_0x351ba7(0x295)]=this[_0x351ba7(0x32e)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x4c1f23(0xf4)](_0x1511f7){const _0x158849=_0x4c1f23;return this[_0x158849(0x222)](!!(_0x1511f7!=null&&_0x1511f7[_0x158849(0x3b9)]));}[_0x4c1f23(0x385)](){const _0x2c6b56=_0x4c1f23;return this[_0x2c6b56(0x162)][_0x2c6b56(0x171)](ee,this['unitID'],this[_0x2c6b56(0x1d3)],this[_0x2c6b56(0x32e)],this[_0x2c6b56(0x14c)],this['_handler']);}[_0x4c1f23(0x31f)](){return this;}[_0x4c1f23(0x222)](_0x37f713){const _0x30edab=_0x4c1f23;return this['_injector']['createInstance'](Q,this[_0x30edab(0x1f3)],this['type'],this[_0x30edab(0x32e)],this[_0x30edab(0x14c)],this[_0x30edab(0x34b)],_0x37f713);}};k=le([m(0x7,_0x321449(_0x313fa0)),m(0x8,_0x321449(_0x5d1c03)),m(0x9,_0x321449(D)),m(0xa,_0x50688a),m(0xb,_0x265863),m(0xc,_0x2fbed3),m(0xd,_0x56767e)],k);function Hs(_0x2e4e3b,_0x12ef31,_0x52fb52,_0x2f1ac1,_0x22b2d3,_0x46cf91){const _0x433818=_0x4c1f23;return _0x2f1ac1&&_0x22b2d3['length']?_0x2e4e3b[_0x433818(0x171)](X,_0x12ef31,_0x52fb52,_0x2f1ac1,_0x22b2d3,_0x46cf91):_0x2f1ac1?_0x2e4e3b[_0x433818(0x171)](Z,_0x12ef31,_0x52fb52,_0x2f1ac1,_0x46cf91):_0x22b2d3[_0x433818(0x78)]?_0x2e4e3b[_0x433818(0x171)](K,_0x12ef31,_0x52fb52,_0x22b2d3,_0x46cf91):_0x2e4e3b['createInstance'](Se,_0x12ef31,_0x52fb52,_0x46cf91);}var mr=Object[_0x4c1f23(0x2e9)],gr=Object[_0x4c1f23(0x133)],Vt=(_0x5c516f,_0xecbd3b,_0x2ff63d,_0x1833ea)=>{const _0x58a222=_0x4c1f23;for(var _0x5f3e5b=_0x1833ea>0x1?void 0x0:_0x1833ea?gr(_0xecbd3b,_0x2ff63d):_0xecbd3b,_0xd1c1f9=_0x5c516f[_0x58a222(0x78)]-0x1,_0x53c110;_0xd1c1f9>=0x0;_0xd1c1f9--)(_0x53c110=_0x5c516f[_0xd1c1f9])&&(_0x5f3e5b=(_0x1833ea?_0x53c110(_0xecbd3b,_0x2ff63d,_0x5f3e5b):_0x53c110(_0x5f3e5b))||_0x5f3e5b);return _0x1833ea&&_0x5f3e5b&&mr(_0xecbd3b,_0x2ff63d,_0x5f3e5b),_0x5f3e5b;},p=(_0x4233d6,_0x5265b0)=>(_0x4e575f,_0x16ed68)=>_0x5265b0(_0x4e575f,_0x16ed68,_0x4233d6);let Je=class extends _0x2dacfb{constructor(_0x3b1635,_0x216fa0,_0x52a15d,_0x48a801,_0x14895f,_0x228be4,_0x4a1766,_0x39f8ea,_0x584ae0,_0x3a5378,_0x54eeed,_0x5112ac,_0x4a58d0){const _0x3e2d53=_0x4c1f23;super(),l(this,_0x3e2d53(0x3c3),new _0x2ec58d(null)),l(this,'state$',this['_state$'][_0x3e2d53(0xfc)]()),l(this,'_state'),l(this,_0x3e2d53(0xcb),!0x1),l(this,_0x3e2d53(0x380),this[_0x3e2d53(0xe0)][_0x3e2d53(0x1a7)](_0x16d2df(_0x5a09ab=>_0x5a09ab?_0x5a09ab[_0x3e2d53(0xad)]:w[_0x3e2d53(0x3d4)]),_0xb96cea(0x1))),l(this,_0x3e2d53(0x1f0),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x3e2d53(0x1f3)]=_0x3b1635,this[_0x3e2d53(0x177)]=_0x216fa0,this['_type']=_0x52a15d,this['_injector']=_0x48a801,this[_0x3e2d53(0xd7)]=_0x14895f,this[_0x3e2d53(0xa3)]=_0x228be4,this[_0x3e2d53(0x119)]=_0x4a1766,this[_0x3e2d53(0x396)]=_0x39f8ea,this[_0x3e2d53(0x128)]=_0x584ae0,this['_commandService']=_0x3a5378,this['_messageService']=_0x54eeed,this[_0x3e2d53(0x15c)]=_0x5112ac,this[_0x3e2d53(0x335)]=_0x4a58d0);}get[_0x4c1f23(0x354)](){const _0x198ba1=_0x4c1f23;return this[_0x198ba1(0x195)];}async[_0x4c1f23(0x1ba)](){const _0x2f5f70=_0x4c1f23;if(this[_0x2f5f70(0x354)])throw new Error(_0x2f5f70(0x2f3));await this[_0x2f5f70(0x34a)]();}[_0x4c1f23(0x23c)](){const _0x4ac30a=_0x4c1f23;return this[_0x4ac30a(0xcb)]=!0x0,_0x5738c2(()=>{const _0x50f41b=_0x4ac30a;this['_collaborationPaused']=!0x1,this[_0x50f41b(0x24b)]();});}[_0x4c1f23(0x14d)](_0x880c57){const _0x474d9f=_0x4c1f23;this[_0x474d9f(0x195)]=_0x880c57,this[_0x474d9f(0x3c3)]['next'](_0x880c57);}async['_init'](){const _0x15bdd8=_0x4c1f23;var _0x1fa704;this[_0x15bdd8(0x14d)](await this[_0x15bdd8(0x2a0)]()),this[_0x15bdd8(0x335)]&&((_0x1fa704=this[_0x15bdd8(0x335)])==null||_0x1fa704['editingUnit'](this['unitID']),this['disposeWithMe'](this[_0x15bdd8(0x335)]['getUnitStatus$'](this[_0x15bdd8(0x1f3)])[_0x15bdd8(0x280)](_0x282144=>{const _0x258305=_0x15bdd8;this[_0x258305(0x128)][_0x258305(0x20b)]('[CollaborationEntity]',_0x258305(0xf9),_0x282144),_0x282144===js[_0x258305(0xf3)]?(this[_0x258305(0x28f)][_0x258305(0x160)]({'content':this[_0x258305(0x119)]['t'](_0x258305(0x143)),'type':_0x57eb36['Warning']}),this[_0x258305(0x15c)]['updatePermissionPoint'](new _0x42c12f(this[_0x258305(0x1f3)])['id'],!0x1)):this[_0x258305(0x15c)][_0x258305(0xb6)](new _0x42c12f(this[_0x258305(0x1f3)])['id'],!0x0);})));let _0x4193f9=!0x1;return this[_0x15bdd8(0x248)](this['session'][_0x15bdd8(0x294)][_0x15bdd8(0x280)](_0x23b041=>{const _0x4cc8ab=_0x15bdd8;_0x23b041===G[_0x4cc8ab(0x2e1)]?this[_0x4cc8ab(0x17b)](_0x4193f9):_0x23b041===G[_0x4cc8ab(0x3d4)]&&(_0x4193f9=!0x0,this[_0x4cc8ab(0xe8)]());})),this[_0x15bdd8(0x248)](this[_0x15bdd8(0x177)]['event$']['subscribe'](_0x22af5d=>{const _0x511938=_0x15bdd8;try{switch(_0x22af5d[_0x511938(0x186)]){case _0x273d8c['NEW_CHANGESETS']:{this[_0x511938(0x1ac)](_0x569e1c(_0x22af5d[_0x511938(0x339)]));break;}case _0x273d8c[_0x511938(0x368)]:{this[_0x511938(0x155)](_0x22af5d[_0x511938(0x339)]);break;}case _0x273d8c[_0x511938(0x389)]:{this['_onRemoteRejected']();break;}case _0x273d8c['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x511938(0x1ee)](_0x22af5d[_0x511938(0x339)][_0x511938(0x219)][_0x511938(0x17d)](_0x56e70e=>_0x569e1c(_0x56e70e)));break;}case _0x273d8c[_0x511938(0x2bf)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x1a83c4){throw console['error'](_0x511938(0x3e4),_0x1a83c4),_0x1a83c4;}})),this[_0x15bdd8(0x195)];}[_0x4c1f23(0x390)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x533c24=_0x4c1f23;if(this['_transitionLocked'])throw new Error(_0x533c24(0x306));this[_0x533c24(0x1f0)]=!0x0;}[_0x4c1f23(0x2dd)](_0x3853df){const _0x5db510=_0x4c1f23;this[_0x5db510(0x375)](),this['_updateState'](this[_0x5db510(0x195)][_0x5db510(0x3ef)](_0x3853df)),this[_0x5db510(0x390)]();}[_0x4c1f23(0x1ac)](_0x36005a){const _0x12d686=_0x4c1f23;if(!(_0x36005a['revision']<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x12d686(0x1f3)]))){if(this[_0x12d686(0xcb)]){this['_remoteChangesetQueue'][_0x12d686(0x27c)](_0x36005a);return;}this[_0x12d686(0x26b)](_0x36005a);}}[_0x4c1f23(0x24b)](){const _0x52d52f=_0x4c1f23;this[_0x52d52f(0x1ff)]['forEach'](_0x69f4bb=>this[_0x52d52f(0x26b)](_0x69f4bb)),this[_0x52d52f(0x1ff)]=[];}['_applyRemoteChangeset'](_0xf71938){const _0x287762=_0x4c1f23,_0x762128=this['_compressMutationService'][_0x287762(0x35d)][_0x287762(0x35e)](this[_0x287762(0xa3)][_0x287762(0x35d)][_0x287762(0x1c0)]()['COMPRESS_MUTATION_APPLY'])(_0xf71938[_0x287762(0x3d7)],null)||_0xf71938[_0x287762(0x3d7)],_0x77adcc={..._0xf71938,'mutations':_0x762128};this[_0x287762(0x375)](),this[_0x287762(0x14d)](this[_0x287762(0x195)][_0x287762(0x10c)](_0x77adcc)),this[_0x287762(0x390)]();}['_onRemoteACK'](_0x4804c5){const _0x1cfa21=_0x4c1f23;this[_0x1cfa21(0x375)](),this[_0x1cfa21(0x14d)](this[_0x1cfa21(0x195)][_0x1cfa21(0x357)](_0x4804c5)),this['_unlockTransition']();}[_0x4c1f23(0x1d5)](_0x58532e){const _0x54a6f7=_0x4c1f23;this[_0x54a6f7(0x375)](),this['_updateState'](this[_0x54a6f7(0x195)][_0x54a6f7(0xf4)](_0x58532e)),this['_unlockTransition']();}['_onFetchMissResult'](_0x3401e1){const _0x407412=_0x4c1f23;if(!(this[_0x407412(0x195)]instanceof k))throw new TypeError(_0x407412(0x8d));const _0x2aff63=_0x3401e1[_0x407412(0x17d)](_0x5447e7=>{const _0xd9c56e=_0x407412,_0x4287e9=this[_0xd9c56e(0xa3)]['interceptor'][_0xd9c56e(0x35e)](this[_0xd9c56e(0xa3)][_0xd9c56e(0x35d)]['getInterceptPoints']()[_0xd9c56e(0x1a4)])(_0x5447e7[_0xd9c56e(0x3d7)],null)||_0x5447e7[_0xd9c56e(0x3d7)];return{..._0x5447e7,'mutations':_0x4287e9};});this[_0x407412(0x375)](),this[_0x407412(0x14d)](this[_0x407412(0x195)][_0x407412(0xfb)](_0x2aff63)),this[_0x407412(0x390)]();}[_0x4c1f23(0xe8)](){const _0x4e246e=_0x4c1f23;this[_0x4e246e(0x375)](),this[_0x4e246e(0x14d)](this[_0x4e246e(0x195)][_0x4e246e(0x385)]()),this[_0x4e246e(0x390)]();}[_0x4c1f23(0x17b)](_0xd51a33=!0x1){const _0x2e125c=_0x4c1f23;this['_lockTransition'](),this[_0x2e125c(0x14d)](this[_0x2e125c(0x195)][_0x2e125c(0x31f)]()),this[_0x2e125c(0x390)]();const _0x3cd207=this['_state'];_0xd51a33&&_0x3cd207 instanceof Se&&(this['_lockTransition'](),this[_0x2e125c(0x14d)](_0x3cd207[_0x2e125c(0xff)]()),this[_0x2e125c(0x390)]());}async[_0x4c1f23(0x2a0)](){return new Promise(_0x1d47c5=>{const _0x19c92c=_0x4c7d;this['session'][_0x19c92c(0x294)][_0x19c92c(0x1a7)](_0x448807(0x1))[_0x19c92c(0x280)](async _0x470a40=>{const _0x365b50=_0x19c92c;_0x1d47c5(await this['_createInitialStateImpl'](_0x470a40===G[_0x365b50(0x2e1)]));});});}[_0x4c1f23(0xf7)](){const _0x3fbadf=this['unitID'];return{'onStateChange':(_0x1ed29c,_0xf64be2)=>{const _0x2fc7c2=_0x4c7d;if(_0x1ed29c!==this[_0x2fc7c2(0x195)])throw new Error(_0x2fc7c2(0xc2)+_0x1ed29c[_0x2fc7c2(0xad)]+'\x0aAfter:\x20'+_0xf64be2['status']+_0x2fc7c2(0x34d)+this[_0x2fc7c2(0x195)]['status']);this[_0x2fc7c2(0x14d)](_0xf64be2);},'onSendChangeset':_0x312f97=>{const _0xe1e748=_0x4c7d,_0x59718c={'eventID':_0x273d8c[_0xe1e748(0x8a)],'data':{'unitID':_0x312f97[_0xe1e748(0x1f3)],'unitType':this[_0xe1e748(0x16a)],'changeset':_0x312f97,'memberID':this[_0xe1e748(0x177)][_0xe1e748(0x370)]()}};this[_0xe1e748(0x177)]['send'](_0x59718c,this['unitID']);},'onMissingChangesets':({from:_0xb13ac7,to:_0x16e8d9})=>{const _0x4fe3c3=_0x4c7d;this['_logService'][_0x4fe3c3(0x20b)]('[CollaborationEntity]',_0x4fe3c3(0x2a7)+_0xb13ac7+_0x4fe3c3(0xda)+_0x16e8d9);const _0x521960={'eventID':_0x273d8c['FETCH_MISSING'],'data':{'unitID':_0x3fbadf,'unitType':this['_type'],'from':_0xb13ac7,'to':_0x16e8d9}};this[_0x4fe3c3(0x177)][_0x4fe3c3(0x218)](_0x521960,this[_0x4fe3c3(0x1f3)]);}};}async[_0x4c1f23(0x8e)](_0x276fef){const _0x3a4707=_0x4c1f23;var _0x4c5143,_0x198010;const _0x352bd5=await this[_0x3a4707(0xd7)][_0x3a4707(0x107)](this[_0x3a4707(0x1f3)]),_0x138ec3=(_0x4c5143=_0x352bd5==null?void 0x0:_0x352bd5[_0x3a4707(0x3d7)])!=null?_0x4c5143:[],_0x1e198c=(_0x198010=_0x352bd5==null?void 0x0:_0x352bd5[_0x3a4707(0xfe)])!=null?_0x198010:null,_0x284ecc=this[_0x3a4707(0x1f3)];try{this[_0x3a4707(0x13c)](_0x1e198c,_0x138ec3);}catch(_0x2ac81f){this[_0x3a4707(0x128)][_0x3a4707(0x17a)](_0x2ac81f);}const _0x3bebbe=this[_0x3a4707(0xf7)]();if(_0x276fef){const _0x4a27b4=Hs(this['_injector'],_0x284ecc,this[_0x3a4707(0x16a)],_0x1e198c,_0x138ec3,_0x3bebbe);return _0x4a27b4 instanceof K?_0x4a27b4['_schedule']():(_0x4a27b4 instanceof X||_0x4a27b4 instanceof Z)&&_0x4a27b4['resend'](),_0x4a27b4;}return this['_injector'][_0x3a4707(0x171)](ee,_0x284ecc,this[_0x3a4707(0x16a)],_0x1e198c,_0x138ec3,_0x3bebbe);}['_replayCachedMutations'](_0x3e489d,_0x27ab26){const _0x215f6a=_0x4c1f23;var _0x336ab7,_0x17dc6c;const _0xa46bfb=this[_0x215f6a(0xa3)]['interceptor'][_0x215f6a(0x35e)](this[_0x215f6a(0xa3)][_0x215f6a(0x35d)][_0x215f6a(0x1c0)]()['COMPRESS_MUTATION_APPLY']);(_0x336ab7=_0xa46bfb((_0x3e489d==null?void 0x0:_0x3e489d[_0x215f6a(0x3d7)])||[],null))==null||_0x336ab7[_0x215f6a(0x100)](_0x724176=>this[_0x215f6a(0x1ef)][_0x215f6a(0x153)](_0x724176['id'],_0x724176[_0x215f6a(0x364)])),(_0x17dc6c=_0xa46bfb(_0x27ab26||[],null))==null||_0x17dc6c[_0x215f6a(0x100)](_0x437482=>this[_0x215f6a(0x1ef)][_0x215f6a(0x153)](_0x437482['id'],_0x437482[_0x215f6a(0x364)]));}};Je=Vt([p(0x3,_0x321449(_0x313fa0)),p(0x4,_0x321449(D)),p(0x5,_0x321449(_0x2615ec)),p(0x6,_0x321449(_0x2e153b)),p(0x7,_0x321449(_0x5d1c03)),p(0x8,_0x50688a),p(0x9,_0x265863),p(0xa,_0x5d3b7c),p(0xb,_0x52f39f),p(0xc,_0x9bfc3c(tt))],Je);let bt=class extends Je{constructor(_0x523246,_0x61fb11,_0x1b1c56,_0xed7f1f,_0x33360b,_0x477193,_0x9de878,_0x5b67be,_0x1b2a9b,_0x423f72,_0x4c5f53,_0x496f4e,_0xc8a3ba,_0xdcfc8e,_0x47ea93,_0x142ab8,_0x499502){const _0x600cca=_0x4c1f23;super(_0x523246,_0x1b1c56,_0x61fb11,_0xed7f1f,_0x33360b,_0x477193,_0x9de878,_0x5b67be,_0xc8a3ba,_0xdcfc8e,_0x47ea93,_0x142ab8,_0x499502),this['unitID']=_0x523246,this[_0x600cca(0x1d3)]=_0x61fb11,this['_docStateChangeManagerService']=_0x1b2a9b,this[_0x600cca(0xfa)]=_0x423f72,this[_0x600cca(0x2ff)]=_0x4c5f53,this[_0x600cca(0x3b7)]=_0x496f4e;}[_0x4c1f23(0xf7)](){const _0x4d1aea=_0x4c1f23,_0x2828e3=super['_createHandler']();return _0x2828e3[_0x4d1aea(0x200)]=_0x26abe4=>this[_0x4d1aea(0xfa)][_0x4d1aea(0x11a)](_0x26abe4),_0x2828e3['onTransformSelections']=_0x23d784=>this[_0x4d1aea(0x2ff)][_0x4d1aea(0x34c)](_0x23d784),_0x2828e3[_0x4d1aea(0x1e7)]=_0x1b8fd1=>this[_0x4d1aea(0x3b7)][_0x4d1aea(0x1f8)](_0x1b8fd1),_0x2828e3[_0x4d1aea(0x2e5)]=_0x3b7a4f=>this['_docTransformIMECacheService'][_0x4d1aea(0x20a)](_0x3b7a4f),_0x2828e3;}async['_init'](){const _0x573210=_0x4c1f23,_0x190760=await super[_0x573210(0x34a)]();return this[_0x573210(0x248)](this[_0x573210(0x1ef)][_0x573210(0x168)]((_0x15b9d3,_0x427fda)=>{const _0xfaccb8=_0x573210;if(_0x15b9d3[_0xfaccb8(0x1d3)]!==_0xcd477b[_0xfaccb8(0xdf)]||_0x427fda!=null&&_0x427fda[_0xfaccb8(0x1ce)]||_0x427fda!=null&&_0x427fda[_0xfaccb8(0x30b)])return;const _0x56d019=_0x15b9d3[_0xfaccb8(0x364)];if((_0x56d019==null?void 0x0:_0x56d019['unitId'])!==this[_0xfaccb8(0x1f3)])return;let _0x42fcf1=_0x15b9d3;if(_0x42fcf1['id']===_0x1b2745['id']){const _0x2668c1=_0x42fcf1[_0xfaccb8(0x364)];_0x42fcf1={'id':_0x1b2745['id'],'type':_0xcd477b[_0xfaccb8(0xdf)],'params':{'unitId':_0x2668c1[_0xfaccb8(0xe5)],'actions':_0x2668c1['actions'],'textRanges':null}};}const _0x52487b=this[_0xfaccb8(0xa3)][_0xfaccb8(0x35d)][_0xfaccb8(0x35e)](this[_0xfaccb8(0xa3)][_0xfaccb8(0x35d)]['getInterceptPoints']()[_0xfaccb8(0x192)])([_0x42fcf1],null)||[_0x42fcf1];this[_0xfaccb8(0x2dd)](_0x52487b[0x0]);})),_0x190760;}};bt=Vt([p(0x3,_0x321449(_0x313fa0)),p(0x4,_0x321449(D)),p(0x5,_0x321449(_0x2615ec)),p(0x6,_0x321449(_0x2e153b)),p(0x7,_0x321449(_0x5d1c03)),p(0x8,_0x321449(_0x3f8e0c)),p(0x9,_0x321449(Ye)),p(0xa,_0x321449(Xe)),p(0xb,_0x321449(Bt)),p(0xc,_0x50688a),p(0xd,_0x265863),p(0xe,_0x5d3b7c),p(0xf,_0x52f39f),p(0x10,_0x9bfc3c(tt))],bt);let Tt=class extends Je{constructor(_0x44549a,_0x308441,_0x15a7e8,_0x448404,_0x591b5d,_0x46d56c,_0x4d431d,_0x4e8d6c,_0xb9057c,_0xcd5185,_0x4e7fd4,_0x2b4232,_0x46c618,_0x317a01){const _0x36f5ce=_0x4c1f23;super(_0x44549a,_0x15a7e8,_0x308441,_0x448404,_0x591b5d,_0x46d56c,_0x4d431d,_0x4e8d6c,_0xcd5185,_0x4e7fd4,_0x2b4232,_0x46c618,_0x317a01),this['unitID']=_0x44549a,this[_0x36f5ce(0x1d3)]=_0x308441,this['_sheetTransformSelectionsService']=_0xb9057c;}[_0x4c1f23(0xf7)](){const _0x17b61f=_0x4c1f23,_0x547e41=super[_0x17b61f(0xf7)]();return _0x547e41[_0x17b61f(0x1c1)]=_0x100f11=>this[_0x17b61f(0xd2)]['transformSelections'](_0x100f11),_0x547e41;}async[_0x4c1f23(0x34a)](){const _0x7be811=_0x4c1f23,_0x16fab2=await super[_0x7be811(0x34a)]();return this[_0x7be811(0x248)](this[_0x7be811(0x1ef)][_0x7be811(0x168)]((_0x3b9a52,_0x46d1e8)=>{const _0x557ad9=_0x7be811;if(_0x3b9a52[_0x557ad9(0x1d3)]!==_0xcd477b['MUTATION']||_0x46d1e8!=null&&_0x46d1e8['fromCollab']||_0x46d1e8!=null&&_0x46d1e8[_0x557ad9(0x30b)])return;const _0x3367b6=_0x3b9a52[_0x557ad9(0x364)];if((_0x3367b6==null?void 0x0:_0x3367b6['unitId'])!==this[_0x557ad9(0x1f3)])return;const _0x12a4d2=_0x3b9a52,_0x258d12=this[_0x557ad9(0xa3)][_0x557ad9(0x35d)][_0x557ad9(0x35e)](this[_0x557ad9(0xa3)][_0x557ad9(0x35d)]['getInterceptPoints']()[_0x557ad9(0x192)])([_0x12a4d2],null)||[_0x12a4d2];this[_0x557ad9(0x2dd)](_0x258d12[0x0]);})),_0x16fab2;}};Tt=Vt([p(0x3,_0x321449(_0x313fa0)),p(0x4,_0x321449(D)),p(0x5,_0x321449(_0x2615ec)),p(0x6,_0x321449(_0x2e153b)),p(0x7,_0x321449(_0x5d1c03)),p(0x8,_0x321449(Ke)),p(0x9,_0x50688a),p(0xa,_0x265863),p(0xb,_0x5d3b7c),p(0xc,_0x52f39f),p(0xd,_0x9bfc3c(tt))],Tt);var Sr=Object[_0x4c1f23(0x2e9)],pr=Object[_0x4c1f23(0x133)],vr=(_0x5ea452,_0x5b8582,_0x2a8813,_0x32449f)=>{for(var _0x4fdddd=_0x32449f>0x1?void 0x0:_0x32449f?pr(_0x5b8582,_0x2a8813):_0x5b8582,_0x24107b=_0x5ea452['length']-0x1,_0x2dd6d3;_0x24107b>=0x0;_0x24107b--)(_0x2dd6d3=_0x5ea452[_0x24107b])&&(_0x4fdddd=(_0x32449f?_0x2dd6d3(_0x5b8582,_0x2a8813,_0x4fdddd):_0x2dd6d3(_0x4fdddd))||_0x4fdddd);return _0x32449f&&_0x4fdddd&&Sr(_0x5b8582,_0x2a8813,_0x4fdddd),_0x4fdddd;},lt=(_0x586ca9,_0x237b3c)=>(_0x45ecdb,_0x5393d1)=>_0x237b3c(_0x45ecdb,_0x5393d1,_0x586ca9);let Ae=class extends _0x2dacfb{constructor(_0x1294cf,_0x254ad6,_0x8a4385){const _0x445a1a=_0x4c1f23;super(),l(this,_0x445a1a(0xac),new Map()),l(this,_0x445a1a(0x29f),new _0xacaad6()),(this[_0x445a1a(0x162)]=_0x1294cf,this[_0x445a1a(0x1e1)]=_0x254ad6,this[_0x445a1a(0x310)]=_0x8a4385,this[_0x445a1a(0x34a)]());}[_0x4c1f23(0x1e4)](){const _0x475f5f=_0x4c1f23;super[_0x475f5f(0x1e4)](),this[_0x475f5f(0xac)]['forEach'](_0x152876=>_0x152876[_0x475f5f(0x1e4)]()),this[_0x475f5f(0xac)][_0x475f5f(0xa8)]();}['getCollabEntity'](_0x5171e7){const _0x3432bc=_0x4c1f23;var _0x5386b9;return(_0x5386b9=this[_0x3432bc(0xac)]['get'](_0x5171e7))!=null?_0x5386b9:null;}[_0x4c1f23(0x2b7)](_0xe0951a){const _0x1f353f=_0x4c1f23,_0x12f7d3=this[_0x1f353f(0x254)](_0xe0951a);return _0x12f7d3?_0x570d55(_0x12f7d3):this[_0x1f353f(0x29f)]['pipe'](_0x1f1135(_0x45b120=>_0x45b120[_0x1f353f(0x1f3)]===_0xe0951a));}['_init'](){const _0x49e38b=_0x4c1f23;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4c91c9['UNIVER_SHEET'])[_0x49e38b(0x1a7)](_0x289d57(this[_0x49e38b(0x265)]),_0x160a7a(0x10))[_0x49e38b(0x280)](async _0x3c4be3=>{const _0x8fa491=_0x49e38b,_0x4925f9=_0x3c4be3['getUnitId'](),_0xdff029=await this[_0x8fa491(0x1a1)](_0x4925f9,H[_0x8fa491(0x10d)]);this[_0x8fa491(0xac)][_0x8fa491(0x329)](_0x4925f9,_0xdff029);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4c91c9[_0x49e38b(0x11d)])[_0x49e38b(0x1a7)](_0x289d57(this[_0x49e38b(0x265)]),_0x160a7a(0x10))[_0x49e38b(0x1a7)](_0x1f1135(_0xb7414=>!_0xb7414[_0x49e38b(0x34e)]()['startsWith']('__')))[_0x49e38b(0x280)](async _0x499e8b=>{const _0x1ad7d9=_0x49e38b,_0x268e84=_0x499e8b['getUnitId'](),_0x5f3d4a=await this['_startCollaboration'](_0x268e84,H['UNIVER_DOC']);this[_0x1ad7d9(0xac)][_0x1ad7d9(0x329)](_0x268e84,_0x5f3d4a);}),_0x5de0ce(this['_univerInstanceService'][_0x49e38b(0x2ee)](_0x4c91c9[_0x49e38b(0x10d)]),this['_univerInstanceService'][_0x49e38b(0x2ee)](_0x4c91c9[_0x49e38b(0x11d)]))[_0x49e38b(0x1a7)](_0x289d57(this[_0x49e38b(0x265)]))[_0x49e38b(0x280)](_0x11b0f7=>{const _0x1ec34f=_0x49e38b,_0x1ea6f2=_0x11b0f7[_0x1ec34f(0x34e)](),_0x891344=this[_0x1ec34f(0xac)]['get'](_0x1ea6f2);_0x891344&&(_0x891344[_0x1ec34f(0x1e4)](),this[_0x1ec34f(0xac)][_0x1ec34f(0xd0)](_0x1ea6f2));});}async['_startCollaboration'](_0x4b0da8,_0x43aab9){const _0x2a5ceb=_0x4c1f23,_0x4857ea=await this['_collabSessionService']['requireSession'](_0x4b0da8),_0x5ce201=this[_0x2a5ceb(0x162)]['createInstance'](this['_getCtorByUniverType'](_0x43aab9),_0x4b0da8,_0x43aab9,_0x4857ea);return await _0x5ce201['init'](),this[_0x2a5ceb(0x29f)][_0x2a5ceb(0x23d)](_0x5ce201),_0x5ce201;}[_0x4c1f23(0x1f5)](_0x16d67f){const _0x47fa5d=_0x4c1f23;switch(_0x16d67f){case H[_0x47fa5d(0x11d)]:return bt;case H['UNIVER_SHEET']:return Tt;default:throw new Error(_0x47fa5d(0x3cb)+_0x16d67f);}}};Ae=vr([lt(0x0,_0x321449(_0x313fa0)),lt(0x1,_0x321449(ce)),lt(0x2,_0x375068)],Ae);const _s=[_0x4c1f23(0x36d),_0x4c1f23(0x3ac),_0x4c1f23(0x17e),_0x4c1f23(0x1b0),_0x4c1f23(0x3f1),_0x4c1f23(0x94)];class Ft extends _0x22db72{constructor(){const _0x3ab35c=_0x4c1f23;super(...arguments),l(this,_0x3ab35c(0x16f),new Map()),l(this,'_colorIndex',0x0);}[_0x4c1f23(0x22b)](_0x3d06e9){const _0x49e0d=_0x4c1f23;if(this[_0x49e0d(0x16f)][_0x49e0d(0x20e)](_0x3d06e9))return this[_0x49e0d(0x16f)][_0x49e0d(0x348)](_0x3d06e9);const _0x227747=_s[this[_0x49e0d(0x1b9)]];return this[_0x49e0d(0x1b9)]=(this['_colorIndex']+0x1)%_s[_0x49e0d(0x78)],this[_0x49e0d(0x16f)]['set'](_0x3d06e9,_0x227747),_0x227747;}}var Ir=Object[_0x4c1f23(0x2e9)],Er=Object[_0x4c1f23(0x133)],Cr=(_0x1a0a48,_0x415acd,_0x8c44db,_0x573633)=>{for(var _0x46f60d=_0x573633>0x1?void 0x0:_0x573633?Er(_0x415acd,_0x8c44db):_0x415acd,_0x442d83=_0x1a0a48['length']-0x1,_0x46d5fb;_0x442d83>=0x0;_0x442d83--)(_0x46d5fb=_0x1a0a48[_0x442d83])&&(_0x46f60d=(_0x573633?_0x46d5fb(_0x415acd,_0x8c44db,_0x46f60d):_0x46d5fb(_0x46f60d))||_0x46f60d);return _0x573633&&_0x46f60d&&Ir(_0x415acd,_0x8c44db,_0x46f60d),_0x46f60d;},se=(_0x18d7bc,_0x45beb5)=>(_0x9ba8e6,_0x323329)=>_0x45beb5(_0x9ba8e6,_0x323329,_0x18d7bc);const br=0x12c,Tr=0x64;let Rt=class extends _0x2dacfb{constructor(_0x2e55bd,_0x1acc8b,_0x57b672,_0x92a7af,_0x189907,_0x24908d,_0x14294e,_0xdcede9,_0x368be1){const _0x360b10=_0x4c1f23;super(),l(this,'_online',!0x1),l(this,_0x360b10(0x34a),!0x1),l(this,_0x360b10(0x1cf),new _0x2ec58d(new Map())),l(this,_0x360b10(0x37c),this['_cursorInfo$'][_0x360b10(0xfc)]()),l(this,_0x360b10(0x258),new _0x2ec58d([])),l(this,_0x360b10(0x115),this[_0x360b10(0x258)][_0x360b10(0x1a7)](_0x3504d2(br))),l(this,'_updateLocalCursor',_0x1b3960(_0x5e8466=>{const _0x205559=_0x360b10,_0x40af4c={'eventID':_0x273d8c[_0x205559(0xf2)],'data':{'unitID':this[_0x205559(0x1f3)],'memberID':this['_session'][_0x205559(0x370)](),'selection':xs(_0x5e8466)}};this[_0x205559(0x2c0)]['send'](_0x40af4c,this[_0x205559(0x1f3)]);},Tr)),(this[_0x360b10(0x1f3)]=_0x2e55bd,this[_0x360b10(0x2c0)]=_0x1acc8b,this[_0x360b10(0x162)]=_0x57b672,this[_0x360b10(0x271)]=_0x92a7af,this[_0x360b10(0x2ed)]=_0x189907,this[_0x360b10(0x3c2)]=_0x24908d,this[_0x360b10(0x2ce)]=_0x14294e,this[_0x360b10(0x310)]=_0xdcede9,this[_0x360b10(0x1ef)]=_0x368be1);}get[_0x4c1f23(0x2b8)](){const _0x1fa31a=_0x4c1f23;return this['_cursorInfo$'][_0x1fa31a(0x25c)]();}get[_0x4c1f23(0x303)](){const _0x3027a2=_0x4c1f23;return this[_0x3027a2(0x258)][_0x3027a2(0x25c)]();}['dispose'](){const _0x3b940a=_0x4c1f23;super[_0x3b940a(0x1e4)](),this['_cursorInfo$'][_0x3b940a(0x23d)](new Map()),this[_0x3b940a(0x1cf)]['complete'](),this[_0x3b940a(0x258)][_0x3b940a(0x23d)]([]),this[_0x3b940a(0x258)]['complete']();}[_0x4c1f23(0x1ba)](){const _0x2defc0=_0x4c1f23;this['_init']||(this[_0x2defc0(0x34a)]=!0x0,this['_session']['sessionStatus$'][_0x2defc0(0x1a7)](_0x289d57(this['dispose$']))[_0x2defc0(0x280)](_0x42e5e0=>{const _0x1e2a76=_0x2defc0;_0x42e5e0===G[_0x1e2a76(0x2e1)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x2defc0(0x2c0)]['event$']['pipe'](_0x289d57(this['dispose$']))[_0x2defc0(0x280)](_0x2f2882=>{const _0x515d0d=_0x2defc0,_0x4352b8=_0x2f2882['eventID'];_0x4352b8===_0x273d8c['UPDATE_CURSOR']&&this[_0x515d0d(0x106)](_0x2f2882),_0x4352b8===_0x273d8c[_0x515d0d(0x15a)]&&this[_0x515d0d(0x2d3)](_0x2f2882);}),this[_0x2defc0(0x248)](this['_commandService'][_0x2defc0(0x168)](_0x374d66=>{const _0xae98eb=_0x2defc0,_0x12cb14=_0x374d66[_0xae98eb(0x364)];_0x12cb14!=null&&this[_0xae98eb(0x25b)]&&_0x374d66['id']===_0x254038['id']&&_0x12cb14['unitId']===this[_0xae98eb(0x1f3)]&&_0x12cb14[_0xae98eb(0x32c)]===!0x1&&this[_0xae98eb(0x252)](_0x12cb14[_0xae98eb(0x138)]);})),this['_syncEditingCollabCursorService'][_0x2defc0(0x2f5)][_0x2defc0(0x1a7)](_0x289d57(this[_0x2defc0(0x265)]))[_0x2defc0(0x280)](_0x461033=>{const _0x27939b=_0x2defc0;if((_0x461033==null?void 0x0:_0x461033[_0x27939b(0x1f3)])!==this[_0x27939b(0x1f3)])return;const _0x60fdbe={'eventID':_0x273d8c['UPDATE_CURSOR'],'data':_0x461033};this[_0x27939b(0x106)](_0x60fdbe);}),this[_0x2defc0(0x248)](this[_0x2defc0(0x1ef)][_0x2defc0(0x168)](_0x7e57ce=>{const _0x2e1167=_0x2defc0;if(_0x7e57ce[_0x2e1167(0x364)]==null)return;const _0x2904c7=_0x7e57ce[_0x2e1167(0x364)];if(_0x7e57ce['id']!==_0x1b2745['id']||_0x2904c7[_0x2e1167(0xe5)]!==this[_0x2e1167(0x1f3)])return;const _0x551c8f={'id':'doc.mutation.rich-text-editing','params':_0x2904c7},_0x288a09=this[_0x2e1167(0x2b8)];for(const [_0x4056f0,_0x6e4384]of _0x288a09){const _0x5d3eed={'id':_0x2e1167(0x108),'params':{'unitId':this[_0x2e1167(0x1f3)],'actions':null,'textRanges':_0x6e4384[_0x2e1167(0x138)]}},_0x41aff6=this['_transformService'][_0x2e1167(0x3f0)](_0x551c8f,_0x5d3eed,!0x1);if(_0x3737c9(_0x41aff6))throw _0x41aff6[_0x2e1167(0x17a)];_0x288a09[_0x2e1167(0x329)](_0x4056f0,{..._0x6e4384,'ranges':_0x41aff6['m2Prime'][_0x2e1167(0x364)][_0x2e1167(0x125)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x288a09);});})));}[_0x4c1f23(0x106)](_0x50a203){const _0xe1d503=_0x4c1f23;var _0x122643,_0xb44630;const {memberID:_0x4f4e20,selection:_0x914011}=_0x50a203[_0xe1d503(0x339)],_0x1d8229=or(_0x914011),_0x1c2a93=(_0xb44630=(_0x122643=this[_0xe1d503(0x2ed)][_0xe1d503(0x39f)](this[_0xe1d503(0x1f3)],_0x4f4e20))==null?void 0x0:_0x122643[_0xe1d503(0x124)])!=null?_0xb44630:_0xe1d503(0x33a),_0x24ab8d={'color':this[_0xe1d503(0x271)][_0xe1d503(0x22b)](_0x4f4e20),'name':_0x1c2a93,'ranges':_0x1d8229},_0x7e3b=this[_0xe1d503(0x2b8)];_0x7e3b['set'](_0x4f4e20,_0x24ab8d),this[_0xe1d503(0x1cf)][_0xe1d503(0x23d)](_0x7e3b);}['_onCursorDelete'](_0x13e57e){const _0x217262=_0x4c1f23,{memberID:_0x2757a0}=_0x13e57e[_0x217262(0x339)],_0x1a7834=this[_0x217262(0x2b8)];_0x1a7834[_0x217262(0xd0)](_0x2757a0),this['_cursorInfo$'][_0x217262(0x23d)](_0x1a7834);}[_0x4c1f23(0x17b)](){const _0x587173=_0x4c1f23;var _0x269c29;if(this[_0x587173(0x25b)]=!0x0,((_0x269c29=this[_0x587173(0x310)][_0x587173(0x204)]())==null?void 0x0:_0x269c29['getUnitId']())!==this['unitID'])return;const _0x1071c6=this[_0x587173(0x162)][_0x587173(0x348)](_0x322779)[_0x587173(0x2bd)]();Array[_0x587173(0x35b)](_0x1071c6)&&_0x1071c6[_0x587173(0x78)]>0x0&&this[_0x587173(0x252)](_0x1071c6);}['_toggleOffline'](){this['_online']=!0x1;}};Rt=Cr([se(0x2,_0x321449(_0x313fa0)),se(0x3,_0x321449(Ft)),se(0x4,_0x321449(ae)),se(0x5,_0x321449(Bt)),se(0x6,_0x56767e),se(0x7,_0x375068),se(0x8,_0x265863)],Rt);var Rr=Object[_0x4c1f23(0x2e9)],Or=Object['getOwnPropertyDescriptor'],Dr=(_0xc7f8ab,_0x5a2923,_0x4f9df9,_0x4a60cd)=>{for(var _0x240c92=_0x4a60cd>0x1?void 0x0:_0x4a60cd?Or(_0x5a2923,_0x4f9df9):_0x5a2923,_0x4737ad=_0xc7f8ab['length']-0x1,_0x3f1f51;_0x4737ad>=0x0;_0x4737ad--)(_0x3f1f51=_0xc7f8ab[_0x4737ad])&&(_0x240c92=(_0x4a60cd?_0x3f1f51(_0x5a2923,_0x4f9df9,_0x240c92):_0x3f1f51(_0x240c92))||_0x240c92);return _0x4a60cd&&_0x240c92&&Rr(_0x5a2923,_0x4f9df9,_0x240c92),_0x240c92;},fe=(_0x4457e7,_0x5cd770)=>(_0x4587f4,_0x36459e)=>_0x5cd770(_0x4587f4,_0x36459e,_0x4457e7);const wr=0x12c,Pr=0x64,yr=()=>{let _0x2c9881=[],_0x2a843e=!0x1;return _0x4a4bfb=>{const _0x4f9cce=_0x4c7d;_0x2c9881[_0x4f9cce(0x27c)](_0x4a4bfb),_0x2a843e||(_0x2a843e=!0x0,setTimeout(()=>{const _0x12918e=_0x4f9cce;_0x2c9881[_0x12918e(0x100)](_0x308dd1=>_0x308dd1()),_0x2c9881=[],_0x2a843e=!0x1;}));};};let Ot=class extends _0x2dacfb{constructor(_0xc79435,_0x156143,_0xe57189,_0x51d1f8,_0x1d4141,_0x433352,_0x4fabe3,_0x5735c7){const _0x29c6bb=_0x4c1f23;super(),l(this,_0x29c6bb(0x25b),!0x1),l(this,'_init',!0x1),l(this,_0x29c6bb(0x1cf),new _0x2ec58d(new Map())),l(this,_0x29c6bb(0x37c),this['_cursorInfo$'][_0x29c6bb(0xfc)]()),l(this,_0x29c6bb(0x258),new _0x2ec58d([])),l(this,_0x29c6bb(0x115),this['_roomMembers$'][_0x29c6bb(0x1a7)](_0x3504d2(wr))),l(this,_0x29c6bb(0x252),_0x1b3960((_0x162e49,_0x2ca8fe)=>{const _0x17fd8a=_0x29c6bb,_0x40a4be={'eventID':_0x273d8c[_0x17fd8a(0xf2)],'data':{'unitID':this[_0x17fd8a(0x1f3)],'memberID':this['_session'][_0x17fd8a(0x370)](),'selection':_0x48cd80(_0x162e49,_0x2ca8fe[_0x17fd8a(0x10f)])}};this[_0x17fd8a(0x2c0)][_0x17fd8a(0x218)](_0x40a4be,this[_0x17fd8a(0x1f3)]);},Pr)),(this['unitID']=_0xc79435,this[_0x29c6bb(0x2c0)]=_0x156143,this[_0x29c6bb(0x162)]=_0xe57189,this[_0x29c6bb(0x271)]=_0x51d1f8,this[_0x29c6bb(0x2ed)]=_0x1d4141,this['_univerInstanceService']=_0x433352,this[_0x29c6bb(0x1ef)]=_0x4fabe3,this[_0x29c6bb(0x179)]=_0x5735c7);}get[_0x4c1f23(0x2b8)](){const _0x282d2a=_0x4c1f23;return this[_0x282d2a(0x1cf)][_0x282d2a(0x25c)]();}get[_0x4c1f23(0x303)](){const _0x1993f9=_0x4c1f23;return this[_0x1993f9(0x258)][_0x1993f9(0x25c)]();}[_0x4c1f23(0x1e4)](){const _0x39a057=_0x4c1f23;super[_0x39a057(0x1e4)](),this['_cursorInfo$'][_0x39a057(0x23d)](new Map()),this[_0x39a057(0x1cf)][_0x39a057(0x2c4)](),this[_0x39a057(0x258)][_0x39a057(0x23d)]([]),this[_0x39a057(0x258)][_0x39a057(0x2c4)]();}['init'](){const _0x14f19c=_0x4c1f23;this['_init']||(this['_init']=!0x0,this['_session'][_0x14f19c(0x294)][_0x14f19c(0x1a7)](_0x289d57(this[_0x14f19c(0x265)]))[_0x14f19c(0x280)](_0x41374a=>{const _0x4a40cb=_0x14f19c;_0x41374a===G[_0x4a40cb(0x2e1)]?this['_toggleOnline']():this[_0x4a40cb(0xe8)]();}),this['_session']['event$'][_0x14f19c(0x1a7)](_0x289d57(this[_0x14f19c(0x265)]))[_0x14f19c(0x280)](_0x174dd0=>{const _0x4171be=_0x14f19c,_0x33654b=_0x174dd0[_0x4171be(0x186)];_0x33654b===_0x273d8c[_0x4171be(0xf2)]&&this[_0x4171be(0x106)](_0x174dd0),_0x33654b===_0x273d8c[_0x4171be(0x15a)]&&this['_onCursorDelete'](_0x174dd0);}),this[_0x14f19c(0x1f4)](),this[_0x14f19c(0x248)](this['_commandService']['onCommandExecuted'](_0xb892cf=>{const _0x10905f=_0x14f19c;if(this[_0x10905f(0x25b)]&&_0xb892cf['id']===_0x137748['id']&&_0xb892cf[_0x10905f(0x364)][_0x10905f(0xe5)]===this[_0x10905f(0x1f3)]){const _0x4894b5=_0xb892cf[_0x10905f(0x364)];this[_0x10905f(0x252)](_0x4894b5[_0x10905f(0x213)],_0x4894b5['selections'][0x0]);}})));}[_0x4c1f23(0x106)](_0x2e6aee){const _0x5b2b0b=_0x4c1f23;var _0x7187b,_0xea928e;const {memberID:_0x381bed,selection:_0x475f1f}=_0x2e6aee[_0x5b2b0b(0x339)],{sheetName:_0x394ea4,range:_0x1c4a03}=_0x2363ba(_0x475f1f),_0x39812b={'name':(_0xea928e=(_0x7187b=this[_0x5b2b0b(0x2ed)]['getMember'](this[_0x5b2b0b(0x1f3)],_0x381bed))==null?void 0x0:_0x7187b['name'])!=null?_0xea928e:_0x5b2b0b(0x33a),'range':this[_0x5b2b0b(0x9d)](_0x394ea4,_0x1c4a03),'sheetID':_0x394ea4,'color':this[_0x5b2b0b(0x271)][_0x5b2b0b(0x22b)](_0x381bed),'selection':_0x475f1f},_0x3f742d=this[_0x5b2b0b(0x2b8)];_0x3f742d[_0x5b2b0b(0x329)](_0x381bed,_0x39812b),this[_0x5b2b0b(0x1cf)][_0x5b2b0b(0x23d)](_0x3f742d);}[_0x4c1f23(0x2d3)](_0x14dc15){const _0x4022b9=_0x4c1f23,{memberID:_0x175231}=_0x14dc15[_0x4022b9(0x339)],_0x5e922b=this[_0x4022b9(0x2b8)];_0x5e922b[_0x4022b9(0xd0)](_0x175231),this[_0x4022b9(0x1cf)]['next'](_0x5e922b);}['_getMergeRange'](_0xe207f1,_0xc7d771){const _0x56ac9e=_0x4c1f23;var _0x4c6ba8,_0x353d73;const _0x35cdf5=(_0x353d73=(_0x4c6ba8=this[_0x56ac9e(0x310)][_0x56ac9e(0x11b)](this[_0x56ac9e(0x1f3)]))==null?void 0x0:_0x4c6ba8[_0x56ac9e(0x77)](_0xe207f1))==null?void 0x0:_0x353d73['getMergeData']();return(_0x35cdf5==null?void 0x0:_0x35cdf5[_0x56ac9e(0xef)](_0xe11c55=>_0x31476b['contains'](_0xe11c55,_0xc7d771)))||_0xc7d771;}['_onRefRangeChange'](){const _0x440745=_0x4c1f23,_0x524e31=new _0x242419(),_0x2df8a0=yr(),_0xd142ff=()=>{const _0x5e6116=_0x4c7d;_0x524e31[_0x5e6116(0x1e4)]();const _0x45b39d=(_0x15be8c,_0x599ae8,_0x43839e,_0x2eaa8c)=>{const _0xe747c6=_0x5e6116;let _0x5461b3=[];switch(_0x15be8c['id']){case _0x5bd706[_0xe747c6(0x2ab)]:{_0x5461b3=_0x28d514(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x18d)]:{_0x5461b3=_0x362d52(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x317)]:{_0x5461b3=_0xb9b59c(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x28c)]:{_0x5461b3=_0x40cb3b(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x3c0)]:{_0x5461b3=_0x2d766e(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0xd1)]:{_0x5461b3=_0x4c71a9(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x9f)]:{_0x5461b3=_0x104260(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x215)]:{_0x5461b3=_0x5ebff0(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x2cb)]:{_0x5461b3=_0x37d328(_0x15be8c,_0x2eaa8c);break;}}const _0x4eaf58=_0x12db35(_0x5461b3,_0x2eaa8c),_0x125c6b=this['cursorInfo'][_0xe747c6(0x348)](_0x599ae8);if(_0x125c6b&&_0x4eaf58){const _0x1050b6={..._0x125c6b,'range':_0x4eaf58};this['cursorInfo'][_0xe747c6(0x329)](_0x599ae8,_0x1050b6),_0x2df8a0(()=>{const _0x24e5e4=_0xe747c6,_0x53ca10=this[_0x24e5e4(0x179)]['registerRefRange'](_0x4eaf58,_0x549284=>(_0x53ca10[_0x24e5e4(0x1e4)](),_0x45b39d(_0x549284,_0x599ae8,_0x43839e,_0x4eaf58)));_0x524e31['add'](_0x53ca10);});}return{'redos':[],'undos':[]};};this[_0x5e6116(0x2b8)][_0x5e6116(0x100)]((_0x1c1400,_0x53c5e5)=>{const _0x2075a2=_0x5e6116,{range:_0x535017,sheetID:_0x300d0f}=_0x1c1400,_0x142ad9=this[_0x2075a2(0x179)][_0x2075a2(0x288)](_0x535017,_0x2098e0=>(_0x142ad9[_0x2075a2(0x1e4)](),_0x45b39d(_0x2098e0,_0x53c5e5,_0x300d0f,_0x535017)));_0x524e31[_0x2075a2(0x2fb)](_0x142ad9);});};this[_0x440745(0x248)](_0x5738c2(this[_0x440745(0x1cf)]['subscribe'](()=>{_0xd142ff();})));}['_toggleOnline'](){const _0x2a226f=_0x4c1f23;var _0x8d31d7,_0x36bb1d;if(this[_0x2a226f(0x25b)]=!0x0,((_0x8d31d7=this[_0x2a226f(0x310)][_0x2a226f(0x204)]())==null?void 0x0:_0x8d31d7[_0x2a226f(0x34e)]())!==this[_0x2a226f(0x1f3)])return;const _0x31cf76=(_0x36bb1d=this['_injector']['get'](_0x152281)[_0x2a226f(0x84)]())==null?void 0x0:_0x36bb1d[0x0],_0xbb6452=this['_univerInstanceService']['getCurrentUnitForType'](_0x4c91c9[_0x2a226f(0x10d)])['getActiveSheet']();_0x31cf76&&_0xbb6452&&this[_0x2a226f(0x252)](_0xbb6452[_0x2a226f(0x1a9)](),_0x31cf76);}[_0x4c1f23(0xe8)](){const _0x10bfed=_0x4c1f23;this[_0x10bfed(0x25b)]=!0x1;}};Ot=Dr([fe(0x2,_0x321449(_0x313fa0)),fe(0x3,_0x321449(Ft)),fe(0x4,_0x321449(ae)),fe(0x5,_0x375068),fe(0x6,_0x265863),fe(0x7,_0x321449(_0x70f3a6))],Ot);var Nr=Object[_0x4c1f23(0x2e9)],Ur=Object['getOwnPropertyDescriptor'],Mr=(_0x28bb23,_0x4a41dd,_0x20c7bc,_0x56c9f2)=>{const _0x3698ae=_0x4c1f23;for(var _0x1d22d4=_0x56c9f2>0x1?void 0x0:_0x56c9f2?Ur(_0x4a41dd,_0x20c7bc):_0x4a41dd,_0x20fd80=_0x28bb23[_0x3698ae(0x78)]-0x1,_0x38fe8f;_0x20fd80>=0x0;_0x20fd80--)(_0x38fe8f=_0x28bb23[_0x20fd80])&&(_0x1d22d4=(_0x56c9f2?_0x38fe8f(_0x4a41dd,_0x20c7bc,_0x1d22d4):_0x38fe8f(_0x1d22d4))||_0x1d22d4);return _0x56c9f2&&_0x1d22d4&&Nr(_0x4a41dd,_0x20c7bc,_0x1d22d4),_0x1d22d4;},_t=(_0x32faf9,_0x11aba7)=>(_0x4cc2f5,_0x40d238)=>_0x11aba7(_0x4cc2f5,_0x40d238,_0x32faf9);let pe=class extends _0x2dacfb{constructor(_0x27af0a,_0x243979,_0x536f5d){const _0x3f3887=_0x4c1f23;super(),l(this,'_entities',new Map()),l(this,_0x3f3887(0x29f),new _0xacaad6()),(this[_0x3f3887(0x310)]=_0x27af0a,this[_0x3f3887(0x162)]=_0x243979,this['_collabSessionService']=_0x536f5d,this[_0x3f3887(0x34a)]());}['dispose'](){const _0x27b095=_0x4c1f23;super['dispose'](),this[_0x27b095(0x29f)][_0x27b095(0x2c4)](),this[_0x27b095(0xac)][_0x27b095(0x100)](_0xe4ea25=>_0xe4ea25[_0x27b095(0x1e4)]());}['getCollabCursors$'](_0x76897c){const _0x3104a6=_0x4c1f23;return this[_0x3104a6(0xac)][_0x3104a6(0x20e)](_0x76897c)?this['_entities'][_0x3104a6(0x348)](_0x76897c)[_0x3104a6(0x37c)]:this[_0x3104a6(0x29f)][_0x3104a6(0x1a7)](_0x4c7e5a(_0x13afb7=>_0x13afb7['unitID']===_0x76897c),_0x4e9858(_0xcf11f=>_0xcf11f['cursorInfo$']));}[_0x4c1f23(0x34a)](){const _0x40b43e=_0x4c1f23;this[_0x40b43e(0x310)][_0x40b43e(0x3f7)](_0x4c91c9['UNIVER_SHEET'])['pipe'](_0x289d57(this[_0x40b43e(0x265)]))['subscribe'](async _0x973300=>{const _0x48e541=_0x40b43e,_0x35c5bb=_0x973300[_0x48e541(0x34e)](),_0x70c101=await this[_0x48e541(0x358)](_0x35c5bb);this[_0x48e541(0x29f)]['next'](_0x70c101),this[_0x48e541(0xac)][_0x48e541(0x329)](_0x35c5bb,_0x70c101);}),this['_univerInstanceService'][_0x40b43e(0x3f7)](_0x4c91c9[_0x40b43e(0x11d)])[_0x40b43e(0x1a7)](_0x289d57(this[_0x40b43e(0x265)]))['pipe'](_0x4c7e5a(_0x1f4455=>!_0x1f4455[_0x40b43e(0x34e)]()[_0x40b43e(0x270)]('__')))[_0x40b43e(0x280)](async _0x3f0794=>{const _0x31f37c=_0x40b43e,_0x22ba29=_0x3f0794['getUnitId'](),_0x5375b9=await this[_0x31f37c(0x159)](_0x22ba29);this[_0x31f37c(0x29f)][_0x31f37c(0x23d)](_0x5375b9),this[_0x31f37c(0xac)][_0x31f37c(0x329)](_0x22ba29,_0x5375b9);}),_0x5de0ce(this['_univerInstanceService'][_0x40b43e(0x2ee)](_0x4c91c9[_0x40b43e(0x11d)]),this['_univerInstanceService'][_0x40b43e(0x2ee)](_0x4c91c9[_0x40b43e(0x10d)]))['pipe'](_0x289d57(this[_0x40b43e(0x265)]))[_0x40b43e(0x280)](_0x2e517e=>{const _0x210b65=_0x40b43e,_0xa7b8dc=_0x2e517e[_0x210b65(0x34e)](),_0x42511b=this[_0x210b65(0xac)][_0x210b65(0x348)](_0xa7b8dc);_0x42511b&&(_0x42511b[_0x210b65(0x1e4)](),this[_0x210b65(0xac)][_0x210b65(0xd0)](_0xa7b8dc));});}async['_startSheetCollabCursor'](_0xae3be5){const _0x4c1b5e=_0x4c1f23,_0x24372c=await this[_0x4c1b5e(0x1e1)][_0x4c1b5e(0x2ec)](_0xae3be5),_0x5cdf84=this[_0x4c1b5e(0x162)][_0x4c1b5e(0x171)](Ot,_0xae3be5,_0x24372c);return _0x5cdf84[_0x4c1b5e(0x1ba)](),_0x5cdf84;}async['_startDocCollabCursor'](_0x514661){const _0x241722=_0x4c1f23,_0x4e61a1=await this[_0x241722(0x1e1)][_0x241722(0x2ec)](_0x514661),_0x29e735=this['_injector'][_0x241722(0x171)](Rt,_0x514661,_0x4e61a1);return _0x29e735[_0x241722(0x1ba)](),_0x29e735;}};pe=Mr([_t(0x0,_0x375068),_t(0x1,_0x321449(_0x313fa0)),_t(0x2,_0x321449(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function Lr(_0x13801e,_0x3e27e){const _0x2fdc25=_0x4c1f23;let {radius:_0x36fa40,width:_0x440574,height:_0x1bda39}=_0x3e27e;_0x36fa40=_0x36fa40!=null?_0x36fa40:0x0,_0x440574=_0x440574!=null?_0x440574:0x1e,_0x1bda39=_0x1bda39!=null?_0x1bda39:0x1e;let _0x234fa2=0x0,_0x1e02ca=0x0,_0x34c555=0x0;_0x234fa2=_0x1e02ca=_0x34c555=Math['min'](_0x36fa40,_0x440574/0x2,_0x1bda39/0x2),_0x13801e['beginPath'](),_0x13801e[_0x2fdc25(0x26d)](_0x234fa2,0x0),_0x13801e[_0x2fdc25(0x1d0)](_0x440574-_0x1e02ca,0x0),_0x13801e['arc'](_0x440574-_0x1e02ca,_0x1e02ca,_0x1e02ca,Math['PI']*0x3/0x2,0x0,!0x1),_0x13801e['lineTo'](_0x440574,_0x1bda39-_0x34c555),_0x13801e['arc'](_0x440574-_0x34c555,_0x1bda39-_0x34c555,_0x34c555,0x0,Math['PI']/0x2,!0x1),_0x13801e[_0x2fdc25(0x1d0)](0x0,_0x1bda39),_0x13801e['lineTo'](0x0,_0x234fa2),_0x13801e[_0x2fdc25(0x325)](_0x234fa2,_0x234fa2,_0x234fa2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x13801e[_0x2fdc25(0x247)](),_0x3e27e['fill']&&(_0x13801e[_0x2fdc25(0x149)](),_0x13801e[_0x2fdc25(0x22c)]=_0x3e27e[_0x2fdc25(0x291)],_0x3e27e['fillRule']===_0x2fdc25(0x323)?_0x13801e[_0x2fdc25(0x291)](_0x2fdc25(0x323)):_0x13801e[_0x2fdc25(0x291)](),_0x13801e[_0x2fdc25(0x9a)]());}class st extends _0xca1f86{constructor(_0x2dc32b,_0x3d6d4c){const _0x103f80=_0x4c1f23;super(_0x2dc32b,_0x3d6d4c),l(this,_0x103f80(0x30d)),l(this,_0x103f80(0x30c)),(this[_0x103f80(0x30d)]=_0x3d6d4c==null?void 0x0:_0x3d6d4c['color'],this['text']=_0x3d6d4c==null?void 0x0:_0x3d6d4c[_0x103f80(0x30c)]);}static[_0x4c1f23(0x1f2)](_0x5748d6,_0x2dba9e){const _0x3e4bc=_0x4c1f23,{text:_0x4604f8,color:_0x1af701}=_0x2dba9e;_0x5748d6['save'](),_0x5748d6[_0x3e4bc(0xd4)]=_0x3e4bc(0x146);const _0x13c8cc=_0x5748d6[_0x3e4bc(0x23e)](_0x4604f8)[_0x3e4bc(0x321)],_0x56aeb6=Math[_0x3e4bc(0x38f)](_0x13c8cc+0x2*ut,us);Lr(_0x5748d6,{'height':Le,'radius':0x4,'width':_0x56aeb6,'fill':_0x1af701,'evented':!0x1}),_0x5748d6[_0x3e4bc(0x22c)]=_0x3e4bc(0x26f);const _0x23c730=ut,_0x347005=Le-Ar,_0x19239f=us-0x2*ut;if(_0x13c8cc>_0x19239f){let _0x150d6f='',_0x523cc3=0x0;for(const _0xf7196b of _0x4604f8){const _0x50aeee=_0x5748d6[_0x3e4bc(0x23e)](_0xf7196b)[_0x3e4bc(0x321)];if(_0x523cc3+_0x50aeee<=_0x19239f-_0x5748d6[_0x3e4bc(0x23e)](_0x3e4bc(0x3b4))['width'])_0x150d6f+=_0xf7196b,_0x523cc3+=_0x50aeee;else{_0x150d6f+='...';break;}}_0x5748d6[_0x3e4bc(0x263)](_0x150d6f,_0x23c730,_0x347005);}else _0x5748d6[_0x3e4bc(0x263)](_0x4604f8,_0x23c730,_0x347005);_0x5748d6[_0x3e4bc(0x9a)]();}[_0x4c1f23(0x33c)](_0x4f7659){const _0xe709b=_0x4c1f23;st[_0xe709b(0x1f2)](_0x4f7659,this);}}const dt=_0x4c1f23(0x229),$r=_0x4c1f23(0x7d),jr=_0x4c1f23(0x299),De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr=_0x4c1f23(0x80);class ds{constructor(_0x5ee52c,_0xce05fa,_0xa7288f,_0x2300d2){const _0x553e30=_0x4c1f23;l(this,_0x553e30(0xa4),[]),l(this,_0x553e30(0x277),null),l(this,_0x553e30(0x3bf),null),l(this,'_anchorDot',null),l(this,_0x553e30(0x1a3),null),l(this,'_eventUnsubscribe',null),(this[_0x553e30(0xa7)]=_0x5ee52c,this[_0x553e30(0xcf)]=_0xce05fa,this[_0x553e30(0x394)]=_0xa7288f,this[_0x553e30(0x300)]=_0x2300d2,this['_render']());}set[_0x4c1f23(0xc0)](_0x55652a){const _0x172dce=_0x4c1f23;_0x55652a?(this[_0x172dce(0xc9)]&&this[_0x172dce(0xc9)]['hide'](),this[_0x172dce(0x3bf)]&&this['_textBubble'][_0x172dce(0x160)]()):(this[_0x172dce(0xc9)]&&this['_anchorDot'][_0x172dce(0x160)](),this['_textBubble']&&this[_0x172dce(0x3bf)][_0x172dce(0x1e5)]());}[_0x4c1f23(0x1e4)](){const _0x3fdeb9=_0x4c1f23;for(const _0x408d4c of this[_0x3fdeb9(0xa4)])_0x408d4c[_0x3fdeb9(0x1e4)]();this[_0x3fdeb9(0x3bf)]&&this['_textBubble'][_0x3fdeb9(0x1e4)](),this[_0x3fdeb9(0xc9)]&&this['_anchorDot'][_0x3fdeb9(0x1e4)](),this[_0x3fdeb9(0x277)]&&this[_0x3fdeb9(0x277)]['dispose'](),this[_0x3fdeb9(0x3a6)]&&this[_0x3fdeb9(0x3a6)]();}[_0x4c1f23(0x208)](){const _0xb6cd2f=_0x4c1f23;var _0x305379;const {_docSkeleton:_0x4dd00b,_document:_0x216acb}=this,{color:_0xc90da5,name:_0x33ecc7,ranges:_0x17507c}=this['_cursor'],_0x2ffac9=_0x216acb[_0xb6cd2f(0x1d6)](),{docsLeft:_0x2d15bf,docsTop:_0xcbc7e1}=_0x2ffac9,_0xee16c8=new _0x2b89f0(_0x2ffac9,_0x4dd00b);for(const {startOffset:_0xf51d1,endOffset:_0x3e6bfd,collapsed:_0x33cef3,isActive:_0x39e887}of _0x17507c){const _0x2b7fd5=_0x4dd00b[_0xb6cd2f(0x205)](_0xf51d1),_0x98511=_0x4dd00b['findNodePositionByCharIndex'](_0x3e6bfd);if(_0x39e887){const {contentBoxPointGroup:_0x10eea9}=_0xee16c8['getRangePointData'](_0x98511,_0x98511);if(_0x10eea9[_0xb6cd2f(0x78)]===0x0)continue;this[_0xb6cd2f(0x11e)](_0xc90da5,_0x10eea9,_0x2d15bf,_0xcbc7e1,_0x33ecc7),this[_0xb6cd2f(0x3a6)]=this[_0xb6cd2f(0x21f)]();}if(!_0x33cef3&&_0x2b7fd5&&_0x98511){if(_0x53f2b8(_0x2b7fd5,_0x98511)){const _0x10cf23=new _0x459c36(_0x2ffac9,_0x4dd00b),{pointGroup:_0x16a61d}=(_0x305379=_0x10cf23[_0xb6cd2f(0x37f)](_0x2b7fd5,_0x98511))!=null?_0x305379:{};if(_0x16a61d==null||_0x16a61d[_0xb6cd2f(0x78)]===0x0)continue;this[_0xb6cd2f(0x1b5)](_0xc90da5,_0x16a61d,_0x2d15bf,_0xcbc7e1);}else{const {contentBoxPointGroup:_0x35a7d1}=_0xee16c8[_0xb6cd2f(0x37f)](_0x2b7fd5,_0x98511);if(_0x35a7d1[_0xb6cd2f(0x78)]===0x0)continue;this[_0xb6cd2f(0x9b)](_0xc90da5,_0x35a7d1,_0x2d15bf,_0xcbc7e1);}}}}['_drawAnchor'](_0x56f301,_0x229d53,_0x5932c4,_0x1e54d9,_0x3bba9b){const _0x36c150=_0x4c1f23,_0x4f9e18=this[_0x36c150(0x2e0)](_0x229d53),{left:_0x4b1449,top:_0x1527d0,height:_0x1c9932}=_0x4f9e18,_0x21da14=this['_getScale'](),_0x43ed25=Hr/_0x21da14,_0xad405=new _0x3a075a(dt+_0x403f58[_0x36c150(0xf0)](De),{'left':_0x4b1449+_0x5932c4-_0x43ed25,'top':_0x1527d0+_0x1e54d9,'height':_0x1c9932,'width':xr,'fill':_0x56f301||_0x17a368(_0x3ca793[_0x36c150(0x7a)],0x0),'strokeWidth':_0x43ed25,'stroke':kr,'evented':!0x0});this[_0x36c150(0x277)]=_0xad405,this[_0x36c150(0xcf)][_0x36c150(0x381)](_0xad405,_0x1c10b5);const _0x2cf4dc=new _0x3a075a(dt+_0x403f58[_0x36c150(0xf0)](De),{'left':_0x4b1449+_0x5932c4-_0x43ed25,'top':_0x1527d0+_0x1e54d9-ft/0x2,'height':ft,'width':ft,'fill':_0x56f301||_0x17a368(_0x3ca793[_0x36c150(0x7a)],0x0),'strokeWidth':0x0,'stroke':_0x56f301||_0x17a368(_0x3ca793[_0x36c150(0x7a)],0x0),'evented':!0x1});this[_0x36c150(0xc9)]=_0x2cf4dc,this[_0x36c150(0xcf)]['addObject'](_0x2cf4dc,_0x1c10b5);const _0x2cfd87=new st(dt+_0x403f58[_0x36c150(0xf0)](De),{'left':_0x4b1449+_0x5932c4-_0x43ed25,'top':_0x1527d0+_0x1e54d9-Le,'text':_0x3bba9b,'color':_0x56f301});this[_0x36c150(0x3bf)]=_0x2cfd87,this[_0x36c150(0xcf)][_0x36c150(0x381)](_0x2cfd87,_0x1c10b5),this['_hover']=!0x1;}[_0x4c1f23(0x21f)](){const _0x3555dc=_0x4c1f23,_0x407e04=this[_0x3555dc(0x277)][_0x3555dc(0x234)][_0x3555dc(0x14b)](()=>{const _0x1a676a=_0x3555dc;this[_0x1a676a(0xc0)]=!0x0;}),_0x34602e=this['_anchor']['onPointerLeave$'][_0x3555dc(0x14b)](()=>{const _0x4b498a=_0x3555dc;this['_hideTimer']&&clearTimeout(this[_0x4b498a(0x1a3)]),this[_0x4b498a(0x1a3)]=setTimeout(()=>{const _0x2c9449=_0x4b498a;this[_0x2c9449(0xc0)]=!0x1;},0x7d0);});return()=>{const _0x17d79c=_0x3555dc;_0x407e04[_0x17d79c(0x15e)](),_0x34602e[_0x17d79c(0x15e)]();};}['_drawTextRange'](_0x3ede80,_0x3e3861,_0x4dab63,_0x3a625f){const _0x3634ce=_0x4c1f23,_0x4ab1c0=new _0x3fd1db(_0x3ede80)['setAlpha'](0.2)[_0x3634ce(0x2d9)](),_0x135542=new _0x28ffa0($r+_0x403f58[_0x3634ce(0xf0)](De),{'pointsGroup':_0x3e3861,'fill':_0x4ab1c0||_0x17a368(_0x3ca793[_0x3634ce(0x7a)],0.2),'left':_0x4dab63,'top':_0x3a625f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3634ce(0xa4)]['push'](_0x135542),this['_scene'][_0x3634ce(0x381)](_0x135542,_0x1c10b5);}[_0x4c1f23(0x1b5)](_0x353a18,_0x15a729,_0x4910db,_0x527840){const _0x15b1b4=_0x4c1f23,_0x3a4d26=new _0x3fd1db(_0x353a18)[_0x15b1b4(0x338)](0.2)['toRgbString'](),_0x1a869d=new _0x28ffa0(jr+_0x403f58[_0x15b1b4(0xf0)](De),{'pointsGroup':_0x15a729,'fill':_0x3a4d26||_0x17a368(_0x3ca793['black'],0.2),'left':_0x4910db,'top':_0x527840,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15b1b4(0xa4)][_0x15b1b4(0x27c)](_0x1a869d),this['_scene'][_0x15b1b4(0x381)](_0x1a869d,_0x1c10b5);}['_getAnchorBounding'](_0x1ac26b){const _0x356f95=_0x1ac26b[0x0],_0x40ea84=_0x356f95[0x0],_0x101e81=_0x356f95[0x2],{x:_0x4780cd,y:_0x25cd97}=_0x40ea84,{x:_0x2eef57,y:_0x34c904}=_0x101e81;return{'left':_0x4780cd,'top':_0x25cd97,'width':_0x2eef57-_0x4780cd,'height':_0x34c904-_0x25cd97};}['_getScale'](){const _0x3790d7=_0x4c1f23,{scaleX:_0x26bc9d,scaleY:_0x19009f}=this['_scene'][_0x3790d7(0xcc)]();return Math['max'](_0x26bc9d,_0x19009f);}}var Br=Object[_0x4c1f23(0x2e9)],Vr=Object[_0x4c1f23(0x133)],Fr=(_0x200eb9,_0x482ba2,_0x517d4f,_0x3aed1c)=>{const _0x3443db=_0x4c1f23;for(var _0x35826e=_0x3aed1c>0x1?void 0x0:_0x3aed1c?Vr(_0x482ba2,_0x517d4f):_0x482ba2,_0x5b5bbd=_0x200eb9[_0x3443db(0x78)]-0x1,_0x3ed591;_0x5b5bbd>=0x0;_0x5b5bbd--)(_0x3ed591=_0x200eb9[_0x5b5bbd])&&(_0x35826e=(_0x3aed1c?_0x3ed591(_0x482ba2,_0x517d4f,_0x35826e):_0x3ed591(_0x35826e))||_0x35826e);return _0x3aed1c&&_0x35826e&&Br(_0x482ba2,_0x517d4f,_0x35826e),_0x35826e;},xe=(_0x5e455d,_0x14719a)=>(_0x324b1e,_0x3197fc)=>_0x14719a(_0x324b1e,_0x3197fc,_0x5e455d);let Dt=class extends _0x2dacfb{constructor(_0x24086d,_0x150979,_0x31295b,_0x14690a,_0x2909fd){const _0x498d64=_0x4c1f23;super(),l(this,_0x498d64(0x262),[]),l(this,_0x498d64(0x232),[]),(this[_0x498d64(0x308)]=_0x24086d,this[_0x498d64(0x169)]=_0x150979,this[_0x498d64(0x3a3)]=_0x31295b,this[_0x498d64(0x1ef)]=_0x14690a,this[_0x498d64(0x2c8)]=_0x2909fd,this['_init']());}[_0x4c1f23(0x34a)](){const _0x1f5fbd=_0x4c1f23,_0x2378d2=this[_0x1f5fbd(0x308)]['unitId'],_0x2bc286=this[_0x1f5fbd(0x169)];this['disposeWithMe'](_0x4fd693([this[_0x1f5fbd(0x3a3)][_0x1f5fbd(0x320)](_0x2378d2),this['_themeService']['currentTheme$']])[_0x1f5fbd(0x1a7)](_0x3d528e(([_0xd63552,_0x2362ab])=>({'skeleton':_0x2bc286[_0x1f5fbd(0x37b)](),'cursors':[..._0xd63552['values']()]['flatMap'](_0x14bf13=>({..._0x14bf13,'color':_0x2362ab[_0x14bf13['color']]}))})))[_0x1f5fbd(0x280)](_0x478152=>{if(this['_removeCollabCursors'](),_0x478152){const {skeleton:_0x29a106,cursors:_0x8a54a5}=_0x478152;this['_updateCollabCursors'](_0x29a106,_0x8a54a5);}})),this[_0x1f5fbd(0x223)](),this[_0x1f5fbd(0x3f2)]();}['_updateCollabCursors'](_0x152c8b,_0x41c1b5){const _0x3ab880=_0x4c1f23,{scene:_0x1237a2,mainComponent:_0xd3c349}=this['_context'],_0xca0a74=_0x41c1b5[_0x3ab880(0x17d)](_0x25f661=>new ds(_0x25f661,_0x1237a2,_0x152c8b,_0xd3c349));this[_0x3ab880(0x262)]=_0xca0a74,this[_0x3ab880(0x232)]=_0x41c1b5;}['_refreshCollabCursors'](){const _0x5577e2=_0x4c1f23;this[_0x5577e2(0xe6)]();const {scene:_0x2e6763,mainComponent:_0x252e73}=this[_0x5577e2(0x308)],_0xbcf349=this['_docSkeletonManagerService'][_0x5577e2(0x37b)](),_0x3faf01=this[_0x5577e2(0x232)][_0x5577e2(0x17d)](_0x4a1b1b=>new ds(_0x4a1b1b,_0x2e6763,_0xbcf349,_0x252e73));this[_0x5577e2(0x262)]=_0x3faf01;}[_0x4c1f23(0xe6)](){const _0xef0acb=_0x4c1f23;this[_0xef0acb(0x262)][_0xef0acb(0x100)](_0x3a6273=>_0x3a6273[_0xef0acb(0x1e4)]()),this[_0xef0acb(0x262)]=[];}[_0x4c1f23(0x3f2)](){const _0x59d017=_0x4c1f23,_0x1c6fba=[_0xd8bdfb['id']];this[_0x59d017(0x248)](this[_0x59d017(0x1ef)][_0x59d017(0x168)](_0x27e53d=>{const _0x4be4a6=_0x59d017;_0x1c6fba[_0x4be4a6(0x116)](_0x27e53d['id'])&&_0x27e53d[_0x4be4a6(0x364)][_0x4be4a6(0xe5)]===this['_context'][_0x4be4a6(0xe5)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0xa126e=_0x4c1f23;this['disposeWithMe'](_0x46c56e(this[_0xa126e(0x308)][_0xa126e(0x1e3)][_0xa126e(0x120)])['pipe'](_0x1f1135(_0x1edec3=>_0x1edec3[_0xa126e(0x1d3)]===_0x58f61e[_0xa126e(0x150)]),_0x4ac9c9(0x10))[_0xa126e(0x280)](()=>{const _0x10e50a=_0xa126e;this[_0x10e50a(0x25d)]();}));}};Dt=Fr([xe(0x1,_0x321449(_0x5e9e87)),xe(0x2,_0x321449(pe)),xe(0x3,_0x265863),xe(0x4,_0x321449(_0x6f1691))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0xca1f86{constructor(_0x41a825,_0x7ca72d){const _0x1232fb=_0x4c1f23;super(_0x41a825,_0x7ca72d),l(this,_0x1232fb(0x2da)),l(this,'_hovered',!0x1),l(this,'_range'),l(this,_0x1232fb(0x3e3),''),l(this,_0x1232fb(0x393),_0x1232fb(0x302)),l(this,_0x1232fb(0x2b5)),(_0x7ca72d&&this[_0x1232fb(0x1fb)](_0x7ca72d),this[_0x1232fb(0x234)][_0x1232fb(0x14b)](()=>this[_0x1232fb(0x1fb)]({'hovered':!0x0})),this[_0x1232fb(0x25a)][_0x1232fb(0x14b)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x3e24dd){const _0xd903df=_0x4c1f23;var _0x3c0e66,_0x170569,_0x4094b3,_0x29c08f,_0x42035c,_0x24f31c;this[_0xd903df(0x2da)]=(_0x3c0e66=_0x3e24dd['color'])!=null?_0x3c0e66:this[_0xd903df(0x2da)],this[_0xd903df(0x203)]=(_0x170569=_0x3e24dd[_0xd903df(0x26e)])!=null?_0x170569:this[_0xd903df(0x203)],this[_0xd903df(0x1a5)]=(_0x4094b3=_0x3e24dd['range'])!=null?_0x4094b3:this[_0xd903df(0x1a5)],this[_0xd903df(0x3e3)]=(_0x29c08f=_0x3e24dd[_0xd903df(0x124)])!=null?_0x29c08f:this['_name'],this['_labelPosition']=(_0x42035c=_0x3e24dd[_0xd903df(0x2bb)])!=null?_0x42035c:this['_labelPosition'],this[_0xd903df(0x2b5)]=(_0x24f31c=_0x3e24dd['backgroundColor'])!=null?_0x24f31c:this[_0xd903df(0x2b5)],this['transformByState']({'width':_0x3e24dd[_0xd903df(0x321)],'height':_0x3e24dd[_0xd903df(0x305)]});}[_0x4c1f23(0x3da)](_0x2308d7){const _0x54562a=_0x4c1f23,{row:_0x439db8,column:_0x3393fb}=_0x2308d7;if(_0x439db8>=this['_range'][_0x54562a(0x330)]&&_0x439db8<=this[_0x54562a(0x1a5)][_0x54562a(0x21a)]&&_0x3393fb>=this[_0x54562a(0x1a5)][_0x54562a(0x2fa)]&&_0x3393fb<=this[_0x54562a(0x1a5)][_0x54562a(0x272)]){this[_0x54562a(0x1fb)]({'hovered':!0x0});return;}this[_0x54562a(0x1fb)]({'hovered':!0x1});}[_0x4c1f23(0x3b5)](_0x52bb9e){return!0x1;}[_0x4c1f23(0x33c)](_0x5dd87b){const _0x4c2cdb=_0x4c1f23;_0x3a075a[_0x4c2cdb(0x1f2)](_0x5dd87b,{'width':this[_0x4c2cdb(0x321)],'height':this[_0x4c2cdb(0x305)],'strokeWidth':Gr,'stroke':this[_0x4c2cdb(0x2da)],'evented':!0x1,'fill':this[_0x4c2cdb(0x2b5)]}),this[_0x4c2cdb(0x203)]&&(_0x5dd87b[_0x4c2cdb(0x149)](),_0x5dd87b['transform'](0x1,0x0,0x0,0x1,this[_0x4c2cdb(0x321)],this[_0x4c2cdb(0x393)]==='bottom'?0x0:-Le),st['drawWith'](_0x5dd87b,{'text':this[_0x4c2cdb(0x3e3)],'color':this[_0x4c2cdb(0x2da)]}),_0x5dd87b[_0x4c2cdb(0x9a)]());}}var Kr=Object[_0x4c1f23(0x2e9)],Xr=Object[_0x4c1f23(0x133)],Jr=(_0xcaf088,_0x4c2798,_0x2e3e30,_0x1f66d1)=>{const _0xcd1366=_0x4c1f23;for(var _0x66997d=_0x1f66d1>0x1?void 0x0:_0x1f66d1?Xr(_0x4c2798,_0x2e3e30):_0x4c2798,_0x2faebc=_0xcaf088[_0xcd1366(0x78)]-0x1,_0x2d475c;_0x2faebc>=0x0;_0x2faebc--)(_0x2d475c=_0xcaf088[_0x2faebc])&&(_0x66997d=(_0x1f66d1?_0x2d475c(_0x4c2798,_0x2e3e30,_0x66997d):_0x2d475c(_0x66997d))||_0x66997d);return _0x1f66d1&&_0x66997d&&Kr(_0x4c2798,_0x2e3e30,_0x66997d),_0x66997d;},mt=(_0x25e0be,_0x4ad16f)=>(_0x3cea73,_0x51157c)=>_0x4ad16f(_0x3cea73,_0x51157c,_0x25e0be);const qr=0x1389;let wt=class extends _0x2dacfb{constructor(_0xb7d4a6,_0x23ee50,_0x2c50c3,_0x3a5123){const _0xd95751=_0x4c1f23;super(),l(this,_0xd95751(0x232),new Set()),l(this,_0xd95751(0x27a),null),(this[_0xd95751(0x308)]=_0xb7d4a6,this[_0xd95751(0x2b9)]=_0x23ee50,this['_collabCursorController']=_0x2c50c3,this[_0xd95751(0x2c8)]=_0x3a5123,this['_init']());}['_init'](){const _0x5c5454=_0x4c1f23;this['_sheetSkeletonManagerService'][_0x5c5454(0x2af)][_0x5c5454(0x1a7)](_0x3ae8cf(this[_0x5c5454(0x265)]),_0x59e45c(_0x526bc2=>{const _0x10007a=_0x5c5454;if(_0x526bc2){const _0x92c611=_0x526bc2[_0x10007a(0x243)];return _0x4fd693(this[_0x10007a(0x3a3)][_0x10007a(0x320)](this[_0x10007a(0x308)][_0x10007a(0xe5)]),this[_0x10007a(0x2c8)][_0x10007a(0x283)])['pipe'](_0x3d528e(([_0x4c28f6,_0x271529])=>{const _0x4fe5f2=new Map();return _0x4c28f6['forEach']((_0x366565,_0x3f7e98)=>{const _0x3d6644=_0x4c7d;if(_0x366565[_0x3d6644(0x10a)]===_0x92c611){const _0x3aa598={..._0x366565};_0x3aa598[_0x3d6644(0x30d)]=_0x271529[_0x366565[_0x3d6644(0x30d)]],_0x4fe5f2[_0x3d6644(0x329)](_0x3f7e98,_0x3aa598);}}),{'skeleton':_0x526bc2,'cursors':_0x4fe5f2};}));}return _0x570d55({'skeleton':null,'cursors':new Map()});}))[_0x5c5454(0x280)](({skeleton:_0x4ae99c,cursors:_0x263165})=>{const _0x25b2cc=_0x5c5454;this['_removeCollabCursors'](),_0x4ae99c&&this[_0x25b2cc(0xab)](_0x4ae99c,_0x263165);}),this[_0x5c5454(0x2b9)][_0x5c5454(0x2af)][_0x5c5454(0x280)](_0x521d75=>{const _0x178c7d=_0x5c5454;if(_0x521d75==null)return;const {skeleton:_0xd51fd2}=_0x521d75,{scene:_0x218b5d}=this['_context'];_0x218b5d[_0x178c7d(0x2f4)][_0x178c7d(0x14b)](_0x1b3960(_0x36c8b4=>{const _0xc244a7=_0x178c7d;var _0x672c8f,_0x293fd2;const {offsetX:_0xbb4ed2,offsetY:_0x116c64}=_0x36c8b4,{x:_0x24c9c4,y:_0x2ceb59}=_0x218b5d[_0xc244a7(0xd6)](_0x3b739f['FromArray']([_0xbb4ed2,_0x116c64])),{scaleX:_0x2831d5,scaleY:_0x3f2a4d}=_0x218b5d[_0xc244a7(0xcc)](),_0x15a40e=_0x218b5d[_0xc244a7(0x7c)](_0x14e392['VIEW_MAIN']),_0x5eb3e4=_0x218b5d['getVpScrollXYInfoByPosToVp'](_0x3b739f[_0xc244a7(0x2c1)]([_0x24c9c4,_0x2ceb59]),_0x15a40e),_0x475e62=_0xd51fd2[_0xc244a7(0x12c)](_0xbb4ed2,_0x116c64,_0x2831d5,_0x3f2a4d,_0x5eb3e4);((_0x672c8f=this['_lastPointer'])==null?void 0x0:_0x672c8f[_0xc244a7(0x97)])===_0x475e62['column']&&((_0x293fd2=this[_0xc244a7(0x27a)])==null?void 0x0:_0x293fd2[_0xc244a7(0x2ba)])===_0x475e62[_0xc244a7(0x2ba)]||this['_cursors'][_0xc244a7(0x100)](_0x408f78=>{const _0x4687f8=_0xc244a7;_0x408f78[_0x4687f8(0x3da)](_0x475e62);});},0x64));});}[_0x4c1f23(0xab)](_0x1b126f,_0xf3f0ad){const _0x5aadab=_0x4c1f23;var _0x12d946;const _0x22109a=(_0x12d946=this['_sheetSkeletonManagerService'][_0x5aadab(0x1f1)]())==null?void 0x0:_0x12d946[_0x5aadab(0x10b)];if(!_0x22109a)return;const _0x37bb38=this[_0x5aadab(0x176)]();if(!_0x37bb38)return;this[_0x5aadab(0x232)]['forEach'](_0x1bd30a=>{_0x1bd30a['makeDirty']();});const {scene:_0x56c6c2}=_0x37bb38,_0x1a213f=zr(Array['from'](_0xf3f0ad['values']()))['map'](_0x361a5d=>{const _0x16b5ca=_0x5aadab,{color:_0x3c22d0,range:_0x55a76e,name:_0x10e468,selection:_0x16bf1d,sheetID:_0x20e01c}=_0x361a5d,{startColumn:_0x15656a,startRow:_0x5ec023,endColumn:_0x575340,endRow:_0x16366a}=_0x55a76e,_0x6f75b3=_0x14b841(_0x5ec023,_0x15656a,_0x56c6c2,_0x22109a),_0x5a1026=_0x14b841(_0x16366a,_0x575340,_0x56c6c2,_0x22109a),{columnHeaderHeightAndMarginTop:_0x529303}=_0x22109a,{startX:_0x15c9a1,startY:_0x1b2911}=_0x6f75b3,{endX:_0x3c9c97,endY:_0x1ea178}=_0x5a1026,_0x3d75ee=_0x3c9c97-_0x15c9a1,_0x53200c=_0x1ea178-_0x1b2911,_0x375562={'labelPosition':_0x1b2911-_0x529303>=Le?_0x16b5ca(0x302):_0x16b5ca(0xec),'sheetID':_0x20e01c,'range':_0x55a76e,'color':_0x3c22d0,'name':_0x10e468,'selection':_0x16bf1d,'left':_0x15c9a1,'top':_0x1b2911,'width':_0x3d75ee,'height':_0x53200c,'evented':!0x1,'zIndex':qr};return new Yr(_0x10e468,_0x375562);});_0x56c6c2[_0x5aadab(0x27d)](_0x1a213f,Wr),this['_cursors']=new Set(_0x1a213f);}[_0x4c1f23(0xe6)](){const _0x325458=_0x4c1f23;var _0x351e8e;(_0x351e8e=this[_0x325458(0x232)])==null||_0x351e8e[_0x325458(0x100)](_0x393438=>_0x393438[_0x325458(0x1e4)]());}[_0x4c1f23(0x176)](){const _0x8e74c9=_0x4c1f23;return _0x24a93b(this[_0x8e74c9(0x308)]['unit'],this[_0x8e74c9(0x308)]);}};wt=Jr([mt(0x1,_0x321449(_0x3d1738)),mt(0x2,_0x321449(pe)),mt(0x3,_0x321449(_0x6f1691))],wt);function zr(_0x37503c){const _0x44054b=_0x4c1f23,_0x22ae47=new Map();return _0x37503c[_0x44054b(0x100)](_0x44e9a8=>{const _0x1de20b=_0x44054b;if(_0x22ae47['has'](_0x44e9a8[_0x1de20b(0x363)])){const _0x1bbd27=_0x22ae47[_0x1de20b(0x348)](_0x44e9a8[_0x1de20b(0x363)]);_0x1bbd27['name']+=',\x20'+_0x44e9a8[_0x1de20b(0x124)];}else _0x22ae47['set'](_0x44e9a8[_0x1de20b(0x363)],_0x44e9a8);}),Array[_0x44054b(0x126)](_0x22ae47[_0x44054b(0x3e6)]());}var N=function(){const _0x588d27=_0x4c1f23;return N=Object[_0x588d27(0x31d)]||function(_0x346e77){const _0x6bcf5f=_0x588d27;for(var _0x3c087c,_0x5ea7c9=0x1,_0xfc75e9=arguments['length'];_0x5ea7c9<_0xfc75e9;_0x5ea7c9++){_0x3c087c=arguments[_0x5ea7c9];for(var _0x2af2c5 in _0x3c087c)Object[_0x6bcf5f(0x109)][_0x6bcf5f(0x244)][_0x6bcf5f(0x3af)](_0x3c087c,_0x2af2c5)&&(_0x346e77[_0x2af2c5]=_0x3c087c[_0x2af2c5]);}return _0x346e77;},N[_0x588d27(0x8b)](this,arguments);},Zr=function(_0x8150ca,_0x2ccb5b){const _0x103820=_0x4c1f23;var _0x7c5823={};for(var _0x4ab07b in _0x8150ca)Object['prototype'][_0x103820(0x244)][_0x103820(0x3af)](_0x8150ca,_0x4ab07b)&&_0x2ccb5b[_0x103820(0x383)](_0x4ab07b)<0x0&&(_0x7c5823[_0x4ab07b]=_0x8150ca[_0x4ab07b]);if(_0x8150ca!=null&&typeof Object[_0x103820(0xb5)]==_0x103820(0x37e)){for(var _0xb2fe9c=0x0,_0x4ab07b=Object[_0x103820(0xb5)](_0x8150ca);_0xb2fe9c<_0x4ab07b['length'];_0xb2fe9c++)_0x2ccb5b[_0x103820(0x383)](_0x4ab07b[_0xb2fe9c])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x103820(0x3af)](_0x8150ca,_0x4ab07b[_0xb2fe9c])&&(_0x7c5823[_0x4ab07b[_0xb2fe9c]]=_0x8150ca[_0x4ab07b[_0xb2fe9c]]);}return _0x7c5823;},Wt=_0x2e90f2(function(_0x49ba6c,_0x3955f0){const _0x57b569=_0x4c1f23;var _0x35ad22=_0x49ba6c['icon'],_0x903635=_0x49ba6c['id'],_0x541d2c=_0x49ba6c[_0x57b569(0x1aa)],_0x82ce23=_0x49ba6c[_0x57b569(0x2e6)],_0x39b546=Zr(_0x49ba6c,['icon','id',_0x57b569(0x1aa),_0x57b569(0x2e6)]),_0x776c2a=_0x57b569(0x1de)[_0x57b569(0x13e)](_0x903635,'\x20')[_0x57b569(0x13e)](_0x541d2c||'')['trim'](),_0x581b43=_0x5ed056('_'[_0x57b569(0x13e)](to()));return ks(_0x35ad22,''['concat'](_0x903635),{'defIds':_0x35ad22[_0x57b569(0xd3)],'idSuffix':_0x581b43['current']},N({'ref':_0x3955f0,'className':_0x776c2a},_0x39b546),_0x82ce23);});function ks(_0x265f36,_0x5dd4e9,_0x5d88f3,_0x32133b,_0x566d7d){const _0x4e811c=_0x4c1f23;return _0xff9a40(_0x265f36[_0x4e811c(0x3ca)],N(N({'key':_0x5dd4e9},Qr(_0x265f36,_0x5d88f3,_0x566d7d)),_0x32133b),(eo(_0x265f36,_0x5d88f3)['children']||[])[_0x4e811c(0x17d)](function(_0x11871a,_0x271067){const _0x46e5b7=_0x4e811c;return ks(_0x11871a,''[_0x46e5b7(0x13e)](_0x5dd4e9,'-')[_0x46e5b7(0x13e)](_0x265f36[_0x46e5b7(0x3ca)],'-')['concat'](_0x271067),_0x5d88f3,void 0x0,_0x566d7d);}));}function Qr(_0x5eaa45,_0x59ba22,_0x561ad8){const _0x396ec0=_0x4c1f23;var _0x4ac996=N({},_0x5eaa45['attrs']);_0x561ad8!=null&&_0x561ad8[_0x396ec0(0x379)]&&_0x4ac996[_0x396ec0(0x291)]===_0x396ec0(0x379)&&(_0x4ac996[_0x396ec0(0x291)]=_0x561ad8['colorChannel1']);var _0xaa8075=_0x59ba22[_0x396ec0(0xd3)];return!_0xaa8075||_0xaa8075[_0x396ec0(0x78)]===0x0||(_0x5eaa45[_0x396ec0(0x3ca)]===_0x396ec0(0x2a1)&&_0x4ac996['xlink:href']&&(_0x4ac996[_0x396ec0(0x278)]=_0x4ac996[_0x396ec0(0x278)]+_0x59ba22[_0x396ec0(0xb1)]),Object[_0x396ec0(0x268)](_0x4ac996)['forEach'](function(_0x26aec5){const _0x230f1a=_0x396ec0;var _0xe364c3=_0x26aec5[0x0],_0x22db70=_0x26aec5[0x1];typeof _0x22db70==_0x230f1a(0x256)&&(_0x4ac996[_0xe364c3]=_0x22db70['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x59ba22[_0x230f1a(0xb1)],')')));})),_0x4ac996;}function eo(_0x588e9d,_0x467665){const _0x471625=_0x4c1f23;var _0x199a5d,_0x2d3085=_0x467665[_0x471625(0xd3)];return!_0x2d3085||_0x2d3085['length']===0x0?_0x588e9d:_0x588e9d[_0x471625(0x3ca)]===_0x471625(0x25f)&&(!((_0x199a5d=_0x588e9d['children'])===null||_0x199a5d===void 0x0)&&_0x199a5d[_0x471625(0x78)])?N(N({},_0x588e9d),{'children':_0x588e9d['children'][_0x471625(0x17d)](function(_0x33ca81){const _0x23dfb4=_0x471625;return typeof _0x33ca81[_0x23dfb4(0x279)]['id']==_0x23dfb4(0x256)&&_0x2d3085&&_0x2d3085[_0x23dfb4(0x383)](_0x33ca81['attrs']['id'])>-0x1?N(N({},_0x33ca81),{'attrs':N(N({},_0x33ca81[_0x23dfb4(0x279)]),{'id':_0x33ca81[_0x23dfb4(0x279)]['id']+_0x467665[_0x23dfb4(0xb1)]})}):_0x33ca81;})}):_0x588e9d;}function to(){const _0x5648bc=_0x4c1f23;return Math[_0x5648bc(0x328)]()['toString'](0x24)[_0x5648bc(0x1be)](0x2,0x8);}Wt[_0x4c1f23(0x2de)]=_0x4c1f23(0xc4);var so={'tag':_0x4c1f23(0x92),'attrs':{'fill':_0x4c1f23(0x3e2),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4c1f23(0x2d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c1f23(0x29c)},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'stroke':_0x4c1f23(0x20c),'d':_0x4c1f23(0x211),'strokeLinecap':_0x4c1f23(0x154),'strokeLinejoin':_0x4c1f23(0x154),'strokeWidth':1.2}}]},{'tag':_0x4c1f23(0x25f),'attrs':{},'children':[{'tag':_0x4c1f23(0x3a4),'attrs':{'id':_0x4c1f23(0x104)},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'fill':_0x4c1f23(0x3f6),'d':_0x4c1f23(0x21d)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Bs=_0x2e90f2(function(_0x381628,_0x9e719a){const _0x4b4765=_0x4c1f23;return _0xff9a40(Wt,Object[_0x4b4765(0x31d)]({},_0x381628,{'id':_0x4b4765(0x2a9),'ref':_0x9e719a,'icon':so}));});Bs[_0x4c1f23(0x2de)]=_0x4c1f23(0x9e);var io={'tag':_0x4c1f23(0x92),'attrs':{'fill':_0x4c1f23(0x3e2),'viewBox':_0x4c1f23(0x24a),'width':_0x4c1f23(0x2d5),'height':_0x4c1f23(0x2d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c1f23(0x1ec)},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'stroke':_0x4c1f23(0x20c),'d':_0x4c1f23(0x18f),'strokeLinecap':_0x4c1f23(0x154),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4c1f23(0x3a4),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'fill':_0x4c1f23(0x3f6),'d':_0x4c1f23(0x21d),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Vs=_0x2e90f2(function(_0x53cc5a,_0x513ded){const _0x3ce99a=_0x4c1f23;return _0xff9a40(Wt,Object[_0x3ce99a(0x31d)]({},_0x53cc5a,{'id':'on-line-single','ref':_0x513ded,'icon':io}));});Vs[_0x4c1f23(0x2de)]=_0x4c1f23(0x7b);const no=_0x4c1f23(0x24e),ro='univer-online-status-title',oo=_0x4c1f23(0x2c3),ao='univer-online',co='univer-offline',we={'onlineStatusIcon':no,'onlineStatusTitle':ro,'onlineStatus':oo,'online':ao,'offline':co};function ho(_0x19046c){const _0x2463d5=_0x4c1f23;switch(_0x19046c){case w[_0x2463d5(0x3d4)]:return _0x2463d5(0x32b);case w['CONFLICT']:return _0x2463d5(0x22a);case w[_0x2463d5(0x1c6)]:return _0x2463d5(0x1b8);case w[_0x2463d5(0x3df)]:return _0x2463d5(0x33f);case w['PENDING']:case w[_0x2463d5(0x1ca)]:case w['AWAITING_WITH_PENDING']:return _0x2463d5(0xbd);case w['SYNCED']:return _0x2463d5(0x337);}}function lo(_0x513031){const _0x3a06d4=_0x4c1f23,{status$:_0x13590f}=_0x513031,_0x1a3465=_0x481936(_0x13590f,w[_0x3a06d4(0x3df)]),_0x339073=_0x18fbb6(_0x2e153b),_0x203039=_0x18fbb6(ce),_0xff894c=_0x1a3465!==w[_0x3a06d4(0x3d4)],_0x3a20f8=_0x339073['t'](ho(_0x1a3465)),_0x36ee32=_0x42940b(we['onlineStatus'],{[we['online']]:_0xff894c,[we[_0x3a06d4(0x209)]]:!_0xff894c}),_0x480c1c=_0xff894c?_0x1e4ea9[_0x3a06d4(0x3c7)](Vs,null):_0x1e4ea9[_0x3a06d4(0x3c7)](Bs,null),_0x311d25=_0x1d425c(()=>{const _0x1f14b0=_0x3a06d4;_0xff894c||_0x203039[_0x1f14b0(0x37a)]();},[_0xff894c,_0x203039]);function _0x17cf92(){const _0x5d81db=_0x3a06d4;return _0x1e4ea9['createElement'](_0x5d81db(0x21c),{'className':_0x36ee32,'onClick':_0x311d25},_0x1e4ea9[_0x5d81db(0x3c7)](_0x5d81db(0x21c),{'className':we[_0x5d81db(0x365)]},_0x480c1c),_0x1e4ea9[_0x5d81db(0x3c7)](_0x5d81db(0x21c),{'className':we[_0x5d81db(0x261)]},_0x3a20f8));}return _0xff894c?_0x17cf92():_0x1e4ea9[_0x3a06d4(0x3c7)](_0x465a5c,{'title':_0x339073['t'](_0x3a06d4(0x2db))},_0x17cf92());}var _o=Object[_0x4c1f23(0x2e9)],uo=Object[_0x4c1f23(0x133)],fo=(_0x18b214,_0x2d3a05,_0x4c7f88,_0x2b1f3b)=>{for(var _0x11640c=_0x2b1f3b>0x1?void 0x0:_0x2b1f3b?uo(_0x2d3a05,_0x4c7f88):_0x2d3a05,_0x1c3355=_0x18b214['length']-0x1,_0x254a57;_0x1c3355>=0x0;_0x1c3355--)(_0x254a57=_0x18b214[_0x1c3355])&&(_0x11640c=(_0x2b1f3b?_0x254a57(_0x2d3a05,_0x4c7f88,_0x11640c):_0x254a57(_0x11640c))||_0x11640c);return _0x2b1f3b&&_0x11640c&&_o(_0x2d3a05,_0x4c7f88,_0x11640c),_0x11640c;},He=(_0x375278,_0x1f1169)=>(_0x2b54f6,_0x282119)=>_0x1f1169(_0x2b54f6,_0x282119,_0x375278);let Ue=class extends _0x22db72{constructor(_0x4bbe41,_0x2e5d25,_0x105acf,_0x11ac0d){const _0x4b5c9b=_0x4c1f23;super(),l(this,_0x4b5c9b(0xc8),new _0x2ec58d(w['NOT_COLLAB'])),(this[_0x4b5c9b(0x310)]=_0x4bbe41,this['_uiPartsService']=_0x2e5d25,this['_injector']=_0x105acf,this[_0x4b5c9b(0x233)]=_0x11ac0d,this[_0x4b5c9b(0x2d7)](),this[_0x4b5c9b(0x318)]());}[_0x4c1f23(0x318)](){const _0x41ac79=_0x4c1f23;this[_0x41ac79(0x248)](this[_0x41ac79(0x310)][_0x41ac79(0x2e2)][_0x41ac79(0x1a7)](_0x4e9858(()=>{const _0x228ffb=_0x41ac79,_0x3340bb=this[_0x228ffb(0x310)]['getFocusedUnit']();return _0x3340bb?this[_0x228ffb(0x233)][_0x228ffb(0x2b7)](_0x3340bb[_0x228ffb(0x34e)]()):_0x570d55(null);}),_0x4e9858(_0x2566af=>_0x2566af?_0x2566af[_0x41ac79(0x380)]:_0x570d55(w['NOT_COLLAB'])))[_0x41ac79(0x280)](_0x403240=>{const _0x536743=_0x41ac79;this['_status$'][_0x536743(0x23d)](_0x403240);}));}[_0x4c1f23(0x2d7)](){const _0x3bd6c6=_0x4c1f23;this[_0x3bd6c6(0x248)](this[_0x3bd6c6(0x284)][_0x3bd6c6(0xfd)](_0x385326[_0x3bd6c6(0x296)],()=>_0x538d64(mo({'status$':this['_status$']['asObservable']()}),this[_0x3bd6c6(0x162)])));}};Ue=fo([He(0x0,_0x375068),He(0x1,_0x3fbc73),He(0x2,_0x321449(_0x313fa0)),He(0x3,_0x321449(Ae))],Ue);function mo(_0x30089d){const {status$:_0x25c1fd}=_0x30089d;return function(){const _0x2d2e78=_0x4c7d;return _0x1e4ea9[_0x2d2e78(0x3c7)](lo,{'status$':_0x25c1fd});};}const Fs=_0x2d62b5(_0x4c1f23(0x359));var go=Object[_0x4c1f23(0x2e9)],So=Object['getOwnPropertyDescriptor'],po=(_0x2893df,_0x54fcbd,_0x36864f,_0x1386bf)=>{const _0x1afd3f=_0x4c1f23;for(var _0x165a9f=_0x1386bf>0x1?void 0x0:_0x1386bf?So(_0x54fcbd,_0x36864f):_0x54fcbd,_0x360a21=_0x2893df[_0x1afd3f(0x78)]-0x1,_0x3cb4e8;_0x360a21>=0x0;_0x360a21--)(_0x3cb4e8=_0x2893df[_0x360a21])&&(_0x165a9f=(_0x1386bf?_0x3cb4e8(_0x54fcbd,_0x36864f,_0x165a9f):_0x3cb4e8(_0x165a9f))||_0x165a9f);return _0x1386bf&&_0x165a9f&&go(_0x54fcbd,_0x36864f,_0x165a9f),_0x165a9f;},me=(_0x31a9ee,_0x4c44b7)=>(_0x2b33df,_0x5b467d)=>_0x4c44b7(_0x2b33df,_0x5b467d,_0x31a9ee);let qe=class extends _0x2dacfb{constructor(_0x245393,_0xf1fa0e,_0x59631f,_0x50becd,_0x414d9d,_0x416972){const _0x4e06e0=_0x4c1f23;super(),this[_0x4e06e0(0x148)]=_0x245393,this['_logService']=_0xf1fa0e,this['_commandService']=_0x59631f,this[_0x4e06e0(0xd7)]=_0x50becd,this[_0x4e06e0(0x3d9)]=_0x414d9d,_0x416972?_0x416972==null||_0x416972[_0x4e06e0(0x2c7)]()[_0x4e06e0(0x90)](()=>this[_0x4e06e0(0x34a)]()):(this['_logService']['debug'](_0x4e06e0(0x336),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async['_init'](){const _0xc37d66=_0x4c1f23,_0x38654e=this['_urlService']['getParam'](_0xc37d66(0x287)),_0x5bf56e=this[_0xc37d66(0x148)][_0xc37d66(0xa0)](_0xc37d66(0x1d3));if(!_0x38654e||!_0x5bf56e){this[_0xc37d66(0x128)]['debug'](_0xc37d66(0x336),_0xc37d66(0x190));return;}switch(Number(_0x5bf56e)){case H[_0xc37d66(0x10d)]:{const _0x3c7178=await this[_0xc37d66(0x19a)](_0x38654e);this[_0xc37d66(0x2ac)](_0x3c7178);break;}case H[_0xc37d66(0x11d)]:{await this[_0xc37d66(0x334)](_0x38654e);break;}default:{this[_0xc37d66(0x128)][_0xc37d66(0x17a)]('[DataLoaderController]',_0xc37d66(0xb0));break;}}}async[_0x4c1f23(0x2ac)](_0x428a46){const _0x4b915e=_0x4c1f23;await this[_0x4b915e(0x264)](_0x428a46),_0x428a46[_0x4b915e(0x123)][_0x4b915e(0x1a7)](_0x289d57(this[_0x4b915e(0x265)]))[_0x4b915e(0x280)](_0x4f3229=>{const _0x3cbf16=_0x4b915e;_0x4f3229&&this[_0x3cbf16(0xc5)](_0x4f3229);}),this['_urlService'][_0x4b915e(0x112)][_0x4b915e(0x1a7)](_0x289d57(this['dispose$']))['subscribe'](()=>this[_0x4b915e(0x264)](_0x428a46));}[_0x4c1f23(0xc5)](_0x48d6ae,_0x19b97b=!0x1){const _0x2a9375=_0x4c1f23,_0x250f7c=this[_0x2a9375(0x148)][_0x2a9375(0xa0)](_0x2a9375(0xf1));_0x48d6ae[_0x2a9375(0x1a9)]()!==_0x250f7c&&this[_0x2a9375(0x148)][_0x2a9375(0x199)](_0x2a9375(0xf1),_0x48d6ae['getSheetId'](),_0x19b97b);}async['_updateSubUnitFromURLParams'](_0x13f531){const _0x2aad15=_0x4c1f23;var _0x106810;const _0x1ce14f=this[_0x2aad15(0x148)][_0x2aad15(0xa0)](_0x2aad15(0xf1));if(!_0x1ce14f||!_0x13f531['getSheetBySheetId'](_0x1ce14f)){const _0x88041d=_0x13f531[_0x2aad15(0x2f2)]()[0x0],_0x21c651=_0x13f531[_0x2aad15(0x77)](_0x88041d);if(!_0x21c651)return;this[_0x2aad15(0xc5)](_0x21c651,!0x0),await this[_0x2aad15(0x1ef)][_0x2aad15(0x153)](_0x2ca650['id'],{'unitId':_0x13f531['getUnitId'](),'subUnitId':_0x88041d});return;}((_0x106810=_0x13f531[_0x2aad15(0x135)]())==null?void 0x0:_0x106810['getSheetId']())!==_0x1ce14f&&await this[_0x2aad15(0x1ef)][_0x2aad15(0x153)](_0x2ca650['id'],{'unitId':_0x13f531[_0x2aad15(0x34e)](),'subUnitId':_0x1ce14f});}async[_0x4c1f23(0x19a)](_0x4d5e5d){const _0x500621=_0x4c1f23;let _0x451762=0x0;const _0xd60fda=await this[_0x500621(0xd7)]['loadOfflineData'](_0x4d5e5d);return _0xd60fda&&(_0xd60fda['awaitingChangeset']||_0xd60fda[_0x500621(0x3d7)]['length']!==0x0)&&(_0x451762=_0xd60fda['rev']),_0x451762===0x0&&this[_0x500621(0x128)][_0x500621(0x20b)](_0x500621(0x336),_0x500621(0x382)),this[_0x500621(0x3d9)][_0x500621(0x201)](_0x4d5e5d,_0x451762);}async['_loadDoc'](_0xafbb0f){const _0x56578c=_0x4c1f23;let _0xec9079=0x0;const _0x3dce5a=await this[_0x56578c(0xd7)][_0x56578c(0x107)](_0xafbb0f);return _0x3dce5a&&(_0x3dce5a['awaitingChangeset']||_0x3dce5a[_0x56578c(0x3d7)][_0x56578c(0x78)]!==0x0)&&(_0xec9079=_0x3dce5a[_0x56578c(0x269)]),_0xec9079===0x0&&this['_logService']['debug'](_0x56578c(0x336),_0x56578c(0x382)),this[_0x56578c(0x3d9)][_0x56578c(0x293)](_0xafbb0f,_0xec9079);}};qe=po([me(0x0,Fs),me(0x1,_0x50688a),me(0x2,_0x265863),me(0x3,_0x321449(D)),me(0x4,_0x321449(_0x38d13f)),me(0x5,_0x9bfc3c(_0x51139b))],qe);var vo=Object[_0x4c1f23(0x2e9)],Io=Object[_0x4c1f23(0x133)],Eo=(_0x5a47d9,_0x5ca22b,_0x29d2b9,_0x103ef9)=>{for(var _0x2a9150=_0x103ef9>0x1?void 0x0:_0x103ef9?Io(_0x5ca22b,_0x29d2b9):_0x5ca22b,_0x4846d1=_0x5a47d9['length']-0x1,_0x4e7bfb;_0x4846d1>=0x0;_0x4846d1--)(_0x4e7bfb=_0x5a47d9[_0x4846d1])&&(_0x2a9150=(_0x103ef9?_0x4e7bfb(_0x5ca22b,_0x29d2b9,_0x2a9150):_0x4e7bfb(_0x2a9150))||_0x2a9150);return _0x103ef9&&_0x2a9150&&vo(_0x5ca22b,_0x29d2b9,_0x2a9150),_0x2a9150;},fs=(_0x56c699,_0x5e42eb)=>(_0x2e1544,_0x118a2d)=>_0x5e42eb(_0x2e1544,_0x118a2d,_0x56c699);const Co=_0x4c1f23(0x217),bo=_0x4c1f23(0x371);let ze=class extends _0x22db72{constructor(_0x320960,_0x2a81ce){const _0x495c39=_0x4c1f23;super(),this[_0x495c39(0x310)]=_0x320960,this['_configService']=_0x2a81ce,this['_init']();}[_0x4c1f23(0x34a)](){const _0x2f30f1=_0x4c1f23;this[_0x2f30f1(0x248)](this[_0x2f30f1(0x310)][_0x2f30f1(0x2e2)][_0x2f30f1(0x280)](()=>{const _0x3f44bd=_0x2f30f1;var _0x5c28f7;const _0x16a849=this[_0x3f44bd(0x310)]['getFocusedUnit']();let _0x3916cf=(_0x5c28f7=this[_0x3f44bd(0x132)][_0x3f44bd(0x111)](Co))!=null?_0x5c28f7:bo;_0x16a849 instanceof _0xa32c6e&&(_0x3916cf=_0x16a849[_0x3f44bd(0x124)]),document['title']=_0x3916cf;}));}};ze=Eo([fs(0x0,_0x375068),fs(0x1,_0x4d21d1)],ze);var To=Object['defineProperty'],Ro=Object[_0x4c1f23(0x133)],Oo=(_0x52f303,_0x413bf0,_0x3cccf0,_0x56fae7)=>{const _0x38b666=_0x4c1f23;for(var _0x1192ba=_0x56fae7>0x1?void 0x0:_0x56fae7?Ro(_0x413bf0,_0x3cccf0):_0x413bf0,_0x7066e7=_0x52f303[_0x38b666(0x78)]-0x1,_0x1ecae3;_0x7066e7>=0x0;_0x7066e7--)(_0x1ecae3=_0x52f303[_0x7066e7])&&(_0x1192ba=(_0x56fae7?_0x1ecae3(_0x413bf0,_0x3cccf0,_0x1192ba):_0x1ecae3(_0x1192ba))||_0x1192ba);return _0x56fae7&&_0x1192ba&&To(_0x413bf0,_0x3cccf0,_0x1192ba),_0x1192ba;},gt=(_0x30654f,_0x57ff5d)=>(_0x1a1306,_0x5b1f5e)=>_0x57ff5d(_0x1a1306,_0x5b1f5e,_0x30654f);let Ze=class{constructor(_0x579e08,_0x4ddcbb,_0x1f92ea){const _0x93c9c2=_0x4c1f23;this[_0x93c9c2(0x132)]=_0x579e08,this[_0x93c9c2(0x19f)]=_0x4ddcbb,this[_0x93c9c2(0x3ee)]=_0x1f92ea,this[_0x93c9c2(0x1ba)]();}['init'](){const _0x476d56=_0x4c1f23;this[_0x476d56(0x19f)][_0x476d56(0xa1)]({'priority':0x1,'interceptor':(_0x125874,_0x59b099)=>_0x59b099(_0x125874)[_0x476d56(0x1a7)](_0x42e091(async _0x2a1acd=>{const _0x27cd71=_0x476d56,_0x5bd926=_0x2a1acd;if(_0x5bd926['status']===0x191&&window[_0x27cd71(0x22f)](this[_0x27cd71(0x3ee)]['t'](_0x27cd71(0x2ae)))){const _0x135dcf=window['encodeURIComponent'](window[_0x27cd71(0x3b2)][_0x27cd71(0x165)]);window[_0x27cd71(0x3b2)][_0x27cd71(0x165)]=this[_0x27cd71(0x12d)]()+_0x27cd71(0x3d0)+_0x135dcf;}return _0x5bd926;}))});}[_0x4c1f23(0x12d)](){const _0x505f63=_0x4c1f23;var _0x1ca43f,_0x4679dd;const _0x3b3544=this[_0x505f63(0x132)]['getConfig'](wn),_0x1858f2=this['_configService'][_0x505f63(0x111)](L);return(_0x4679dd=(_0x1ca43f=_0x1858f2==null?void 0x0:_0x1858f2[_0x505f63(0x14a)])!=null?_0x1ca43f:_0x3b3544)!=null?_0x4679dd:Pn;}};Ze=Oo([gt(0x0,_0x4d21d1),gt(0x1,_0x321449(_0x1fbfa2)),gt(0x2,_0x321449(_0x2e153b))],Ze);var Do=Object[_0x4c1f23(0x2e9)],wo=Object[_0x4c1f23(0x133)],Po=(_0x5a4a36,_0x1750b5,_0x891e87,_0x5a2079)=>{const _0x1f0489=_0x4c1f23;for(var _0x1ea626=_0x5a2079>0x1?void 0x0:_0x5a2079?wo(_0x1750b5,_0x891e87):_0x1750b5,_0x3fb4a3=_0x5a4a36[_0x1f0489(0x78)]-0x1,_0x22d94d;_0x3fb4a3>=0x0;_0x3fb4a3--)(_0x22d94d=_0x5a4a36[_0x3fb4a3])&&(_0x1ea626=(_0x5a2079?_0x22d94d(_0x1750b5,_0x891e87,_0x1ea626):_0x22d94d(_0x1ea626))||_0x1ea626);return _0x5a2079&&_0x1ea626&&Do(_0x1750b5,_0x891e87,_0x1ea626),_0x1ea626;},ms=(_0x5fc870,_0x592e9c)=>(_0x33fa57,_0xd46c5c)=>_0x592e9c(_0x33fa57,_0xd46c5c,_0x5fc870);const yo=_0x4c1f23(0x2ca),No=_0x4c1f23(0x276);let Pt=class extends _0x22db72{constructor(_0x369fd9,_0x58d2e0){const _0x102c0b=_0x4c1f23;super(),this[_0x102c0b(0x8c)]=_0x369fd9,this['_configService']=_0x58d2e0,this[_0x102c0b(0x1fd)]();}[_0x4c1f23(0x1fd)](){const _0x39624d=_0x4c1f23,_0x18ef28=this;this['disposeWithMe'](this['_HTTPService'][_0x39624d(0xa1)]({'priority':0x3e7,'interceptor':_0x34ac01({'isMatch'(_0x4b634d){const _0x2cbf7b=_0x39624d;var _0x3c599e;if(_0x4b634d[_0x2cbf7b(0xbb)]===_0x2cbf7b(0x353)&&((_0x3c599e=_0x4b634d[_0x2cbf7b(0x3b8)])!=null&&_0x3c599e[_0x2cbf7b(0x1d2)])){const {objectID:_0x382f30,objectType:_0x5ee163}=_0x4b634d[_0x2cbf7b(0x3b8)][_0x2cbf7b(0x1d2)]||{};if(!_0x382f30||_0x5ee163===void 0x0)return!0x1;const _0x4e0730=_0x18ef28[_0x2cbf7b(0x3c5)]()+'/'+_0x5ee163+_0x2cbf7b(0x198)+_0x382f30+_0x2cbf7b(0x38c);if(_0x4b634d[_0x2cbf7b(0x121)]===_0x4e0730)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x699429){const _0xde98c=_0x39624d;var _0x32c6fc;return(_0x32c6fc=_0x699429[_0xde98c(0x3b8)])==null?void 0x0:_0x32c6fc[_0xde98c(0x1d2)];},'mergeParamsToRequest'(_0x3bd169,_0xaa5dd){const _0x22a847=_0x39624d,_0x2050b4=_0x18ef28['_getAPIPrefixPath']()+_0x22a847(0xb7),_0x3aa58a=_0x3bd169[_0x22a847(0x3cd)]((_0x34f3d5,_0x302c5f)=>{const _0x365627=_0x22a847,{unitID:_0x37a769,objectID:_0x1577ae,objectType:_0x39cc37,actions:_0x1ee6c1}=_0x302c5f;return _0x34f3d5[_0x37a769]||(_0x34f3d5[_0x37a769]={}),_0x34f3d5[_0x37a769][_0x1577ae]||(_0x34f3d5[_0x37a769][_0x1577ae]={'objectID':_0x1577ae,'objectType':_0x39cc37,'actions':[]}),_0x34f3d5[_0x37a769][_0x1577ae][_0x365627(0x33d)]['push'](..._0x1ee6c1),_0x34f3d5;},{}),_0x4765de=[];for(const _0x130edf in _0x3aa58a)for(const _0x3e2586 in _0x3aa58a[_0x130edf]){const {actions:_0x5e436d,objectType:_0x568f5b}=_0x3aa58a[_0x130edf][_0x3e2586],_0x34c6d1=[...new Set(_0x5e436d)];_0x4765de[_0x22a847(0x27c)]({'unitID':_0x130edf,'objectID':_0x3e2586,'objectType':_0x568f5b,'actions':_0x34c6d1});}return new _0x4a19a1(_0x22a847(0x353),_0x2050b4,{'headers':_0xaa5dd[_0x22a847(0x1b1)],'withCredentials':_0xaa5dd[_0x22a847(0x140)],'responseType':_0xaa5dd[_0x22a847(0x83)],'body':{'requests':_0x4765de}});}},{'distributeResult'(_0x56a15c,_0x47b889){const _0x35bd2a=_0x39624d,{objectActions:_0x2957f5}=_0x56a15c;return _0x47b889[_0x35bd2a(0x17d)](_0x48a711=>{const _0x4b7a68=_0x35bd2a,{unitID:_0x471f1a,objectID:_0x28013b,actions:_0x18c9db}=_0x48a711,_0x7676aa=_0x2957f5['find'](_0x8bd79e=>_0x8bd79e[_0x4b7a68(0x1f3)]===_0x471f1a&&_0x8bd79e[_0x4b7a68(0xa2)]===_0x28013b),_0x267060=_0x18c9db[_0x4b7a68(0x17d)](_0x2d229a=>_0x7676aa==null?void 0x0:_0x7676aa[_0x4b7a68(0x33d)]['find'](_0x3e2eae=>_0x3e2eae[_0x4b7a68(0x2fc)]===_0x2d229a))['filter'](_0x44f481=>!!_0x44f481);return{'config':_0x48a711,'result':{'actions':_0x267060,'error':_0x56a15c[_0x4b7a68(0x17a)]}};});}})}));}[_0x4c1f23(0x3c5)](){const _0x2ce926=_0x4c1f23;var _0x38bc7e,_0x2a4e71;const _0x1f27ba=this[_0x2ce926(0x132)]['getConfig'](yo),_0x212f4f=this[_0x2ce926(0x132)][_0x2ce926(0x111)](L);return(_0x2a4e71=(_0x38bc7e=_0x212f4f==null?void 0x0:_0x212f4f[_0x2ce926(0x225)])!=null?_0x38bc7e:_0x1f27ba)!=null?_0x2a4e71:No;}async[_0x4c1f23(0x39a)](_0x44c123){const _0x41de4c=_0x4c1f23,_0x2ea342=this['_getAPIPrefixPath']()+'/'+_0x44c123[_0x41de4c(0x2ef)]+_0x41de4c(0x1d9);return(await this[_0x41de4c(0x8c)][_0x41de4c(0x341)](_0x2ea342,{'body':_0x44c123}))['body']['objectID']||'';}async[_0x4c1f23(0x2b1)](_0x913f15){const _0x6afd4f=_0x4c1f23,_0x262549=this['_getAPIPrefixPath']()+_0x6afd4f(0x118);return(await this[_0x6afd4f(0x8c)]['post'](_0x262549,{'body':_0x913f15}))[_0x6afd4f(0x1d2)]['objects'];}async[_0x4c1f23(0x36e)](_0x898dd8){const _0xef5e64=_0x4c1f23,_0x2b93d3=this['_getAPIPrefixPath']()+'/'+_0x898dd8[_0xef5e64(0x2ef)]+'/object/'+_0x898dd8[_0xef5e64(0xa2)];await this['_HTTPService']['put'](_0x2b93d3,{'body':_0x898dd8});}async[_0x4c1f23(0xeb)](_0x52db98){const _0x235acc=_0x4c1f23,_0x31c40f=this['_getAPIPrefixPath']()+'/'+_0x52db98[_0x235acc(0x2ef)]+_0x235acc(0x198)+_0x52db98[_0x235acc(0xa2)]+_0x235acc(0x38c);return(await this[_0x235acc(0x8c)]['post'](_0x31c40f,{'body':_0x52db98}))[_0x235acc(0x1d2)]['actions'];}async['batchAllowed'](_0x3f7c59){const _0x138d18=_0x4c1f23,_0x3b5890=this[_0x138d18(0x3c5)]()+_0x138d18(0xb7);return(await this[_0x138d18(0x8c)][_0x138d18(0x341)](_0x3b5890,{'body':{'requests':_0x3f7c59}}))[_0x138d18(0x1d2)]['objectActions'];}async['listRoles'](_0x15c0c2){const _0x50813c=_0x4c1f23,_0x5cbc44=this[_0x50813c(0x3c5)]()+'/'+_0x15c0c2[_0x50813c(0x2ef)]+_0x50813c(0x13f),_0x4ecc26=await this[_0x50813c(0x8c)][_0x50813c(0x341)](_0x5cbc44,{'body':_0x15c0c2});return{'roles':_0x4ecc26[_0x50813c(0x1d2)][_0x50813c(0x18a)],'actions':_0x4ecc26[_0x50813c(0x1d2)]['actions']};}async['deleteCollaborator'](_0x58c28a){const _0x23a693=_0x4c1f23,_0x92f122=this[_0x23a693(0x3c5)]()+_0x23a693(0x180);await this[_0x23a693(0x8c)][_0x23a693(0xd0)](_0x92f122,{'params':{'collaboratorID':_0x58c28a['collaboratorID'],'objectID':_0x58c28a['objectID'],'unitID':_0x58c28a[_0x23a693(0x1f3)]}});}async[_0x4c1f23(0x3d3)](_0x355a31){const _0x13972e=_0x4c1f23,_0x597721=this[_0x13972e(0x3c5)]()+'/collaborator';await this[_0x13972e(0x8c)][_0x13972e(0x32d)](_0x597721,{'body':_0x355a31});}async[_0x4c1f23(0x1ea)](_0x197efa){const _0x99f4db=_0x4c1f23,_0xfa1a55=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x99f4db(0x8c)]['post'](_0xfa1a55,{'body':_0x197efa});}async[_0x4c1f23(0x2fe)](_0x5951da){const _0x1fc495=_0x4c1f23,_0x378438=this[_0x1fc495(0x3c5)]()+'/collaborator';return(await this['_HTTPService'][_0x1fc495(0x348)](_0x378438,{'params':{'objectID':_0x5951da[_0x1fc495(0xa2)],'unitID':_0x5951da[_0x1fc495(0x1f3)]}}))[_0x1fc495(0x1d2)][_0x1fc495(0x289)];}async['putCollaborators'](_0x917012){const _0x2829cb=_0x4c1f23,_0x1fbe1f=this[_0x2829cb(0x3c5)]()+_0x2829cb(0x180);await this[_0x2829cb(0x8c)][_0x2829cb(0x23a)](_0x1fbe1f,{'body':_0x917012});}};Pt=Po([ms(0x0,_0x321449(_0x1fbfa2)),ms(0x1,_0x321449(_0x4d21d1))],Pt);var Uo=Object[_0x4c1f23(0x2e9)],Mo=Object[_0x4c1f23(0x133)],Ao=(_0x4c57d3,_0x1aae63,_0x5b9bd6,_0x486e15)=>{const _0x4ad00f=_0x4c1f23;for(var _0x5538a4=_0x486e15>0x1?void 0x0:_0x486e15?Mo(_0x1aae63,_0x5b9bd6):_0x1aae63,_0x352966=_0x4c57d3[_0x4ad00f(0x78)]-0x1,_0xbe6a52;_0x352966>=0x0;_0x352966--)(_0xbe6a52=_0x4c57d3[_0x352966])&&(_0x5538a4=(_0x486e15?_0xbe6a52(_0x1aae63,_0x5b9bd6,_0x5538a4):_0xbe6a52(_0x5538a4))||_0x5538a4);return _0x486e15&&_0x5538a4&&Uo(_0x1aae63,_0x5b9bd6,_0x5538a4),_0x5538a4;},Lo=(_0x46b8c9,_0x492286)=>(_0x4e9739,_0x10c7dc)=>_0x492286(_0x4e9739,_0x10c7dc,_0x46b8c9);let Qe=class{constructor(_0xab3630){const _0x3e05a1=_0x4c1f23;this[_0x3e05a1(0x19f)]=_0xab3630,this[_0x3e05a1(0x7e)]();}['_initRequestHeader'](){const _0x1ce8db=_0x4c1f23;this[_0x1ce8db(0x19f)]['registerHTTPInterceptor']({'interceptor':(_0x48eefd,_0x4ce275)=>{const _0xafd927=_0x1ce8db,_0x4cf9a9=_0x48eefd[_0xafd927(0x1b1)],_0x22fd3a=_0x575ac8();return _0x22fd3a&&_0x4cf9a9[_0xafd927(0x329)](_0xafd927(0x249),_0x22fd3a),_0x4ce275(_0x48eefd);}});}};Qe=Ao([Lo(0x0,_0x321449(_0x1fbfa2))],Qe);var $o=Object['defineProperty'],jo=Object['getOwnPropertyDescriptor'],xo=(_0x1fe0e0,_0xeeba48,_0x5e2167,_0x21cc00)=>{const _0x54995b=_0x4c1f23;for(var _0x226d7f=_0x21cc00>0x1?void 0x0:_0x21cc00?jo(_0xeeba48,_0x5e2167):_0xeeba48,_0x576b24=_0x1fe0e0[_0x54995b(0x78)]-0x1,_0x1c5933;_0x576b24>=0x0;_0x576b24--)(_0x1c5933=_0x1fe0e0[_0x576b24])&&(_0x226d7f=(_0x21cc00?_0x1c5933(_0xeeba48,_0x5e2167,_0x226d7f):_0x1c5933(_0x226d7f))||_0x226d7f);return _0x21cc00&&_0x226d7f&&$o(_0xeeba48,_0x5e2167,_0x226d7f),_0x226d7f;},St=(_0x52f609,_0x4397a8)=>(_0x5e77a8,_0x4dae57)=>_0x4397a8(_0x5e77a8,_0x4dae57,_0x52f609);const Ho=['image/png',_0x4c1f23(0xca),_0x4c1f23(0x1d4),_0x4c1f23(0x372),_0x4c1f23(0xa6)],ko=0x5*0x400*0x400,Bo=_0x4c1f23(0x3d8),Vo=_0x4c1f23(0x2a3),Fo=_0x4c1f23(0x22e),Wo='/universer-api/file/{fileID}/sign-url';let yt=class{constructor(_0x11f57b,_0x45d1b9,_0x2476db){const _0x58a533=_0x4c1f23;l(this,_0x58a533(0x376),0x0),l(this,_0x58a533(0x1f9),new _0xacaad6()),l(this,_0x58a533(0x26c),this[_0x58a533(0x1f9)]),l(this,_0x58a533(0x21b),new Map()),(this[_0x58a533(0x19f)]=_0x11f57b,this[_0x58a533(0x132)]=_0x45d1b9,this[_0x58a533(0x310)]=_0x2476db);}['setWaitCount'](_0x319468){const _0x36025d=_0x4c1f23;this['_waitCount']=_0x319468,this[_0x36025d(0x1f9)][_0x36025d(0x23d)](_0x319468);}[_0x4c1f23(0x28e)](_0x11fc23,_0x5a3c10){const _0x1d0a54=_0x4c1f23;if(_0x5a3c10===_0x1946dd[_0x1d0a54(0x10e)]){const _0x211e14=new Image();return _0x211e14[_0x1d0a54(0x181)]=_0x11fc23,_0x211e14;}return this['_imageSourceCache'][_0x1d0a54(0x348)](_0x11fc23);}[_0x4c1f23(0x246)](_0x1d3f27,_0x1022ae,_0x121c12){const _0x2cacfc=_0x4c1f23;_0x1022ae===_0x1946dd[_0x2cacfc(0x10e)]||_0x121c12==null||this[_0x2cacfc(0x21b)][_0x2cacfc(0x329)](_0x1d3f27,_0x121c12);}async['getImage'](_0x388338){const _0x57f0c0=_0x4c1f23;try{const _0xd04b4d=this[_0x57f0c0(0x196)](this[_0x57f0c0(0x16b)](),''+_0x388338),_0x2fbdd9=(await this[_0x57f0c0(0x19f)]['get'](_0xd04b4d))['body'];if(_0x2fbdd9['error']&&_0x2fbdd9['error'][_0x57f0c0(0x397)]===Ms['OK']){const _0x43331c=new URL(_0x2fbdd9[_0x57f0c0(0x121)],this[_0x57f0c0(0x1b3)]())['toString']();return Promise[_0x57f0c0(0x3be)](_0x43331c);}return Promise[_0x57f0c0(0x15f)](_0x2fbdd9[_0x57f0c0(0x17a)]);}catch(_0x4b8547){return Promise[_0x57f0c0(0x15f)](_0x4b8547);}}async[_0x4c1f23(0xe7)](_0x274d14){const _0x41d423=_0x4c1f23;let _0x476683='';if(!Ho[_0x41d423(0x116)](_0x274d14['type']))return this[_0x41d423(0x2f9)](),Promise[_0x41d423(0x15f)](new Error(_0x1f89ce['ERROR_IMAGE_TYPE']));if(_0x274d14['size']>ko)return this[_0x41d423(0x2f9)](),Promise[_0x41d423(0x15f)](new Error(_0x1f89ce['ERROR_EXCEED_SIZE']));try{const _0x28e239=new FormData();_0x28e239[_0x41d423(0x344)](_0x41d423(0x207),_0x274d14);const _0x5d2b28=this[_0x41d423(0x310)]['getFocusedUnit'](),_0x6f69fd=_0x5d2b28==null?void 0x0:_0x5d2b28[_0x41d423(0x34e)]();if(!_0x6f69fd)throw new Error(_0x41d423(0x95));const _0x17bcde=this[_0x41d423(0x79)]()+'?size='+_0x274d14[_0x41d423(0x151)]['toString']()+_0x41d423(0x235)+As[_0x41d423(0x304)]+'&assign='+encodeURIComponent(_0x6f69fd),_0x4a3e32=await(await fetch(_0x17bcde,{'method':_0x41d423(0x353),'body':_0x28e239}))[_0x41d423(0x3ba)]();if(typeof _0x4a3e32[_0x41d423(0x3b0)]!=_0x41d423(0x256))return this[_0x41d423(0x2f9)](),Promise['reject'](new Error(_0x1f89ce['ERROR_IMAGE']));_0x476683=_0x4a3e32[_0x41d423(0x3b0)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x1f89ce['ERROR_IMAGE']));}return new Promise((_0x536f7c,_0x2d6d34)=>{const _0xc2ee4=_0x41d423,_0x2cb691=new FileReader();_0x2cb691[_0xc2ee4(0x255)](_0x274d14),_0x2cb691['onload']=_0x272a76=>{const _0xc51e30=_0xc2ee4;var _0x39ac4f;const _0x2783ac=(_0x39ac4f=_0x272a76[_0xc51e30(0x2b2)])==null?void 0x0:_0x39ac4f[_0xc51e30(0x2c5)];if(_0x2783ac==null){this[_0xc51e30(0x2f9)](),_0x2d6d34(new Error(_0x1f89ce[_0xc51e30(0x2f1)]));return;}const _0x48903f=_0x403f58[_0xc51e30(0xf0)](0x6);_0x536f7c({'imageId':_0x48903f,'imageSourceType':_0x1946dd[_0xc51e30(0x26a)],'source':_0x476683,'base64Cache':_0x2783ac,'status':_0x1f89ce[_0xc51e30(0x33e)]}),this[_0xc51e30(0x2f9)]();};});}['_getUploadFileURL'](){const _0x19af33=_0x4c1f23;var _0xfb99d4,_0x13db58;const _0x311580=this[_0x19af33(0x132)][_0x19af33(0x111)](Bo),_0x53ebfb=this[_0x19af33(0x132)][_0x19af33(0x111)](L);return(_0x13db58=(_0xfb99d4=_0x53ebfb==null?void 0x0:_0x53ebfb[_0x19af33(0x241)])!=null?_0xfb99d4:_0x311580)!=null?_0x13db58:Vo;}['_getSignURL'](){const _0x56be6c=_0x4c1f23;var _0x4fabe8,_0x5470e7;const _0x3bab7e=this[_0x56be6c(0x132)]['getConfig'](Fo),_0x1fe6a7=this[_0x56be6c(0x132)][_0x56be6c(0x111)](L);return(_0x5470e7=(_0x4fabe8=_0x1fe6a7==null?void 0x0:_0x1fe6a7['signUrlServerUrl'])!=null?_0x4fabe8:_0x3bab7e)!=null?_0x5470e7:Wo;}[_0x4c1f23(0x1b3)](){const _0x1ea07e=_0x4c1f23;var _0x519be2;const _0x4047f8=this[_0x1ea07e(0x132)][_0x1ea07e(0x111)](L);return(_0x519be2=_0x4047f8==null?void 0x0:_0x4047f8['downloadEndpointUrl'])!=null?_0x519be2:location[_0x1ea07e(0xe3)];}[_0x4c1f23(0x196)](_0x3529d1,_0x253db9){const _0x340a07=_0x4c1f23;return _0x3529d1[_0x340a07(0x18e)](_0x340a07(0x178),_0x253db9);}[_0x4c1f23(0x2f9)](){const _0x58ca30=_0x4c1f23;this[_0x58ca30(0x376)]-=0x1,this['_change$'][_0x58ca30(0x23d)](this['_waitCount']);}};yt=xo([St(0x0,_0x321449(_0x1fbfa2)),St(0x1,_0x4d21d1),St(0x2,_0x321449(_0x375068))],yt);var Go=Object['defineProperty'],Yo=Object[_0x4c1f23(0x133)],Ko=(_0x51317b,_0x582bc7,_0x3363cc,_0x2fc0d5)=>{const _0x18d4c6=_0x4c1f23;for(var _0x18ca18=_0x2fc0d5>0x1?void 0x0:_0x2fc0d5?Yo(_0x582bc7,_0x3363cc):_0x582bc7,_0x3929bb=_0x51317b[_0x18d4c6(0x78)]-0x1,_0x151fd1;_0x3929bb>=0x0;_0x3929bb--)(_0x151fd1=_0x51317b[_0x3929bb])&&(_0x18ca18=(_0x2fc0d5?_0x151fd1(_0x582bc7,_0x3363cc,_0x18ca18):_0x151fd1(_0x18ca18))||_0x18ca18);return _0x2fc0d5&&_0x18ca18&&Go(_0x582bc7,_0x3363cc,_0x18ca18),_0x18ca18;},Pe=(_0x18987c,_0x53ad4f)=>(_0x50e1a1,_0x505f4d)=>_0x53ad4f(_0x50e1a1,_0x505f4d,_0x18987c);let et=class extends _0x2dacfb{constructor(_0x9a4408,_0x5ae19d,_0x422e7a,_0x5e92e6,_0x179e4d){const _0x5ab3ad=_0x4c1f23;super(),this[_0x5ab3ad(0x162)]=_0x9a4408,this[_0x5ab3ad(0x310)]=_0x5ae19d,this[_0x5ab3ad(0x15c)]=_0x422e7a,this['_collaborationSessionService']=_0x5e92e6,this[_0x5ab3ad(0x119)]=_0x179e4d,this[_0x5ab3ad(0x240)](),this[_0x5ab3ad(0x185)]();}['_initCloseConn'](){const _0x1defeb=_0x4c1f23,_0x241736=async _0x44854b=>{const _0xef8dbb=_0x4c7d;(await this[_0xef8dbb(0x2a8)][_0xef8dbb(0x2ec)](_0x44854b))[_0xef8dbb(0x99)][_0xef8dbb(0x1a7)](_0x1f1135(_0x4fe7e2=>_0x4fe7e2[_0xef8dbb(0x186)]===_0x273d8c[_0xef8dbb(0x1d7)]),_0x3ae8cf(this['dispose$']))[_0xef8dbb(0x280)](_0x193543=>{const _0x189236=_0xef8dbb,_0x3c6a78=_0x193543,{reason:_0x19bd48}=_0x3c6a78[_0x189236(0x339)];this[_0x189236(0x162)]['get'](_0x5d3b7c)[_0x189236(0x160)]({'type':_0x57eb36[_0x189236(0xcd)],'content':this['_localeService']['t'](_0x189236(0x29e))+'('+_0x19bd48+')'}),this[_0x189236(0x15c)][_0x189236(0xb6)](new _0x42c12f(_0x44854b)['id'],!0x1),this[_0x189236(0x2a8)][_0x189236(0x89)](_0x44854b);});};_0x5de0ce(this[_0x1defeb(0x310)][_0x1defeb(0x3f7)](_0x4c91c9[_0x1defeb(0x10d)]),this['_univerInstanceService'][_0x1defeb(0x3f7)](_0x4c91c9[_0x1defeb(0x11d)]))['pipe'](_0x3d528e(_0x385708=>_0x385708[_0x1defeb(0x34e)]()),_0x1f1135(_0x3ad20f=>!_0x46dc72(_0x3ad20f)),_0x3ae8cf(this[_0x1defeb(0x265)]))[_0x1defeb(0x280)](_0x4c291a=>{_0x241736(_0x4c291a);});}[_0x4c1f23(0x240)](){const _0x3d169c=_0x4c1f23,_0x6342=async _0x37811c=>{const _0x4d4163=_0x4c7d;(await this[_0x4d4163(0x2a8)][_0x4d4163(0x2ec)](_0x37811c))[_0x4d4163(0x99)][_0x4d4163(0x1a7)](_0x1f1135(_0x487ac7=>_0x487ac7['eventID']===_0x273d8c[_0x4d4163(0x2c9)]),_0x3ae8cf(this[_0x4d4163(0x265)]))[_0x4d4163(0x280)](_0x310fd0=>{const _0xfd56fc=_0x4d4163,_0x164e2e=_0x310fd0,{objectId:_0x192fd4}=_0x164e2e[_0xfd56fc(0x339)],_0x5a0420=this['_injector']['get'](_0x293481);_0x192fd4===_0x37811c?_0x5a0420[_0xfd56fc(0x3de)](_0x37811c):_0x5a0420['refreshPermission'](_0x37811c,_0x192fd4);});};_0x5de0ce(this[_0x3d169c(0x310)][_0x3d169c(0x3f7)](_0x4c91c9['UNIVER_SHEET']),this[_0x3d169c(0x310)][_0x3d169c(0x3f7)](_0x4c91c9[_0x3d169c(0x11d)]))[_0x3d169c(0x1a7)](_0x3d528e(_0x172dea=>_0x172dea[_0x3d169c(0x34e)]()),_0x1f1135(_0x2982b2=>!_0x46dc72(_0x2982b2)),_0x3ae8cf(this['dispose$']))['subscribe'](_0x3ce3a9=>{_0x6342(_0x3ce3a9);});}};et=Ko([Pe(0x0,_0x321449(_0x313fa0)),Pe(0x1,_0x375068),Pe(0x2,_0x52f39f),Pe(0x3,_0x321449(ce)),Pe(0x4,_0x321449(_0x2e153b))],et);var Xo=Object[_0x4c1f23(0x2e9)],Jo=Object[_0x4c1f23(0x133)],qo=(_0x158150,_0x30b1ca,_0x35aa81,_0x2a9490)=>{const _0x44e480=_0x4c1f23;for(var _0x7d06c8=_0x2a9490>0x1?void 0x0:_0x2a9490?Jo(_0x30b1ca,_0x35aa81):_0x30b1ca,_0x317a76=_0x158150[_0x44e480(0x78)]-0x1,_0x303401;_0x317a76>=0x0;_0x317a76--)(_0x303401=_0x158150[_0x317a76])&&(_0x7d06c8=(_0x2a9490?_0x303401(_0x30b1ca,_0x35aa81,_0x7d06c8):_0x303401(_0x7d06c8))||_0x7d06c8);return _0x2a9490&&_0x7d06c8&&Xo(_0x30b1ca,_0x35aa81,_0x7d06c8),_0x7d06c8;},gs=(_0x3fe6fd,_0x2beb97)=>(_0x3fccd3,_0x2aa934)=>_0x2beb97(_0x3fccd3,_0x2aa934,_0x3fe6fd);let Nt=class{constructor(_0x2d6011,_0x2fbe54){const _0x2a349e=_0x4c1f23;this[_0x2a349e(0x132)]=_0x2d6011,this[_0x2a349e(0x19f)]=_0x2fbe54;}async[_0x4c1f23(0x134)](_0xe02aec,_0x15245b){const _0x443fda=_0x4c1f23;var _0x3716ce;const {unitID:_0x32d875,type:_0x4d8c99,revision:_0x1c3dbc=0x0}=_0x15245b,_0x5d17b7=this['_getSnapshotAPIPrefix']()+'/'+_0x4d8c99+_0x443fda(0x3e1)+_0x32d875+'/rev/'+_0x1c3dbc,_0x21b0b6=(await this[_0x443fda(0x19f)][_0x443fda(0x348)](_0x5d17b7))[_0x443fda(0x1d2)],_0x308c68=(_0x3716ce=_0x21b0b6['snapshot'])==null?void 0x0:_0x3716ce[_0x443fda(0x245)];if(_0x308c68){const _0x54942b=_0x308c68==null?void 0x0:_0x308c68[_0x443fda(0x15b)],_0x421e8b=_0x2c535e[_0x443fda(0xe2)](_0x58e839(_0x54942b));_0x308c68[_0x443fda(0x15b)]=_0x421e8b,Object['entries'](_0x308c68[_0x443fda(0x88)])[_0x443fda(0x100)](([,_0x5dad7a])=>{const _0x5d82aa=_0x443fda,_0x4d4bd5=_0x5dad7a[_0x5d82aa(0x15b)],_0x5af493=_0x2c535e[_0x5d82aa(0xe2)](_0x58e839(_0x4d4bd5));_0x5dad7a[_0x5d82aa(0x15b)]=_0x5af493;});}return _0x21b0b6;}async[_0x4c1f23(0xaa)](_0x137743,_0x16905b){const _0x2497bc=_0x4c1f23,{unitID:_0x34e997,type:_0x2361f8,blockID:_0x5b20eb}=_0x16905b,_0x53bd32=this[_0x2497bc(0x2cf)]()+'/'+_0x2361f8+_0x2497bc(0x3e1)+_0x34e997+_0x2497bc(0x82)+_0x5b20eb;return(await this[_0x2497bc(0x19f)][_0x2497bc(0x348)](_0x53bd32))['body'];}async['getDeserializedSheetBlock'](_0x4a1501,_0xb1f19){const _0xcec57d=_0x4c1f23,{unitID:_0x2a7799,type:_0x593a52,blockID:_0x23f784}=_0xb1f19,_0x329e96=this[_0xcec57d(0x2cf)]()+_0xcec57d(0x82)+_0x593a52+'/unit/'+_0x2a7799+_0xcec57d(0x82)+_0x23f784;return(await this['_httpService'][_0xcec57d(0x348)](_0x329e96))[_0xcec57d(0x1d2)];}async[_0x4c1f23(0x156)](_0x3b0eba,_0x3246cb){const _0x2b5bc1=_0x4c1f23,{unitID:_0x89e701,type:_0x448d4e,from:_0x263997,to:_0x28e48b}=_0x3246cb,_0x4447e8=this['_getAPIPrefix']()+'/'+_0x448d4e+_0x2b5bc1(0x3e1)+_0x89e701+_0x2b5bc1(0x33b)+_0x263997+_0x2b5bc1(0x2eb)+_0x28e48b;return(await this[_0x2b5bc1(0x19f)][_0x2b5bc1(0x348)](_0x4447e8))[_0x2b5bc1(0x1d2)];}[_0x4c1f23(0xea)](){const _0x26605=_0x4c1f23;var _0x5870d0;return(_0x5870d0=this[_0x26605(0x132)][_0x26605(0x111)](mn))!=null?_0x5870d0:this['_getAPIPrefix']();}[_0x4c1f23(0x2cf)](){const _0x238588=_0x4c1f23;var _0x5a0953,_0x2aa118;const _0x54a779=this['_configService']['getConfig'](dn),_0x55803b=this[_0x238588(0x132)]['getConfig'](L);return(_0x2aa118=(_0x5a0953=_0x55803b==null?void 0x0:_0x55803b[_0x238588(0x139)])!=null?_0x5a0953:_0x54a779)!=null?_0x2aa118:fn;}async[_0x4c1f23(0x2f0)](_0xe6e3ee,_0x1258f5){const _0x166c14=_0x4c1f23,_0x52d4f5=_0x166c14(0x216)+_0x1258f5[_0x166c14(0x1d3)]+_0x166c14(0x3e1)+_0x1258f5[_0x166c14(0x1f3)]+_0x166c14(0x31a);return(await this[_0x166c14(0x19f)]['get'](_0x52d4f5,{'params':{'resourceId':JSON['stringify'](_0x1258f5[_0x166c14(0x3e0)])}}))[_0x166c14(0x1d2)];}[_0x4c1f23(0x2d1)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x5c1fc0=_0x4c1f23;throw new Error(_0x5c1fc0(0x73));}[_0x4c1f23(0xde)](){const _0x2ecc70=_0x4c1f23;throw new Error(_0x2ecc70(0x73));}[_0x4c1f23(0x1ab)](){const _0x3e9fd0=_0x4c1f23;throw new Error(_0x3e9fd0(0x73));}};Nt=qo([gs(0x0,_0x4d21d1),gs(0x1,_0x321449(_0x1fbfa2))],Nt);var zo=Object[_0x4c1f23(0x2e9)],Zo=Object['getOwnPropertyDescriptor'],Qo=(_0x501642,_0x19384c,_0x3704a4,_0x5f2f15)=>{const _0x18c7e6=_0x4c1f23;for(var _0x3fd2d1=_0x5f2f15>0x1?void 0x0:_0x5f2f15?Zo(_0x19384c,_0x3704a4):_0x19384c,_0x369403=_0x501642[_0x18c7e6(0x78)]-0x1,_0xb1066e;_0x369403>=0x0;_0x369403--)(_0xb1066e=_0x501642[_0x369403])&&(_0x3fd2d1=(_0x5f2f15?_0xb1066e(_0x19384c,_0x3704a4,_0x3fd2d1):_0xb1066e(_0x3fd2d1))||_0x3fd2d1);return _0x5f2f15&&_0x3fd2d1&&zo(_0x19384c,_0x3704a4,_0x3fd2d1),_0x3fd2d1;},ye=(_0x51a7d1,_0x5bf99f)=>(_0x203c44,_0x41650c)=>_0x5bf99f(_0x203c44,_0x41650c,_0x51a7d1);let Ut=class extends _0x2d287d{constructor(_0x3a01ae,_0x3ce015,_0x698998,_0x31c227,_0x3b744c){super(_0x3a01ae,_0x3ce015,_0x698998),this['_transformService']=_0x31c227,this['_logService']=_0x3b744c;}[_0x4c1f23(0x2bc)](_0xc5a02f,_0xb3b029){const _0x31df5c=_0x4c1f23,_0x1413ae=this['_getUndoStack'](_0xc5a02f);if(_0x1413ae)try{const _0x45f0d9=this['_transformStack'](_0x1413ae,_0xb3b029);this[_0x31df5c(0x38a)](_0xc5a02f,_0x45f0d9);}catch(_0x14081f){this[_0x31df5c(0x128)]['error'](_0x31df5c(0x319),_0x14081f),this[_0x31df5c(0x13a)](_0xc5a02f);}const _0x3c2374=this[_0x31df5c(0xaf)](_0xc5a02f);if(_0x3c2374)try{const _0x39c21e=this['_transformStack'](_0x3c2374,_0xb3b029);this[_0x31df5c(0x3bd)](_0xc5a02f,_0x39c21e);}catch(_0x2e98ca){this['_logService'][_0x31df5c(0x17a)](_0x2e98ca),this[_0x31df5c(0x3c8)](_0xc5a02f);}}[_0x4c1f23(0x13a)](_0x480e6d){const _0x10c3f6=_0x4c1f23,_0x1373a9=this[_0x10c3f6(0x3b6)](_0x480e6d);_0x1373a9&&(_0x1373a9[_0x10c3f6(0x78)]=0x0,this[_0x10c3f6(0x7f)]());}[_0x4c1f23(0x3c8)](_0x6148ac){const _0x52c34c=_0x4c1f23,_0x552da3=this['_getRedoStack'](_0x6148ac);_0x552da3&&(_0x552da3[_0x52c34c(0x78)]=0x0,this[_0x52c34c(0x7f)]());}[_0x4c1f23(0x38a)](_0x54c295,_0x59ed6c){const _0x47c581=_0x4c1f23;this['_undoStacks'][_0x47c581(0x329)](_0x54c295,_0x59ed6c),this[_0x47c581(0x7f)]();}[_0x4c1f23(0x3bd)](_0x573ea8,_0x2e08c2){const _0x1e6614=_0x4c1f23;this[_0x1e6614(0x1bd)][_0x1e6614(0x329)](_0x573ea8,_0x2e08c2),this['_updateStatus']();}[_0x4c1f23(0x164)](_0x326379,_0x5c2a55){const _0x209577=_0x4c1f23,_0x962588=[];let _0x2a7a9d=_0x5c2a55,_0x440239=_0x5c2a55;for(let _0x97c83b=_0x326379[_0x209577(0x78)]-0x1;_0x97c83b>=0x0;_0x97c83b--){const {unitID:_0x5bdbc5,undoMutations:_0x3a870f,redoMutations:_0x885321}=_0x326379[_0x97c83b],_0x4e0c9c=this[_0x209577(0x2ce)]['transformMutationsWithChangeset'](_0x2a7a9d,_0x3a870f),_0x219ffb=this[_0x209577(0x2ce)][_0x209577(0xbf)](_0x440239,_0x885321);if(_0x54fa31(_0x4e0c9c)||_0x54fa31(_0x219ffb)){this['_logService'][_0x209577(0x17a)](_0x209577(0x319),_0x209577(0x1fa),_0x4e0c9c,_0x219ffb);break;}_0x2a7a9d=_0x4e0c9c[_0x209577(0x85)],_0x440239=_0x219ffb['c1Prime'],_0x962588[_0x209577(0x27c)]({'unitID':_0x5bdbc5,'undoMutations':_0x4e0c9c[_0x209577(0x101)],'redoMutations':_0x219ffb['m2Prime']});}return _0x962588[_0x209577(0x103)]();}};Ut=Qo([ye(0x0,_0x375068),ye(0x1,_0x265863),ye(0x2,_0x163f08),ye(0x3,_0x56767e),ye(0x4,_0x50688a)],Ut);class ea extends _0x2dacfb{constructor(){const _0x58a577=_0x4c1f23;super(),l(this,_0x58a577(0x112)),this[_0x58a577(0x112)]=_0x1e2c02(window,'popstate')[_0x58a577(0x1a7)](_0x289d57(this[_0x58a577(0x265)]),_0xb96cea(0x1),_0x5810d1(void 0x0));}[_0x4c1f23(0x199)](_0x57b0b8,_0x27e870,_0x4a5550=!0x1){const _0x5ea994=_0x4c1f23,_0x2f0252=new URL(window['location'][_0x5ea994(0x165)]);_0x2f0252[_0x5ea994(0xb2)][_0x5ea994(0x329)](_0x57b0b8,_0x27e870),_0x4a5550?window['history']['replaceState']('','',_0x2f0252[_0x5ea994(0x226)]()):window['history']['pushState']('','',_0x2f0252['toString']());}[_0x4c1f23(0x331)](_0x31641b,_0x3a81e6=!0x1){const _0x432f92=_0x4c1f23,_0x559541=new URL(window[_0x432f92(0x3b2)][_0x432f92(0x165)]);_0x559541[_0x432f92(0xb2)]['delete'](_0x31641b),_0x3a81e6?window[_0x432f92(0x399)][_0x432f92(0x1f6)]('','',_0x559541[_0x432f92(0x226)]()):window[_0x432f92(0x399)][_0x432f92(0x1e2)]('','',_0x559541['toString']());}[_0x4c1f23(0xa0)](_0x11fd4c){const _0x21fbc9=_0x4c1f23;var _0x413502;return(_0x413502=new URL(window['location']['href'])['searchParams'][_0x21fbc9(0x348)](_0x11fd4c))!=null?_0x413502:void 0x0;}}var Ws=Object[_0x4c1f23(0x2e9)],ta=Object[_0x4c1f23(0x133)],sa=(_0x13b63d,_0xd4a9d3,_0x5b3b9d)=>_0xd4a9d3 in _0x13b63d?Ws(_0x13b63d,_0xd4a9d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b3b9d}):_0x13b63d[_0xd4a9d3]=_0x5b3b9d,ia=(_0x221d4c,_0x1e6e43,_0x107220,_0x5353d4)=>{for(var _0x56cdf1=_0x5353d4>0x1?void 0x0:_0x5353d4?ta(_0x1e6e43,_0x107220):_0x1e6e43,_0x1f40f2=_0x221d4c['length']-0x1,_0x2ba653;_0x1f40f2>=0x0;_0x1f40f2--)(_0x2ba653=_0x221d4c[_0x1f40f2])&&(_0x56cdf1=(_0x5353d4?_0x2ba653(_0x1e6e43,_0x107220,_0x56cdf1):_0x2ba653(_0x56cdf1))||_0x56cdf1);return _0x5353d4&&_0x56cdf1&&Ws(_0x1e6e43,_0x107220,_0x56cdf1),_0x56cdf1;},ke=(_0x31ba63,_0x104238)=>(_0x1efcee,_0x532f53)=>_0x104238(_0x1efcee,_0x532f53,_0x31ba63),na=(_0x52eeb0,_0x4c3dc3,_0x47709d)=>sa(_0x52eeb0,_0x4c3dc3+'',_0x47709d);const ra=_0x4c1f23(0xe1);let Mt=class extends _0x43f0d0{constructor(_0x1e43d1=yn,_0x54d00d,_0x50ddb6,_0x26b044,_0x3b8d85){const _0x5c67bf=_0x4c1f23;super(),this[_0x5c67bf(0x1bb)]=_0x1e43d1,this['_logService']=_0x54d00d,this['_renderManagerService']=_0x50ddb6,this['_injector']=_0x26b044,this['_configService']=_0x3b8d85;const {..._0x173d19}=this[_0x5c67bf(0x1bb)];this[_0x5c67bf(0x132)][_0x5c67bf(0x102)](L,_0x173d19);}[_0x4c1f23(0xa9)](){const _0x4db76a=_0x4c1f23;this[_0x4db76a(0xe4)](),_0x50ed8d(this[_0x4db76a(0x162)],[[pe],[qe],[et]]);}[_0x4c1f23(0x350)](){const _0x2d9c8f=_0x4c1f23;_0x50ed8d(this[_0x2d9c8f(0x162)],[[ze]]);}[_0x4c1f23(0x273)](){const _0x596b09=_0x4c1f23;this[_0x596b09(0x38e)]();}[_0x4c1f23(0xe4)](){const _0x45b3f7=_0x4c1f23;var _0x1ccf22,_0x472eb3,_0x5ef82d,_0x1ba141;this['_injector']['has'](_0x2fbed3)&&this['_logService'][_0x45b3f7(0x17a)](_0x45b3f7(0x342),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x21af32=[[_0x2fbed3,{'useClass':Ut}],[ce],[Ft],[_0x1fbfa2],[Fs,{'useClass':ea}],[ae],[D],[_0x57aa72],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0x472eb3=(_0x1ccf22=this[_0x45b3f7(0x1bb)])==null?void 0x0:_0x1ccf22[_0x45b3f7(0x39d)])!=null?_0x472eb3:Et}],[_0x147a26,{'useClass':_0x5d6c50}],[_0x4c90dd,{'useClass':Nt}],[_0x2eeda2,{'useClass':Pt}],[_0x74670d,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x5ef82d=this[_0x45b3f7(0x1bb)])!=null&&_0x5ef82d['enableSingleActiveInstanceLock']&&_0x21af32[_0x45b3f7(0x27c)]([tt,{'useClass':rr}]),_0x21af32=_0x1588d5(_0x21af32,(_0x1ba141=this[_0x45b3f7(0x1bb)])==null?void 0x0:_0x1ba141[_0x45b3f7(0x1a2)]),_0x21af32['forEach'](_0x14ea91=>this[_0x45b3f7(0x162)]['add'](_0x14ea91)),this['_initModules']();}[_0x4c1f23(0x38e)](){const _0x2de209=_0x4c1f23;this['disposeWithMe'](this[_0x2de209(0x333)]['registerRenderModule'](_0x4c91c9[_0x2de209(0x11d)],[Dt])),this['disposeWithMe'](this['_renderManagerService'][_0x2de209(0x1c8)](_0x4c91c9[_0x2de209(0x10d)],[wt]));}[_0x4c1f23(0x2b4)](){const _0x75b607=_0x4c1f23;var _0x56019d,_0x7761a1;this['_injector']['get'](_0x1fbfa2)[_0x75b607(0xa1)]({'priority':0x14,'interceptor':_0x537a47({'maxParallel':0x6})}),this['_injector'][_0x75b607(0x348)](Qe),(_0x56019d=this['_config'])!=null&&_0x56019d[_0x75b607(0x114)]||this[_0x75b607(0x162)][_0x75b607(0x348)](D)[_0x75b607(0x3a2)](),(_0x7761a1=this[_0x75b607(0x1bb)])!=null&&_0x7761a1['enableAuthServer']&&this[_0x75b607(0x162)][_0x75b607(0x348)](Ze),this[_0x75b607(0x162)][_0x75b607(0x348)](Ae),this[_0x75b607(0x162)][_0x75b607(0x20e)](Ue)&&this[_0x75b607(0x162)][_0x75b607(0x348)](Ue);}};na(Mt,'pluginName',ra),Mt=ia([_0x4869be(_0x229d30),ke(0x1,_0x50688a),ke(0x2,_0x3f9a6b),ke(0x3,_0x321449(_0x313fa0)),ke(0x4,_0x4d21d1)],Mt);export{yo as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,Je as CollaborationEntity,Ct as CollaborationSession,ce as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,lo as CollaborationStatusDisplay,$s as CommentService,qe as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Ls as ICollaborationSocketService,Fs as IURLService,yt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,Oa as SEND_CHANGESET_TIMEOUT_KEY,dn as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,G as SessionStatus,Yr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,ea as WebURLService,Nn as deserializeToCombResponse,Un as serializeCombRequest};