@univerjs-pro/collaboration-client 0.5.5-nightly.202501220324 → 0.5.5-nightly.202501221606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var _0x43e0c9=_0x5029;(function(_0x405a8d,_0x13b38f){var _0x185800=_0x5029,_0x3f18e0=_0x405a8d();while(!![]){try{var _0x1f4e85=-parseInt(_0x185800(0x1ab))/0x1*(-parseInt(_0x185800(0x168))/0x2)+parseInt(_0x185800(0x1d8))/0x3+parseInt(_0x185800(0x2db))/0x4*(parseInt(_0x185800(0x1c1))/0x5)+parseInt(_0x185800(0x169))/0x6+parseInt(_0x185800(0x41e))/0x7*(parseInt(_0x185800(0x3d8))/0x8)+parseInt(_0x185800(0x253))/0x9+parseInt(_0x185800(0x3f6))/0xa*(-parseInt(_0x185800(0x301))/0xb);if(_0x1f4e85===_0x13b38f)break;else _0x3f18e0['push'](_0x3f18e0['shift']());}catch(_0x55769b){_0x3f18e0['push'](_0x3f18e0['shift']());}}}(_0x2fa0,0x5f826));var __defProp=Object[_0x43e0c9(0x1bc)],__defNormalProp=(_0x3c0992,_0x3ad421,_0x395262)=>_0x3ad421 in _0x3c0992?__defProp(_0x3c0992,_0x3ad421,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x395262}):_0x3c0992[_0x3ad421]=_0x395262,__name=(_0x63f3be,_0x9677aa)=>__defProp(_0x63f3be,_0x43e0c9(0x3e4),{'value':_0x9677aa,'configurable':!0x0}),__publicField=(_0x5a894e,_0x233ba0,_0x53c099)=>__defNormalProp(_0x5a894e,typeof _0x233ba0!=_0x43e0c9(0x149)?_0x233ba0+'':_0x233ba0,_0x53c099);import{createIdentifier,Inject,Injector,Disposable,DisposableCollection,toDisposable,IConfigService,ILogService,UserManagerService,UniverInstanceType,IUniverInstanceService,LocaleService,Optional,RxDisposable,Tools,Rectangle,ICommandService,JSONX,CommandType,IPermissionService,IUndoRedoService,sequenceExecute,Workbook,MentionType,IAuthzIoService,isInternalEditorID,LocalUndoRedoService,IContextService,DependentOn,Plugin,merge as _0x523ccd,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x4af4d9,map as _0x14d6b6,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x3e796d}from'rxjs/operators';import{HTTPService,ISocketService,MergeInterceptorFactory,HTTPRequest,UniverNetworkPlugin,ThresholdInterceptorFactory}from'@univerjs/network';import{CollaborationEvent,parseChangesetToProtocol,ISnapshotServerService,isTransformMutationsWithChangesetSuccess,ITransformService,mapDocumentTypeToUniverType,RevisionService,isTransformChangesetsSuccess,CompressMutationService,parseProtocolChangeset,SnapshotService,textEncoder,b64DecodeUnicode,isTransformMutationsWithChangesetFailure,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';import{ITelemetryService}from'@univerjs/telemetry';import{RichTextEditingMutation}from'@univerjs/docs';import{SheetsSelectionsService,SetSelectionsOperation,InsertSheetMutation,EmptyMutation,WorkbookEditablePermission,SheetPermissionInitController,UniverSheetsPlugin}from'@univerjs/sheets';import{ImageSourceType,ImageUploadStatusType,IImageIoService}from'@univerjs/drawing';import{getGlobalObject}from'@univerjs-pro/license';const SNAPSHOT_SERVER_URL_KEY='SNAPSHOT_SERVER_URL_KEY',DEFAULT_SNAPSHOT_SERVER_URL='/universer-api/snapshot',SNAPSHOT_URL_KEY='SNAPSHOT_URL_KEY',SEND_CHANGESET_TIMEOUT_KEY=_0x43e0c9(0x17c),DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY=_0x43e0c9(0x2d6),DEFAULT_COLLAB_WEB_SOCKET_URL=_0x43e0c9(0x170),DEFAULT_WS_SESSION_TICKET_URL=_0x43e0c9(0x321),HEARTBEAT_INTERVAL_KEY=_0x43e0c9(0x326),DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY=_0x43e0c9(0xf7),DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY='RETRY_CONNECTING_MAX_COUNT',DEFAULT_RETRY_CONNECTING_MAX_COUNT=0x3,LOCAL_CACHE_INTERVAL_KEY=_0x43e0c9(0x1c9),LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY='COLLAB_SUBMIT_CHANGESET_URL',DEFAULT_COLLAB_SUBMIT_CHANGESET_URL=_0x43e0c9(0x424),LOGIN_URL_KEY='LOGIN_URL_KEY',DEFAULT_LOGIN_URL=_0x43e0c9(0x217),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY=_0x43e0c9(0x2dd),DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT=_0x43e0c9(0x2a5);var ErrorCode=(_0xaf126e=>(_0xaf126e[_0xaf126e['UNDEFINED']=0x0]=_0x43e0c9(0x16b),_0xaf126e[_0xaf126e['OK']=0x1]='OK',_0xaf126e[_0xaf126e[_0x43e0c9(0x156)]=0x2]=_0x43e0c9(0x156),_0xaf126e[_0xaf126e[_0x43e0c9(0x2bb)]=0x3]=_0x43e0c9(0x2bb),_0xaf126e[_0xaf126e[_0x43e0c9(0x344)]=0x4]=_0x43e0c9(0x344),_0xaf126e[_0xaf126e[_0x43e0c9(0x1a1)]=0x5]=_0x43e0c9(0x1a1),_0xaf126e[_0xaf126e[_0x43e0c9(0x409)]=0x6]=_0x43e0c9(0x409),_0xaf126e[_0xaf126e[_0x43e0c9(0x299)]=0x7]=_0x43e0c9(0x299),_0xaf126e[_0xaf126e['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0xaf126e[_0xaf126e[_0x43e0c9(0x1b8)]=0x9]='COMPLETION_FINISHED',_0xaf126e[_0xaf126e[_0x43e0c9(0x408)]=0x1389]=_0x43e0c9(0x408),_0xaf126e[_0xaf126e[_0x43e0c9(0x1fe)]=0x1771]=_0x43e0c9(0x1fe),_0xaf126e[_0xaf126e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xaf126e[_0xaf126e['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x43e0c9(0x3c6),_0xaf126e[_0xaf126e['APPLY_REJECT']=0x1b59]=_0x43e0c9(0x21a),_0xaf126e[_0xaf126e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x43e0c9(0x428),_0xaf126e[_0xaf126e[_0x43e0c9(0x247)]=0x1b5b]=_0x43e0c9(0x247),_0xaf126e[_0xaf126e[_0x43e0c9(0x19a)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xaf126e[_0xaf126e[_0x43e0c9(0x3d4)]=0x1b5d]=_0x43e0c9(0x3d4),_0xaf126e[_0xaf126e[_0x43e0c9(0x18a)]=0x1f41]=_0x43e0c9(0x18a),_0xaf126e[_0xaf126e[_0x43e0c9(0x35e)]=0x2329]=_0x43e0c9(0x35e),_0xaf126e[_0xaf126e[_0x43e0c9(0x3df)]=0x232a]=_0x43e0c9(0x3df),_0xaf126e[_0xaf126e[_0x43e0c9(0x3ef)]=0x232b]=_0x43e0c9(0x3ef),_0xaf126e[_0xaf126e[_0x43e0c9(0x339)]=0x232c]=_0x43e0c9(0x339),_0xaf126e[_0xaf126e[_0x43e0c9(0x2ec)]=0x232d]=_0x43e0c9(0x2ec),_0xaf126e[_0xaf126e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x43e0c9(0x257),_0xaf126e[_0xaf126e[_0x43e0c9(0x242)]=0x2712]=_0x43e0c9(0x242),_0xaf126e[_0xaf126e[_0x43e0c9(0x222)]=0x2713]=_0x43e0c9(0x222),_0xaf126e[_0xaf126e[_0x43e0c9(0x1a3)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xaf126e[_0xaf126e[_0x43e0c9(0x3e5)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0xaf126e[_0xaf126e[_0x43e0c9(0x18e)]=-0x1]=_0x43e0c9(0x18e),_0xaf126e))(ErrorCode||{}),UniverType=(_0x46cb73=>(_0x46cb73[_0x46cb73[_0x43e0c9(0x2fc)]=0x0]=_0x43e0c9(0x2fc),_0x46cb73[_0x46cb73[_0x43e0c9(0x199)]=0x1]='UNIVER_DOC',_0x46cb73[_0x46cb73[_0x43e0c9(0x202)]=0x2]='UNIVER_SHEET',_0x46cb73[_0x46cb73[_0x43e0c9(0x2ee)]=0x3]=_0x43e0c9(0x2ee),_0x46cb73[_0x46cb73[_0x43e0c9(0x440)]=0x4]=_0x43e0c9(0x440),_0x46cb73[_0x46cb73[_0x43e0c9(0x18e)]=-0x1]=_0x43e0c9(0x18e),_0x46cb73))(UniverType||{}),CombCmd=(_0x5430eb=>(_0x5430eb[_0x5430eb['UNKNOWN_CMD']=0x0]=_0x43e0c9(0x412),_0x5430eb[_0x5430eb['HELLO']=0x1]=_0x43e0c9(0x343),_0x5430eb[_0x5430eb[_0x43e0c9(0x3ba)]=0x2]=_0x43e0c9(0x3ba),_0x5430eb[_0x5430eb[_0x43e0c9(0x190)]=0x3]=_0x43e0c9(0x190),_0x5430eb[_0x5430eb[_0x43e0c9(0x137)]=0x4]=_0x43e0c9(0x137),_0x5430eb[_0x5430eb['HEARTBEAT']=0x5]=_0x43e0c9(0x3e0),_0x5430eb[_0x5430eb[_0x43e0c9(0x1d3)]=0x6]=_0x43e0c9(0x1d3),_0x5430eb[_0x5430eb['UNRECOGNIZED']=-0x1]=_0x43e0c9(0x18e),_0x5430eb))(CombCmd||{}),CmdRspCode=(_0x4e4e52=>(_0x4e4e52[_0x4e4e52['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x4e4e52[_0x4e4e52['OK']=0x1]='OK',_0x4e4e52[_0x4e4e52[_0x43e0c9(0x1f3)]=0x2]=_0x43e0c9(0x1f3),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x163)]=0x3e9]=_0x43e0c9(0x163),_0x4e4e52[_0x4e4e52['JOIN_ROOM_NOT_EXISTS']=0x3ea]=_0x43e0c9(0x2e4),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x2f5)]=0x3eb]=_0x43e0c9(0x2f5),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x384)]=0x3ec]=_0x43e0c9(0x384),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x18e)]=-0x1]=_0x43e0c9(0x18e),_0x4e4e52))(CmdRspCode||{}),FileSource=(_0x25b0b7=>(_0x25b0b7[_0x25b0b7[_0x43e0c9(0x3d0)]=0x0]=_0x43e0c9(0x3d0),_0x25b0b7[_0x25b0b7[_0x43e0c9(0x1b1)]=0x1]=_0x43e0c9(0x1b1),_0x25b0b7[_0x25b0b7[_0x43e0c9(0x198)]=0x2]='HttpExport',_0x25b0b7[_0x25b0b7[_0x43e0c9(0x382)]=0x3]=_0x43e0c9(0x382),_0x25b0b7[_0x25b0b7['UnitSnapshot']=0x4]=_0x43e0c9(0x18c),_0x25b0b7[_0x25b0b7[_0x43e0c9(0x18e)]=-0x1]='UNRECOGNIZED',_0x25b0b7))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0x43e0c9(0x122),defaultPluginConfig={};var CollaborationUIEventId=(_0x1ee9b3=>(_0x1ee9b3[_0x43e0c9(0x240)]=_0x43e0c9(0x240),_0x1ee9b3[_0x43e0c9(0x2bb)]=_0x43e0c9(0x2bb),_0x1ee9b3[_0x43e0c9(0x2a0)]='CONFLICT',_0x1ee9b3[_0x43e0c9(0x309)]=_0x43e0c9(0x309),_0x1ee9b3[_0x43e0c9(0x2b6)]=_0x43e0c9(0x2b6),_0x1ee9b3[_0x43e0c9(0x135)]=_0x43e0c9(0x135),_0x1ee9b3[_0x43e0c9(0x42d)]=_0x43e0c9(0x42d),_0x1ee9b3[_0x43e0c9(0x26f)]=_0x43e0c9(0x26f),_0x1ee9b3))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){__publicField(this,'_event$',new Subject()),__publicField(this,'event$',this['_event$']['asObservable']());}[_0x43e0c9(0x43a)](_0x1c8846){var _0xfcaf7d=_0x43e0c9;this[_0xfcaf7d(0x228)][_0xfcaf7d(0x2e5)](_0x1c8846);}};__name(_CollaborationUIEventService,_0x43e0c9(0x19f));let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier(_0x43e0c9(0x375));function deserializeToCombResponse(_0x325601){var _0x16b6f7=_0x43e0c9,_0x5e96c5,_0x513ecd,_0x379eba,_0x24f282,_0x5baf52;const _0x5641d5=_0x325601[_0x16b6f7(0x14c)],_0x4a8973=JSON['parse'](_0x5641d5);switch(_0x4a8973['cmd']){case CombCmd[_0x16b6f7(0x3e0)]:case CombCmd[_0x16b6f7(0x343)]:{const _0x1696ae=_0x4a8973['infoRsp'];return{..._0x4a8973,'data':_0x1696ae,'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};}case CombCmd[_0x16b6f7(0x3ba)]:{const _0x171bd0=_0x4a8973[_0x16b6f7(0x1e6)];return{..._0x4a8973,'data':_0x171bd0,'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};}case CombCmd[_0x16b6f7(0x1d3)]:{const _0x5111c4=_0x4a8973[_0x16b6f7(0x165)];switch(_0x5111c4[_0x16b6f7(0x25d)]){case CollaborationEvent[_0x16b6f7(0x3db)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x5e96c5=_0x5111c4[_0x16b6f7(0x2b1)])==null?void 0x0:_0x5e96c5['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x24c)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x513ecd=_0x5111c4[_0x16b6f7(0x3b7)])==null?void 0x0:_0x513ecd['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent['NEW_CHANGESETS']:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x379eba=_0x5111c4[_0x16b6f7(0x1e8)])==null?void 0x0:_0x379eba['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x26d)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x24f282=_0x5111c4['csRejEvent'])==null?void 0x0:_0x24f282['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent['CHANGESET_SHOULD_RETRY']:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x5baf52=_0x5111c4[_0x16b6f7(0x333)])==null?void 0x0:_0x5baf52['cs']},'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x38d)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x260)]},'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x1c4)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['joinEvent']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x2fe)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['leaveEvent']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x209)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x136)]},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:case CollaborationEvent[_0x16b6f7(0x132)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x232)]},'cmd':_0x4a8973['cmd']};case CollaborationEvent['LIVESHARE_TERMINATE']:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x136)]},'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x292)]:return{..._0x4a8973,'data':_0x5111c4,'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x11a)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['commentUpdateEvent']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x348)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x14d)]},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x1aa)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['shouldCloseConn']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x24b)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x361)]},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};default:return _0x4a8973;}}default:return _0x4a8973;}}__name(deserializeToCombResponse,_0x43e0c9(0x19c));function serializeCombRequest(_0x2a4325){var _0x33a7dc=_0x43e0c9;switch(_0x2a4325[_0x33a7dc(0x1fb)]){case CombCmd[_0x33a7dc(0x3e0)]:case CombCmd[_0x33a7dc(0x343)]:return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325['routeKey']});case CombCmd[_0x33a7dc(0x137)]:{let _0x2fe129;switch(_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x25d)]){case CollaborationEvent[_0x33a7dc(0x38d)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x38d)],'updateCursorEvent':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent[_0x33a7dc(0x2fe)]:{_0x2fe129={'eventID':CollaborationEvent['USERS_LEAVE'],'leaveEvent':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent['USERS_ENTER']:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x1c4)],'joinEvent':_0x2a4325[_0x33a7dc(0x14c)]['data']};break;}case CollaborationEvent[_0x33a7dc(0x209)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x209)],'liveShareNewHost':_0x2a4325[_0x33a7dc(0x14c)]['data']};break;}case CollaborationEvent[_0x33a7dc(0x132)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x132)],'liveShareOperation':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent[_0x33a7dc(0x3b1)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x3b1)],'liveShareTerminate':_0x2a4325['data'][_0x33a7dc(0x14c)]};break;}case CollaborationEvent[_0x33a7dc(0x23c)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x23c)],'liveShareRequestHost':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x302)]};break;}default:_0x2fe129={'eventID':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x25d)]};}return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325[_0x33a7dc(0x33f)],'collaMsg':_0x2fe129});}case CombCmd['JOIN']:return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325['routeKey'],'joinReq':_0x2a4325[_0x33a7dc(0x14c)]});case CombCmd[_0x33a7dc(0x190)]:return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325[_0x33a7dc(0x33f)],'leaveReq':_0x2a4325[_0x33a7dc(0x14c)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}function _0x2fa0(){var _0x1e8311=['[OfflineState]:\x20received\x20acknowledgement.','AuthServerService','has','authzUrl','type','LIVESHARE_TERMINATE','words','session.room-permission-denied','_lockTransition','synced','_transformRemoteChangesetByIMECache','csAckEvent','_initUnitPermissionChange','_transformStack','JOIN','sigBytes','loadDoc','_handler','online$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_revisionService','image/jpeg','onCommentUpdate','removeMember','onTransformState','requireSha1','ENSURE_SNAPSHOT_EXECUTION','reverse','copyFileMeta','repeat','_updateState','_replaceFileID','Hasher','handleCloseConn','__decorateClass$5','_onJoinRoomEvent','Undefined','change$','pad','image/png','APPLY_DUPLICATED','_collabSessionService','replace','collaboration-client.local-cache-service','66536YiLcTA','transformSelections','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','PERMISSION_REJ','_updateLocalCache','_localeService','_showConflictNotification','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','HEARTBEAT','resolve','/universer-api/snapshot/','__defNormalProp','name','PY_RUNTIME_SCRIPT_ERROR','fetch_missing','function','SUBMIT_CHANGESET','changesets','memberID','parse','hasOwnProperty','withCredentials','resend','LICENSE_IMPORT_SIZE_EXCEEDED','Cipher','Latin1','awaitingChangeset','createTimerObservable$','_loadSheet','/rev/','21951980tbUmjB','executeCommand','DataLoaderService','_onConnectionOpen','Utf8','AuthzIoHttpService','_createHandler','readAsDataURL','_syncEditingCollabCursor','keySize','SheetTransformSelectionsService','createOnlineState','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_injector','onTransformRemoteChangesetByStateCache','_sender','_onRemoteRetry','_startCollaboration','CHANGESET_REVISION_CONFILICT','ALREADY_EXISTS','_incrementRevisionNumber','members$','_registerDependencies','__esModule','subject','/unit/','__decorateClass$d','confirm','UNKNOWN_CMD','setShowComponents','splice','body','readInt32LE','members','decrypt','loadSheet','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','socket$','reject','closeSession','483WkNmtB','_onCombEvent','_eventService','socket\x20close','batchAllowed','objects','/universer-api/comb','getAttachHeader','finalize','message$','APPLY_NON_SEQUENTIAL_REVISION','_timeoutTimer','enableOfflineEditing','_tryEnsureSocket','handleUnitPermissionChange','SOCKET_FAILED','__decorateClass$2','_socket$','getTypeOfUnitAdded$','_submitChangeset','catch','method','image/jpg','socketService','generateRandomId','_clearRedo','rev','textRanges','emitEvent','__decorateParam$1','_rescheduleHeartbeat','getMember','post','FETCH_MISS','UNIVER_PROJECT','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','unitID','commentUpdate$','_roomCreated$','_getCtorByUniverType','_getSessionTicket','BufferedBlockAlgorithm','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','json','saveSheetBlock','UUID','MD5','params','_initRequestHeader','result','duration','pkcs7Padding','/new_changes','HEARTBEAT_TIMEOUT','[CollaborationEntity]','__decorateParam$4','m2Prime','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','fetchMissingChangesets','state$','_removeRoom','stringify','_append','_onMessage','[FetchMissState]','encode','_unitID','min','_doProcessBlock','_socketMessageSubscription','__decorateParam$g','ciphertext','extend','updatePermissionPoint','getValue','__decorateParam$i','_candidateSocket','SyncedState','default','_transformUndoredo','[DataLoaderService]','headers','/-/object/list','_transformSelections','set','CBC','_snapshotService','push','COMMENT_UPDATE','_roomMembers','unsubscribe','execute','onTransformRemoteChangesetByIMECache','_logService','_nRounds','location','collaboration-client.config','status','range','_collaborationPaused','getFocusedUnit','_collaborationUIEventService','getDeserializedSheetBlock','_redoStacks','__decorateParam$d','_onRemoteACK','POST','startsWith','map','MentionIoHttpService','ERROR_IMAGE','_minBufferSize','LIVESHARE_OPERATION','socket\x20open.','searchParams','SOCKET_FAILED_RETRY','liveShareNewHost','INGEST','padding','_config','/object/','_oKey','_members','[PendingState]:\x20received\x20acknowledgement.','_getCurrentRevision','SerializableCipher','filter','_httpService','_doReset','__decorateClass$4','roles','prototype','actions','_getDownloadEndpointURL','CollaborationImageIoService','symbol','getActiveSheet','file','data','updatePermissionObjEvent','_cipher','event$','PERSON','_toggleOffline','addImageSourceCache','JOINING','clamp','close$','INTERNAL_ERROR','_socketReady','_undoRedoService','_permissionService','_createSocketURL','_prevBlock','image/gif','equals','_createInitialState','getConfig','/role','collabSubmitChangesetUrl','hostname','JOIN_ROOM_FULL','unpad','collaMsg','createEncryptor','resourceIDs','2arccjG','568602NOoYaW','_compressMutationService','UNDEFINED','_listenToNetworkCondition','mixIn','registerHTTPInterceptor','_entities','ws://127.0.0.1:8000/universer-api/comb/connect','_onOffline','_throwTelemetryCollaborationNewChangeset','onTransformIME','ERROR_EXCEED_SIZE','terminateWithError','__decorateClass$a','responseType','/allowed','ivSize','string','_retryCount','SEND_CHANGESET_TIMEOUT','__decorateParam$5','HMAC','SHA1','_instanceService','\x20-\x20','__decorateParam$8','BlockCipherMode','_commentUpdate$','reqId','assembleDocChangeset','_http','_onRemoteRejected','MUTATION','CONNECTOR_DATA_TOO_LARGE','__decorateClass','UnitSnapshot','requireHmac','UNRECOGNIZED','disposeWithMe','LEAVE','baseRev','_scheduleCompleteTimestamp','_substituteRedoStack','_checkMissing','onMissingChangesets','_map','[CollaborationSession]','HttpExport','UNIVER_DOC','APPLY_PERMISSION_DENIED','failed\x20to\x20apply\x20missed\x20changesets!','deserializeToCombResponse','_waitCount','_init','CollaborationUIEventService','[OfflineState]:\x20received\x20rejection.','UNAUTHENTICATED','_substituteUndoStack','YUUMI_SUBSCRIPTION_NOT_FOUND','_keyPriorReset','onMissedChangesetFetched','mode','_clearScheduledTask','compute','getCollabEntity','SHOULD_CLOSE_CONN','49751oPPjKh','put','xorBlock','_commandService','connection\x20error','CHANGESET_SHOULD_RETRY','HttpImport','_tryReconnect','signUrlServerUrl','CipherParams','_singleActiveUnitService','/object','_HTTPService','COMPLETION_FINISHED','setCurrentUser','_onConflict','sendChangesetTimeout','defineProperty','loginUrlKey','PasswordBasedCipher','clear','getCurrentRevOfUnit','615MyNeNX','get','_changesetReqId','USERS_ENTER','_pendingMutations','[SyncedState]:\x20received\x20acknowledgement.','_isPermissionRej','error','LOCAL_CACHE_INTERVAL','reconnect','now','_onLocalMutation','auth.needGotoLoginAlert','_iv','pauseCollaboration','&assign=','univer-pro.collaboration-client-socket-service','&source=','RECV','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','byteLength','session.join-failed','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','2322207IsBWXU','__decorateClass$8','crypto','/-/object/-/batch_allowed','_createInitialStateImpl','_getLoginPath','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_state$','setWaitCount','sin','toggleOnline','_createHelper','$super','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','joinRsp','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','newCsEvent','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','slice','__decorateClass$6','_getUploadFileURL','NOT_COLLAB','_createSocket','c1Prime','pipe','getImageSourceCache','BlockCipher','FAIL','src','_resendTimeout','requireLibTypedarrays','_retryConnectingTimer','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_schedule','_remoteChangesetQueue','cmd','AwaitingWithPendingState','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','SNAPSHOT_INVALID_SNAPSHOT','getInterceptPoints','patch','_keySchedule','UNIVER_SHEET','_type','OPTIONAL','runId','transformUndoRedo','complete','enableAuthServer','LIVESHARE_NEW_HOST','sheets','target','sid','_awaitingChangeset','x-univer-host','findIndex','__decorateParam$3','{fileID}','CollaborationState','_onRemoteChangeset','close','__decorateClass$3','_initCloseConn','/universer-api/oidc/authpage','?url=','_clearUndo','APPLY_REJECT','_initMergeInterceptor','init','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_executeRemoteChangeset','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','onRemoteChangeset','DomainRequestService','YUUMI_RATE_OVER_LIMIT','hasher','[UniverCollaborationClientPlugin]','unknown','__decorateClass$b','_transformStateCache','_event$','_clearTimeoutTimer','\x20in\x20_schedule.','toString','awaiting_with_pending','random','_onFetchMissResult','createCollaborator','getTime','EvpKDF','liveShareOperation','length','getSheetId','updateCollaborator','[PendingState]:\x20received\x20rejection.','_shouldReportTelemetry','override','_updateStatus','size','__decorateClass$g','LIVESHARE_REQUEST_HOST','Malformed\x20UTF-8\x20data','_telemetryService','image/bmp','OTHER_CLIENT_EDITING','PendingState','YUUMI_URL_COL_OUT_OF_RANGE','then','OfflineState','mutations','_handlerCallback','APPLY_REVISION_CONFILICT','_mode','_configService','isPermissionRej','UNISCRIPT_RUN','CHANGESET_ACK','_decreaseWaiting','url','requireEvpkdf','onTransformSelections','_stopTelemetryCollaborationNewChangeset','_memberService','4054779oUWlqN','_commentService','extractTargetFromFirstChangeset','_unlockTransition','YUUMI_UNABLE_LOAD_URL','kdf','SUCCUSS','listCollaborators','dispose','commonjsRequire','eventID','_toggleOnline','updateMember','updateCursorEvent','toLowerCase','process','__decorateClass$f','_getAPIPrefix','__decorateParam$7','objectActions','revision','loadOfflineData','_scheduleCollaborationTimeoutTimer','status$','fetchMiss','deleteCollaborator','CHANGESET_REJ','People','SUBMIT_CHANGESET_TIMEOUT','[SyncedState]:\x20received\x20rejection.','_imageSourceCache','_collaborationTimeoutTimer','onRemoteRej','IDLE','\x0aAfter:\x20','Encryptor','_clearHeartbeatTimer','__decorateParam','open$','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','_joinRoom','sessionStatus$','AWAITING','_data','_doFinalize','PENDING','format','join','[CollaborationSessionService]:\x20socket\x20error','localCacheService','_entityInit$','_parse','debug','BASE64','_localCacheService','incrementRevOfUnit','_fetchMissChangesets','Could\x20not\x20dynamically\x20require\x20\x22','PSEUDO_FETCH_MISSING_RESULT','FileId','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_state','every','MSG_FOR_ERROR','Error\x20on\x20receiving\x20event','AUTHZ_URL_KEY','getRoom','Base64','getMemberID','_applyRemoteChangeset','INVALID_ARGUMENT','_createHmacHelper','snapshot','createSocket','substr','generateSubmitChangesPath','_replayCachedMutations','CONFLICT','append','Hex','sessionTicket','_loadDoc','/universer-api/uniscript','code','Decryptor','NO_OTHER_CLIENTS_EDITING','isArray','refreshPermission','pluginName','__decorateClass$1','/collaborator','avatar','pending','randomBytes','permissionRejEvent','floor','ConflictState','FetchingMissState','onRemoteAck','JOIN_ROOM_FAILED','getRandomValues','compose','_networkConditionService','apply','PERMISSION_DENIED','_queuedRemoteChangesets','_hash','OFFLINE','_resendTimer','StreamCipher','_changesetSessionId','stopTime','cryptoSecureRandomInt','onlyLocal','onLocalMutation','_onUserJoin','title','offline','exports','requireCipherCore','getUnitId','collaboration_new_changeset','reset','WordArray','msCrypto','getSheetBlock','interceptor','requireCore','\x20to\x20','/universer-api/authz','ticket','COLLAB_WEB_SOCKET_URL','[CollaborationUndoRedoService]','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','saveImage','_acknowledgedAwaitingChangeset','20924biVnXF','onSendChangeset','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_reverseMap','_sendHeartbeat','origin','_getSendChangesetTimeout','href','requestParams','JOIN_ROOM_NOT_EXISTS','next','_getRedoStack','__decorateParam$a','/block/','max','sessionStatus','collaborators','LICENSE_DISTRO_REJECTED','conflict','UNIVER_SLIDE','_ENC_XFORM_MODE','_socket','getImage','buffer','charCodeAt','charAt','JOIN_ROOM_PERMISSION_DENIED','_onUserLeave','lib','HmacMD5','COMPRESS_MUTATION_SEND','cfg','summaryChangesetSize','UNIVER_UNKNOWN','updateOfflineData','USERS_LEAVE','algo','waitForRoom$','11aCtdXP','LIVESHARE_FETCH_OPERATIONS','objectType','/resources','__decorateParam$c','requireAes','_onConnectionFailed','fetchThroughInterceptors','CLOSE_ROOM','COMPRESS_MUTATION_APPLY','_nDataBytes','blockSize','onCommandExecuted','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','formatter','ONLINE','__publicField','Base','send','call','fromCharCode','enc','listRoles','transformStack\x20failed!','_sheetTransformSelectionsService','salt','_change$','toggleOffline','downloadEndpointUrl','localeService','assembleSheetChangeset','_transformRemoteChangesetByStateCache','/universer-api/user/session-ticket','NoPadding','_getAPIPrefixPath','values','RoomMember','HEARTBEAT_INTERVAL','_status$','_onRecvEvent','add','onRemoteRetry','save\x20fail\x20reason\x20is\x20','initWorkbookPermissionChange','requireSession','_sendingTimer','telemetry\x20info\x20is\x20not\x20initialized','_univerInstanceService','abs','_sessions','csShouldRetryEvent','rng','session.room-full','state','search','unitInfo$','LICENSE_EXPORT_SIZE_EXCEEDED','getTypeOfUnitDisposed$','_process','create','error$','getOwnPropertyDescriptor','routeKey','_transitionLocked','AES','collabWebSocketUrl','HELLO','NOT_FOUND','_transformService','transformMutationsWithChangeset','getSnapshotAPIPath','UPDATE_PERMISSION_OBJ','update','dispose$','encodeURIComponent','FETCH_MISSING','_DEC_XFORM_MODE','?size=','_getUndoStack','OTHER_CLIENTS_EDITING','_xformMode','subscribe','encrypt','concat','indexOf','HmacSHA1','requireMd5','onStateChange','_members$','[CollaborationSessionService]','getCollabEntity$','_disableEditing','editing\x20status\x20changed\x20to','LICENSE_MAX_UNITS_EXCEEDED','appendMutation','_getSignURL','uniscriptRunEvent','_unitInfo$','_iKey','univer-pro.collaboration-client.single-active-unit-service','processBlock','setConfig','_hasher','onStarting','userID','FileNameController','delete','_sessionStatus$','_key','createDecryptor','_initDependencies','_userManagerService','_transformIMECache','_emitMembers','__decorateClass$c','fromCollab','univer-pro.collaboration-client.network-condition.service','randomUUID','encryptBlock','selections','_doCryptBlock','ERROR_IMAGE_TYPE','_sendHeartbeatTimer','onSyncEditingCollabCursor','CollaborationSessionService','bind','asObservable','_exhaustRemoteChangesetQueue','ceil','UnitEmbedded','clone','GLOBAL_ROOMS_CNT_EXCEEDS','not_collab','allowed','__creator','parseLoop','_authzIoService','subUnitId','unit-cache-','getUnit','UPDATE_CURSOR','unitId','saveChangeset','_startTelemetryCollaborationNewChangeset','_telemetryInfo','forEach','_snapshotServerService','objectID','getCurrentSelections','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','transformChangesets','deepClone','decryptBlock','byteOffset','CollaborationSocketService','session','fetching\x20missing\x20changesets\x20from\x20','createInstance','collaboratorID','_resendWithTimeout','originalMeta','capture','getCurrentUser','_waitForHeartbeatResponse','_clearLocalCache','awaiting','SYNCED','Pkcs7','_collaborationSessionService','OpenSSL'];_0x2fa0=function(){return _0x1e8311;};return _0x2fa0();}__name(serializeCombRequest,'serializeCombRequest');var __defProp$i=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$i=Object[_0x43e0c9(0x33e)],__decorateClass$i=__name((_0x3e77b1,_0x19a17e,_0x538ec3,_0x36e9f9)=>{var _0x5a9f3a=_0x43e0c9;for(var _0x490aa7=_0x36e9f9>0x1?void 0x0:_0x36e9f9?__getOwnPropDesc$i(_0x19a17e,_0x538ec3):_0x19a17e,_0x4dfc82=_0x3e77b1[_0x5a9f3a(0x233)]-0x1,_0x231c28;_0x4dfc82>=0x0;_0x4dfc82--)(_0x231c28=_0x3e77b1[_0x4dfc82])&&(_0x490aa7=(_0x36e9f9?_0x231c28(_0x19a17e,_0x538ec3,_0x490aa7):_0x231c28(_0x490aa7))||_0x490aa7);return _0x36e9f9&&_0x490aa7&&__defProp$i(_0x19a17e,_0x538ec3,_0x490aa7),_0x490aa7;},'__decorateClass$i'),__decorateParam$i=__name((_0x512dca,_0x251eea)=>(_0x20f6dc,_0x4d0ca0)=>_0x251eea(_0x20f6dc,_0x4d0ca0,_0x512dca),_0x43e0c9(0x10d));const ICollaborationSocketService=createIdentifier(_0x43e0c9(0x1d1));function generateSubmitChangesPath(_0x253bf5,_0x4cb89a,_0x511e6e){var _0x56d922=_0x43e0c9;return _0x253bf5+'/'+_0x4cb89a+_0x56d922(0x40f)+_0x511e6e+_0x56d922(0xf6);}__name(generateSubmitChangesPath,_0x43e0c9(0x29e));var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0x290320,_0x5b1930,_0x17c26e,_0x3de643,_0x5835a3){var _0xacc825=_0x43e0c9;super(),this['_injector']=_0x290320,this[_0xacc825(0x187)]=_0x5b1930,this[_0xacc825(0x249)]=_0x17c26e,this[_0xacc825(0x11f)]=_0x3de643,this[_0xacc825(0x393)]=_0x5835a3;}[_0x43e0c9(0x29c)](_0x16ea35){var _0x1aea68=_0x43e0c9;const _0x1f490a=this['_injector'][_0x1aea68(0x1c2)](ISocketService);if(!_0x1f490a)throw new Error(_0x1aea68(0x402));const _0x25c7d5=_0x1f490a['createSocket'](_0x16ea35);if(!_0x25c7d5)throw new Error(_0x1aea68(0x1e7));const _0x48a0f6=new DisposableCollection(),_0x184aa8=new Subject();_0x48a0f6[_0x1aea68(0x329)](_0x25c7d5[_0x1aea68(0x155)][_0x1aea68(0x352)](_0xb8eb9e=>_0x184aa8['next'](_0xb8eb9e))),_0x48a0f6['add'](toDisposable(()=>_0x184aa8['complete']()));const _0x22af88=new Subject();_0x48a0f6['add'](_0x25c7d5[_0x1aea68(0x33d)][_0x1aea68(0x352)](_0xcb733d=>_0x22af88[_0x1aea68(0x2e5)](_0xcb733d))),_0x48a0f6[_0x1aea68(0x329)](toDisposable(()=>_0x22af88[_0x1aea68(0x207)]()));const _0x39c270=new Subject();_0x48a0f6[_0x1aea68(0x329)](_0x25c7d5[_0x1aea68(0x427)]['subscribe'](_0x3c05bf=>{const _0xdef5f=deserializeToCombResponse(_0x3c05bf);_0x39c270['next'](_0xdef5f);})),_0x48a0f6[_0x1aea68(0x329)](toDisposable(()=>_0x39c270[_0x1aea68(0x207)]()));let _0x268457;const _0x582415=__name(()=>{var _0x2f93e3=_0x1aea68;_0x22af88['next'](new Event(_0x2f93e3(0x1af))),_0x184aa8[_0x2f93e3(0x2e5)](new CloseEvent(_0x2f93e3(0x1af))),_0x268457['close']();},_0x1aea68(0x175));return _0x268457={'memberID':'','close$':_0x184aa8[_0x1aea68(0x37f)](),'error$':_0x22af88[_0x1aea68(0x37f)](),'open$':_0x25c7d5[_0x1aea68(0x279)],'message$':_0x39c270[_0x1aea68(0x37f)](),'send':__name(_0x1e6c5d=>{var _0x5f2833=_0x1aea68;if(_0x1e6c5d['cmd']===CombCmd[_0x5f2833(0x137)]){if(_0x1e6c5d['data'][_0x5f2833(0x25d)]===CollaborationEvent[_0x5f2833(0x3e8)]){this[_0x5f2833(0x431)](_0x268457,_0x1e6c5d['data'])[_0x5f2833(0x432)](_0x457b79=>{var _0x159753=_0x5f2833;this['_logService'][_0x159753(0x1c8)](_0x457b79),_0x582415();});return;}if(_0x1e6c5d['data']['eventID']===CollaborationEvent[_0x5f2833(0x34c)]){const _0x30481c=_0x1e6c5d[_0x5f2833(0x14c)];this[_0x5f2833(0x28b)](_0x30481c)[_0x5f2833(0x243)](_0x420b63=>{var _0x24eb16=_0x5f2833;_0x39c270[_0x24eb16(0x2e5)]({'cmd':CombCmd[_0x24eb16(0x1d3)],'code':CmdRspCode['OK'],'routeKey':_0x30481c['data'][_0x24eb16(0x442)],'routeType':'','data':{'eventID':CollaborationEvent['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x420b63}}});})[_0x5f2833(0x432)](_0x3833d1=>{var _0x4d4943=_0x5f2833;this[_0x4d4943(0x11f)][_0x4d4943(0x1c8)](_0x3833d1),_0x582415();});return;}}_0x25c7d5['send'](serializeCombRequest(_0x1e6c5d));},_0x1aea68(0x313)),'close':__name(()=>{var _0x14d35c=_0x1aea68;_0x25c7d5[_0x14d35c(0x214)](),_0x48a0f6[_0x14d35c(0x25b)]();},'close')},_0x268457;}async[_0x43e0c9(0x431)](_0x53814c,_0x106dea){var _0x5cb6cd=_0x43e0c9,_0x562336,_0x5c7f71;const {unitType:_0x41c20c,unitID:_0x4c2b3b,changeset:_0x5be064}=_0x106dea[_0x5cb6cd(0x14c)],_0x5cc30e={'unitID':_0x4c2b3b,'memberID':_0x53814c[_0x5cb6cd(0x3ea)],'type':_0x41c20c,'changeset':parseChangesetToProtocol(_0x5be064)},_0x1a35a4=this[_0x5cb6cd(0x249)]['getConfig'](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x416d36=this['_configService'][_0x5cb6cd(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x516673=generateSubmitChangesPath((_0x5c7f71=(_0x562336=_0x416d36==null?void 0x0:_0x416d36[_0x5cb6cd(0x161)])!=null?_0x562336:_0x1a35a4)!=null?_0x5c7f71:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0x41c20c,_0x4c2b3b);try{await this[_0x5cb6cd(0x187)][_0x5cb6cd(0x43e)](_0x516673,{'body':_0x5cc30e});}catch(_0x5c84ba){throw this[_0x5cb6cd(0x11f)]['error']('[CollaborationSession]','submit\x20changeset\x20error!'),_0x5c84ba;}}async[_0x43e0c9(0x28b)](_0xd8f82){var _0x1dd193=_0x43e0c9;const {unitID:_0x529b0e,from:_0xbec9c8,to:_0x25f28c,unitType:_0x35d45c}=_0xd8f82[_0x1dd193(0x14c)];return(await this[_0x1dd193(0x393)][_0x1dd193(0xfc)]({'metadata':void 0x0},{'unitID':_0x529b0e,'type':_0x35d45c,'from':_0xbec9c8,'to':_0x25f28c}))[_0x1dd193(0x3e9)];}},__name(_a,_0x43e0c9(0x39c)),_a);CollaborationSocketService=__decorateClass$i([__decorateParam$i(0x0,Inject(Injector)),__decorateParam$i(0x1,Inject(HTTPService)),__decorateParam$i(0x2,IConfigService),__decorateParam$i(0x3,ILogService),__decorateParam$i(0x4,ISnapshotServerService)],CollaborationSocketService);const TELEMETRY_COLLABORATION_NEW_CHANGESET=_0x43e0c9(0x2cc);function summaryChangesetSize(_0x4883c3){var _0x5d9e4c=_0x43e0c9;return JSON[_0x5d9e4c(0xff)](_0x4883c3)['length'];}__name(summaryChangesetSize,_0x43e0c9(0x2fb));const _CommentService=class _CommentService{constructor(){var _0x5c10d1=_0x43e0c9;__publicField(this,_0x5c10d1(0x184),new Subject()),__publicField(this,_0x5c10d1(0x443),this[_0x5c10d1(0x184)][_0x5c10d1(0x37f)]());}[_0x43e0c9(0x3c2)](_0x54d623){var _0x1d4858=_0x43e0c9;this[_0x1d4858(0x184)][_0x1d4858(0x2e5)](_0x54d623);}};__name(_CommentService,'CommentService');let CommentService=_CommentService;var __defProp$h=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$h=Object['getOwnPropertyDescriptor'],__decorateClass$h=__name((_0x32401c,_0x11f8a1,_0x17322e,_0x4f2e85)=>{var _0x49dd1f=_0x43e0c9;for(var _0xba6153=_0x4f2e85>0x1?void 0x0:_0x4f2e85?__getOwnPropDesc$h(_0x11f8a1,_0x17322e):_0x11f8a1,_0x2a8116=_0x32401c[_0x49dd1f(0x233)]-0x1,_0xea1a10;_0x2a8116>=0x0;_0x2a8116--)(_0xea1a10=_0x32401c[_0x2a8116])&&(_0xba6153=(_0x4f2e85?_0xea1a10(_0x11f8a1,_0x17322e,_0xba6153):_0xea1a10(_0xba6153))||_0xba6153);return _0x4f2e85&&_0xba6153&&__defProp$h(_0x11f8a1,_0x17322e,_0xba6153),_0xba6153;},'__decorateClass$h'),__decorateParam$h=__name((_0x192757,_0x379e89)=>(_0x33864b,_0x522999)=>_0x379e89(_0x33864b,_0x522999,_0x192757),'__decorateParam$h'),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0x1c876b,_0x180d5b){var _0x2c2455=_0x43e0c9;super(),__publicField(this,_0x2c2455(0x11b),new Map()),__publicField(this,_0x2c2455(0x444),new Subject()),(this[_0x2c2455(0x330)]=_0x1c876b,this[_0x2c2455(0x370)]=_0x180d5b,this[_0x2c2455(0x18f)](merge(this[_0x2c2455(0x330)][_0x2c2455(0x33a)](UniverInstanceType[_0x2c2455(0x202)])[_0x2c2455(0x1f0)](map(_0x176857=>_0x176857[_0x2c2455(0x2cb)]())),this['_univerInstanceService'][_0x2c2455(0x33a)](UniverInstanceType[_0x2c2455(0x199)])[_0x2c2455(0x1f0)](map(_0x343a48=>_0x343a48[_0x2c2455(0x2cb)]())),this[_0x2c2455(0x330)][_0x2c2455(0x33a)](UniverInstanceType[_0x2c2455(0x2ee)])[_0x2c2455(0x1f0)](map(_0x45228c=>_0x45228c[_0x2c2455(0x2cb)]())))[_0x2c2455(0x352)](_0x23dc57=>this[_0x2c2455(0xfe)](_0x23dc57))));}[_0x43e0c9(0x300)](_0x480eed){var _0x37316d=_0x43e0c9;return this[_0x37316d(0x11b)][_0x37316d(0x3ae)](_0x480eed)?of(this['_roomMembers'][_0x37316d(0x1c2)](_0x480eed)):this[_0x37316d(0x444)][_0x37316d(0x1f0)](map(_0x52f8f1=>{var _0x233e56=_0x37316d;if(_0x52f8f1===_0x480eed)return this[_0x233e56(0x11b)]['get'](_0x52f8f1);}));}[_0x43e0c9(0x1b9)](_0x114650){var _0x11a7a7=_0x43e0c9;this[_0x11a7a7(0x370)][_0x11a7a7(0x1b9)](_0x114650);}[_0x43e0c9(0x3a4)](){var _0x14c083=_0x43e0c9;return this['_userManagerService'][_0x14c083(0x3a4)]();}[_0x43e0c9(0x25f)](_0x28f77f,_0x1bb357){var _0x11f726=_0x43e0c9;let _0x91238e=this[_0x11f726(0x11b)]['get'](_0x28f77f);_0x91238e||(_0x91238e=new RoomMember(),this[_0x11f726(0x11b)][_0x11f726(0x116)](_0x28f77f,_0x91238e),this[_0x11f726(0x444)][_0x11f726(0x2e5)](_0x28f77f)),_0x91238e[_0x11f726(0x25f)](_0x1bb357);}[_0x43e0c9(0x3c3)](_0x170098,_0x1b45e9){var _0x1f1f68=_0x43e0c9;const _0x51204c=this[_0x1f1f68(0x11b)][_0x1f1f68(0x1c2)](_0x170098);_0x51204c&&_0x51204c[_0x1f1f68(0x3c3)](_0x1b45e9);}[_0x43e0c9(0x295)](_0xbc6642){var _0x5d2014=_0x43e0c9;return this[_0x5d2014(0x11b)]['get'](_0xbc6642);}[_0x43e0c9(0x43d)](_0x32202e,_0x1b50ac){var _0x3282a0=_0x43e0c9;const _0x2acd32=this[_0x3282a0(0x11b)][_0x3282a0(0x1c2)](_0x32202e);if(_0x2acd32)return _0x2acd32['getMember'](_0x1b50ac);}[_0x43e0c9(0xfe)](_0x46e0c9){var _0x389dc4=_0x43e0c9;const _0x34e331=this[_0x389dc4(0x11b)]['get'](_0x46e0c9);_0x34e331&&(_0x34e331[_0x389dc4(0x25b)](),this['_roomMembers'][_0x389dc4(0x36b)](_0x46e0c9));}[_0x43e0c9(0x25b)](){var _0x42bb08=_0x43e0c9;this[_0x42bb08(0x11b)][_0x42bb08(0x392)](_0x9d96bb=>_0x9d96bb[_0x42bb08(0x25b)]()),this[_0x42bb08(0x11b)][_0x42bb08(0x1bf)](),this[_0x42bb08(0x444)]['complete']();}},__name(_a2,'MemberService'),_a2);MemberService=__decorateClass$h([__decorateParam$h(0x0,IUniverInstanceService),__decorateParam$h(0x1,Inject(UserManagerService))],MemberService);const _RoomMember=class _RoomMember extends Disposable{constructor(){var _0x402e2c=_0x43e0c9;super(...arguments),__publicField(this,'_members',new Map()),__publicField(this,_0x402e2c(0x359),new BehaviorSubject(this[_0x402e2c(0x13c)])),__publicField(this,_0x402e2c(0x40b),this[_0x402e2c(0x359)]['asObservable']());}['dispose'](){var _0x3697cc=_0x43e0c9;this[_0x3697cc(0x13c)][_0x3697cc(0x1bf)]();}['updateMember'](_0x3441a4){var _0x4dadf0=_0x43e0c9;this[_0x4dadf0(0x13c)][_0x4dadf0(0x116)](_0x3441a4[_0x4dadf0(0x3ea)],_0x3441a4),this[_0x4dadf0(0x372)]();}[_0x43e0c9(0x3c3)](_0x630261){var _0x228f98=_0x43e0c9;this[_0x228f98(0x13c)]['delete'](_0x630261);}[_0x43e0c9(0x43d)](_0x4f8a62){var _0x3bb6c8=_0x43e0c9;return this[_0x3bb6c8(0x13c)]['get'](_0x4f8a62);}['getAllMembers'](){var _0x376720=_0x43e0c9;return Array['from'](this['_members'][_0x376720(0x324)]());}[_0x43e0c9(0x372)](){var _0x3f21cb=_0x43e0c9;this['_members$'][_0x3f21cb(0x2e5)](this[_0x3f21cb(0x13c)]);}};__name(_RoomMember,_0x43e0c9(0x325));let RoomMember=_RoomMember;function _0x5029(_0x140c0a,_0x8b7373){var _0x2fa050=_0x2fa0();return _0x5029=function(_0x5029c0,_0x2908f0){_0x5029c0=_0x5029c0-0xf1;var _0xcf31ea=_0x2fa050[_0x5029c0];return _0xcf31ea;},_0x5029(_0x140c0a,_0x8b7373);}var __defProp$g=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$g=Object[_0x43e0c9(0x33e)],__decorateClass$g=__name((_0x206632,_0x1efe22,_0x56e2c6,_0x381a22)=>{var _0x438899=_0x43e0c9;for(var _0x287218=_0x381a22>0x1?void 0x0:_0x381a22?__getOwnPropDesc$g(_0x1efe22,_0x56e2c6):_0x1efe22,_0x14efea=_0x206632[_0x438899(0x233)]-0x1,_0x4a9bb3;_0x14efea>=0x0;_0x14efea--)(_0x4a9bb3=_0x206632[_0x14efea])&&(_0x287218=(_0x381a22?_0x4a9bb3(_0x1efe22,_0x56e2c6,_0x287218):_0x4a9bb3(_0x287218))||_0x287218);return _0x381a22&&_0x287218&&__defProp$g(_0x1efe22,_0x56e2c6,_0x287218),_0x287218;},_0x43e0c9(0x23b)),__decorateParam$g=__name((_0x35b628,_0xdc3206)=>(_0x582ca0,_0x1e04ec)=>_0xdc3206(_0x582ca0,_0x1e04ec,_0x35b628),_0x43e0c9(0x108)),SessionStatus=(_0x359ea0=>(_0x359ea0[_0x359ea0[_0x43e0c9(0x274)]=0x0]='IDLE',_0x359ea0[_0x359ea0[_0x43e0c9(0x153)]=0x1]=_0x43e0c9(0x153),_0x359ea0[_0x359ea0[_0x43e0c9(0x2be)]=0x2]=_0x43e0c9(0x2be),_0x359ea0[_0x359ea0[_0x43e0c9(0x310)]=0x3]=_0x43e0c9(0x310),_0x359ea0))(SessionStatus||{});const FailedReason={[CmdRspCode[_0x43e0c9(0x1f3)]]:_0x43e0c9(0x1d6),[CmdRspCode[_0x43e0c9(0x163)]]:_0x43e0c9(0x335),[CmdRspCode[_0x43e0c9(0x2e4)]]:'session.room-not-exists',[CmdRspCode['JOIN_ROOM_PERMISSION_DENIED']]:_0x43e0c9(0x3b3),[CmdRspCode[_0x43e0c9(0x384)]]:'session.room-cnt-exceeds'};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x3d06d3,_0x1d7708,_0x24697f,_0x296fcf,_0x200e51,_0x394bbc,_0x4fb6f4,_0x4fe2b2,_0x533ee0){var _0x3064d0=_0x43e0c9;super(),__publicField(this,_0x3064d0(0x36c),new BehaviorSubject(0x0)),__publicField(this,'sessionStatus$',this[_0x3064d0(0x36c)][_0x3064d0(0x37f)]()),__publicField(this,_0x3064d0(0x228),new Subject()),__publicField(this,_0x3064d0(0x14f),this['_event$'][_0x3064d0(0x37f)]()),__publicField(this,_0x3064d0(0x2f0)),__publicField(this,_0x3064d0(0x107)),__publicField(this,'_collaborationTimeoutTimer'),__publicField(this,'_shouldReportTelemetry',!0x1),__publicField(this,_0x3064d0(0x391),null),(this[_0x3064d0(0x104)]=_0x3d06d3,this['_logService']=_0x24697f,this['_configService']=_0x296fcf,this['_localeService']=_0x200e51,this[_0x3064d0(0x252)]=_0x394bbc,this[_0x3064d0(0x254)]=_0x4fb6f4,this['_collaborationUIEventService']=_0x4fe2b2,this[_0x3064d0(0x23e)]=_0x533ee0,this[_0x3064d0(0x237)]=!!this[_0x3064d0(0x23e)],_0x1d7708[_0x3064d0(0x1f0)](takeUntil(this[_0x3064d0(0x34a)]))[_0x3064d0(0x352)](_0x5798ec=>{var _0xe9982=_0x3064d0,_0x340089;typeof _0x5798ec>'u'||(this[_0xe9982(0x2f0)]=_0x5798ec,_0x5798ec?(this['_joinRoom'](_0x5798ec),this['_socketMessageSubscription']=_0x5798ec[_0xe9982(0x427)][_0xe9982(0x352)](_0x4815d1=>{var _0x8823c3=_0xe9982;_0x4815d1['routeKey']===this[_0x8823c3(0x104)]&&this['_onCombEvent'](_0x4815d1);})):(this[_0xe9982(0x172)](),this[_0xe9982(0x36c)][_0xe9982(0x2e5)](0x2),(_0x340089=this['_socketMessageSubscription'])==null||_0x340089[_0xe9982(0x11c)](),this[_0xe9982(0x107)]=null));}));}get[_0x43e0c9(0x2ea)](){var _0x59ca35=_0x43e0c9;return this[_0x59ca35(0x36c)]['getValue']();}['getMemberID'](){var _0x3a0850=_0x43e0c9,_0x1aa253,_0x183b2d;return(_0x183b2d=(_0x1aa253=this[_0x3a0850(0x2f0)])==null?void 0x0:_0x1aa253['memberID'])!=null?_0x183b2d:null;}[_0x43e0c9(0x25b)](){var _0x570699=_0x43e0c9;super['dispose'](),this['dispose$'][_0x570699(0x2e5)](),this[_0x570699(0x34a)][_0x570699(0x207)]();}[_0x43e0c9(0x214)](){var _0x129353=_0x43e0c9,_0x54862c,_0x3dacf0;this[_0x129353(0x172)](),(_0x54862c=this[_0x129353(0x2f0)])==null||_0x54862c[_0x129353(0x313)]({'cmd':CombCmd[_0x129353(0x190)],'data':{'roomID':this['_unitID']}}),(_0x3dacf0=this[_0x129353(0x2f0)])==null||_0x3dacf0[_0x129353(0x214)](),this[_0x129353(0x228)]['complete'](),this['_sessionStatus$'][_0x129353(0x207)](),this[_0x129353(0x25b)]();}[_0x43e0c9(0x41f)](_0x572e94){var _0x4faf4c=_0x43e0c9;_0x572e94[_0x4faf4c(0x1fb)]===CombCmd['JOIN']?this[_0x4faf4c(0x3cf)](_0x572e94):_0x572e94[_0x4faf4c(0x1fb)]===CombCmd[_0x4faf4c(0x1d3)]&&this[_0x4faf4c(0x328)](_0x572e94);}[_0x43e0c9(0x27b)](_0x50f299){var _0x294c97=_0x43e0c9;this[_0x294c97(0x36c)]['next'](0x1),_0x50f299['send']({'cmd':CombCmd['JOIN'],'routeKey':this[_0x294c97(0x104)],'routeType':'','data':{'rooms':[{'roomID':this[_0x294c97(0x104)]}]}});}['_onJoinRoomEvent'](_0x4b6f4f){var _0x402f94=_0x43e0c9,_0x115820;if(_0x4b6f4f[_0x402f94(0x2a6)]in FailedReason){this[_0x402f94(0x127)][_0x402f94(0x43a)]({'id':CollaborationUIEventId['JOIN_ROOM_FAILED'],'data':FailedReason[_0x4b6f4f[_0x402f94(0x2a6)]]}),this[_0x402f94(0x36c)][_0x402f94(0x2e5)](0x2);return;}this[_0x402f94(0x36c)][_0x402f94(0x2e5)](0x3);const _0x11e49e=(_0x115820=_0x4b6f4f[_0x402f94(0x14c)]['roomInfos'][this[_0x402f94(0x104)]])==null?void 0x0:_0x115820[_0x402f94(0x417)];_0x11e49e&&_0x11e49e['forEach'](_0x1f2b80=>this['_memberService'][_0x402f94(0x25f)](this[_0x402f94(0x104)],_0x1f2b80));}['_onRecvEvent'](_0x27fa21){var _0x255a8f=_0x43e0c9;try{const _0x6889d4=_0x27fa21[_0x255a8f(0x14c)];switch(_0x6889d4[_0x255a8f(0x25d)]){case CollaborationEvent[_0x255a8f(0x1c4)]:this[_0x255a8f(0x2c6)](_0x6889d4),this[_0x255a8f(0x228)][_0x255a8f(0x2e5)](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x2fe)]:this[_0x255a8f(0x2f6)](_0x6889d4),this['_event$'][_0x255a8f(0x2e5)](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x24c)]:case CollaborationEvent['CHANGESET_SHOULD_RETRY']:this[_0x255a8f(0x251)](),this['_clearCollaborationTimeoutTimer'](),this[_0x255a8f(0x228)]['next'](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x292)]:this[_0x255a8f(0x11f)]['error'](_0x255a8f(0x32b)+JSON[_0x255a8f(0xff)](_0x6889d4)),this[_0x255a8f(0x228)]['next'](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x11a)]:this[_0x255a8f(0x254)][_0x255a8f(0x3c2)](_0x6889d4[_0x255a8f(0x14c)]),this['_event$'][_0x255a8f(0x2e5)](_0x6889d4);break;default:this['_event$'][_0x255a8f(0x2e5)](_0x6889d4);}}catch(_0x21a2c7){this[_0x255a8f(0x11f)][_0x255a8f(0x1c8)](_0x21a2c7,_0x27fa21);}}[_0x43e0c9(0x2c6)](_0x32af5d){var _0x3c58b8=_0x43e0c9;this[_0x3c58b8(0x252)][_0x3c58b8(0x25f)](this[_0x3c58b8(0x104)],_0x32af5d[_0x3c58b8(0x14c)]);}['_onUserLeave'](_0x473b46){var _0x14b43e=_0x43e0c9;this[_0x14b43e(0x252)][_0x14b43e(0x3c3)](this[_0x14b43e(0x104)],_0x473b46['data'][_0x14b43e(0x3ea)]);}async[_0x43e0c9(0x313)](_0x2105f0,_0x29d5d3){var _0xa37cec=_0x43e0c9;if(this[_0xa37cec(0x2ea)]!==0x3||!this['_socket'])throw new Error(_0xa37cec(0x1fd));try{_0x2105f0[_0xa37cec(0x25d)]===CollaborationEvent[_0xa37cec(0x3e8)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0xa37cec(0x390)](_0x2105f0)),this['_socket'][_0xa37cec(0x313)]({'cmd':CombCmd[_0xa37cec(0x137)],'routeKey':_0x29d5d3,'routeType':'','data':_0x2105f0});}catch(_0x5c30cd){this[_0xa37cec(0x11f)][_0xa37cec(0x1c8)](_0x5c30cd);}}[_0x43e0c9(0x269)](){var _0x594f83=_0x43e0c9,_0x5e210c;this[_0x594f83(0x272)]=setTimeout(()=>{var _0x430a09=_0x594f83;this[_0x430a09(0x272)]=null,this[_0x430a09(0x127)][_0x430a09(0x43a)]({'id':CollaborationUIEventId['SUBMIT_CHANGESET_TIMEOUT']});},(_0x5e210c=this[_0x594f83(0x249)]['getConfig'](HEARTBEAT_TIMEOUT_KEY))!=null?_0x5e210c:DEFAULT_HEARTBEAT_TIMEOUT);}['_clearCollaborationTimeoutTimer'](){var _0x3cdd09=_0x43e0c9;this[_0x3cdd09(0x272)]&&(clearTimeout(this[_0x3cdd09(0x272)]),this[_0x3cdd09(0x272)]=null);}[_0x43e0c9(0x390)](_0x1fcad4){var _0xe945c4=_0x43e0c9;if(!this['_shouldReportTelemetry'])return;const {data:_0x23f518}=_0x1fcad4,{unitID:_0x2d0f81,changeset:_0x24d70d}=_0x23f518,{mutations:_0x40c9a3,type:_0x83db7d}=_0x24d70d;this[_0xe945c4(0x391)]={'unitId':_0x2d0f81,'type':_0x83db7d,'startTime':performance[_0xe945c4(0x1cb)](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x40c9a3)};}[_0x43e0c9(0x251)](){var _0x49ffd7=_0x43e0c9;if(this[_0x49ffd7(0x237)]){if(!this[_0x49ffd7(0x391)]){this['_logService']['error'](_0x49ffd7(0x197),_0x49ffd7(0x32f));return;}this[_0x49ffd7(0x391)][_0x49ffd7(0x2c2)]=performance[_0x49ffd7(0x1cb)](),this[_0x49ffd7(0x391)][_0x49ffd7(0xf4)]=this[_0x49ffd7(0x391)]['stopTime']-this[_0x49ffd7(0x391)]['startTime'],this[_0x49ffd7(0x23e)][_0x49ffd7(0x3a3)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this[_0x49ffd7(0x391)]),this['_telemetryInfo']=null;}}[_0x43e0c9(0x172)](){var _0x56a98e=_0x43e0c9;this[_0x56a98e(0x391)]=null;}},__name(_a3,'CollaborationSession'),_a3);CollaborationSession=__decorateClass$g([__decorateParam$g(0x2,ILogService),__decorateParam$g(0x3,IConfigService),__decorateParam$g(0x4,Inject(LocaleService)),__decorateParam$g(0x5,Inject(MemberService)),__decorateParam$g(0x6,Inject(CommentService)),__decorateParam$g(0x7,Inject(CollaborationUIEventService)),__decorateParam$g(0x8,Optional(ITelemetryService))],CollaborationSession);var __defProp$f=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$f=Object[_0x43e0c9(0x33e)],__decorateClass$f=__name((_0x29d4be,_0x46151d,_0x415ae5,_0x31e18b)=>{var _0x50cc74=_0x43e0c9;for(var _0x317281=_0x31e18b>0x1?void 0x0:_0x31e18b?__getOwnPropDesc$f(_0x46151d,_0x415ae5):_0x46151d,_0x2ac5e8=_0x29d4be[_0x50cc74(0x233)]-0x1,_0x588b9f;_0x2ac5e8>=0x0;_0x2ac5e8--)(_0x588b9f=_0x29d4be[_0x2ac5e8])&&(_0x317281=(_0x31e18b?_0x588b9f(_0x46151d,_0x415ae5,_0x317281):_0x588b9f(_0x317281))||_0x317281);return _0x31e18b&&_0x317281&&__defProp$f(_0x46151d,_0x415ae5,_0x317281),_0x317281;},_0x43e0c9(0x263)),__decorateParam$f=__name((_0x4903e1,_0x130926)=>(_0x1b26bc,_0x124e10)=>_0x130926(_0x1b26bc,_0x124e10,_0x4903e1),'__decorateParam$f'),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x148ec9,_0x1d765e,_0x4b8929,_0x3e6c3a,_0x1cb48f,_0x389b10,_0x2c74c5){var _0x30e582=_0x43e0c9;super(),__publicField(this,'_socket$',new BehaviorSubject(void 0x0)),__publicField(this,_0x30e582(0x41b),this[_0x30e582(0x42f)]['asObservable']()),__publicField(this,_0x30e582(0x10e),null),__publicField(this,_0x30e582(0x332),new Map()),__publicField(this,_0x30e582(0x327),new BehaviorSubject(SessionStatus[_0x30e582(0x274)])),__publicField(this,_0x30e582(0x26a),this[_0x30e582(0x327)][_0x30e582(0x37f)]()),__publicField(this,_0x30e582(0x157),!0x1),__publicField(this,_0x30e582(0x1f7)),__publicField(this,_0x30e582(0x17b),0x0),__publicField(this,'_sendHeartbeatTimer'),__publicField(this,'_timeoutTimer'),(this[_0x30e582(0x403)]=_0x148ec9,this[_0x30e582(0x11f)]=_0x1d765e,this[_0x30e582(0x249)]=_0x4b8929,this['_socketService']=_0x3e6c3a,this[_0x30e582(0x141)]=_0x1cb48f,this[_0x30e582(0x127)]=_0x389b10,this['_networkConditionService']=_0x2c74c5,this[_0x30e582(0x16c)]());}get[_0x43e0c9(0x2f0)](){var _0x5303a6=_0x43e0c9;return this[_0x5303a6(0x42f)][_0x5303a6(0x10c)]();}[_0x43e0c9(0x16c)](){var _0x3c56ae=_0x43e0c9;this[_0x3c56ae(0x2b9)]&&this[_0x3c56ae(0x18f)](this[_0x3c56ae(0x2b9)][_0x3c56ae(0x3be)][_0x3c56ae(0x352)](_0x5b6d82=>{var _0x346a27=_0x3c56ae;_0x5b6d82&&!this[_0x346a27(0x2f0)]&&this['reconnect'](),_0x5b6d82||this[_0x346a27(0x171)]();}));}[_0x43e0c9(0x25b)](){var _0x133364=_0x43e0c9;super[_0x133364(0x25b)](),this[_0x133364(0x332)][_0x133364(0x392)](_0x50420d=>_0x50420d[_0x133364(0x25b)]()),this[_0x133364(0x332)][_0x133364(0x1bf)](),this[_0x133364(0x327)][_0x133364(0x207)]();}async[_0x43e0c9(0x32d)](_0x26efa2){var _0x4a6614=_0x43e0c9;if(this[_0x4a6614(0x332)][_0x4a6614(0x3ae)](_0x26efa2))return this[_0x4a6614(0x332)][_0x4a6614(0x1c2)](_0x26efa2);this[_0x4a6614(0x42b)]();const _0x3b0873=this['_injector'][_0x4a6614(0x39f)](CollaborationSession,_0x26efa2,this[_0x4a6614(0x42f)]['asObservable']());return this[_0x4a6614(0x332)][_0x4a6614(0x116)](_0x26efa2,_0x3b0873),_0x3b0873;}['closeSession'](_0x2175ea){var _0x5e9e63=_0x43e0c9,_0x27b8e1;const _0x20c764=this[_0x5e9e63(0x332)][_0x5e9e63(0x1c2)](_0x2175ea);_0x20c764&&(this['_sessions'][_0x5e9e63(0x36b)](_0x2175ea),_0x20c764['close']()),this['_sessions']['size']||(_0x27b8e1=this['_socket'])==null||_0x27b8e1['close']();}[_0x43e0c9(0x1ca)](){var _0x28340b=_0x43e0c9;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x28340b(0x1f7)]),this[_0x28340b(0x1f7)]=null),this[_0x28340b(0x1b2)]();}async[_0x43e0c9(0x446)](){var _0x5a5b94=_0x43e0c9,_0x415998,_0x4ac9c7,_0x5d3aec;const _0x6f62a7=this['_configService'][_0x5a5b94(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0xc6b9f0=(_0x415998=_0x6f62a7==null?void 0x0:_0x6f62a7['wsSessionTicketUrl'])!=null?_0x415998:DEFAULT_WS_SESSION_TICKET_URL;return(_0x5d3aec=(_0x4ac9c7=(await this[_0x5a5b94(0x141)]['get'](_0xc6b9f0,{'headers':{'Content-Type':'application/json'}}))[_0x5a5b94(0x415)])==null?void 0x0:_0x4ac9c7[_0x5a5b94(0x2d5)])!=null?_0x5d3aec:'';}['_createSocketURL'](_0x2466d2){var _0x504f8d=_0x43e0c9,_0x42483d,_0x3ed9da;const _0x38d716=this['_configService'][_0x504f8d(0x15f)](COLLAB_WEB_SOCKET_URL_KEY),_0x4349d0=this[_0x504f8d(0x249)][_0x504f8d(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x5e9950=(_0x3ed9da=(_0x42483d=_0x4349d0==null?void 0x0:_0x4349d0[_0x504f8d(0x342)])!=null?_0x42483d:_0x38d716)!=null?_0x3ed9da:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x9795fd=typeof window>'u'?new URL(_0x5e9950):new URL(_0x5e9950,window[_0x504f8d(0x121)]['origin']);_0x9795fd[_0x504f8d(0x134)][_0x504f8d(0x116)](_0x504f8d(0x2a3),_0x2466d2);const _0x460a4b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x504f8d(0x121)][_0x504f8d(0x337)]);return _0x460a4b[_0x504f8d(0x1c2)](_0x504f8d(0x205))&&_0x9795fd[_0x504f8d(0x134)][_0x504f8d(0x116)]('runId',_0x460a4b[_0x504f8d(0x1c2)](_0x504f8d(0x205))),_0x9795fd[_0x504f8d(0x22b)]();}async[_0x43e0c9(0x1ee)](){var _0xd8969a=_0x43e0c9;const _0x1b3cb2=await this[_0xd8969a(0x446)](),_0x17e2bc=this[_0xd8969a(0x15a)](_0x1b3cb2),_0xe6eac1=this['_socketService'][_0xd8969a(0x29c)](_0x17e2bc);return this['_candidateSocket']=_0xe6eac1,_0xe6eac1;}async[_0x43e0c9(0x42b)](){var _0x24d1b0=_0x43e0c9,_0x3356ca,_0x58cc7a;try{const _0x248276=(_0x58cc7a=(_0x3356ca=this[_0x24d1b0(0x2f0)])!=null?_0x3356ca:this[_0x24d1b0(0x10e)])!=null?_0x58cc7a:await this[_0x24d1b0(0x1ee)]();if(_0x248276){const _0x3a7508=_0x248276['send'];_0x248276[_0x24d1b0(0x313)]=_0x24c64c=>(this['_rescheduleHeartbeat'](),_0x3a7508[_0x24d1b0(0x2ba)](_0x248276,[_0x24c64c])),_0x248276[_0x24d1b0(0x427)][_0x24d1b0(0x352)](_0x36e502=>this['_onMessage'](_0x248276,_0x36e502)),_0x248276[_0x24d1b0(0x33d)][_0x24d1b0(0x1f0)](take(0x1))['subscribe'](_0x28be5d=>this[_0x24d1b0(0x11f)][_0x24d1b0(0x1c8)](_0x24d1b0(0x283),_0x28be5d)),_0x248276[_0x24d1b0(0x279)]['pipe'](take(0x1))[_0x24d1b0(0x352)](()=>{var _0x3aeefa=_0x24d1b0;this[_0x3aeefa(0x3f9)](_0x248276);}),_0x248276['close$'][_0x24d1b0(0x1f0)](take(0x1))[_0x24d1b0(0x352)](_0x29e9cc=>{var _0x3bd28c=_0x24d1b0;this['_logService']['debug'](_0x3bd28c(0x35a),_0x3bd28c(0x421),_0x29e9cc),this[_0x3bd28c(0x307)]();});}}catch(_0xb60ad7){this[_0x24d1b0(0x11f)][_0x24d1b0(0x1c8)](_0xb60ad7),this[_0x24d1b0(0x307)]();}}[_0x43e0c9(0x3f9)](_0x474e03){var _0x287a8e=_0x43e0c9;this[_0x287a8e(0x11f)]['debug'](_0x287a8e(0x35a),_0x287a8e(0x133)),_0x474e03[_0x287a8e(0x313)]({'cmd':CombCmd['HELLO']}),this[_0x287a8e(0x43c)]();}[_0x43e0c9(0x171)](){var _0x58bcd9=_0x43e0c9;this[_0x58bcd9(0x157)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x58bcd9(0x2e5)](SessionStatus['OFFLINE']),this[_0x58bcd9(0x42f)]['next'](null),this['_clearTimeoutTimer'](),this[_0x58bcd9(0x277)]();}[_0x43e0c9(0x307)](){var _0x3fcbd0=_0x43e0c9,_0x46a4dd;this[_0x3fcbd0(0x171)](),this[_0x3fcbd0(0x17b)]<((_0x46a4dd=this[_0x3fcbd0(0x249)][_0x3fcbd0(0x15f)](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x46a4dd:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this['_collaborationUIEventService'][_0x3fcbd0(0x43a)]({'id':CollaborationUIEventId[_0x3fcbd0(0x135)]}),this[_0x3fcbd0(0x1b2)]()):this[_0x3fcbd0(0x127)][_0x3fcbd0(0x43a)]({'id':CollaborationUIEventId['SOCKET_FAILED']});}[_0x43e0c9(0x1b2)](){var _0x59ad26=_0x43e0c9,_0x52f7ac;const _0x27fa5d=this[_0x59ad26(0x17b)],_0xca128f=this[_0x59ad26(0x249)][_0x59ad26(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x47d0b8=_0x27fa5d===0x0?0x0:((_0x52f7ac=_0xca128f==null?void 0x0:_0xca128f['retryConnectingInterval'])!=null?_0x52f7ac:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x27fa5d;this['_retryConnectingTimer']=setTimeout(()=>{var _0x12b694=_0x59ad26;clearTimeout(this[_0x12b694(0x1f7)]),this[_0x12b694(0x1f7)]=null,this[_0x12b694(0x42b)]();},_0x47d0b8),this['_retryCount']+=0x1;}[_0x43e0c9(0x101)](_0x18ca9b,_0x2f37be){var _0x2588b9=_0x43e0c9;const {cmd:_0x38d69a}=_0x2f37be;_0x38d69a===CombCmd[_0x2588b9(0x343)]&&!this[_0x2588b9(0x157)]&&(_0x18ca9b['memberID']=_0x2f37be['data'][_0x2588b9(0x3ea)],this['_socket$'][_0x2588b9(0x2e5)](_0x18ca9b),this['_status$'][_0x2588b9(0x2e5)](SessionStatus[_0x2588b9(0x310)]),this['_socketReady']=!0x0,this[_0x2588b9(0x10e)]=null),_0x38d69a===CombCmd['HEARTBEAT']&&this[_0x2588b9(0x229)](),this['_rescheduleHeartbeat']();}[_0x43e0c9(0x43c)](){var _0x547106=_0x43e0c9,_0x1e1e18;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x547106(0x2df)](),(_0x1e1e18=this[_0x547106(0x249)][_0x547106(0x15f)](HEARTBEAT_INTERVAL_KEY))!=null?_0x1e1e18:DEFAULT_HEARTBEAT_INTERVAL);}[_0x43e0c9(0x2df)](){var _0x14d223=_0x43e0c9;this[_0x14d223(0x2f0)][_0x14d223(0x313)]({'cmd':CombCmd['HEARTBEAT']}),this[_0x14d223(0x3a5)]();}[_0x43e0c9(0x3a5)](){var _0x3a6fdb=_0x43e0c9,_0x57de10;this[_0x3a6fdb(0x429)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x57de10=this[_0x3a6fdb(0x249)][_0x3a6fdb(0x15f)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x57de10:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x43e0c9(0x277)](){var _0x25695e=_0x43e0c9;this[_0x25695e(0x37b)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x25695e(0x37b)]=null);}['_clearTimeoutTimer'](){var _0x174c7d=_0x43e0c9;this[_0x174c7d(0x429)]!=null&&(clearTimeout(this[_0x174c7d(0x429)]),this[_0x174c7d(0x429)]=null);}},__name(_a4,_0x43e0c9(0x37d)),_a4);CollaborationSessionService=__decorateClass$f([__decorateParam$f(0x0,Inject(Injector)),__decorateParam$f(0x1,ILogService),__decorateParam$f(0x2,IConfigService),__decorateParam$f(0x3,ICollaborationSocketService),__decorateParam$f(0x4,Inject(HTTPService)),__decorateParam$f(0x5,Inject(CollaborationUIEventService)),__decorateParam$f(0x6,Optional(INetworkConditionService))],CollaborationSessionService);const byteToHex=[];for(let i=0x0;i<0x100;++i)byteToHex['push']((i+0x100)[_0x43e0c9(0x22b)](0x10)[_0x43e0c9(0x1ea)](0x1));function unsafeStringify(_0xf788b2,_0x218a74=0x0){var _0x26b34a=_0x43e0c9;return(byteToHex[_0xf788b2[_0x218a74+0x0]]+byteToHex[_0xf788b2[_0x218a74+0x1]]+byteToHex[_0xf788b2[_0x218a74+0x2]]+byteToHex[_0xf788b2[_0x218a74+0x3]]+'-'+byteToHex[_0xf788b2[_0x218a74+0x4]]+byteToHex[_0xf788b2[_0x218a74+0x5]]+'-'+byteToHex[_0xf788b2[_0x218a74+0x6]]+byteToHex[_0xf788b2[_0x218a74+0x7]]+'-'+byteToHex[_0xf788b2[_0x218a74+0x8]]+byteToHex[_0xf788b2[_0x218a74+0x9]]+'-'+byteToHex[_0xf788b2[_0x218a74+0xa]]+byteToHex[_0xf788b2[_0x218a74+0xb]]+byteToHex[_0xf788b2[_0x218a74+0xc]]+byteToHex[_0xf788b2[_0x218a74+0xd]]+byteToHex[_0xf788b2[_0x218a74+0xe]]+byteToHex[_0xf788b2[_0x218a74+0xf]])[_0x26b34a(0x261)]();}__name(unsafeStringify,'unsafeStringify');let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0xbe505d=_0x43e0c9;if(!getRandomValues){if(typeof crypto>'u'||!crypto[_0xbe505d(0x2b7)])throw new Error(_0xbe505d(0x30e));getRandomValues=crypto[_0xbe505d(0x2b7)][_0xbe505d(0x37e)](crypto);}return getRandomValues(rnds8);}__name(rng,_0x43e0c9(0x334));const randomUUID=typeof crypto<'u'&&crypto[_0x43e0c9(0x376)]&&crypto[_0x43e0c9(0x376)]['bind'](crypto),native={'randomUUID':randomUUID};function v4(_0x58876b,_0x56a43c,_0x594e65){var _0x3ea7a0=_0x43e0c9,_0x2cdeb5,_0x3cd998,_0x5bc202;if(native[_0x3ea7a0(0x376)]&&!_0x58876b)return native[_0x3ea7a0(0x376)]();_0x58876b=_0x58876b||{};const _0x256bbc=(_0x5bc202=(_0x3cd998=_0x58876b['random'])!=null?_0x3cd998:(_0x2cdeb5=_0x58876b['rng'])==null?void 0x0:_0x2cdeb5[_0x3ea7a0(0x314)](_0x58876b))!=null?_0x5bc202:rng();if(_0x256bbc[_0x3ea7a0(0x233)]<0x10)throw new Error(_0x3ea7a0(0x397));return _0x256bbc[0x6]=_0x256bbc[0x6]&0xf|0x40,_0x256bbc[0x8]=_0x256bbc[0x8]&0x3f|0x80,unsafeStringify(_0x256bbc);}__name(v4,'v4');const ILocalCacheService=createIdentifier(_0x43e0c9(0x3d7));function getLocalCacheKey(_0x140470){var _0x28d8af=_0x43e0c9;return _0x28d8af(0x38b)+_0x140470;}__name(getLocalCacheKey,'getLocalCacheKey');var __defProp$e=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$e=Object[_0x43e0c9(0x33e)],__decorateClass$e=__name((_0x31ea01,_0x17bf1b,_0xf88263,_0x6354bd)=>{var _0x13583b=_0x43e0c9;for(var _0x1bf5fe=_0x6354bd>0x1?void 0x0:_0x6354bd?__getOwnPropDesc$e(_0x17bf1b,_0xf88263):_0x17bf1b,_0x5eff44=_0x31ea01[_0x13583b(0x233)]-0x1,_0x12d900;_0x5eff44>=0x0;_0x5eff44--)(_0x12d900=_0x31ea01[_0x5eff44])&&(_0x1bf5fe=(_0x6354bd?_0x12d900(_0x17bf1b,_0xf88263,_0x1bf5fe):_0x12d900(_0x1bf5fe))||_0x1bf5fe);return _0x6354bd&&_0x1bf5fe&&__defProp$e(_0x17bf1b,_0xf88263,_0x1bf5fe),_0x1bf5fe;},'__decorateClass$e'),__decorateParam$e=__name((_0xae802e,_0x16479f)=>(_0x10eb79,_0x54ad60)=>_0x16479f(_0x10eb79,_0x54ad60,_0xae802e),'__decorateParam$e');function extractTargetFromFirstChangeset(_0x35174d){var _0x2c9855=_0x43e0c9;const {unitID:_0x4e3976,mutations:_0x4beb73}=_0x35174d;return{'unitId':_0x4e3976,'subUnitId':_0x4beb73[0x0][_0x2c9855(0xf1)][_0x2c9855(0x38a)]};}__name(extractTargetFromFirstChangeset,_0x43e0c9(0x255));var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x31b81f,_0x43240e,_0x567ff3){var _0x1e494b=_0x43e0c9;this[_0x1e494b(0x403)]=_0x31b81f,this[_0x1e494b(0x345)]=_0x43240e,this[_0x1e494b(0x180)]=_0x567ff3;}[_0x43e0c9(0x3d9)](_0x42dd72){var _0x139f93=_0x43e0c9,_0x361b84,_0x517f5c,_0x16998e,_0x20ff4e;const _0xe50158=this[_0x139f93(0x403)]['get'](SheetsSelectionsService),{unitId:_0xa625cb,subUnitId:_0x2efcb4}=extractTargetFromFirstChangeset(_0x42dd72),_0x450ad7=_0xe50158==null?void 0x0:_0xe50158['getWorkbookSelections'](_0xa625cb)[_0x139f93(0x395)](),_0x6f744a=(_0x517f5c=(_0x361b84=this[_0x139f93(0x180)][_0x139f93(0x38c)](_0xa625cb))==null?void 0x0:_0x361b84[_0x139f93(0x14a)]())==null?void 0x0:_0x517f5c[_0x139f93(0x234)]();if(_0x450ad7['length']===0x0||!_0xa625cb||!_0x2efcb4)return;const _0x37cfeb=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0xa625cb,'subUnitId':_0x6f744a,'selections':Tools[_0x139f93(0x399)](_0x450ad7)}}],_0x524c50=this[_0x139f93(0x345)][_0x139f93(0x346)](_0x42dd72,_0x37cfeb);if(!isTransformMutationsWithChangesetSuccess(_0x524c50))throw _0x524c50[_0x139f93(0x1c8)];const _0x2e10c1=(_0x20ff4e=(_0x16998e=_0x524c50[_0x139f93(0xfa)][0x0])==null?void 0x0:_0x16998e[_0x139f93(0xf1)])==null?void 0x0:_0x20ff4e[_0x139f93(0x378)];if(Array[_0x139f93(0x2a9)](_0x2e10c1)&&_0x2e10c1['length']){if(_0x2e10c1['length']===_0x37cfeb[0x0][_0x139f93(0xf1)][_0x139f93(0x378)]['length']&&_0x2e10c1[_0x139f93(0x291)]((_0x2b6a07,_0x95b2fc)=>Rectangle[_0x139f93(0x15d)](_0x2b6a07[_0x139f93(0x124)],_0x37cfeb[0x0][_0x139f93(0xf1)]['selections'][_0x95b2fc][_0x139f93(0x124)])))return;this[_0x139f93(0x403)]['get'](ICommandService)[_0x139f93(0x3f7)](SetSelectionsOperation['id'],{'unitId':_0xa625cb,'subUnitId':_0x6f744a,'selections':_0x2e10c1});}}},__name(_a5,_0x43e0c9(0x400)),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier(_0x43e0c9(0x364));var UnitStatus=(_0x51e8e6=>(_0x51e8e6[_0x51e8e6[_0x43e0c9(0x2a8)]=0x0]=_0x43e0c9(0x2a8),_0x51e8e6[_0x51e8e6['OTHER_CLIENTS_EDITING']=0x1]=_0x43e0c9(0x350),_0x51e8e6))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x3af773,_0x46bfde,_0x28b6ba,_0xeed378,_0x2b711c){var _0x5ed008=_0x43e0c9,_0x30db51,_0x513bf4,_0x432911,_0x12313d;const _0x3b8edb=[];for(const _0x277bbd of _0x3af773)if(SINGLE_CHANGESET_MUTATIONS[_0x5ed008(0x3ae)](_0x277bbd['id'])){if(_0x3b8edb[_0x5ed008(0x233)]>0x0)break;_0x3b8edb[_0x5ed008(0x119)](_0x277bbd);break;}else _0x3b8edb[_0x5ed008(0x119)](_0x277bbd);const _0x46ab0a=(_0x513bf4=(_0x30db51=_0x2b711c[_0x5ed008(0x3a4)]())==null?void 0x0:_0x30db51[_0x5ed008(0x369)])!=null?_0x513bf4:_0x5ed008(0x225),_0x3d2ac1=(_0x12313d=(_0x432911=_0x2b711c[_0x5ed008(0x3a4)]())==null?void 0x0:_0x432911[_0x5ed008(0x3ea)])!=null?_0x12313d:_0x5ed008(0x225);return{'changeset':{'unitID':_0x46bfde,'type':mapDocumentTypeToUniverType(_0x28b6ba['getUnitType'](_0x46bfde)),'baseRev':_0xeed378[_0x5ed008(0x1c0)](_0x46bfde),'revision':0x0,'userID':_0x46ab0a,'memberID':_0x3d2ac1,'mutations':_0x3b8edb},'pendingMutations':_0x3af773[_0x5ed008(0x1ea)](_0x3b8edb['length'])};}__name(assembleSheetChangeset,_0x43e0c9(0x31f));function assembleDocChangeset(_0xcec60b,_0x4e82e1,_0x6c5deb,_0xc135c6,_0x4e263c){var _0x21de3e=_0x43e0c9,_0x5b5dd5,_0x41ee0c,_0x3311e5,_0x563f43;const _0x37eb5c=[_0xcec60b['reduce']((_0x5252ac,_0x4d32b9)=>{var _0x35fe8d=_0x5029,_0x23584c;const {id:_0x33fbbf}=_0x5252ac,{id:_0x343e08,type:_0x2fe794}=_0x4d32b9,_0x45ef8a=(_0x23584c=_0x5252ac[_0x35fe8d(0xf1)])!=null?_0x23584c:{'actions':null},_0x4b4dc9=_0x4d32b9[_0x35fe8d(0xf1)];if(_0x33fbbf&&_0x33fbbf!==_0x343e08)throw new Error(_0x35fe8d(0x396)+_0x33fbbf+_0x35fe8d(0x181)+_0x343e08+'.');return{..._0x5252ac,'id':_0x343e08,'type':_0x2fe794,'params':{'unitId':_0x4b4dc9[_0x35fe8d(0x38e)],'textRanges':_0x4b4dc9[_0x35fe8d(0x439)],'actions':JSONX[_0x35fe8d(0x2b8)](_0x45ef8a['actions'],_0x4b4dc9[_0x35fe8d(0x146)])}};},{})],_0x53704a=(_0x41ee0c=(_0x5b5dd5=_0x4e263c[_0x21de3e(0x3a4)]())==null?void 0x0:_0x5b5dd5['userID'])!=null?_0x41ee0c:'unknown',_0x556dd4=(_0x563f43=(_0x3311e5=_0x4e263c[_0x21de3e(0x3a4)]())==null?void 0x0:_0x3311e5[_0x21de3e(0x3ea)])!=null?_0x563f43:'unknown';return{'changeset':{'unitID':_0x4e82e1,'type':mapDocumentTypeToUniverType(_0x6c5deb['getUnitType'](_0x4e82e1)),'baseRev':_0xc135c6[_0x21de3e(0x1c0)](_0x4e82e1),'revision':0x0,'userID':_0x53704a,'memberID':_0x556dd4,'mutations':_0x37eb5c},'pendingMutations':[]};}__name(assembleDocChangeset,_0x43e0c9(0x186));function createTimerObservable$(_0xc67490,_0x1a2611){var _0x5b455b=_0x43e0c9;const _0x2657c1=new ReplaySubject(0x1);return setTimeout(()=>_0x2657c1['next'](_0x1a2611),_0xc67490),_0x2657c1[_0x5b455b(0x37f)]()[_0x5b455b(0x1f0)](_0x4af4d9(0x1));}__name(createTimerObservable$,_0x43e0c9(0x3f3));const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType[_0x43e0c9(0x189)],'params':{}};var __defProp$d=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$d=Object[_0x43e0c9(0x33e)],__decorateClass$d=__name((_0x39618b,_0x58dbc9,_0x502951,_0x5de7c0)=>{for(var _0x22b9d9=_0x5de7c0>0x1?void 0x0:_0x5de7c0?__getOwnPropDesc$d(_0x58dbc9,_0x502951):_0x58dbc9,_0x16743c=_0x39618b['length']-0x1,_0x310f9c;_0x16743c>=0x0;_0x16743c--)(_0x310f9c=_0x39618b[_0x16743c])&&(_0x22b9d9=(_0x5de7c0?_0x310f9c(_0x58dbc9,_0x502951,_0x22b9d9):_0x310f9c(_0x22b9d9))||_0x22b9d9);return _0x5de7c0&&_0x22b9d9&&__defProp$d(_0x58dbc9,_0x502951,_0x22b9d9),_0x22b9d9;},_0x43e0c9(0x410)),__decorateParam$d=__name((_0x2d5878,_0x873cd5)=>(_0x4ee517,_0x20949a)=>_0x873cd5(_0x4ee517,_0x20949a,_0x2d5878),_0x43e0c9(0x12a)),CollaborationStatus=(_0x4c3e17=>(_0x4c3e17[_0x43e0c9(0x1ed)]=_0x43e0c9(0x385),_0x4c3e17[_0x43e0c9(0x3a8)]=_0x43e0c9(0x3b5),_0x4c3e17[_0x43e0c9(0x280)]=_0x43e0c9(0x2af),_0x4c3e17[_0x43e0c9(0x27d)]=_0x43e0c9(0x3a7),_0x4c3e17['AWAITING_WITH_PENDING']=_0x43e0c9(0x22c),_0x4c3e17[_0x43e0c9(0x43f)]='fetch_missing',_0x4c3e17[_0x43e0c9(0x2a0)]=_0x43e0c9(0x2ed),_0x4c3e17[_0x43e0c9(0x2be)]=_0x43e0c9(0x2c8),_0x4c3e17))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x382919,_0x20adf1,_0x3d532b,_0x5f465d,_0x739b97,_0xf939d3,_0x5bb981,_0x1970e2,_0x3eadae){var _0xa8520e=_0x43e0c9;__publicField(this,_0xa8520e(0x20d),null),__publicField(this,_0xa8520e(0x1c5),[]),(this['unitID']=_0x382919,this['type']=_0x20adf1,this[_0xa8520e(0x3bd)]=_0x739b97,this[_0xa8520e(0x1ae)]=_0xf939d3,this['_undoRedoService']=_0x5bb981,this[_0xa8520e(0x3c0)]=_0x1970e2,this[_0xa8520e(0x289)]=_0x3eadae,this['_awaitingChangeset']=_0x3d532b,this['_pendingMutations']=_0x5f465d);}[_0x43e0c9(0x194)](_0x4f0b11){var _0x167e32=_0x43e0c9;const _0x49cb42=this['_revisionService'][_0x167e32(0x1c0)](this[_0x167e32(0x442)]);return _0x4f0b11[_0x167e32(0x267)]>_0x49cb42+0x1?(this[_0x167e32(0x3bd)][_0x167e32(0x195)]({'from':_0x49cb42,'to':_0x4f0b11[_0x167e32(0x267)]-0x1}),!0x0):!0x1;}[_0x43e0c9(0x111)](_0x53b7ef){var _0x229b67=_0x43e0c9;this[_0x229b67(0x158)][_0x229b67(0x206)](this['unitID'],_0x53b7ef);}[_0x43e0c9(0x115)](_0x1477be){var _0xbbfe07=_0x43e0c9,_0x5566ba,_0x3f37d8;(_0x3f37d8=(_0x5566ba=this['_handler'])[_0xbbfe07(0x250)])==null||_0x3f37d8[_0xbbfe07(0x314)](_0x5566ba,_0x1477be);}[_0x43e0c9(0x371)](_0x318a35){var _0x514359=_0x43e0c9,_0x146471,_0x3d6dca;return(_0x3d6dca=(_0x146471=this[_0x514359(0x3bd)])[_0x514359(0x173)])==null?void 0x0:_0x3d6dca['call'](_0x146471,_0x318a35);}[_0x43e0c9(0x227)](_0x459a83){var _0x413d89=_0x43e0c9,_0x3a0d91,_0x528732;return(_0x528732=(_0x3a0d91=this['_handler'])[_0x413d89(0x3c4)])==null?void 0x0:_0x528732[_0x413d89(0x314)](_0x3a0d91,_0x459a83);}[_0x43e0c9(0x3b6)](_0x42b0cc){var _0x342c63=_0x43e0c9,_0x1e5af7,_0x2157e7,_0x1861c6;return(_0x1861c6=(_0x2157e7=(_0x1e5af7=this['_handler'])[_0x342c63(0x11e)])==null?void 0x0:_0x2157e7[_0x342c63(0x314)](_0x1e5af7,_0x42b0cc))!=null?_0x1861c6:_0x42b0cc;}[_0x43e0c9(0x320)](_0x26bb64){var _0x3f56a9=_0x43e0c9,_0x3ed405,_0x238f26,_0x545ab5;return(_0x545ab5=(_0x238f26=(_0x3ed405=this[_0x3f56a9(0x3bd)])[_0x3f56a9(0x404)])==null?void 0x0:_0x238f26[_0x3f56a9(0x314)](_0x3ed405,_0x26bb64))!=null?_0x545ab5:_0x26bb64;}[_0x43e0c9(0x3fe)](_0x1a67ca){var _0x298cb6=_0x43e0c9,_0x55d47b,_0x3dd5f6;if(this[_0x298cb6(0x3b0)]===UniverType['UNIVER_DOC']){const {unitID:_0x363d7b,mutations:_0xe18d80,memberID:_0x5123cc}=_0x1a67ca,_0x54bfec=_0xe18d80[0x0][_0x298cb6(0xf1)][_0x298cb6(0x439)];Array['isArray'](_0x54bfec)&&_0x54bfec[_0x298cb6(0x233)]>0x0&&((_0x3dd5f6=(_0x55d47b=this[_0x298cb6(0x3bd)])[_0x298cb6(0x37c)])==null||_0x3dd5f6['call'](_0x55d47b,{'unitID':_0x363d7b,'memberID':_0x5123cc,'textRanges':_0x54bfec}));}}[_0x43e0c9(0x3dc)](){var _0x3aaf18=_0x43e0c9,_0x215fcd;(_0x215fcd=this[_0x3aaf18(0x289)])==null||_0x215fcd['updateOfflineData'](this['unitID'],this[_0x3aaf18(0x3b0)],this[_0x3aaf18(0x20d)],this[_0x3aaf18(0x1c5)]);}['_getCurrentRevision'](){var _0x2a0a9a=_0x43e0c9;return this[_0x2a0a9a(0x3c0)][_0x2a0a9a(0x1c0)](this[_0x2a0a9a(0x442)]);}[_0x43e0c9(0x40a)](){var _0x46309a=_0x43e0c9;this[_0x46309a(0x3c0)][_0x46309a(0x28a)](this['unitID']);}[_0x43e0c9(0x21e)](_0x2f1ebc){var _0x36feb4=_0x43e0c9,_0x3e896d;let _0x13b4bc=this[_0x36feb4(0x3b6)](_0x2f1ebc);_0x13b4bc=this[_0x36feb4(0x320)](_0x13b4bc);const _0x5cece8=sequenceExecute(_0x13b4bc[_0x36feb4(0x245)],this[_0x36feb4(0x1ae)],{'fromCollab':!0x0});if(!_0x5cece8[_0x36feb4(0xf3)])throw _0x5cece8['error']instanceof Error?_0x5cece8[_0x36feb4(0x1c8)]:new Error((_0x3e896d=_0x5cece8[_0x36feb4(0x1c8)])!=null?_0x3e896d:'[CollaborationState]:\x20apply\x20error!');this[_0x36feb4(0x371)](_0x13b4bc),this[_0x36feb4(0x227)](_0x13b4bc),this['_transformUndoredo'](_0x2f1ebc),this[_0x36feb4(0x115)](_0x13b4bc),this[_0x36feb4(0x3fe)](_0x13b4bc),this[_0x36feb4(0x40a)]();}};__name(_CollaborationState,_0x43e0c9(0x212));let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0x3a5a34,_0x529027,_0x29a46f,_0x31263a,_0x56f198,_0x1ebd7c,_0x1fd753,_0x5f4f2d,_0x5f4f52,_0xde86a7){var _0x89bcf7=_0x43e0c9;super(_0x3a5a34,_0x529027,null,[],_0x29a46f,_0x1fd753,_0x1ebd7c,_0x31263a,_0xde86a7),__publicField(this,_0x89bcf7(0x123),_0x89bcf7(0x3b5)),(this['_injector']=_0x56f198,this[_0x89bcf7(0x11f)]=_0x5f4f2d,this[_0x89bcf7(0x345)]=_0x5f4f52,this[_0x89bcf7(0x284)]=_0xde86a7);}[_0x43e0c9(0x35f)](_0x7a931c){var _0x4df65d=_0x43e0c9;const _0x1e976d=this['_injector'][_0x4df65d(0x39f)](PendingState,this[_0x4df65d(0x442)],this[_0x4df65d(0x3b0)],[_0x7a931c],this[_0x4df65d(0x3bd)]);return _0x1e976d[_0x4df65d(0x1f9)](),_0x1e976d[_0x4df65d(0x3dc)](),_0x1e976d;}[_0x43e0c9(0x220)](_0x27ad53){var _0x14a7d9=_0x43e0c9;if(this[_0x14a7d9(0x194)](_0x27ad53))return this[_0x14a7d9(0x403)][_0x14a7d9(0x39f)](FetchingMissState,this[_0x14a7d9(0x442)],this[_0x14a7d9(0x3b0)],null,[],null,[_0x27ad53],this[_0x14a7d9(0x3bd)]);try{const _0x5c1e40=this[_0x14a7d9(0x345)]['transformMutationsWithChangeset'](_0x27ad53,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x5c1e40)){const {c1Prime:_0x2116a8}=_0x5c1e40;return this[_0x14a7d9(0x21e)](_0x2116a8),this;}throw _0x5c1e40[_0x14a7d9(0x1c8)];}catch(_0x48518f){return this[_0x14a7d9(0x11f)][_0x14a7d9(0x1c8)](_0x48518f),this[_0x14a7d9(0x1ba)](!0x1);}}['_onConflict'](_0xaf0574){var _0x7c05ba=_0x43e0c9;return this[_0x7c05ba(0x403)][_0x7c05ba(0x39f)](ConflictState,this[_0x7c05ba(0x442)],this['type'],null,[],this[_0x7c05ba(0x3bd)],_0xaf0574);}[_0x43e0c9(0x2b5)](){var _0x45466a=_0x43e0c9;throw new Error(_0x45466a(0x1c6));}['onRemoteRej'](){var _0x544756=_0x43e0c9;throw new Error(_0x544756(0x270));}[_0x43e0c9(0x32a)](){return this;}[_0x43e0c9(0x31c)](){var _0x3f0d34=_0x43e0c9;return this[_0x3f0d34(0x403)][_0x3f0d34(0x39f)](OfflineState,this[_0x3f0d34(0x442)],this[_0x3f0d34(0x3b0)],null,[],this[_0x3f0d34(0x3bd)]);}[_0x43e0c9(0x1e2)](){return this;}[_0x43e0c9(0x3ee)](){var _0xd80c9e=_0x43e0c9;throw new Error(_0xd80c9e(0x441));}[_0x43e0c9(0x26b)](){var _0x3ee3d3=_0x43e0c9;const _0x2ea5e4=this['_revisionService'][_0x3ee3d3(0x1c0)](this[_0x3ee3d3(0x442)]);return this['_handler']['onMissingChangesets']({'from':_0x2ea5e4,'to':0x0}),this['_injector'][_0x3ee3d3(0x39f)](FetchingMissState,this[_0x3ee3d3(0x442)],this[_0x3ee3d3(0x3b0)],null,[],null,[],this['_handler']);}},__name(_a6,_0x43e0c9(0x10f)),_a6);SyncedState=__decorateClass$d([__decorateParam$d(0x3,Inject(RevisionService)),__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,IUndoRedoService),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,Optional(ILocalCacheService))],SyncedState);var _a7;let PendingState=(_a7=class extends CollaborationState{constructor(_0x75a533,_0x47ce3b,_0xef128d,_0x4af6d9,_0x3b399c,_0x2d3b58,_0x1889e0,_0x180ef4,_0x51f34c,_0x3fca1f,_0x577d9d,_0x51cc10,_0x9a5d5f,_0x3f417a){var _0x29dc9e=_0x43e0c9;super(_0x75a533,_0x47ce3b,null,_0xef128d,_0x4af6d9,_0x51f34c,_0x9a5d5f,_0x2d3b58,_0x3f417a),__publicField(this,_0x29dc9e(0x123),_0x29dc9e(0x2af)),__publicField(this,_0x29dc9e(0x192),null),__publicField(this,_0x29dc9e(0x32e),null),(this['_injector']=_0x3b399c,this[_0x29dc9e(0x252)]=_0x1889e0,this[_0x29dc9e(0x11f)]=_0x180ef4,this[_0x29dc9e(0x249)]=_0x3fca1f,this[_0x29dc9e(0x345)]=_0x577d9d,this[_0x29dc9e(0x330)]=_0x51cc10);}[_0x43e0c9(0x35f)](_0x13a8d7){var _0x15704e=_0x43e0c9;return this['_pendingMutations']['push'](_0x13a8d7),this[_0x15704e(0x3dc)](),this;}[_0x43e0c9(0x220)](_0x3ee2a6){var _0x5c79c0=_0x43e0c9;if(this['_checkMissing'](_0x3ee2a6))return this[_0x5c79c0(0x1a7)](),this[_0x5c79c0(0x403)][_0x5c79c0(0x39f)](FetchingMissState,this[_0x5c79c0(0x442)],this['type'],null,this['_pendingMutations'],null,[_0x3ee2a6],this['_handler']);try{const _0x4856bb=this[_0x5c79c0(0x345)]['transformMutationsWithChangeset'](_0x3ee2a6,this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x4856bb)){const {c1Prime:_0x182cde,m2Prime:_0x107595}=_0x4856bb;this['_executeRemoteChangeset'](_0x182cde);const _0x535d80=this[_0x5c79c0(0x403)][_0x5c79c0(0x39f)](PendingState,this[_0x5c79c0(0x442)],this[_0x5c79c0(0x3b0)],_0x107595,this[_0x5c79c0(0x3bd)]);this[_0x5c79c0(0x1a7)]();const _0x4f0639=new Date()['getTime'](),_0x2a92f6=this['_scheduleCompleteTimestamp']?Math[_0x5c79c0(0x2e9)](this[_0x5c79c0(0x192)]-_0x4f0639,0x0):this[_0x5c79c0(0x2e1)]();return _0x535d80[_0x5c79c0(0x1f9)](_0x2a92f6),_0x535d80;}throw _0x4856bb[_0x5c79c0(0x1c8)];}catch(_0x447903){return this[_0x5c79c0(0x11f)]['error'](_0x447903),this[_0x5c79c0(0x1ba)](!0x1);}}[_0x43e0c9(0x2b5)](){var _0x364946=_0x43e0c9;throw new Error(_0x364946(0x13d));}['onRemoteRej'](){var _0x9e299=_0x43e0c9;throw new Error(_0x9e299(0x236));}[_0x43e0c9(0x32a)](){return this;}[_0x43e0c9(0x31c)](){var _0x3d377d=_0x43e0c9;return this[_0x3d377d(0x1a7)](),this[_0x3d377d(0x403)][_0x3d377d(0x39f)](OfflineState,this[_0x3d377d(0x442)],this[_0x3d377d(0x3b0)],null,this['_pendingMutations'],this['_handler']);}[_0x43e0c9(0x1e2)](){return this;}[_0x43e0c9(0x1f9)](_0x3f3cdb){var _0xcda76d=_0x43e0c9;const _0x3913b2=_0x3f3cdb!=null?_0x3f3cdb:this[_0xcda76d(0x2e1)]();this['_scheduleCompleteTimestamp']=new Date()[_0xcda76d(0x230)]()+_0x3913b2,this[_0xcda76d(0x32e)]=setTimeout(()=>{var _0x5d0ca8=_0xcda76d;this['_clearScheduledTask']();let _0x5c5411=null;switch(this[_0x5d0ca8(0x3b0)]){case UniverType['UNIVER_SHEET']:{_0x5c5411=assembleSheetChangeset(this[_0x5d0ca8(0x1c5)],this[_0x5d0ca8(0x442)],this[_0x5d0ca8(0x330)],this[_0x5d0ca8(0x3c0)],this[_0x5d0ca8(0x252)]);break;}case UniverType['UNIVER_DOC']:{this['_pendingMutations'][_0x5d0ca8(0x291)](_0x33dd1f=>_0x33dd1f['id']===RichTextEditingMutation['id'])?_0x5c5411=assembleDocChangeset(this[_0x5d0ca8(0x1c5)],this[_0x5d0ca8(0x442)],this[_0x5d0ca8(0x330)],this[_0x5d0ca8(0x3c0)],this[_0x5d0ca8(0x252)]):_0x5c5411=assembleSheetChangeset(this[_0x5d0ca8(0x1c5)],this[_0x5d0ca8(0x442)],this['_univerInstanceService'],this[_0x5d0ca8(0x3c0)],this[_0x5d0ca8(0x252)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x5d0ca8(0x3b0)]+_0x5d0ca8(0x22a));}const {changeset:_0x7b110,pendingMutations:_0x256827}=_0x5c5411;this['_handler'][_0x5d0ca8(0x2dc)](_0x7b110);const _0x4f7814=_0x256827['length']?this['_injector'][_0x5d0ca8(0x39f)](AwaitingWithPendingState,this['unitID'],this['type'],_0x7b110,_0x256827,this[_0x5d0ca8(0x3bd)],void 0x0):this[_0x5d0ca8(0x403)][_0x5d0ca8(0x39f)](AwaitingState,this[_0x5d0ca8(0x442)],this[_0x5d0ca8(0x3b0)],_0x7b110,this[_0x5d0ca8(0x3bd)]);_0x4f7814[_0x5d0ca8(0x3dc)](),this[_0x5d0ca8(0x3bd)][_0x5d0ca8(0x358)](this,_0x4f7814);},_0x3913b2);}[_0x43e0c9(0x2e1)](){var _0x5134a2=_0x43e0c9,_0x1e9e3b;const _0x5b0e8f=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1e9e3b=_0x5b0e8f==null?void 0x0:_0x5b0e8f[_0x5134a2(0x1bb)])!=null?_0x1e9e3b:DEFAULT_SEND_CHANGESET_TIMEOUT;}['resend'](){var _0x55b895=_0x43e0c9;throw new Error(_0x55b895(0x2d8));}[_0x43e0c9(0x1a7)](){var _0x493d2a=_0x43e0c9;this[_0x493d2a(0x32e)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x493d2a(0x32e)]=null);}[_0x43e0c9(0x1ba)](_0x1de1c5){var _0x6413a3=_0x43e0c9;return this[_0x6413a3(0x1a7)](),this['_injector'][_0x6413a3(0x39f)](ConflictState,this['unitID'],this[_0x6413a3(0x3b0)],null,this['_pendingMutations'],this[_0x6413a3(0x3bd)],_0x1de1c5);}},__name(_a7,_0x43e0c9(0x241)),_a7);PendingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,Inject(MemberService)),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,IConfigService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUniverInstanceService),__decorateParam$d(0xc,IUndoRedoService),__decorateParam$d(0xd,Optional(ILocalCacheService))],PendingState);var _a8;let AwaitingState=(_a8=class extends CollaborationState{constructor(_0x33435c,_0x278fe7,_0x15774d,_0x2101ce,_0xcde6e0,_0x2d9492,_0x5424e7,_0x3c0712,_0xba50a2,_0x86ee3a,_0x35e3c2){var _0x5cc60b=_0x43e0c9;super(_0x33435c,_0x278fe7,_0x15774d,[],_0x2101ce,_0x5424e7,_0x86ee3a,_0x2d9492,_0x35e3c2),__publicField(this,_0x5cc60b(0x123),_0x5cc60b(0x3a7)),__publicField(this,_0x5cc60b(0x1f5),0x0),__publicField(this,_0x5cc60b(0x2bf)),__publicField(this,_0x5cc60b(0x405)),(this[_0x5cc60b(0x403)]=_0xcde6e0,this[_0x5cc60b(0x11f)]=_0x3c0712,this[_0x5cc60b(0x345)]=_0xba50a2);}['appendMutation'](_0x196126){var _0x1d5645=_0x43e0c9;this[_0x1d5645(0x1a7)]();const _0x1a8907=this[_0x1d5645(0x403)][_0x1d5645(0x39f)](AwaitingWithPendingState,this[_0x1d5645(0x442)],this[_0x1d5645(0x3b0)],this['_awaitingChangeset'],[_0x196126],this[_0x1d5645(0x3bd)],this[_0x1d5645(0x2bf)]);return _0x1a8907[_0x1d5645(0x3dc)](),_0x1a8907;}[_0x43e0c9(0x220)](_0x2e8572){var _0x35702c=_0x43e0c9;if(this[_0x35702c(0x194)](_0x2e8572))return this[_0x35702c(0x1a7)](),this[_0x35702c(0x403)][_0x35702c(0x39f)](FetchingMissState,this[_0x35702c(0x442)],this[_0x35702c(0x3b0)],this[_0x35702c(0x20d)],[],null,[_0x2e8572],this[_0x35702c(0x3bd)]);try{const _0x3cfb08=this[_0x35702c(0x345)]['transformChangesets']([_0x2e8572],[this['_awaitingChangeset']],!0x1);if(isTransformChangesetsSuccess(_0x3cfb08)){const {c1Prime:_0x6e52a3,c2Prime:_0x1e059c}=_0x3cfb08;this[_0x35702c(0x21e)](_0x6e52a3[0x0]),_0x1e059c[0x0][_0x35702c(0x191)]=this['_getCurrentRevision'](),this[_0x35702c(0x1a7)]();const _0x178ab1=this[_0x35702c(0x403)][_0x35702c(0x39f)](AwaitingState,this[_0x35702c(0x442)],this[_0x35702c(0x3b0)],_0x1e059c[0x0],this[_0x35702c(0x3bd)]);return _0x178ab1[_0x35702c(0x3dc)](),_0x178ab1;}return this[_0x35702c(0x1ba)](!0x1);}catch(_0x118de7){return this[_0x35702c(0x11f)][_0x35702c(0x1c8)](_0x118de7),this[_0x35702c(0x1ba)](!0x1);}}[_0x43e0c9(0x2b5)](_0x3fd6ed){var _0x5540ba=_0x43e0c9;this[_0x5540ba(0x1a7)]();const _0x201ba0=this[_0x5540ba(0x3c0)][_0x5540ba(0x1c0)](this[_0x5540ba(0x442)]);if(_0x3fd6ed[_0x5540ba(0x267)]<_0x201ba0-0x1)return this;if(this[_0x5540ba(0x194)](_0x3fd6ed))return this[_0x5540ba(0x403)][_0x5540ba(0x39f)](FetchingMissState,this['unitID'],this[_0x5540ba(0x3b0)],null,[],this['_awaitingChangeset'],[],this[_0x5540ba(0x3bd)]);this[_0x5540ba(0x40a)]();const _0x4ed103=this[_0x5540ba(0x403)][_0x5540ba(0x39f)](SyncedState,this[_0x5540ba(0x442)],this[_0x5540ba(0x3b0)],this[_0x5540ba(0x3bd)]);return _0x4ed103[_0x5540ba(0x3dc)](),_0x4ed103;}[_0x43e0c9(0x273)](_0x1e3039){var _0x3df846=_0x43e0c9;return this[_0x3df846(0x1ba)](!!(_0x1e3039!=null&&_0x1e3039[_0x3df846(0x24a)]));}[_0x43e0c9(0x32a)](_0x3df99b){var _0x390500=_0x43e0c9;return this[_0x390500(0x1f5)]>MAX_RETRY_TIMEOUT?this[_0x390500(0x31c)]():(this[_0x390500(0x2bf)]=createTimerObservable$(this[_0x390500(0x1f5)],{'timeout':this[_0x390500(0x1f5)],'reqId':_0x3df99b[_0x390500(0x185)]}),this[_0x390500(0x405)]=this[_0x390500(0x2bf)][_0x390500(0x352)](({reqId:_0x4e30ae,timeout:_0x8d8937})=>{var _0x38c2dc=_0x390500;this[_0x38c2dc(0x3a1)](_0x4e30ae,_0x8d8937);}),this);}['toggleOffline'](){var _0x26df40=_0x43e0c9;return this[_0x26df40(0x1a7)](),this[_0x26df40(0x403)][_0x26df40(0x39f)](OfflineState,this[_0x26df40(0x442)],this[_0x26df40(0x3b0)],this[_0x26df40(0x20d)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x43e0c9(0x3ee)](){var _0x2527cd=_0x43e0c9;this[_0x2527cd(0x3bd)][_0x2527cd(0x2dc)](this[_0x2527cd(0x20d)]);}['_onConflict'](_0xdedcba){var _0x41cff1=_0x43e0c9;return this[_0x41cff1(0x1a7)](),this[_0x41cff1(0x403)]['createInstance'](ConflictState,this[_0x41cff1(0x442)],this[_0x41cff1(0x3b0)],this[_0x41cff1(0x20d)],[],this[_0x41cff1(0x3bd)],_0xdedcba);}[_0x43e0c9(0x3a1)](_0x4d682f,_0xa2cce1){var _0x493ae9=_0x43e0c9,_0x45a3c9;_0x4d682f===((_0x45a3c9=this['_awaitingChangeset'])==null?void 0x0:_0x45a3c9['reqId'])&&(this[_0x493ae9(0x3ee)](),this[_0x493ae9(0x1f5)]=_0xa2cce1===0x0?0x3e8:_0xa2cce1*0x2);}[_0x43e0c9(0x1a7)](){var _0x58d109=_0x43e0c9,_0x315224;(_0x315224=this['_sender'])==null||_0x315224[_0x58d109(0x11c)](),this[_0x58d109(0x1f5)]=0x0;}},__name(_a8,'AwaitingState'),_a8);AwaitingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,IUndoRedoService),__decorateParam$d(0xa,Optional(ILocalCacheService))],AwaitingState);var _a9;let AwaitingWithPendingState=(_a9=class extends CollaborationState{constructor(_0x3c7796,_0x577e17,_0x1bc379,_0x42571d,_0x219b33,_0x434944,_0x102c31,_0x3a6e6d,_0x550cf4,_0x348916,_0x2478e0,_0x5c2522,_0x35e16f){var _0x2af873=_0x43e0c9;super(_0x3c7796,_0x577e17,_0x1bc379,_0x42571d,_0x219b33,_0x550cf4,_0x5c2522,_0x3a6e6d,_0x35e16f),__publicField(this,'status',_0x2af873(0x22c)),__publicField(this,'_resendTimeout',0x0),__publicField(this,_0x2af873(0x2bf)),__publicField(this,_0x2af873(0x405)),(this[_0x2af873(0x403)]=_0x102c31,this['_logService']=_0x348916,this[_0x2af873(0x345)]=_0x2478e0,this[_0x2af873(0x284)]=_0x35e16f,_0x434944&&(this[_0x2af873(0x2bf)]=_0x434944,this[_0x2af873(0x405)]=this[_0x2af873(0x2bf)]['subscribe'](({reqId:_0x278785,timeout:_0x36d045})=>{this['_resendWithTimeout'](_0x278785,_0x36d045);})));}['appendMutation'](_0x2ead80){var _0x343af4=_0x43e0c9;return this['_pendingMutations'][_0x343af4(0x119)](_0x2ead80),this;}['onRemoteChangeset'](_0x31332c){var _0x24f3d9=_0x43e0c9;if(this[_0x24f3d9(0x194)](_0x31332c))return this[_0x24f3d9(0x1a7)](),this['_injector'][_0x24f3d9(0x39f)](FetchingMissState,this[_0x24f3d9(0x442)],this[_0x24f3d9(0x3b0)],this[_0x24f3d9(0x20d)],this[_0x24f3d9(0x1c5)],null,[_0x31332c],this['_handler']);try{const _0x46bde5=this[_0x24f3d9(0x345)]['transformChangesets']([_0x31332c],[this[_0x24f3d9(0x20d)]],!0x1);if(isTransformChangesetsSuccess(_0x46bde5)){const {c1Prime:_0x4135c2,c2Prime:_0xcfbf54}=_0x46bde5,_0x471caf=this['_transformService'][_0x24f3d9(0x346)](_0x4135c2[0x0],this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x471caf)){const {c1Prime:_0x4f2e6a,m2Prime:_0x297c30}=_0x471caf;return this['_executeRemoteChangeset'](_0x4f2e6a),_0xcfbf54[0x0]['baseRev']=this[_0x24f3d9(0x13e)](),this[_0x24f3d9(0x1a7)](),this[_0x24f3d9(0x403)][_0x24f3d9(0x39f)](AwaitingWithPendingState,this[_0x24f3d9(0x442)],this['type'],_0xcfbf54[0x0],_0x297c30,this[_0x24f3d9(0x3bd)],void 0x0);}throw _0x471caf[_0x24f3d9(0x1c8)];}throw _0x46bde5[_0x24f3d9(0x1c8)];}catch(_0x55925a){return this[_0x24f3d9(0x11f)]['error'](_0x55925a),this['_onConflict'](!0x1);}}[_0x43e0c9(0x2b5)](_0x5ecea3){var _0x1bc3f8=_0x43e0c9;if(this[_0x1bc3f8(0x1a7)](),this['_checkMissing'](_0x5ecea3))return this[_0x1bc3f8(0x403)][_0x1bc3f8(0x39f)](FetchingMissState,this[_0x1bc3f8(0x442)],this[_0x1bc3f8(0x3b0)],null,this[_0x1bc3f8(0x1c5)],this[_0x1bc3f8(0x20d)],[],this[_0x1bc3f8(0x3bd)]);this[_0x1bc3f8(0x40a)]();const _0x267e43=this[_0x1bc3f8(0x403)][_0x1bc3f8(0x39f)](PendingState,this[_0x1bc3f8(0x442)],this[_0x1bc3f8(0x3b0)],this['_pendingMutations'],this[_0x1bc3f8(0x3bd)]);return _0x267e43[_0x1bc3f8(0x1f9)](),_0x267e43[_0x1bc3f8(0x3dc)](),_0x267e43;}[_0x43e0c9(0x273)](_0x11453b){return this['_onConflict'](!!(_0x11453b!=null&&_0x11453b['isPermissionRej']));}[_0x43e0c9(0x32a)](_0x2f03ed){var _0x1c390f=_0x43e0c9;return this[_0x1c390f(0x1f5)]>MAX_RETRY_TIMEOUT?this[_0x1c390f(0x31c)]():(this[_0x1c390f(0x2bf)]=createTimerObservable$(this[_0x1c390f(0x1f5)],{'timeout':this[_0x1c390f(0x1f5)],'reqId':_0x2f03ed[_0x1c390f(0x185)]}),this['_sender']=this[_0x1c390f(0x2bf)][_0x1c390f(0x352)](({reqId:_0x20b060,timeout:_0x268e3f})=>{this['_resendWithTimeout'](_0x20b060,_0x268e3f);}),this);}[_0x43e0c9(0x31c)](){var _0x54e823=_0x43e0c9;return this[_0x54e823(0x1a7)](),this[_0x54e823(0x403)][_0x54e823(0x39f)](OfflineState,this[_0x54e823(0x442)],this[_0x54e823(0x3b0)],this[_0x54e823(0x20d)],this[_0x54e823(0x1c5)],this[_0x54e823(0x3bd)]);}[_0x43e0c9(0x1e2)](){return this;}[_0x43e0c9(0x3ee)](){var _0x510bbf=_0x43e0c9;this[_0x510bbf(0x3bd)][_0x510bbf(0x2dc)](this[_0x510bbf(0x20d)]);}['_onConflict'](_0x22a440){var _0x1de77c=_0x43e0c9;return this['_clearScheduledTask'](),this['_injector']['createInstance'](ConflictState,this[_0x1de77c(0x442)],this['type'],null,this[_0x1de77c(0x1c5)],this[_0x1de77c(0x3bd)],_0x22a440);}[_0x43e0c9(0x3a1)](_0xa253ec,_0x35f70e){var _0x4151b0=_0x43e0c9,_0x5c50cb;_0xa253ec===((_0x5c50cb=this[_0x4151b0(0x20d)])==null?void 0x0:_0x5c50cb[_0x4151b0(0x185)])&&(this[_0x4151b0(0x3ee)](),this['_resendTimeout']=_0x35f70e===0x0?0x3e8:_0x35f70e*0x2);}[_0x43e0c9(0x1a7)](){var _0x172818=_0x43e0c9,_0x5d92c7;(_0x5d92c7=this[_0x172818(0x405)])==null||_0x5d92c7['unsubscribe'](),this[_0x172818(0x1f5)]=0x0;}},__name(_a9,_0x43e0c9(0x1fc)),_a9);AwaitingWithPendingState=__decorateClass$d([__decorateParam$d(0x6,Inject(Injector)),__decorateParam$d(0x7,Inject(RevisionService)),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,Optional(ILocalCacheService))],AwaitingWithPendingState);var _a10;let ConflictState=(_a10=class extends CollaborationState{constructor(_0x26c81d,_0x9f1cf6,_0x5e9cfd,_0x36c3f6,_0x55b4e6,_0x12e7e9=!0x1,_0x30b9d1,_0x46fbbc,_0x2a7b34,_0x57f80b,_0x4f814d,_0x4ab292,_0x5adada){var _0x523690=_0x43e0c9;super(_0x26c81d,_0x9f1cf6,_0x5e9cfd,_0x36c3f6,_0x55b4e6,_0x46fbbc,_0x2a7b34,_0x57f80b,_0x5adada),__publicField(this,_0x523690(0x123),'conflict'),(this['_isPermissionRej']=_0x12e7e9,this[_0x523690(0x159)]=_0x30b9d1,this[_0x523690(0x3dd)]=_0x4f814d,this[_0x523690(0x127)]=_0x4ab292,this['localCacheService']=_0x5adada,this[_0x523690(0x3de)](),this[_0x523690(0x3a6)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x43e0c9(0x220)](){return this;}[_0x43e0c9(0x2b5)](){return this;}[_0x43e0c9(0x273)](){return this;}[_0x43e0c9(0x32a)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x43e0c9(0x3ee)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x43e0c9(0x3a6)](){var _0x4fb550=_0x43e0c9,_0x3b3448;(_0x3b3448=this[_0x4fb550(0x289)])==null||_0x3b3448[_0x4fb550(0x2fd)](this[_0x4fb550(0x442)],this[_0x4fb550(0x3b0)],null,[]);}[_0x43e0c9(0x3de)](){var _0x2adef1=_0x43e0c9;this[_0x2adef1(0x1c7)]?this['_collaborationUIEventService'][_0x2adef1(0x43a)]({'id':CollaborationUIEventId['PERMISSION_DENIED']}):this['_collaborationUIEventService'][_0x2adef1(0x43a)]({'id':CollaborationUIEventId[_0x2adef1(0x2a0)]});}[_0x43e0c9(0x35c)](){var _0x55a82c=_0x43e0c9;this[_0x55a82c(0x159)]['updatePermissionPoint'](new WorkbookEditablePermission(this[_0x55a82c(0x442)])['id'],!0x1);}},__name(_a10,_0x43e0c9(0x2b3)),_a10);ConflictState=__decorateClass$d([__decorateParam$d(0x6,Inject(IPermissionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Inject(RevisionService)),__decorateParam$d(0xa,Inject(LocaleService)),__decorateParam$d(0xb,Inject(CollaborationUIEventService)),__decorateParam$d(0xc,Optional(ILocalCacheService))],ConflictState);var _a11;let OfflineState=(_a11=class extends CollaborationState{constructor(_0x586788,_0x3ce1cb,_0x2f04bd,_0x2951fa,_0xfcfae9,_0x3a72d5,_0x59ade1,_0x4d9ab6,_0x2fe44e,_0x40a541){var _0x590a72=_0x43e0c9;super(_0x586788,_0x3ce1cb,_0x2f04bd,_0x2951fa,_0xfcfae9,_0x4d9ab6,_0x2fe44e,_0x59ade1,_0x40a541),__publicField(this,_0x590a72(0x123),_0x590a72(0x2c8)),this[_0x590a72(0x403)]=_0x3a72d5;}['appendMutation'](_0x590483){var _0x4b9e49=_0x43e0c9;return this['_pendingMutations'][_0x4b9e49(0x119)](_0x590483),this['_updateLocalCache'](),this;}[_0x43e0c9(0x220)](_0x142b92){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x43e0c9(0x2b5)](){var _0x21a461=_0x43e0c9;throw new Error(_0x21a461(0x3ac));}['onRemoteRej'](){var _0x2c4974=_0x43e0c9;throw new Error(_0x2c4974(0x1a0));}['onRemoteRetry'](){return this;}[_0x43e0c9(0x31c)](){return this;}['toggleOnline'](){var _0x114c10=_0x43e0c9;const {_injector:_0x2bfad5,_pendingMutations:_0x4cd98f,_awaitingChangeset:_0x3a815a,unitID:_0x2400a8,_handler:_0x5131b5,type:_0x5e1fa1}=this,_0x22a25c=createOnlineState(_0x2bfad5,_0x2400a8,_0x5e1fa1,_0x3a815a,_0x4cd98f,_0x5131b5);return _0x22a25c instanceof PendingState?_0x22a25c[_0x114c10(0x1f9)]():(_0x22a25c instanceof AwaitingWithPendingState||_0x22a25c instanceof AwaitingState)&&_0x22a25c['resend'](),_0x22a25c;}['resend'](){var _0x16e566=_0x43e0c9;throw new Error(_0x16e566(0x3da));}},__name(_a11,_0x43e0c9(0x244)),_a11);OfflineState=__decorateClass$d([__decorateParam$d(0x5,Inject(Injector)),__decorateParam$d(0x6,Inject(RevisionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Optional(ILocalCacheService))],OfflineState);var _a12;let FetchingMissState=(_a12=class extends CollaborationState{constructor(_0x713333,_0x5bc442,_0x45374e,_0x3ab25d,_0x365bca,_0x45a121,_0x28cf6c,_0x3a7d29,_0x1948f2,_0x10797c,_0x552fa9,_0x13a353,_0x53aaf6,_0x1fbf44){var _0x23e68e=_0x43e0c9;super(_0x713333,_0x5bc442,_0x45374e,_0x3ab25d,_0x28cf6c,_0x552fa9,_0x13a353,_0x1948f2,_0x1fbf44),__publicField(this,'status',_0x23e68e(0x3e6)),(this[_0x23e68e(0x2da)]=_0x365bca,this[_0x23e68e(0x2bc)]=_0x45a121,this[_0x23e68e(0x403)]=_0x3a7d29,this[_0x23e68e(0x11f)]=_0x10797c,this[_0x23e68e(0x345)]=_0x53aaf6,this[_0x23e68e(0x284)]=_0x1fbf44);}[_0x43e0c9(0x1a5)](_0x4eef64){var _0x244d1e=_0x43e0c9;try{const _0x284eeb=[..._0x4eef64,...this[_0x244d1e(0x2bc)]],_0x4642ce=[this[_0x244d1e(0x20d)]||this['_acknowledgedAwaitingChangeset']][_0x244d1e(0x140)](_0x1781f4=>!!_0x1781f4);let _0x23bb06,_0x47ac2c;if(_0x4642ce[_0x244d1e(0x233)]){const _0x23ed06=this[_0x244d1e(0x345)][_0x244d1e(0x398)](_0x284eeb,_0x4642ce,!0x1);if(!isTransformChangesetsSuccess(_0x23ed06))throw _0x23ed06['error'];_0x23bb06=_0x23ed06[_0x244d1e(0x1ef)],_0x47ac2c=_0x23ed06['c2Prime'];}else _0x23bb06=_0x284eeb,_0x47ac2c=[];let _0x329888=this[_0x244d1e(0x1c5)];_0x23bb06[_0x244d1e(0x392)](_0x20a4d2=>{var _0x148829=_0x244d1e;let _0x32ed3e;if(_0x329888[_0x148829(0x233)]){const _0x1e06f5=this[_0x148829(0x345)][_0x148829(0x346)](_0x20a4d2,_0x329888);if(!isTransformMutationsWithChangesetSuccess(_0x1e06f5))throw _0x1e06f5['error'];_0x32ed3e=_0x1e06f5['c1Prime'],_0x329888=_0x1e06f5[_0x148829(0xfa)];}else _0x32ed3e=_0x20a4d2;this[_0x148829(0x21e)](_0x32ed3e);}),this['_acknowledgedAwaitingChangeset']&&this[_0x244d1e(0x40a)](),this['_awaitingChangeset']&&_0x47ac2c['length']&&(_0x47ac2c[0x0]['baseRev']=this[_0x244d1e(0x13e)]());let _0x59c3a9;if(this[_0x244d1e(0x20d)]&&_0x329888['length']!==0x0)_0x59c3a9=this[_0x244d1e(0x403)][_0x244d1e(0x39f)](AwaitingWithPendingState,this[_0x244d1e(0x442)],this['type'],_0x47ac2c[0x0],_0x329888,this[_0x244d1e(0x3bd)],void 0x0);else{if(this[_0x244d1e(0x20d)]&&_0x329888['length']===0x0)_0x47ac2c[0x0][_0x244d1e(0x191)]=this[_0x244d1e(0x13e)](),_0x59c3a9=this[_0x244d1e(0x403)]['createInstance'](AwaitingState,this[_0x244d1e(0x442)],this['type'],_0x47ac2c[0x0],this[_0x244d1e(0x3bd)]);else{if(_0x329888[_0x244d1e(0x233)]!==0x0){const _0x118af6=this[_0x244d1e(0x403)][_0x244d1e(0x39f)](PendingState,this[_0x244d1e(0x442)],this['type'],_0x329888,this[_0x244d1e(0x3bd)]);_0x118af6['_schedule'](),_0x59c3a9=_0x118af6;}else _0x59c3a9=this[_0x244d1e(0x403)][_0x244d1e(0x39f)](SyncedState,this[_0x244d1e(0x442)],this[_0x244d1e(0x3b0)],this['_handler']);}}return _0x59c3a9[_0x244d1e(0x3dc)](),_0x59c3a9;}catch(_0x3b7ab9){return this[_0x244d1e(0x11f)][_0x244d1e(0x1c8)](_0x244d1e(0x102),_0x244d1e(0x19b),_0x3b7ab9),this[_0x244d1e(0x403)][_0x244d1e(0x39f)](ConflictState,this[_0x244d1e(0x442)],this[_0x244d1e(0x3b0)],this[_0x244d1e(0x20d)],this['_pendingMutations'],this[_0x244d1e(0x3bd)],!0x1);}}[_0x43e0c9(0x3ee)](){var _0x3a8001=_0x43e0c9;throw new Error(_0x3a8001(0x1e9));}[_0x43e0c9(0x35f)](_0x3b57c7){var _0x151837=_0x43e0c9;return this[_0x151837(0x1c5)][_0x151837(0x119)](_0x3b57c7),this;}['onRemoteChangeset'](_0x511327){var _0x1d0d1b=_0x43e0c9;return this['_queuedRemoteChangesets'][_0x1d0d1b(0x119)](_0x511327),this;}[_0x43e0c9(0x2b5)](_0xb51bd8){var _0x51f3fc=_0x43e0c9;if(this[_0x51f3fc(0x20d)])return this['_acknowledgedAwaitingChangeset']=this[_0x51f3fc(0x20d)],this['_awaitingChangeset']=null,this;throw new Error(_0x51f3fc(0xfb));}['onRemoteRej'](_0x56cbd1){var _0xc625f2=_0x43e0c9;return this['_onConflict'](!!(_0x56cbd1!=null&&_0x56cbd1[_0xc625f2(0x24a)]));}[_0x43e0c9(0x32a)](){return this;}[_0x43e0c9(0x31c)](){var _0x572313=_0x43e0c9;return this[_0x572313(0x403)][_0x572313(0x39f)](OfflineState,this[_0x572313(0x442)],this[_0x572313(0x3b0)],this[_0x572313(0x20d)],this[_0x572313(0x1c5)],this[_0x572313(0x3bd)]);}['toggleOnline'](){return this;}['_onConflict'](_0x1761c4){var _0x255262=_0x43e0c9;return this[_0x255262(0x403)]['createInstance'](ConflictState,this['unitID'],this[_0x255262(0x3b0)],this[_0x255262(0x20d)],this[_0x255262(0x1c5)],this[_0x255262(0x3bd)],_0x1761c4);}},__name(_a12,_0x43e0c9(0x2b4)),_a12);FetchingMissState=__decorateClass$d([__decorateParam$d(0x7,Inject(Injector)),__decorateParam$d(0x8,Inject(RevisionService)),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ICommandService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,ITransformService),__decorateParam$d(0xd,Optional(ILocalCacheService))],FetchingMissState);function createOnlineState(_0x237123,_0x12dc0,_0x58cae7,_0x5bc835,_0x579e69,_0x33cef3){var _0x28f223=_0x43e0c9;return _0x5bc835&&_0x579e69[_0x28f223(0x233)]?_0x237123[_0x28f223(0x39f)](AwaitingWithPendingState,_0x12dc0,_0x58cae7,_0x5bc835,_0x579e69,_0x33cef3,void 0x0):_0x5bc835?_0x237123[_0x28f223(0x39f)](AwaitingState,_0x12dc0,_0x58cae7,_0x5bc835,_0x33cef3):_0x579e69[_0x28f223(0x233)]?_0x237123[_0x28f223(0x39f)](PendingState,_0x12dc0,_0x58cae7,_0x579e69,_0x33cef3):_0x237123[_0x28f223(0x39f)](SyncedState,_0x12dc0,_0x58cae7,_0x33cef3);}__name(createOnlineState,_0x43e0c9(0x401));var __defProp$c=Object['defineProperty'],__getOwnPropDesc$c=Object[_0x43e0c9(0x33e)],__decorateClass$c=__name((_0x219cdc,_0x5d4243,_0xeccfa2,_0x396766)=>{var _0x327cc2=_0x43e0c9;for(var _0x27db5d=_0x396766>0x1?void 0x0:_0x396766?__getOwnPropDesc$c(_0x5d4243,_0xeccfa2):_0x5d4243,_0x52f153=_0x219cdc[_0x327cc2(0x233)]-0x1,_0x123e08;_0x52f153>=0x0;_0x52f153--)(_0x123e08=_0x219cdc[_0x52f153])&&(_0x27db5d=(_0x396766?_0x123e08(_0x5d4243,_0xeccfa2,_0x27db5d):_0x123e08(_0x27db5d))||_0x27db5d);return _0x396766&&_0x27db5d&&__defProp$c(_0x5d4243,_0xeccfa2,_0x27db5d),_0x27db5d;},_0x43e0c9(0x373)),__decorateParam$c=__name((_0x38fc03,_0x5476d1)=>(_0x8d4860,_0x47d2bf)=>_0x5476d1(_0x8d4860,_0x47d2bf,_0x38fc03),_0x43e0c9(0x305)),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x268f04,_0x10e3c5,_0x1cd8ce,_0x2cc734,_0x24d34d,_0x289473,_0x9dcd27,_0x36db77,_0xfe2288,_0x483ffd,_0x408c91,_0x27ce9f,_0x5a08a9){var _0x2bd8f5=_0x43e0c9;super(),__publicField(this,_0x2bd8f5(0x1df),new BehaviorSubject(null)),__publicField(this,_0x2bd8f5(0xfd),this[_0x2bd8f5(0x1df)][_0x2bd8f5(0x37f)]()),__publicField(this,_0x2bd8f5(0x290)),__publicField(this,_0x2bd8f5(0x125),!0x1),__publicField(this,_0x2bd8f5(0x2c1),''),__publicField(this,_0x2bd8f5(0x1c3),0x0),__publicField(this,_0x2bd8f5(0x26a),this[_0x2bd8f5(0xfd)]['pipe'](_0x14d6b6(_0x1bf4c3=>_0x1bf4c3?_0x1bf4c3['status']:CollaborationStatus[_0x2bd8f5(0x2be)]),shareReplay(0x1))),__publicField(this,_0x2bd8f5(0x340),!0x1),__publicField(this,'_remoteChangesetQueue',[]),(this[_0x2bd8f5(0x442)]=_0x268f04,this[_0x2bd8f5(0x39d)]=_0x10e3c5,this[_0x2bd8f5(0x203)]=_0x1cd8ce,this[_0x2bd8f5(0x403)]=_0x2cc734,this[_0x2bd8f5(0x16a)]=_0x24d34d,this[_0x2bd8f5(0x3dd)]=_0x289473,this[_0x2bd8f5(0x3c0)]=_0x9dcd27,this['_eventService']=_0x36db77,this[_0x2bd8f5(0x11f)]=_0xfe2288,this['_commandService']=_0x483ffd,this['_permissionService']=_0x408c91,this[_0x2bd8f5(0x1b5)]=_0x27ce9f,this[_0x2bd8f5(0x289)]=_0x5a08a9);}get[_0x43e0c9(0x336)](){var _0x4e5b27=_0x43e0c9;return this[_0x4e5b27(0x290)];}async[_0x43e0c9(0x21c)](){var _0x1e54e4=_0x43e0c9;if(this[_0x1e54e4(0x336)])throw new Error(_0x1e54e4(0x1d4));await this[_0x1e54e4(0x19e)]();}[_0x43e0c9(0x1cf)](){var _0x54a9f5=_0x43e0c9;return this[_0x54a9f5(0x125)]=!0x0,toDisposable(()=>{var _0x3addae=_0x54a9f5;this[_0x3addae(0x125)]=!0x1,this[_0x3addae(0x380)]();});}[_0x43e0c9(0x2c5)](_0x111e33){var _0x325721=_0x43e0c9;this[_0x325721(0x1cc)](_0x111e33);}[_0x43e0c9(0x3ca)](_0x49e831){var _0xea6817=_0x43e0c9;this[_0xea6817(0x290)]=_0x49e831,this['_state$'][_0xea6817(0x2e5)](_0x49e831);}async[_0x43e0c9(0x19e)](){var _0x1ef899=_0x43e0c9,_0x547d55;this[_0x1ef899(0x3ca)](await this[_0x1ef899(0x15e)]()),this['_singleActiveUnitService']&&((_0x547d55=this[_0x1ef899(0x1b5)])==null||_0x547d55['editingUnit'](this[_0x1ef899(0x442)]),this['disposeWithMe'](this[_0x1ef899(0x1b5)]['getUnitStatus$'](this[_0x1ef899(0x442)])['subscribe'](_0x1d7fe8=>{var _0x1b14cc=_0x1ef899;this[_0x1b14cc(0x11f)]['debug'](_0x1b14cc(0xf8),_0x1b14cc(0x35d),_0x1d7fe8),_0x1d7fe8===UnitStatus[_0x1b14cc(0x350)]?(this[_0x1b14cc(0x420)][_0x1b14cc(0x43a)]({'id':CollaborationUIEventId['OTHER_CLIENT_EDITING']}),this[_0x1b14cc(0x159)][_0x1b14cc(0x10b)](new WorkbookEditablePermission(this[_0x1b14cc(0x442)])['id'],!0x1),this[_0x1b14cc(0x159)][_0x1b14cc(0x413)](!0x1)):(this['_permissionService'][_0x1b14cc(0x10b)](new WorkbookEditablePermission(this['unitID'])['id'],!0x0),this['_permissionService']['setShowComponents'](!0x0));})));let _0x21aa71=!0x1;return this[_0x1ef899(0x18f)](this[_0x1ef899(0x39d)][_0x1ef899(0x27c)]['subscribe'](_0x354de0=>{var _0x284b0b=_0x1ef899;_0x354de0===SessionStatus[_0x284b0b(0x310)]?this[_0x284b0b(0x25e)](_0x21aa71):_0x354de0===SessionStatus[_0x284b0b(0x2be)]&&(_0x21aa71=!0x0,this[_0x284b0b(0x151)]());})),this[_0x1ef899(0x18f)](this[_0x1ef899(0x39d)]['event$'][_0x1ef899(0x352)](_0x34229a=>{var _0x574f12=_0x1ef899;try{switch(_0x34229a[_0x574f12(0x25d)]){case CollaborationEvent['NEW_CHANGESETS']:{this[_0x574f12(0x213)](parseProtocolChangeset(_0x34229a[_0x574f12(0x14c)]));break;}case CollaborationEvent[_0x574f12(0x24c)]:{this[_0x574f12(0x12b)](_0x34229a[_0x574f12(0x14c)]);break;}case CollaborationEvent[_0x574f12(0x26d)]:{this[_0x574f12(0x188)]();break;}case CollaborationEvent[_0x574f12(0x1b0)]:{this[_0x574f12(0x406)](_0x34229a['data']);break;}case CollaborationEvent[_0x574f12(0x28d)]:{this[_0x574f12(0x22e)](_0x34229a[_0x574f12(0x14c)]['changesets'][_0x574f12(0x12e)](_0x33879=>parseProtocolChangeset(_0x33879)));break;}case CollaborationEvent[_0x574f12(0x3db)]:{this[_0x574f12(0x188)]({'isPermissionRej':!0x0});break;}case CollaborationEvent['UNISCRIPT_RUN']:break;}}catch(_0x2c07a4){throw console[_0x574f12(0x1c8)](_0x574f12(0x293),_0x2c07a4),_0x2c07a4;}})),this['_state'];}[_0x43e0c9(0x256)](){var _0xf2503e=_0x43e0c9;this[_0xf2503e(0x340)]=!0x1;}['_lockTransition'](){var _0x39b661=_0x43e0c9;if(this[_0x39b661(0x340)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x39b661(0x340)]=!0x0;}[_0x43e0c9(0x1cc)](_0x44763b){var _0x2a24a3=_0x43e0c9;this[_0x2a24a3(0x3b4)](),this[_0x2a24a3(0x3ca)](this[_0x2a24a3(0x290)][_0x2a24a3(0x35f)](_0x44763b)),this['_unlockTransition']();}[_0x43e0c9(0x213)](_0x413997){var _0x2cfa95=_0x43e0c9;if(!(_0x413997[_0x2cfa95(0x267)]<=this[_0x2cfa95(0x3c0)][_0x2cfa95(0x1c0)](this[_0x2cfa95(0x442)]))){if(this[_0x2cfa95(0x125)]){this['_remoteChangesetQueue']['push'](_0x413997);return;}this[_0x2cfa95(0x298)](_0x413997);}}['_exhaustRemoteChangesetQueue'](){var _0x257fdc=_0x43e0c9;this[_0x257fdc(0x1fa)]['forEach'](_0x200634=>this[_0x257fdc(0x298)](_0x200634)),this[_0x257fdc(0x1fa)]=[];}['_applyRemoteChangeset'](_0x43dbb5){var _0x520f87=_0x43e0c9;const _0x4dabd5=this[_0x520f87(0x16a)]['interceptor'][_0x520f87(0x308)](this[_0x520f87(0x16a)]['interceptor']['getInterceptPoints']()[_0x520f87(0x30a)])(_0x43dbb5[_0x520f87(0x245)],null)||_0x43dbb5[_0x520f87(0x245)],_0x4743bd={..._0x43dbb5,'mutations':_0x4dabd5};this['_lockTransition'](),this[_0x520f87(0x3ca)](this[_0x520f87(0x290)][_0x520f87(0x220)](_0x4743bd)),this[_0x520f87(0x256)]();}['_onRemoteACK'](_0x6fced2){var _0x1ab4cc=_0x43e0c9;this['_lockTransition'](),this[_0x1ab4cc(0x3ca)](this['_state'][_0x1ab4cc(0x2b5)](_0x6fced2)),this[_0x1ab4cc(0x256)]();}[_0x43e0c9(0x188)](_0x2158ab){var _0x135190=_0x43e0c9;this[_0x135190(0x3b4)](),this[_0x135190(0x3ca)](this[_0x135190(0x290)][_0x135190(0x273)](_0x2158ab)),this[_0x135190(0x256)]();}[_0x43e0c9(0x406)](_0x595a97){var _0x296e6b=_0x43e0c9;this['_lockTransition'](),this[_0x296e6b(0x3ca)](this[_0x296e6b(0x290)]['onRemoteRetry'](_0x595a97)),this[_0x296e6b(0x256)]();}['_onFetchMissResult'](_0x7459cc){var _0x5ebfea=_0x43e0c9;if(!(this[_0x5ebfea(0x290)]instanceof FetchingMissState))throw new TypeError(_0x5ebfea(0x1e5));const _0x59153b=_0x7459cc[_0x5ebfea(0x12e)](_0x13e3a8=>{var _0x44ba1b=_0x5ebfea;const _0x5d80b3=this[_0x44ba1b(0x16a)][_0x44ba1b(0x2d1)][_0x44ba1b(0x308)](this['_compressMutationService'][_0x44ba1b(0x2d1)][_0x44ba1b(0x1ff)]()[_0x44ba1b(0x30a)])(_0x13e3a8[_0x44ba1b(0x245)],null)||_0x13e3a8['mutations'];return{..._0x13e3a8,'mutations':_0x5d80b3};});this[_0x5ebfea(0x3b4)](),this[_0x5ebfea(0x3ca)](this[_0x5ebfea(0x290)][_0x5ebfea(0x1a5)](_0x59153b)),this[_0x5ebfea(0x256)]();}[_0x43e0c9(0x151)](){var _0x189b33=_0x43e0c9;this[_0x189b33(0x3b4)](),this['_updateState'](this[_0x189b33(0x290)]['toggleOffline']()),this[_0x189b33(0x256)]();}[_0x43e0c9(0x25e)](_0x16679b=!0x1){var _0x2ec036=_0x43e0c9;this['_lockTransition'](),this[_0x2ec036(0x3ca)](this[_0x2ec036(0x290)]['toggleOnline']()),this[_0x2ec036(0x256)]();const _0x2e3bf2=this['_state'];_0x16679b&&_0x2e3bf2 instanceof SyncedState&&(this[_0x2ec036(0x3b4)](),this[_0x2ec036(0x3ca)](_0x2e3bf2[_0x2ec036(0x26b)]()),this[_0x2ec036(0x256)]());}async[_0x43e0c9(0x15e)](){return new Promise(_0x27c81e=>{var _0x11e588=_0x5029;this[_0x11e588(0x39d)][_0x11e588(0x27c)][_0x11e588(0x1f0)](_0x4af4d9(0x1))[_0x11e588(0x352)](async _0x402c37=>{var _0x1ee2e2=_0x11e588;_0x27c81e(await this[_0x1ee2e2(0x1dc)](_0x402c37===SessionStatus[_0x1ee2e2(0x310)]));});});}[_0x43e0c9(0x3fc)](){var _0x25996b=_0x43e0c9;const _0x5f3e6f=this['unitID'];return{'onStateChange':__name((_0xde17d4,_0x408f04)=>{var _0xa99cd9=_0x5029;if(_0xde17d4!==this[_0xa99cd9(0x290)])throw new Error(_0xa99cd9(0x3bf)+_0xde17d4[_0xa99cd9(0x123)]+_0xa99cd9(0x275)+_0x408f04[_0xa99cd9(0x123)]+'\x0aCurrent:\x20'+this[_0xa99cd9(0x290)][_0xa99cd9(0x123)]);this[_0xa99cd9(0x3ca)](_0x408f04);},_0x25996b(0x358)),'onSendChangeset':__name(_0x4790e1=>{var _0x52d01d=_0x25996b;_0x4790e1[_0x52d01d(0x20c)]||(_0x4790e1['sid']=this[_0x52d01d(0x2c1)],_0x4790e1[_0x52d01d(0x185)]=++this[_0x52d01d(0x1c3)]);const _0x508880={'eventID':CollaborationEvent['SUBMIT_CHANGESET'],'data':{'unitID':_0x4790e1[_0x52d01d(0x442)],'unitType':this['_type'],'changeset':_0x4790e1,'memberID':this[_0x52d01d(0x39d)][_0x52d01d(0x297)]()}};this['session'][_0x52d01d(0x313)](_0x508880,this[_0x52d01d(0x442)]);},_0x25996b(0x2dc)),'onMissingChangesets':__name(({from:_0x487f7e,to:_0x28b907})=>{var _0x4f9c09=_0x25996b;this[_0x4f9c09(0x11f)][_0x4f9c09(0x287)]('[CollaborationEntity]',_0x4f9c09(0x39e)+_0x487f7e+_0x4f9c09(0x2d3)+_0x28b907);const _0x3d9e7e={'eventID':CollaborationEvent[_0x4f9c09(0x34c)],'data':{'unitID':_0x5f3e6f,'unitType':this[_0x4f9c09(0x203)],'from':_0x487f7e,'to':_0x28b907}};this['session'][_0x4f9c09(0x313)](_0x3d9e7e,this[_0x4f9c09(0x442)]);},_0x25996b(0x195))};}async[_0x43e0c9(0x1dc)](_0x40c840){var _0x1d5267=_0x43e0c9,_0x3e8a79,_0x4bb1e2,_0x5d1da8;const _0x5840ea=await((_0x3e8a79=this[_0x1d5267(0x289)])==null?void 0x0:_0x3e8a79['loadOfflineData'](this[_0x1d5267(0x442)])),_0xf2ebe=(_0x4bb1e2=_0x5840ea==null?void 0x0:_0x5840ea[_0x1d5267(0x245)])!=null?_0x4bb1e2:[],_0x1dd4d0=(_0x5d1da8=_0x5840ea==null?void 0x0:_0x5840ea[_0x1d5267(0x3f2)])!=null?_0x5d1da8:null,_0x4fef31=!!(_0x1dd4d0!=null&&_0x1dd4d0['sid'])&&!!(_0x1dd4d0!=null&&_0x1dd4d0[_0x1d5267(0x185)]);this['_changesetSessionId']=_0x4fef31?_0x1dd4d0[_0x1d5267(0x20c)]:v4(),this[_0x1d5267(0x1c3)]=_0x4fef31?_0x1dd4d0[_0x1d5267(0x185)]:0x0;const _0x287d9c=this['unitID'];try{this['_replayCachedMutations'](_0x1dd4d0,_0xf2ebe);}catch(_0x5d2289){this[_0x1d5267(0x11f)]['error'](_0x5d2289);}const _0x5143ca=this['_createHandler']();if(_0x40c840){const _0xc7c042=createOnlineState(this['_injector'],_0x287d9c,this[_0x1d5267(0x203)],_0x1dd4d0,_0xf2ebe,_0x5143ca);return _0xc7c042 instanceof PendingState?_0xc7c042[_0x1d5267(0x1f9)]():(_0xc7c042 instanceof AwaitingWithPendingState||_0xc7c042 instanceof AwaitingState)&&_0xc7c042[_0x1d5267(0x3ee)](),_0xc7c042;}return this[_0x1d5267(0x403)][_0x1d5267(0x39f)](OfflineState,_0x287d9c,this[_0x1d5267(0x203)],_0x1dd4d0,_0xf2ebe,_0x5143ca);}[_0x43e0c9(0x29f)](_0x2afc38,_0x11e031){var _0x40685f=_0x43e0c9,_0x3150c1,_0x1263f8;const _0x2677f3=this[_0x40685f(0x16a)][_0x40685f(0x2d1)][_0x40685f(0x308)](this[_0x40685f(0x16a)][_0x40685f(0x2d1)][_0x40685f(0x1ff)]()[_0x40685f(0x30a)]);(_0x3150c1=_0x2677f3((_0x2afc38==null?void 0x0:_0x2afc38[_0x40685f(0x245)])||[],null))==null||_0x3150c1[_0x40685f(0x392)](_0x450c33=>this[_0x40685f(0x1ae)][_0x40685f(0x3f7)](_0x450c33['id'],_0x450c33['params'])),(_0x1263f8=_0x2677f3(_0x11e031||[],null))==null||_0x1263f8[_0x40685f(0x392)](_0x246390=>this['_commandService'][_0x40685f(0x3f7)](_0x246390['id'],_0x246390['params']));}},__name(_a13,'CollaborationEntity'),_a13);CollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],CollaborationEntity);var _a14;let DocCollaborationEntity=(_a14=class extends CollaborationEntity{constructor(_0x4584d4,_0x538361,_0x462dde,_0x4d668b,_0x3b803c,_0x1e6bdd,_0x5a7063,_0x5142d0,_0x1095a6,_0x4c263a,_0x1e543d,_0x311a7f,_0x4c4954){var _0x3bcab=_0x43e0c9;super(_0x4584d4,_0x462dde,_0x538361,_0x4d668b,_0x3b803c,_0x1e6bdd,_0x5a7063,_0x5142d0,_0x1095a6,_0x4c263a,_0x1e543d,_0x311a7f,_0x4c4954),__publicField(this,_0x3bcab(0x246),null),(this[_0x3bcab(0x442)]=_0x4584d4,this[_0x3bcab(0x3b0)]=_0x538361);}['addHandlerCallback'](_0x11c948){var _0x2e2aee=_0x43e0c9;this[_0x2e2aee(0x246)]=_0x11c948;}['dispose'](){var _0x5b1287=_0x43e0c9;this[_0x5b1287(0x246)]=null,super[_0x5b1287(0x25b)]();}[_0x43e0c9(0x3fc)](){var _0x3af63d=_0x43e0c9;const _0x587bf5=super['_createHandler']();return _0x587bf5[_0x3af63d(0x173)]=_0x503a79=>{var _0x3b7329=_0x3af63d,_0x4e2956,_0x2b0f1e;return(_0x2b0f1e=(_0x4e2956=this[_0x3b7329(0x246)])==null?void 0x0:_0x4e2956[_0x3b7329(0x173)])==null?void 0x0:_0x2b0f1e[_0x3b7329(0x314)](_0x4e2956,_0x503a79);},_0x587bf5[_0x3af63d(0x3c4)]=_0x3dc51a=>{var _0x4822f5=_0x3af63d,_0x2843e4,_0x569073;return(_0x569073=(_0x2843e4=this[_0x4822f5(0x246)])==null?void 0x0:_0x2843e4[_0x4822f5(0x3c4)])==null?void 0x0:_0x569073[_0x4822f5(0x314)](_0x2843e4,_0x3dc51a);},_0x587bf5['onTransformSelections']=_0x5e20f5=>{var _0x340670=_0x3af63d,_0x39bfea,_0x273c92;return(_0x273c92=(_0x39bfea=this[_0x340670(0x246)])==null?void 0x0:_0x39bfea[_0x340670(0x250)])==null?void 0x0:_0x273c92['call'](_0x39bfea,_0x5e20f5);},_0x587bf5[_0x3af63d(0x37c)]=_0x341c8c=>{var _0x4bcc7f=_0x3af63d,_0x1d7d07,_0x1203ba;return(_0x1203ba=(_0x1d7d07=this['_handlerCallback'])==null?void 0x0:_0x1d7d07[_0x4bcc7f(0x37c)])==null?void 0x0:_0x1203ba['call'](_0x1d7d07,_0x341c8c);},_0x587bf5[_0x3af63d(0x11e)]=_0x56dcab=>{var _0x6cf43e=_0x3af63d,_0x1df6d8,_0x213dd8,_0xcac2ce;if(!((_0x1df6d8=this[_0x6cf43e(0x246)])!=null&&_0x1df6d8[_0x6cf43e(0x11e)]))throw new Error('onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.');return(_0xcac2ce=(_0x213dd8=this[_0x6cf43e(0x246)])==null?void 0x0:_0x213dd8[_0x6cf43e(0x11e)])==null?void 0x0:_0xcac2ce['call'](_0x213dd8,_0x56dcab);},_0x587bf5[_0x3af63d(0x404)]=_0x4aac8d=>{var _0x43609b=_0x3af63d,_0x1d7312,_0x32f4fd,_0x337ba2;if(!((_0x1d7312=this[_0x43609b(0x246)])!=null&&_0x1d7312['onTransformRemoteChangesetByStateCache']))throw new Error(_0x43609b(0x21f));return(_0x337ba2=(_0x32f4fd=this[_0x43609b(0x246)])==null?void 0x0:_0x32f4fd[_0x43609b(0x404)])==null?void 0x0:_0x337ba2[_0x43609b(0x314)](_0x32f4fd,_0x4aac8d);},_0x587bf5;}async[_0x43e0c9(0x19e)](){var _0x4db805=_0x43e0c9;const _0xdaf83e=await super[_0x4db805(0x19e)]();return this['disposeWithMe'](this[_0x4db805(0x1ae)][_0x4db805(0x30d)]((_0x8b84cf,_0x401c64)=>{var _0x323656=_0x4db805;if(_0x8b84cf[_0x323656(0x3b0)]!==CommandType[_0x323656(0x189)]||_0x401c64!=null&&_0x401c64['fromCollab']||_0x401c64!=null&&_0x401c64['onlyLocal']||_0x8b84cf['id']===RichTextEditingMutation['id'])return;const _0x3d0157=_0x8b84cf[_0x323656(0xf1)];if((_0x3d0157==null?void 0x0:_0x3d0157[_0x323656(0x38e)])!==this[_0x323656(0x442)])return;const _0x18d9a5=_0x8b84cf,_0x526d5a=this['_compressMutationService'][_0x323656(0x2d1)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x323656(0x2f9)])([_0x18d9a5],null)||[_0x18d9a5];this[_0x323656(0x1cc)](_0x526d5a[0x0]);})),_0xdaf83e;}},__name(_a14,'DocCollaborationEntity'),_a14);DocCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],DocCollaborationEntity);var _a15;let SheetCollaborationEntity=(_a15=class extends CollaborationEntity{constructor(_0x885ff7,_0x388282,_0x563921,_0x29cfff,_0xf40966,_0x458cc6,_0x131235,_0x438a39,_0x2c1fc7,_0x49a01a,_0x35f94d,_0x7cb8ff,_0x4f4ebb,_0x2b52e8){var _0x3ba59f=_0x43e0c9;super(_0x885ff7,_0x563921,_0x388282,_0x29cfff,_0xf40966,_0x458cc6,_0x131235,_0x2c1fc7,_0x49a01a,_0x35f94d,_0x7cb8ff,_0x4f4ebb,_0x2b52e8),this[_0x3ba59f(0x442)]=_0x885ff7,this[_0x3ba59f(0x3b0)]=_0x388282,this[_0x3ba59f(0x319)]=_0x438a39;}['_createHandler'](){var _0x1a16af=_0x43e0c9;const _0x4d4cdd=super[_0x1a16af(0x3fc)]();return _0x4d4cdd['onTransformSelections']=_0x25f4a2=>this[_0x1a16af(0x319)][_0x1a16af(0x3d9)](_0x25f4a2),_0x4d4cdd;}async[_0x43e0c9(0x19e)](){var _0x28cd9d=_0x43e0c9;const _0x3518d3=await super['_init']();return this[_0x28cd9d(0x18f)](this['_commandService'][_0x28cd9d(0x30d)]((_0x5900f1,_0x14b1b2)=>{var _0x3ba2bf=_0x28cd9d;if(_0x5900f1['type']!==CommandType[_0x3ba2bf(0x189)]||_0x14b1b2!=null&&_0x14b1b2[_0x3ba2bf(0x374)]||_0x14b1b2!=null&&_0x14b1b2[_0x3ba2bf(0x2c4)])return;const _0x4de7d0=_0x5900f1[_0x3ba2bf(0xf1)];if((_0x4de7d0==null?void 0x0:_0x4de7d0[_0x3ba2bf(0x38e)])!==this[_0x3ba2bf(0x442)])return;const _0x2ab098=_0x5900f1,_0x4c365e=this[_0x3ba2bf(0x16a)]['interceptor'][_0x3ba2bf(0x308)](this[_0x3ba2bf(0x16a)][_0x3ba2bf(0x2d1)][_0x3ba2bf(0x1ff)]()[_0x3ba2bf(0x2f9)])([_0x2ab098],null)||[_0x2ab098];this[_0x3ba2bf(0x1cc)](_0x4c365e[0x0]);})),_0x3518d3;}},__name(_a15,'SheetCollaborationEntity'),_a15);SheetCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(SheetTransformSelectionsService)),__decorateParam$c(0x8,Inject(CollaborationUIEventService)),__decorateParam$c(0x9,ILogService),__decorateParam$c(0xa,ICommandService),__decorateParam$c(0xb,IPermissionService),__decorateParam$c(0xc,Optional(ISingleActiveUnitService)),__decorateParam$c(0xd,Optional(ILocalCacheService))],SheetCollaborationEntity);var __defProp$b=Object['defineProperty'],__getOwnPropDesc$b=Object[_0x43e0c9(0x33e)],__decorateClass$b=__name((_0x135eeb,_0x5d23c7,_0x2e86f9,_0x3e46bc)=>{var _0x288dc5=_0x43e0c9;for(var _0xc9fed1=_0x3e46bc>0x1?void 0x0:_0x3e46bc?__getOwnPropDesc$b(_0x5d23c7,_0x2e86f9):_0x5d23c7,_0x49343a=_0x135eeb[_0x288dc5(0x233)]-0x1,_0x4ec219;_0x49343a>=0x0;_0x49343a--)(_0x4ec219=_0x135eeb[_0x49343a])&&(_0xc9fed1=(_0x3e46bc?_0x4ec219(_0x5d23c7,_0x2e86f9,_0xc9fed1):_0x4ec219(_0xc9fed1))||_0xc9fed1);return _0x3e46bc&&_0xc9fed1&&__defProp$b(_0x5d23c7,_0x2e86f9,_0xc9fed1),_0xc9fed1;},_0x43e0c9(0x226)),__decorateParam$b=__name((_0x52a04e,_0x43ddfc)=>(_0x2985f5,_0x105fdc)=>_0x43ddfc(_0x2985f5,_0x105fdc,_0x52a04e),'__decorateParam$b'),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0x31d7df,_0x452c0f,_0x1a29d6){var _0x5e5f99=_0x43e0c9;super(),__publicField(this,_0x5e5f99(0x16f),new Map()),__publicField(this,_0x5e5f99(0x285),new Subject()),__publicField(this,'entityInit$',this[_0x5e5f99(0x285)][_0x5e5f99(0x37f)]()),(this[_0x5e5f99(0x403)]=_0x31d7df,this[_0x5e5f99(0x3d5)]=_0x452c0f,this['_univerInstanceService']=_0x1a29d6,this['_init']());}[_0x43e0c9(0x25b)](){var _0x24fc0f=_0x43e0c9;super['dispose'](),this['_entities'][_0x24fc0f(0x392)](_0x2de2b7=>_0x2de2b7[_0x24fc0f(0x25b)]()),this[_0x24fc0f(0x16f)]['clear']();}['getCollabEntity'](_0x56ed05){var _0x3f805c=_0x43e0c9,_0x509196;return(_0x509196=this[_0x3f805c(0x16f)]['get'](_0x56ed05))!=null?_0x509196:null;}[_0x43e0c9(0x35b)](_0x3c2d9f){var _0x4645fb=_0x43e0c9;const _0x1f3a2a=this[_0x4645fb(0x1a9)](_0x3c2d9f);return _0x1f3a2a?of(_0x1f3a2a):this['_entityInit$'][_0x4645fb(0x1f0)](filter(_0x3f1ab9=>_0x3f1ab9[_0x4645fb(0x442)]===_0x3c2d9f));}['readyForCollab'](_0x38d1ba){var _0x3b4217=_0x43e0c9;return firstValueFrom(this[_0x3b4217(0x35b)](_0x38d1ba)['pipe'](map(()=>{})));}[_0x43e0c9(0x19e)](){var _0x4fbe8=_0x43e0c9;this[_0x4fbe8(0x330)][_0x4fbe8(0x430)](UniverInstanceType[_0x4fbe8(0x202)])[_0x4fbe8(0x1f0)](takeUntil(this[_0x4fbe8(0x34a)]),delay(0x10))[_0x4fbe8(0x352)](async _0x3194f6=>{var _0x554ade=_0x4fbe8;const _0x346fbb=_0x3194f6[_0x554ade(0x2cb)](),_0x55a730=await this['_startCollaboration'](_0x346fbb,UniverType['UNIVER_SHEET']);this[_0x554ade(0x16f)][_0x554ade(0x116)](_0x346fbb,_0x55a730);}),this['_univerInstanceService'][_0x4fbe8(0x430)](UniverInstanceType[_0x4fbe8(0x199)])['pipe'](takeUntil(this[_0x4fbe8(0x34a)]),delay(0x10))['pipe'](filter(_0x24d428=>!_0x24d428[_0x4fbe8(0x2cb)]()[_0x4fbe8(0x12d)]('__')))['subscribe'](async _0x1bb588=>{var _0x13acd5=_0x4fbe8;const _0x13d73f=_0x1bb588[_0x13acd5(0x2cb)](),_0x517533=await this['_startCollaboration'](_0x13d73f,UniverType['UNIVER_DOC']);this[_0x13acd5(0x16f)][_0x13acd5(0x116)](_0x13d73f,_0x517533);}),merge(this[_0x4fbe8(0x330)][_0x4fbe8(0x33a)](UniverInstanceType['UNIVER_SHEET']),this[_0x4fbe8(0x330)]['getTypeOfUnitDisposed$'](UniverInstanceType[_0x4fbe8(0x199)]))['pipe'](takeUntil(this[_0x4fbe8(0x34a)]))['subscribe'](_0x4808b0=>{var _0x39c165=_0x4fbe8;const _0x4b68f=_0x4808b0['getUnitId'](),_0x884662=this['_entities'][_0x39c165(0x1c2)](_0x4b68f);_0x884662&&(_0x884662[_0x39c165(0x25b)](),this[_0x39c165(0x16f)]['delete'](_0x4b68f));});}async[_0x43e0c9(0x407)](_0x12699e,_0x11b4e5){var _0x257162=_0x43e0c9;const _0x50ee56=await this[_0x257162(0x3d5)][_0x257162(0x32d)](_0x12699e),_0x2e39dd=this['_injector'][_0x257162(0x39f)](this[_0x257162(0x445)](_0x11b4e5),_0x12699e,_0x11b4e5,_0x50ee56);return await _0x2e39dd['init'](),this[_0x257162(0x285)][_0x257162(0x2e5)](_0x2e39dd),_0x2e39dd;}[_0x43e0c9(0x445)](_0x41286b){var _0x3ec9b6=_0x43e0c9;switch(_0x41286b){case UniverType[_0x3ec9b6(0x199)]:return DocCollaborationEntity;case UniverType['UNIVER_SHEET']:return SheetCollaborationEntity;default:throw new Error(_0x3ec9b6(0x1d7)+_0x41286b);}}},__name(_a16,'CollaborationController'),_a16);CollaborationController=__decorateClass$b([__decorateParam$b(0x0,Inject(Injector)),__decorateParam$b(0x1,Inject(CollaborationSessionService)),__decorateParam$b(0x2,IUniverInstanceService)],CollaborationController);var __defProp$a=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$a=Object['getOwnPropertyDescriptor'],__decorateClass$a=__name((_0x127141,_0x53f6ea,_0x228323,_0x3dd26f)=>{for(var _0x4359ad=_0x3dd26f>0x1?void 0x0:_0x3dd26f?__getOwnPropDesc$a(_0x53f6ea,_0x228323):_0x53f6ea,_0x14fe05=_0x127141['length']-0x1,_0x22afba;_0x14fe05>=0x0;_0x14fe05--)(_0x22afba=_0x127141[_0x14fe05])&&(_0x4359ad=(_0x3dd26f?_0x22afba(_0x53f6ea,_0x228323,_0x4359ad):_0x22afba(_0x4359ad))||_0x4359ad);return _0x3dd26f&&_0x4359ad&&__defProp$a(_0x53f6ea,_0x228323,_0x4359ad),_0x4359ad;},_0x43e0c9(0x176)),__decorateParam$a=__name((_0x12cf91,_0x539f04)=>(_0x1ce2db,_0x1bb1cc)=>_0x539f04(_0x1ce2db,_0x1bb1cc,_0x12cf91),_0x43e0c9(0x2e7));const DEFAULT_FILE_NAME_KEY='DEFAULT_FILE_NAME',UNIVER_DEFAULT_FILE_NAME='Univer';var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x3f480b,_0x12fbaa){var _0x53145c=_0x43e0c9;super(),this[_0x53145c(0x330)]=_0x3f480b,this[_0x53145c(0x249)]=_0x12fbaa,this[_0x53145c(0x19e)]();}[_0x43e0c9(0x19e)](){var _0x54d547=_0x43e0c9;this[_0x54d547(0x18f)](this[_0x54d547(0x330)]['focused$'][_0x54d547(0x352)](()=>{var _0x514ce1=_0x54d547,_0xb3c60d;const _0x3f5009=this[_0x514ce1(0x330)][_0x514ce1(0x126)]();let _0x1f6bbc=(_0xb3c60d=this[_0x514ce1(0x249)][_0x514ce1(0x15f)](DEFAULT_FILE_NAME_KEY))!=null?_0xb3c60d:UNIVER_DEFAULT_FILE_NAME;_0x3f5009 instanceof Workbook&&(_0x1f6bbc=_0x3f5009[_0x514ce1(0x3e4)]),document[_0x514ce1(0x2c7)]=_0x1f6bbc;}));}},__name(_a17,_0x43e0c9(0x36a)),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$9=Object['getOwnPropertyDescriptor'],__decorateClass$9=__name((_0x2fa639,_0x168bee,_0x2d976b,_0x342d9a)=>{for(var _0x3277db=_0x342d9a>0x1?void 0x0:_0x342d9a?__getOwnPropDesc$9(_0x168bee,_0x2d976b):_0x168bee,_0x21365b=_0x2fa639['length']-0x1,_0x237953;_0x21365b>=0x0;_0x21365b--)(_0x237953=_0x2fa639[_0x21365b])&&(_0x3277db=(_0x342d9a?_0x237953(_0x168bee,_0x2d976b,_0x3277db):_0x237953(_0x3277db))||_0x3277db);return _0x342d9a&&_0x3277db&&__defProp$9(_0x168bee,_0x2d976b,_0x3277db),_0x3277db;},'__decorateClass$9'),__decorateParam$9=__name((_0x4e5d7f,_0x33e6c9)=>(_0xc27844,_0x5de7d8)=>_0x33e6c9(_0xc27844,_0x5de7d8,_0x4e5d7f),'__decorateParam$9'),_a18;let AuthServerService=(_a18=class{constructor(_0x31a397,_0x40c85f,_0x118eae){var _0x4df3ab=_0x43e0c9;this[_0x4df3ab(0x249)]=_0x31a397,this[_0x4df3ab(0x141)]=_0x40c85f,this['localeService']=_0x118eae,this[_0x4df3ab(0x21c)]();}[_0x43e0c9(0x21c)](){var _0x2972e2=_0x43e0c9;this[_0x2972e2(0x141)][_0x2972e2(0x16e)]({'priority':0x1,'interceptor':__name((_0x51f040,_0x5550e2)=>_0x5550e2(_0x51f040)[_0x2972e2(0x1f0)](concatMap(async _0x411ad3=>{var _0x5427f5=_0x2972e2;const _0x35f15a=_0x411ad3;if(_0x35f15a[_0x5427f5(0x123)]===0x191){if(typeof window>'u')throw new Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x5427f5(0x411)](this[_0x5427f5(0x31e)]['t'](_0x5427f5(0x1cd)))){const _0x15e45b=window[_0x5427f5(0x34b)](window[_0x5427f5(0x121)][_0x5427f5(0x2e2)]);window[_0x5427f5(0x121)][_0x5427f5(0x2e2)]=this[_0x5427f5(0x1dd)]()+_0x5427f5(0x218)+_0x15e45b;}}return _0x35f15a;})),_0x2972e2(0x2d1))});}[_0x43e0c9(0x1dd)](){var _0xb4bc96=_0x43e0c9,_0x129939,_0x12877f;const _0x47ee21=this[_0xb4bc96(0x249)][_0xb4bc96(0x15f)](LOGIN_URL_KEY),_0x417ed8=this[_0xb4bc96(0x249)][_0xb4bc96(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x12877f=(_0x129939=_0x417ed8==null?void 0x0:_0x417ed8[_0xb4bc96(0x1bd)])!=null?_0x129939:_0x47ee21)!=null?_0x12877f:DEFAULT_LOGIN_URL;}},__name(_a18,_0x43e0c9(0x3ad)),_a18);AuthServerService=__decorateClass$9([__decorateParam$9(0x0,IConfigService),__decorateParam$9(0x1,Inject(HTTPService)),__decorateParam$9(0x2,Inject(LocaleService))],AuthServerService);var __defProp$8=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$8=Object[_0x43e0c9(0x33e)],__decorateClass$8=__name((_0x2f91c0,_0x37ccfa,_0x4b113b,_0x550c0e)=>{var _0x1356ce=_0x43e0c9;for(var _0x4b446e=_0x550c0e>0x1?void 0x0:_0x550c0e?__getOwnPropDesc$8(_0x37ccfa,_0x4b113b):_0x37ccfa,_0x4334e3=_0x2f91c0[_0x1356ce(0x233)]-0x1,_0x8f41fe;_0x4334e3>=0x0;_0x4334e3--)(_0x8f41fe=_0x2f91c0[_0x4334e3])&&(_0x4b446e=(_0x550c0e?_0x8f41fe(_0x37ccfa,_0x4b113b,_0x4b446e):_0x8f41fe(_0x4b446e))||_0x4b446e);return _0x550c0e&&_0x4b446e&&__defProp$8(_0x37ccfa,_0x4b113b,_0x4b446e),_0x4b446e;},_0x43e0c9(0x1d9)),__decorateParam$8=__name((_0x1db054,_0x44fdf2)=>(_0x36f2a4,_0xf2dda7)=>_0x44fdf2(_0x36f2a4,_0xf2dda7,_0x1db054),_0x43e0c9(0x182));const AUTHZ_URL_KEY=_0x43e0c9(0x294),DEFAULT_AUTHZ_URL_KEY$1=_0x43e0c9(0x2d4);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0x1f0115,_0x18399d){var _0x42f6c1=_0x43e0c9;super(),this[_0x42f6c1(0x1b7)]=_0x1f0115,this[_0x42f6c1(0x249)]=_0x18399d,this[_0x42f6c1(0x21b)]();}[_0x43e0c9(0x21b)](){var _0x1ebc8f=_0x43e0c9;const _0x13f688=this;this[_0x1ebc8f(0x18f)](this['_HTTPService'][_0x1ebc8f(0x16e)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x11e301){var _0x2d5265=_0x1ebc8f,_0x4f41d7;if(_0x11e301[_0x2d5265(0x433)]===_0x2d5265(0x12c)&&((_0x4f41d7=_0x11e301['requestParams'])!=null&&_0x4f41d7[_0x2d5265(0x415)])){const {objectID:_0x28029b,objectType:_0x4dc6ce}=_0x11e301[_0x2d5265(0x2e3)][_0x2d5265(0x415)]||{};if(!_0x28029b||_0x4dc6ce===void 0x0)return!0x1;const _0x2c917c=_0x13f688[_0x2d5265(0x323)]()+'/'+_0x4dc6ce+_0x2d5265(0x13a)+_0x28029b+_0x2d5265(0x178);if(_0x11e301[_0x2d5265(0x24e)]===_0x2c917c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x16377b){var _0x912b34=_0x1ebc8f,_0x16148e;return(_0x16148e=_0x16377b[_0x912b34(0x2e3)])==null?void 0x0:_0x16148e[_0x912b34(0x415)];},'mergeParamsToRequest'(_0x3939bd,_0x30c01c){var _0x5724b1=_0x1ebc8f;const _0x5b55cc=_0x13f688[_0x5724b1(0x323)]()+_0x5724b1(0x1db),_0x3f318e=_0x3939bd['reduce']((_0x2c7c82,_0x4251bf)=>{var _0x4da031=_0x5724b1;const {unitID:_0x25e869,objectID:_0x28fadd,objectType:_0x402fd6,actions:_0x34cc03}=_0x4251bf;return _0x2c7c82[_0x25e869]||(_0x2c7c82[_0x25e869]={}),_0x2c7c82[_0x25e869][_0x28fadd]||(_0x2c7c82[_0x25e869][_0x28fadd]={'objectID':_0x28fadd,'objectType':_0x402fd6,'actions':[]}),_0x2c7c82[_0x25e869][_0x28fadd][_0x4da031(0x146)][_0x4da031(0x119)](..._0x34cc03),_0x2c7c82;},{}),_0x366b2f=[];for(const _0x46de5f in _0x3f318e)for(const _0x38a4fc in _0x3f318e[_0x46de5f]){const {actions:_0x30147b,objectType:_0x20ee60}=_0x3f318e[_0x46de5f][_0x38a4fc],_0x182813=[...new Set(_0x30147b)];_0x366b2f[_0x5724b1(0x119)]({'unitID':_0x46de5f,'objectID':_0x38a4fc,'objectType':_0x20ee60,'actions':_0x182813});}return new HTTPRequest(_0x5724b1(0x12c),_0x5b55cc,{'headers':_0x30c01c[_0x5724b1(0x113)],'withCredentials':_0x30c01c[_0x5724b1(0x3ed)],'responseType':_0x30c01c[_0x5724b1(0x177)],'body':{'requests':_0x366b2f}});}},{'distributeResult'(_0x334824,_0x4dd679){var _0x3f65fa=_0x1ebc8f;const {objectActions:_0x499371}=_0x334824;return _0x4dd679[_0x3f65fa(0x12e)](_0x3ddeae=>{var _0x16e552=_0x3f65fa;const {unitID:_0xe855f9,objectID:_0x54ecce,actions:_0x20a281}=_0x3ddeae,_0x106822=_0x499371['find'](_0x14fae2=>_0x14fae2['unitID']===_0xe855f9&&_0x14fae2[_0x16e552(0x394)]===_0x54ecce),_0x2bfdee=_0x20a281[_0x16e552(0x12e)](_0x408441=>_0x106822==null?void 0x0:_0x106822[_0x16e552(0x146)]['find'](_0x403e70=>_0x403e70['action']===_0x408441))['filter'](_0x47bb9d=>!!_0x47bb9d);return{'config':_0x3ddeae,'result':{'actions':_0x2bfdee,'error':_0x334824[_0x16e552(0x1c8)]}};});}})}));}[_0x43e0c9(0x323)](){var _0x509d8f=_0x43e0c9,_0x238d6c,_0x38d38a;const _0x51f600=this[_0x509d8f(0x249)][_0x509d8f(0x15f)](AUTHZ_URL_KEY),_0x54482a=this[_0x509d8f(0x249)][_0x509d8f(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x38d38a=(_0x238d6c=_0x54482a==null?void 0x0:_0x54482a[_0x509d8f(0x3af)])!=null?_0x238d6c:_0x51f600)!=null?_0x38d38a:DEFAULT_AUTHZ_URL_KEY$1;}async['create'](_0x400433){var _0x248724=_0x43e0c9;const _0x46d4aa=this[_0x248724(0x323)]()+'/'+_0x400433['objectType']+_0x248724(0x1b6);return(await this[_0x248724(0x1b7)][_0x248724(0x43e)](_0x46d4aa,{'body':_0x400433}))[_0x248724(0x415)]['objectID']||'';}async['list'](_0x34cf12){var _0xd0d9aa=_0x43e0c9;const _0x1d70dd=this[_0xd0d9aa(0x323)]()+_0xd0d9aa(0x114);return(await this[_0xd0d9aa(0x1b7)][_0xd0d9aa(0x43e)](_0x1d70dd,{'body':_0x34cf12}))[_0xd0d9aa(0x415)][_0xd0d9aa(0x423)];}async[_0x43e0c9(0x349)](_0x21faf9){var _0x192043=_0x43e0c9;const _0x31ad34=this[_0x192043(0x323)]()+'/'+_0x21faf9[_0x192043(0x303)]+'/object/'+_0x21faf9[_0x192043(0x394)];await this['_HTTPService'][_0x192043(0x1ac)](_0x31ad34,{'body':_0x21faf9});}async[_0x43e0c9(0x386)](_0x577017){var _0x5942cf=_0x43e0c9;const _0xbc8598=this[_0x5942cf(0x323)]()+'/'+_0x577017[_0x5942cf(0x303)]+_0x5942cf(0x13a)+_0x577017[_0x5942cf(0x394)]+'/allowed';return(await this[_0x5942cf(0x1b7)][_0x5942cf(0x43e)](_0xbc8598,{'body':_0x577017}))[_0x5942cf(0x415)]['actions'];}async[_0x43e0c9(0x422)](_0x1d83e4){var _0xa2bd93=_0x43e0c9;const _0x1a2a47=this[_0xa2bd93(0x323)]()+_0xa2bd93(0x1db);return(await this['_HTTPService'][_0xa2bd93(0x43e)](_0x1a2a47,{'body':{'requests':_0x1d83e4}}))[_0xa2bd93(0x415)][_0xa2bd93(0x266)];}async[_0x43e0c9(0x317)](_0x3a6d82){var _0x4689a3=_0x43e0c9;const _0x2f91a2=this['_getAPIPrefixPath']()+'/'+_0x3a6d82[_0x4689a3(0x303)]+_0x4689a3(0x160),_0x2d4b68=await this[_0x4689a3(0x1b7)]['post'](_0x2f91a2,{'body':_0x3a6d82});return{'roles':_0x2d4b68[_0x4689a3(0x415)][_0x4689a3(0x144)],'actions':_0x2d4b68[_0x4689a3(0x415)][_0x4689a3(0x146)]};}async[_0x43e0c9(0x26c)](_0xa56cdb){var _0x3266fa=_0x43e0c9;const _0x122c02=this[_0x3266fa(0x323)]()+'/collaborator';await this[_0x3266fa(0x1b7)][_0x3266fa(0x36b)](_0x122c02,{'params':{'collaboratorID':_0xa56cdb[_0x3266fa(0x3a0)],'objectID':_0xa56cdb[_0x3266fa(0x394)],'unitID':_0xa56cdb[_0x3266fa(0x442)]}});}async[_0x43e0c9(0x235)](_0x347163){var _0x1d96ae=_0x43e0c9;const _0x198a1b=this[_0x1d96ae(0x323)]()+_0x1d96ae(0x2ad);await this[_0x1d96ae(0x1b7)][_0x1d96ae(0x200)](_0x198a1b,{'body':_0x347163});}async[_0x43e0c9(0x22f)](_0x365cfe){var _0x5de9d2=_0x43e0c9;const _0x2a7a22=this['_getAPIPrefixPath']()+_0x5de9d2(0x2ad);await this[_0x5de9d2(0x1b7)][_0x5de9d2(0x43e)](_0x2a7a22,{'body':_0x365cfe});}async[_0x43e0c9(0x25a)](_0xa8c608){var _0x562183=_0x43e0c9;const _0x5aa4f3=this['_getAPIPrefixPath']()+_0x562183(0x2ad);return(await this[_0x562183(0x1b7)][_0x562183(0x1c2)](_0x5aa4f3,{'params':{'objectID':_0xa8c608[_0x562183(0x394)],'unitID':_0xa8c608[_0x562183(0x442)]}}))[_0x562183(0x415)][_0x562183(0x2eb)];}async['putCollaborators'](_0x3b23be){var _0x205327=_0x43e0c9;const _0x54022c=this[_0x205327(0x323)]()+_0x205327(0x2ad);await this['_HTTPService']['put'](_0x54022c,{'body':_0x3b23be});}},__name(_a19,_0x43e0c9(0x3fb)),_a19);AuthzIoHttpService=__decorateClass$8([__decorateParam$8(0x0,Inject(HTTPService)),__decorateParam$8(0x1,Inject(IConfigService))],AuthzIoHttpService);var commonjsGlobal=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function getDefaultExportFromCjs(_0x2dc769){var _0x5d5912=_0x43e0c9;return _0x2dc769&&_0x2dc769[_0x5d5912(0x40d)]&&Object['prototype']['hasOwnProperty'][_0x5d5912(0x314)](_0x2dc769,_0x5d5912(0x110))?_0x2dc769['default']:_0x2dc769;}__name(getDefaultExportFromCjs,'getDefaultExportFromCjs');var aes$1={'exports':{}};function commonjsRequire(_0x5cac79){var _0x375efb=_0x43e0c9;throw new Error(_0x375efb(0x28c)+_0x5cac79+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}__name(commonjsRequire,_0x43e0c9(0x25c));var core$1={'exports':{}},core=core$1[_0x43e0c9(0x2c9)],hasRequiredCore;function requireCore(){var _0xecaa11=_0x43e0c9;return hasRequiredCore||(hasRequiredCore=0x1,function(_0x94815f,_0x2e6cd7){(function(_0x5816af,_0x1a07cb){var _0x3d1023=_0x5029;_0x94815f[_0x3d1023(0x2c9)]=_0x1a07cb();}(core,function(){var _0x367ff4=_0x367ff4||function(_0x24dcbc,_0x138ec0){var _0x19d587=_0x5029,_0xe6b931;if(typeof window<'u'&&window[_0x19d587(0x1da)]&&(_0xe6b931=window[_0x19d587(0x1da)]),typeof self<'u'&&self[_0x19d587(0x1da)]&&(_0xe6b931=self[_0x19d587(0x1da)]),typeof globalThis<'u'&&globalThis['crypto']&&(_0xe6b931=globalThis[_0x19d587(0x1da)]),!_0xe6b931&&typeof window<'u'&&window[_0x19d587(0x2cf)]&&(_0xe6b931=window['msCrypto']),!_0xe6b931&&typeof commonjsGlobal<'u'&&commonjsGlobal[_0x19d587(0x1da)]&&(_0xe6b931=commonjsGlobal[_0x19d587(0x1da)]),!_0xe6b931&&typeof commonjsRequire==_0x19d587(0x3e7))try{_0xe6b931=require(_0x19d587(0x1da));}catch{}var _0x577a53=__name(function(){var _0xbe9997=_0x19d587;if(_0xe6b931){if(typeof _0xe6b931[_0xbe9997(0x2b7)]=='function')try{return _0xe6b931[_0xbe9997(0x2b7)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0xe6b931['randomBytes']=='function')try{return _0xe6b931[_0xbe9997(0x2b0)](0x4)[_0xbe9997(0x416)]();}catch{}}throw new Error(_0xbe9997(0x41a));},_0x19d587(0x2c3)),_0x167de8=Object[_0x19d587(0x33c)]||(function(){function _0x42d56a(){}return __name(_0x42d56a,'F'),function(_0x144b9d){var _0xd2dc61=_0x5029,_0x120495;return _0x42d56a[_0xd2dc61(0x145)]=_0x144b9d,_0x120495=new _0x42d56a(),_0x42d56a[_0xd2dc61(0x145)]=null,_0x120495;};}()),_0x4ec1ea={},_0x36d575=_0x4ec1ea[_0x19d587(0x2f7)]={},_0x61391d=_0x36d575[_0x19d587(0x312)]=(function(){var _0x37c50c=_0x19d587;return{'extend':__name(function(_0x35ef3f){var _0x5629ff=_0x5029,_0x34221f=_0x167de8(this);return _0x35ef3f&&_0x34221f[_0x5629ff(0x16d)](_0x35ef3f),(!_0x34221f[_0x5629ff(0x3ec)](_0x5629ff(0x21c))||this['init']===_0x34221f[_0x5629ff(0x21c)])&&(_0x34221f[_0x5629ff(0x21c)]=function(){var _0x3f6373=_0x5629ff;_0x34221f[_0x3f6373(0x1e4)][_0x3f6373(0x21c)][_0x3f6373(0x2ba)](this,arguments);}),_0x34221f[_0x5629ff(0x21c)][_0x5629ff(0x145)]=_0x34221f,_0x34221f[_0x5629ff(0x1e4)]=this,_0x34221f;},_0x37c50c(0x10a)),'create':__name(function(){var _0x3a1396=_0x37c50c,_0x561691=this['extend']();return _0x561691[_0x3a1396(0x21c)][_0x3a1396(0x2ba)](_0x561691,arguments),_0x561691;},_0x37c50c(0x33c)),'init':__name(function(){},'init'),'mixIn':__name(function(_0x580397){var _0x4f37c8=_0x37c50c;for(var _0x50b252 in _0x580397)_0x580397[_0x4f37c8(0x3ec)](_0x50b252)&&(this[_0x50b252]=_0x580397[_0x50b252]);_0x580397[_0x4f37c8(0x3ec)]('toString')&&(this['toString']=_0x580397[_0x4f37c8(0x22b)]);},_0x37c50c(0x16d)),'clone':__name(function(){var _0x273b40=_0x37c50c;return this[_0x273b40(0x21c)][_0x273b40(0x145)][_0x273b40(0x10a)](this);},_0x37c50c(0x383))};}()),_0x5d0d36=_0x36d575['WordArray']=_0x61391d['extend']({'init':__name(function(_0x1c75d2,_0x4bec66){var _0x518be6=_0x19d587;_0x1c75d2=this[_0x518be6(0x3b2)]=_0x1c75d2||[],_0x4bec66!=_0x138ec0?this[_0x518be6(0x3bb)]=_0x4bec66:this[_0x518be6(0x3bb)]=_0x1c75d2[_0x518be6(0x233)]*0x4;},'init'),'toString':__name(function(_0x566257){var _0x49df5b=_0x19d587;return(_0x566257||_0x3d394f)[_0x49df5b(0xff)](this);},'toString'),'concat':__name(function(_0x5bb6a8){var _0x286d0c=_0x19d587,_0x210558=this[_0x286d0c(0x3b2)],_0xa4099e=_0x5bb6a8['words'],_0x6c2c71=this[_0x286d0c(0x3bb)],_0x4b3933=_0x5bb6a8[_0x286d0c(0x3bb)];if(this[_0x286d0c(0x154)](),_0x6c2c71%0x4)for(var _0x2c6fd1=0x0;_0x2c6fd1<_0x4b3933;_0x2c6fd1++){var _0x45a0e4=_0xa4099e[_0x2c6fd1>>>0x2]>>>0x18-_0x2c6fd1%0x4*0x8&0xff;_0x210558[_0x6c2c71+_0x2c6fd1>>>0x2]|=_0x45a0e4<<0x18-(_0x6c2c71+_0x2c6fd1)%0x4*0x8;}else{for(var _0x390c5e=0x0;_0x390c5e<_0x4b3933;_0x390c5e+=0x4)_0x210558[_0x6c2c71+_0x390c5e>>>0x2]=_0xa4099e[_0x390c5e>>>0x2];}return this[_0x286d0c(0x3bb)]+=_0x4b3933,this;},_0x19d587(0x354)),'clamp':__name(function(){var _0x158898=_0x19d587,_0x4b38ed=this[_0x158898(0x3b2)],_0x2d9b50=this['sigBytes'];_0x4b38ed[_0x2d9b50>>>0x2]&=0xffffffff<<0x20-_0x2d9b50%0x4*0x8,_0x4b38ed[_0x158898(0x233)]=_0x24dcbc[_0x158898(0x381)](_0x2d9b50/0x4);},'clamp'),'clone':__name(function(){var _0x5063b8=_0x19d587,_0x2fde9e=_0x61391d['clone']['call'](this);return _0x2fde9e[_0x5063b8(0x3b2)]=this[_0x5063b8(0x3b2)]['slice'](0x0),_0x2fde9e;},_0x19d587(0x383)),'random':__name(function(_0x91d187){var _0x1f9136=_0x19d587;for(var _0x22c51e=[],_0x532c51=0x0;_0x532c51<_0x91d187;_0x532c51+=0x4)_0x22c51e[_0x1f9136(0x119)](_0x577a53());return new _0x5d0d36[(_0x1f9136(0x21c))](_0x22c51e,_0x91d187);},_0x19d587(0x22d))}),_0x3006af=_0x4ec1ea[_0x19d587(0x316)]={},_0x3d394f=_0x3006af[_0x19d587(0x2a2)]={'stringify':__name(function(_0x36d853){var _0x46b9f9=_0x19d587;for(var _0x12a13b=_0x36d853[_0x46b9f9(0x3b2)],_0xaa9f3=_0x36d853[_0x46b9f9(0x3bb)],_0x1d30ca=[],_0x5ced6c=0x0;_0x5ced6c<_0xaa9f3;_0x5ced6c++){var _0x4225db=_0x12a13b[_0x5ced6c>>>0x2]>>>0x18-_0x5ced6c%0x4*0x8&0xff;_0x1d30ca[_0x46b9f9(0x119)]((_0x4225db>>>0x4)[_0x46b9f9(0x22b)](0x10)),_0x1d30ca[_0x46b9f9(0x119)]((_0x4225db&0xf)[_0x46b9f9(0x22b)](0x10));}return _0x1d30ca[_0x46b9f9(0x282)]('');},_0x19d587(0xff)),'parse':__name(function(_0x31a8b0){var _0x4ad14b=_0x19d587;for(var _0x24affc=_0x31a8b0['length'],_0x331b66=[],_0x549554=0x0;_0x549554<_0x24affc;_0x549554+=0x2)_0x331b66[_0x549554>>>0x3]|=parseInt(_0x31a8b0[_0x4ad14b(0x29d)](_0x549554,0x2),0x10)<<0x18-_0x549554%0x8*0x4;return new _0x5d0d36['init'](_0x331b66,_0x24affc/0x2);},_0x19d587(0x3eb))},_0xf9ecf5=_0x3006af[_0x19d587(0x3f1)]={'stringify':__name(function(_0x42788d){var _0x40b4e8=_0x19d587;for(var _0x5cc32b=_0x42788d['words'],_0x264e2e=_0x42788d[_0x40b4e8(0x3bb)],_0x5e3081=[],_0x504eae=0x0;_0x504eae<_0x264e2e;_0x504eae++){var _0x5a570c=_0x5cc32b[_0x504eae>>>0x2]>>>0x18-_0x504eae%0x4*0x8&0xff;_0x5e3081[_0x40b4e8(0x119)](String[_0x40b4e8(0x315)](_0x5a570c));}return _0x5e3081[_0x40b4e8(0x282)]('');},_0x19d587(0xff)),'parse':__name(function(_0x52d631){var _0x38382b=_0x19d587;for(var _0x544733=_0x52d631[_0x38382b(0x233)],_0x1d4577=[],_0x577643=0x0;_0x577643<_0x544733;_0x577643++)_0x1d4577[_0x577643>>>0x2]|=(_0x52d631[_0x38382b(0x2f3)](_0x577643)&0xff)<<0x18-_0x577643%0x4*0x8;return new _0x5d0d36[(_0x38382b(0x21c))](_0x1d4577,_0x544733);},_0x19d587(0x3eb))},_0x1e5371=_0x3006af[_0x19d587(0x3fa)]={'stringify':__name(function(_0x57868a){var _0x28635e=_0x19d587;try{return decodeURIComponent(escape(_0xf9ecf5[_0x28635e(0xff)](_0x57868a)));}catch{throw new Error(_0x28635e(0x23d));}},_0x19d587(0xff)),'parse':__name(function(_0x3ea40d){var _0x1b50c4=_0x19d587;return _0xf9ecf5[_0x1b50c4(0x3eb)](unescape(encodeURIComponent(_0x3ea40d)));},_0x19d587(0x3eb))},_0x221bc2=_0x36d575[_0x19d587(0x447)]=_0x61391d[_0x19d587(0x10a)]({'reset':__name(function(){var _0x67cfbf=_0x19d587;this['_data']=new _0x5d0d36['init'](),this[_0x67cfbf(0x30b)]=0x0;},_0x19d587(0x2cd)),'_append':__name(function(_0x156ae1){var _0x2aa7bd=_0x19d587;typeof _0x156ae1=='string'&&(_0x156ae1=_0x1e5371['parse'](_0x156ae1)),this['_data'][_0x2aa7bd(0x354)](_0x156ae1),this[_0x2aa7bd(0x30b)]+=_0x156ae1[_0x2aa7bd(0x3bb)];},_0x19d587(0x100)),'_process':__name(function(_0x308f5b){var _0x14963e=_0x19d587,_0x50ecba,_0x41dd5b=this[_0x14963e(0x27e)],_0x43d3bc=_0x41dd5b[_0x14963e(0x3b2)],_0x4a96bb=_0x41dd5b[_0x14963e(0x3bb)],_0x32ad96=this['blockSize'],_0x334780=_0x32ad96*0x4,_0x2d252c=_0x4a96bb/_0x334780;_0x308f5b?_0x2d252c=_0x24dcbc['ceil'](_0x2d252c):_0x2d252c=_0x24dcbc['max']((_0x2d252c|0x0)-this[_0x14963e(0x131)],0x0);var _0x3ca171=_0x2d252c*_0x32ad96,_0x8c004e=_0x24dcbc[_0x14963e(0x105)](_0x3ca171*0x4,_0x4a96bb);if(_0x3ca171){for(var _0x15a803=0x0;_0x15a803<_0x3ca171;_0x15a803+=_0x32ad96)this[_0x14963e(0x106)](_0x43d3bc,_0x15a803);_0x50ecba=_0x43d3bc[_0x14963e(0x414)](0x0,_0x3ca171),_0x41dd5b[_0x14963e(0x3bb)]-=_0x8c004e;}return new _0x5d0d36['init'](_0x50ecba,_0x8c004e);},'_process'),'clone':__name(function(){var _0x188ade=_0x19d587,_0xc35d91=_0x61391d[_0x188ade(0x383)][_0x188ade(0x314)](this);return _0xc35d91[_0x188ade(0x27e)]=this[_0x188ade(0x27e)][_0x188ade(0x383)](),_0xc35d91;},_0x19d587(0x383)),'_minBufferSize':0x0});_0x36d575[_0x19d587(0x3cc)]=_0x221bc2['extend']({'cfg':_0x61391d['extend'](),'init':__name(function(_0x302976){var _0xd16420=_0x19d587;this[_0xd16420(0x2fa)]=this[_0xd16420(0x2fa)][_0xd16420(0x10a)](_0x302976),this[_0xd16420(0x2cd)]();},_0x19d587(0x21c)),'reset':__name(function(){var _0x4859dd=_0x19d587;_0x221bc2[_0x4859dd(0x2cd)][_0x4859dd(0x314)](this),this['_doReset']();},_0x19d587(0x2cd)),'update':__name(function(_0x32dd46){var _0x25c468=_0x19d587;return this['_append'](_0x32dd46),this[_0x25c468(0x33b)](),this;},_0x19d587(0x349)),'finalize':__name(function(_0x270315){var _0x173430=_0x19d587;_0x270315&&this['_append'](_0x270315);var _0x4c6737=this[_0x173430(0x27f)]();return _0x4c6737;},'finalize'),'blockSize':0x10,'_createHelper':__name(function(_0x20391c){return function(_0x26053c,_0x469e51){var _0x5b0270=_0x5029;return new _0x20391c[(_0x5b0270(0x21c))](_0x469e51)[_0x5b0270(0x426)](_0x26053c);};},_0x19d587(0x1e3)),'_createHmacHelper':__name(function(_0x4106ca){return function(_0x4eea35,_0x501008){var _0x21f363=_0x5029;return new _0x1528ad[(_0x21f363(0x17e))][(_0x21f363(0x21c))](_0x4106ca,_0x501008)[_0x21f363(0x426)](_0x4eea35);};},_0x19d587(0x29a))});var _0x1528ad=_0x4ec1ea[_0x19d587(0x2ff)]={};return _0x4ec1ea;}(Math);return _0x367ff4;}));}(core$1)),core$1[_0xecaa11(0x2c9)];}__name(requireCore,_0x43e0c9(0x2d2));var encBase64$1={'exports':{}},encBase64=encBase64$1[_0x43e0c9(0x2c9)],hasRequiredEncBase64;function requireEncBase64(){var _0x2879f7=_0x43e0c9;return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0xfac425,_0x3c7210){(function(_0x40cb32,_0x16eec7){var _0x4f30fd=_0x5029;_0xfac425[_0x4f30fd(0x2c9)]=_0x16eec7(requireCore());}(encBase64,function(_0x219e9e){var _0x47b5c0=_0x5029;return(function(){var _0x1bd527=_0x5029,_0x2c286b=_0x219e9e,_0x202a12=_0x2c286b[_0x1bd527(0x2f7)],_0x30a91=_0x202a12[_0x1bd527(0x2ce)],_0x522e6e=_0x2c286b[_0x1bd527(0x316)];_0x522e6e[_0x1bd527(0x296)]={'stringify':__name(function(_0x30f89c){var _0x57a741=_0x1bd527,_0x20e59f=_0x30f89c[_0x57a741(0x3b2)],_0x35d747=_0x30f89c[_0x57a741(0x3bb)],_0x208ec3=this['_map'];_0x30f89c[_0x57a741(0x154)]();for(var _0x86b168=[],_0xbf788c=0x0;_0xbf788c<_0x35d747;_0xbf788c+=0x3)for(var _0x4111c1=_0x20e59f[_0xbf788c>>>0x2]>>>0x18-_0xbf788c%0x4*0x8&0xff,_0x42c9e3=_0x20e59f[_0xbf788c+0x1>>>0x2]>>>0x18-(_0xbf788c+0x1)%0x4*0x8&0xff,_0x4eb2e2=_0x20e59f[_0xbf788c+0x2>>>0x2]>>>0x18-(_0xbf788c+0x2)%0x4*0x8&0xff,_0x4ad57f=_0x4111c1<<0x10|_0x42c9e3<<0x8|_0x4eb2e2,_0x3f4bdf=0x0;_0x3f4bdf<0x4&&_0xbf788c+_0x3f4bdf*0.75<_0x35d747;_0x3f4bdf++)_0x86b168[_0x57a741(0x119)](_0x208ec3[_0x57a741(0x2f4)](_0x4ad57f>>>0x6*(0x3-_0x3f4bdf)&0x3f));var _0x10af37=_0x208ec3[_0x57a741(0x2f4)](0x40);if(_0x10af37){for(;_0x86b168['length']%0x4;)_0x86b168['push'](_0x10af37);}return _0x86b168[_0x57a741(0x282)]('');},'stringify'),'parse':__name(function(_0x409308){var _0xf371b2=_0x1bd527,_0x222b54=_0x409308[_0xf371b2(0x233)],_0x286a5f=this[_0xf371b2(0x196)],_0x1acf97=this[_0xf371b2(0x2de)];if(!_0x1acf97){_0x1acf97=this['_reverseMap']=[];for(var _0x572124=0x0;_0x572124<_0x286a5f[_0xf371b2(0x233)];_0x572124++)_0x1acf97[_0x286a5f[_0xf371b2(0x2f3)](_0x572124)]=_0x572124;}var _0x2a9bb3=_0x286a5f['charAt'](0x40);if(_0x2a9bb3){var _0x599c3c=_0x409308[_0xf371b2(0x355)](_0x2a9bb3);_0x599c3c!==-0x1&&(_0x222b54=_0x599c3c);}return _0x21eae0(_0x409308,_0x222b54,_0x1acf97);},'parse'),'_map':_0x1bd527(0x27a)};function _0x21eae0(_0x41c4ad,_0xef34a3,_0x2c3f29){var _0x2105b5=_0x1bd527;for(var _0x3eab8a=[],_0x16fe6f=0x0,_0x54fac8=0x0;_0x54fac8<_0xef34a3;_0x54fac8++)if(_0x54fac8%0x4){var _0x3b5698=_0x2c3f29[_0x41c4ad[_0x2105b5(0x2f3)](_0x54fac8-0x1)]<<_0x54fac8%0x4*0x2,_0x3064d7=_0x2c3f29[_0x41c4ad[_0x2105b5(0x2f3)](_0x54fac8)]>>>0x6-_0x54fac8%0x4*0x2,_0x5a7dfd=_0x3b5698|_0x3064d7;_0x3eab8a[_0x16fe6f>>>0x2]|=_0x5a7dfd<<0x18-_0x16fe6f%0x4*0x8,_0x16fe6f++;}return _0x30a91[_0x2105b5(0x33c)](_0x3eab8a,_0x16fe6f);}__name(_0x21eae0,_0x1bd527(0x388));}()),_0x219e9e[_0x47b5c0(0x316)][_0x47b5c0(0x296)];}));}(encBase64$1)),encBase64$1[_0x2879f7(0x2c9)];}__name(requireEncBase64,'requireEncBase64');var md5$1={'exports':{}},md5=md5$1[_0x43e0c9(0x2c9)],hasRequiredMd5;function requireMd5(){var _0x445232=_0x43e0c9;return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x1e1932,_0x292453){(function(_0x129e0e,_0x59f8d7){_0x1e1932['exports']=_0x59f8d7(requireCore());}(md5,function(_0x2020db){var _0x5efa8d=_0x5029;return function(_0x5419c2){var _0x137269=_0x5029,_0x1f1dca=_0x2020db,_0x4ce837=_0x1f1dca[_0x137269(0x2f7)],_0x48465c=_0x4ce837[_0x137269(0x2ce)],_0x5f0c68=_0x4ce837['Hasher'],_0x28afeb=_0x1f1dca['algo'],_0x384bf1=[];(function(){var _0x553e17=_0x137269;for(var _0x44b5cb=0x0;_0x44b5cb<0x40;_0x44b5cb++)_0x384bf1[_0x44b5cb]=_0x5419c2[_0x553e17(0x331)](_0x5419c2[_0x553e17(0x1e1)](_0x44b5cb+0x1))*0x100000000|0x0;}());var _0xdb31c5=_0x28afeb['MD5']=_0x5f0c68[_0x137269(0x10a)]({'_doReset':__name(function(){var _0x10f8ce=_0x137269;this['_hash']=new _0x48465c[(_0x10f8ce(0x21c))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},_0x137269(0x142)),'_doProcessBlock':__name(function(_0x2dbf25,_0x4a9f7b){var _0x25cc78=_0x137269;for(var _0x184028=0x0;_0x184028<0x10;_0x184028++){var _0x128f97=_0x4a9f7b+_0x184028,_0x4bcc34=_0x2dbf25[_0x128f97];_0x2dbf25[_0x128f97]=(_0x4bcc34<<0x8|_0x4bcc34>>>0x18)&0xff00ff|(_0x4bcc34<<0x18|_0x4bcc34>>>0x8)&0xff00ff00;}var _0x380b58=this[_0x25cc78(0x2bd)][_0x25cc78(0x3b2)],_0x16049f=_0x2dbf25[_0x4a9f7b+0x0],_0x42ea01=_0x2dbf25[_0x4a9f7b+0x1],_0x426730=_0x2dbf25[_0x4a9f7b+0x2],_0x1fb618=_0x2dbf25[_0x4a9f7b+0x3],_0x36d81c=_0x2dbf25[_0x4a9f7b+0x4],_0x2f0906=_0x2dbf25[_0x4a9f7b+0x5],_0x4431e4=_0x2dbf25[_0x4a9f7b+0x6],_0x4e3b93=_0x2dbf25[_0x4a9f7b+0x7],_0x10a924=_0x2dbf25[_0x4a9f7b+0x8],_0x155f8f=_0x2dbf25[_0x4a9f7b+0x9],_0x140e40=_0x2dbf25[_0x4a9f7b+0xa],_0x3def50=_0x2dbf25[_0x4a9f7b+0xb],_0x3fcead=_0x2dbf25[_0x4a9f7b+0xc],_0x5e9323=_0x2dbf25[_0x4a9f7b+0xd],_0x58db76=_0x2dbf25[_0x4a9f7b+0xe],_0x37fada=_0x2dbf25[_0x4a9f7b+0xf],_0x58593e=_0x380b58[0x0],_0x349c1e=_0x380b58[0x1],_0x3923f9=_0x380b58[0x2],_0x729e76=_0x380b58[0x3];_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x16049f,0x7,_0x384bf1[0x0]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x42ea01,0xc,_0x384bf1[0x1]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x426730,0x11,_0x384bf1[0x2]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x1fb618,0x16,_0x384bf1[0x3]),_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x36d81c,0x7,_0x384bf1[0x4]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x2f0906,0xc,_0x384bf1[0x5]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4431e4,0x11,_0x384bf1[0x6]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x4e3b93,0x16,_0x384bf1[0x7]),_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x10a924,0x7,_0x384bf1[0x8]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x155f8f,0xc,_0x384bf1[0x9]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x140e40,0x11,_0x384bf1[0xa]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x3def50,0x16,_0x384bf1[0xb]),_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x3fcead,0x7,_0x384bf1[0xc]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x5e9323,0xc,_0x384bf1[0xd]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x58db76,0x11,_0x384bf1[0xe]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x37fada,0x16,_0x384bf1[0xf]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x42ea01,0x5,_0x384bf1[0x10]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x4431e4,0x9,_0x384bf1[0x11]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x3def50,0xe,_0x384bf1[0x12]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x16049f,0x14,_0x384bf1[0x13]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x2f0906,0x5,_0x384bf1[0x14]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x140e40,0x9,_0x384bf1[0x15]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x37fada,0xe,_0x384bf1[0x16]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x36d81c,0x14,_0x384bf1[0x17]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x155f8f,0x5,_0x384bf1[0x18]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x58db76,0x9,_0x384bf1[0x19]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x1fb618,0xe,_0x384bf1[0x1a]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x10a924,0x14,_0x384bf1[0x1b]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x5e9323,0x5,_0x384bf1[0x1c]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x426730,0x9,_0x384bf1[0x1d]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4e3b93,0xe,_0x384bf1[0x1e]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x3fcead,0x14,_0x384bf1[0x1f]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x2f0906,0x4,_0x384bf1[0x20]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x10a924,0xb,_0x384bf1[0x21]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x3def50,0x10,_0x384bf1[0x22]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x58db76,0x17,_0x384bf1[0x23]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x42ea01,0x4,_0x384bf1[0x24]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x36d81c,0xb,_0x384bf1[0x25]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4e3b93,0x10,_0x384bf1[0x26]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x140e40,0x17,_0x384bf1[0x27]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x5e9323,0x4,_0x384bf1[0x28]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x16049f,0xb,_0x384bf1[0x29]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x1fb618,0x10,_0x384bf1[0x2a]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x4431e4,0x17,_0x384bf1[0x2b]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x155f8f,0x4,_0x384bf1[0x2c]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x3fcead,0xb,_0x384bf1[0x2d]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x37fada,0x10,_0x384bf1[0x2e]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x426730,0x17,_0x384bf1[0x2f]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x16049f,0x6,_0x384bf1[0x30]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x4e3b93,0xa,_0x384bf1[0x31]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x58db76,0xf,_0x384bf1[0x32]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x2f0906,0x15,_0x384bf1[0x33]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x3fcead,0x6,_0x384bf1[0x34]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x1fb618,0xa,_0x384bf1[0x35]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x140e40,0xf,_0x384bf1[0x36]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x42ea01,0x15,_0x384bf1[0x37]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x10a924,0x6,_0x384bf1[0x38]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x37fada,0xa,_0x384bf1[0x39]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4431e4,0xf,_0x384bf1[0x3a]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x5e9323,0x15,_0x384bf1[0x3b]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x36d81c,0x6,_0x384bf1[0x3c]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x3def50,0xa,_0x384bf1[0x3d]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x426730,0xf,_0x384bf1[0x3e]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x155f8f,0x15,_0x384bf1[0x3f]),_0x380b58[0x0]=_0x380b58[0x0]+_0x58593e|0x0,_0x380b58[0x1]=_0x380b58[0x1]+_0x349c1e|0x0,_0x380b58[0x2]=_0x380b58[0x2]+_0x3923f9|0x0,_0x380b58[0x3]=_0x380b58[0x3]+_0x729e76|0x0;},'_doProcessBlock'),'_doFinalize':__name(function(){var _0x952705=_0x137269,_0x2d5331=this[_0x952705(0x27e)],_0x5eb53b=_0x2d5331[_0x952705(0x3b2)],_0x3f9c43=this[_0x952705(0x30b)]*0x8,_0xb8d749=_0x2d5331['sigBytes']*0x8;_0x5eb53b[_0xb8d749>>>0x5]|=0x80<<0x18-_0xb8d749%0x20;var _0x2bf46a=_0x5419c2[_0x952705(0x2b2)](_0x3f9c43/0x100000000),_0x3c0f1a=_0x3f9c43;_0x5eb53b[(_0xb8d749+0x40>>>0x9<<0x4)+0xf]=(_0x2bf46a<<0x8|_0x2bf46a>>>0x18)&0xff00ff|(_0x2bf46a<<0x18|_0x2bf46a>>>0x8)&0xff00ff00,_0x5eb53b[(_0xb8d749+0x40>>>0x9<<0x4)+0xe]=(_0x3c0f1a<<0x8|_0x3c0f1a>>>0x18)&0xff00ff|(_0x3c0f1a<<0x18|_0x3c0f1a>>>0x8)&0xff00ff00,_0x2d5331[_0x952705(0x3bb)]=(_0x5eb53b[_0x952705(0x233)]+0x1)*0x4,this[_0x952705(0x33b)]();for(var _0xacdc83=this[_0x952705(0x2bd)],_0xa36a45=_0xacdc83[_0x952705(0x3b2)],_0x167298=0x0;_0x167298<0x4;_0x167298++){var _0x35b09b=_0xa36a45[_0x167298];_0xa36a45[_0x167298]=(_0x35b09b<<0x8|_0x35b09b>>>0x18)&0xff00ff|(_0x35b09b<<0x18|_0x35b09b>>>0x8)&0xff00ff00;}return _0xacdc83;},_0x137269(0x27f)),'clone':__name(function(){var _0x3a6ebf=_0x137269,_0x25fab5=_0x5f0c68['clone']['call'](this);return _0x25fab5[_0x3a6ebf(0x2bd)]=this[_0x3a6ebf(0x2bd)][_0x3a6ebf(0x383)](),_0x25fab5;},_0x137269(0x383))});function _0x57e147(_0x1bd106,_0x365559,_0x465842,_0x3e6787,_0x1306c5,_0x3465b5,_0xc95ce5){var _0x227b1c=_0x1bd106+(_0x365559&_0x465842|~_0x365559&_0x3e6787)+_0x1306c5+_0xc95ce5;return(_0x227b1c<<_0x3465b5|_0x227b1c>>>0x20-_0x3465b5)+_0x365559;}__name(_0x57e147,'FF');function _0x21ce6e(_0x472a65,_0x4d1550,_0x26caac,_0x39627e,_0x57feb0,_0x696d04,_0x1584a6){var _0x1b31cc=_0x472a65+(_0x4d1550&_0x39627e|_0x26caac&~_0x39627e)+_0x57feb0+_0x1584a6;return(_0x1b31cc<<_0x696d04|_0x1b31cc>>>0x20-_0x696d04)+_0x4d1550;}__name(_0x21ce6e,'GG');function _0x58d1b2(_0x106e87,_0x48632d,_0xf44beb,_0x22b256,_0x1440ad,_0x19dc25,_0x306995){var _0x199a74=_0x106e87+(_0x48632d^_0xf44beb^_0x22b256)+_0x1440ad+_0x306995;return(_0x199a74<<_0x19dc25|_0x199a74>>>0x20-_0x19dc25)+_0x48632d;}__name(_0x58d1b2,'HH');function _0x15253a(_0x2efdc0,_0x1dcb75,_0x1a5515,_0x3f3039,_0x194f69,_0x109c4e,_0x539d1c){var _0x5a8c66=_0x2efdc0+(_0x1a5515^(_0x1dcb75|~_0x3f3039))+_0x194f69+_0x539d1c;return(_0x5a8c66<<_0x109c4e|_0x5a8c66>>>0x20-_0x109c4e)+_0x1dcb75;}__name(_0x15253a,'II'),_0x1f1dca['MD5']=_0x5f0c68[_0x137269(0x1e3)](_0xdb31c5),_0x1f1dca[_0x137269(0x2f8)]=_0x5f0c68['_createHmacHelper'](_0xdb31c5);}(Math),_0x2020db[_0x5efa8d(0x44c)];}));}(md5$1)),md5$1[_0x445232(0x2c9)];}__name(requireMd5,_0x43e0c9(0x357));var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1[_0x43e0c9(0x2c9)],hasRequiredSha1;function requireSha1(){var _0x3c54e8=_0x43e0c9;return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0x55526d,_0x391430){(function(_0x246c0f,_0x259e21){var _0x3a3f34=_0x5029;_0x55526d[_0x3a3f34(0x2c9)]=_0x259e21(requireCore());}(sha1,function(_0x40b3a3){var _0x95fc13=_0x5029;return(function(){var _0x161f49=_0x5029,_0x5269ad=_0x40b3a3,_0x3e9c3b=_0x5269ad[_0x161f49(0x2f7)],_0x10b597=_0x3e9c3b[_0x161f49(0x2ce)],_0x5a8718=_0x3e9c3b[_0x161f49(0x3cc)],_0x58cca6=_0x5269ad[_0x161f49(0x2ff)],_0x5d90a5=[],_0x1fc9b5=_0x58cca6[_0x161f49(0x17f)]=_0x5a8718[_0x161f49(0x10a)]({'_doReset':__name(function(){var _0x40b90d=_0x161f49;this[_0x40b90d(0x2bd)]=new _0x10b597[(_0x40b90d(0x21c))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},_0x161f49(0x142)),'_doProcessBlock':__name(function(_0x406dfc,_0x4f1407){var _0x3374ca=_0x161f49;for(var _0x389833=this[_0x3374ca(0x2bd)]['words'],_0x102b83=_0x389833[0x0],_0xb0d0b3=_0x389833[0x1],_0x14e974=_0x389833[0x2],_0x5aac57=_0x389833[0x3],_0x591440=_0x389833[0x4],_0x137158=0x0;_0x137158<0x50;_0x137158++){if(_0x137158<0x10)_0x5d90a5[_0x137158]=_0x406dfc[_0x4f1407+_0x137158]|0x0;else{var _0x4c5098=_0x5d90a5[_0x137158-0x3]^_0x5d90a5[_0x137158-0x8]^_0x5d90a5[_0x137158-0xe]^_0x5d90a5[_0x137158-0x10];_0x5d90a5[_0x137158]=_0x4c5098<<0x1|_0x4c5098>>>0x1f;}var _0x496b24=(_0x102b83<<0x5|_0x102b83>>>0x1b)+_0x591440+_0x5d90a5[_0x137158];_0x137158<0x14?_0x496b24+=(_0xb0d0b3&_0x14e974|~_0xb0d0b3&_0x5aac57)+0x5a827999:_0x137158<0x28?_0x496b24+=(_0xb0d0b3^_0x14e974^_0x5aac57)+0x6ed9eba1:_0x137158<0x3c?_0x496b24+=(_0xb0d0b3&_0x14e974|_0xb0d0b3&_0x5aac57|_0x14e974&_0x5aac57)-0x70e44324:_0x496b24+=(_0xb0d0b3^_0x14e974^_0x5aac57)-0x359d3e2a,_0x591440=_0x5aac57,_0x5aac57=_0x14e974,_0x14e974=_0xb0d0b3<<0x1e|_0xb0d0b3>>>0x2,_0xb0d0b3=_0x102b83,_0x102b83=_0x496b24;}_0x389833[0x0]=_0x389833[0x0]+_0x102b83|0x0,_0x389833[0x1]=_0x389833[0x1]+_0xb0d0b3|0x0,_0x389833[0x2]=_0x389833[0x2]+_0x14e974|0x0,_0x389833[0x3]=_0x389833[0x3]+_0x5aac57|0x0,_0x389833[0x4]=_0x389833[0x4]+_0x591440|0x0;},'_doProcessBlock'),'_doFinalize':__name(function(){var _0x203843=_0x161f49,_0x5e6a2=this[_0x203843(0x27e)],_0x4f74c9=_0x5e6a2[_0x203843(0x3b2)],_0x142288=this[_0x203843(0x30b)]*0x8,_0x1a18dc=_0x5e6a2['sigBytes']*0x8;return _0x4f74c9[_0x1a18dc>>>0x5]|=0x80<<0x18-_0x1a18dc%0x20,_0x4f74c9[(_0x1a18dc+0x40>>>0x9<<0x4)+0xe]=Math[_0x203843(0x2b2)](_0x142288/0x100000000),_0x4f74c9[(_0x1a18dc+0x40>>>0x9<<0x4)+0xf]=_0x142288,_0x5e6a2[_0x203843(0x3bb)]=_0x4f74c9[_0x203843(0x233)]*0x4,this[_0x203843(0x33b)](),this[_0x203843(0x2bd)];},'_doFinalize'),'clone':__name(function(){var _0x289542=_0x161f49,_0x4af0a8=_0x5a8718[_0x289542(0x383)][_0x289542(0x314)](this);return _0x4af0a8[_0x289542(0x2bd)]=this['_hash'][_0x289542(0x383)](),_0x4af0a8;},_0x161f49(0x383))});_0x5269ad[_0x161f49(0x17f)]=_0x5a8718['_createHelper'](_0x1fc9b5),_0x5269ad[_0x161f49(0x356)]=_0x5a8718[_0x161f49(0x29a)](_0x1fc9b5);}()),_0x40b3a3[_0x95fc13(0x17f)];}));}(sha1$1)),sha1$1[_0x3c54e8(0x2c9)];}__name(requireSha1,_0x43e0c9(0x3c5));var hmac$1={'exports':{}},hmac=hmac$1[_0x43e0c9(0x2c9)],hasRequiredHmac;function requireHmac(){var _0xb38622=_0x43e0c9;return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x37ffda,_0xb3a4b3){(function(_0x1565e4,_0x33d5df){var _0x44e1d1=_0x5029;_0x37ffda[_0x44e1d1(0x2c9)]=_0x33d5df(requireCore());}(hmac,function(_0x23c537){(function(){var _0x2ae2ea=_0x5029,_0x904ef7=_0x23c537,_0x321aa1=_0x904ef7[_0x2ae2ea(0x2f7)],_0x39ce29=_0x321aa1['Base'],_0x264d0d=_0x904ef7[_0x2ae2ea(0x316)],_0x5a5bf4=_0x264d0d[_0x2ae2ea(0x3fa)],_0x3b7c2f=_0x904ef7['algo'];_0x3b7c2f[_0x2ae2ea(0x17e)]=_0x39ce29['extend']({'init':__name(function(_0x1c37a3,_0xa4683d){var _0x11d628=_0x2ae2ea;_0x1c37a3=this[_0x11d628(0x367)]=new _0x1c37a3[(_0x11d628(0x21c))](),typeof _0xa4683d==_0x11d628(0x17a)&&(_0xa4683d=_0x5a5bf4[_0x11d628(0x3eb)](_0xa4683d));var _0x36f11b=_0x1c37a3[_0x11d628(0x30c)],_0x2a9761=_0x36f11b*0x4;_0xa4683d[_0x11d628(0x3bb)]>_0x2a9761&&(_0xa4683d=_0x1c37a3[_0x11d628(0x426)](_0xa4683d)),_0xa4683d[_0x11d628(0x154)]();for(var _0x30a804=this[_0x11d628(0x13b)]=_0xa4683d['clone'](),_0x42b149=this[_0x11d628(0x363)]=_0xa4683d[_0x11d628(0x383)](),_0x381674=_0x30a804[_0x11d628(0x3b2)],_0x46bac0=_0x42b149[_0x11d628(0x3b2)],_0x91a2ce=0x0;_0x91a2ce<_0x36f11b;_0x91a2ce++)_0x381674[_0x91a2ce]^=0x5c5c5c5c,_0x46bac0[_0x91a2ce]^=0x36363636;_0x30a804[_0x11d628(0x3bb)]=_0x42b149[_0x11d628(0x3bb)]=_0x2a9761,this[_0x11d628(0x2cd)]();},_0x2ae2ea(0x21c)),'reset':__name(function(){var _0x1866d5=_0x2ae2ea,_0x1b0ce9=this[_0x1866d5(0x367)];_0x1b0ce9['reset'](),_0x1b0ce9['update'](this[_0x1866d5(0x363)]);},_0x2ae2ea(0x2cd)),'update':__name(function(_0x565ed3){var _0x24d738=_0x2ae2ea;return this[_0x24d738(0x367)]['update'](_0x565ed3),this;},'update'),'finalize':__name(function(_0x44ada6){var _0x1fd4ca=_0x2ae2ea,_0x206700=this[_0x1fd4ca(0x367)],_0x8e5c57=_0x206700[_0x1fd4ca(0x426)](_0x44ada6);_0x206700[_0x1fd4ca(0x2cd)]();var _0x1d53c7=_0x206700[_0x1fd4ca(0x426)](this['_oKey'][_0x1fd4ca(0x383)]()[_0x1fd4ca(0x354)](_0x8e5c57));return _0x1d53c7;},_0x2ae2ea(0x426))});}());}));}(hmac$1)),hmac$1[_0xb38622(0x2c9)];}__name(requireHmac,_0x43e0c9(0x18d));var evpkdf=evpkdf$1[_0x43e0c9(0x2c9)],hasRequiredEvpkdf;function requireEvpkdf(){var _0x4679e4=_0x43e0c9;return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x393750,_0x4f3c9f){(function(_0x3083be,_0x384378,_0x2acc12){var _0xa64b87=_0x5029;_0x393750[_0xa64b87(0x2c9)]=_0x384378(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x3319de){var _0xb400c0=_0x5029;return(function(){var _0x43116b=_0x5029,_0x571b58=_0x3319de,_0xbadd05=_0x571b58['lib'],_0x356647=_0xbadd05[_0x43116b(0x312)],_0x37fc6d=_0xbadd05[_0x43116b(0x2ce)],_0x30482c=_0x571b58[_0x43116b(0x2ff)],_0x3a34b4=_0x30482c[_0x43116b(0x44c)],_0x5e49be=_0x30482c[_0x43116b(0x231)]=_0x356647[_0x43116b(0x10a)]({'cfg':_0x356647['extend']({'keySize':0x80/0x20,'hasher':_0x3a34b4,'iterations':0x1}),'init':__name(function(_0x3fddab){var _0x280ec3=_0x43116b;this[_0x280ec3(0x2fa)]=this[_0x280ec3(0x2fa)][_0x280ec3(0x10a)](_0x3fddab);},'init'),'compute':__name(function(_0x10ba44,_0x246566){var _0x4a5cdb=_0x43116b;for(var _0x18f605,_0x99abe6=this[_0x4a5cdb(0x2fa)],_0x1076d0=_0x99abe6['hasher'][_0x4a5cdb(0x33c)](),_0x4cc4a4=_0x37fc6d[_0x4a5cdb(0x33c)](),_0xb9bcb=_0x4cc4a4['words'],_0x1f2abe=_0x99abe6[_0x4a5cdb(0x3ff)],_0xbc7f0e=_0x99abe6['iterations'];_0xb9bcb['length']<_0x1f2abe;){_0x18f605&&_0x1076d0[_0x4a5cdb(0x349)](_0x18f605),_0x18f605=_0x1076d0[_0x4a5cdb(0x349)](_0x10ba44)[_0x4a5cdb(0x426)](_0x246566),_0x1076d0[_0x4a5cdb(0x2cd)]();for(var _0x233cb2=0x1;_0x233cb2<_0xbc7f0e;_0x233cb2++)_0x18f605=_0x1076d0[_0x4a5cdb(0x426)](_0x18f605),_0x1076d0[_0x4a5cdb(0x2cd)]();_0x4cc4a4[_0x4a5cdb(0x354)](_0x18f605);}return _0x4cc4a4[_0x4a5cdb(0x3bb)]=_0x1f2abe*0x4,_0x4cc4a4;},_0x43116b(0x1a8))});_0x571b58[_0x43116b(0x231)]=function(_0x5a3938,_0x1de0cd,_0x167312){var _0x1c314d=_0x43116b;return _0x5e49be[_0x1c314d(0x33c)](_0x167312)['compute'](_0x5a3938,_0x1de0cd);};}()),_0x3319de[_0xb400c0(0x231)];}));}(evpkdf$1)),evpkdf$1[_0x4679e4(0x2c9)];}__name(requireEvpkdf,_0x43e0c9(0x24f));var cipherCore$1={'exports':{}},cipherCore=cipherCore$1['exports'],hasRequiredCipherCore;function requireCipherCore(){var _0xcf64f7=_0x43e0c9;return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x2d0117,_0x7a49bc){(function(_0x3f2115,_0x3824b1,_0x15947b){var _0x208f0a=_0x5029;_0x2d0117[_0x208f0a(0x2c9)]=_0x3824b1(requireCore(),requireEvpkdf());}(cipherCore,function(_0x2402dd){var _0x13edf3=_0x5029;_0x2402dd['lib'][_0x13edf3(0x3f0)]||function(_0x2d345d){var _0x17668a=_0x13edf3,_0x5ca3e6=_0x2402dd,_0x5c8dd3=_0x5ca3e6[_0x17668a(0x2f7)],_0x2b881c=_0x5c8dd3[_0x17668a(0x312)],_0x1edd3c=_0x5c8dd3['WordArray'],_0x1a7e9c=_0x5c8dd3[_0x17668a(0x447)],_0x2bda69=_0x5ca3e6[_0x17668a(0x316)];_0x2bda69[_0x17668a(0x3fa)];var _0x351f52=_0x2bda69[_0x17668a(0x296)],_0x5f4596=_0x5ca3e6[_0x17668a(0x2ff)],_0x1fcfa9=_0x5f4596[_0x17668a(0x231)],_0x3c5c01=_0x5c8dd3[_0x17668a(0x3f0)]=_0x1a7e9c[_0x17668a(0x10a)]({'cfg':_0x2b881c[_0x17668a(0x10a)](),'createEncryptor':__name(function(_0x1de4b9,_0x322152){var _0x11cb3b=_0x17668a;return this[_0x11cb3b(0x33c)](this[_0x11cb3b(0x2ef)],_0x1de4b9,_0x322152);},_0x17668a(0x166)),'createDecryptor':__name(function(_0x2ba41b,_0xe97da2){var _0x4f85f2=_0x17668a;return this[_0x4f85f2(0x33c)](this[_0x4f85f2(0x34d)],_0x2ba41b,_0xe97da2);},_0x17668a(0x36e)),'init':__name(function(_0x451033,_0x28ab87,_0x2139b8){var _0x1fb672=_0x17668a;this[_0x1fb672(0x2fa)]=this[_0x1fb672(0x2fa)][_0x1fb672(0x10a)](_0x2139b8),this[_0x1fb672(0x351)]=_0x451033,this['_key']=_0x28ab87,this[_0x1fb672(0x2cd)]();},_0x17668a(0x21c)),'reset':__name(function(){var _0x4a8d24=_0x17668a;_0x1a7e9c[_0x4a8d24(0x2cd)]['call'](this),this[_0x4a8d24(0x142)]();},_0x17668a(0x2cd)),'process':__name(function(_0x57a49c){var _0x3bb0af=_0x17668a;return this[_0x3bb0af(0x100)](_0x57a49c),this['_process']();},_0x17668a(0x262)),'finalize':__name(function(_0x2b6f75){var _0x5d9a95=_0x17668a;_0x2b6f75&&this[_0x5d9a95(0x100)](_0x2b6f75);var _0x189b37=this[_0x5d9a95(0x27f)]();return _0x189b37;},_0x17668a(0x426)),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0xb35fdc(_0x4c8f15){return typeof _0x4c8f15=='string'?_0x429279:_0x2b2665;}return __name(_0xb35fdc,'selectCipherStrategy'),function(_0x5ab706){var _0x2206b0=_0x5029;return{'encrypt':__name(function(_0x2a90c1,_0x566f6f,_0x35eac6){var _0x1f2d57=_0x5029;return _0xb35fdc(_0x566f6f)[_0x1f2d57(0x353)](_0x5ab706,_0x2a90c1,_0x566f6f,_0x35eac6);},_0x2206b0(0x353)),'decrypt':__name(function(_0xe7a852,_0x301368,_0x917b28){var _0x59b0c4=_0x2206b0;return _0xb35fdc(_0x301368)[_0x59b0c4(0x418)](_0x5ab706,_0xe7a852,_0x301368,_0x917b28);},_0x2206b0(0x418))};};}())});_0x5c8dd3[_0x17668a(0x2c0)]=_0x3c5c01[_0x17668a(0x10a)]({'_doFinalize':__name(function(){var _0x2fdf92=_0x17668a,_0x2ba820=this[_0x2fdf92(0x33b)](!0x0);return _0x2ba820;},'_doFinalize'),'blockSize':0x1});var _0x251c40=_0x5ca3e6[_0x17668a(0x1a6)]={},_0x4cb9cd=_0x5c8dd3[_0x17668a(0x183)]=_0x2b881c[_0x17668a(0x10a)]({'createEncryptor':__name(function(_0x335f81,_0x8e63cf){var _0x429519=_0x17668a;return this[_0x429519(0x276)][_0x429519(0x33c)](_0x335f81,_0x8e63cf);},_0x17668a(0x166)),'createDecryptor':__name(function(_0x55ba8e,_0x2f2d9e){var _0x41a7d2=_0x17668a;return this[_0x41a7d2(0x2a7)][_0x41a7d2(0x33c)](_0x55ba8e,_0x2f2d9e);},_0x17668a(0x36e)),'init':__name(function(_0x92687,_0x293f4f){var _0x72af06=_0x17668a;this['_cipher']=_0x92687,this[_0x72af06(0x1ce)]=_0x293f4f;},_0x17668a(0x21c))}),_0x265a4e=_0x251c40[_0x17668a(0x117)]=(function(){var _0x459d5f=_0x17668a,_0x3372ba=_0x4cb9cd[_0x459d5f(0x10a)]();_0x3372ba[_0x459d5f(0x276)]=_0x3372ba[_0x459d5f(0x10a)]({'processBlock':__name(function(_0x53ab6e,_0x5d5445){var _0x4fc48a=_0x459d5f,_0x54e360=this[_0x4fc48a(0x14e)],_0x414ccd=_0x54e360[_0x4fc48a(0x30c)];_0x29b175[_0x4fc48a(0x314)](this,_0x53ab6e,_0x5d5445,_0x414ccd),_0x54e360[_0x4fc48a(0x377)](_0x53ab6e,_0x5d5445),this[_0x4fc48a(0x15b)]=_0x53ab6e[_0x4fc48a(0x1ea)](_0x5d5445,_0x5d5445+_0x414ccd);},_0x459d5f(0x365))}),_0x3372ba[_0x459d5f(0x2a7)]=_0x3372ba[_0x459d5f(0x10a)]({'processBlock':__name(function(_0x5913ec,_0x1794cc){var _0x32eb9e=_0x459d5f,_0x5894e8=this[_0x32eb9e(0x14e)],_0xe8a9e8=_0x5894e8[_0x32eb9e(0x30c)],_0x52081e=_0x5913ec[_0x32eb9e(0x1ea)](_0x1794cc,_0x1794cc+_0xe8a9e8);_0x5894e8[_0x32eb9e(0x39a)](_0x5913ec,_0x1794cc),_0x29b175[_0x32eb9e(0x314)](this,_0x5913ec,_0x1794cc,_0xe8a9e8),this[_0x32eb9e(0x15b)]=_0x52081e;},_0x459d5f(0x365))});function _0x29b175(_0x48b6c8,_0x22740a,_0x245309){var _0x380f12=_0x459d5f,_0x453dab,_0x68a54b=this[_0x380f12(0x1ce)];_0x68a54b?(_0x453dab=_0x68a54b,this[_0x380f12(0x1ce)]=_0x2d345d):_0x453dab=this[_0x380f12(0x15b)];for(var _0x106adf=0x0;_0x106adf<_0x245309;_0x106adf++)_0x48b6c8[_0x22740a+_0x106adf]^=_0x453dab[_0x106adf];}return __name(_0x29b175,_0x459d5f(0x1ad)),_0x3372ba;}()),_0x427435=_0x5ca3e6[_0x17668a(0x3d2)]={},_0x56b209=_0x427435[_0x17668a(0x3a9)]={'pad':__name(function(_0x13708b,_0x34ffd3){var _0x2912a2=_0x17668a;for(var _0x1eacf1=_0x34ffd3*0x4,_0x30f371=_0x1eacf1-_0x13708b[_0x2912a2(0x3bb)]%_0x1eacf1,_0x2b858a=_0x30f371<<0x18|_0x30f371<<0x10|_0x30f371<<0x8|_0x30f371,_0x4b1ef1=[],_0x384318=0x0;_0x384318<_0x30f371;_0x384318+=0x4)_0x4b1ef1[_0x2912a2(0x119)](_0x2b858a);var _0x22ce6c=_0x1edd3c[_0x2912a2(0x33c)](_0x4b1ef1,_0x30f371);_0x13708b[_0x2912a2(0x354)](_0x22ce6c);},'pad'),'unpad':__name(function(_0x346e89){var _0x439183=_0x17668a,_0xc8c34d=_0x346e89[_0x439183(0x3b2)][_0x346e89['sigBytes']-0x1>>>0x2]&0xff;_0x346e89[_0x439183(0x3bb)]-=_0xc8c34d;},_0x17668a(0x164))};_0x5c8dd3[_0x17668a(0x1f2)]=_0x3c5c01['extend']({'cfg':_0x3c5c01[_0x17668a(0x2fa)][_0x17668a(0x10a)]({'mode':_0x265a4e,'padding':_0x56b209}),'reset':__name(function(){var _0x456df5=_0x17668a,_0x3d8906;_0x3c5c01[_0x456df5(0x2cd)][_0x456df5(0x314)](this);var _0x4c1e6c=this[_0x456df5(0x2fa)],_0x443ba7=_0x4c1e6c['iv'],_0x263fae=_0x4c1e6c[_0x456df5(0x1a6)];this[_0x456df5(0x351)]==this[_0x456df5(0x2ef)]?_0x3d8906=_0x263fae[_0x456df5(0x166)]:(_0x3d8906=_0x263fae[_0x456df5(0x36e)],this[_0x456df5(0x131)]=0x1),this[_0x456df5(0x248)]&&this[_0x456df5(0x248)][_0x456df5(0x387)]==_0x3d8906?this[_0x456df5(0x248)][_0x456df5(0x21c)](this,_0x443ba7&&_0x443ba7[_0x456df5(0x3b2)]):(this[_0x456df5(0x248)]=_0x3d8906['call'](_0x263fae,this,_0x443ba7&&_0x443ba7[_0x456df5(0x3b2)]),this[_0x456df5(0x248)][_0x456df5(0x387)]=_0x3d8906);},_0x17668a(0x2cd)),'_doProcessBlock':__name(function(_0x33951f,_0x128ade){var _0x376fb4=_0x17668a;this['_mode'][_0x376fb4(0x365)](_0x33951f,_0x128ade);},_0x17668a(0x106)),'_doFinalize':__name(function(){var _0x4f6eb0=_0x17668a,_0x55f47c,_0x2f4157=this['cfg']['padding'];return this[_0x4f6eb0(0x351)]==this[_0x4f6eb0(0x2ef)]?(_0x2f4157[_0x4f6eb0(0x3d2)](this[_0x4f6eb0(0x27e)],this[_0x4f6eb0(0x30c)]),_0x55f47c=this[_0x4f6eb0(0x33b)](!0x0)):(_0x55f47c=this[_0x4f6eb0(0x33b)](!0x0),_0x2f4157[_0x4f6eb0(0x164)](_0x55f47c)),_0x55f47c;},'_doFinalize'),'blockSize':0x80/0x20});var _0x3747a3=_0x5c8dd3[_0x17668a(0x1b4)]=_0x2b881c[_0x17668a(0x10a)]({'init':__name(function(_0x177fc6){var _0x168b62=_0x17668a;this[_0x168b62(0x16d)](_0x177fc6);},'init'),'toString':__name(function(_0x3a9e3f){var _0x1c4b63=_0x17668a;return(_0x3a9e3f||this[_0x1c4b63(0x30f)])[_0x1c4b63(0xff)](this);},_0x17668a(0x22b))}),_0x2ee513=_0x5ca3e6[_0x17668a(0x281)]={},_0x5b9090=_0x2ee513[_0x17668a(0x3ab)]={'stringify':__name(function(_0x304347){var _0x3786d0=_0x17668a,_0x467fb7,_0x242457=_0x304347[_0x3786d0(0x109)],_0x592065=_0x304347['salt'];return _0x592065?_0x467fb7=_0x1edd3c[_0x3786d0(0x33c)]([0x53616c74,0x65645f5f])[_0x3786d0(0x354)](_0x592065)[_0x3786d0(0x354)](_0x242457):_0x467fb7=_0x242457,_0x467fb7[_0x3786d0(0x22b)](_0x351f52);},_0x17668a(0xff)),'parse':__name(function(_0x29d5d0){var _0x26ba13=_0x17668a,_0x55f38a,_0x5e7388=_0x351f52[_0x26ba13(0x3eb)](_0x29d5d0),_0x3b8983=_0x5e7388['words'];return _0x3b8983[0x0]==0x53616c74&&_0x3b8983[0x1]==0x65645f5f&&(_0x55f38a=_0x1edd3c[_0x26ba13(0x33c)](_0x3b8983[_0x26ba13(0x1ea)](0x2,0x4)),_0x3b8983[_0x26ba13(0x414)](0x0,0x4),_0x5e7388[_0x26ba13(0x3bb)]-=0x10),_0x3747a3[_0x26ba13(0x33c)]({'ciphertext':_0x5e7388,'salt':_0x55f38a});},_0x17668a(0x3eb))},_0x2b2665=_0x5c8dd3[_0x17668a(0x13f)]=_0x2b881c[_0x17668a(0x10a)]({'cfg':_0x2b881c[_0x17668a(0x10a)]({'format':_0x5b9090}),'encrypt':__name(function(_0x21dba5,_0x226eb9,_0x4351a1,_0x38d9bb){var _0x235dce=_0x17668a;_0x38d9bb=this[_0x235dce(0x2fa)][_0x235dce(0x10a)](_0x38d9bb);var _0x18a7b1=_0x21dba5[_0x235dce(0x166)](_0x4351a1,_0x38d9bb),_0x2b9bfe=_0x18a7b1[_0x235dce(0x426)](_0x226eb9),_0x44feb4=_0x18a7b1[_0x235dce(0x2fa)];return _0x3747a3[_0x235dce(0x33c)]({'ciphertext':_0x2b9bfe,'key':_0x4351a1,'iv':_0x44feb4['iv'],'algorithm':_0x21dba5,'mode':_0x44feb4[_0x235dce(0x1a6)],'padding':_0x44feb4[_0x235dce(0x138)],'blockSize':_0x21dba5[_0x235dce(0x30c)],'formatter':_0x38d9bb['format']});},_0x17668a(0x353)),'decrypt':__name(function(_0x879b5a,_0x1dd0f1,_0x3027f1,_0x36b132){var _0x4059c9=_0x17668a;_0x36b132=this[_0x4059c9(0x2fa)][_0x4059c9(0x10a)](_0x36b132),_0x1dd0f1=this['_parse'](_0x1dd0f1,_0x36b132['format']);var _0x22445d=_0x879b5a[_0x4059c9(0x36e)](_0x3027f1,_0x36b132)['finalize'](_0x1dd0f1['ciphertext']);return _0x22445d;},_0x17668a(0x418)),'_parse':__name(function(_0x2d4997,_0xbe47cc){var _0x53df13=_0x17668a;return typeof _0x2d4997=='string'?_0xbe47cc[_0x53df13(0x3eb)](_0x2d4997,this):_0x2d4997;},_0x17668a(0x286))}),_0x449cc4=_0x5ca3e6[_0x17668a(0x258)]={},_0x5d81e5=_0x449cc4['OpenSSL']={'execute':__name(function(_0xea32b,_0x3ec64e,_0x875bb2,_0x4d44e2,_0x59a03d){var _0x2c5f62=_0x17668a;if(_0x4d44e2||(_0x4d44e2=_0x1edd3c[_0x2c5f62(0x22d)](0x40/0x8)),_0x59a03d)var _0x5ac15a=_0x1fcfa9['create']({'keySize':_0x3ec64e+_0x875bb2,'hasher':_0x59a03d})[_0x2c5f62(0x1a8)](_0xea32b,_0x4d44e2);else var _0x5ac15a=_0x1fcfa9[_0x2c5f62(0x33c)]({'keySize':_0x3ec64e+_0x875bb2})[_0x2c5f62(0x1a8)](_0xea32b,_0x4d44e2);var _0x2a7334=_0x1edd3c['create'](_0x5ac15a[_0x2c5f62(0x3b2)][_0x2c5f62(0x1ea)](_0x3ec64e),_0x875bb2*0x4);return _0x5ac15a[_0x2c5f62(0x3bb)]=_0x3ec64e*0x4,_0x3747a3['create']({'key':_0x5ac15a,'iv':_0x2a7334,'salt':_0x4d44e2});},'execute')},_0x429279=_0x5c8dd3[_0x17668a(0x1be)]=_0x2b2665[_0x17668a(0x10a)]({'cfg':_0x2b2665[_0x17668a(0x2fa)]['extend']({'kdf':_0x5d81e5}),'encrypt':__name(function(_0x36b59f,_0x2e079b,_0xdfbb4c,_0x5bb452){var _0x135aaf=_0x17668a;_0x5bb452=this[_0x135aaf(0x2fa)][_0x135aaf(0x10a)](_0x5bb452);var _0x622c9f=_0x5bb452[_0x135aaf(0x258)][_0x135aaf(0x11d)](_0xdfbb4c,_0x36b59f['keySize'],_0x36b59f['ivSize'],_0x5bb452[_0x135aaf(0x31a)],_0x5bb452[_0x135aaf(0x223)]);_0x5bb452['iv']=_0x622c9f['iv'];var _0xa2c6c8=_0x2b2665[_0x135aaf(0x353)][_0x135aaf(0x314)](this,_0x36b59f,_0x2e079b,_0x622c9f['key'],_0x5bb452);return _0xa2c6c8[_0x135aaf(0x16d)](_0x622c9f),_0xa2c6c8;},_0x17668a(0x353)),'decrypt':__name(function(_0x5e67c9,_0x226fd9,_0x190e2e,_0x1e5720){var _0x56d606=_0x17668a;_0x1e5720=this['cfg']['extend'](_0x1e5720),_0x226fd9=this[_0x56d606(0x286)](_0x226fd9,_0x1e5720[_0x56d606(0x281)]);var _0x54a9f2=_0x1e5720[_0x56d606(0x258)][_0x56d606(0x11d)](_0x190e2e,_0x5e67c9[_0x56d606(0x3ff)],_0x5e67c9[_0x56d606(0x179)],_0x226fd9[_0x56d606(0x31a)],_0x1e5720[_0x56d606(0x223)]);_0x1e5720['iv']=_0x54a9f2['iv'];var _0xd9811a=_0x2b2665[_0x56d606(0x418)][_0x56d606(0x314)](this,_0x5e67c9,_0x226fd9,_0x54a9f2['key'],_0x1e5720);return _0xd9811a;},_0x17668a(0x418))});}();}));}(cipherCore$1)),cipherCore$1[_0xcf64f7(0x2c9)];}__name(requireCipherCore,_0x43e0c9(0x2ca));var aes=aes$1[_0x43e0c9(0x2c9)],hasRequiredAes;function requireAes(){var _0x2664d7=_0x43e0c9;return hasRequiredAes||(hasRequiredAes=0x1,function(_0xdd9064,_0x5cba6f){(function(_0x1d593b,_0x1e05d9,_0x28f6e9){var _0x461f3f=_0x5029;_0xdd9064[_0x461f3f(0x2c9)]=_0x1e05d9(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x4930ec){var _0x2c8b93=_0x5029;return(function(){var _0x4cf687=_0x5029,_0x32c959=_0x4930ec,_0x4d45dd=_0x32c959[_0x4cf687(0x2f7)],_0x1f1fd4=_0x4d45dd[_0x4cf687(0x1f2)],_0x4d29bd=_0x32c959[_0x4cf687(0x2ff)],_0x2e1a3a=[],_0x4a9d42=[],_0x2d1d61=[],_0x59ae38=[],_0x1e419e=[],_0x2cf774=[],_0x2ec34e=[],_0x2592e1=[],_0x20b7cb=[],_0xd81cf1=[];(function(){for(var _0x37903c=[],_0x22d4c0=0x0;_0x22d4c0<0x100;_0x22d4c0++)_0x22d4c0<0x80?_0x37903c[_0x22d4c0]=_0x22d4c0<<0x1:_0x37903c[_0x22d4c0]=_0x22d4c0<<0x1^0x11b;for(var _0x1ceffc=0x0,_0x51daeb=0x0,_0x22d4c0=0x0;_0x22d4c0<0x100;_0x22d4c0++){var _0x2b8641=_0x51daeb^_0x51daeb<<0x1^_0x51daeb<<0x2^_0x51daeb<<0x3^_0x51daeb<<0x4;_0x2b8641=_0x2b8641>>>0x8^_0x2b8641&0xff^0x63,_0x2e1a3a[_0x1ceffc]=_0x2b8641,_0x4a9d42[_0x2b8641]=_0x1ceffc;var _0x115edd=_0x37903c[_0x1ceffc],_0x5da2d5=_0x37903c[_0x115edd],_0x3d74b7=_0x37903c[_0x5da2d5],_0x28745b=_0x37903c[_0x2b8641]*0x101^_0x2b8641*0x1010100;_0x2d1d61[_0x1ceffc]=_0x28745b<<0x18|_0x28745b>>>0x8,_0x59ae38[_0x1ceffc]=_0x28745b<<0x10|_0x28745b>>>0x10,_0x1e419e[_0x1ceffc]=_0x28745b<<0x8|_0x28745b>>>0x18,_0x2cf774[_0x1ceffc]=_0x28745b;var _0x28745b=_0x3d74b7*0x1010101^_0x5da2d5*0x10001^_0x115edd*0x101^_0x1ceffc*0x1010100;_0x2ec34e[_0x2b8641]=_0x28745b<<0x18|_0x28745b>>>0x8,_0x2592e1[_0x2b8641]=_0x28745b<<0x10|_0x28745b>>>0x10,_0x20b7cb[_0x2b8641]=_0x28745b<<0x8|_0x28745b>>>0x18,_0xd81cf1[_0x2b8641]=_0x28745b,_0x1ceffc?(_0x1ceffc=_0x115edd^_0x37903c[_0x37903c[_0x37903c[_0x3d74b7^_0x115edd]]],_0x51daeb^=_0x37903c[_0x37903c[_0x51daeb]]):_0x1ceffc=_0x51daeb=0x1;}}());var _0x458f66=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x24cfd9=_0x4d29bd[_0x4cf687(0x341)]=_0x1f1fd4[_0x4cf687(0x10a)]({'_doReset':__name(function(){var _0x25b548=_0x4cf687,_0x466047;if(!(this[_0x25b548(0x120)]&&this['_keyPriorReset']===this[_0x25b548(0x36d)])){for(var _0x52da8d=this[_0x25b548(0x1a4)]=this[_0x25b548(0x36d)],_0x4af5d9=_0x52da8d['words'],_0x1bbd54=_0x52da8d[_0x25b548(0x3bb)]/0x4,_0x24cd6f=this[_0x25b548(0x120)]=_0x1bbd54+0x6,_0xd39ef=(_0x24cd6f+0x1)*0x4,_0x11a8ea=this['_keySchedule']=[],_0x25c75a=0x0;_0x25c75a<_0xd39ef;_0x25c75a++)_0x25c75a<_0x1bbd54?_0x11a8ea[_0x25c75a]=_0x4af5d9[_0x25c75a]:(_0x466047=_0x11a8ea[_0x25c75a-0x1],_0x25c75a%_0x1bbd54?_0x1bbd54>0x6&&_0x25c75a%_0x1bbd54==0x4&&(_0x466047=_0x2e1a3a[_0x466047>>>0x18]<<0x18|_0x2e1a3a[_0x466047>>>0x10&0xff]<<0x10|_0x2e1a3a[_0x466047>>>0x8&0xff]<<0x8|_0x2e1a3a[_0x466047&0xff]):(_0x466047=_0x466047<<0x8|_0x466047>>>0x18,_0x466047=_0x2e1a3a[_0x466047>>>0x18]<<0x18|_0x2e1a3a[_0x466047>>>0x10&0xff]<<0x10|_0x2e1a3a[_0x466047>>>0x8&0xff]<<0x8|_0x2e1a3a[_0x466047&0xff],_0x466047^=_0x458f66[_0x25c75a/_0x1bbd54|0x0]<<0x18),_0x11a8ea[_0x25c75a]=_0x11a8ea[_0x25c75a-_0x1bbd54]^_0x466047);for(var _0x475a53=this['_invKeySchedule']=[],_0x2bfc5f=0x0;_0x2bfc5f<_0xd39ef;_0x2bfc5f++){var _0x25c75a=_0xd39ef-_0x2bfc5f;if(_0x2bfc5f%0x4)var _0x466047=_0x11a8ea[_0x25c75a];else var _0x466047=_0x11a8ea[_0x25c75a-0x4];_0x2bfc5f<0x4||_0x25c75a<=0x4?_0x475a53[_0x2bfc5f]=_0x466047:_0x475a53[_0x2bfc5f]=_0x2ec34e[_0x2e1a3a[_0x466047>>>0x18]]^_0x2592e1[_0x2e1a3a[_0x466047>>>0x10&0xff]]^_0x20b7cb[_0x2e1a3a[_0x466047>>>0x8&0xff]]^_0xd81cf1[_0x2e1a3a[_0x466047&0xff]];}}},'_doReset'),'encryptBlock':__name(function(_0x4206ef,_0x117c51){var _0x21c355=_0x4cf687;this[_0x21c355(0x379)](_0x4206ef,_0x117c51,this[_0x21c355(0x201)],_0x2d1d61,_0x59ae38,_0x1e419e,_0x2cf774,_0x2e1a3a);},_0x4cf687(0x377)),'decryptBlock':__name(function(_0x230fab,_0x497a67){var _0x36e756=_0x4cf687,_0x6b3d04=_0x230fab[_0x497a67+0x1];_0x230fab[_0x497a67+0x1]=_0x230fab[_0x497a67+0x3],_0x230fab[_0x497a67+0x3]=_0x6b3d04,this[_0x36e756(0x379)](_0x230fab,_0x497a67,this['_invKeySchedule'],_0x2ec34e,_0x2592e1,_0x20b7cb,_0xd81cf1,_0x4a9d42);var _0x6b3d04=_0x230fab[_0x497a67+0x1];_0x230fab[_0x497a67+0x1]=_0x230fab[_0x497a67+0x3],_0x230fab[_0x497a67+0x3]=_0x6b3d04;},'decryptBlock'),'_doCryptBlock':__name(function(_0x5a4726,_0x5a5b66,_0x458cfa,_0x11dbf7,_0x5588f5,_0x3e2d19,_0x413c4e,_0x463c92){var _0x174868=_0x4cf687;for(var _0x18fc72=this[_0x174868(0x120)],_0x216df7=_0x5a4726[_0x5a5b66]^_0x458cfa[0x0],_0x628328=_0x5a4726[_0x5a5b66+0x1]^_0x458cfa[0x1],_0x3a239e=_0x5a4726[_0x5a5b66+0x2]^_0x458cfa[0x2],_0x13a951=_0x5a4726[_0x5a5b66+0x3]^_0x458cfa[0x3],_0x91a4d8=0x4,_0x16fe4a=0x1;_0x16fe4a<_0x18fc72;_0x16fe4a++){var _0x298ce4=_0x11dbf7[_0x216df7>>>0x18]^_0x5588f5[_0x628328>>>0x10&0xff]^_0x3e2d19[_0x3a239e>>>0x8&0xff]^_0x413c4e[_0x13a951&0xff]^_0x458cfa[_0x91a4d8++],_0xbe1fe=_0x11dbf7[_0x628328>>>0x18]^_0x5588f5[_0x3a239e>>>0x10&0xff]^_0x3e2d19[_0x13a951>>>0x8&0xff]^_0x413c4e[_0x216df7&0xff]^_0x458cfa[_0x91a4d8++],_0x424b24=_0x11dbf7[_0x3a239e>>>0x18]^_0x5588f5[_0x13a951>>>0x10&0xff]^_0x3e2d19[_0x216df7>>>0x8&0xff]^_0x413c4e[_0x628328&0xff]^_0x458cfa[_0x91a4d8++],_0x3e26db=_0x11dbf7[_0x13a951>>>0x18]^_0x5588f5[_0x216df7>>>0x10&0xff]^_0x3e2d19[_0x628328>>>0x8&0xff]^_0x413c4e[_0x3a239e&0xff]^_0x458cfa[_0x91a4d8++];_0x216df7=_0x298ce4,_0x628328=_0xbe1fe,_0x3a239e=_0x424b24,_0x13a951=_0x3e26db;}var _0x298ce4=(_0x463c92[_0x216df7>>>0x18]<<0x18|_0x463c92[_0x628328>>>0x10&0xff]<<0x10|_0x463c92[_0x3a239e>>>0x8&0xff]<<0x8|_0x463c92[_0x13a951&0xff])^_0x458cfa[_0x91a4d8++],_0xbe1fe=(_0x463c92[_0x628328>>>0x18]<<0x18|_0x463c92[_0x3a239e>>>0x10&0xff]<<0x10|_0x463c92[_0x13a951>>>0x8&0xff]<<0x8|_0x463c92[_0x216df7&0xff])^_0x458cfa[_0x91a4d8++],_0x424b24=(_0x463c92[_0x3a239e>>>0x18]<<0x18|_0x463c92[_0x13a951>>>0x10&0xff]<<0x10|_0x463c92[_0x216df7>>>0x8&0xff]<<0x8|_0x463c92[_0x628328&0xff])^_0x458cfa[_0x91a4d8++],_0x3e26db=(_0x463c92[_0x13a951>>>0x18]<<0x18|_0x463c92[_0x216df7>>>0x10&0xff]<<0x10|_0x463c92[_0x628328>>>0x8&0xff]<<0x8|_0x463c92[_0x3a239e&0xff])^_0x458cfa[_0x91a4d8++];_0x5a4726[_0x5a5b66]=_0x298ce4,_0x5a4726[_0x5a5b66+0x1]=_0xbe1fe,_0x5a4726[_0x5a5b66+0x2]=_0x424b24,_0x5a4726[_0x5a5b66+0x3]=_0x3e26db;},_0x4cf687(0x379)),'keySize':0x100/0x20});_0x32c959[_0x4cf687(0x341)]=_0x1f1fd4['_createHelper'](_0x24cfd9);}()),_0x4930ec[_0x2c8b93(0x341)];}));}(aes$1)),aes$1[_0x2664d7(0x2c9)];}__name(requireAes,_0x43e0c9(0x306));var aesExports=requireAes();const AES=getDefaultExportFromCjs(aesExports);var encBase64Exports=requireEncBase64();const Base64=getDefaultExportFromCjs(encBase64Exports);var encUtf8$1={'exports':{}},encUtf8=encUtf8$1[_0x43e0c9(0x2c9)],hasRequiredEncUtf8;function requireEncUtf8(){return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x238c24,_0x202d5b){(function(_0x188545,_0x36fd43){var _0x573c24=_0x5029;_0x238c24[_0x573c24(0x2c9)]=_0x36fd43(requireCore());}(encUtf8,function(_0xeac569){var _0x2906ef=_0x5029;return _0xeac569[_0x2906ef(0x316)][_0x2906ef(0x3fa)];}));}(encUtf8$1)),encUtf8$1['exports'];}__name(requireEncUtf8,'requireEncUtf8');var encUtf8Exports=requireEncUtf8();const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1[_0x43e0c9(0x2c9)],hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0x44c39a,_0x21b63a){(function(_0x569c8f,_0x5dda0f){var _0x2761d3=_0x5029;_0x44c39a[_0x2761d3(0x2c9)]=_0x5dda0f(requireCore());}(libTypedarrays,function(_0x29a69f){var _0x2f353d=_0x5029;return(function(){var _0x541b37=_0x5029;if(typeof ArrayBuffer==_0x541b37(0x3e7)){var _0x11db45=_0x29a69f,_0x225d44=_0x11db45['lib'],_0x1f3d3d=_0x225d44[_0x541b37(0x2ce)],_0x5190f6=_0x1f3d3d['init'],_0x58c89c=_0x1f3d3d['init']=function(_0x2c29ae){var _0x3928a5=_0x541b37;if(_0x2c29ae instanceof ArrayBuffer&&(_0x2c29ae=new Uint8Array(_0x2c29ae)),(_0x2c29ae instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x2c29ae instanceof Uint8ClampedArray||_0x2c29ae instanceof Int16Array||_0x2c29ae instanceof Uint16Array||_0x2c29ae instanceof Int32Array||_0x2c29ae instanceof Uint32Array||_0x2c29ae instanceof Float32Array||_0x2c29ae instanceof Float64Array)&&(_0x2c29ae=new Uint8Array(_0x2c29ae[_0x3928a5(0x2f2)],_0x2c29ae[_0x3928a5(0x39b)],_0x2c29ae[_0x3928a5(0x1d5)])),_0x2c29ae instanceof Uint8Array){for(var _0x4204a6=_0x2c29ae[_0x3928a5(0x1d5)],_0x1b0f4f=[],_0x362e63=0x0;_0x362e63<_0x4204a6;_0x362e63++)_0x1b0f4f[_0x362e63>>>0x2]|=_0x2c29ae[_0x362e63]<<0x18-_0x362e63%0x4*0x8;_0x5190f6[_0x3928a5(0x314)](this,_0x1b0f4f,_0x4204a6);}else _0x5190f6[_0x3928a5(0x2ba)](this,arguments);};_0x58c89c[_0x541b37(0x145)]=_0x1f3d3d;}}()),_0x29a69f[_0x2f353d(0x2f7)][_0x2f353d(0x2ce)];}));}(libTypedarrays$1)),libTypedarrays$1['exports'];}__name(requireLibTypedarrays,_0x43e0c9(0x1f6));var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1[_0x43e0c9(0x2c9)],hasRequiredPadNopadding;function requirePadNopadding(){var _0x524fea=_0x43e0c9;return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0x4f2cb8,_0x5d5676){(function(_0x166342,_0x13dec1,_0x2e11ca){var _0x49c977=_0x5029;_0x4f2cb8[_0x49c977(0x2c9)]=_0x13dec1(requireCore(),requireCipherCore());}(padNopadding,function(_0x459360){var _0x2eb2bb=_0x5029;return _0x459360[_0x2eb2bb(0x3d2)][_0x2eb2bb(0x322)]={'pad':__name(function(){},_0x2eb2bb(0x3d2)),'unpad':__name(function(){},_0x2eb2bb(0x164))},_0x459360[_0x2eb2bb(0x3d2)][_0x2eb2bb(0x322)];}));}(padNopadding$1)),padNopadding$1[_0x524fea(0x2c9)];}__name(requirePadNopadding,'requirePadNopadding');var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0x3d1bd3,_0x48d4e8){var _0x489e24=_0x43e0c9;const _0x116bae=_0x48d4e8-_0x3d1bd3[_0x489e24(0x233)]%_0x48d4e8,_0x36e9e6=String[_0x489e24(0x315)](_0x116bae)[_0x489e24(0x3c9)](_0x116bae);return _0x3d1bd3+_0x36e9e6;}__name(pkcs7Padding,_0x43e0c9(0xf5));function encrypt(_0x4058c3,_0x13cb7a){var _0x30de96=_0x43e0c9;const _0x18308d=WordArray['random'](0x10),_0x5010bc=pkcs7Padding(_0x4058c3,0x10),_0x39622f=AES[_0x30de96(0x353)](Utf8['parse'](_0x5010bc),Base64[_0x30de96(0x3eb)](_0x13cb7a),{'iv':_0x18308d,'padding':NoPadding});return _0x18308d[_0x30de96(0x354)](_0x39622f[_0x30de96(0x109)])[_0x30de96(0x22b)](Base64);}__name(encrypt,_0x43e0c9(0x353));function getAttachHeader(){var _0x5db43f=_0x43e0c9;const _0x2d581e=getGlobalObject()['__Key__'];if(_0x2d581e){const _0x1cae37={'time':Math['floor'](Date[_0x5db43f(0x1cb)]()/0x3e8),'domain':location[_0x5db43f(0x162)]};return encrypt(JSON['stringify'](_0x1cae37),_0x2d581e);}}__name(getAttachHeader,_0x43e0c9(0x425));var __defProp$7=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$7=Object['getOwnPropertyDescriptor'],__decorateClass$7=__name((_0x3e5969,_0x8f67f8,_0x42878e,_0xfa62d6)=>{var _0x57b2d6=_0x43e0c9;for(var _0x40d685=_0xfa62d6>0x1?void 0x0:_0xfa62d6?__getOwnPropDesc$7(_0x8f67f8,_0x42878e):_0x8f67f8,_0x1de9d6=_0x3e5969[_0x57b2d6(0x233)]-0x1,_0x4225de;_0x1de9d6>=0x0;_0x1de9d6--)(_0x4225de=_0x3e5969[_0x1de9d6])&&(_0x40d685=(_0xfa62d6?_0x4225de(_0x8f67f8,_0x42878e,_0x40d685):_0x4225de(_0x40d685))||_0x40d685);return _0xfa62d6&&_0x40d685&&__defProp$7(_0x8f67f8,_0x42878e,_0x40d685),_0x40d685;},'__decorateClass$7'),__decorateParam$7=__name((_0x76db10,_0x12f591)=>(_0x10c403,_0x327940)=>_0x12f591(_0x10c403,_0x327940,_0x76db10),_0x43e0c9(0x265)),_a20;let DomainRequestService=(_a20=class{constructor(_0x2fc1d5){var _0x2b1dc7=_0x43e0c9;this['_httpService']=_0x2fc1d5,this[_0x2b1dc7(0xf2)]();}[_0x43e0c9(0xf2)](){var _0xb9dea4=_0x43e0c9;this[_0xb9dea4(0x141)][_0xb9dea4(0x16e)]({'interceptor':__name((_0x23e4aa,_0x5c671c)=>{var _0x540cda=_0xb9dea4;const _0x472886=_0x23e4aa[_0x540cda(0x113)],_0x408b63=getAttachHeader();return _0x408b63&&_0x472886[_0x540cda(0x116)](_0x540cda(0x20e),_0x408b63),_0x5c671c(_0x23e4aa);},'interceptor')});}},__name(_a20,_0x43e0c9(0x221)),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$6=Object[_0x43e0c9(0x33e)],__decorateClass$6=__name((_0x3eb517,_0x61efc3,_0x5c3255,_0x3d85aa)=>{var _0x5b96b7=_0x43e0c9;for(var _0x3b275d=_0x3d85aa>0x1?void 0x0:_0x3d85aa?__getOwnPropDesc$6(_0x61efc3,_0x5c3255):_0x61efc3,_0x46e82b=_0x3eb517[_0x5b96b7(0x233)]-0x1,_0x1d6fc9;_0x46e82b>=0x0;_0x46e82b--)(_0x1d6fc9=_0x3eb517[_0x46e82b])&&(_0x3b275d=(_0x3d85aa?_0x1d6fc9(_0x61efc3,_0x5c3255,_0x3b275d):_0x1d6fc9(_0x3b275d))||_0x3b275d);return _0x3d85aa&&_0x3b275d&&__defProp$6(_0x61efc3,_0x5c3255,_0x3b275d),_0x3b275d;},_0x43e0c9(0x1eb)),__decorateParam$6=__name((_0x233692,_0x7e23da)=>(_0x797c27,_0x5881ae)=>_0x7e23da(_0x797c27,_0x5881ae,_0x233692),'__decorateParam$6'),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x332c08,_0x5268ba,_0x1232d8){var _0x16a77f=_0x43e0c9;super(),__publicField(this,_0x16a77f(0x362),new BehaviorSubject(null)),__publicField(this,_0x16a77f(0x338),this[_0x16a77f(0x362)]['asObservable']()),(this[_0x16a77f(0x11f)]=_0x332c08,this[_0x16a77f(0x118)]=_0x5268ba,this['_localCacheService']=_0x1232d8);}async['loadUnit'](_0x3c8d86,_0x1ad5e8,_0x4470bb){var _0x3deb49=_0x43e0c9;this[_0x3deb49(0x362)][_0x3deb49(0x2e5)]({'unitId':_0x3c8d86,'type':_0x1ad5e8,'subUnitId':_0x4470bb});let _0x47eda1=null;switch(_0x1ad5e8){case UniverType[_0x3deb49(0x202)]:{_0x47eda1=await this[_0x3deb49(0x3f4)](_0x3c8d86);break;}case UniverType[_0x3deb49(0x199)]:{_0x47eda1=await this[_0x3deb49(0x2a4)](_0x3c8d86);break;}default:{this[_0x3deb49(0x11f)][_0x3deb49(0x1c8)](_0x3deb49(0x112),_0x3deb49(0x1de));break;}}return _0x47eda1;}async[_0x43e0c9(0x3f4)](_0x3d3e36){var _0x1c3b9b=_0x43e0c9,_0x569790;let _0x4873fb=0x0;const _0x3fc2c6=await((_0x569790=this[_0x1c3b9b(0x289)])==null?void 0x0:_0x569790[_0x1c3b9b(0x268)](_0x3d3e36));return _0x3fc2c6&&(_0x3fc2c6[_0x1c3b9b(0x3f2)]||_0x3fc2c6[_0x1c3b9b(0x245)][_0x1c3b9b(0x233)]!==0x0)&&(_0x4873fb=_0x3fc2c6['rev']),_0x4873fb===0x0&&this[_0x1c3b9b(0x11f)]['debug'](_0x1c3b9b(0x112),_0x1c3b9b(0x21d)),this['_snapshotService'][_0x1c3b9b(0x419)](_0x3d3e36,_0x4873fb);}async[_0x43e0c9(0x2a4)](_0x56795e){var _0x19f2e9=_0x43e0c9,_0xcd3a31;let _0x34100a=0x0;const _0x28dea0=await((_0xcd3a31=this[_0x19f2e9(0x289)])==null?void 0x0:_0xcd3a31[_0x19f2e9(0x268)](_0x56795e));return _0x28dea0&&(_0x28dea0['awaitingChangeset']||_0x28dea0[_0x19f2e9(0x245)][_0x19f2e9(0x233)]!==0x0)&&(_0x34100a=_0x28dea0[_0x19f2e9(0x438)]),_0x34100a===0x0&&this[_0x19f2e9(0x11f)][_0x19f2e9(0x287)](_0x19f2e9(0x112),_0x19f2e9(0x21d)),this[_0x19f2e9(0x118)][_0x19f2e9(0x3bc)](_0x56795e,_0x34100a);}},__name(_a21,_0x43e0c9(0x3f8)),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$5=Object[_0x43e0c9(0x33e)],__decorateClass$5=__name((_0x546125,_0x9d2a91,_0x15347e,_0x368e43)=>{var _0x40ce9d=_0x43e0c9;for(var _0x331e40=_0x368e43>0x1?void 0x0:_0x368e43?__getOwnPropDesc$5(_0x9d2a91,_0x15347e):_0x9d2a91,_0x169e3e=_0x546125[_0x40ce9d(0x233)]-0x1,_0x2302e5;_0x169e3e>=0x0;_0x169e3e--)(_0x2302e5=_0x546125[_0x169e3e])&&(_0x331e40=(_0x368e43?_0x2302e5(_0x9d2a91,_0x15347e,_0x331e40):_0x2302e5(_0x331e40))||_0x331e40);return _0x368e43&&_0x331e40&&__defProp$5(_0x9d2a91,_0x15347e,_0x331e40),_0x331e40;},_0x43e0c9(0x3ce)),__decorateParam$5=__name((_0x283b4f,_0x1d5a00)=>(_0x373346,_0x57e6c2)=>_0x1d5a00(_0x373346,_0x57e6c2,_0x283b4f),_0x43e0c9(0x17d));const ALLOW_IMAGE_LIST=[_0x43e0c9(0x3d3),_0x43e0c9(0x3c1),_0x43e0c9(0x434),_0x43e0c9(0x15c),_0x43e0c9(0x23f)],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x43e0c9(0x28f),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY='/universer-api/stream/file/upload',EXCHANGE_SIGN_URL_SERVER_URL_KEY='EXCHANGE_SIGN_URL_SERVER_URL_KEY',DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY='/universer-api/file/{fileID}/sign-url';var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0x571a3f,_0x12a8a0,_0x5365d3){var _0xa1abbb=_0x43e0c9;__publicField(this,_0xa1abbb(0x19d),0x0),__publicField(this,'_change$',new Subject()),__publicField(this,_0xa1abbb(0x3d1),this[_0xa1abbb(0x31b)]),__publicField(this,_0xa1abbb(0x271),new Map()),(this[_0xa1abbb(0x141)]=_0x571a3f,this['_configService']=_0x12a8a0,this['_univerInstanceService']=_0x5365d3);}[_0x43e0c9(0x1e0)](_0x41d212){var _0x388361=_0x43e0c9;this[_0x388361(0x19d)]=_0x41d212,this[_0x388361(0x31b)]['next'](_0x41d212);}[_0x43e0c9(0x1f1)](_0x1682a7,_0x50f4f0){var _0xa7d264=_0x43e0c9;if(_0x50f4f0===ImageSourceType[_0xa7d264(0x288)]){const _0x54d50f=new Image();return _0x54d50f[_0xa7d264(0x1f4)]=_0x1682a7,_0x54d50f;}return this[_0xa7d264(0x271)][_0xa7d264(0x1c2)](_0x1682a7);}[_0x43e0c9(0x152)](_0x19b72b,_0x2bc5ce,_0xaf542c){var _0x5d6f60=_0x43e0c9;_0x2bc5ce===ImageSourceType[_0x5d6f60(0x288)]||_0xaf542c==null||this[_0x5d6f60(0x271)][_0x5d6f60(0x116)](_0x19b72b,_0xaf542c);}async[_0x43e0c9(0x2f1)](_0x386e7a){var _0x10aa1f=_0x43e0c9;try{const _0x12e85c=this[_0x10aa1f(0x3cb)](this[_0x10aa1f(0x360)](),''+_0x386e7a),_0x144c58=(await this[_0x10aa1f(0x141)][_0x10aa1f(0x1c2)](_0x12e85c))[_0x10aa1f(0x415)];if(_0x144c58[_0x10aa1f(0x1c8)]&&_0x144c58[_0x10aa1f(0x1c8)]['code']===ErrorCode['OK']){const _0x2b7ac4=new URL(_0x144c58[_0x10aa1f(0x24e)],this[_0x10aa1f(0x147)]())[_0x10aa1f(0x22b)]();return Promise[_0x10aa1f(0x3e1)](_0x2b7ac4);}return Promise[_0x10aa1f(0x41c)](_0x144c58[_0x10aa1f(0x1c8)]);}catch(_0x232c65){return Promise[_0x10aa1f(0x41c)](_0x232c65);}}async[_0x43e0c9(0x2d9)](_0xf3e79a){var _0x2c3da7=_0x43e0c9;let _0x4793c4='';if(!ALLOW_IMAGE_LIST['includes'](_0xf3e79a[_0x2c3da7(0x3b0)]))return this[_0x2c3da7(0x24d)](),Promise[_0x2c3da7(0x41c)](new Error(ImageUploadStatusType[_0x2c3da7(0x37a)]));if(_0xf3e79a[_0x2c3da7(0x23a)]>ALLOW_IMAGE_SIZE)return this[_0x2c3da7(0x24d)](),Promise[_0x2c3da7(0x41c)](new Error(ImageUploadStatusType[_0x2c3da7(0x174)]));try{const _0x42f744=new FormData();_0x42f744[_0x2c3da7(0x2a1)](_0x2c3da7(0x14b),_0xf3e79a);const _0x436631=this[_0x2c3da7(0x330)][_0x2c3da7(0x126)](),_0x561bc5=_0x436631==null?void 0x0:_0x436631['getUnitId']();if(!_0x561bc5)throw new Error('unitId\x20is\x20not\x20found');const _0x33b5ba=this[_0x2c3da7(0x1ec)]()+_0x2c3da7(0x34e)+_0xf3e79a[_0x2c3da7(0x23a)][_0x2c3da7(0x22b)]()+_0x2c3da7(0x1d2)+FileSource[_0x2c3da7(0x382)]+_0x2c3da7(0x1d0)+encodeURIComponent(_0x561bc5),_0x45c375=await(await fetch(_0x33b5ba,{'method':_0x2c3da7(0x12c),'body':_0x42f744}))[_0x2c3da7(0x449)]();if(typeof _0x45c375[_0x2c3da7(0x28e)]!=_0x2c3da7(0x17a))return this[_0x2c3da7(0x24d)](),Promise[_0x2c3da7(0x41c)](new Error(ImageUploadStatusType[_0x2c3da7(0x130)]));_0x4793c4=_0x45c375[_0x2c3da7(0x28e)];}catch{return this[_0x2c3da7(0x24d)](),Promise['reject'](new Error(ImageUploadStatusType[_0x2c3da7(0x130)]));}return new Promise((_0x1927e4,_0x14cea7)=>{var _0x2c0c5b=_0x2c3da7;const _0x12031a=new FileReader();_0x12031a[_0x2c0c5b(0x3fd)](_0xf3e79a),_0x12031a['onload']=_0xd51b=>{var _0x37c3ff=_0x2c0c5b,_0x1a314d;const _0xa38a17=(_0x1a314d=_0xd51b[_0x37c3ff(0x20b)])==null?void 0x0:_0x1a314d[_0x37c3ff(0xf3)];if(_0xa38a17==null){this['_decreaseWaiting'](),_0x14cea7(new Error(ImageUploadStatusType[_0x37c3ff(0x130)]));return;}const _0x11e44e=Tools[_0x37c3ff(0x436)](0x6);_0x1927e4({'imageId':_0x11e44e,'imageSourceType':ImageSourceType[_0x37c3ff(0x44b)],'source':_0x4793c4,'base64Cache':_0xa38a17,'status':ImageUploadStatusType[_0x37c3ff(0x259)]}),this[_0x37c3ff(0x24d)]();};});}[_0x43e0c9(0x1ec)](){var _0x548961=_0x43e0c9,_0xf6c05a,_0x4abe95;const _0xd7f36e=this['_configService']['getConfig'](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x40b636=this[_0x548961(0x249)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4abe95=(_0xf6c05a=_0x40b636==null?void 0x0:_0x40b636['uploadFileServerUrl'])!=null?_0xf6c05a:_0xd7f36e)!=null?_0x4abe95:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x43e0c9(0x360)](){var _0xe21afe=_0x43e0c9,_0x58cb18,_0x4e78cb;const _0x23fcd7=this[_0xe21afe(0x249)][_0xe21afe(0x15f)](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0x2e38a4=this[_0xe21afe(0x249)][_0xe21afe(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4e78cb=(_0x58cb18=_0x2e38a4==null?void 0x0:_0x2e38a4[_0xe21afe(0x1b3)])!=null?_0x58cb18:_0x23fcd7)!=null?_0x4e78cb:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x43e0c9(0x147)](){var _0x3e3445=_0x43e0c9,_0x49005c;const _0x610fe4=this[_0x3e3445(0x249)][_0x3e3445(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x49005c=_0x610fe4==null?void 0x0:_0x610fe4[_0x3e3445(0x31d)])!=null?_0x49005c:location[_0x3e3445(0x2e0)];}['_replaceFileID'](_0xe2ed6a,_0x4ccb55){var _0x558e33=_0x43e0c9;return _0xe2ed6a[_0x558e33(0x3d6)](_0x558e33(0x211),_0x4ccb55);}['_decreaseWaiting'](){var _0x159c64=_0x43e0c9;this[_0x159c64(0x19d)]-=0x1,this[_0x159c64(0x31b)][_0x159c64(0x2e5)](this[_0x159c64(0x19d)]);}},__name(_a22,_0x43e0c9(0x148)),_a22);CollaborationImageIoService=__decorateClass$5([__decorateParam$5(0x0,Inject(HTTPService)),__decorateParam$5(0x1,IConfigService),__decorateParam$5(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);var __defProp$4=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$4=Object[_0x43e0c9(0x33e)],__decorateClass$4=__name((_0x99b128,_0x7e0327,_0x21902f,_0x2508ea)=>{for(var _0x1bb1d4=_0x2508ea>0x1?void 0x0:_0x2508ea?__getOwnPropDesc$4(_0x7e0327,_0x21902f):_0x7e0327,_0x1540cc=_0x99b128['length']-0x1,_0x45b103;_0x1540cc>=0x0;_0x1540cc--)(_0x45b103=_0x99b128[_0x1540cc])&&(_0x1bb1d4=(_0x2508ea?_0x45b103(_0x7e0327,_0x21902f,_0x1bb1d4):_0x45b103(_0x1bb1d4))||_0x1bb1d4);return _0x2508ea&&_0x1bb1d4&&__defProp$4(_0x7e0327,_0x21902f,_0x1bb1d4),_0x1bb1d4;},_0x43e0c9(0x143)),__decorateParam$4=__name((_0x7aea30,_0x2e4f70)=>(_0x559073,_0x164b77)=>_0x2e4f70(_0x559073,_0x164b77,_0x7aea30),_0x43e0c9(0xf9));const DEFAULT_AUTHZ_URL_KEY=_0x43e0c9(0x2d4);var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x67ad2f,_0x445d13){var _0x405f22=_0x43e0c9;this[_0x405f22(0x249)]=_0x67ad2f,this[_0x405f22(0x1b7)]=_0x445d13;}['_getAPIPrefixPath'](){var _0x44df39=_0x43e0c9,_0x273587,_0x483c1a;const _0x26ffc6=this[_0x44df39(0x249)][_0x44df39(0x15f)](AUTHZ_URL_KEY),_0x1a9092=this[_0x44df39(0x249)][_0x44df39(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x483c1a=(_0x273587=_0x1a9092==null?void 0x0:_0x1a9092[_0x44df39(0x3af)])!=null?_0x273587:_0x26ffc6)!=null?_0x483c1a:DEFAULT_AUTHZ_URL_KEY;}async['list'](_0x1f63e5){var _0x565198=_0x43e0c9;const _0x189d3b=this[_0x565198(0x323)]()+_0x565198(0x2ad);return{'list':[{'title':_0x565198(0x26e),'mentions':(await this[_0x565198(0x1b7)][_0x565198(0x1c2)](_0x189d3b,{'params':{'objectID':_0x1f63e5[_0x565198(0x38e)],'unitID':_0x1f63e5[_0x565198(0x38e)]}}))['body'][_0x565198(0x2eb)][_0x565198(0x12e)](_0x246be2=>({'objectId':_0x246be2['id'],'name':_0x246be2[_0x565198(0x40e)][_0x565198(0x3e4)],'metadata':{'icon':_0x246be2[_0x565198(0x40e)][_0x565198(0x2ae)]},'label':_0x246be2[_0x565198(0x40e)]['name'],'objectType':MentionType[_0x565198(0x150)]})),'metadata':{},'type':MentionType[_0x565198(0x150)]}]};}},__name(_a23,_0x43e0c9(0x12f)),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$3=Object['getOwnPropertyDescriptor'],__decorateClass$3=__name((_0x45bba7,_0x46f71a,_0x5ab5e4,_0x2be8a0)=>{var _0x52d173=_0x43e0c9;for(var _0x55ed8c=_0x2be8a0>0x1?void 0x0:_0x2be8a0?__getOwnPropDesc$3(_0x46f71a,_0x5ab5e4):_0x46f71a,_0x4f24aa=_0x45bba7[_0x52d173(0x233)]-0x1,_0x528809;_0x4f24aa>=0x0;_0x4f24aa--)(_0x528809=_0x45bba7[_0x4f24aa])&&(_0x55ed8c=(_0x2be8a0?_0x528809(_0x46f71a,_0x5ab5e4,_0x55ed8c):_0x528809(_0x55ed8c))||_0x55ed8c);return _0x2be8a0&&_0x55ed8c&&__defProp$3(_0x46f71a,_0x5ab5e4,_0x55ed8c),_0x55ed8c;},_0x43e0c9(0x215)),__decorateParam$3=__name((_0x9e7dc,_0x23ca54)=>(_0x538319,_0x1ecc6b)=>_0x23ca54(_0x538319,_0x1ecc6b,_0x9e7dc),_0x43e0c9(0x210)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0x5b876c,_0x1c3350,_0x2ae594,_0x3c3e6d,_0x39f3f9,_0x3cea38,_0x738784){var _0x8a2650=_0x43e0c9;super(),this[_0x8a2650(0x403)]=_0x5b876c,this['_univerInstanceService']=_0x1c3350,this['_permissionService']=_0x2ae594,this[_0x8a2650(0x3aa)]=_0x3c3e6d,this['_collaborationUIEventService']=_0x39f3f9,this[_0x8a2650(0x389)]=_0x3cea38,this['_undoRedoService']=_0x738784,this[_0x8a2650(0x3b8)](),this[_0x8a2650(0x216)]();}[_0x43e0c9(0x216)](){var _0x39734a=_0x43e0c9;const _0xaf9142=__name(async _0x271b32=>{var _0x33e343=_0x5029;(await this[_0x33e343(0x3aa)][_0x33e343(0x32d)](_0x271b32))['event$']['pipe'](filter(_0x1c3b9a=>_0x1c3b9a[_0x33e343(0x25d)]===CollaborationEvent['SHOULD_CLOSE_CONN']),_0x3e796d(this[_0x33e343(0x34a)]))[_0x33e343(0x352)](_0x179635=>{var _0x25219d=_0x33e343;const _0x35169a=_0x179635,{reason:_0x24fa33}=_0x35169a[_0x25219d(0x14c)];this['_collaborationUIEventService'][_0x25219d(0x43a)]({'id':CollaborationUIEventId['CLOSE_ROOM'],'data':_0x24fa33}),this['_permissionService'][_0x25219d(0x10b)](new WorkbookEditablePermission(_0x271b32)['id'],!0x1),this[_0x25219d(0x3aa)][_0x25219d(0x41d)](_0x271b32);});},_0x39734a(0x3cd));merge(this[_0x39734a(0x330)][_0x39734a(0x430)](UniverInstanceType[_0x39734a(0x202)]),this[_0x39734a(0x330)][_0x39734a(0x430)](UniverInstanceType[_0x39734a(0x199)]))[_0x39734a(0x1f0)](map(_0xb1c170=>_0xb1c170['getUnitId']()),filter(_0x2c3c90=>!isInternalEditorID(_0x2c3c90)),_0x3e796d(this[_0x39734a(0x34a)]))[_0x39734a(0x352)](_0x151c23=>{_0xaf9142(_0x151c23);});}[_0x43e0c9(0x3b8)](){var _0x5a8d2f=_0x43e0c9;const _0x211b0a=__name(async _0x1e8ccf=>{var _0x48ac6c=_0x5029;const _0x2e106e=await this[_0x48ac6c(0x3aa)]['requireSession'](_0x1e8ccf),_0xa42bfc=this[_0x48ac6c(0x403)][_0x48ac6c(0x1c2)](SheetPermissionInitController);_0x2e106e[_0x48ac6c(0x14f)]['pipe'](filter(_0x51cf1f=>_0x51cf1f[_0x48ac6c(0x25d)]===CollaborationEvent[_0x48ac6c(0x348)]),_0x3e796d(this['dispose$']))[_0x48ac6c(0x352)](_0x29dcd3=>{var _0x4acc32=_0x48ac6c;const _0x554c71=_0x29dcd3,{objectId:_0x1693bf}=_0x554c71[_0x4acc32(0x14c)];_0x1693bf===_0x1e8ccf?_0xa42bfc[_0x4acc32(0x32c)](_0x1e8ccf):_0xa42bfc[_0x4acc32(0x2aa)](_0x1e8ccf,_0x1693bf);});},_0x5a8d2f(0x42c));merge(this['_univerInstanceService'][_0x5a8d2f(0x430)](UniverInstanceType[_0x5a8d2f(0x202)]),this['_univerInstanceService'][_0x5a8d2f(0x430)](UniverInstanceType['UNIVER_DOC']))[_0x5a8d2f(0x1f0)](map(_0x3a371b=>_0x3a371b[_0x5a8d2f(0x2cb)]()),filter(_0x431040=>!isInternalEditorID(_0x431040)),_0x3e796d(this[_0x5a8d2f(0x34a)]))[_0x5a8d2f(0x352)](_0x380d46=>{_0x211b0a(_0x380d46);});}},__name(_a24,'PermissionService'),_a24);PermissionService=__decorateClass$3([__decorateParam$3(0x0,Inject(Injector)),__decorateParam$3(0x1,IUniverInstanceService),__decorateParam$3(0x2,IPermissionService),__decorateParam$3(0x3,Inject(CollaborationSessionService)),__decorateParam$3(0x4,Inject(CollaborationUIEventService)),__decorateParam$3(0x5,IAuthzIoService),__decorateParam$3(0x6,IUndoRedoService)],PermissionService);var __defProp$2=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$2=Object[_0x43e0c9(0x33e)],__decorateClass$2=__name((_0x53fa13,_0x15275c,_0x151302,_0x2c7192)=>{var _0x99f532=_0x43e0c9;for(var _0x546740=_0x2c7192>0x1?void 0x0:_0x2c7192?__getOwnPropDesc$2(_0x15275c,_0x151302):_0x15275c,_0x24a9b0=_0x53fa13[_0x99f532(0x233)]-0x1,_0x2f50f6;_0x24a9b0>=0x0;_0x24a9b0--)(_0x2f50f6=_0x53fa13[_0x24a9b0])&&(_0x546740=(_0x2c7192?_0x2f50f6(_0x15275c,_0x151302,_0x546740):_0x2f50f6(_0x546740))||_0x546740);return _0x2c7192&&_0x546740&&__defProp$2(_0x15275c,_0x151302,_0x546740),_0x546740;},_0x43e0c9(0x42e)),__decorateParam$2=__name((_0x24c690,_0x1356e7)=>(_0xc699f4,_0x4933d5)=>_0x1356e7(_0xc699f4,_0x4933d5,_0x24c690),'__decorateParam$2'),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x1ce9e8,_0x466126){var _0x2f5020=_0x43e0c9;this[_0x2f5020(0x249)]=_0x1ce9e8,this[_0x2f5020(0x141)]=_0x466126;}async['getUnitOnRev'](_0x3bfc35,_0x16b434){var _0x3ffcf0=_0x43e0c9,_0x18de93;const {unitID:_0x5964c3,type:_0x176322,revision:revision=0x0}=_0x16b434,_0x1038c6=this[_0x3ffcf0(0x347)]()+'/'+_0x176322+_0x3ffcf0(0x40f)+_0x5964c3+_0x3ffcf0(0x3f5)+revision,_0x484815=(await this[_0x3ffcf0(0x141)]['get'](_0x1038c6))['body'],_0x6c44ab=(_0x18de93=_0x484815[_0x3ffcf0(0x29b)])==null?void 0x0:_0x18de93['workbook'];if(_0x6c44ab){const _0x463b80=_0x6c44ab==null?void 0x0:_0x6c44ab[_0x3ffcf0(0x3a2)],_0x489335=textEncoder['encode'](b64DecodeUnicode(_0x463b80));_0x6c44ab[_0x3ffcf0(0x3a2)]=_0x489335,Object['entries'](_0x6c44ab[_0x3ffcf0(0x20a)])['forEach'](([,_0x30405d])=>{var _0x5e3438=_0x3ffcf0;const _0x23cee0=_0x30405d[_0x5e3438(0x3a2)],_0xae9a56=textEncoder[_0x5e3438(0x103)](b64DecodeUnicode(_0x23cee0));_0x30405d[_0x5e3438(0x3a2)]=_0xae9a56;});}return _0x484815;}async[_0x43e0c9(0x2d0)](_0xab0b6,_0x2b9d74){var _0x44f0eb=_0x43e0c9;const {unitID:_0x3a30ec,type:_0x55f3e6,blockID:_0x3c8d83}=_0x2b9d74,_0x38dc4c=this[_0x44f0eb(0x264)]()+'/'+_0x55f3e6+_0x44f0eb(0x40f)+_0x3a30ec+'/block/'+_0x3c8d83;return(await this['_httpService'][_0x44f0eb(0x1c2)](_0x38dc4c))['body'];}async[_0x43e0c9(0x128)](_0x3d8917,_0x58fb5d){var _0x477141=_0x43e0c9;const {unitID:_0x153b96,type:_0x39ec66,blockID:_0x2bccfb}=_0x58fb5d,_0x23b4e2=this['_getAPIPrefix']()+'/block/'+_0x39ec66+_0x477141(0x40f)+_0x153b96+_0x477141(0x2e8)+_0x2bccfb;return(await this[_0x477141(0x141)][_0x477141(0x1c2)](_0x23b4e2))['body'];}async[_0x43e0c9(0xfc)](_0x73763c,_0x38e023){var _0xcaee5d=_0x43e0c9;const {unitID:_0x274050,type:_0x45c531,from:_0x39d17d,to:_0xc27716}=_0x38e023,_0x8d7954=this[_0xcaee5d(0x264)]()+'/'+_0x45c531+_0xcaee5d(0x40f)+_0x274050+'/fetchmissing?from='+_0x39d17d+'&to='+_0xc27716;return(await this[_0xcaee5d(0x141)]['get'](_0x8d7954))['body'];}[_0x43e0c9(0x347)](){var _0x598177=_0x43e0c9,_0x420cc8;return(_0x420cc8=this[_0x598177(0x249)][_0x598177(0x15f)](SNAPSHOT_URL_KEY))!=null?_0x420cc8:this[_0x598177(0x264)]();}[_0x43e0c9(0x264)](){var _0xabc0a1=_0x43e0c9,_0x2ac7eb,_0x1c03c5;const _0x227470=this['_configService'][_0xabc0a1(0x15f)](SNAPSHOT_SERVER_URL_KEY),_0xc73edc=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1c03c5=(_0x2ac7eb=_0xc73edc==null?void 0x0:_0xc73edc['snapshotServerUrl'])!=null?_0x2ac7eb:_0x227470)!=null?_0x1c03c5:DEFAULT_SNAPSHOT_SERVER_URL;}async['getResourcesRequest'](_0xaf6c95,_0x56cbbd){var _0x3e9aff=_0x43e0c9;const _0x40cbd5=_0x3e9aff(0x3e2)+_0x56cbbd[_0x3e9aff(0x3b0)]+_0x3e9aff(0x40f)+_0x56cbbd['unitID']+_0x3e9aff(0x304);return(await this[_0x3e9aff(0x141)]['get'](_0x40cbd5,{'params':{'resourceId':JSON[_0x3e9aff(0xff)](_0x56cbbd[_0x3e9aff(0x167)])}}))[_0x3e9aff(0x415)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x43e0c9(0x44a)](){var _0x46831c=_0x43e0c9;throw new Error(_0x46831c(0x448));}[_0x43e0c9(0x38f)](){var _0x372632=_0x43e0c9;throw new Error(_0x372632(0x448));}[_0x43e0c9(0x3c8)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){var _0x18fb57=_0x43e0c9;throw new Error(_0x18fb57(0x448));}},__name(_a25,'SnapshotServerOverHTTPService'),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$1=Object[_0x43e0c9(0x33e)],__decorateClass$1=__name((_0x3faac7,_0x2f159b,_0x5dbac3,_0x4b95af)=>{var _0x394c6d=_0x43e0c9;for(var _0x1ddf9a=_0x4b95af>0x1?void 0x0:_0x4b95af?__getOwnPropDesc$1(_0x2f159b,_0x5dbac3):_0x2f159b,_0x23b25a=_0x3faac7[_0x394c6d(0x233)]-0x1,_0x179765;_0x23b25a>=0x0;_0x23b25a--)(_0x179765=_0x3faac7[_0x23b25a])&&(_0x1ddf9a=(_0x4b95af?_0x179765(_0x2f159b,_0x5dbac3,_0x1ddf9a):_0x179765(_0x1ddf9a))||_0x1ddf9a);return _0x4b95af&&_0x1ddf9a&&__defProp$1(_0x2f159b,_0x5dbac3,_0x1ddf9a),_0x1ddf9a;},_0x43e0c9(0x2ac)),__decorateParam$1=__name((_0x448f6c,_0x27f442)=>(_0x4d5f56,_0x4f2e27)=>_0x27f442(_0x4d5f56,_0x4f2e27,_0x448f6c),_0x43e0c9(0x43b)),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x3f7de7,_0x262490,_0x51fdab,_0x52290c,_0x80b5f1){var _0x5ed166=_0x43e0c9;super(_0x3f7de7,_0x262490,_0x51fdab),this[_0x5ed166(0x345)]=_0x52290c,this['_logService']=_0x80b5f1;}[_0x43e0c9(0x206)](_0x1efed1,_0x5e9ff3){var _0x5f5a12=_0x43e0c9;const _0x54d6fe=this['_getUndoStack'](_0x1efed1);if(_0x54d6fe)try{const _0x14aff9=this['_transformStack'](_0x54d6fe,_0x5e9ff3);this[_0x5f5a12(0x1a2)](_0x1efed1,_0x14aff9);}catch(_0x28261a){this[_0x5f5a12(0x11f)][_0x5f5a12(0x1c8)]('[CollaborationUndoRedoService]',_0x28261a),this[_0x5f5a12(0x219)](_0x1efed1);}const _0x560e6e=this[_0x5f5a12(0x2e6)](_0x1efed1);if(_0x560e6e)try{const _0x1a6362=this[_0x5f5a12(0x3b9)](_0x560e6e,_0x5e9ff3);this[_0x5f5a12(0x193)](_0x1efed1,_0x1a6362);}catch(_0x2a83af){this[_0x5f5a12(0x11f)]['error'](_0x2a83af),this[_0x5f5a12(0x437)](_0x1efed1);}}[_0x43e0c9(0x219)](_0x4e31b5){var _0x2ddb55=_0x43e0c9;const _0x2d350f=this[_0x2ddb55(0x34f)](_0x4e31b5);_0x2d350f&&(_0x2d350f['length']=0x0,this['_updateStatus']());}[_0x43e0c9(0x437)](_0x5e2316){var _0x20008e=_0x43e0c9;const _0x3ab21c=this[_0x20008e(0x2e6)](_0x5e2316);_0x3ab21c&&(_0x3ab21c['length']=0x0,this[_0x20008e(0x239)]());}[_0x43e0c9(0x1a2)](_0x1a75ef,_0x5322f3){this['_undoStacks']['set'](_0x1a75ef,_0x5322f3),this['_updateStatus']();}[_0x43e0c9(0x193)](_0x4e01c9,_0x5f57b8){var _0x2eda07=_0x43e0c9;this[_0x2eda07(0x129)][_0x2eda07(0x116)](_0x4e01c9,_0x5f57b8),this[_0x2eda07(0x239)]();}[_0x43e0c9(0x3b9)](_0x36fa99,_0x1b9b8f){var _0x1c7587=_0x43e0c9;const _0x356296=[];let _0x52fd09=_0x1b9b8f,_0x117dc7=_0x1b9b8f;for(let _0x52525d=_0x36fa99[_0x1c7587(0x233)]-0x1;_0x52525d>=0x0;_0x52525d--){const {unitID:_0x45c863,undoMutations:_0x2a5413,redoMutations:_0x1305af}=_0x36fa99[_0x52525d],_0xe5d665=this[_0x1c7587(0x345)][_0x1c7587(0x346)](_0x52fd09,_0x2a5413),_0x4d0a44=this[_0x1c7587(0x345)]['transformMutationsWithChangeset'](_0x117dc7,_0x1305af);if(isTransformMutationsWithChangesetFailure(_0xe5d665)||isTransformMutationsWithChangesetFailure(_0x4d0a44)){this[_0x1c7587(0x11f)][_0x1c7587(0x1c8)](_0x1c7587(0x2d7),_0x1c7587(0x318),_0xe5d665,_0x4d0a44);break;}_0x52fd09=_0xe5d665[_0x1c7587(0x1ef)],_0x117dc7=_0x4d0a44[_0x1c7587(0x1ef)],_0x356296[_0x1c7587(0x119)]({'unitID':_0x45c863,'undoMutations':_0xe5d665[_0x1c7587(0xfa)],'redoMutations':_0x4d0a44[_0x1c7587(0xfa)]});}return _0x356296[_0x1c7587(0x3c7)]();}},__name(_a26,'CollaborativeUndoRedoService'),_a26);CollaborativeUndoRedoService=__decorateClass$1([__decorateParam$1(0x0,IUniverInstanceService),__decorateParam$1(0x1,ICommandService),__decorateParam$1(0x2,IContextService),__decorateParam$1(0x3,ITransformService),__decorateParam$1(0x4,ILogService)],CollaborativeUndoRedoService);var __defProp2=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc=Object[_0x43e0c9(0x33e)],__defNormalProp2=__name((_0x13b1c2,_0x21e6de,_0x5e3369)=>_0x21e6de in _0x13b1c2?__defProp2(_0x13b1c2,_0x21e6de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e3369}):_0x13b1c2[_0x21e6de]=_0x5e3369,_0x43e0c9(0x3e3)),__decorateClass=__name((_0x4efefe,_0x3884b8,_0x50c52e,_0x3653ee)=>{for(var _0x52240a=_0x3653ee>0x1?void 0x0:_0x3653ee?__getOwnPropDesc(_0x3884b8,_0x50c52e):_0x3884b8,_0x128efc=_0x4efefe['length']-0x1,_0xc1974a;_0x128efc>=0x0;_0x128efc--)(_0xc1974a=_0x4efefe[_0x128efc])&&(_0x52240a=(_0x3653ee?_0xc1974a(_0x3884b8,_0x50c52e,_0x52240a):_0xc1974a(_0x52240a))||_0x52240a);return _0x3653ee&&_0x52240a&&__defProp2(_0x3884b8,_0x50c52e,_0x52240a),_0x52240a;},_0x43e0c9(0x18b)),__decorateParam=__name((_0x5dc78d,_0xbb80bf)=>(_0x467ea9,_0x3ec54e)=>_0xbb80bf(_0x467ea9,_0x3ec54e,_0x5dc78d),_0x43e0c9(0x278)),__publicField2=__name((_0x764111,_0x5b4e2a,_0x45bedb)=>__defNormalProp2(_0x764111,_0x5b4e2a+'',_0x45bedb),_0x43e0c9(0x311));const PLUGIN_NAME='UNIVER_COLLABORATION_CLIENT_PLUGIN';var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0x235843=defaultPluginConfig,_0x5e3b80,_0x52364a,_0x111de5){var _0x9208f7=_0x43e0c9;super(),this['_config']=_0x235843,this[_0x9208f7(0x11f)]=_0x5e3b80,this['_injector']=_0x52364a,this[_0x9208f7(0x249)]=_0x111de5;const {..._0x3b59ff}=_0x523ccd({},defaultPluginConfig,this[_0x9208f7(0x139)]);this[_0x9208f7(0x249)][_0x9208f7(0x366)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x3b59ff);}[_0x43e0c9(0x368)](){var _0x244b05=_0x43e0c9;this[_0x244b05(0x40c)](),this[_0x244b05(0x36f)]();}[_0x43e0c9(0x40c)](){var _0x4d39e6=_0x43e0c9,_0x5c24ca,_0x54419b,_0x211bb9,_0x39270b;this['_injector'][_0x4d39e6(0x3ae)](IUndoRedoService)&&this['_logService'][_0x4d39e6(0x1c8)](_0x4d39e6(0x224),_0x4d39e6(0x1f8));const _0x187877=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0x54419b=(_0x5c24ca=this[_0x4d39e6(0x139)])==null?void 0x0:_0x5c24ca[_0x4d39e6(0x435)])!=null?_0x54419b:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x211bb9=this[_0x4d39e6(0x139)])==null?void 0x0:_0x211bb9[_0x4d39e6(0x238)]);if(!((_0x39270b=this[_0x4d39e6(0x139)])!=null&&_0x39270b['enableSingleActiveInstanceLock'])){const _0x58b8e2=_0x187877[_0x4d39e6(0x20f)](([_0x211462])=>_0x211462===ISingleActiveUnitService);_0x58b8e2!==-0x1&&_0x187877[_0x4d39e6(0x414)](_0x58b8e2,0x1);}registerDependencies(this[_0x4d39e6(0x403)],_0x187877);}[_0x43e0c9(0x36f)](){var _0x4c3c16=_0x43e0c9,_0x33bc21,_0x5a3b34,_0x526c89;this[_0x4c3c16(0x403)][_0x4c3c16(0x1c2)](HTTPService)[_0x4c3c16(0x16e)]({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0x33bc21=this['_config'])!=null&&_0x33bc21[_0x4c3c16(0x42a)]||(_0x5a3b34=this['_injector']['get'](ILocalCacheService,Quantity[_0x4c3c16(0x204)]))==null||_0x5a3b34['disableLocalCache'](),(_0x526c89=this['_config'])!=null&&_0x526c89[_0x4c3c16(0x208)]&&touchDependencies(this[_0x4c3c16(0x403)],[[AuthServerService]]),touchDependencies(this[_0x4c3c16(0x403)],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,'UniverCollaborationClientPlugin'),_a27);__publicField2(UniverCollaborationClientPlugin,_0x43e0c9(0x2ab),PLUGIN_NAME),UniverCollaborationClientPlugin=__decorateClass([DependentOn(UniverCollaborationPlugin,UniverSheetsPlugin,UniverNetworkPlugin),__decorateParam(0x1,ILogService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientPlugin);export{AUTHZ_URL_KEY,AuthzIoHttpService,AwaitingState,AwaitingWithPendingState,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,COLLAB_SUBMIT_CHANGESET_URL_KEY,COLLAB_WEB_SOCKET_URL_KEY,CollaborationController,CollaborationEntity,CollaborationImageIoService,CollaborationSession,CollaborationSessionService,CollaborationSocketService,CollaborationStatus,CollaborationUIEventId,CollaborationUIEventService,CollaborativeUndoRedoService,CommentService,ConflictState,DEFAULT_COLLAB_WEB_SOCKET_URL,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,DataLoaderService,DocCollaborationEntity,FetchingMissState,HEARTBEAT_INTERVAL_KEY,HEARTBEAT_TIMEOUT_KEY,ICollaborationSocketService,ILocalCacheService,INetworkConditionService,ISingleActiveUnitService,LOCAL_CACHE_INTERVAL,LOCAL_CACHE_INTERVAL_KEY,LOGIN_URL_KEY,MemberService,MentionIoHttpService,OfflineState,PendingState,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,RETRY_CONNECTING_MAX_COUNT_KEY,SEND_CHANGESET_TIMEOUT_KEY,SNAPSHOT_SERVER_URL_KEY,SNAPSHOT_URL_KEY,SessionStatus,SheetCollaborationEntity,SheetTransformSelectionsService,SnapshotServerOverHTTPService,SyncedState,UnitStatus,UniverCollaborationClientPlugin,deserializeToCombResponse,getLocalCacheKey,serializeCombRequest};
|
1
|
+
var _0x5deefc=_0x450a;(function(_0x41e823,_0x44d497){var _0x42fa58=_0x450a,_0x1700c9=_0x41e823();while(!![]){try{var _0x59490c=parseInt(_0x42fa58(0x2f5))/0x1*(parseInt(_0x42fa58(0x345))/0x2)+parseInt(_0x42fa58(0x34d))/0x3+parseInt(_0x42fa58(0x46c))/0x4*(-parseInt(_0x42fa58(0x222))/0x5)+-parseInt(_0x42fa58(0x225))/0x6+parseInt(_0x42fa58(0x3fd))/0x7*(-parseInt(_0x42fa58(0x2e8))/0x8)+parseInt(_0x42fa58(0x244))/0x9+parseInt(_0x42fa58(0x24e))/0xa;if(_0x59490c===_0x44d497)break;else _0x1700c9['push'](_0x1700c9['shift']());}catch(_0x598f7f){_0x1700c9['push'](_0x1700c9['shift']());}}}(_0x1b9e,0xc682b));var __defProp=Object[_0x5deefc(0x4ad)],__defNormalProp=(_0x365794,_0x3e4590,_0x1a78c1)=>_0x3e4590 in _0x365794?__defProp(_0x365794,_0x3e4590,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a78c1}):_0x365794[_0x3e4590]=_0x1a78c1,__name=(_0x528aab,_0x30d6d1)=>__defProp(_0x528aab,_0x5deefc(0x32e),{'value':_0x30d6d1,'configurable':!0x0}),__publicField=(_0x1d48bf,_0x4f5825,_0x3dbcfc)=>__defNormalProp(_0x1d48bf,typeof _0x4f5825!='symbol'?_0x4f5825+'':_0x4f5825,_0x3dbcfc);import{createIdentifier,Inject,Injector,Disposable,DisposableCollection,toDisposable,IConfigService,ILogService,UserManagerService,UniverInstanceType,IUniverInstanceService,LocaleService,Optional,RxDisposable,Tools,Rectangle,ICommandService,JSONX,CommandType,IPermissionService,IUndoRedoService,sequenceExecute,Workbook,MentionType,IAuthzIoService,isInternalEditorID,LocalUndoRedoService,IContextService,DependentOn,Plugin,merge as _0x254d2d,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x21435b,map as _0x228a63,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x160a42}from'rxjs/operators';import{HTTPService,ISocketService,MergeInterceptorFactory,HTTPRequest,UniverNetworkPlugin,ThresholdInterceptorFactory}from'@univerjs/network';import{CollaborationEvent,parseChangesetToProtocol,ISnapshotServerService,isTransformMutationsWithChangesetSuccess,ITransformService,mapDocumentTypeToUniverType,RevisionService,isTransformChangesetsSuccess,CompressMutationService,parseProtocolChangeset,SnapshotService,textEncoder,b64DecodeUnicode,isTransformMutationsWithChangesetFailure,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';import{ITelemetryService}from'@univerjs/telemetry';import{RichTextEditingMutation}from'@univerjs/docs';import{SheetsSelectionsService,SetSelectionsOperation,InsertSheetMutation,EmptyMutation,WorkbookEditablePermission,SheetPermissionInitController,UniverSheetsPlugin}from'@univerjs/sheets';import{ImageSourceType,ImageUploadStatusType,IImageIoService}from'@univerjs/drawing';import{getGlobalObject}from'@univerjs-pro/license';const SNAPSHOT_SERVER_URL_KEY='SNAPSHOT_SERVER_URL_KEY',DEFAULT_SNAPSHOT_SERVER_URL='/universer-api/snapshot',SNAPSHOT_URL_KEY=_0x5deefc(0x20c),SEND_CHANGESET_TIMEOUT_KEY='SEND_CHANGESET_TIMEOUT',DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY=_0x5deefc(0x462),DEFAULT_COLLAB_WEB_SOCKET_URL='ws://127.0.0.1:8000/universer-api/comb/connect',DEFAULT_WS_SESSION_TICKET_URL='/universer-api/user/session-ticket',HEARTBEAT_INTERVAL_KEY='HEARTBEAT_INTERVAL',DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY=_0x5deefc(0x31d),DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY=_0x5deefc(0x230),DEFAULT_RETRY_CONNECTING_MAX_COUNT=0x3,LOCAL_CACHE_INTERVAL_KEY=_0x5deefc(0x3a9),LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY=_0x5deefc(0x448),DEFAULT_COLLAB_SUBMIT_CHANGESET_URL=_0x5deefc(0x355),LOGIN_URL_KEY='LOGIN_URL_KEY',DEFAULT_LOGIN_URL=_0x5deefc(0x1da),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY=_0x5deefc(0x481),DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT=_0x5deefc(0x442);var ErrorCode=(_0x4be594=>(_0x4be594[_0x4be594[_0x5deefc(0x2d8)]=0x0]='UNDEFINED',_0x4be594[_0x4be594['OK']=0x1]='OK',_0x4be594[_0x4be594[_0x5deefc(0x3ee)]=0x2]=_0x5deefc(0x3ee),_0x4be594[_0x4be594[_0x5deefc(0x33b)]=0x3]=_0x5deefc(0x33b),_0x4be594[_0x4be594['NOT_FOUND']=0x4]=_0x5deefc(0x48f),_0x4be594[_0x4be594[_0x5deefc(0x2e0)]=0x5]='UNAUTHENTICATED',_0x4be594[_0x4be594[_0x5deefc(0x4a7)]=0x6]=_0x5deefc(0x4a7),_0x4be594[_0x4be594[_0x5deefc(0x1f7)]=0x7]='INVALID_ARGUMENT',_0x4be594[_0x4be594['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x4be594[_0x4be594[_0x5deefc(0x2d6)]=0x9]=_0x5deefc(0x2d6),_0x4be594[_0x4be594[_0x5deefc(0x32f)]=0x1389]=_0x5deefc(0x32f),_0x4be594[_0x4be594['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x5deefc(0x228),_0x4be594[_0x4be594[_0x5deefc(0x4ca)]=0x1772]=_0x5deefc(0x4ca),_0x4be594[_0x4be594[_0x5deefc(0x4c2)]=0x1773]=_0x5deefc(0x4c2),_0x4be594[_0x4be594['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x4be594[_0x4be594[_0x5deefc(0x3df)]=0x1b5a]=_0x5deefc(0x3df),_0x4be594[_0x4be594[_0x5deefc(0x238)]=0x1b5b]=_0x5deefc(0x238),_0x4be594[_0x4be594[_0x5deefc(0x383)]=0x1b5c]=_0x5deefc(0x383),_0x4be594[_0x4be594[_0x5deefc(0x3e9)]=0x1b5d]=_0x5deefc(0x3e9),_0x4be594[_0x4be594[_0x5deefc(0x33c)]=0x1f41]=_0x5deefc(0x33c),_0x4be594[_0x4be594['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5deefc(0x389),_0x4be594[_0x4be594[_0x5deefc(0x29e)]=0x232a]=_0x5deefc(0x29e),_0x4be594[_0x4be594[_0x5deefc(0x310)]=0x232b]=_0x5deefc(0x310),_0x4be594[_0x4be594[_0x5deefc(0x493)]=0x232c]=_0x5deefc(0x493),_0x4be594[_0x4be594['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x4be594[_0x4be594[_0x5deefc(0x346)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4be594[_0x4be594[_0x5deefc(0x257)]=0x2712]=_0x5deefc(0x257),_0x4be594[_0x4be594[_0x5deefc(0x2e5)]=0x2713]=_0x5deefc(0x2e5),_0x4be594[_0x4be594[_0x5deefc(0x20f)]=0x2714]=_0x5deefc(0x20f),_0x4be594[_0x4be594['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x5deefc(0x28e),_0x4be594[_0x4be594['UNRECOGNIZED']=-0x1]=_0x5deefc(0x3ed),_0x4be594))(ErrorCode||{}),UniverType=(_0x2019ac=>(_0x2019ac[_0x2019ac[_0x5deefc(0x497)]=0x0]='UNIVER_UNKNOWN',_0x2019ac[_0x2019ac['UNIVER_DOC']=0x1]=_0x5deefc(0x385),_0x2019ac[_0x2019ac[_0x5deefc(0x4a9)]=0x2]=_0x5deefc(0x4a9),_0x2019ac[_0x2019ac[_0x5deefc(0x455)]=0x3]=_0x5deefc(0x455),_0x2019ac[_0x2019ac[_0x5deefc(0x1b2)]=0x4]='UNIVER_PROJECT',_0x2019ac[_0x2019ac[_0x5deefc(0x3ed)]=-0x1]=_0x5deefc(0x3ed),_0x2019ac))(UniverType||{}),CombCmd=(_0x299185=>(_0x299185[_0x299185[_0x5deefc(0x495)]=0x0]='UNKNOWN_CMD',_0x299185[_0x299185[_0x5deefc(0x200)]=0x1]=_0x5deefc(0x200),_0x299185[_0x299185[_0x5deefc(0x4a0)]=0x2]=_0x5deefc(0x4a0),_0x299185[_0x299185[_0x5deefc(0x3a2)]=0x3]=_0x5deefc(0x3a2),_0x299185[_0x299185[_0x5deefc(0x2ca)]=0x4]=_0x5deefc(0x2ca),_0x299185[_0x299185[_0x5deefc(0x1d5)]=0x5]=_0x5deefc(0x1d5),_0x299185[_0x299185[_0x5deefc(0x1e7)]=0x6]='RECV',_0x299185[_0x299185[_0x5deefc(0x3ed)]=-0x1]=_0x5deefc(0x3ed),_0x299185))(CombCmd||{}),CmdRspCode=(_0x272f9b=>(_0x272f9b[_0x272f9b[_0x5deefc(0x429)]=0x0]=_0x5deefc(0x429),_0x272f9b[_0x272f9b['OK']=0x1]='OK',_0x272f9b[_0x272f9b[_0x5deefc(0x231)]=0x2]=_0x5deefc(0x231),_0x272f9b[_0x272f9b[_0x5deefc(0x471)]=0x3e9]=_0x5deefc(0x471),_0x272f9b[_0x272f9b['JOIN_ROOM_NOT_EXISTS']=0x3ea]=_0x5deefc(0x2f3),_0x272f9b[_0x272f9b[_0x5deefc(0x28d)]=0x3eb]='JOIN_ROOM_PERMISSION_DENIED',_0x272f9b[_0x272f9b[_0x5deefc(0x2e7)]=0x3ec]=_0x5deefc(0x2e7),_0x272f9b[_0x272f9b[_0x5deefc(0x3ed)]=-0x1]=_0x5deefc(0x3ed),_0x272f9b))(CmdRspCode||{}),FileSource=(_0x427a87=>(_0x427a87[_0x427a87[_0x5deefc(0x4dd)]=0x0]=_0x5deefc(0x4dd),_0x427a87[_0x427a87[_0x5deefc(0x381)]=0x1]=_0x5deefc(0x381),_0x427a87[_0x427a87['HttpExport']=0x2]=_0x5deefc(0x393),_0x427a87[_0x427a87[_0x5deefc(0x3f6)]=0x3]=_0x5deefc(0x3f6),_0x427a87[_0x427a87[_0x5deefc(0x38d)]=0x4]=_0x5deefc(0x38d),_0x427a87[_0x427a87['UNRECOGNIZED']=-0x1]=_0x5deefc(0x3ed),_0x427a87))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0x5deefc(0x4ab),defaultPluginConfig={};var CollaborationUIEventId=(_0x2fb256=>(_0x2fb256[_0x5deefc(0x1c1)]=_0x5deefc(0x1c1),_0x2fb256[_0x5deefc(0x33b)]=_0x5deefc(0x33b),_0x2fb256[_0x5deefc(0x203)]='CONFLICT',_0x2fb256[_0x5deefc(0x3c4)]='CLOSE_ROOM',_0x2fb256[_0x5deefc(0x2d1)]=_0x5deefc(0x2d1),_0x2fb256[_0x5deefc(0x280)]=_0x5deefc(0x280),_0x2fb256[_0x5deefc(0x2c6)]=_0x5deefc(0x2c6),_0x2fb256[_0x5deefc(0x3b2)]='SUBMIT_CHANGESET_TIMEOUT',_0x2fb256))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){var _0xc614c8=_0x5deefc;__publicField(this,_0xc614c8(0x263),new Subject()),__publicField(this,_0xc614c8(0x37b),this[_0xc614c8(0x263)][_0xc614c8(0x272)]());}[_0x5deefc(0x333)](_0x4dfbec){var _0x4aacdc=_0x5deefc;this[_0x4aacdc(0x263)][_0x4aacdc(0x41a)](_0x4dfbec);}};__name(_CollaborationUIEventService,'CollaborationUIEventService');let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier('univer-pro.collaboration-client.network-condition.service');function _0x1b9e(){var _0xef4425=['hasOwnProperty','_onJoinRoomEvent','appendMutation','_unitInfo$','put','_sendHeartbeatTimer','xorBlock','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','146768qfVrwN','YUUMI_UNABLE_LOAD_URL','clamp','floor','synced','_collabSessionService','PERSON','_transformService','1402368PzWzso','editing\x20status\x20changed\x20to','Decryptor','_stopTelemetryCollaborationNewChangeset','_append','getFocusedUnit','decryptBlock','_clearCollaborationTimeoutTimer','/universer-api/comb','AuthzIoHttpService','_createInitialStateImpl','ERROR_IMAGE','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','commonjsRequire','Pkcs7','objects','joinRsp','allowed','mutations','href','socketService','getAttachHeader','DomainRequestService','{fileID}','getConfig','create','requireLibTypedarrays','_iKey','collaboration-client.local-cache-service','_onMessage','_onConnectionOpen','unitInfo$','CollaborationEntity','updatePermissionObjEvent','_HTTPService','exports','createInstance','_sessions','message$','fromCharCode','/object','CHANGESET_ACK','getCurrentRevOfUnit','__decorateParam$3','requireEvpkdf','_getAPIPrefix','event$','ticket','state','socket\x20open.','requirePadNopadding','string','HttpImport','delete','APPLY_PERMISSION_DENIED','_socket','UNIVER_DOC','/rev/','_getSessionTicket','execute','LICENSE_MAX_UNITS_EXCEEDED','Hex','__decorateClass$4','_candidateSocket','UnitSnapshot','__decorateClass','_onFetchMissResult','_toggleOffline','_map','onlyLocal','HttpExport','session.join-failed','pkcs7Padding','_nRounds','Could\x20not\x20dynamically\x20require\x20\x22','duration','offline','image/png','_retryCount','createEncryptor','_decreaseWaiting','saveSheetBlock','startTime','objectActions','getSnapshotAPIPath','LEAVE','ceil','target','_socketService','_resendTimer','_updateStatus','_registerDependencies','LOCAL_CACHE_INTERVAL','_undoRedoService','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_httpService','MemberService','_onUserLeave','_http','ivSize','PasswordBasedCipher','SUBMIT_CHANGESET_TIMEOUT','_sheetTransformSelectionsService','toLowerCase','/block/','CBC','authzUrl','_scheduleCollaborationTimeoutTimer','__decorateParam$h','_awaitingChangeset','_eventService','_entityInit$','mode','getWorkbookSelections','__decorateParam$6','getRandomValues','LIVESHARE_NEW_HOST','__decorateParam$2','FETCH_MISSING','CLOSE_ROOM','POST','getTypeOfUnitAdded$','onRemoteChangeset','getUnitType','[CollaborationSession]','_process','collaboratorID','_executeRemoteChangeset','/universer-api/file/{fileID}/sign-url','_collaborationPaused','_state','__decorateClass$1','CHANGESET_REJ','_doCryptBlock','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_xformMode','/unit/','unknown','salt','__decorateClass$h','_replayCachedMutations','leaveEvent','_snapshotServerService','cfg','retryConnectingInterval','_onRemoteChangeset','APPLY_NON_SEQUENTIAL_REVISION','/fetchmissing?from=','focused$','awaiting','_telemetryInfo','data','clone','\x0aAfter:\x20','now','readyForCollab','APPLY_DUPLICATED','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_sendingTimer','WordArray','UNRECOGNIZED','INTERNAL_ERROR','_getUploadFileURL','_config','/-/object/list','_clearHeartbeatTimer','memberID','_startTelemetryCollaborationNewChangeset','debug','UnitEmbedded','image/jpeg','unit-cache-','getCollabEntity$','objectID','_timeoutTimer','replace','198863sGWmHH','JOINING','__decorateParam$c','extend','liveShareNewHost','NO_OTHER_CLIENTS_EDITING','createTimerObservable$','image/gif','readInt32LE','BASE64','/object/','_rescheduleHeartbeat','ERROR_EXCEED_SIZE','_updateLocalCache','pending','/new_changes','_transformRemoteChangesetByIMECache','_univerInstanceService','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','NoPadding','downloadEndpointUrl','__decorateParam$i','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getCollabEntity','disposeWithMe','[CollaborationSessionService]:\x20socket\x20error','_data','FileNameController','[PendingState]:\x20received\x20acknowledgement.','next','commentUpdateEvent','_entities','then','\x20-\x20','_socketReady','__decorateParam$e','onTransformRemoteChangesetByIMECache','__decorateParam$a','COMPRESS_MUTATION_APPLY','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','/allowed','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','fromCollab','PendingState','UNKNOWN_CODE','_key','processBlock','capture','not_collab','_initMergeInterceptor','_tryEnsureSocket','RoomMember','pipe','fetchThroughInterceptors','/universer-api/authz','_getUndoStack','_keySchedule','_submitChangeset','mixIn','_substituteUndoStack','__publicField','EvpKDF','_collaborationSessionService','params','CollaborationSessionService','save\x20fail\x20reason\x20is\x20','USERS_LEAVE','_transformStateCache','Cipher','/universer-api/uniscript','infoRsp','online$','_roomMembers','_isPermissionRej','_DEC_XFORM_MODE','COLLAB_SUBMIT_CHANGESET_URL','onCommentUpdate','_clearLocalCache','SnapshotServerOverHTTPService','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','session.room-permission-denied','_clearScheduledTask','method','onStateChange','shouldCloseConn','_snapshotService','rng','unitId\x20is\x20not\x20found','UNIVER_SLIDE','_hash','connection\x20error','LIVESHARE_OPERATION','json','_remoteChangesetQueue','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','stopTime','unsafeStringify','SyncedState','_compressMutationService','_members$','updatePermissionPoint','COLLAB_WEB_SOCKET_URL','updateOfflineData','_doFinalize','serializeCombRequest','getValue','process','generateSubmitChangesPath','sessionTicket','_disableEditing','send','8588OgtDiX','__decorateClass$a','unitID','Error\x20on\x20receiving\x20event','_checkMissing','JOIN_ROOM_FULL','resolve','_imageSourceCache','searchParams','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','session.room-not-exists','_nDataBytes','requireAes','slice','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','post','setConfig','_commentUpdate$','cmd','crypto','stringify','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','Hasher','localCacheService','Univer','_onOffline','_onRemoteRejected','range','reduce','PermissionService','selections','_oKey','session.room-full','BlockCipherMode','?url=','NOT_FOUND','bind','transformUndoRedo','CHANGESET_SHOULD_RETRY','LICENSE_EXPORT_SIZE_EXCEEDED','requireEncBase64','UNKNOWN_CMD','error$','UNIVER_UNKNOWN','csAckEvent','_init','onTransformState','__decorateClass$3','subscribe','terminateWithError','_getLoginPath','listCollaborators','JOIN','onTransformRemoteChangesetByStateCache','saveImage','[PendingState]:\x20received\x20rejection.','LIVESHARE_TERMINATE','_ENC_XFORM_MODE','DataLoaderService','ALREADY_EXISTS','handleUnitPermissionChange','UNIVER_SHEET','_loadSheet','collaboration-client.config','_getCtorByUniverType','defineProperty','random','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_collaborationTimeoutTimer','CollaborationSocketService','OTHER_CLIENTS_EDITING','sid','transformMutationsWithChangeset','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','__defNormalProp','Base64','eventID','getUnitStatus$','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','_resendWithTimeout','src','sessionStatus','summaryChangesetSize','_createHmacHelper','unitId','toString','ENSURE_SNAPSHOT_EXECUTION','_initUnitPermissionChange','_onConflict','onRemoteAck','closeSession','Base','_parse','reconnect','SNAPSHOT_HAS_BEEN_REMOVED','hostname','__Key__','requestParams','_retryConnectingTimer','UUID','subject','routeKey','Utf8','assembleSheetChangeset','[DataLoaderService]','loadOfflineData','add','loginUrlKey','_fetchMissChangesets','_doReset','getCurrentSelections','call','onSyncEditingCollabCursor','Undefined','_sessionStatus$','__decorateParam$5','enableAuthServer','_clearUndo','AwaitingWithPendingState','getOwnPropertyDescriptor','_exhaustRemoteChangesetQueue','session.room-cnt-exceeds','_loadDoc','size','changesets','_socketMessageSubscription','_unitID','_getSignURL','MD5','transformChangesets','responseType','_unlockTransition','complete','?size=','roles','editingUnit','snapshot','requireCore','userID','_members','default','finalize','AUTHZ_URL_KEY','hasher','sessionStatus$','FileId','LIVESHARE_FETCH_OPERATIONS','getLocalCacheKey','onTransformIME','deserializeToCombResponse','_localCacheService','_createSocket','_logService','byteLength','UNIVER_PROJECT','_changesetSessionId','catch','conflict','originalMeta','format','encodeURIComponent','__decorateClass$g','startsWith','Latin1','CommentService','getUnitId','reset','incrementRevOfUnit','_joinRoom','OTHER_CLIENT_EDITING','_handler','requireSha1','__decorateClass$e','OFFLINE','dispose$','Encryptor','[UniverCollaborationClientPlugin]','fetchMiss','runId','_scheduleCompleteTimestamp','status','parse','NEW_CHANGESETS','indexOf','USERS_ENTER','_transformUndoredo','updateCursorEvent','_change$','__decorateClass$f','HEARTBEAT','updateCollaborator','BufferedBlockAlgorithm','_type','randomUUID','/universer-api/oidc/authpage','unsubscribe','PSEUDO_FETCH_MISSING_RESULT','interceptor','_showConflictNotification','_revisionService','confirm','SUBMIT_CHANGESET','fetch_missing','_minBufferSize','updateMember','_sender','_invKeySchedule','RECV','FetchingMissState','charCodeAt','uniscriptRunEvent','getSheetBlock','_userManagerService','findIndex','setCurrentUser','getLatestCsReqIdBySid','result','_onRemoteRetry','signUrlServerUrl','_doProcessBlock','_mode','newCsEvent','key','INVALID_ARGUMENT','ConflictState','joinEvent','_transformRemoteChangesetByStateCache','_getSendChangesetTimeout','_initDependencies','\x20in\x20_schedule.','sigBytes','get','HELLO','buffer','push','CONFLICT','uploadFileServerUrl','_queuedRemoteChangesets','AWAITING_WITH_PENDING','_initCloseConn','encode','__decorateParam','_applyRemoteChangeset','reqId','SNAPSHOT_URL_KEY','members','OfflineState','YUUMI_SUBSCRIPTION_NOT_FOUND','code','UNIVER_COLLABORATION_CLIENT_PLUGIN','BlockCipher','localeService','_collaborationUIEventService','_commandService','encrypt','clear','patch','executeCommand','[CollaborationUndoRedoService]','CollaborationController','addHandlerCallback','&to=','_createHelper','init','createSocket','members$','1855XXErbU','compute','SheetCollaborationEntity','8958912LkUkLj','_tryReconnect','randomBytes','SNAPSHOT_INVALID_SNAPSHOT','generateRandomId','csShouldRetryEvent','IDLE','entries','onMissingChangesets','_startCollaboration','AES','RETRY_CONNECTING_MAX_COUNT','FAIL','/resources','splice','ONLINE','__decorateClass$2','_handlerCallback','file','APPLY_REVISION_CONFILICT','list','_onLocalMutation','enc','__decorateClass$d','_transformIMECache','loadDoc','_telemetryService','join','url','onCommandExecuted','_lockTransition','7046145qVMhfc','registerHTTPInterceptor','parseLoop','msCrypto','createDecryptor','[CollaborationState]:\x20apply\x20error!','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_memberService','_clearRedo','_prevBlock','18548240aAoABY','/-/object/-/batch_allowed','_localeService','_undoStacks','_pendingMutations','words','SHOULD_CLOSE_CONN','getTypeOfUnitDisposed$','_getRedoStack','YUUMI_URL_COL_OUT_OF_RANGE','PERMISSION_REJ','_incrementRevisionNumber','isArray','_waitCount','Malformed\x20UTF-8\x20data','_authzIoService','onTransformSelections','transformSelections','[OfflineState]:\x20received\x20acknowledgement.','requireMd5','_onConnectionFailed','_event$','location','encryptBlock','algo','__decorateParam$7','title','unpad','baseRev','cryptoSecureRandomInt','onRemoteRetry','_throwTelemetryCollaborationNewChangeset','getImageSourceCache','auth.needGotoLoginAlert','MUTATION','_iv','asObservable','_createSocketURL','c1Prime','loadUnit','_toggleOnline','_redoStacks','resend','onload','_socket$','workbook','_clearTimeoutTimer','kdf','ERROR_IMAGE_TYPE','abs','SOCKET_FAILED_RETRY','/universer-api/snapshot/','UPDATE_PERMISSION_OBJ','compose','deleteCollaborator','close$','getMemberID','every','_permissionService','session','_acknowledgedAwaitingChangeset','univer-pro.collaboration-client-socket-service','_status$','JOIN_ROOM_PERMISSION_DENIED','PY_RUNTIME_SCRIPT_ERROR','__decorateParam$f','dispose','HmacMD5','/collaborator','snapshotServerUrl','_keyPriorReset','origin','_onUserJoin','_state$','deepClone','_sendHeartbeat','collaMsg','initWorkbookPermissionChange','max','x-univer-host','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','__creator','includes','MentionIoHttpService','filter','_transitionLocked','HMAC','__decorateParam$4','rev','fetchMissingChangesets','status$','copyFileMeta','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','pauseCollaboration','error','People','UNISCRIPT_RUN','onStarting','AwaitingState','image/jpg','search','lib','_updateState','type','keySize','onRemoteRej','CipherParams','$super','removeMember','_initRequestHeader','apply','_hasher','MSG_FOR_ERROR','_singleActiveUnitService','open$','equals','sendChangesetTimeout','headers','SUCCUSS','COMMENT_UPDATE','SOCKET_FAILED','&source=','actions','StreamCipher','INGEST','collaborators','_waitForHeartbeatResponse','setShowComponents','OpenSSL','__decorateParam$b','/universer-api/stream/file/upload','JOIN_ROOM_FAILED','pad','formatter','__decorateParam$8','_transformStack','COMPLETION_FINISHED','AuthServerService','UNDEFINED','_networkConditionService','disableLocalCache','function','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','m2Prime','commentUpdate$','\x20to\x20','UNAUTHENTICATED','getCurrentUser','concat','getInterceptPoints','collaboration_new_changeset','YUUMI_RATE_OVER_LIMIT','COMPRESS_MUTATION_SEND','GLOBAL_ROOMS_CNT_EXCEEDS','104lZggve','_getCurrentRevision','update','blockSize','decrypt','_onCombEvent','min','map','createOnlineState','SYNCED','length','JOIN_ROOM_NOT_EXISTS','getRoom','5ncrEpf','awaitingChangeset','_removeRoom','CollaborationImageIoService','onSendChangeset','_instanceService','onLocalMutation','getMember','__decorateParam$d','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getActiveSheet','OPTIONAL','waitForRoom$','_commentService','objectType','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','getAllMembers','reject','_reverseMap','_cipher','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','[CollaborationSessionService]','toggleOffline','isPermissionRej','_schedule','prototype','toggleOnline','LICENSE_IMPORT_SIZE_EXCEEDED','append','close','_replaceFileID','onMissedChangesetFetched','getSheetId','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getDeserializedSheetBlock','textRanges','LIVESHARE_REQUEST_HOST','set','has','_resendTimeout','HEARTBEAT_TIMEOUT','_createHandler','getUnit','charAt','_injector','_roomCreated$','state$','body','ciphertext','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','revision','SHA1','forEach','_configService','_onRemoteACK','AWAITING','_getAPIPrefixPath','name','CHANGESET_REVISION_CONFILICT','requireSession','byteOffset','awaiting_with_pending','emitEvent','UPDATE_CURSOR','__decorateClass$b','socket\x20close','saveSnapshot','[SyncedState]:\x20received\x20rejection.','_shouldReportTelemetry','liveShareOperation','PERMISSION_DENIED','CONNECTOR_DATA_TOO_LARGE'];_0x1b9e=function(){return _0xef4425;};return _0x1b9e();}function deserializeToCombResponse(_0x547b50){var _0x3b9da3=_0x5deefc,_0x486508,_0x10d572,_0x306a10,_0x59e494,_0xb42e4f;const _0x40d732=_0x547b50[_0x3b9da3(0x3e4)],_0x45b559=JSON[_0x3b9da3(0x1cd)](_0x40d732);switch(_0x45b559['cmd']){case CombCmd[_0x3b9da3(0x1d5)]:case CombCmd[_0x3b9da3(0x200)]:{const _0x50a228=_0x45b559[_0x3b9da3(0x443)];return{..._0x45b559,'data':_0x50a228,'cmd':_0x45b559['cmd']};}case CombCmd[_0x3b9da3(0x4a0)]:{const _0x15d02c=_0x45b559[_0x3b9da3(0x35d)];return{..._0x45b559,'data':_0x15d02c,'cmd':_0x45b559[_0x3b9da3(0x47e)]};}case CombCmd[_0x3b9da3(0x1e7)]:{const _0x3796df=_0x45b559[_0x3b9da3(0x29a)];switch(_0x3796df[_0x3b9da3(0x4b8)]){case CollaborationEvent[_0x3b9da3(0x258)]:return{..._0x45b559,'data':{..._0x3796df,'data':(_0x486508=_0x3796df['permissionRejEvent'])==null?void 0x0:_0x486508['cs']},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x376)]:return{..._0x45b559,'data':{..._0x3796df,'data':(_0x10d572=_0x3796df[_0x3b9da3(0x498)])==null?void 0x0:_0x10d572['cs']},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x1ce)]:return{..._0x45b559,'data':{..._0x3796df,'data':(_0x306a10=_0x3796df[_0x3b9da3(0x1f5)])==null?void 0x0:_0x306a10['cs']},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent['CHANGESET_REJ']:return{..._0x45b559,'data':{..._0x3796df,'data':(_0x59e494=_0x3796df['csRejEvent'])==null?void 0x0:_0x59e494['cs']},'cmd':_0x45b559['cmd']};case CollaborationEvent[_0x3b9da3(0x492)]:return{..._0x45b559,'data':{..._0x3796df,'data':(_0xb42e4f=_0x3796df[_0x3b9da3(0x22a)])==null?void 0x0:_0xb42e4f['cs']},'cmd':_0x45b559['cmd']};case CollaborationEvent[_0x3b9da3(0x334)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x1d2)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent['USERS_ENTER']:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x1f9)]},'cmd':_0x45b559['cmd']};case CollaborationEvent[_0x3b9da3(0x43f)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x3da)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x3c1)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x401)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x1aa)]:case CollaborationEvent[_0x3b9da3(0x458)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x33a)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x4a4)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x401)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x2be)]:return{..._0x45b559,'data':_0x3796df,'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x2c5)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x41b)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};case CollaborationEvent[_0x3b9da3(0x282)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x36e)]},'cmd':_0x45b559['cmd']};case CollaborationEvent[_0x3b9da3(0x254)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x451)]},'cmd':_0x45b559['cmd']};case CollaborationEvent[_0x3b9da3(0x2ae)]:return{..._0x45b559,'data':{..._0x3796df,'data':_0x3796df[_0x3b9da3(0x1ea)]},'cmd':_0x45b559[_0x3b9da3(0x47e)]};default:return _0x45b559;}}default:return _0x45b559;}}__name(deserializeToCombResponse,_0x5deefc(0x1ad));function serializeCombRequest(_0x4171dd){var _0x32fac7=_0x5deefc;switch(_0x4171dd['cmd']){case CombCmd[_0x32fac7(0x1d5)]:case CombCmd[_0x32fac7(0x200)]:return JSON[_0x32fac7(0x480)]({'cmd':_0x4171dd[_0x32fac7(0x47e)],'routeKey':_0x4171dd['routeKey']});case CombCmd[_0x32fac7(0x2ca)]:{let _0x504973;switch(_0x4171dd[_0x32fac7(0x3e4)][_0x32fac7(0x4b8)]){case CollaborationEvent[_0x32fac7(0x334)]:{_0x504973={'eventID':CollaborationEvent['UPDATE_CURSOR'],'updateCursorEvent':_0x4171dd[_0x32fac7(0x3e4)][_0x32fac7(0x3e4)]};break;}case CollaborationEvent[_0x32fac7(0x43f)]:{_0x504973={'eventID':CollaborationEvent['USERS_LEAVE'],'leaveEvent':_0x4171dd['data'][_0x32fac7(0x3e4)]};break;}case CollaborationEvent[_0x32fac7(0x1d0)]:{_0x504973={'eventID':CollaborationEvent['USERS_ENTER'],'joinEvent':_0x4171dd[_0x32fac7(0x3e4)][_0x32fac7(0x3e4)]};break;}case CollaborationEvent[_0x32fac7(0x3c1)]:{_0x504973={'eventID':CollaborationEvent[_0x32fac7(0x3c1)],'liveShareNewHost':_0x4171dd[_0x32fac7(0x3e4)][_0x32fac7(0x3e4)]};break;}case CollaborationEvent['LIVESHARE_OPERATION']:{_0x504973={'eventID':CollaborationEvent[_0x32fac7(0x458)],'liveShareOperation':_0x4171dd['data'][_0x32fac7(0x3e4)]};break;}case CollaborationEvent[_0x32fac7(0x4a4)]:{_0x504973={'eventID':CollaborationEvent[_0x32fac7(0x4a4)],'liveShareTerminate':_0x4171dd['data']['data']};break;}case CollaborationEvent[_0x32fac7(0x319)]:{_0x504973={'eventID':CollaborationEvent[_0x32fac7(0x319)],'liveShareRequestHost':_0x4171dd[_0x32fac7(0x3e4)][_0x32fac7(0x3e4)]};break;}case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:{_0x504973={'eventID':CollaborationEvent[_0x32fac7(0x1aa)]};break;}default:_0x504973={'eventID':_0x4171dd[_0x32fac7(0x3e4)][_0x32fac7(0x4b8)]};}return JSON[_0x32fac7(0x480)]({'cmd':_0x4171dd['cmd'],'routeKey':_0x4171dd['routeKey'],'collaMsg':_0x504973});}case CombCmd[_0x32fac7(0x4a0)]:return JSON[_0x32fac7(0x480)]({'cmd':_0x4171dd[_0x32fac7(0x47e)],'routeKey':_0x4171dd[_0x32fac7(0x4d1)],'joinReq':_0x4171dd['data']});case CombCmd['LEAVE']:return JSON[_0x32fac7(0x480)]({'cmd':_0x4171dd[_0x32fac7(0x47e)],'routeKey':_0x4171dd['routeKey'],'leaveReq':_0x4171dd['data']});default:throw new Error(_0x32fac7(0x45b));}}__name(serializeCombRequest,_0x5deefc(0x465));var __defProp$i=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$i=Object[_0x5deefc(0x4e3)],__decorateClass$i=__name((_0x268472,_0xb5a9c6,_0x16e7a8,_0x410096)=>{for(var _0x4b6033=_0x410096>0x1?void 0x0:_0x410096?__getOwnPropDesc$i(_0xb5a9c6,_0x16e7a8):_0xb5a9c6,_0x9eb780=_0x268472['length']-0x1,_0x2f7403;_0x9eb780>=0x0;_0x9eb780--)(_0x2f7403=_0x268472[_0x9eb780])&&(_0x4b6033=(_0x410096?_0x2f7403(_0xb5a9c6,_0x16e7a8,_0x4b6033):_0x2f7403(_0x4b6033))||_0x4b6033);return _0x410096&&_0x4b6033&&__defProp$i(_0xb5a9c6,_0x16e7a8,_0x4b6033),_0x4b6033;},'__decorateClass$i'),__decorateParam$i=__name((_0x373e8e,_0x8e2dc8)=>(_0x5101fa,_0x23c80e)=>_0x8e2dc8(_0x5101fa,_0x23c80e,_0x373e8e),_0x5deefc(0x412));const ICollaborationSocketService=createIdentifier(_0x5deefc(0x28b));function generateSubmitChangesPath(_0x568ae7,_0x458551,_0x3193b9){var _0x3befeb=_0x5deefc;return _0x568ae7+'/'+_0x458551+'/unit/'+_0x3193b9+_0x3befeb(0x40c);}__name(generateSubmitChangesPath,_0x5deefc(0x468));var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0x19cb0f,_0x4f26c7,_0x243df8,_0x598bc6,_0x1149e0){var _0x428275=_0x5deefc;super(),this['_injector']=_0x19cb0f,this[_0x428275(0x3af)]=_0x4f26c7,this[_0x428275(0x32a)]=_0x243df8,this[_0x428275(0x1b0)]=_0x598bc6,this['_snapshotServerService']=_0x1149e0;}[_0x5deefc(0x220)](_0x9794c3){var _0x3bb8fb=_0x5deefc;const _0x13d8f3=this['_injector']['get'](ISocketService);if(!_0x13d8f3)throw new Error(_0x3bb8fb(0x3ab));const _0x5de1c1=_0x13d8f3[_0x3bb8fb(0x220)](_0x9794c3);if(!_0x5de1c1)throw new Error(_0x3bb8fb(0x426));const _0x2c92db=new DisposableCollection(),_0x1b9fe1=new Subject();_0x2c92db[_0x3bb8fb(0x4d6)](_0x5de1c1[_0x3bb8fb(0x285)]['subscribe'](_0x17a5ca=>_0x1b9fe1[_0x3bb8fb(0x41a)](_0x17a5ca))),_0x2c92db[_0x3bb8fb(0x4d6)](toDisposable(()=>_0x1b9fe1[_0x3bb8fb(0x4f0)]()));const _0x6b29d8=new Subject();_0x2c92db[_0x3bb8fb(0x4d6)](_0x5de1c1['error$'][_0x3bb8fb(0x49c)](_0x179643=>_0x6b29d8['next'](_0x179643))),_0x2c92db[_0x3bb8fb(0x4d6)](toDisposable(()=>_0x6b29d8[_0x3bb8fb(0x4f0)]()));const _0x4a274d=new Subject();_0x2c92db[_0x3bb8fb(0x4d6)](_0x5de1c1[_0x3bb8fb(0x373)]['subscribe'](_0xba491d=>{var _0x585b38=_0x3bb8fb;const _0x182ccc=deserializeToCombResponse(_0xba491d);_0x4a274d[_0x585b38(0x41a)](_0x182ccc);})),_0x2c92db[_0x3bb8fb(0x4d6)](toDisposable(()=>_0x4a274d[_0x3bb8fb(0x4f0)]()));let _0x4e3744;const _0x4d40ef=__name(()=>{var _0x4c41dc=_0x3bb8fb;_0x6b29d8[_0x4c41dc(0x41a)](new Event(_0x4c41dc(0x457))),_0x1b9fe1['next'](new CloseEvent(_0x4c41dc(0x457))),_0x4e3744[_0x4c41dc(0x312)]();},_0x3bb8fb(0x49d));return _0x4e3744={'memberID':'','close$':_0x1b9fe1[_0x3bb8fb(0x272)](),'error$':_0x6b29d8['asObservable'](),'open$':_0x5de1c1['open$'],'message$':_0x4a274d[_0x3bb8fb(0x272)](),'send':__name(_0x5e3f0b=>{var _0x5b37f8=_0x3bb8fb;if(_0x5e3f0b['cmd']===CombCmd[_0x5b37f8(0x2ca)]){if(_0x5e3f0b[_0x5b37f8(0x3e4)][_0x5b37f8(0x4b8)]===CollaborationEvent['SUBMIT_CHANGESET']){this[_0x5b37f8(0x436)](_0x4e3744,_0x5e3f0b[_0x5b37f8(0x3e4)])[_0x5b37f8(0x1b4)](_0x4fa02e=>{var _0x349ed4=_0x5b37f8;this[_0x349ed4(0x1b0)][_0x349ed4(0x2ac)](_0x4fa02e),_0x4d40ef();});return;}if(_0x5e3f0b[_0x5b37f8(0x3e4)][_0x5b37f8(0x4b8)]===CollaborationEvent[_0x5b37f8(0x3c3)]){const _0xe0dce7=_0x5e3f0b['data'];this[_0x5b37f8(0x4d8)](_0xe0dce7)[_0x5b37f8(0x41d)](_0x1ec617=>{var _0x31a94b=_0x5b37f8;_0x4a274d[_0x31a94b(0x41a)]({'cmd':CombCmd[_0x31a94b(0x1e7)],'code':CmdRspCode['OK'],'routeKey':_0xe0dce7[_0x31a94b(0x3e4)]['unitID'],'routeType':'','data':{'eventID':CollaborationEvent[_0x31a94b(0x1dc)],'data':{'changesets':_0x1ec617}}});})[_0x5b37f8(0x1b4)](_0x22eaeb=>{var _0x8c9933=_0x5b37f8;this['_logService'][_0x8c9933(0x2ac)](_0x22eaeb),_0x4d40ef();});return;}}_0x5de1c1['send'](serializeCombRequest(_0x5e3f0b));},_0x3bb8fb(0x46b)),'close':__name(()=>{var _0x5ee7fe=_0x3bb8fb;_0x5de1c1[_0x5ee7fe(0x312)](),_0x2c92db[_0x5ee7fe(0x290)]();},_0x3bb8fb(0x312))},_0x4e3744;}async[_0x5deefc(0x436)](_0x4191f9,_0x1dce91){var _0x304e21=_0x5deefc,_0x34e419,_0x2671af;const {unitType:_0x3f5cec,unitID:_0x11da6d,changeset:_0x4ffec5}=_0x1dce91[_0x304e21(0x3e4)],_0x58d19d={'unitID':_0x11da6d,'memberID':_0x4191f9['memberID'],'type':_0x3f5cec,'changeset':parseChangesetToProtocol(_0x4ffec5)},_0x5f19da=this['_configService'][_0x304e21(0x365)](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x55c0ac=this[_0x304e21(0x32a)][_0x304e21(0x365)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x2f5c33=generateSubmitChangesPath((_0x2671af=(_0x34e419=_0x55c0ac==null?void 0x0:_0x55c0ac['collabSubmitChangesetUrl'])!=null?_0x34e419:_0x5f19da)!=null?_0x2671af:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0x3f5cec,_0x11da6d);try{await this[_0x304e21(0x3af)][_0x304e21(0x47b)](_0x2f5c33,{'body':_0x58d19d});}catch(_0x3c24aa){throw this[_0x304e21(0x1b0)][_0x304e21(0x2ac)]('[CollaborationSession]','submit\x20changeset\x20error!'),_0x3c24aa;}}async[_0x5deefc(0x4d8)](_0x2528cb){var _0x390758=_0x5deefc;const {unitID:_0x2e235,from:_0x1a6429,to:_0x121ac8,unitType:_0x1d1e6d}=_0x2528cb['data'];return(await this[_0x390758(0x3db)][_0x390758(0x2a7)]({'metadata':void 0x0},{'unitID':_0x2e235,'type':_0x1d1e6d,'from':_0x1a6429,'to':_0x121ac8}))[_0x390758(0x4e8)];}},__name(_a,_0x5deefc(0x4b1)),_a);CollaborationSocketService=__decorateClass$i([__decorateParam$i(0x0,Inject(Injector)),__decorateParam$i(0x1,Inject(HTTPService)),__decorateParam$i(0x2,IConfigService),__decorateParam$i(0x3,ILogService),__decorateParam$i(0x4,ISnapshotServerService)],CollaborationSocketService);const TELEMETRY_COLLABORATION_NEW_CHANGESET=_0x5deefc(0x2e4);function summaryChangesetSize(_0x39db0c){var _0x33dc71=_0x5deefc;return JSON[_0x33dc71(0x480)](_0x39db0c)[_0x33dc71(0x2f2)];}__name(summaryChangesetSize,_0x5deefc(0x4be));const _CommentService=class _CommentService{constructor(){var _0xdcee54=_0x5deefc;__publicField(this,_0xdcee54(0x47d),new Subject()),__publicField(this,_0xdcee54(0x2de),this[_0xdcee54(0x47d)]['asObservable']());}[_0x5deefc(0x449)](_0x141036){this['_commentUpdate$']['next'](_0x141036);}};__name(_CommentService,_0x5deefc(0x1bc));let CommentService=_CommentService;var __defProp$h=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$h=Object['getOwnPropertyDescriptor'],__decorateClass$h=__name((_0x664b58,_0x107675,_0x4cb210,_0x1f4455)=>{var _0x1bf48b=_0x5deefc;for(var _0x595fe1=_0x1f4455>0x1?void 0x0:_0x1f4455?__getOwnPropDesc$h(_0x107675,_0x4cb210):_0x107675,_0x3cb64e=_0x664b58[_0x1bf48b(0x2f2)]-0x1,_0x3e98d4;_0x3cb64e>=0x0;_0x3cb64e--)(_0x3e98d4=_0x664b58[_0x3cb64e])&&(_0x595fe1=(_0x1f4455?_0x3e98d4(_0x107675,_0x4cb210,_0x595fe1):_0x3e98d4(_0x595fe1))||_0x595fe1);return _0x1f4455&&_0x595fe1&&__defProp$h(_0x107675,_0x4cb210,_0x595fe1),_0x595fe1;},_0x5deefc(0x3d8)),__decorateParam$h=__name((_0x53c2bb,_0x3a32b2)=>(_0x469949,_0x4a8424)=>_0x3a32b2(_0x469949,_0x4a8424,_0x53c2bb),_0x5deefc(0x3b9)),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0xf0714f,_0x4a24e9){var _0x1129d7=_0x5deefc;super(),__publicField(this,'_roomMembers',new Map()),__publicField(this,_0x1129d7(0x322),new Subject()),(this[_0x1129d7(0x40e)]=_0xf0714f,this[_0x1129d7(0x1ec)]=_0x4a24e9,this[_0x1129d7(0x415)](merge(this[_0x1129d7(0x40e)][_0x1129d7(0x255)](UniverInstanceType[_0x1129d7(0x4a9)])[_0x1129d7(0x431)](map(_0x3f8db8=>_0x3f8db8['getUnitId']())),this[_0x1129d7(0x40e)][_0x1129d7(0x255)](UniverInstanceType[_0x1129d7(0x385)])[_0x1129d7(0x431)](map(_0x3f181f=>_0x3f181f['getUnitId']())),this[_0x1129d7(0x40e)][_0x1129d7(0x255)](UniverInstanceType['UNIVER_SLIDE'])[_0x1129d7(0x431)](map(_0x3cfcd1=>_0x3cfcd1[_0x1129d7(0x1bd)]())))['subscribe'](_0x573aba=>this[_0x1129d7(0x2f7)](_0x573aba))));}[_0x5deefc(0x301)](_0x32f4e8){var _0x49d929=_0x5deefc;return this['_roomMembers']['has'](_0x32f4e8)?of(this[_0x49d929(0x445)][_0x49d929(0x1ff)](_0x32f4e8)):this['_roomCreated$']['pipe'](map(_0x26896a=>{var _0x11fbd1=_0x49d929;if(_0x26896a===_0x32f4e8)return this[_0x11fbd1(0x445)][_0x11fbd1(0x1ff)](_0x26896a);}));}[_0x5deefc(0x1ee)](_0x1752fb){var _0x2429df=_0x5deefc;this['_userManagerService'][_0x2429df(0x1ee)](_0x1752fb);}[_0x5deefc(0x2e1)](){var _0x18bfc0=_0x5deefc;return this[_0x18bfc0(0x1ec)]['getCurrentUser']();}['updateMember'](_0x29d523,_0x3698f9){var _0x5eec5d=_0x5deefc;let _0x2d8009=this[_0x5eec5d(0x445)][_0x5eec5d(0x1ff)](_0x29d523);_0x2d8009||(_0x2d8009=new RoomMember(),this[_0x5eec5d(0x445)][_0x5eec5d(0x31a)](_0x29d523,_0x2d8009),this[_0x5eec5d(0x322)][_0x5eec5d(0x41a)](_0x29d523)),_0x2d8009[_0x5eec5d(0x1e4)](_0x3698f9);}['removeMember'](_0x7bb20d,_0x571a62){var _0x5ec3bd=_0x5deefc;const _0x4c3609=this[_0x5ec3bd(0x445)][_0x5ec3bd(0x1ff)](_0x7bb20d);_0x4c3609&&_0x4c3609['removeMember'](_0x571a62);}[_0x5deefc(0x2f4)](_0x4b5411){var _0x195407=_0x5deefc;return this[_0x195407(0x445)][_0x195407(0x1ff)](_0x4b5411);}[_0x5deefc(0x2fc)](_0x3b4f75,_0x5b91c2){var _0x435a3a=_0x5deefc;const _0x221424=this[_0x435a3a(0x445)][_0x435a3a(0x1ff)](_0x3b4f75);if(_0x221424)return _0x221424[_0x435a3a(0x2fc)](_0x5b91c2);}[_0x5deefc(0x2f7)](_0x501ea6){var _0x5474c5=_0x5deefc;const _0x134030=this[_0x5474c5(0x445)]['get'](_0x501ea6);_0x134030&&(_0x134030['dispose'](),this[_0x5474c5(0x445)][_0x5474c5(0x382)](_0x501ea6));}['dispose'](){var _0x3a867c=_0x5deefc;this['_roomMembers'][_0x3a867c(0x329)](_0xa019c3=>_0xa019c3[_0x3a867c(0x290)]()),this['_roomMembers'][_0x3a867c(0x217)](),this[_0x3a867c(0x322)][_0x3a867c(0x4f0)]();}},__name(_a2,_0x5deefc(0x3ad)),_a2);MemberService=__decorateClass$h([__decorateParam$h(0x0,IUniverInstanceService),__decorateParam$h(0x1,Inject(UserManagerService))],MemberService);const _RoomMember=class _RoomMember extends Disposable{constructor(){var _0x3b153e=_0x5deefc;super(...arguments),__publicField(this,_0x3b153e(0x4f7),new Map()),__publicField(this,_0x3b153e(0x460),new BehaviorSubject(this[_0x3b153e(0x4f7)])),__publicField(this,_0x3b153e(0x221),this[_0x3b153e(0x460)][_0x3b153e(0x272)]());}['dispose'](){var _0x5a35d7=_0x5deefc;this[_0x5a35d7(0x4f7)][_0x5a35d7(0x217)]();}[_0x5deefc(0x1e4)](_0x4a80cc){var _0xf26a93=_0x5deefc;this['_members'][_0xf26a93(0x31a)](_0x4a80cc[_0xf26a93(0x3f3)],_0x4a80cc),this['_emitMembers']();}[_0x5deefc(0x2ba)](_0x256640){var _0x2fe544=_0x5deefc;this[_0x2fe544(0x4f7)][_0x2fe544(0x382)](_0x256640);}[_0x5deefc(0x2fc)](_0xb15d17){var _0x595a92=_0x5deefc;return this[_0x595a92(0x4f7)][_0x595a92(0x1ff)](_0xb15d17);}[_0x5deefc(0x305)](){var _0x13417e=_0x5deefc;return Array['from'](this[_0x13417e(0x4f7)]['values']());}['_emitMembers'](){var _0x434d0f=_0x5deefc;this[_0x434d0f(0x460)][_0x434d0f(0x41a)](this['_members']);}};__name(_RoomMember,_0x5deefc(0x430));let RoomMember=_RoomMember;var __defProp$g=Object['defineProperty'],__getOwnPropDesc$g=Object[_0x5deefc(0x4e3)],__decorateClass$g=__name((_0x2a9a81,_0x4576ad,_0x256db5,_0x3a1ac3)=>{var _0x1df65b=_0x5deefc;for(var _0x4405b8=_0x3a1ac3>0x1?void 0x0:_0x3a1ac3?__getOwnPropDesc$g(_0x4576ad,_0x256db5):_0x4576ad,_0x4c4a62=_0x2a9a81[_0x1df65b(0x2f2)]-0x1,_0x571c2b;_0x4c4a62>=0x0;_0x4c4a62--)(_0x571c2b=_0x2a9a81[_0x4c4a62])&&(_0x4405b8=(_0x3a1ac3?_0x571c2b(_0x4576ad,_0x256db5,_0x4405b8):_0x571c2b(_0x4405b8))||_0x4405b8);return _0x3a1ac3&&_0x4405b8&&__defProp$g(_0x4576ad,_0x256db5,_0x4405b8),_0x4405b8;},_0x5deefc(0x1b9)),__decorateParam$g=__name((_0x50b96a,_0x502b96)=>(_0x5ac613,_0x33f448)=>_0x502b96(_0x5ac613,_0x33f448,_0x50b96a),'__decorateParam$g'),SessionStatus=(_0x5f05e6=>(_0x5f05e6[_0x5f05e6[_0x5deefc(0x22b)]=0x0]=_0x5deefc(0x22b),_0x5f05e6[_0x5f05e6[_0x5deefc(0x3fe)]=0x1]='JOINING',_0x5f05e6[_0x5f05e6[_0x5deefc(0x1c5)]=0x2]=_0x5deefc(0x1c5),_0x5f05e6[_0x5f05e6['ONLINE']=0x3]=_0x5deefc(0x234),_0x5f05e6))(SessionStatus||{});const FailedReason={[CmdRspCode['FAIL']]:_0x5deefc(0x394),[CmdRspCode[_0x5deefc(0x471)]]:_0x5deefc(0x48c),[CmdRspCode[_0x5deefc(0x2f3)]]:_0x5deefc(0x476),[CmdRspCode[_0x5deefc(0x28d)]]:_0x5deefc(0x44d),[CmdRspCode[_0x5deefc(0x2e7)]]:_0x5deefc(0x4e5)};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x26c715,_0x2de2ef,_0x564a38,_0x16a62d,_0x4056f3,_0x1328a2,_0x3208f4,_0x1f6218,_0x19161b){var _0x36ab94=_0x5deefc;super(),__publicField(this,_0x36ab94(0x4de),new BehaviorSubject(0x0)),__publicField(this,_0x36ab94(0x4fc),this[_0x36ab94(0x4de)][_0x36ab94(0x272)]()),__publicField(this,_0x36ab94(0x263),new Subject()),__publicField(this,_0x36ab94(0x37b),this[_0x36ab94(0x263)][_0x36ab94(0x272)]()),__publicField(this,_0x36ab94(0x384)),__publicField(this,_0x36ab94(0x4e9)),__publicField(this,_0x36ab94(0x4b0)),__publicField(this,'_shouldReportTelemetry',!0x1),__publicField(this,_0x36ab94(0x3e3),null),(this[_0x36ab94(0x4ea)]=_0x26c715,this['_logService']=_0x564a38,this[_0x36ab94(0x32a)]=_0x16a62d,this[_0x36ab94(0x250)]=_0x4056f3,this[_0x36ab94(0x24b)]=_0x1328a2,this[_0x36ab94(0x302)]=_0x3208f4,this['_collaborationUIEventService']=_0x1f6218,this[_0x36ab94(0x23f)]=_0x19161b,this['_shouldReportTelemetry']=!!this[_0x36ab94(0x23f)],_0x2de2ef['pipe'](takeUntil(this['dispose$']))[_0x36ab94(0x49c)](_0x1a39b9=>{var _0x54619a=_0x36ab94,_0x9444d9;typeof _0x1a39b9>'u'||(this[_0x54619a(0x384)]=_0x1a39b9,_0x1a39b9?(this[_0x54619a(0x1c0)](_0x1a39b9),this[_0x54619a(0x4e9)]=_0x1a39b9[_0x54619a(0x373)][_0x54619a(0x49c)](_0x53a6f2=>{var _0x564a9f=_0x54619a;_0x53a6f2[_0x564a9f(0x4d1)]===this[_0x564a9f(0x4ea)]&&this['_onCombEvent'](_0x53a6f2);})):(this[_0x54619a(0x26d)](),this[_0x54619a(0x4de)][_0x54619a(0x41a)](0x2),(_0x9444d9=this[_0x54619a(0x4e9)])==null||_0x9444d9[_0x54619a(0x1db)](),this['_socketMessageSubscription']=null));}));}get[_0x5deefc(0x4bd)](){var _0x35f155=_0x5deefc;return this['_sessionStatus$'][_0x35f155(0x466)]();}[_0x5deefc(0x286)](){var _0x220120=_0x5deefc,_0x4df89b,_0x9a1ce5;return(_0x9a1ce5=(_0x4df89b=this[_0x220120(0x384)])==null?void 0x0:_0x4df89b[_0x220120(0x3f3)])!=null?_0x9a1ce5:null;}[_0x5deefc(0x290)](){var _0x31b3df=_0x5deefc;super[_0x31b3df(0x290)](),this['dispose$'][_0x31b3df(0x41a)](),this[_0x31b3df(0x1c6)][_0x31b3df(0x4f0)]();}[_0x5deefc(0x312)](){var _0x22021a=_0x5deefc,_0x53f3e7,_0x13f8f9;this[_0x22021a(0x26d)](),(_0x53f3e7=this[_0x22021a(0x384)])==null||_0x53f3e7['send']({'cmd':CombCmd[_0x22021a(0x3a2)],'data':{'roomID':this[_0x22021a(0x4ea)]}}),(_0x13f8f9=this[_0x22021a(0x384)])==null||_0x13f8f9[_0x22021a(0x312)](),this['_event$'][_0x22021a(0x4f0)](),this[_0x22021a(0x4de)]['complete'](),this[_0x22021a(0x290)]();}[_0x5deefc(0x2ed)](_0x109e15){var _0x4b0347=_0x5deefc;_0x109e15[_0x4b0347(0x47e)]===CombCmd['JOIN']?this['_onJoinRoomEvent'](_0x109e15):_0x109e15[_0x4b0347(0x47e)]===CombCmd[_0x4b0347(0x1e7)]&&this['_onRecvEvent'](_0x109e15);}[_0x5deefc(0x1c0)](_0x3ea7b0){var _0x1aeb74=_0x5deefc;this[_0x1aeb74(0x4de)][_0x1aeb74(0x41a)](0x1),_0x3ea7b0[_0x1aeb74(0x46b)]({'cmd':CombCmd[_0x1aeb74(0x4a0)],'routeKey':this[_0x1aeb74(0x4ea)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x5deefc(0x33e)](_0x1cbfb8){var _0x2efcd9=_0x5deefc,_0x55bbc4;if(_0x1cbfb8[_0x2efcd9(0x210)]in FailedReason){this[_0x2efcd9(0x214)][_0x2efcd9(0x333)]({'id':CollaborationUIEventId[_0x2efcd9(0x2d1)],'data':FailedReason[_0x1cbfb8[_0x2efcd9(0x210)]]}),this[_0x2efcd9(0x4de)][_0x2efcd9(0x41a)](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0x4e085d=(_0x55bbc4=_0x1cbfb8[_0x2efcd9(0x3e4)]['roomInfos'][this[_0x2efcd9(0x4ea)]])==null?void 0x0:_0x55bbc4[_0x2efcd9(0x20d)];_0x4e085d&&_0x4e085d[_0x2efcd9(0x329)](_0x157834=>this[_0x2efcd9(0x24b)]['updateMember'](this[_0x2efcd9(0x4ea)],_0x157834));}['_onRecvEvent'](_0x16b1fa){var _0x15a292=_0x5deefc;try{const _0x26bd77=_0x16b1fa[_0x15a292(0x3e4)];switch(_0x26bd77[_0x15a292(0x4b8)]){case CollaborationEvent[_0x15a292(0x1d0)]:this['_onUserJoin'](_0x26bd77),this['_event$']['next'](_0x26bd77);break;case CollaborationEvent[_0x15a292(0x43f)]:this[_0x15a292(0x3ae)](_0x26bd77),this[_0x15a292(0x263)][_0x15a292(0x41a)](_0x26bd77);break;case CollaborationEvent[_0x15a292(0x376)]:case CollaborationEvent['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x15a292(0x354)](),this['_event$'][_0x15a292(0x41a)](_0x26bd77);break;case CollaborationEvent[_0x15a292(0x2be)]:this['_logService'][_0x15a292(0x2ac)](_0x15a292(0x43e)+JSON[_0x15a292(0x480)](_0x26bd77)),this[_0x15a292(0x263)]['next'](_0x26bd77);break;case CollaborationEvent[_0x15a292(0x2c5)]:this['_commentService'][_0x15a292(0x449)](_0x26bd77[_0x15a292(0x3e4)]),this[_0x15a292(0x263)][_0x15a292(0x41a)](_0x26bd77);break;default:this[_0x15a292(0x263)][_0x15a292(0x41a)](_0x26bd77);}}catch(_0x1ea3ea){this[_0x15a292(0x1b0)][_0x15a292(0x2ac)](_0x1ea3ea,_0x16b1fa);}}[_0x5deefc(0x296)](_0x7edd89){var _0x112c34=_0x5deefc;this[_0x112c34(0x24b)][_0x112c34(0x1e4)](this['_unitID'],_0x7edd89[_0x112c34(0x3e4)]);}[_0x5deefc(0x3ae)](_0x48c524){var _0x2c43ad=_0x5deefc;this[_0x2c43ad(0x24b)]['removeMember'](this[_0x2c43ad(0x4ea)],_0x48c524[_0x2c43ad(0x3e4)][_0x2c43ad(0x3f3)]);}async[_0x5deefc(0x46b)](_0x21b3b,_0x33c5c4){var _0x3820f8=_0x5deefc;if(this['sessionStatus']!==0x3||!this[_0x3820f8(0x384)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x21b3b[_0x3820f8(0x4b8)]===CollaborationEvent[_0x3820f8(0x1e1)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x3820f8(0x3f4)](_0x21b3b)),this['_socket'][_0x3820f8(0x46b)]({'cmd':CombCmd[_0x3820f8(0x2ca)],'routeKey':_0x33c5c4,'routeType':'','data':_0x21b3b});}catch(_0x2b5f4a){this[_0x3820f8(0x1b0)]['error'](_0x2b5f4a);}}[_0x5deefc(0x3b8)](){var _0xaea1b6=_0x5deefc,_0x3d56a4;this['_collaborationTimeoutTimer']=setTimeout(()=>{var _0x2e1269=_0x450a;this['_collaborationTimeoutTimer']=null,this[_0x2e1269(0x214)][_0x2e1269(0x333)]({'id':CollaborationUIEventId['SUBMIT_CHANGESET_TIMEOUT']});},(_0x3d56a4=this[_0xaea1b6(0x32a)][_0xaea1b6(0x365)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x3d56a4:DEFAULT_HEARTBEAT_TIMEOUT);}['_clearCollaborationTimeoutTimer'](){var _0x5b5a81=_0x5deefc;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x5b5a81(0x4b0)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x66aee){var _0x28bd8c=_0x5deefc;if(!this[_0x28bd8c(0x339)])return;const {data:_0x6e21fb}=_0x66aee,{unitID:_0x3a2490,changeset:_0x57e8b9}=_0x6e21fb,{mutations:_0x20bb16,type:_0x3ca442}=_0x57e8b9;this[_0x28bd8c(0x3e3)]={'unitId':_0x3a2490,'type':_0x3ca442,'startTime':performance[_0x28bd8c(0x3e7)](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x20bb16)};}[_0x5deefc(0x350)](){var _0xea70c7=_0x5deefc;if(this[_0xea70c7(0x339)]){if(!this[_0xea70c7(0x3e3)]){this[_0xea70c7(0x1b0)][_0xea70c7(0x2ac)](_0xea70c7(0x3c9),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0xea70c7(0x3e3)]['stopTime']=performance[_0xea70c7(0x3e7)](),this[_0xea70c7(0x3e3)][_0xea70c7(0x398)]=this['_telemetryInfo'][_0xea70c7(0x45c)]-this[_0xea70c7(0x3e3)][_0xea70c7(0x39f)],this[_0xea70c7(0x23f)][_0xea70c7(0x42c)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this['_telemetryInfo']),this[_0xea70c7(0x3e3)]=null;}}[_0x5deefc(0x26d)](){var _0x18d778=_0x5deefc;this[_0x18d778(0x3e3)]=null;}},__name(_a3,'CollaborationSession'),_a3);CollaborationSession=__decorateClass$g([__decorateParam$g(0x2,ILogService),__decorateParam$g(0x3,IConfigService),__decorateParam$g(0x4,Inject(LocaleService)),__decorateParam$g(0x5,Inject(MemberService)),__decorateParam$g(0x6,Inject(CommentService)),__decorateParam$g(0x7,Inject(CollaborationUIEventService)),__decorateParam$g(0x8,Optional(ITelemetryService))],CollaborationSession);var __defProp$f=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$f=Object['getOwnPropertyDescriptor'],__decorateClass$f=__name((_0x451f0c,_0x2c1f1f,_0x311315,_0x3af20e)=>{var _0x1359f7=_0x5deefc;for(var _0x48e585=_0x3af20e>0x1?void 0x0:_0x3af20e?__getOwnPropDesc$f(_0x2c1f1f,_0x311315):_0x2c1f1f,_0x432822=_0x451f0c[_0x1359f7(0x2f2)]-0x1,_0x66a706;_0x432822>=0x0;_0x432822--)(_0x66a706=_0x451f0c[_0x432822])&&(_0x48e585=(_0x3af20e?_0x66a706(_0x2c1f1f,_0x311315,_0x48e585):_0x66a706(_0x48e585))||_0x48e585);return _0x3af20e&&_0x48e585&&__defProp$f(_0x2c1f1f,_0x311315,_0x48e585),_0x48e585;},_0x5deefc(0x1d4)),__decorateParam$f=__name((_0x32ce20,_0x4fe451)=>(_0x3e4079,_0x24ec03)=>_0x4fe451(_0x3e4079,_0x24ec03,_0x32ce20),_0x5deefc(0x28f)),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x35a239,_0x5663f7,_0x3e42b3,_0x2a85ff,_0x51fade,_0x5b20eb,_0x39522f){var _0x2dff08=_0x5deefc;super(),__publicField(this,_0x2dff08(0x27a),new BehaviorSubject(void 0x0)),__publicField(this,'socket$',this[_0x2dff08(0x27a)]['asObservable']()),__publicField(this,_0x2dff08(0x38c),null),__publicField(this,'_sessions',new Map()),__publicField(this,_0x2dff08(0x28c),new BehaviorSubject(SessionStatus[_0x2dff08(0x22b)])),__publicField(this,_0x2dff08(0x2a8),this[_0x2dff08(0x28c)]['asObservable']()),__publicField(this,_0x2dff08(0x41f),!0x1),__publicField(this,_0x2dff08(0x4ce)),__publicField(this,_0x2dff08(0x39b),0x0),__publicField(this,'_sendHeartbeatTimer'),__publicField(this,_0x2dff08(0x3fb)),(this[_0x2dff08(0x321)]=_0x35a239,this['_logService']=_0x5663f7,this[_0x2dff08(0x32a)]=_0x3e42b3,this['_socketService']=_0x2a85ff,this['_httpService']=_0x51fade,this['_collaborationUIEventService']=_0x5b20eb,this[_0x2dff08(0x2d9)]=_0x39522f,this['_listenToNetworkCondition']());}get['_socket'](){var _0x5b45b1=_0x5deefc;return this['_socket$'][_0x5b45b1(0x466)]();}['_listenToNetworkCondition'](){var _0x1ecbce=_0x5deefc;this[_0x1ecbce(0x2d9)]&&this[_0x1ecbce(0x415)](this[_0x1ecbce(0x2d9)][_0x1ecbce(0x444)]['subscribe'](_0x58689b=>{var _0xd312f4=_0x1ecbce;_0x58689b&&!this[_0xd312f4(0x384)]&&this[_0xd312f4(0x4c9)](),_0x58689b||this[_0xd312f4(0x485)]();}));}[_0x5deefc(0x290)](){var _0x317d4f=_0x5deefc;super['dispose'](),this[_0x317d4f(0x372)][_0x317d4f(0x329)](_0x48b1f6=>_0x48b1f6[_0x317d4f(0x290)]()),this[_0x317d4f(0x372)]['clear'](),this[_0x317d4f(0x28c)][_0x317d4f(0x4f0)]();}async[_0x5deefc(0x330)](_0x335fb8){var _0xe752a=_0x5deefc;if(this[_0xe752a(0x372)][_0xe752a(0x31b)](_0x335fb8))return this['_sessions'][_0xe752a(0x1ff)](_0x335fb8);this[_0xe752a(0x42f)]();const _0x446b8d=this['_injector'][_0xe752a(0x371)](CollaborationSession,_0x335fb8,this[_0xe752a(0x27a)][_0xe752a(0x272)]());return this['_sessions'][_0xe752a(0x31a)](_0x335fb8,_0x446b8d),_0x446b8d;}['closeSession'](_0x30930a){var _0x3aaa8d=_0x5deefc,_0x4aae16;const _0x43010e=this['_sessions']['get'](_0x30930a);_0x43010e&&(this[_0x3aaa8d(0x372)]['delete'](_0x30930a),_0x43010e[_0x3aaa8d(0x312)]()),this['_sessions'][_0x3aaa8d(0x4e7)]||(_0x4aae16=this[_0x3aaa8d(0x384)])==null||_0x4aae16[_0x3aaa8d(0x312)]();}['reconnect'](){var _0x29bbe6=_0x5deefc;this['_retryCount']=0x0,this[_0x29bbe6(0x4ce)]!=null&&(clearTimeout(this[_0x29bbe6(0x4ce)]),this['_retryConnectingTimer']=null),this['_tryReconnect']();}async[_0x5deefc(0x387)](){var _0x70a9f3=_0x5deefc,_0x2b4bd4,_0x277f56,_0x30cc80;const _0x554f4c=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x101e91=(_0x2b4bd4=_0x554f4c==null?void 0x0:_0x554f4c['wsSessionTicketUrl'])!=null?_0x2b4bd4:DEFAULT_WS_SESSION_TICKET_URL;return(_0x30cc80=(_0x277f56=(await this[_0x70a9f3(0x3ac)][_0x70a9f3(0x1ff)](_0x101e91,{'headers':{'Content-Type':'application/json'}}))[_0x70a9f3(0x324)])==null?void 0x0:_0x277f56[_0x70a9f3(0x37c)])!=null?_0x30cc80:'';}[_0x5deefc(0x273)](_0x1882d0){var _0x168bbe=_0x5deefc,_0x57f950,_0x2997dc;const _0x1cd345=this[_0x168bbe(0x32a)][_0x168bbe(0x365)](COLLAB_WEB_SOCKET_URL_KEY),_0x12b803=this[_0x168bbe(0x32a)][_0x168bbe(0x365)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x60287d=(_0x2997dc=(_0x57f950=_0x12b803==null?void 0x0:_0x12b803['collabWebSocketUrl'])!=null?_0x57f950:_0x1cd345)!=null?_0x2997dc:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x1971ab=typeof window>'u'?new URL(_0x60287d):new URL(_0x60287d,window[_0x168bbe(0x264)][_0x168bbe(0x295)]);_0x1971ab[_0x168bbe(0x474)][_0x168bbe(0x31a)](_0x168bbe(0x469),_0x1882d0);const _0x392578=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x168bbe(0x264)][_0x168bbe(0x2b2)]);return _0x392578[_0x168bbe(0x1ff)](_0x168bbe(0x1ca))&&_0x1971ab['searchParams'][_0x168bbe(0x31a)]('runId',_0x392578[_0x168bbe(0x1ff)](_0x168bbe(0x1ca))),_0x1971ab[_0x168bbe(0x4c1)]();}async[_0x5deefc(0x1af)](){var _0x1deaf8=_0x5deefc;const _0x24e37f=await this[_0x1deaf8(0x387)](),_0x2f4805=this[_0x1deaf8(0x273)](_0x24e37f),_0x2db6f5=this[_0x1deaf8(0x3a5)][_0x1deaf8(0x220)](_0x2f4805);return this[_0x1deaf8(0x38c)]=_0x2db6f5,_0x2db6f5;}async[_0x5deefc(0x42f)](){var _0x179058=_0x5deefc,_0x253265,_0x5cff13;try{const _0x587f6e=(_0x5cff13=(_0x253265=this[_0x179058(0x384)])!=null?_0x253265:this['_candidateSocket'])!=null?_0x5cff13:await this[_0x179058(0x1af)]();if(_0x587f6e){const _0x13f125=_0x587f6e[_0x179058(0x46b)];_0x587f6e['send']=_0x713628=>(this[_0x179058(0x408)](),_0x13f125[_0x179058(0x2bc)](_0x587f6e,[_0x713628])),_0x587f6e[_0x179058(0x373)][_0x179058(0x49c)](_0x449e26=>this['_onMessage'](_0x587f6e,_0x449e26)),_0x587f6e[_0x179058(0x496)]['pipe'](take(0x1))[_0x179058(0x49c)](_0x1fcf64=>this['_logService'][_0x179058(0x2ac)](_0x179058(0x416),_0x1fcf64)),_0x587f6e[_0x179058(0x2c0)]['pipe'](take(0x1))[_0x179058(0x49c)](()=>{var _0x276f85=_0x179058;this[_0x276f85(0x36b)](_0x587f6e);}),_0x587f6e[_0x179058(0x285)][_0x179058(0x431)](take(0x1))['subscribe'](_0x122bfb=>{var _0x30e796=_0x179058;this[_0x30e796(0x1b0)]['debug']('[CollaborationSessionService]',_0x30e796(0x336),_0x122bfb),this[_0x30e796(0x262)]();});}}catch(_0x456c6c){this[_0x179058(0x1b0)]['error'](_0x456c6c),this[_0x179058(0x262)]();}}[_0x5deefc(0x36b)](_0x2a5a5d){var _0x27f5ea=_0x5deefc;this[_0x27f5ea(0x1b0)][_0x27f5ea(0x3f5)](_0x27f5ea(0x30a),_0x27f5ea(0x37e)),_0x2a5a5d[_0x27f5ea(0x46b)]({'cmd':CombCmd[_0x27f5ea(0x200)]}),this['_rescheduleHeartbeat']();}['_onOffline'](){var _0x1eec42=_0x5deefc;this[_0x1eec42(0x41f)]=!0x1,this[_0x1eec42(0x38c)]=null,this['_status$'][_0x1eec42(0x41a)](SessionStatus[_0x1eec42(0x1c5)]),this[_0x1eec42(0x27a)]['next'](null),this['_clearTimeoutTimer'](),this[_0x1eec42(0x3f2)]();}[_0x5deefc(0x262)](){var _0x923089=_0x5deefc,_0x40e60d;this['_onOffline'](),this[_0x923089(0x39b)]<((_0x40e60d=this[_0x923089(0x32a)][_0x923089(0x365)](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x40e60d:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this['_collaborationUIEventService'][_0x923089(0x333)]({'id':CollaborationUIEventId[_0x923089(0x280)]}),this[_0x923089(0x226)]()):this['_collaborationUIEventService'][_0x923089(0x333)]({'id':CollaborationUIEventId[_0x923089(0x2c6)]});}[_0x5deefc(0x226)](){var _0x2e6dce=_0x5deefc,_0x10b827;const _0x2980cf=this[_0x2e6dce(0x39b)],_0x327468=this[_0x2e6dce(0x32a)][_0x2e6dce(0x365)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0xf3569e=_0x2980cf===0x0?0x0:((_0x10b827=_0x327468==null?void 0x0:_0x327468[_0x2e6dce(0x3dd)])!=null?_0x10b827:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x2980cf;this['_retryConnectingTimer']=setTimeout(()=>{var _0x3d3ddc=_0x2e6dce;clearTimeout(this[_0x3d3ddc(0x4ce)]),this[_0x3d3ddc(0x4ce)]=null,this[_0x3d3ddc(0x42f)]();},_0xf3569e),this['_retryCount']+=0x1;}[_0x5deefc(0x36a)](_0x2bf7d1,_0x18b14e){var _0x344aa7=_0x5deefc;const {cmd:_0x40d7d3}=_0x18b14e;_0x40d7d3===CombCmd[_0x344aa7(0x200)]&&!this[_0x344aa7(0x41f)]&&(_0x2bf7d1[_0x344aa7(0x3f3)]=_0x18b14e[_0x344aa7(0x3e4)][_0x344aa7(0x3f3)],this[_0x344aa7(0x27a)][_0x344aa7(0x41a)](_0x2bf7d1),this['_status$']['next'](SessionStatus[_0x344aa7(0x234)]),this[_0x344aa7(0x41f)]=!0x0,this[_0x344aa7(0x38c)]=null),_0x40d7d3===CombCmd[_0x344aa7(0x1d5)]&&this[_0x344aa7(0x27c)](),this[_0x344aa7(0x408)]();}['_rescheduleHeartbeat'](){var _0x399217=_0x5deefc,_0x218bd8;this[_0x399217(0x3f2)](),this[_0x399217(0x342)]=setTimeout(()=>this[_0x399217(0x299)](),(_0x218bd8=this['_configService']['getConfig'](HEARTBEAT_INTERVAL_KEY))!=null?_0x218bd8:DEFAULT_HEARTBEAT_INTERVAL);}[_0x5deefc(0x299)](){var _0x2e3374=_0x5deefc;this[_0x2e3374(0x384)][_0x2e3374(0x46b)]({'cmd':CombCmd[_0x2e3374(0x1d5)]}),this['_waitForHeartbeatResponse']();}[_0x5deefc(0x2cc)](){var _0x3dd0dc=_0x5deefc,_0x1de80c;this[_0x3dd0dc(0x3fb)]=setTimeout(()=>this[_0x3dd0dc(0x262)](),(_0x1de80c=this['_configService']['getConfig'](HEARTBEAT_TIMEOUT_KEY))!=null?_0x1de80c:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x5deefc(0x3f2)](){var _0x4545b2=_0x5deefc;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x4545b2(0x342)]),this['_sendHeartbeatTimer']=null);}[_0x5deefc(0x27c)](){var _0x3cbd70=_0x5deefc;this[_0x3cbd70(0x3fb)]!=null&&(clearTimeout(this[_0x3cbd70(0x3fb)]),this[_0x3cbd70(0x3fb)]=null);}},__name(_a4,_0x5deefc(0x43d)),_a4);CollaborationSessionService=__decorateClass$f([__decorateParam$f(0x0,Inject(Injector)),__decorateParam$f(0x1,ILogService),__decorateParam$f(0x2,IConfigService),__decorateParam$f(0x3,ICollaborationSocketService),__decorateParam$f(0x4,Inject(HTTPService)),__decorateParam$f(0x5,Inject(CollaborationUIEventService)),__decorateParam$f(0x6,Optional(INetworkConditionService))],CollaborationSessionService);const byteToHex=[];for(let i=0x0;i<0x100;++i)byteToHex[_0x5deefc(0x202)]((i+0x100)[_0x5deefc(0x4c1)](0x10)[_0x5deefc(0x479)](0x1));function unsafeStringify(_0x1dc52a,_0xe208b4=0x0){var _0x39f259=_0x5deefc;return(byteToHex[_0x1dc52a[_0xe208b4+0x0]]+byteToHex[_0x1dc52a[_0xe208b4+0x1]]+byteToHex[_0x1dc52a[_0xe208b4+0x2]]+byteToHex[_0x1dc52a[_0xe208b4+0x3]]+'-'+byteToHex[_0x1dc52a[_0xe208b4+0x4]]+byteToHex[_0x1dc52a[_0xe208b4+0x5]]+'-'+byteToHex[_0x1dc52a[_0xe208b4+0x6]]+byteToHex[_0x1dc52a[_0xe208b4+0x7]]+'-'+byteToHex[_0x1dc52a[_0xe208b4+0x8]]+byteToHex[_0x1dc52a[_0xe208b4+0x9]]+'-'+byteToHex[_0x1dc52a[_0xe208b4+0xa]]+byteToHex[_0x1dc52a[_0xe208b4+0xb]]+byteToHex[_0x1dc52a[_0xe208b4+0xc]]+byteToHex[_0x1dc52a[_0xe208b4+0xd]]+byteToHex[_0x1dc52a[_0xe208b4+0xe]]+byteToHex[_0x1dc52a[_0xe208b4+0xf]])[_0x39f259(0x3b4)]();}__name(unsafeStringify,_0x5deefc(0x45d));function _0x450a(_0x2c3fa3,_0x1c88bc){var _0x1b9edb=_0x1b9e();return _0x450a=function(_0x450ab3,_0x4f1f09){_0x450ab3=_0x450ab3-0x1a9;var _0x2bdec7=_0x1b9edb[_0x450ab3];return _0x2bdec7;},_0x450a(_0x2c3fa3,_0x1c88bc);}let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0x320bb5=_0x5deefc;if(!getRandomValues){if(typeof crypto>'u'||!crypto[_0x320bb5(0x3c0)])throw new Error(_0x320bb5(0x359));getRandomValues=crypto[_0x320bb5(0x3c0)][_0x320bb5(0x490)](crypto);}return getRandomValues(rnds8);}__name(rng,'rng');const randomUUID=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x5deefc(0x1d9)]['bind'](crypto),native={'randomUUID':randomUUID};function v4(_0x227790,_0x470278,_0x5ebe40){var _0x2110fa=_0x5deefc,_0x14cb39,_0xf129ef,_0x567752;if(native[_0x2110fa(0x1d9)]&&!_0x227790)return native[_0x2110fa(0x1d9)]();_0x227790=_0x227790||{};const _0x55a6e0=(_0x567752=(_0xf129ef=_0x227790[_0x2110fa(0x4ae)])!=null?_0xf129ef:(_0x14cb39=_0x227790[_0x2110fa(0x453)])==null?void 0x0:_0x14cb39[_0x2110fa(0x4db)](_0x227790))!=null?_0x567752:rng();if(_0x55a6e0['length']<0x10)throw new Error(_0x2110fa(0x40f));return _0x55a6e0[0x6]=_0x55a6e0[0x6]&0xf|0x40,_0x55a6e0[0x8]=_0x55a6e0[0x8]&0x3f|0x80,unsafeStringify(_0x55a6e0);}__name(v4,'v4');const ILocalCacheService=createIdentifier(_0x5deefc(0x369));function getLocalCacheKey(_0x5bb0c0){var _0x54748e=_0x5deefc;return _0x54748e(0x3f8)+_0x5bb0c0;}__name(getLocalCacheKey,_0x5deefc(0x1ab));var __defProp$e=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$e=Object['getOwnPropertyDescriptor'],__decorateClass$e=__name((_0x3afd32,_0x311849,_0x39c0d3,_0x5a3a4f)=>{var _0x3bdc8e=_0x5deefc;for(var _0x36e1d9=_0x5a3a4f>0x1?void 0x0:_0x5a3a4f?__getOwnPropDesc$e(_0x311849,_0x39c0d3):_0x311849,_0x45000d=_0x3afd32[_0x3bdc8e(0x2f2)]-0x1,_0xd8243b;_0x45000d>=0x0;_0x45000d--)(_0xd8243b=_0x3afd32[_0x45000d])&&(_0x36e1d9=(_0x5a3a4f?_0xd8243b(_0x311849,_0x39c0d3,_0x36e1d9):_0xd8243b(_0x36e1d9))||_0x36e1d9);return _0x5a3a4f&&_0x36e1d9&&__defProp$e(_0x311849,_0x39c0d3,_0x36e1d9),_0x36e1d9;},_0x5deefc(0x1c4)),__decorateParam$e=__name((_0x5b8cf6,_0x177d61)=>(_0x3b09d3,_0x10b820)=>_0x177d61(_0x3b09d3,_0x10b820,_0x5b8cf6),_0x5deefc(0x420));function extractTargetFromFirstChangeset(_0x2768fb){var _0x3bc73a=_0x5deefc;const {unitID:_0x5556da,mutations:_0x436417}=_0x2768fb;return{'unitId':_0x5556da,'subUnitId':_0x436417[0x0][_0x3bc73a(0x43c)]['subUnitId']};}__name(extractTargetFromFirstChangeset,'extractTargetFromFirstChangeset');var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x1ad9fe,_0x53e2b6,_0x7d0b52){var _0x219052=_0x5deefc;this['_injector']=_0x1ad9fe,this[_0x219052(0x34c)]=_0x53e2b6,this[_0x219052(0x2fa)]=_0x7d0b52;}['transformSelections'](_0x58a9a5){var _0x5a027f=_0x5deefc,_0x397174,_0x1c5419,_0x1bccaf,_0x235902;const _0x4e7e43=this['_injector'][_0x5a027f(0x1ff)](SheetsSelectionsService),{unitId:_0x281440,subUnitId:_0x47ae12}=extractTargetFromFirstChangeset(_0x58a9a5),_0x35759c=_0x4e7e43==null?void 0x0:_0x4e7e43[_0x5a027f(0x3be)](_0x281440)[_0x5a027f(0x4da)](),_0x28b016=(_0x1c5419=(_0x397174=this['_instanceService'][_0x5a027f(0x31f)](_0x281440))==null?void 0x0:_0x397174[_0x5a027f(0x2ff)]())==null?void 0x0:_0x1c5419[_0x5a027f(0x315)]();if(_0x35759c['length']===0x0||!_0x281440||!_0x47ae12)return;const _0x338ee9=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0x281440,'subUnitId':_0x28b016,'selections':Tools[_0x5a027f(0x298)](_0x35759c)}}],_0x458c2b=this[_0x5a027f(0x34c)][_0x5a027f(0x4b4)](_0x58a9a5,_0x338ee9);if(!isTransformMutationsWithChangesetSuccess(_0x458c2b))throw _0x458c2b[_0x5a027f(0x2ac)];const _0x442f6c=(_0x235902=(_0x1bccaf=_0x458c2b[_0x5a027f(0x2dd)][0x0])==null?void 0x0:_0x1bccaf['params'])==null?void 0x0:_0x235902[_0x5a027f(0x48a)];if(Array[_0x5a027f(0x25a)](_0x442f6c)&&_0x442f6c['length']){if(_0x442f6c['length']===_0x338ee9[0x0][_0x5a027f(0x43c)][_0x5a027f(0x48a)][_0x5a027f(0x2f2)]&&_0x442f6c[_0x5a027f(0x287)]((_0x48a7e8,_0x1cc919)=>Rectangle[_0x5a027f(0x2c1)](_0x48a7e8[_0x5a027f(0x487)],_0x338ee9[0x0][_0x5a027f(0x43c)][_0x5a027f(0x48a)][_0x1cc919][_0x5a027f(0x487)])))return;this[_0x5a027f(0x321)][_0x5a027f(0x1ff)](ICommandService)['executeCommand'](SetSelectionsOperation['id'],{'unitId':_0x281440,'subUnitId':_0x28b016,'selections':_0x442f6c});}}},__name(_a5,'SheetTransformSelectionsService'),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier('univer-pro.collaboration-client.single-active-unit-service');var UnitStatus=(_0x5259ea=>(_0x5259ea[_0x5259ea[_0x5deefc(0x402)]=0x0]=_0x5deefc(0x402),_0x5259ea[_0x5259ea['OTHER_CLIENTS_EDITING']=0x1]=_0x5deefc(0x4b2),_0x5259ea))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x1befae,_0x24be68,_0x31acdb,_0x213fea,_0x224d6a){var _0x38022f=_0x5deefc,_0x262abb,_0x28d9e5,_0x4fd3ac,_0x39819c;const _0x22108f=[];for(const _0x3f27da of _0x1befae)if(SINGLE_CHANGESET_MUTATIONS[_0x38022f(0x31b)](_0x3f27da['id'])){if(_0x22108f[_0x38022f(0x2f2)]>0x0)break;_0x22108f['push'](_0x3f27da);break;}else _0x22108f[_0x38022f(0x202)](_0x3f27da);const _0x201e0e=(_0x28d9e5=(_0x262abb=_0x224d6a[_0x38022f(0x2e1)]())==null?void 0x0:_0x262abb[_0x38022f(0x4f6)])!=null?_0x28d9e5:'unknown',_0x5af055=(_0x39819c=(_0x4fd3ac=_0x224d6a[_0x38022f(0x2e1)]())==null?void 0x0:_0x4fd3ac['memberID'])!=null?_0x39819c:'unknown';return{'changeset':{'unitID':_0x24be68,'type':mapDocumentTypeToUniverType(_0x31acdb['getUnitType'](_0x24be68)),'baseRev':_0x213fea['getCurrentRevOfUnit'](_0x24be68),'revision':0x0,'userID':_0x201e0e,'memberID':_0x5af055,'mutations':_0x22108f},'pendingMutations':_0x1befae[_0x38022f(0x479)](_0x22108f[_0x38022f(0x2f2)])};}__name(assembleSheetChangeset,_0x5deefc(0x4d3));function assembleDocChangeset(_0x46be30,_0x54ae9d,_0x4d7317,_0x59826f,_0x3c45d0){var _0x284599=_0x5deefc,_0x1a87b0,_0x41592d,_0x877358,_0x13b8c2;const _0x2ae741=[_0x46be30['reduce']((_0x185b3f,_0x3985c7)=>{var _0x3ba07a=_0x450a,_0x184cfa;const {id:_0x4fc40f}=_0x185b3f,{id:_0x56e411,type:_0x31a3ad}=_0x3985c7,_0x3e9fcf=(_0x184cfa=_0x185b3f[_0x3ba07a(0x43c)])!=null?_0x184cfa:{'actions':null},_0x3fb15e=_0x3985c7[_0x3ba07a(0x43c)];if(_0x4fc40f&&_0x4fc40f!==_0x56e411)throw new Error(_0x3ba07a(0x3d3)+_0x4fc40f+_0x3ba07a(0x41e)+_0x56e411+'.');return{..._0x185b3f,'id':_0x56e411,'type':_0x31a3ad,'params':{'unitId':_0x3fb15e[_0x3ba07a(0x4c0)],'textRanges':_0x3fb15e[_0x3ba07a(0x318)],'actions':JSONX[_0x3ba07a(0x283)](_0x3e9fcf[_0x3ba07a(0x2c8)],_0x3fb15e[_0x3ba07a(0x2c8)])}};},{})],_0x50d3d7=(_0x41592d=(_0x1a87b0=_0x3c45d0[_0x284599(0x2e1)]())==null?void 0x0:_0x1a87b0[_0x284599(0x4f6)])!=null?_0x41592d:_0x284599(0x3d6),_0x57c3a1=(_0x13b8c2=(_0x877358=_0x3c45d0[_0x284599(0x2e1)]())==null?void 0x0:_0x877358[_0x284599(0x3f3)])!=null?_0x13b8c2:_0x284599(0x3d6);return{'changeset':{'unitID':_0x54ae9d,'type':mapDocumentTypeToUniverType(_0x4d7317[_0x284599(0x3c8)](_0x54ae9d)),'baseRev':_0x59826f[_0x284599(0x377)](_0x54ae9d),'revision':0x0,'userID':_0x50d3d7,'memberID':_0x57c3a1,'mutations':_0x2ae741},'pendingMutations':[]};}__name(assembleDocChangeset,'assembleDocChangeset');function createTimerObservable$(_0x45dabc,_0x510210){var _0x17ec02=_0x5deefc;const _0xc171dd=new ReplaySubject(0x1);return setTimeout(()=>_0xc171dd['next'](_0x510210),_0x45dabc),_0xc171dd[_0x17ec02(0x272)]()['pipe'](_0x21435b(0x1));}__name(createTimerObservable$,_0x5deefc(0x403));const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType[_0x5deefc(0x270)],'params':{}};var __defProp$d=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$d=Object[_0x5deefc(0x4e3)],__decorateClass$d=__name((_0x2a7e09,_0x5901e9,_0x2ce7f6,_0x524034)=>{var _0x438d05=_0x5deefc;for(var _0x4387af=_0x524034>0x1?void 0x0:_0x524034?__getOwnPropDesc$d(_0x5901e9,_0x2ce7f6):_0x5901e9,_0x91a403=_0x2a7e09[_0x438d05(0x2f2)]-0x1,_0x598615;_0x91a403>=0x0;_0x91a403--)(_0x598615=_0x2a7e09[_0x91a403])&&(_0x4387af=(_0x524034?_0x598615(_0x5901e9,_0x2ce7f6,_0x4387af):_0x598615(_0x4387af))||_0x4387af);return _0x524034&&_0x4387af&&__defProp$d(_0x5901e9,_0x2ce7f6,_0x4387af),_0x4387af;},_0x5deefc(0x23c)),__decorateParam$d=__name((_0x6a68ae,_0x23a213)=>(_0x455e37,_0xb00edf)=>_0x23a213(_0x455e37,_0xb00edf,_0x6a68ae),_0x5deefc(0x2fd)),CollaborationStatus=(_0x3233e3=>(_0x3233e3['NOT_COLLAB']=_0x5deefc(0x42d),_0x3233e3[_0x5deefc(0x2f1)]=_0x5deefc(0x349),_0x3233e3['PENDING']='pending',_0x3233e3[_0x5deefc(0x32c)]=_0x5deefc(0x3e2),_0x3233e3[_0x5deefc(0x206)]=_0x5deefc(0x332),_0x3233e3['FETCH_MISS']=_0x5deefc(0x1e2),_0x3233e3[_0x5deefc(0x203)]='conflict',_0x3233e3['OFFLINE']=_0x5deefc(0x399),_0x3233e3))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x3e0e95,_0x4e8cc2,_0xe74b9c,_0x4b5769,_0x52dcc8,_0x1a766f,_0x581846,_0x18211b,_0xc3f569){var _0x189d48=_0x5deefc;__publicField(this,_0x189d48(0x3ba),null),__publicField(this,'_pendingMutations',[]),(this[_0x189d48(0x46e)]=_0x3e0e95,this[_0x189d48(0x2b5)]=_0x4e8cc2,this['_handler']=_0x52dcc8,this[_0x189d48(0x215)]=_0x1a766f,this['_undoRedoService']=_0x581846,this['_revisionService']=_0x18211b,this['_localCacheService']=_0xc3f569,this[_0x189d48(0x3ba)]=_0xe74b9c,this[_0x189d48(0x252)]=_0x4b5769);}[_0x5deefc(0x470)](_0x2cd12e){var _0xa438c=_0x5deefc;const _0x48cfff=this[_0xa438c(0x1df)]['getCurrentRevOfUnit'](this[_0xa438c(0x46e)]);return _0x2cd12e[_0xa438c(0x327)]>_0x48cfff+0x1?(this[_0xa438c(0x1c2)]['onMissingChangesets']({'from':_0x48cfff,'to':_0x2cd12e[_0xa438c(0x327)]-0x1}),!0x0):!0x1;}[_0x5deefc(0x1d1)](_0x5cb77b){var _0x5f24f8=_0x5deefc;this[_0x5f24f8(0x3aa)][_0x5f24f8(0x491)](this['unitID'],_0x5cb77b);}['_transformSelections'](_0x280de5){var _0x4da552=_0x5deefc,_0x2c49b0,_0x519693;(_0x519693=(_0x2c49b0=this[_0x4da552(0x1c2)])[_0x4da552(0x25e)])==null||_0x519693['call'](_0x2c49b0,_0x280de5);}['_transformIMECache'](_0x2b9863){var _0x5c00bd=_0x5deefc,_0x5b58e3,_0x4c85d9;return(_0x4c85d9=(_0x5b58e3=this[_0x5c00bd(0x1c2)])[_0x5c00bd(0x1ac)])==null?void 0x0:_0x4c85d9['call'](_0x5b58e3,_0x2b9863);}[_0x5deefc(0x440)](_0x5f02d5){var _0x5c765f=_0x5deefc,_0x1afc51,_0x3387ed;return(_0x3387ed=(_0x1afc51=this[_0x5c765f(0x1c2)])[_0x5c765f(0x49a)])==null?void 0x0:_0x3387ed[_0x5c765f(0x4db)](_0x1afc51,_0x5f02d5);}[_0x5deefc(0x40d)](_0x1f95f7){var _0x2e8227=_0x5deefc,_0x2c2fc4,_0x12e99c,_0x4bfa5a;return(_0x4bfa5a=(_0x12e99c=(_0x2c2fc4=this[_0x2e8227(0x1c2)])[_0x2e8227(0x421)])==null?void 0x0:_0x12e99c['call'](_0x2c2fc4,_0x1f95f7))!=null?_0x4bfa5a:_0x1f95f7;}[_0x5deefc(0x1fa)](_0x35e808){var _0x2c79d8=_0x5deefc,_0x5c0b68,_0x6659e0,_0x2e0ab8;return(_0x2e0ab8=(_0x6659e0=(_0x5c0b68=this[_0x2c79d8(0x1c2)])[_0x2c79d8(0x4a1)])==null?void 0x0:_0x6659e0[_0x2c79d8(0x4db)](_0x5c0b68,_0x35e808))!=null?_0x2e0ab8:_0x35e808;}['_syncEditingCollabCursor'](_0x27c3f5){var _0xf5524a=_0x5deefc,_0x188308,_0x1cadc3;if(this[_0xf5524a(0x2b5)]===UniverType[_0xf5524a(0x385)]){const {unitID:_0x246931,mutations:_0x4bb0a6,memberID:_0x2df66c}=_0x27c3f5,_0x5c6fe0=_0x4bb0a6[0x0]['params'][_0xf5524a(0x318)];Array[_0xf5524a(0x25a)](_0x5c6fe0)&&_0x5c6fe0[_0xf5524a(0x2f2)]>0x0&&((_0x1cadc3=(_0x188308=this[_0xf5524a(0x1c2)])[_0xf5524a(0x4dc)])==null||_0x1cadc3['call'](_0x188308,{'unitID':_0x246931,'memberID':_0x2df66c,'textRanges':_0x5c6fe0}));}}[_0x5deefc(0x40a)](){var _0x4c16be=_0x5deefc,_0x2f11e8;(_0x2f11e8=this[_0x4c16be(0x1ae)])==null||_0x2f11e8[_0x4c16be(0x463)](this[_0x4c16be(0x46e)],this[_0x4c16be(0x2b5)],this['_awaitingChangeset'],this[_0x4c16be(0x252)]);}[_0x5deefc(0x2e9)](){var _0xcd48f4=_0x5deefc;return this['_revisionService'][_0xcd48f4(0x377)](this['unitID']);}['_incrementRevisionNumber'](){var _0x35561a=_0x5deefc;this[_0x35561a(0x1df)][_0x35561a(0x1bf)](this['unitID']);}['_executeRemoteChangeset'](_0x46c397){var _0x3716c6=_0x5deefc,_0x1a8d9e;let _0x326b36=this[_0x3716c6(0x40d)](_0x46c397);_0x326b36=this['_transformRemoteChangesetByStateCache'](_0x326b36);const _0x3223f1=sequenceExecute(_0x326b36[_0x3716c6(0x35f)],this[_0x3716c6(0x215)],{'fromCollab':!0x0});if(!_0x3223f1[_0x3716c6(0x1f0)])throw _0x3223f1[_0x3716c6(0x2ac)]instanceof Error?_0x3223f1['error']:new Error((_0x1a8d9e=_0x3223f1[_0x3716c6(0x2ac)])!=null?_0x1a8d9e:_0x3716c6(0x249));this[_0x3716c6(0x23d)](_0x326b36),this['_transformStateCache'](_0x326b36),this[_0x3716c6(0x1d1)](_0x46c397),this['_transformSelections'](_0x326b36),this['_syncEditingCollabCursor'](_0x326b36),this[_0x3716c6(0x259)]();}};__name(_CollaborationState,'CollaborationState');let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0x370e3f,_0x31c76d,_0x30984f,_0x2bff30,_0xa4951,_0x13621c,_0x1ce0c0,_0x5e9c50,_0xcb38,_0x527a03){var _0x4772ce=_0x5deefc;super(_0x370e3f,_0x31c76d,null,[],_0x30984f,_0x1ce0c0,_0x13621c,_0x2bff30,_0x527a03),__publicField(this,_0x4772ce(0x1cc),'synced'),(this[_0x4772ce(0x321)]=_0xa4951,this['_logService']=_0x5e9c50,this[_0x4772ce(0x34c)]=_0xcb38,this[_0x4772ce(0x483)]=_0x527a03);}['appendMutation'](_0x306613){var _0x4cb781=_0x5deefc;const _0x287663=this['_injector']['createInstance'](PendingState,this[_0x4cb781(0x46e)],this[_0x4cb781(0x2b5)],[_0x306613],this[_0x4cb781(0x1c2)]);return _0x287663[_0x4cb781(0x30d)](),_0x287663[_0x4cb781(0x40a)](),_0x287663;}['onRemoteChangeset'](_0x504325){var _0x4296b1=_0x5deefc;if(this[_0x4296b1(0x470)](_0x504325))return this[_0x4296b1(0x321)][_0x4296b1(0x371)](FetchingMissState,this['unitID'],this[_0x4296b1(0x2b5)],null,[],null,[_0x504325],this[_0x4296b1(0x1c2)]);try{const _0x381b56=this[_0x4296b1(0x34c)][_0x4296b1(0x4b4)](_0x504325,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x381b56)){const {c1Prime:_0x3ac095}=_0x381b56;return this['_executeRemoteChangeset'](_0x3ac095),this;}throw _0x381b56['error'];}catch(_0x2ad72d){return this['_logService'][_0x4296b1(0x2ac)](_0x2ad72d),this['_onConflict'](!0x1);}}['_onConflict'](_0x2871fa){var _0x267c98=_0x5deefc;return this[_0x267c98(0x321)][_0x267c98(0x371)](ConflictState,this[_0x267c98(0x46e)],this['type'],null,[],this['_handler'],_0x2871fa);}[_0x5deefc(0x4c5)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){var _0x705892=_0x5deefc;throw new Error(_0x705892(0x338));}[_0x5deefc(0x26c)](){return this;}['toggleOffline'](){var _0x1255f8=_0x5deefc;return this[_0x1255f8(0x321)][_0x1255f8(0x371)](OfflineState,this[_0x1255f8(0x46e)],this[_0x1255f8(0x2b5)],null,[],this[_0x1255f8(0x1c2)]);}[_0x5deefc(0x30f)](){return this;}[_0x5deefc(0x278)](){var _0x5892dc=_0x5deefc;throw new Error(_0x5892dc(0x24a));}[_0x5deefc(0x1c9)](){var _0x2ff47e=_0x5deefc;const _0x438eeb=this[_0x2ff47e(0x1df)][_0x2ff47e(0x377)](this['unitID']);return this[_0x2ff47e(0x1c2)][_0x2ff47e(0x22d)]({'from':_0x438eeb,'to':0x0}),this[_0x2ff47e(0x321)][_0x2ff47e(0x371)](FetchingMissState,this[_0x2ff47e(0x46e)],this[_0x2ff47e(0x2b5)],null,[],null,[],this[_0x2ff47e(0x1c2)]);}},__name(_a6,_0x5deefc(0x45e)),_a6);SyncedState=__decorateClass$d([__decorateParam$d(0x3,Inject(RevisionService)),__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,IUndoRedoService),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,Optional(ILocalCacheService))],SyncedState);var _a7;let PendingState=(_a7=class extends CollaborationState{constructor(_0x5f49c8,_0x525f33,_0x2adf00,_0x57a945,_0x29d557,_0x19f83e,_0x1bdd00,_0x3fcba6,_0x5a66d5,_0x42f218,_0xefeaf9,_0xc2f7b8,_0xd52c92,_0x4f477c){var _0x53b733=_0x5deefc;super(_0x5f49c8,_0x525f33,null,_0x2adf00,_0x57a945,_0x5a66d5,_0xd52c92,_0x19f83e,_0x4f477c),__publicField(this,_0x53b733(0x1cc),_0x53b733(0x40b)),__publicField(this,_0x53b733(0x1cb),null),__publicField(this,_0x53b733(0x3eb),null),(this['_injector']=_0x29d557,this[_0x53b733(0x24b)]=_0x1bdd00,this[_0x53b733(0x1b0)]=_0x3fcba6,this[_0x53b733(0x32a)]=_0x42f218,this[_0x53b733(0x34c)]=_0xefeaf9,this[_0x53b733(0x40e)]=_0xc2f7b8);}['appendMutation'](_0xeb7d7d){var _0x58a185=_0x5deefc;return this[_0x58a185(0x252)]['push'](_0xeb7d7d),this[_0x58a185(0x40a)](),this;}[_0x5deefc(0x3c7)](_0xcf9b93){var _0x2ed03c=_0x5deefc;if(this['_checkMissing'](_0xcf9b93))return this['_clearScheduledTask'](),this[_0x2ed03c(0x321)][_0x2ed03c(0x371)](FetchingMissState,this[_0x2ed03c(0x46e)],this[_0x2ed03c(0x2b5)],null,this[_0x2ed03c(0x252)],null,[_0xcf9b93],this[_0x2ed03c(0x1c2)]);try{const _0x1ead9c=this['_transformService']['transformMutationsWithChangeset'](_0xcf9b93,this[_0x2ed03c(0x252)]);if(isTransformMutationsWithChangesetSuccess(_0x1ead9c)){const {c1Prime:_0x482721,m2Prime:_0xfc2fa0}=_0x1ead9c;this[_0x2ed03c(0x3cc)](_0x482721);const _0x3f553d=this[_0x2ed03c(0x321)][_0x2ed03c(0x371)](PendingState,this[_0x2ed03c(0x46e)],this[_0x2ed03c(0x2b5)],_0xfc2fa0,this['_handler']);this[_0x2ed03c(0x44e)]();const _0x4174a5=new Date()['getTime'](),_0x186929=this[_0x2ed03c(0x1cb)]?Math['max'](this[_0x2ed03c(0x1cb)]-_0x4174a5,0x0):this[_0x2ed03c(0x1fb)]();return _0x3f553d['_schedule'](_0x186929),_0x3f553d;}throw _0x1ead9c[_0x2ed03c(0x2ac)];}catch(_0x3296b1){return this[_0x2ed03c(0x1b0)][_0x2ed03c(0x2ac)](_0x3296b1),this[_0x2ed03c(0x4c4)](!0x1);}}[_0x5deefc(0x4c5)](){var _0x4df8a0=_0x5deefc;throw new Error(_0x4df8a0(0x419));}[_0x5deefc(0x2b7)](){var _0x456419=_0x5deefc;throw new Error(_0x456419(0x4a3));}['onRemoteRetry'](){return this;}[_0x5deefc(0x30b)](){var _0x1c0843=_0x5deefc;return this[_0x1c0843(0x44e)](),this[_0x1c0843(0x321)]['createInstance'](OfflineState,this['unitID'],this[_0x1c0843(0x2b5)],null,this['_pendingMutations'],this['_handler']);}[_0x5deefc(0x30f)](){return this;}[_0x5deefc(0x30d)](_0x35ade4){var _0x14e986=_0x5deefc;const _0x47fe19=_0x35ade4!=null?_0x35ade4:this[_0x14e986(0x1fb)]();this[_0x14e986(0x1cb)]=new Date()['getTime']()+_0x47fe19,this[_0x14e986(0x3eb)]=setTimeout(()=>{var _0x5904e7=_0x14e986;this[_0x5904e7(0x44e)]();let _0x193a3b=null;switch(this['type']){case UniverType[_0x5904e7(0x4a9)]:{_0x193a3b=assembleSheetChangeset(this[_0x5904e7(0x252)],this[_0x5904e7(0x46e)],this[_0x5904e7(0x40e)],this[_0x5904e7(0x1df)],this[_0x5904e7(0x24b)]);break;}case UniverType[_0x5904e7(0x385)]:{this[_0x5904e7(0x252)][_0x5904e7(0x287)](_0x2145c2=>_0x2145c2['id']===RichTextEditingMutation['id'])?_0x193a3b=assembleDocChangeset(this[_0x5904e7(0x252)],this[_0x5904e7(0x46e)],this['_univerInstanceService'],this[_0x5904e7(0x1df)],this['_memberService']):_0x193a3b=assembleSheetChangeset(this['_pendingMutations'],this[_0x5904e7(0x46e)],this['_univerInstanceService'],this[_0x5904e7(0x1df)],this['_memberService']);break;}default:throw new Error(_0x5904e7(0x2fe)+this['type']+_0x5904e7(0x1fd));}const {changeset:_0x58f490,pendingMutations:_0x4046e5}=_0x193a3b;this[_0x5904e7(0x1c2)][_0x5904e7(0x2f9)](_0x58f490);const _0x5d6cf2=_0x4046e5[_0x5904e7(0x2f2)]?this[_0x5904e7(0x321)][_0x5904e7(0x371)](AwaitingWithPendingState,this[_0x5904e7(0x46e)],this[_0x5904e7(0x2b5)],_0x58f490,_0x4046e5,this['_handler'],void 0x0):this[_0x5904e7(0x321)]['createInstance'](AwaitingState,this[_0x5904e7(0x46e)],this[_0x5904e7(0x2b5)],_0x58f490,this[_0x5904e7(0x1c2)]);_0x5d6cf2[_0x5904e7(0x40a)](),this[_0x5904e7(0x1c2)][_0x5904e7(0x450)](this,_0x5d6cf2);},_0x47fe19);}['_getSendChangesetTimeout'](){var _0x54cbe8=_0x5deefc,_0x25e99e;const _0x2f542f=this['_configService'][_0x54cbe8(0x365)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x25e99e=_0x2f542f==null?void 0x0:_0x2f542f[_0x54cbe8(0x2c2)])!=null?_0x25e99e:DEFAULT_SEND_CHANGESET_TIMEOUT;}[_0x5deefc(0x278)](){var _0x115998=_0x5deefc;throw new Error(_0x115998(0x413));}[_0x5deefc(0x44e)](){var _0x12607d=_0x5deefc;this[_0x12607d(0x3eb)]!=null&&(clearTimeout(this[_0x12607d(0x3eb)]),this['_sendingTimer']=null);}[_0x5deefc(0x4c4)](_0xe04c7c){var _0x12357f=_0x5deefc;return this[_0x12357f(0x44e)](),this['_injector'][_0x12357f(0x371)](ConflictState,this[_0x12357f(0x46e)],this[_0x12357f(0x2b5)],null,this[_0x12357f(0x252)],this['_handler'],_0xe04c7c);}},__name(_a7,_0x5deefc(0x428)),_a7);PendingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,Inject(MemberService)),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,IConfigService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUniverInstanceService),__decorateParam$d(0xc,IUndoRedoService),__decorateParam$d(0xd,Optional(ILocalCacheService))],PendingState);var _a8;let AwaitingState=(_a8=class extends CollaborationState{constructor(_0x55f788,_0x5d298d,_0x3dc672,_0x45c266,_0x4fdd9a,_0x259834,_0x9391a2,_0xf203e3,_0xb7837f,_0x207b9b,_0x1eae21){var _0x7b96ef=_0x5deefc;super(_0x55f788,_0x5d298d,_0x3dc672,[],_0x45c266,_0x9391a2,_0x207b9b,_0x259834,_0x1eae21),__publicField(this,'status',_0x7b96ef(0x3e2)),__publicField(this,_0x7b96ef(0x31c),0x0),__publicField(this,_0x7b96ef(0x3a6)),__publicField(this,_0x7b96ef(0x1e5)),(this[_0x7b96ef(0x321)]=_0x4fdd9a,this['_logService']=_0xf203e3,this[_0x7b96ef(0x34c)]=_0xb7837f);}[_0x5deefc(0x33f)](_0x42075c){var _0x10d410=_0x5deefc;this[_0x10d410(0x44e)]();const _0x3ee786=this['_injector'][_0x10d410(0x371)](AwaitingWithPendingState,this['unitID'],this[_0x10d410(0x2b5)],this[_0x10d410(0x3ba)],[_0x42075c],this['_handler'],this[_0x10d410(0x3a6)]);return _0x3ee786[_0x10d410(0x40a)](),_0x3ee786;}['onRemoteChangeset'](_0x246256){var _0x10c967=_0x5deefc;if(this['_checkMissing'](_0x246256))return this['_clearScheduledTask'](),this[_0x10c967(0x321)]['createInstance'](FetchingMissState,this[_0x10c967(0x46e)],this[_0x10c967(0x2b5)],this[_0x10c967(0x3ba)],[],null,[_0x246256],this['_handler']);try{const _0x50d926=this[_0x10c967(0x34c)][_0x10c967(0x4ed)]([_0x246256],[this[_0x10c967(0x3ba)]],!0x1);if(isTransformChangesetsSuccess(_0x50d926)){const {c1Prime:_0x230697,c2Prime:_0x439930}=_0x50d926;this[_0x10c967(0x3cc)](_0x230697[0x0]),_0x439930[0x0][_0x10c967(0x26a)]=this[_0x10c967(0x2e9)](),this[_0x10c967(0x44e)]();const _0x367e26=this['_injector'][_0x10c967(0x371)](AwaitingState,this[_0x10c967(0x46e)],this['type'],_0x439930[0x0],this[_0x10c967(0x1c2)]);return _0x367e26[_0x10c967(0x40a)](),_0x367e26;}return this['_onConflict'](!0x1);}catch(_0x345250){return this[_0x10c967(0x1b0)][_0x10c967(0x2ac)](_0x345250),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x4e1530){var _0x97b482=_0x5deefc;this[_0x97b482(0x44e)]();const _0x26d6c1=this[_0x97b482(0x1df)][_0x97b482(0x377)](this['unitID']);if(_0x4e1530[_0x97b482(0x327)]<_0x26d6c1-0x1)return this;if(this['_checkMissing'](_0x4e1530))return this[_0x97b482(0x321)][_0x97b482(0x371)](FetchingMissState,this[_0x97b482(0x46e)],this[_0x97b482(0x2b5)],null,[],this[_0x97b482(0x3ba)],[],this[_0x97b482(0x1c2)]);this[_0x97b482(0x259)]();const _0x127e83=this['_injector'][_0x97b482(0x371)](SyncedState,this[_0x97b482(0x46e)],this[_0x97b482(0x2b5)],this[_0x97b482(0x1c2)]);return _0x127e83[_0x97b482(0x40a)](),_0x127e83;}[_0x5deefc(0x2b7)](_0x3d7ce1){var _0x4f043b=_0x5deefc;return this[_0x4f043b(0x4c4)](!!(_0x3d7ce1!=null&&_0x3d7ce1['isPermissionRej']));}[_0x5deefc(0x26c)](_0x14fbaf){var _0x37302d=_0x5deefc;return this[_0x37302d(0x31c)]>MAX_RETRY_TIMEOUT?this[_0x37302d(0x30b)]():(this['_resendTimer']=createTimerObservable$(this[_0x37302d(0x31c)],{'timeout':this[_0x37302d(0x31c)],'reqId':_0x14fbaf['reqId']}),this[_0x37302d(0x1e5)]=this[_0x37302d(0x3a6)][_0x37302d(0x49c)](({reqId:_0x3d3850,timeout:_0x1a553e})=>{this['_resendWithTimeout'](_0x3d3850,_0x1a553e);}),this);}[_0x5deefc(0x30b)](){var _0x3bf6e6=_0x5deefc;return this[_0x3bf6e6(0x44e)](),this[_0x3bf6e6(0x321)][_0x3bf6e6(0x371)](OfflineState,this[_0x3bf6e6(0x46e)],this[_0x3bf6e6(0x2b5)],this[_0x3bf6e6(0x3ba)],[],this[_0x3bf6e6(0x1c2)]);}[_0x5deefc(0x30f)](){return this;}['resend'](){var _0x3fe030=_0x5deefc;this[_0x3fe030(0x1c2)]['onSendChangeset'](this[_0x3fe030(0x3ba)]);}['_onConflict'](_0x13b12d){var _0x5a3662=_0x5deefc;return this[_0x5a3662(0x44e)](),this['_injector'][_0x5a3662(0x371)](ConflictState,this[_0x5a3662(0x46e)],this[_0x5a3662(0x2b5)],this[_0x5a3662(0x3ba)],[],this[_0x5a3662(0x1c2)],_0x13b12d);}[_0x5deefc(0x4bb)](_0x27fabf,_0x2752f0){var _0x1dd495=_0x5deefc,_0x15ad37;_0x27fabf===((_0x15ad37=this[_0x1dd495(0x3ba)])==null?void 0x0:_0x15ad37[_0x1dd495(0x20b)])&&(this[_0x1dd495(0x278)](),this['_resendTimeout']=_0x2752f0===0x0?0x3e8:_0x2752f0*0x2);}['_clearScheduledTask'](){var _0x5909d5=_0x5deefc,_0x79a9d6;(_0x79a9d6=this[_0x5909d5(0x1e5)])==null||_0x79a9d6[_0x5909d5(0x1db)](),this[_0x5909d5(0x31c)]=0x0;}},__name(_a8,_0x5deefc(0x2b0)),_a8);AwaitingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,IUndoRedoService),__decorateParam$d(0xa,Optional(ILocalCacheService))],AwaitingState);var _a9;let AwaitingWithPendingState=(_a9=class extends CollaborationState{constructor(_0x4e3d20,_0x2003ac,_0x484453,_0x3a5b13,_0x41ff5c,_0x4cbeea,_0x2adf12,_0x3523dd,_0x4c92e5,_0x1efef1,_0x56c46d,_0x3cbb86,_0x20bf11){var _0x32ac3c=_0x5deefc;super(_0x4e3d20,_0x2003ac,_0x484453,_0x3a5b13,_0x41ff5c,_0x4c92e5,_0x3cbb86,_0x3523dd,_0x20bf11),__publicField(this,_0x32ac3c(0x1cc),_0x32ac3c(0x332)),__publicField(this,'_resendTimeout',0x0),__publicField(this,_0x32ac3c(0x3a6)),__publicField(this,_0x32ac3c(0x1e5)),(this[_0x32ac3c(0x321)]=_0x2adf12,this['_logService']=_0x1efef1,this[_0x32ac3c(0x34c)]=_0x56c46d,this[_0x32ac3c(0x483)]=_0x20bf11,_0x4cbeea&&(this[_0x32ac3c(0x3a6)]=_0x4cbeea,this[_0x32ac3c(0x1e5)]=this[_0x32ac3c(0x3a6)][_0x32ac3c(0x49c)](({reqId:_0x3f0f2f,timeout:_0x4dc5d1})=>{var _0x4ce057=_0x32ac3c;this[_0x4ce057(0x4bb)](_0x3f0f2f,_0x4dc5d1);})));}[_0x5deefc(0x33f)](_0xa64adf){var _0x3454cf=_0x5deefc;return this[_0x3454cf(0x252)][_0x3454cf(0x202)](_0xa64adf),this;}[_0x5deefc(0x3c7)](_0x3649c3){var _0x6074ed=_0x5deefc;if(this[_0x6074ed(0x470)](_0x3649c3))return this[_0x6074ed(0x44e)](),this['_injector'][_0x6074ed(0x371)](FetchingMissState,this[_0x6074ed(0x46e)],this[_0x6074ed(0x2b5)],this[_0x6074ed(0x3ba)],this[_0x6074ed(0x252)],null,[_0x3649c3],this[_0x6074ed(0x1c2)]);try{const _0x3885b5=this['_transformService'][_0x6074ed(0x4ed)]([_0x3649c3],[this[_0x6074ed(0x3ba)]],!0x1);if(isTransformChangesetsSuccess(_0x3885b5)){const {c1Prime:_0x1ccf67,c2Prime:_0xdadbf3}=_0x3885b5,_0x315a79=this[_0x6074ed(0x34c)]['transformMutationsWithChangeset'](_0x1ccf67[0x0],this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x315a79)){const {c1Prime:_0x3f100a,m2Prime:_0x2b977e}=_0x315a79;return this[_0x6074ed(0x3cc)](_0x3f100a),_0xdadbf3[0x0][_0x6074ed(0x26a)]=this[_0x6074ed(0x2e9)](),this[_0x6074ed(0x44e)](),this[_0x6074ed(0x321)][_0x6074ed(0x371)](AwaitingWithPendingState,this[_0x6074ed(0x46e)],this[_0x6074ed(0x2b5)],_0xdadbf3[0x0],_0x2b977e,this['_handler'],void 0x0);}throw _0x315a79[_0x6074ed(0x2ac)];}throw _0x3885b5[_0x6074ed(0x2ac)];}catch(_0x26a133){return this[_0x6074ed(0x1b0)][_0x6074ed(0x2ac)](_0x26a133),this[_0x6074ed(0x4c4)](!0x1);}}[_0x5deefc(0x4c5)](_0x166abf){var _0x13c9b4=_0x5deefc;if(this['_clearScheduledTask'](),this['_checkMissing'](_0x166abf))return this[_0x13c9b4(0x321)]['createInstance'](FetchingMissState,this[_0x13c9b4(0x46e)],this[_0x13c9b4(0x2b5)],null,this[_0x13c9b4(0x252)],this[_0x13c9b4(0x3ba)],[],this['_handler']);this[_0x13c9b4(0x259)]();const _0x6d634c=this['_injector'][_0x13c9b4(0x371)](PendingState,this[_0x13c9b4(0x46e)],this[_0x13c9b4(0x2b5)],this['_pendingMutations'],this[_0x13c9b4(0x1c2)]);return _0x6d634c[_0x13c9b4(0x30d)](),_0x6d634c[_0x13c9b4(0x40a)](),_0x6d634c;}['onRemoteRej'](_0x3e43e6){var _0x1e6489=_0x5deefc;return this['_onConflict'](!!(_0x3e43e6!=null&&_0x3e43e6[_0x1e6489(0x30c)]));}[_0x5deefc(0x26c)](_0x493a0b){var _0x5b02b7=_0x5deefc;return this[_0x5b02b7(0x31c)]>MAX_RETRY_TIMEOUT?this[_0x5b02b7(0x30b)]():(this[_0x5b02b7(0x3a6)]=createTimerObservable$(this[_0x5b02b7(0x31c)],{'timeout':this[_0x5b02b7(0x31c)],'reqId':_0x493a0b[_0x5b02b7(0x20b)]}),this['_sender']=this['_resendTimer'][_0x5b02b7(0x49c)](({reqId:_0x59eb2a,timeout:_0x148ff8})=>{var _0x219c42=_0x5b02b7;this[_0x219c42(0x4bb)](_0x59eb2a,_0x148ff8);}),this);}['toggleOffline'](){var _0x12a5a5=_0x5deefc;return this['_clearScheduledTask'](),this[_0x12a5a5(0x321)][_0x12a5a5(0x371)](OfflineState,this['unitID'],this[_0x12a5a5(0x2b5)],this[_0x12a5a5(0x3ba)],this[_0x12a5a5(0x252)],this['_handler']);}[_0x5deefc(0x30f)](){return this;}[_0x5deefc(0x278)](){var _0x247e1c=_0x5deefc;this[_0x247e1c(0x1c2)][_0x247e1c(0x2f9)](this[_0x247e1c(0x3ba)]);}[_0x5deefc(0x4c4)](_0x56ce74){var _0x4cc1c8=_0x5deefc;return this['_clearScheduledTask'](),this[_0x4cc1c8(0x321)][_0x4cc1c8(0x371)](ConflictState,this['unitID'],this['type'],null,this[_0x4cc1c8(0x252)],this[_0x4cc1c8(0x1c2)],_0x56ce74);}['_resendWithTimeout'](_0x119527,_0x18b2eb){var _0x288051=_0x5deefc,_0x3a8b49;_0x119527===((_0x3a8b49=this[_0x288051(0x3ba)])==null?void 0x0:_0x3a8b49[_0x288051(0x20b)])&&(this[_0x288051(0x278)](),this[_0x288051(0x31c)]=_0x18b2eb===0x0?0x3e8:_0x18b2eb*0x2);}['_clearScheduledTask'](){var _0x17f013=_0x5deefc,_0x22add2;(_0x22add2=this[_0x17f013(0x1e5)])==null||_0x22add2[_0x17f013(0x1db)](),this['_resendTimeout']=0x0;}},__name(_a9,_0x5deefc(0x4e2)),_a9);AwaitingWithPendingState=__decorateClass$d([__decorateParam$d(0x6,Inject(Injector)),__decorateParam$d(0x7,Inject(RevisionService)),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,Optional(ILocalCacheService))],AwaitingWithPendingState);var _a10;let ConflictState=(_a10=class extends CollaborationState{constructor(_0xc32911,_0x4ade48,_0x5ea720,_0x31b5b5,_0x1c1c4b,_0x5a8719=!0x1,_0xd7650a,_0x24d0ee,_0x3be44a,_0x546c71,_0x34e490,_0x510dd4,_0x381168){var _0x49de1f=_0x5deefc;super(_0xc32911,_0x4ade48,_0x5ea720,_0x31b5b5,_0x1c1c4b,_0x24d0ee,_0x3be44a,_0x546c71,_0x381168),__publicField(this,_0x49de1f(0x1cc),_0x49de1f(0x1b5)),(this[_0x49de1f(0x446)]=_0x5a8719,this[_0x49de1f(0x288)]=_0xd7650a,this[_0x49de1f(0x250)]=_0x34e490,this[_0x49de1f(0x214)]=_0x510dd4,this['localCacheService']=_0x381168,this[_0x49de1f(0x1de)](),this['_clearLocalCache'](),this[_0x49de1f(0x46a)]());}[_0x5deefc(0x33f)](){return this;}['onRemoteChangeset'](){return this;}[_0x5deefc(0x4c5)](){return this;}[_0x5deefc(0x2b7)](){return this;}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5deefc(0x44a)](){var _0x42d7e8=_0x5deefc,_0x76a05;(_0x76a05=this[_0x42d7e8(0x1ae)])==null||_0x76a05[_0x42d7e8(0x463)](this[_0x42d7e8(0x46e)],this[_0x42d7e8(0x2b5)],null,[]);}[_0x5deefc(0x1de)](){var _0x404283=_0x5deefc;this['_isPermissionRej']?this[_0x404283(0x214)][_0x404283(0x333)]({'id':CollaborationUIEventId[_0x404283(0x33b)]}):this[_0x404283(0x214)][_0x404283(0x333)]({'id':CollaborationUIEventId[_0x404283(0x203)]});}['_disableEditing'](){var _0xe3f58a=_0x5deefc;this[_0xe3f58a(0x288)][_0xe3f58a(0x461)](new WorkbookEditablePermission(this['unitID'])['id'],!0x1);}},__name(_a10,_0x5deefc(0x1f8)),_a10);ConflictState=__decorateClass$d([__decorateParam$d(0x6,Inject(IPermissionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Inject(RevisionService)),__decorateParam$d(0xa,Inject(LocaleService)),__decorateParam$d(0xb,Inject(CollaborationUIEventService)),__decorateParam$d(0xc,Optional(ILocalCacheService))],ConflictState);var _a11;let OfflineState=(_a11=class extends CollaborationState{constructor(_0x3ce4f7,_0x2fc11c,_0x53ad3f,_0x4526bf,_0x4651b7,_0x438033,_0x439d9f,_0x101b28,_0xd1b3ac,_0x577bb7){var _0x32852c=_0x5deefc;super(_0x3ce4f7,_0x2fc11c,_0x53ad3f,_0x4526bf,_0x4651b7,_0x101b28,_0xd1b3ac,_0x439d9f,_0x577bb7),__publicField(this,_0x32852c(0x1cc),'offline'),this['_injector']=_0x438033;}[_0x5deefc(0x33f)](_0x594047){var _0x4b40b5=_0x5deefc;return this[_0x4b40b5(0x252)][_0x4b40b5(0x202)](_0x594047),this[_0x4b40b5(0x40a)](),this;}['onRemoteChangeset'](_0x177581){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x5deefc(0x4c5)](){var _0x36f0e6=_0x5deefc;throw new Error(_0x36f0e6(0x260));}[_0x5deefc(0x2b7)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x5deefc(0x30b)](){return this;}['toggleOnline'](){var _0x289d07=_0x5deefc;const {_injector:_0x2e1dd8,_pendingMutations:_0x1be5d6,_awaitingChangeset:_0xa854af,unitID:_0x2ebaa7,_handler:_0x4761a0,type:_0x21f7b3}=this,_0x2e0b46=createOnlineState(_0x2e1dd8,_0x2ebaa7,_0x21f7b3,_0xa854af,_0x1be5d6,_0x4761a0);return _0x2e0b46 instanceof PendingState?_0x2e0b46[_0x289d07(0x30d)]():(_0x2e0b46 instanceof AwaitingWithPendingState||_0x2e0b46 instanceof AwaitingState)&&_0x2e0b46[_0x289d07(0x278)](),_0x2e0b46;}['resend'](){var _0x26ad84=_0x5deefc;throw new Error(_0x26ad84(0x2dc));}},__name(_a11,_0x5deefc(0x20e)),_a11);OfflineState=__decorateClass$d([__decorateParam$d(0x5,Inject(Injector)),__decorateParam$d(0x6,Inject(RevisionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Optional(ILocalCacheService))],OfflineState);var _a12;let FetchingMissState=(_a12=class extends CollaborationState{constructor(_0x58728f,_0x2268d6,_0x3cae22,_0x2615e8,_0x155fe9,_0xe54e90,_0x1afd60,_0x1a8071,_0x5e476e,_0x39c8ea,_0x36420b,_0x411d4a,_0x2ccdd0,_0x411a0d){var _0x4a74a9=_0x5deefc;super(_0x58728f,_0x2268d6,_0x3cae22,_0x2615e8,_0x1afd60,_0x36420b,_0x411d4a,_0x5e476e,_0x411a0d),__publicField(this,_0x4a74a9(0x1cc),_0x4a74a9(0x1e2)),(this[_0x4a74a9(0x28a)]=_0x155fe9,this['_queuedRemoteChangesets']=_0xe54e90,this[_0x4a74a9(0x321)]=_0x1a8071,this[_0x4a74a9(0x1b0)]=_0x39c8ea,this['_transformService']=_0x2ccdd0,this[_0x4a74a9(0x483)]=_0x411a0d);}[_0x5deefc(0x314)](_0x247bf0){var _0x5745d7=_0x5deefc;try{const _0x414884=[..._0x247bf0,...this[_0x5745d7(0x205)]],_0x167739=[this[_0x5745d7(0x3ba)]||this[_0x5745d7(0x28a)]][_0x5745d7(0x2a2)](_0x2695ec=>!!_0x2695ec);let _0x4f2ffb,_0x15ea4b;if(_0x167739[_0x5745d7(0x2f2)]){const _0x2edcfb=this[_0x5745d7(0x34c)][_0x5745d7(0x4ed)](_0x414884,_0x167739,!0x1);if(!isTransformChangesetsSuccess(_0x2edcfb))throw _0x2edcfb[_0x5745d7(0x2ac)];_0x4f2ffb=_0x2edcfb[_0x5745d7(0x274)],_0x15ea4b=_0x2edcfb['c2Prime'];}else _0x4f2ffb=_0x414884,_0x15ea4b=[];let _0x5e4e94=this[_0x5745d7(0x252)];_0x4f2ffb[_0x5745d7(0x329)](_0xc088c6=>{var _0x2031f6=_0x5745d7;let _0x5b643e;if(_0x5e4e94[_0x2031f6(0x2f2)]){const _0x597792=this[_0x2031f6(0x34c)][_0x2031f6(0x4b4)](_0xc088c6,_0x5e4e94);if(!isTransformMutationsWithChangesetSuccess(_0x597792))throw _0x597792[_0x2031f6(0x2ac)];_0x5b643e=_0x597792['c1Prime'],_0x5e4e94=_0x597792[_0x2031f6(0x2dd)];}else _0x5b643e=_0xc088c6;this[_0x2031f6(0x3cc)](_0x5b643e);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this['_awaitingChangeset']&&_0x15ea4b[_0x5745d7(0x2f2)]&&(_0x15ea4b[0x0][_0x5745d7(0x26a)]=this[_0x5745d7(0x2e9)]());let _0x3cf55a;if(this['_awaitingChangeset']&&_0x5e4e94[_0x5745d7(0x2f2)]!==0x0)_0x3cf55a=this[_0x5745d7(0x321)]['createInstance'](AwaitingWithPendingState,this[_0x5745d7(0x46e)],this[_0x5745d7(0x2b5)],_0x15ea4b[0x0],_0x5e4e94,this['_handler'],void 0x0);else{if(this[_0x5745d7(0x3ba)]&&_0x5e4e94[_0x5745d7(0x2f2)]===0x0)_0x15ea4b[0x0]['baseRev']=this[_0x5745d7(0x2e9)](),_0x3cf55a=this['_injector'][_0x5745d7(0x371)](AwaitingState,this[_0x5745d7(0x46e)],this[_0x5745d7(0x2b5)],_0x15ea4b[0x0],this['_handler']);else{if(_0x5e4e94['length']!==0x0){const _0x2a368f=this[_0x5745d7(0x321)][_0x5745d7(0x371)](PendingState,this[_0x5745d7(0x46e)],this[_0x5745d7(0x2b5)],_0x5e4e94,this[_0x5745d7(0x1c2)]);_0x2a368f[_0x5745d7(0x30d)](),_0x3cf55a=_0x2a368f;}else _0x3cf55a=this[_0x5745d7(0x321)][_0x5745d7(0x371)](SyncedState,this[_0x5745d7(0x46e)],this[_0x5745d7(0x2b5)],this['_handler']);}}return _0x3cf55a['_updateLocalCache'](),_0x3cf55a;}catch(_0x4efb3b){return this[_0x5745d7(0x1b0)][_0x5745d7(0x2ac)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x4efb3b),this[_0x5745d7(0x321)]['createInstance'](ConflictState,this[_0x5745d7(0x46e)],this['type'],this['_awaitingChangeset'],this[_0x5745d7(0x252)],this[_0x5745d7(0x1c2)],!0x1);}}[_0x5deefc(0x278)](){var _0x2cbf18=_0x5deefc;throw new Error(_0x2cbf18(0x304));}['appendMutation'](_0x40507a){var _0x495c04=_0x5deefc;return this[_0x495c04(0x252)][_0x495c04(0x202)](_0x40507a),this;}[_0x5deefc(0x3c7)](_0x23a236){var _0x400b24=_0x5deefc;return this['_queuedRemoteChangesets'][_0x400b24(0x202)](_0x23a236),this;}[_0x5deefc(0x4c5)](_0x373cb7){var _0x33a883=_0x5deefc;if(this[_0x33a883(0x3ba)])return this[_0x33a883(0x28a)]=this[_0x33a883(0x3ba)],this[_0x33a883(0x3ba)]=null,this;throw new Error(_0x33a883(0x326));}[_0x5deefc(0x2b7)](_0x100c7c){var _0x4b0771=_0x5deefc;return this[_0x4b0771(0x4c4)](!!(_0x100c7c!=null&&_0x100c7c['isPermissionRej']));}[_0x5deefc(0x26c)](){return this;}[_0x5deefc(0x30b)](){var _0x1c8eb0=_0x5deefc;return this['_injector'][_0x1c8eb0(0x371)](OfflineState,this['unitID'],this[_0x1c8eb0(0x2b5)],this[_0x1c8eb0(0x3ba)],this[_0x1c8eb0(0x252)],this[_0x1c8eb0(0x1c2)]);}[_0x5deefc(0x30f)](){return this;}[_0x5deefc(0x4c4)](_0x34e5ab){var _0x6fb05a=_0x5deefc;return this[_0x6fb05a(0x321)][_0x6fb05a(0x371)](ConflictState,this[_0x6fb05a(0x46e)],this[_0x6fb05a(0x2b5)],this['_awaitingChangeset'],this[_0x6fb05a(0x252)],this['_handler'],_0x34e5ab);}},__name(_a12,_0x5deefc(0x1e8)),_a12);FetchingMissState=__decorateClass$d([__decorateParam$d(0x7,Inject(Injector)),__decorateParam$d(0x8,Inject(RevisionService)),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ICommandService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,ITransformService),__decorateParam$d(0xd,Optional(ILocalCacheService))],FetchingMissState);function createOnlineState(_0x3fcb0d,_0x2910f6,_0x2f0af9,_0x135c1d,_0x4b65a5,_0x3d7de2){var _0x125669=_0x5deefc;return _0x135c1d&&_0x4b65a5[_0x125669(0x2f2)]?_0x3fcb0d[_0x125669(0x371)](AwaitingWithPendingState,_0x2910f6,_0x2f0af9,_0x135c1d,_0x4b65a5,_0x3d7de2,void 0x0):_0x135c1d?_0x3fcb0d['createInstance'](AwaitingState,_0x2910f6,_0x2f0af9,_0x135c1d,_0x3d7de2):_0x4b65a5['length']?_0x3fcb0d[_0x125669(0x371)](PendingState,_0x2910f6,_0x2f0af9,_0x4b65a5,_0x3d7de2):_0x3fcb0d[_0x125669(0x371)](SyncedState,_0x2910f6,_0x2f0af9,_0x3d7de2);}__name(createOnlineState,_0x5deefc(0x2f0));var __defProp$c=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$c=Object[_0x5deefc(0x4e3)],__decorateClass$c=__name((_0x88639c,_0x1d1242,_0x44a7a5,_0x350567)=>{var _0x47c276=_0x5deefc;for(var _0x373883=_0x350567>0x1?void 0x0:_0x350567?__getOwnPropDesc$c(_0x1d1242,_0x44a7a5):_0x1d1242,_0x42d71e=_0x88639c[_0x47c276(0x2f2)]-0x1,_0x34aae9;_0x42d71e>=0x0;_0x42d71e--)(_0x34aae9=_0x88639c[_0x42d71e])&&(_0x373883=(_0x350567?_0x34aae9(_0x1d1242,_0x44a7a5,_0x373883):_0x34aae9(_0x373883))||_0x373883);return _0x350567&&_0x373883&&__defProp$c(_0x1d1242,_0x44a7a5,_0x373883),_0x373883;},'__decorateClass$c'),__decorateParam$c=__name((_0x4f14c6,_0x2ba264)=>(_0x7cfce6,_0x4f514d)=>_0x2ba264(_0x7cfce6,_0x4f514d,_0x4f14c6),_0x5deefc(0x3ff)),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x496302,_0x433a38,_0x11895e,_0xb87a1,_0x5e8df4,_0x3378b0,_0x292cec,_0x2c76f8,_0x353da9,_0x44eef1,_0x358635,_0x113a86,_0x490cb5){var _0x34e5e2=_0x5deefc;super(),__publicField(this,_0x34e5e2(0x297),new BehaviorSubject(null)),__publicField(this,_0x34e5e2(0x323),this['_state$'][_0x34e5e2(0x272)]()),__publicField(this,_0x34e5e2(0x3cf)),__publicField(this,_0x34e5e2(0x3ce),!0x1),__publicField(this,_0x34e5e2(0x1b3),''),__publicField(this,'_changesetReqId',0x0),__publicField(this,_0x34e5e2(0x2a8),this[_0x34e5e2(0x323)][_0x34e5e2(0x431)](_0x228a63(_0x331c05=>_0x331c05?_0x331c05[_0x34e5e2(0x1cc)]:CollaborationStatus[_0x34e5e2(0x1c5)]),shareReplay(0x1))),__publicField(this,'_transitionLocked',!0x1),__publicField(this,_0x34e5e2(0x45a),[]),(this[_0x34e5e2(0x46e)]=_0x496302,this['session']=_0x433a38,this['_type']=_0x11895e,this[_0x34e5e2(0x321)]=_0xb87a1,this[_0x34e5e2(0x45f)]=_0x5e8df4,this[_0x34e5e2(0x250)]=_0x3378b0,this[_0x34e5e2(0x1df)]=_0x292cec,this[_0x34e5e2(0x3bb)]=_0x2c76f8,this[_0x34e5e2(0x1b0)]=_0x353da9,this['_commandService']=_0x44eef1,this[_0x34e5e2(0x288)]=_0x358635,this[_0x34e5e2(0x2bf)]=_0x113a86,this[_0x34e5e2(0x1ae)]=_0x490cb5);}get[_0x5deefc(0x37d)](){var _0x158166=_0x5deefc;return this[_0x158166(0x3cf)];}async[_0x5deefc(0x21f)](){var _0x52555b=_0x5deefc;if(this[_0x52555b(0x37d)])throw new Error(_0x52555b(0x2aa));await this[_0x52555b(0x499)]();}[_0x5deefc(0x2ab)](){var _0x4b43c6=_0x5deefc;return this[_0x4b43c6(0x3ce)]=!0x0,toDisposable(()=>{var _0x406347=_0x4b43c6;this[_0x406347(0x3ce)]=!0x1,this[_0x406347(0x4e4)]();});}[_0x5deefc(0x2fb)](_0x3f3b2f){var _0x1f2aab=_0x5deefc;this[_0x1f2aab(0x23a)](_0x3f3b2f);}[_0x5deefc(0x2b4)](_0x117e94){var _0x57bd82=_0x5deefc;this[_0x57bd82(0x3cf)]=_0x117e94,this[_0x57bd82(0x297)][_0x57bd82(0x41a)](_0x117e94);}async[_0x5deefc(0x499)](){var _0x4f8d44=_0x5deefc,_0x2c2f0f;this['_updateState'](await this['_createInitialState']()),this[_0x4f8d44(0x2bf)]&&((_0x2c2f0f=this[_0x4f8d44(0x2bf)])==null||_0x2c2f0f[_0x4f8d44(0x4f3)](this['unitID']),this[_0x4f8d44(0x415)](this['_singleActiveUnitService'][_0x4f8d44(0x4b9)](this[_0x4f8d44(0x46e)])[_0x4f8d44(0x49c)](_0x324666=>{var _0x59ece8=_0x4f8d44;this[_0x59ece8(0x1b0)]['debug']('[CollaborationEntity]',_0x59ece8(0x34e),_0x324666),_0x324666===UnitStatus['OTHER_CLIENTS_EDITING']?(this[_0x59ece8(0x3bb)][_0x59ece8(0x333)]({'id':CollaborationUIEventId['OTHER_CLIENT_EDITING']}),this[_0x59ece8(0x288)][_0x59ece8(0x461)](new WorkbookEditablePermission(this[_0x59ece8(0x46e)])['id'],!0x1),this[_0x59ece8(0x288)][_0x59ece8(0x2cd)](!0x1)):(this[_0x59ece8(0x288)]['updatePermissionPoint'](new WorkbookEditablePermission(this['unitID'])['id'],!0x0),this[_0x59ece8(0x288)][_0x59ece8(0x2cd)](!0x0));})));let _0x4d8e8c=!0x1;return this['disposeWithMe'](this[_0x4f8d44(0x289)][_0x4f8d44(0x4fc)]['subscribe'](_0x3edeea=>{var _0x36aab5=_0x4f8d44;_0x3edeea===SessionStatus['ONLINE']?this[_0x36aab5(0x276)](_0x4d8e8c):_0x3edeea===SessionStatus['OFFLINE']&&(_0x4d8e8c=!0x0,this[_0x36aab5(0x390)]());})),this['disposeWithMe'](this[_0x4f8d44(0x289)][_0x4f8d44(0x37b)][_0x4f8d44(0x49c)](_0xcaf149=>{var _0x248488=_0x4f8d44;try{switch(_0xcaf149[_0x248488(0x4b8)]){case CollaborationEvent[_0x248488(0x1ce)]:{this[_0x248488(0x3de)](parseProtocolChangeset(_0xcaf149[_0x248488(0x3e4)]));break;}case CollaborationEvent[_0x248488(0x376)]:{this[_0x248488(0x32b)](_0xcaf149[_0x248488(0x3e4)]);break;}case CollaborationEvent[_0x248488(0x3d1)]:{this[_0x248488(0x486)]();break;}case CollaborationEvent['CHANGESET_SHOULD_RETRY']:{this[_0x248488(0x1f1)](_0xcaf149[_0x248488(0x3e4)]);break;}case CollaborationEvent['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x248488(0x38f)](_0xcaf149['data']['changesets'][_0x248488(0x2ef)](_0x554ca1=>parseProtocolChangeset(_0x554ca1)));break;}case CollaborationEvent[_0x248488(0x258)]:{this[_0x248488(0x486)]({'isPermissionRej':!0x0});break;}case CollaborationEvent[_0x248488(0x2ae)]:break;}}catch(_0x3e7b50){throw console[_0x248488(0x2ac)](_0x248488(0x46f),_0x3e7b50),_0x3e7b50;}})),this[_0x4f8d44(0x3cf)];}[_0x5deefc(0x4ef)](){var _0x3ba04e=_0x5deefc;this[_0x3ba04e(0x2a3)]=!0x1;}[_0x5deefc(0x243)](){var _0x455326=_0x5deefc;if(this['_transitionLocked'])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x455326(0x2a3)]=!0x0;}[_0x5deefc(0x23a)](_0x327197){var _0x4b3e1b=_0x5deefc;this[_0x4b3e1b(0x243)](),this[_0x4b3e1b(0x2b4)](this[_0x4b3e1b(0x3cf)][_0x4b3e1b(0x33f)](_0x327197)),this[_0x4b3e1b(0x4ef)]();}[_0x5deefc(0x3de)](_0xe0aa68){var _0x430c2d=_0x5deefc;if(!(_0xe0aa68[_0x430c2d(0x327)]<=this[_0x430c2d(0x1df)]['getCurrentRevOfUnit'](this[_0x430c2d(0x46e)]))){if(this[_0x430c2d(0x3ce)]){this['_remoteChangesetQueue'][_0x430c2d(0x202)](_0xe0aa68);return;}this['_applyRemoteChangeset'](_0xe0aa68);}}['_exhaustRemoteChangesetQueue'](){var _0x5caaa8=_0x5deefc;this[_0x5caaa8(0x45a)][_0x5caaa8(0x329)](_0x578993=>this['_applyRemoteChangeset'](_0x578993)),this['_remoteChangesetQueue']=[];}[_0x5deefc(0x20a)](_0x22ae24){var _0xd85f44=_0x5deefc;const _0x4233e6=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0xd85f44(0x45f)]['interceptor'][_0xd85f44(0x2e3)]()[_0xd85f44(0x423)])(_0x22ae24['mutations'],null)||_0x22ae24[_0xd85f44(0x35f)],_0x1ffb15={..._0x22ae24,'mutations':_0x4233e6};this['_lockTransition'](),this[_0xd85f44(0x2b4)](this['_state'][_0xd85f44(0x3c7)](_0x1ffb15)),this[_0xd85f44(0x4ef)]();}['_onRemoteACK'](_0xb239c0){var _0xdcc3c=_0x5deefc;this[_0xdcc3c(0x243)](),this[_0xdcc3c(0x2b4)](this[_0xdcc3c(0x3cf)][_0xdcc3c(0x4c5)](_0xb239c0)),this[_0xdcc3c(0x4ef)]();}[_0x5deefc(0x486)](_0x199f2b){var _0x2b9ddf=_0x5deefc;this[_0x2b9ddf(0x243)](),this[_0x2b9ddf(0x2b4)](this['_state'][_0x2b9ddf(0x2b7)](_0x199f2b)),this[_0x2b9ddf(0x4ef)]();}['_onRemoteRetry'](_0x4e4a56){var _0x2f80ec=_0x5deefc;this[_0x2f80ec(0x243)](),this[_0x2f80ec(0x2b4)](this[_0x2f80ec(0x3cf)]['onRemoteRetry'](_0x4e4a56)),this[_0x2f80ec(0x4ef)]();}['_onFetchMissResult'](_0x40d3ac){var _0x3bccfb=_0x5deefc;if(!(this[_0x3bccfb(0x3cf)]instanceof FetchingMissState))throw new TypeError(_0x3bccfb(0x47a));const _0x3cee76=_0x40d3ac[_0x3bccfb(0x2ef)](_0x45e8a3=>{var _0x2f7a75=_0x3bccfb;const _0x93cb8c=this['_compressMutationService'][_0x2f7a75(0x1dd)][_0x2f7a75(0x432)](this[_0x2f7a75(0x45f)][_0x2f7a75(0x1dd)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x45e8a3[_0x2f7a75(0x35f)],null)||_0x45e8a3['mutations'];return{..._0x45e8a3,'mutations':_0x93cb8c};});this['_lockTransition'](),this[_0x3bccfb(0x2b4)](this['_state']['onMissedChangesetFetched'](_0x3cee76)),this[_0x3bccfb(0x4ef)]();}['_toggleOffline'](){var _0x135688=_0x5deefc;this['_lockTransition'](),this[_0x135688(0x2b4)](this['_state']['toggleOffline']()),this[_0x135688(0x4ef)]();}['_toggleOnline'](_0x3e9913=!0x1){var _0x440f4f=_0x5deefc;this[_0x440f4f(0x243)](),this['_updateState'](this[_0x440f4f(0x3cf)][_0x440f4f(0x30f)]()),this[_0x440f4f(0x4ef)]();const _0x344f9e=this[_0x440f4f(0x3cf)];_0x3e9913&&_0x344f9e instanceof SyncedState&&(this[_0x440f4f(0x243)](),this[_0x440f4f(0x2b4)](_0x344f9e[_0x440f4f(0x1c9)]()),this[_0x440f4f(0x4ef)]());}async['_createInitialState'](){return new Promise(_0x1e958e=>{var _0x4a00c2=_0x450a;this[_0x4a00c2(0x289)]['sessionStatus$'][_0x4a00c2(0x431)](_0x21435b(0x1))[_0x4a00c2(0x49c)](async _0x3fd579=>{var _0x57987e=_0x4a00c2;_0x1e958e(await this[_0x57987e(0x357)](_0x3fd579===SessionStatus['ONLINE']));});});}['_createHandler'](){var _0x4325a4=_0x5deefc;const _0x41d9e8=this[_0x4325a4(0x46e)];return{'onStateChange':__name((_0x4cf52,_0x5c2ba0)=>{var _0x331335=_0x4325a4;if(_0x4cf52!==this[_0x331335(0x3cf)])throw new Error(_0x331335(0x4af)+_0x4cf52['status']+_0x331335(0x3e6)+_0x5c2ba0[_0x331335(0x1cc)]+'\x0aCurrent:\x20'+this[_0x331335(0x3cf)][_0x331335(0x1cc)]);this[_0x331335(0x2b4)](_0x5c2ba0);},_0x4325a4(0x450)),'onSendChangeset':__name(_0x30ed33=>{var _0x16fca2=_0x4325a4;_0x30ed33['sid']||(_0x30ed33[_0x16fca2(0x4b3)]=this[_0x16fca2(0x1b3)],_0x30ed33[_0x16fca2(0x20b)]=++this['_changesetReqId']);const _0x3e06a3={'eventID':CollaborationEvent[_0x16fca2(0x1e1)],'data':{'unitID':_0x30ed33['unitID'],'unitType':this[_0x16fca2(0x1d8)],'changeset':_0x30ed33,'memberID':this[_0x16fca2(0x289)]['getMemberID']()}};this[_0x16fca2(0x289)][_0x16fca2(0x46b)](_0x3e06a3,this['unitID']);},_0x4325a4(0x2f9)),'onMissingChangesets':__name(({from:_0x24687d,to:_0x4869bb})=>{var _0x34ff96=_0x4325a4;this[_0x34ff96(0x1b0)]['debug']('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x24687d+_0x34ff96(0x2df)+_0x4869bb);const _0x419a39={'eventID':CollaborationEvent[_0x34ff96(0x3c3)],'data':{'unitID':_0x41d9e8,'unitType':this[_0x34ff96(0x1d8)],'from':_0x24687d,'to':_0x4869bb}};this[_0x34ff96(0x289)][_0x34ff96(0x46b)](_0x419a39,this[_0x34ff96(0x46e)]);},_0x4325a4(0x22d))};}async[_0x5deefc(0x357)](_0x526dbd){var _0x995e96=_0x5deefc,_0x548a81,_0x3716b0,_0x83568a;const _0x4d928e=await((_0x548a81=this['_localCacheService'])==null?void 0x0:_0x548a81[_0x995e96(0x4d5)](this['unitID'])),_0x46b6a1=(_0x3716b0=_0x4d928e==null?void 0x0:_0x4d928e[_0x995e96(0x35f)])!=null?_0x3716b0:[],_0x467d5a=(_0x83568a=_0x4d928e==null?void 0x0:_0x4d928e[_0x995e96(0x2f6)])!=null?_0x83568a:null,_0x2bd83e=!!(_0x467d5a!=null&&_0x467d5a[_0x995e96(0x4b3)])&&!!(_0x467d5a!=null&&_0x467d5a['reqId']);this['_changesetSessionId']=_0x2bd83e?_0x467d5a[_0x995e96(0x4b3)]:v4(),this['_changesetReqId']=_0x2bd83e?_0x467d5a[_0x995e96(0x20b)]:0x0;const _0xdac7c1=this[_0x995e96(0x46e)];try{this[_0x995e96(0x3d9)](_0x467d5a,_0x46b6a1);}catch(_0x311fa4){this['_logService'][_0x995e96(0x2ac)](_0x311fa4);}const _0x1eba8b=this[_0x995e96(0x31e)]();if(_0x526dbd){const _0x170812=createOnlineState(this[_0x995e96(0x321)],_0xdac7c1,this[_0x995e96(0x1d8)],_0x467d5a,_0x46b6a1,_0x1eba8b);return _0x170812 instanceof PendingState?_0x170812[_0x995e96(0x30d)]():(_0x170812 instanceof AwaitingWithPendingState||_0x170812 instanceof AwaitingState)&&_0x170812[_0x995e96(0x278)](),_0x170812;}return this[_0x995e96(0x321)][_0x995e96(0x371)](OfflineState,_0xdac7c1,this[_0x995e96(0x1d8)],_0x467d5a,_0x46b6a1,_0x1eba8b);}['_replayCachedMutations'](_0x76f7db,_0x19cefe){var _0x19aa14=_0x5deefc,_0x453a0e,_0x4c0fd1;const _0x5a2902=this['_compressMutationService'][_0x19aa14(0x1dd)][_0x19aa14(0x432)](this[_0x19aa14(0x45f)][_0x19aa14(0x1dd)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x453a0e=_0x5a2902((_0x76f7db==null?void 0x0:_0x76f7db['mutations'])||[],null))==null||_0x453a0e['forEach'](_0x426221=>this[_0x19aa14(0x215)][_0x19aa14(0x219)](_0x426221['id'],_0x426221['params'])),(_0x4c0fd1=_0x5a2902(_0x19cefe||[],null))==null||_0x4c0fd1[_0x19aa14(0x329)](_0x2e3ddc=>this[_0x19aa14(0x215)][_0x19aa14(0x219)](_0x2e3ddc['id'],_0x2e3ddc[_0x19aa14(0x43c)]));}},__name(_a13,_0x5deefc(0x36d)),_a13);CollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],CollaborationEntity);var _a14;let DocCollaborationEntity=(_a14=class extends CollaborationEntity{constructor(_0x4c6863,_0x5945bb,_0xd07629,_0xcd1272,_0x1e351b,_0x35043d,_0x2922f7,_0xa24b16,_0x36d352,_0x982a0b,_0x452a83,_0x5b0370,_0x5cbc71){var _0x36172f=_0x5deefc;super(_0x4c6863,_0xd07629,_0x5945bb,_0xcd1272,_0x1e351b,_0x35043d,_0x2922f7,_0xa24b16,_0x36d352,_0x982a0b,_0x452a83,_0x5b0370,_0x5cbc71),__publicField(this,'_handlerCallback',null),(this[_0x36172f(0x46e)]=_0x4c6863,this['type']=_0x5945bb);}[_0x5deefc(0x21c)](_0x1fa1ee){this['_handlerCallback']=_0x1fa1ee;}[_0x5deefc(0x290)](){var _0x579b1e=_0x5deefc;this[_0x579b1e(0x236)]=null,super['dispose']();}[_0x5deefc(0x31e)](){var _0x3a81fa=_0x5deefc;const _0x416d79=super[_0x3a81fa(0x31e)]();return _0x416d79['onTransformIME']=_0x43caf5=>{var _0x44cfbe=_0x3a81fa,_0x5ee25d,_0x551d44;return(_0x551d44=(_0x5ee25d=this[_0x44cfbe(0x236)])==null?void 0x0:_0x5ee25d[_0x44cfbe(0x1ac)])==null?void 0x0:_0x551d44['call'](_0x5ee25d,_0x43caf5);},_0x416d79[_0x3a81fa(0x49a)]=_0x40169c=>{var _0x13bee1=_0x3a81fa,_0x38bdcc,_0x12abe3;return(_0x12abe3=(_0x38bdcc=this[_0x13bee1(0x236)])==null?void 0x0:_0x38bdcc[_0x13bee1(0x49a)])==null?void 0x0:_0x12abe3[_0x13bee1(0x4db)](_0x38bdcc,_0x40169c);},_0x416d79[_0x3a81fa(0x25e)]=_0x2ae0fc=>{var _0x24d645=_0x3a81fa,_0x261c6d,_0x2be35a;return(_0x2be35a=(_0x261c6d=this[_0x24d645(0x236)])==null?void 0x0:_0x261c6d[_0x24d645(0x25e)])==null?void 0x0:_0x2be35a[_0x24d645(0x4db)](_0x261c6d,_0x2ae0fc);},_0x416d79['onSyncEditingCollabCursor']=_0xe73886=>{var _0x1a67fb=_0x3a81fa,_0xfad4c,_0x22d205;return(_0x22d205=(_0xfad4c=this[_0x1a67fb(0x236)])==null?void 0x0:_0xfad4c['onSyncEditingCollabCursor'])==null?void 0x0:_0x22d205['call'](_0xfad4c,_0xe73886);},_0x416d79['onTransformRemoteChangesetByIMECache']=_0x24b380=>{var _0x2b0012=_0x3a81fa,_0x4c2da3,_0x535930,_0x91c446;if(!((_0x4c2da3=this['_handlerCallback'])!=null&&_0x4c2da3['onTransformRemoteChangesetByIMECache']))throw new Error(_0x2b0012(0x475));return(_0x91c446=(_0x535930=this[_0x2b0012(0x236)])==null?void 0x0:_0x535930['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x91c446[_0x2b0012(0x4db)](_0x535930,_0x24b380);},_0x416d79[_0x3a81fa(0x4a1)]=_0x26dc52=>{var _0x116ea9=_0x3a81fa,_0x43fc46,_0x564c59,_0x117b2;if(!((_0x43fc46=this[_0x116ea9(0x236)])!=null&&_0x43fc46[_0x116ea9(0x4a1)]))throw new Error(_0x116ea9(0x4ba));return(_0x117b2=(_0x564c59=this[_0x116ea9(0x236)])==null?void 0x0:_0x564c59[_0x116ea9(0x4a1)])==null?void 0x0:_0x117b2['call'](_0x564c59,_0x26dc52);},_0x416d79;}async['_init'](){var _0x31e48=_0x5deefc;const _0x188581=await super[_0x31e48(0x499)]();return this[_0x31e48(0x415)](this[_0x31e48(0x215)][_0x31e48(0x242)]((_0x133fce,_0x241eb2)=>{var _0x59276a=_0x31e48;if(_0x133fce['type']!==CommandType[_0x59276a(0x270)]||_0x241eb2!=null&&_0x241eb2[_0x59276a(0x427)]||_0x241eb2!=null&&_0x241eb2[_0x59276a(0x392)]||_0x133fce['id']===RichTextEditingMutation['id'])return;const _0x2930c0=_0x133fce[_0x59276a(0x43c)];if((_0x2930c0==null?void 0x0:_0x2930c0[_0x59276a(0x4c0)])!==this[_0x59276a(0x46e)])return;const _0x2c127d=_0x133fce,_0x1fa351=this['_compressMutationService'][_0x59276a(0x1dd)][_0x59276a(0x432)](this[_0x59276a(0x45f)][_0x59276a(0x1dd)][_0x59276a(0x2e3)]()[_0x59276a(0x2e6)])([_0x2c127d],null)||[_0x2c127d];this[_0x59276a(0x23a)](_0x1fa351[0x0]);})),_0x188581;}},__name(_a14,'DocCollaborationEntity'),_a14);DocCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],DocCollaborationEntity);var _a15;let SheetCollaborationEntity=(_a15=class extends CollaborationEntity{constructor(_0x330570,_0x45692f,_0x13823e,_0x2ee089,_0x30cf71,_0x435eae,_0x458595,_0x3147bf,_0x51ece3,_0x166975,_0x234a15,_0x5b72b3,_0x5b8b06,_0x32368d){var _0x195eb8=_0x5deefc;super(_0x330570,_0x13823e,_0x45692f,_0x2ee089,_0x30cf71,_0x435eae,_0x458595,_0x51ece3,_0x166975,_0x234a15,_0x5b72b3,_0x5b8b06,_0x32368d),this[_0x195eb8(0x46e)]=_0x330570,this[_0x195eb8(0x2b5)]=_0x45692f,this[_0x195eb8(0x3b3)]=_0x3147bf;}[_0x5deefc(0x31e)](){var _0x1aa533=_0x5deefc;const _0x86fb45=super[_0x1aa533(0x31e)]();return _0x86fb45['onTransformSelections']=_0x44bf57=>this['_sheetTransformSelectionsService'][_0x1aa533(0x25f)](_0x44bf57),_0x86fb45;}async['_init'](){var _0x132c77=_0x5deefc;const _0x25fa03=await super[_0x132c77(0x499)]();return this[_0x132c77(0x415)](this[_0x132c77(0x215)][_0x132c77(0x242)]((_0x5eb98c,_0x141b9e)=>{var _0x562b13=_0x132c77;if(_0x5eb98c['type']!==CommandType[_0x562b13(0x270)]||_0x141b9e!=null&&_0x141b9e['fromCollab']||_0x141b9e!=null&&_0x141b9e[_0x562b13(0x392)])return;const _0x5ac819=_0x5eb98c[_0x562b13(0x43c)];if((_0x5ac819==null?void 0x0:_0x5ac819['unitId'])!==this[_0x562b13(0x46e)])return;const _0x3cf000=_0x5eb98c,_0x383643=this[_0x562b13(0x45f)][_0x562b13(0x1dd)][_0x562b13(0x432)](this[_0x562b13(0x45f)][_0x562b13(0x1dd)]['getInterceptPoints']()[_0x562b13(0x2e6)])([_0x3cf000],null)||[_0x3cf000];this[_0x562b13(0x23a)](_0x383643[0x0]);})),_0x25fa03;}},__name(_a15,_0x5deefc(0x224)),_a15);SheetCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(SheetTransformSelectionsService)),__decorateParam$c(0x8,Inject(CollaborationUIEventService)),__decorateParam$c(0x9,ILogService),__decorateParam$c(0xa,ICommandService),__decorateParam$c(0xb,IPermissionService),__decorateParam$c(0xc,Optional(ISingleActiveUnitService)),__decorateParam$c(0xd,Optional(ILocalCacheService))],SheetCollaborationEntity);var __defProp$b=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$b=Object[_0x5deefc(0x4e3)],__decorateClass$b=__name((_0x2318b6,_0x3898a8,_0x39d8de,_0x1dc164)=>{var _0x546377=_0x5deefc;for(var _0x2f8c6d=_0x1dc164>0x1?void 0x0:_0x1dc164?__getOwnPropDesc$b(_0x3898a8,_0x39d8de):_0x3898a8,_0x55b071=_0x2318b6[_0x546377(0x2f2)]-0x1,_0x40c475;_0x55b071>=0x0;_0x55b071--)(_0x40c475=_0x2318b6[_0x55b071])&&(_0x2f8c6d=(_0x1dc164?_0x40c475(_0x3898a8,_0x39d8de,_0x2f8c6d):_0x40c475(_0x2f8c6d))||_0x2f8c6d);return _0x1dc164&&_0x2f8c6d&&__defProp$b(_0x3898a8,_0x39d8de,_0x2f8c6d),_0x2f8c6d;},_0x5deefc(0x335)),__decorateParam$b=__name((_0x390310,_0x332362)=>(_0x4a1ac9,_0x52a2ae)=>_0x332362(_0x4a1ac9,_0x52a2ae,_0x390310),_0x5deefc(0x2cf)),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0x27b344,_0x2dfcf9,_0x100507){var _0x152923=_0x5deefc;super(),__publicField(this,_0x152923(0x41c),new Map()),__publicField(this,_0x152923(0x3bc),new Subject()),__publicField(this,'entityInit$',this[_0x152923(0x3bc)][_0x152923(0x272)]()),(this[_0x152923(0x321)]=_0x27b344,this['_collabSessionService']=_0x2dfcf9,this[_0x152923(0x40e)]=_0x100507,this[_0x152923(0x499)]());}['dispose'](){var _0x3c4fd3=_0x5deefc;super[_0x3c4fd3(0x290)](),this[_0x3c4fd3(0x41c)][_0x3c4fd3(0x329)](_0x37e738=>_0x37e738['dispose']()),this[_0x3c4fd3(0x41c)]['clear']();}[_0x5deefc(0x414)](_0x468c17){var _0xce4907=_0x5deefc,_0x144604;return(_0x144604=this[_0xce4907(0x41c)][_0xce4907(0x1ff)](_0x468c17))!=null?_0x144604:null;}[_0x5deefc(0x3f9)](_0x2215b0){var _0x231e59=_0x5deefc;const _0x275005=this[_0x231e59(0x414)](_0x2215b0);return _0x275005?of(_0x275005):this['_entityInit$']['pipe'](filter(_0x12d808=>_0x12d808['unitID']===_0x2215b0));}[_0x5deefc(0x3e8)](_0x58f821){var _0x55b340=_0x5deefc;return firstValueFrom(this[_0x55b340(0x3f9)](_0x58f821)[_0x55b340(0x431)](map(()=>{})));}[_0x5deefc(0x499)](){var _0x381d0d=_0x5deefc;this[_0x381d0d(0x40e)][_0x381d0d(0x3c6)](UniverInstanceType[_0x381d0d(0x4a9)])[_0x381d0d(0x431)](takeUntil(this[_0x381d0d(0x1c6)]),delay(0x10))[_0x381d0d(0x49c)](async _0x37ed81=>{var _0x2ae6e8=_0x381d0d;const _0x16f7b9=_0x37ed81['getUnitId'](),_0x201db9=await this['_startCollaboration'](_0x16f7b9,UniverType[_0x2ae6e8(0x4a9)]);this[_0x2ae6e8(0x41c)]['set'](_0x16f7b9,_0x201db9);}),this['_univerInstanceService'][_0x381d0d(0x3c6)](UniverInstanceType[_0x381d0d(0x385)])['pipe'](takeUntil(this[_0x381d0d(0x1c6)]),delay(0x10))[_0x381d0d(0x431)](filter(_0x2b19ac=>!_0x2b19ac[_0x381d0d(0x1bd)]()[_0x381d0d(0x1ba)]('__')))['subscribe'](async _0x270f05=>{var _0x8538ed=_0x381d0d;const _0x1e1d49=_0x270f05[_0x8538ed(0x1bd)](),_0x21c8c8=await this['_startCollaboration'](_0x1e1d49,UniverType[_0x8538ed(0x385)]);this[_0x8538ed(0x41c)][_0x8538ed(0x31a)](_0x1e1d49,_0x21c8c8);}),merge(this[_0x381d0d(0x40e)][_0x381d0d(0x255)](UniverInstanceType[_0x381d0d(0x4a9)]),this[_0x381d0d(0x40e)][_0x381d0d(0x255)](UniverInstanceType[_0x381d0d(0x385)]))[_0x381d0d(0x431)](takeUntil(this['dispose$']))['subscribe'](_0x52880f=>{var _0x363119=_0x381d0d;const _0x181a8f=_0x52880f[_0x363119(0x1bd)](),_0x2473d8=this[_0x363119(0x41c)]['get'](_0x181a8f);_0x2473d8&&(_0x2473d8['dispose'](),this['_entities'][_0x363119(0x382)](_0x181a8f));});}async[_0x5deefc(0x22e)](_0x3d1e24,_0x2107fc){var _0x4bc25c=_0x5deefc;const _0x2a9fb3=await this[_0x4bc25c(0x34a)][_0x4bc25c(0x330)](_0x3d1e24),_0x5ef9f5=this[_0x4bc25c(0x321)][_0x4bc25c(0x371)](this[_0x4bc25c(0x4ac)](_0x2107fc),_0x3d1e24,_0x2107fc,_0x2a9fb3);return await _0x5ef9f5[_0x4bc25c(0x21f)](),this[_0x4bc25c(0x3bc)][_0x4bc25c(0x41a)](_0x5ef9f5),_0x5ef9f5;}[_0x5deefc(0x4ac)](_0x4f2f35){var _0x17a09c=_0x5deefc;switch(_0x4f2f35){case UniverType['UNIVER_DOC']:return DocCollaborationEntity;case UniverType['UNIVER_SHEET']:return SheetCollaborationEntity;default:throw new Error(_0x17a09c(0x3ea)+_0x4f2f35);}}},__name(_a16,_0x5deefc(0x21b)),_a16);CollaborationController=__decorateClass$b([__decorateParam$b(0x0,Inject(Injector)),__decorateParam$b(0x1,Inject(CollaborationSessionService)),__decorateParam$b(0x2,IUniverInstanceService)],CollaborationController);var __defProp$a=Object['defineProperty'],__getOwnPropDesc$a=Object[_0x5deefc(0x4e3)],__decorateClass$a=__name((_0x5cf4ff,_0xacf9b5,_0x3ae434,_0x4b5b7c)=>{var _0x5eebfd=_0x5deefc;for(var _0x21da67=_0x4b5b7c>0x1?void 0x0:_0x4b5b7c?__getOwnPropDesc$a(_0xacf9b5,_0x3ae434):_0xacf9b5,_0x2c10a2=_0x5cf4ff[_0x5eebfd(0x2f2)]-0x1,_0x18a742;_0x2c10a2>=0x0;_0x2c10a2--)(_0x18a742=_0x5cf4ff[_0x2c10a2])&&(_0x21da67=(_0x4b5b7c?_0x18a742(_0xacf9b5,_0x3ae434,_0x21da67):_0x18a742(_0x21da67))||_0x21da67);return _0x4b5b7c&&_0x21da67&&__defProp$a(_0xacf9b5,_0x3ae434,_0x21da67),_0x21da67;},_0x5deefc(0x46d)),__decorateParam$a=__name((_0x410da1,_0x18ae9d)=>(_0xd90893,_0x5c9f39)=>_0x18ae9d(_0xd90893,_0x5c9f39,_0x410da1),_0x5deefc(0x422));const DEFAULT_FILE_NAME_KEY='DEFAULT_FILE_NAME',UNIVER_DEFAULT_FILE_NAME=_0x5deefc(0x484);var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x27a6df,_0x585758){var _0xa62a46=_0x5deefc;super(),this['_univerInstanceService']=_0x27a6df,this['_configService']=_0x585758,this[_0xa62a46(0x499)]();}[_0x5deefc(0x499)](){var _0x52023d=_0x5deefc;this[_0x52023d(0x415)](this['_univerInstanceService'][_0x52023d(0x3e1)][_0x52023d(0x49c)](()=>{var _0x2c994e=_0x52023d,_0x2dc28b;const _0x5dd635=this[_0x2c994e(0x40e)][_0x2c994e(0x352)]();let _0x3920e5=(_0x2dc28b=this[_0x2c994e(0x32a)][_0x2c994e(0x365)](DEFAULT_FILE_NAME_KEY))!=null?_0x2dc28b:UNIVER_DEFAULT_FILE_NAME;_0x5dd635 instanceof Workbook&&(_0x3920e5=_0x5dd635['name']),document[_0x2c994e(0x268)]=_0x3920e5;}));}},__name(_a17,_0x5deefc(0x418)),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$9=Object['getOwnPropertyDescriptor'],__decorateClass$9=__name((_0x118c5b,_0x3a4f5d,_0x20c85c,_0x353f6f)=>{var _0x4d8a1d=_0x5deefc;for(var _0x135f7b=_0x353f6f>0x1?void 0x0:_0x353f6f?__getOwnPropDesc$9(_0x3a4f5d,_0x20c85c):_0x3a4f5d,_0x43ce38=_0x118c5b[_0x4d8a1d(0x2f2)]-0x1,_0x5e1733;_0x43ce38>=0x0;_0x43ce38--)(_0x5e1733=_0x118c5b[_0x43ce38])&&(_0x135f7b=(_0x353f6f?_0x5e1733(_0x3a4f5d,_0x20c85c,_0x135f7b):_0x5e1733(_0x135f7b))||_0x135f7b);return _0x353f6f&&_0x135f7b&&__defProp$9(_0x3a4f5d,_0x20c85c,_0x135f7b),_0x135f7b;},'__decorateClass$9'),__decorateParam$9=__name((_0x39872d,_0x2b32f9)=>(_0x1a83ff,_0x7387be)=>_0x2b32f9(_0x1a83ff,_0x7387be,_0x39872d),'__decorateParam$9'),_a18;let AuthServerService=(_a18=class{constructor(_0x4933f8,_0x70e75f,_0x464c1d){var _0x4be669=_0x5deefc;this[_0x4be669(0x32a)]=_0x4933f8,this[_0x4be669(0x3ac)]=_0x70e75f,this[_0x4be669(0x213)]=_0x464c1d,this[_0x4be669(0x21f)]();}[_0x5deefc(0x21f)](){var _0x46e5cd=_0x5deefc;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':__name((_0x261225,_0x4ee440)=>_0x4ee440(_0x261225)[_0x46e5cd(0x431)](concatMap(async _0x664e2c=>{var _0x1bf9a6=_0x46e5cd;const _0x408306=_0x664e2c;if(_0x408306[_0x1bf9a6(0x1cc)]===0x191){if(typeof window>'u')throw new Error(_0x1bf9a6(0x44c));if(window[_0x1bf9a6(0x1e0)](this[_0x1bf9a6(0x213)]['t'](_0x1bf9a6(0x26f)))){const _0x208f9c=window[_0x1bf9a6(0x1b8)](window['location'][_0x1bf9a6(0x360)]);window[_0x1bf9a6(0x264)][_0x1bf9a6(0x360)]=this[_0x1bf9a6(0x49e)]()+_0x1bf9a6(0x48e)+_0x208f9c;}}return _0x408306;})),_0x46e5cd(0x1dd))});}[_0x5deefc(0x49e)](){var _0x979613=_0x5deefc,_0x4c095a,_0x3db0f5;const _0x4bf4de=this[_0x979613(0x32a)][_0x979613(0x365)](LOGIN_URL_KEY),_0x9139d4=this[_0x979613(0x32a)][_0x979613(0x365)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x3db0f5=(_0x4c095a=_0x9139d4==null?void 0x0:_0x9139d4[_0x979613(0x4d7)])!=null?_0x4c095a:_0x4bf4de)!=null?_0x3db0f5:DEFAULT_LOGIN_URL;}},__name(_a18,_0x5deefc(0x2d7)),_a18);AuthServerService=__decorateClass$9([__decorateParam$9(0x0,IConfigService),__decorateParam$9(0x1,Inject(HTTPService)),__decorateParam$9(0x2,Inject(LocaleService))],AuthServerService);var __defProp$8=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$8=Object['getOwnPropertyDescriptor'],__decorateClass$8=__name((_0x4b3ff6,_0x3eda78,_0x11451a,_0x20c64b)=>{var _0x43df65=_0x5deefc;for(var _0x1a36df=_0x20c64b>0x1?void 0x0:_0x20c64b?__getOwnPropDesc$8(_0x3eda78,_0x11451a):_0x3eda78,_0x2d23f7=_0x4b3ff6[_0x43df65(0x2f2)]-0x1,_0x707677;_0x2d23f7>=0x0;_0x2d23f7--)(_0x707677=_0x4b3ff6[_0x2d23f7])&&(_0x1a36df=(_0x20c64b?_0x707677(_0x3eda78,_0x11451a,_0x1a36df):_0x707677(_0x1a36df))||_0x1a36df);return _0x20c64b&&_0x1a36df&&__defProp$8(_0x3eda78,_0x11451a,_0x1a36df),_0x1a36df;},'__decorateClass$8'),__decorateParam$8=__name((_0x325907,_0x24e3ac)=>(_0x29756f,_0x4bb70c)=>_0x24e3ac(_0x29756f,_0x4bb70c,_0x325907),_0x5deefc(0x2d4));const AUTHZ_URL_KEY=_0x5deefc(0x4fa),DEFAULT_AUTHZ_URL_KEY$1=_0x5deefc(0x433);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0x56bf64,_0x21378b){var _0x167534=_0x5deefc;super(),this[_0x167534(0x36f)]=_0x56bf64,this[_0x167534(0x32a)]=_0x21378b,this[_0x167534(0x42e)]();}[_0x5deefc(0x42e)](){var _0xefcc3e=_0x5deefc;const _0x4936d0=this;this[_0xefcc3e(0x415)](this['_HTTPService'][_0xefcc3e(0x245)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x7c4b39){var _0x372a85=_0xefcc3e,_0x1ecbca;if(_0x7c4b39[_0x372a85(0x44f)]===_0x372a85(0x3c5)&&((_0x1ecbca=_0x7c4b39['requestParams'])!=null&&_0x1ecbca[_0x372a85(0x324)])){const {objectID:_0x535a1e,objectType:_0x523061}=_0x7c4b39[_0x372a85(0x4cd)][_0x372a85(0x324)]||{};if(!_0x535a1e||_0x523061===void 0x0)return!0x1;const _0x284843=_0x4936d0[_0x372a85(0x32d)]()+'/'+_0x523061+_0x372a85(0x407)+_0x535a1e+'/allowed';if(_0x7c4b39[_0x372a85(0x241)]===_0x284843)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x28db09){var _0x2ca234=_0xefcc3e,_0x57c15d;return(_0x57c15d=_0x28db09[_0x2ca234(0x4cd)])==null?void 0x0:_0x57c15d[_0x2ca234(0x324)];},'mergeParamsToRequest'(_0x1812a6,_0x48c997){var _0x1802e5=_0xefcc3e;const _0x430fde=_0x4936d0['_getAPIPrefixPath']()+_0x1802e5(0x24f),_0x271cf9=_0x1812a6[_0x1802e5(0x488)]((_0x32c6f1,_0x26391f)=>{var _0x3a62fe=_0x1802e5;const {unitID:_0x3acc34,objectID:_0x38283c,objectType:_0x4d3bba,actions:_0x25c76a}=_0x26391f;return _0x32c6f1[_0x3acc34]||(_0x32c6f1[_0x3acc34]={}),_0x32c6f1[_0x3acc34][_0x38283c]||(_0x32c6f1[_0x3acc34][_0x38283c]={'objectID':_0x38283c,'objectType':_0x4d3bba,'actions':[]}),_0x32c6f1[_0x3acc34][_0x38283c][_0x3a62fe(0x2c8)]['push'](..._0x25c76a),_0x32c6f1;},{}),_0x5d10fb=[];for(const _0x4b9d6f in _0x271cf9)for(const _0x1da796 in _0x271cf9[_0x4b9d6f]){const {actions:_0x4d3ce5,objectType:_0x3aaf95}=_0x271cf9[_0x4b9d6f][_0x1da796],_0xf8031b=[...new Set(_0x4d3ce5)];_0x5d10fb[_0x1802e5(0x202)]({'unitID':_0x4b9d6f,'objectID':_0x1da796,'objectType':_0x3aaf95,'actions':_0xf8031b});}return new HTTPRequest(_0x1802e5(0x3c5),_0x430fde,{'headers':_0x48c997[_0x1802e5(0x2c3)],'withCredentials':_0x48c997['withCredentials'],'responseType':_0x48c997[_0x1802e5(0x4ee)],'body':{'requests':_0x5d10fb}});}},{'distributeResult'(_0xb633a3,_0xac6be){const {objectActions:_0x42654b}=_0xb633a3;return _0xac6be['map'](_0x449968=>{var _0x373ed1=_0x450a;const {unitID:_0x4edd96,objectID:_0x2685ed,actions:_0x32d30c}=_0x449968,_0x2765a4=_0x42654b['find'](_0x56af16=>_0x56af16['unitID']===_0x4edd96&&_0x56af16[_0x373ed1(0x3fa)]===_0x2685ed),_0x1ddede=_0x32d30c[_0x373ed1(0x2ef)](_0xe8b710=>_0x2765a4==null?void 0x0:_0x2765a4[_0x373ed1(0x2c8)]['find'](_0x7833d=>_0x7833d['action']===_0xe8b710))[_0x373ed1(0x2a2)](_0x3819d5=>!!_0x3819d5);return{'config':_0x449968,'result':{'actions':_0x1ddede,'error':_0xb633a3[_0x373ed1(0x2ac)]}};});}})}));}[_0x5deefc(0x32d)](){var _0xd4bccc=_0x5deefc,_0x312b99,_0x488c65;const _0x381b97=this[_0xd4bccc(0x32a)][_0xd4bccc(0x365)](AUTHZ_URL_KEY),_0x57b52c=this[_0xd4bccc(0x32a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x488c65=(_0x312b99=_0x57b52c==null?void 0x0:_0x57b52c['authzUrl'])!=null?_0x312b99:_0x381b97)!=null?_0x488c65:DEFAULT_AUTHZ_URL_KEY$1;}async['create'](_0x5c91dd){var _0x201a2b=_0x5deefc;const _0x12a789=this[_0x201a2b(0x32d)]()+'/'+_0x5c91dd[_0x201a2b(0x303)]+_0x201a2b(0x375);return(await this['_HTTPService'][_0x201a2b(0x47b)](_0x12a789,{'body':_0x5c91dd}))[_0x201a2b(0x324)][_0x201a2b(0x3fa)]||'';}async['list'](_0xea688e){var _0x4e2408=_0x5deefc;const _0xa173ee=this[_0x4e2408(0x32d)]()+_0x4e2408(0x3f1);return(await this[_0x4e2408(0x36f)][_0x4e2408(0x47b)](_0xa173ee,{'body':_0xea688e}))[_0x4e2408(0x324)][_0x4e2408(0x35c)];}async[_0x5deefc(0x2ea)](_0x13486f){var _0x4454e6=_0x5deefc;const _0x513999=this[_0x4454e6(0x32d)]()+'/'+_0x13486f[_0x4454e6(0x303)]+_0x4454e6(0x407)+_0x13486f[_0x4454e6(0x3fa)];await this[_0x4454e6(0x36f)]['put'](_0x513999,{'body':_0x13486f});}async[_0x5deefc(0x35e)](_0x2c6657){var _0x2d04a7=_0x5deefc;const _0x38acc8=this[_0x2d04a7(0x32d)]()+'/'+_0x2c6657[_0x2d04a7(0x303)]+_0x2d04a7(0x407)+_0x2c6657['objectID']+_0x2d04a7(0x425);return(await this[_0x2d04a7(0x36f)][_0x2d04a7(0x47b)](_0x38acc8,{'body':_0x2c6657}))['body'][_0x2d04a7(0x2c8)];}async['batchAllowed'](_0x959d5d){var _0x2f7078=_0x5deefc;const _0x4f2ca2=this[_0x2f7078(0x32d)]()+_0x2f7078(0x24f);return(await this[_0x2f7078(0x36f)][_0x2f7078(0x47b)](_0x4f2ca2,{'body':{'requests':_0x959d5d}}))['body'][_0x2f7078(0x3a0)];}async['listRoles'](_0x59f618){var _0x439c93=_0x5deefc;const _0x25cbf8=this[_0x439c93(0x32d)]()+'/'+_0x59f618[_0x439c93(0x303)]+'/role',_0x14ba29=await this[_0x439c93(0x36f)][_0x439c93(0x47b)](_0x25cbf8,{'body':_0x59f618});return{'roles':_0x14ba29[_0x439c93(0x324)][_0x439c93(0x4f2)],'actions':_0x14ba29[_0x439c93(0x324)]['actions']};}async[_0x5deefc(0x284)](_0x4958a){var _0x193656=_0x5deefc;const _0x47ada3=this[_0x193656(0x32d)]()+_0x193656(0x292);await this[_0x193656(0x36f)][_0x193656(0x382)](_0x47ada3,{'params':{'collaboratorID':_0x4958a[_0x193656(0x3cb)],'objectID':_0x4958a['objectID'],'unitID':_0x4958a[_0x193656(0x46e)]}});}async[_0x5deefc(0x1d6)](_0x4db833){var _0x436868=_0x5deefc;const _0x39d641=this[_0x436868(0x32d)]()+_0x436868(0x292);await this[_0x436868(0x36f)][_0x436868(0x218)](_0x39d641,{'body':_0x4db833});}async['createCollaborator'](_0x57b7cf){var _0x13c604=_0x5deefc;const _0x4a8066=this[_0x13c604(0x32d)]()+'/collaborator';await this[_0x13c604(0x36f)]['post'](_0x4a8066,{'body':_0x57b7cf});}async[_0x5deefc(0x49f)](_0x533f55){var _0x36090e=_0x5deefc;const _0x409341=this[_0x36090e(0x32d)]()+_0x36090e(0x292);return(await this[_0x36090e(0x36f)][_0x36090e(0x1ff)](_0x409341,{'params':{'objectID':_0x533f55[_0x36090e(0x3fa)],'unitID':_0x533f55[_0x36090e(0x46e)]}}))[_0x36090e(0x324)]['collaborators'];}async['putCollaborators'](_0xe20201){var _0x3de029=_0x5deefc;const _0x2703b8=this[_0x3de029(0x32d)]()+_0x3de029(0x292);await this['_HTTPService'][_0x3de029(0x341)](_0x2703b8,{'body':_0xe20201});}},__name(_a19,_0x5deefc(0x356)),_a19);AuthzIoHttpService=__decorateClass$8([__decorateParam$8(0x0,Inject(HTTPService)),__decorateParam$8(0x1,Inject(IConfigService))],AuthzIoHttpService);var commonjsGlobal=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function getDefaultExportFromCjs(_0x363b01){var _0x164b89=_0x5deefc;return _0x363b01&&_0x363b01['__esModule']&&Object[_0x164b89(0x30e)]['hasOwnProperty'][_0x164b89(0x4db)](_0x363b01,_0x164b89(0x4f8))?_0x363b01[_0x164b89(0x4f8)]:_0x363b01;}__name(getDefaultExportFromCjs,'getDefaultExportFromCjs');var aes$1={'exports':{}};function commonjsRequire(_0x539951){var _0x5d634d=_0x5deefc;throw new Error(_0x5d634d(0x397)+_0x539951+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}__name(commonjsRequire,_0x5deefc(0x35a));var core$1={'exports':{}},core=core$1['exports'],hasRequiredCore;function requireCore(){var _0x29faef=_0x5deefc;return hasRequiredCore||(hasRequiredCore=0x1,function(_0x27494a,_0x121b72){(function(_0xb1e1f5,_0x1b29c7){var _0x2e3464=_0x450a;_0x27494a[_0x2e3464(0x370)]=_0x1b29c7();}(core,function(){var _0x37f9be=_0x37f9be||function(_0x8fe164,_0x1baec0){var _0x5d5b03=_0x450a,_0x501ab9;if(typeof window<'u'&&window[_0x5d5b03(0x47f)]&&(_0x501ab9=window[_0x5d5b03(0x47f)]),typeof self<'u'&&self['crypto']&&(_0x501ab9=self['crypto']),typeof globalThis<'u'&&globalThis[_0x5d5b03(0x47f)]&&(_0x501ab9=globalThis[_0x5d5b03(0x47f)]),!_0x501ab9&&typeof window<'u'&&window['msCrypto']&&(_0x501ab9=window[_0x5d5b03(0x247)]),!_0x501ab9&&typeof commonjsGlobal<'u'&&commonjsGlobal[_0x5d5b03(0x47f)]&&(_0x501ab9=commonjsGlobal[_0x5d5b03(0x47f)]),!_0x501ab9&&typeof commonjsRequire==_0x5d5b03(0x2db))try{_0x501ab9=require('crypto');}catch{}var _0x4a3aa1=__name(function(){var _0x545741=_0x5d5b03;if(_0x501ab9){if(typeof _0x501ab9[_0x545741(0x3c0)]==_0x545741(0x2db))try{return _0x501ab9['getRandomValues'](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x501ab9[_0x545741(0x227)]==_0x545741(0x2db))try{return _0x501ab9['randomBytes'](0x4)[_0x545741(0x405)]();}catch{}}throw new Error('Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.');},_0x5d5b03(0x26b)),_0x57eb12=Object[_0x5d5b03(0x366)]||(function(){function _0x4d37a1(){}return __name(_0x4d37a1,'F'),function(_0x409f73){var _0x165d83=_0x450a,_0x57342b;return _0x4d37a1[_0x165d83(0x30e)]=_0x409f73,_0x57342b=new _0x4d37a1(),_0x4d37a1[_0x165d83(0x30e)]=null,_0x57342b;};}()),_0x2aaa7f={},_0x469ae2=_0x2aaa7f[_0x5d5b03(0x2b3)]={},_0x30019d=_0x469ae2[_0x5d5b03(0x4c7)]=(function(){var _0x5ec6d6=_0x5d5b03;return{'extend':__name(function(_0x2eac5b){var _0x4fe10f=_0x450a,_0xa1038b=_0x57eb12(this);return _0x2eac5b&&_0xa1038b[_0x4fe10f(0x437)](_0x2eac5b),(!_0xa1038b[_0x4fe10f(0x33d)]('init')||this[_0x4fe10f(0x21f)]===_0xa1038b[_0x4fe10f(0x21f)])&&(_0xa1038b[_0x4fe10f(0x21f)]=function(){var _0x9e2cfa=_0x4fe10f;_0xa1038b['$super'][_0x9e2cfa(0x21f)][_0x9e2cfa(0x2bc)](this,arguments);}),_0xa1038b[_0x4fe10f(0x21f)][_0x4fe10f(0x30e)]=_0xa1038b,_0xa1038b[_0x4fe10f(0x2b9)]=this,_0xa1038b;},_0x5ec6d6(0x400)),'create':__name(function(){var _0x329c69=_0x5ec6d6,_0x502169=this[_0x329c69(0x400)]();return _0x502169['init']['apply'](_0x502169,arguments),_0x502169;},_0x5ec6d6(0x366)),'init':__name(function(){},'init'),'mixIn':__name(function(_0x40de0b){var _0x1fdd62=_0x5ec6d6;for(var _0x1ceb69 in _0x40de0b)_0x40de0b[_0x1fdd62(0x33d)](_0x1ceb69)&&(this[_0x1ceb69]=_0x40de0b[_0x1ceb69]);_0x40de0b[_0x1fdd62(0x33d)](_0x1fdd62(0x4c1))&&(this[_0x1fdd62(0x4c1)]=_0x40de0b['toString']);},_0x5ec6d6(0x437)),'clone':__name(function(){var _0x4efb01=_0x5ec6d6;return this['init'][_0x4efb01(0x30e)][_0x4efb01(0x400)](this);},'clone')};}()),_0x32bbf8=_0x469ae2['WordArray']=_0x30019d['extend']({'init':__name(function(_0x48aaeb,_0x21830c){var _0x334e89=_0x5d5b03;_0x48aaeb=this[_0x334e89(0x253)]=_0x48aaeb||[],_0x21830c!=_0x1baec0?this['sigBytes']=_0x21830c:this['sigBytes']=_0x48aaeb[_0x334e89(0x2f2)]*0x4;},_0x5d5b03(0x21f)),'toString':__name(function(_0x126b19){var _0x385e4b=_0x5d5b03;return(_0x126b19||_0x525e29)[_0x385e4b(0x480)](this);},_0x5d5b03(0x4c1)),'concat':__name(function(_0x6f4e5d){var _0x4a643e=_0x5d5b03,_0x58a87c=this[_0x4a643e(0x253)],_0x30df4b=_0x6f4e5d[_0x4a643e(0x253)],_0x415380=this[_0x4a643e(0x1fe)],_0x4a5a1c=_0x6f4e5d[_0x4a643e(0x1fe)];if(this['clamp'](),_0x415380%0x4)for(var _0x5602b9=0x0;_0x5602b9<_0x4a5a1c;_0x5602b9++){var _0x3ba7e8=_0x30df4b[_0x5602b9>>>0x2]>>>0x18-_0x5602b9%0x4*0x8&0xff;_0x58a87c[_0x415380+_0x5602b9>>>0x2]|=_0x3ba7e8<<0x18-(_0x415380+_0x5602b9)%0x4*0x8;}else{for(var _0x3d409c=0x0;_0x3d409c<_0x4a5a1c;_0x3d409c+=0x4)_0x58a87c[_0x415380+_0x3d409c>>>0x2]=_0x30df4b[_0x3d409c>>>0x2];}return this[_0x4a643e(0x1fe)]+=_0x4a5a1c,this;},_0x5d5b03(0x2e2)),'clamp':__name(function(){var _0x3b56c1=_0x5d5b03,_0x18dcf7=this['words'],_0x5472ed=this[_0x3b56c1(0x1fe)];_0x18dcf7[_0x5472ed>>>0x2]&=0xffffffff<<0x20-_0x5472ed%0x4*0x8,_0x18dcf7[_0x3b56c1(0x2f2)]=_0x8fe164['ceil'](_0x5472ed/0x4);},'clamp'),'clone':__name(function(){var _0x445081=_0x5d5b03,_0x555fab=_0x30019d[_0x445081(0x3e5)][_0x445081(0x4db)](this);return _0x555fab[_0x445081(0x253)]=this[_0x445081(0x253)][_0x445081(0x479)](0x0),_0x555fab;},_0x5d5b03(0x3e5)),'random':__name(function(_0x477e45){var _0x3a1fc6=_0x5d5b03;for(var _0x46b653=[],_0x114ebf=0x0;_0x114ebf<_0x477e45;_0x114ebf+=0x4)_0x46b653[_0x3a1fc6(0x202)](_0x4a3aa1());return new _0x32bbf8[(_0x3a1fc6(0x21f))](_0x46b653,_0x477e45);},_0x5d5b03(0x4ae))}),_0x2e6183=_0x2aaa7f[_0x5d5b03(0x23b)]={},_0x525e29=_0x2e6183[_0x5d5b03(0x38a)]={'stringify':__name(function(_0x5b7411){var _0x525f30=_0x5d5b03;for(var _0xf33fbe=_0x5b7411[_0x525f30(0x253)],_0x4d608b=_0x5b7411[_0x525f30(0x1fe)],_0x27595c=[],_0x393b18=0x0;_0x393b18<_0x4d608b;_0x393b18++){var _0x5d2496=_0xf33fbe[_0x393b18>>>0x2]>>>0x18-_0x393b18%0x4*0x8&0xff;_0x27595c[_0x525f30(0x202)]((_0x5d2496>>>0x4)[_0x525f30(0x4c1)](0x10)),_0x27595c[_0x525f30(0x202)]((_0x5d2496&0xf)['toString'](0x10));}return _0x27595c['join']('');},'stringify'),'parse':__name(function(_0x7eb4f9){var _0x32619d=_0x5d5b03;for(var _0x4c8f39=_0x7eb4f9[_0x32619d(0x2f2)],_0x1da75b=[],_0x583eb8=0x0;_0x583eb8<_0x4c8f39;_0x583eb8+=0x2)_0x1da75b[_0x583eb8>>>0x3]|=parseInt(_0x7eb4f9['substr'](_0x583eb8,0x2),0x10)<<0x18-_0x583eb8%0x8*0x4;return new _0x32bbf8['init'](_0x1da75b,_0x4c8f39/0x2);},_0x5d5b03(0x1cd))},_0x37d089=_0x2e6183[_0x5d5b03(0x1bb)]={'stringify':__name(function(_0x4ff9c7){var _0xfd03f0=_0x5d5b03;for(var _0x2d98c0=_0x4ff9c7[_0xfd03f0(0x253)],_0x10a22b=_0x4ff9c7[_0xfd03f0(0x1fe)],_0x5a7847=[],_0x4e1ed3=0x0;_0x4e1ed3<_0x10a22b;_0x4e1ed3++){var _0x401b60=_0x2d98c0[_0x4e1ed3>>>0x2]>>>0x18-_0x4e1ed3%0x4*0x8&0xff;_0x5a7847[_0xfd03f0(0x202)](String[_0xfd03f0(0x374)](_0x401b60));}return _0x5a7847[_0xfd03f0(0x240)]('');},_0x5d5b03(0x480)),'parse':__name(function(_0x3f1c58){var _0xddadb8=_0x5d5b03;for(var _0x596e6d=_0x3f1c58[_0xddadb8(0x2f2)],_0x382ef3=[],_0x59d110=0x0;_0x59d110<_0x596e6d;_0x59d110++)_0x382ef3[_0x59d110>>>0x2]|=(_0x3f1c58[_0xddadb8(0x1e9)](_0x59d110)&0xff)<<0x18-_0x59d110%0x4*0x8;return new _0x32bbf8[(_0xddadb8(0x21f))](_0x382ef3,_0x596e6d);},_0x5d5b03(0x1cd))},_0x3fbab7=_0x2e6183[_0x5d5b03(0x4d2)]={'stringify':__name(function(_0x427d1f){var _0x1ff0e7=_0x5d5b03;try{return decodeURIComponent(escape(_0x37d089[_0x1ff0e7(0x480)](_0x427d1f)));}catch{throw new Error(_0x1ff0e7(0x25c));}},_0x5d5b03(0x480)),'parse':__name(function(_0x5279cc){var _0x793212=_0x5d5b03;return _0x37d089[_0x793212(0x1cd)](unescape(encodeURIComponent(_0x5279cc)));},_0x5d5b03(0x1cd))},_0x55993f=_0x469ae2[_0x5d5b03(0x1d7)]=_0x30019d[_0x5d5b03(0x400)]({'reset':__name(function(){var _0x592e27=_0x5d5b03;this[_0x592e27(0x417)]=new _0x32bbf8[(_0x592e27(0x21f))](),this['_nDataBytes']=0x0;},'reset'),'_append':__name(function(_0x312435){var _0x19786d=_0x5d5b03;typeof _0x312435==_0x19786d(0x380)&&(_0x312435=_0x3fbab7[_0x19786d(0x1cd)](_0x312435)),this['_data'][_0x19786d(0x2e2)](_0x312435),this[_0x19786d(0x477)]+=_0x312435[_0x19786d(0x1fe)];},_0x5d5b03(0x351)),'_process':__name(function(_0x30d9ea){var _0x258628=_0x5d5b03,_0x2247ad,_0x341670=this[_0x258628(0x417)],_0x2b0e82=_0x341670[_0x258628(0x253)],_0x119915=_0x341670[_0x258628(0x1fe)],_0x1653ed=this['blockSize'],_0x20d31f=_0x1653ed*0x4,_0x2490b5=_0x119915/_0x20d31f;_0x30d9ea?_0x2490b5=_0x8fe164[_0x258628(0x3a3)](_0x2490b5):_0x2490b5=_0x8fe164[_0x258628(0x29c)]((_0x2490b5|0x0)-this[_0x258628(0x1e3)],0x0);var _0x115668=_0x2490b5*_0x1653ed,_0x4d2a75=_0x8fe164[_0x258628(0x2ee)](_0x115668*0x4,_0x119915);if(_0x115668){for(var _0x3153ed=0x0;_0x3153ed<_0x115668;_0x3153ed+=_0x1653ed)this[_0x258628(0x1f3)](_0x2b0e82,_0x3153ed);_0x2247ad=_0x2b0e82[_0x258628(0x233)](0x0,_0x115668),_0x341670[_0x258628(0x1fe)]-=_0x4d2a75;}return new _0x32bbf8[(_0x258628(0x21f))](_0x2247ad,_0x4d2a75);},_0x5d5b03(0x3ca)),'clone':__name(function(){var _0x5c31c9=_0x5d5b03,_0x4bb020=_0x30019d[_0x5c31c9(0x3e5)][_0x5c31c9(0x4db)](this);return _0x4bb020[_0x5c31c9(0x417)]=this[_0x5c31c9(0x417)][_0x5c31c9(0x3e5)](),_0x4bb020;},_0x5d5b03(0x3e5)),'_minBufferSize':0x0});_0x469ae2[_0x5d5b03(0x482)]=_0x55993f[_0x5d5b03(0x400)]({'cfg':_0x30019d[_0x5d5b03(0x400)](),'init':__name(function(_0x3d1e66){var _0x3caed8=_0x5d5b03;this[_0x3caed8(0x3dc)]=this[_0x3caed8(0x3dc)][_0x3caed8(0x400)](_0x3d1e66),this[_0x3caed8(0x1be)]();},_0x5d5b03(0x21f)),'reset':__name(function(){var _0xc31cf4=_0x5d5b03;_0x55993f['reset'][_0xc31cf4(0x4db)](this),this[_0xc31cf4(0x4d9)]();},_0x5d5b03(0x1be)),'update':__name(function(_0x3c6db9){var _0x3219e2=_0x5d5b03;return this[_0x3219e2(0x351)](_0x3c6db9),this[_0x3219e2(0x3ca)](),this;},_0x5d5b03(0x2ea)),'finalize':__name(function(_0x48806a){var _0x5f5877=_0x5d5b03;_0x48806a&&this[_0x5f5877(0x351)](_0x48806a);var _0x3c3b12=this['_doFinalize']();return _0x3c3b12;},_0x5d5b03(0x4f9)),'blockSize':0x10,'_createHelper':__name(function(_0x3b68a6){return function(_0x57bcc9,_0x5b62c7){var _0x320ab6=_0x450a;return new _0x3b68a6[(_0x320ab6(0x21f))](_0x5b62c7)[_0x320ab6(0x4f9)](_0x57bcc9);};},_0x5d5b03(0x21e)),'_createHmacHelper':__name(function(_0x3115c1){return function(_0x5140bc,_0x3f6a4e){var _0x1f5412=_0x450a;return new _0x190480[(_0x1f5412(0x2a4))][(_0x1f5412(0x21f))](_0x3115c1,_0x3f6a4e)['finalize'](_0x5140bc);};},'_createHmacHelper')});var _0x190480=_0x2aaa7f['algo']={};return _0x2aaa7f;}(Math);return _0x37f9be;}));}(core$1)),core$1[_0x29faef(0x370)];}__name(requireCore,_0x5deefc(0x4f5));var encBase64$1={'exports':{}},encBase64=encBase64$1[_0x5deefc(0x370)],hasRequiredEncBase64;function requireEncBase64(){var _0x364882=_0x5deefc;return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0x21ca7b,_0x488c21){(function(_0x5158ca,_0xa7e149){_0x21ca7b['exports']=_0xa7e149(requireCore());}(encBase64,function(_0x2df081){var _0x4c16c5=_0x450a;return(function(){var _0xf713a3=_0x450a,_0x3ba163=_0x2df081,_0x189216=_0x3ba163[_0xf713a3(0x2b3)],_0x291dd8=_0x189216[_0xf713a3(0x3ec)],_0x4b4cac=_0x3ba163[_0xf713a3(0x23b)];_0x4b4cac['Base64']={'stringify':__name(function(_0x2df0d0){var _0x330b1e=_0xf713a3,_0x211313=_0x2df0d0[_0x330b1e(0x253)],_0x527f66=_0x2df0d0[_0x330b1e(0x1fe)],_0x1d36a9=this[_0x330b1e(0x391)];_0x2df0d0[_0x330b1e(0x347)]();for(var _0x56fb63=[],_0x495eef=0x0;_0x495eef<_0x527f66;_0x495eef+=0x3)for(var _0x4abfd7=_0x211313[_0x495eef>>>0x2]>>>0x18-_0x495eef%0x4*0x8&0xff,_0x504d18=_0x211313[_0x495eef+0x1>>>0x2]>>>0x18-(_0x495eef+0x1)%0x4*0x8&0xff,_0x3c5ff1=_0x211313[_0x495eef+0x2>>>0x2]>>>0x18-(_0x495eef+0x2)%0x4*0x8&0xff,_0x49ec03=_0x4abfd7<<0x10|_0x504d18<<0x8|_0x3c5ff1,_0x1217f1=0x0;_0x1217f1<0x4&&_0x495eef+_0x1217f1*0.75<_0x527f66;_0x1217f1++)_0x56fb63[_0x330b1e(0x202)](_0x1d36a9[_0x330b1e(0x320)](_0x49ec03>>>0x6*(0x3-_0x1217f1)&0x3f));var _0x4d4b54=_0x1d36a9[_0x330b1e(0x320)](0x40);if(_0x4d4b54){for(;_0x56fb63[_0x330b1e(0x2f2)]%0x4;)_0x56fb63[_0x330b1e(0x202)](_0x4d4b54);}return _0x56fb63[_0x330b1e(0x240)]('');},_0xf713a3(0x480)),'parse':__name(function(_0x39428c){var _0x29df1b=_0xf713a3,_0x47d81e=_0x39428c[_0x29df1b(0x2f2)],_0x5b523e=this[_0x29df1b(0x391)],_0x174042=this[_0x29df1b(0x307)];if(!_0x174042){_0x174042=this['_reverseMap']=[];for(var _0x4f2f0d=0x0;_0x4f2f0d<_0x5b523e['length'];_0x4f2f0d++)_0x174042[_0x5b523e[_0x29df1b(0x1e9)](_0x4f2f0d)]=_0x4f2f0d;}var _0x25e5cd=_0x5b523e[_0x29df1b(0x320)](0x40);if(_0x25e5cd){var _0xd7f469=_0x39428c[_0x29df1b(0x1cf)](_0x25e5cd);_0xd7f469!==-0x1&&(_0x47d81e=_0xd7f469);}return _0x3d83f1(_0x39428c,_0x47d81e,_0x174042);},'parse'),'_map':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='};function _0x3d83f1(_0x177cdf,_0x17b7c4,_0x48a4ca){var _0x3df2a9=_0xf713a3;for(var _0x49dad1=[],_0x27810e=0x0,_0xb3003=0x0;_0xb3003<_0x17b7c4;_0xb3003++)if(_0xb3003%0x4){var _0x26f68e=_0x48a4ca[_0x177cdf[_0x3df2a9(0x1e9)](_0xb3003-0x1)]<<_0xb3003%0x4*0x2,_0x49becc=_0x48a4ca[_0x177cdf[_0x3df2a9(0x1e9)](_0xb3003)]>>>0x6-_0xb3003%0x4*0x2,_0x2b14d6=_0x26f68e|_0x49becc;_0x49dad1[_0x27810e>>>0x2]|=_0x2b14d6<<0x18-_0x27810e%0x4*0x8,_0x27810e++;}return _0x291dd8[_0x3df2a9(0x366)](_0x49dad1,_0x27810e);}__name(_0x3d83f1,_0xf713a3(0x246));}()),_0x2df081[_0x4c16c5(0x23b)][_0x4c16c5(0x4b7)];}));}(encBase64$1)),encBase64$1[_0x364882(0x370)];}__name(requireEncBase64,_0x5deefc(0x494));var md5$1={'exports':{}},md5=md5$1['exports'],hasRequiredMd5;function requireMd5(){var _0x5068ed=_0x5deefc;return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x4bc242,_0x9767a){(function(_0x5a3c35,_0x5068cf){var _0x50098f=_0x450a;_0x4bc242[_0x50098f(0x370)]=_0x5068cf(requireCore());}(md5,function(_0x1bb079){return function(_0x4a340c){var _0x28fd06=_0x450a,_0x595b41=_0x1bb079,_0x13d069=_0x595b41[_0x28fd06(0x2b3)],_0x421669=_0x13d069[_0x28fd06(0x3ec)],_0x3703f7=_0x13d069[_0x28fd06(0x482)],_0x311c83=_0x595b41['algo'],_0x282a1d=[];(function(){var _0x2e4d02=_0x28fd06;for(var _0x2e5da4=0x0;_0x2e5da4<0x40;_0x2e5da4++)_0x282a1d[_0x2e5da4]=_0x4a340c[_0x2e4d02(0x27f)](_0x4a340c['sin'](_0x2e5da4+0x1))*0x100000000|0x0;}());var _0x40d0f4=_0x311c83[_0x28fd06(0x4ec)]=_0x3703f7[_0x28fd06(0x400)]({'_doReset':__name(function(){var _0x27eb11=_0x28fd06;this[_0x27eb11(0x456)]=new _0x421669[(_0x27eb11(0x21f))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},_0x28fd06(0x4d9)),'_doProcessBlock':__name(function(_0x4b54cc,_0x145c07){var _0xc280a6=_0x28fd06;for(var _0x100a73=0x0;_0x100a73<0x10;_0x100a73++){var _0x383bbd=_0x145c07+_0x100a73,_0x2246a0=_0x4b54cc[_0x383bbd];_0x4b54cc[_0x383bbd]=(_0x2246a0<<0x8|_0x2246a0>>>0x18)&0xff00ff|(_0x2246a0<<0x18|_0x2246a0>>>0x8)&0xff00ff00;}var _0x30a985=this[_0xc280a6(0x456)][_0xc280a6(0x253)],_0x1559d5=_0x4b54cc[_0x145c07+0x0],_0x29f657=_0x4b54cc[_0x145c07+0x1],_0x3ceb5b=_0x4b54cc[_0x145c07+0x2],_0x3ddfc7=_0x4b54cc[_0x145c07+0x3],_0x54c5be=_0x4b54cc[_0x145c07+0x4],_0x1ca069=_0x4b54cc[_0x145c07+0x5],_0xae135b=_0x4b54cc[_0x145c07+0x6],_0x1281be=_0x4b54cc[_0x145c07+0x7],_0x4939f9=_0x4b54cc[_0x145c07+0x8],_0xf55f66=_0x4b54cc[_0x145c07+0x9],_0x7231f2=_0x4b54cc[_0x145c07+0xa],_0x44ba33=_0x4b54cc[_0x145c07+0xb],_0x2f49e4=_0x4b54cc[_0x145c07+0xc],_0x599cce=_0x4b54cc[_0x145c07+0xd],_0x5574fe=_0x4b54cc[_0x145c07+0xe],_0x334b8d=_0x4b54cc[_0x145c07+0xf],_0x41187a=_0x30a985[0x0],_0x26193a=_0x30a985[0x1],_0x26f677=_0x30a985[0x2],_0x247850=_0x30a985[0x3];_0x41187a=_0x8d3a2c(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x1559d5,0x7,_0x282a1d[0x0]),_0x247850=_0x8d3a2c(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x29f657,0xc,_0x282a1d[0x1]),_0x26f677=_0x8d3a2c(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x3ceb5b,0x11,_0x282a1d[0x2]),_0x26193a=_0x8d3a2c(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x3ddfc7,0x16,_0x282a1d[0x3]),_0x41187a=_0x8d3a2c(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x54c5be,0x7,_0x282a1d[0x4]),_0x247850=_0x8d3a2c(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x1ca069,0xc,_0x282a1d[0x5]),_0x26f677=_0x8d3a2c(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0xae135b,0x11,_0x282a1d[0x6]),_0x26193a=_0x8d3a2c(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x1281be,0x16,_0x282a1d[0x7]),_0x41187a=_0x8d3a2c(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x4939f9,0x7,_0x282a1d[0x8]),_0x247850=_0x8d3a2c(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0xf55f66,0xc,_0x282a1d[0x9]),_0x26f677=_0x8d3a2c(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x7231f2,0x11,_0x282a1d[0xa]),_0x26193a=_0x8d3a2c(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x44ba33,0x16,_0x282a1d[0xb]),_0x41187a=_0x8d3a2c(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x2f49e4,0x7,_0x282a1d[0xc]),_0x247850=_0x8d3a2c(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x599cce,0xc,_0x282a1d[0xd]),_0x26f677=_0x8d3a2c(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x5574fe,0x11,_0x282a1d[0xe]),_0x26193a=_0x8d3a2c(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x334b8d,0x16,_0x282a1d[0xf]),_0x41187a=_0x1198a3(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x29f657,0x5,_0x282a1d[0x10]),_0x247850=_0x1198a3(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0xae135b,0x9,_0x282a1d[0x11]),_0x26f677=_0x1198a3(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x44ba33,0xe,_0x282a1d[0x12]),_0x26193a=_0x1198a3(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x1559d5,0x14,_0x282a1d[0x13]),_0x41187a=_0x1198a3(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x1ca069,0x5,_0x282a1d[0x14]),_0x247850=_0x1198a3(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x7231f2,0x9,_0x282a1d[0x15]),_0x26f677=_0x1198a3(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x334b8d,0xe,_0x282a1d[0x16]),_0x26193a=_0x1198a3(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x54c5be,0x14,_0x282a1d[0x17]),_0x41187a=_0x1198a3(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0xf55f66,0x5,_0x282a1d[0x18]),_0x247850=_0x1198a3(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x5574fe,0x9,_0x282a1d[0x19]),_0x26f677=_0x1198a3(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x3ddfc7,0xe,_0x282a1d[0x1a]),_0x26193a=_0x1198a3(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x4939f9,0x14,_0x282a1d[0x1b]),_0x41187a=_0x1198a3(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x599cce,0x5,_0x282a1d[0x1c]),_0x247850=_0x1198a3(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x3ceb5b,0x9,_0x282a1d[0x1d]),_0x26f677=_0x1198a3(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x1281be,0xe,_0x282a1d[0x1e]),_0x26193a=_0x1198a3(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x2f49e4,0x14,_0x282a1d[0x1f]),_0x41187a=_0x31dcf0(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x1ca069,0x4,_0x282a1d[0x20]),_0x247850=_0x31dcf0(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x4939f9,0xb,_0x282a1d[0x21]),_0x26f677=_0x31dcf0(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x44ba33,0x10,_0x282a1d[0x22]),_0x26193a=_0x31dcf0(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x5574fe,0x17,_0x282a1d[0x23]),_0x41187a=_0x31dcf0(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x29f657,0x4,_0x282a1d[0x24]),_0x247850=_0x31dcf0(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x54c5be,0xb,_0x282a1d[0x25]),_0x26f677=_0x31dcf0(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x1281be,0x10,_0x282a1d[0x26]),_0x26193a=_0x31dcf0(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x7231f2,0x17,_0x282a1d[0x27]),_0x41187a=_0x31dcf0(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x599cce,0x4,_0x282a1d[0x28]),_0x247850=_0x31dcf0(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x1559d5,0xb,_0x282a1d[0x29]),_0x26f677=_0x31dcf0(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x3ddfc7,0x10,_0x282a1d[0x2a]),_0x26193a=_0x31dcf0(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0xae135b,0x17,_0x282a1d[0x2b]),_0x41187a=_0x31dcf0(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0xf55f66,0x4,_0x282a1d[0x2c]),_0x247850=_0x31dcf0(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x2f49e4,0xb,_0x282a1d[0x2d]),_0x26f677=_0x31dcf0(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x334b8d,0x10,_0x282a1d[0x2e]),_0x26193a=_0x31dcf0(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x3ceb5b,0x17,_0x282a1d[0x2f]),_0x41187a=_0x1be9d(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x1559d5,0x6,_0x282a1d[0x30]),_0x247850=_0x1be9d(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x1281be,0xa,_0x282a1d[0x31]),_0x26f677=_0x1be9d(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x5574fe,0xf,_0x282a1d[0x32]),_0x26193a=_0x1be9d(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x1ca069,0x15,_0x282a1d[0x33]),_0x41187a=_0x1be9d(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x2f49e4,0x6,_0x282a1d[0x34]),_0x247850=_0x1be9d(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x3ddfc7,0xa,_0x282a1d[0x35]),_0x26f677=_0x1be9d(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x7231f2,0xf,_0x282a1d[0x36]),_0x26193a=_0x1be9d(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x29f657,0x15,_0x282a1d[0x37]),_0x41187a=_0x1be9d(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x4939f9,0x6,_0x282a1d[0x38]),_0x247850=_0x1be9d(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x334b8d,0xa,_0x282a1d[0x39]),_0x26f677=_0x1be9d(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0xae135b,0xf,_0x282a1d[0x3a]),_0x26193a=_0x1be9d(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0x599cce,0x15,_0x282a1d[0x3b]),_0x41187a=_0x1be9d(_0x41187a,_0x26193a,_0x26f677,_0x247850,_0x54c5be,0x6,_0x282a1d[0x3c]),_0x247850=_0x1be9d(_0x247850,_0x41187a,_0x26193a,_0x26f677,_0x44ba33,0xa,_0x282a1d[0x3d]),_0x26f677=_0x1be9d(_0x26f677,_0x247850,_0x41187a,_0x26193a,_0x3ceb5b,0xf,_0x282a1d[0x3e]),_0x26193a=_0x1be9d(_0x26193a,_0x26f677,_0x247850,_0x41187a,_0xf55f66,0x15,_0x282a1d[0x3f]),_0x30a985[0x0]=_0x30a985[0x0]+_0x41187a|0x0,_0x30a985[0x1]=_0x30a985[0x1]+_0x26193a|0x0,_0x30a985[0x2]=_0x30a985[0x2]+_0x26f677|0x0,_0x30a985[0x3]=_0x30a985[0x3]+_0x247850|0x0;},_0x28fd06(0x1f3)),'_doFinalize':__name(function(){var _0x42d767=_0x28fd06,_0x3f9a6b=this[_0x42d767(0x417)],_0x31fd60=_0x3f9a6b[_0x42d767(0x253)],_0x4dc664=this[_0x42d767(0x477)]*0x8,_0x3866ba=_0x3f9a6b['sigBytes']*0x8;_0x31fd60[_0x3866ba>>>0x5]|=0x80<<0x18-_0x3866ba%0x20;var _0x1a1f74=_0x4a340c['floor'](_0x4dc664/0x100000000),_0x5e7f07=_0x4dc664;_0x31fd60[(_0x3866ba+0x40>>>0x9<<0x4)+0xf]=(_0x1a1f74<<0x8|_0x1a1f74>>>0x18)&0xff00ff|(_0x1a1f74<<0x18|_0x1a1f74>>>0x8)&0xff00ff00,_0x31fd60[(_0x3866ba+0x40>>>0x9<<0x4)+0xe]=(_0x5e7f07<<0x8|_0x5e7f07>>>0x18)&0xff00ff|(_0x5e7f07<<0x18|_0x5e7f07>>>0x8)&0xff00ff00,_0x3f9a6b['sigBytes']=(_0x31fd60[_0x42d767(0x2f2)]+0x1)*0x4,this[_0x42d767(0x3ca)]();for(var _0x38ea80=this[_0x42d767(0x456)],_0x59d3d2=_0x38ea80[_0x42d767(0x253)],_0x380faa=0x0;_0x380faa<0x4;_0x380faa++){var _0x443a5d=_0x59d3d2[_0x380faa];_0x59d3d2[_0x380faa]=(_0x443a5d<<0x8|_0x443a5d>>>0x18)&0xff00ff|(_0x443a5d<<0x18|_0x443a5d>>>0x8)&0xff00ff00;}return _0x38ea80;},_0x28fd06(0x464)),'clone':__name(function(){var _0x4c62ad=_0x28fd06,_0x2863b1=_0x3703f7[_0x4c62ad(0x3e5)]['call'](this);return _0x2863b1[_0x4c62ad(0x456)]=this['_hash'][_0x4c62ad(0x3e5)](),_0x2863b1;},'clone')});function _0x8d3a2c(_0x205f03,_0x33f911,_0x1fa5a6,_0x1eecfe,_0x23ef79,_0x28ba24,_0x4ca54b){var _0x5281b0=_0x205f03+(_0x33f911&_0x1fa5a6|~_0x33f911&_0x1eecfe)+_0x23ef79+_0x4ca54b;return(_0x5281b0<<_0x28ba24|_0x5281b0>>>0x20-_0x28ba24)+_0x33f911;}__name(_0x8d3a2c,'FF');function _0x1198a3(_0x4ceb00,_0x3c8e00,_0x33789e,_0x4fba37,_0xc49b43,_0x52fb44,_0x2ad349){var _0x10dfcf=_0x4ceb00+(_0x3c8e00&_0x4fba37|_0x33789e&~_0x4fba37)+_0xc49b43+_0x2ad349;return(_0x10dfcf<<_0x52fb44|_0x10dfcf>>>0x20-_0x52fb44)+_0x3c8e00;}__name(_0x1198a3,'GG');function _0x31dcf0(_0x287a98,_0x8b1f51,_0x3370ad,_0x4534c8,_0x379013,_0x4bf4d7,_0x26bea4){var _0x30f671=_0x287a98+(_0x8b1f51^_0x3370ad^_0x4534c8)+_0x379013+_0x26bea4;return(_0x30f671<<_0x4bf4d7|_0x30f671>>>0x20-_0x4bf4d7)+_0x8b1f51;}__name(_0x31dcf0,'HH');function _0x1be9d(_0x1b346e,_0x1f1540,_0x1ca21e,_0x30661b,_0xe72f40,_0x4cd12a,_0x324187){var _0x3a7bed=_0x1b346e+(_0x1ca21e^(_0x1f1540|~_0x30661b))+_0xe72f40+_0x324187;return(_0x3a7bed<<_0x4cd12a|_0x3a7bed>>>0x20-_0x4cd12a)+_0x1f1540;}__name(_0x1be9d,'II'),_0x595b41[_0x28fd06(0x4ec)]=_0x3703f7[_0x28fd06(0x21e)](_0x40d0f4),_0x595b41[_0x28fd06(0x291)]=_0x3703f7[_0x28fd06(0x4bf)](_0x40d0f4);}(Math),_0x1bb079['MD5'];}));}(md5$1)),md5$1[_0x5068ed(0x370)];}__name(requireMd5,_0x5deefc(0x261));var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1[_0x5deefc(0x370)],hasRequiredSha1;function requireSha1(){var _0x62aab5=_0x5deefc;return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0x28e71d,_0x159bee){(function(_0xbb52a2,_0xdb2c01){var _0x5d3315=_0x450a;_0x28e71d[_0x5d3315(0x370)]=_0xdb2c01(requireCore());}(sha1,function(_0x551ba8){var _0x4f396f=_0x450a;return(function(){var _0x1d1629=_0x450a,_0x132030=_0x551ba8,_0x3df094=_0x132030[_0x1d1629(0x2b3)],_0xa058a1=_0x3df094[_0x1d1629(0x3ec)],_0x300926=_0x3df094['Hasher'],_0x2650ea=_0x132030[_0x1d1629(0x266)],_0x4f9936=[],_0x22a1e3=_0x2650ea['SHA1']=_0x300926['extend']({'_doReset':__name(function(){this['_hash']=new _0xa058a1['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},_0x1d1629(0x4d9)),'_doProcessBlock':__name(function(_0x20739f,_0x3b05e8){var _0x519d2f=_0x1d1629;for(var _0x2b0160=this[_0x519d2f(0x456)][_0x519d2f(0x253)],_0x5d0b56=_0x2b0160[0x0],_0x33ec0a=_0x2b0160[0x1],_0x5f4b02=_0x2b0160[0x2],_0xbc4373=_0x2b0160[0x3],_0x4072b7=_0x2b0160[0x4],_0x19a8a3=0x0;_0x19a8a3<0x50;_0x19a8a3++){if(_0x19a8a3<0x10)_0x4f9936[_0x19a8a3]=_0x20739f[_0x3b05e8+_0x19a8a3]|0x0;else{var _0x44d808=_0x4f9936[_0x19a8a3-0x3]^_0x4f9936[_0x19a8a3-0x8]^_0x4f9936[_0x19a8a3-0xe]^_0x4f9936[_0x19a8a3-0x10];_0x4f9936[_0x19a8a3]=_0x44d808<<0x1|_0x44d808>>>0x1f;}var _0x16a00b=(_0x5d0b56<<0x5|_0x5d0b56>>>0x1b)+_0x4072b7+_0x4f9936[_0x19a8a3];_0x19a8a3<0x14?_0x16a00b+=(_0x33ec0a&_0x5f4b02|~_0x33ec0a&_0xbc4373)+0x5a827999:_0x19a8a3<0x28?_0x16a00b+=(_0x33ec0a^_0x5f4b02^_0xbc4373)+0x6ed9eba1:_0x19a8a3<0x3c?_0x16a00b+=(_0x33ec0a&_0x5f4b02|_0x33ec0a&_0xbc4373|_0x5f4b02&_0xbc4373)-0x70e44324:_0x16a00b+=(_0x33ec0a^_0x5f4b02^_0xbc4373)-0x359d3e2a,_0x4072b7=_0xbc4373,_0xbc4373=_0x5f4b02,_0x5f4b02=_0x33ec0a<<0x1e|_0x33ec0a>>>0x2,_0x33ec0a=_0x5d0b56,_0x5d0b56=_0x16a00b;}_0x2b0160[0x0]=_0x2b0160[0x0]+_0x5d0b56|0x0,_0x2b0160[0x1]=_0x2b0160[0x1]+_0x33ec0a|0x0,_0x2b0160[0x2]=_0x2b0160[0x2]+_0x5f4b02|0x0,_0x2b0160[0x3]=_0x2b0160[0x3]+_0xbc4373|0x0,_0x2b0160[0x4]=_0x2b0160[0x4]+_0x4072b7|0x0;},_0x1d1629(0x1f3)),'_doFinalize':__name(function(){var _0x5272d7=_0x1d1629,_0x3d109d=this[_0x5272d7(0x417)],_0xe7d9c=_0x3d109d[_0x5272d7(0x253)],_0x352b87=this[_0x5272d7(0x477)]*0x8,_0x185cd8=_0x3d109d[_0x5272d7(0x1fe)]*0x8;return _0xe7d9c[_0x185cd8>>>0x5]|=0x80<<0x18-_0x185cd8%0x20,_0xe7d9c[(_0x185cd8+0x40>>>0x9<<0x4)+0xe]=Math[_0x5272d7(0x348)](_0x352b87/0x100000000),_0xe7d9c[(_0x185cd8+0x40>>>0x9<<0x4)+0xf]=_0x352b87,_0x3d109d[_0x5272d7(0x1fe)]=_0xe7d9c[_0x5272d7(0x2f2)]*0x4,this['_process'](),this['_hash'];},'_doFinalize'),'clone':__name(function(){var _0x32c7fc=_0x1d1629,_0x6665f4=_0x300926['clone'][_0x32c7fc(0x4db)](this);return _0x6665f4[_0x32c7fc(0x456)]=this[_0x32c7fc(0x456)][_0x32c7fc(0x3e5)](),_0x6665f4;},_0x1d1629(0x3e5))});_0x132030[_0x1d1629(0x328)]=_0x300926['_createHelper'](_0x22a1e3),_0x132030['HmacSHA1']=_0x300926['_createHmacHelper'](_0x22a1e3);}()),_0x551ba8[_0x4f396f(0x328)];}));}(sha1$1)),sha1$1[_0x62aab5(0x370)];}__name(requireSha1,_0x5deefc(0x1c3));var hmac$1={'exports':{}},hmac=hmac$1[_0x5deefc(0x370)],hasRequiredHmac;function requireHmac(){var _0xeed9d5=_0x5deefc;return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x58b942,_0x3a160d){(function(_0x1bbdb7,_0x35c727){var _0x61ddab=_0x450a;_0x58b942[_0x61ddab(0x370)]=_0x35c727(requireCore());}(hmac,function(_0x55e153){(function(){var _0x14bbba=_0x450a,_0x3f6994=_0x55e153,_0x507bc7=_0x3f6994[_0x14bbba(0x2b3)],_0x349c65=_0x507bc7['Base'],_0xbf0b8a=_0x3f6994[_0x14bbba(0x23b)],_0xc945ea=_0xbf0b8a['Utf8'],_0x144dff=_0x3f6994[_0x14bbba(0x266)];_0x144dff['HMAC']=_0x349c65[_0x14bbba(0x400)]({'init':__name(function(_0x5506b3,_0x16cd76){var _0x517576=_0x14bbba;_0x5506b3=this[_0x517576(0x2bd)]=new _0x5506b3[(_0x517576(0x21f))](),typeof _0x16cd76==_0x517576(0x380)&&(_0x16cd76=_0xc945ea[_0x517576(0x1cd)](_0x16cd76));var _0x5e03aa=_0x5506b3[_0x517576(0x2eb)],_0x19d59d=_0x5e03aa*0x4;_0x16cd76[_0x517576(0x1fe)]>_0x19d59d&&(_0x16cd76=_0x5506b3['finalize'](_0x16cd76)),_0x16cd76[_0x517576(0x347)]();for(var _0x174b21=this[_0x517576(0x48b)]=_0x16cd76[_0x517576(0x3e5)](),_0x58b617=this[_0x517576(0x368)]=_0x16cd76[_0x517576(0x3e5)](),_0x33f228=_0x174b21[_0x517576(0x253)],_0x185650=_0x58b617[_0x517576(0x253)],_0x3af5cd=0x0;_0x3af5cd<_0x5e03aa;_0x3af5cd++)_0x33f228[_0x3af5cd]^=0x5c5c5c5c,_0x185650[_0x3af5cd]^=0x36363636;_0x174b21['sigBytes']=_0x58b617[_0x517576(0x1fe)]=_0x19d59d,this[_0x517576(0x1be)]();},'init'),'reset':__name(function(){var _0x4bff26=_0x14bbba,_0x3b6b1c=this[_0x4bff26(0x2bd)];_0x3b6b1c[_0x4bff26(0x1be)](),_0x3b6b1c[_0x4bff26(0x2ea)](this['_iKey']);},'reset'),'update':__name(function(_0x52ab9e){var _0x23d50e=_0x14bbba;return this[_0x23d50e(0x2bd)][_0x23d50e(0x2ea)](_0x52ab9e),this;},_0x14bbba(0x2ea)),'finalize':__name(function(_0x1f230a){var _0x3669ef=_0x14bbba,_0xe364f0=this[_0x3669ef(0x2bd)],_0x211ccb=_0xe364f0['finalize'](_0x1f230a);_0xe364f0['reset']();var _0x37a696=_0xe364f0['finalize'](this[_0x3669ef(0x48b)]['clone']()[_0x3669ef(0x2e2)](_0x211ccb));return _0x37a696;},_0x14bbba(0x4f9))});}());}));}(hmac$1)),hmac$1[_0xeed9d5(0x370)];}__name(requireHmac,'requireHmac');var evpkdf=evpkdf$1[_0x5deefc(0x370)],hasRequiredEvpkdf;function requireEvpkdf(){var _0xf070c5=_0x5deefc;return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x3c0dd3,_0x4c0663){(function(_0x36533e,_0x57a3bc,_0x54c693){_0x3c0dd3['exports']=_0x57a3bc(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x4ad8f2){var _0x99c1b3=_0x450a;return(function(){var _0x188805=_0x450a,_0x1a0ca9=_0x4ad8f2,_0x1a1ffb=_0x1a0ca9[_0x188805(0x2b3)],_0x3b57f3=_0x1a1ffb[_0x188805(0x4c7)],_0x2480fc=_0x1a1ffb[_0x188805(0x3ec)],_0x1f9dab=_0x1a0ca9[_0x188805(0x266)],_0x2d3efd=_0x1f9dab['MD5'],_0x4416b7=_0x1f9dab['EvpKDF']=_0x3b57f3[_0x188805(0x400)]({'cfg':_0x3b57f3[_0x188805(0x400)]({'keySize':0x80/0x20,'hasher':_0x2d3efd,'iterations':0x1}),'init':__name(function(_0x11aa75){var _0xdd6ae9=_0x188805;this[_0xdd6ae9(0x3dc)]=this[_0xdd6ae9(0x3dc)][_0xdd6ae9(0x400)](_0x11aa75);},_0x188805(0x21f)),'compute':__name(function(_0x3e34bd,_0x25da01){var _0x402b1e=_0x188805;for(var _0x35c455,_0x162682=this[_0x402b1e(0x3dc)],_0x2f29d9=_0x162682[_0x402b1e(0x4fb)][_0x402b1e(0x366)](),_0x57d886=_0x2480fc[_0x402b1e(0x366)](),_0x41afcb=_0x57d886['words'],_0x5a1748=_0x162682[_0x402b1e(0x2b6)],_0x1dc6c8=_0x162682['iterations'];_0x41afcb['length']<_0x5a1748;){_0x35c455&&_0x2f29d9[_0x402b1e(0x2ea)](_0x35c455),_0x35c455=_0x2f29d9[_0x402b1e(0x2ea)](_0x3e34bd)[_0x402b1e(0x4f9)](_0x25da01),_0x2f29d9['reset']();for(var _0x576ae3=0x1;_0x576ae3<_0x1dc6c8;_0x576ae3++)_0x35c455=_0x2f29d9[_0x402b1e(0x4f9)](_0x35c455),_0x2f29d9[_0x402b1e(0x1be)]();_0x57d886[_0x402b1e(0x2e2)](_0x35c455);}return _0x57d886[_0x402b1e(0x1fe)]=_0x5a1748*0x4,_0x57d886;},_0x188805(0x223))});_0x1a0ca9[_0x188805(0x43a)]=function(_0x1bac84,_0x153756,_0x5d36b6){return _0x4416b7['create'](_0x5d36b6)['compute'](_0x1bac84,_0x153756);};}()),_0x4ad8f2[_0x99c1b3(0x43a)];}));}(evpkdf$1)),evpkdf$1[_0xf070c5(0x370)];}__name(requireEvpkdf,_0x5deefc(0x379));var cipherCore$1={'exports':{}},cipherCore=cipherCore$1[_0x5deefc(0x370)],hasRequiredCipherCore;function requireCipherCore(){var _0x54c5bb=_0x5deefc;return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x267551,_0x13b2dd){(function(_0x8c1e6a,_0x5ba514,_0x426031){var _0x502049=_0x450a;_0x267551[_0x502049(0x370)]=_0x5ba514(requireCore(),requireEvpkdf());}(cipherCore,function(_0x2f5827){var _0x40980d=_0x450a;_0x2f5827[_0x40980d(0x2b3)][_0x40980d(0x441)]||function(_0x484956){var _0x497a6c=_0x40980d,_0x41d08c=_0x2f5827,_0xbdcf3b=_0x41d08c[_0x497a6c(0x2b3)],_0x155d48=_0xbdcf3b[_0x497a6c(0x4c7)],_0xba9238=_0xbdcf3b[_0x497a6c(0x3ec)],_0x191517=_0xbdcf3b[_0x497a6c(0x1d7)],_0x36eae3=_0x41d08c[_0x497a6c(0x23b)];_0x36eae3[_0x497a6c(0x4d2)];var _0x4598bc=_0x36eae3['Base64'],_0x1675e7=_0x41d08c[_0x497a6c(0x266)],_0xd6423c=_0x1675e7[_0x497a6c(0x43a)],_0x306c73=_0xbdcf3b[_0x497a6c(0x441)]=_0x191517[_0x497a6c(0x400)]({'cfg':_0x155d48[_0x497a6c(0x400)](),'createEncryptor':__name(function(_0x5b7502,_0x4e200a){var _0x297e32=_0x497a6c;return this[_0x297e32(0x366)](this[_0x297e32(0x4a5)],_0x5b7502,_0x4e200a);},_0x497a6c(0x39c)),'createDecryptor':__name(function(_0x58cff1,_0x29203d){var _0x2a721c=_0x497a6c;return this['create'](this[_0x2a721c(0x447)],_0x58cff1,_0x29203d);},_0x497a6c(0x248)),'init':__name(function(_0x4f6b22,_0x4ca6fc,_0x169a52){var _0x40902b=_0x497a6c;this[_0x40902b(0x3dc)]=this['cfg'][_0x40902b(0x400)](_0x169a52),this[_0x40902b(0x3d4)]=_0x4f6b22,this['_key']=_0x4ca6fc,this[_0x40902b(0x1be)]();},_0x497a6c(0x21f)),'reset':__name(function(){var _0x10582c=_0x497a6c;_0x191517['reset'][_0x10582c(0x4db)](this),this[_0x10582c(0x4d9)]();},_0x497a6c(0x1be)),'process':__name(function(_0x31b273){var _0x52901c=_0x497a6c;return this[_0x52901c(0x351)](_0x31b273),this['_process']();},_0x497a6c(0x467)),'finalize':__name(function(_0x2d0ef7){var _0x573da1=_0x497a6c;_0x2d0ef7&&this[_0x573da1(0x351)](_0x2d0ef7);var _0x5fe434=this['_doFinalize']();return _0x5fe434;},_0x497a6c(0x4f9)),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x344d07(_0x99c80e){var _0x58d625=_0x450a;return typeof _0x99c80e==_0x58d625(0x380)?_0xbbd410:_0x169519;}return __name(_0x344d07,'selectCipherStrategy'),function(_0x2ffdfa){var _0x5a4ad7=_0x450a;return{'encrypt':__name(function(_0x28f557,_0x1e5b9c,_0x123e8a){var _0x461490=_0x450a;return _0x344d07(_0x1e5b9c)[_0x461490(0x216)](_0x2ffdfa,_0x28f557,_0x1e5b9c,_0x123e8a);},_0x5a4ad7(0x216)),'decrypt':__name(function(_0x5ca927,_0x53c920,_0x51b8ff){var _0x57695e=_0x5a4ad7;return _0x344d07(_0x53c920)[_0x57695e(0x2ec)](_0x2ffdfa,_0x5ca927,_0x53c920,_0x51b8ff);},'decrypt')};};}())});_0xbdcf3b[_0x497a6c(0x2c9)]=_0x306c73[_0x497a6c(0x400)]({'_doFinalize':__name(function(){var _0x53a14=_0x497a6c,_0x4d4adf=this[_0x53a14(0x3ca)](!0x0);return _0x4d4adf;},_0x497a6c(0x464)),'blockSize':0x1});var _0x5ac9aa=_0x41d08c[_0x497a6c(0x3bd)]={},_0x4995c8=_0xbdcf3b[_0x497a6c(0x48d)]=_0x155d48[_0x497a6c(0x400)]({'createEncryptor':__name(function(_0x366a9c,_0xea15e5){var _0x1047a0=_0x497a6c;return this[_0x1047a0(0x1c7)][_0x1047a0(0x366)](_0x366a9c,_0xea15e5);},'createEncryptor'),'createDecryptor':__name(function(_0xafc43f,_0x56520f){var _0x511e32=_0x497a6c;return this[_0x511e32(0x34f)][_0x511e32(0x366)](_0xafc43f,_0x56520f);},_0x497a6c(0x248)),'init':__name(function(_0xa3e545,_0x2fc517){this['_cipher']=_0xa3e545,this['_iv']=_0x2fc517;},_0x497a6c(0x21f))}),_0x546c1d=_0x5ac9aa[_0x497a6c(0x3b6)]=(function(){var _0x14b020=_0x497a6c,_0x55e761=_0x4995c8[_0x14b020(0x400)]();_0x55e761[_0x14b020(0x1c7)]=_0x55e761['extend']({'processBlock':__name(function(_0x36fcf2,_0x18c78e){var _0x35951f=_0x14b020,_0x3e0ea8=this[_0x35951f(0x308)],_0x3261c7=_0x3e0ea8[_0x35951f(0x2eb)];_0x551b63['call'](this,_0x36fcf2,_0x18c78e,_0x3261c7),_0x3e0ea8[_0x35951f(0x265)](_0x36fcf2,_0x18c78e),this[_0x35951f(0x24d)]=_0x36fcf2[_0x35951f(0x479)](_0x18c78e,_0x18c78e+_0x3261c7);},_0x14b020(0x42b))}),_0x55e761[_0x14b020(0x34f)]=_0x55e761[_0x14b020(0x400)]({'processBlock':__name(function(_0x501db3,_0x2d5c4d){var _0x4e3126=_0x14b020,_0x2f0b77=this[_0x4e3126(0x308)],_0xf97ab=_0x2f0b77[_0x4e3126(0x2eb)],_0x2deadb=_0x501db3[_0x4e3126(0x479)](_0x2d5c4d,_0x2d5c4d+_0xf97ab);_0x2f0b77['decryptBlock'](_0x501db3,_0x2d5c4d),_0x551b63['call'](this,_0x501db3,_0x2d5c4d,_0xf97ab),this[_0x4e3126(0x24d)]=_0x2deadb;},'processBlock')});function _0x551b63(_0x15cd42,_0x2e85a0,_0x59da3c){var _0x27679c=_0x14b020,_0x1033f6,_0x1d3af4=this[_0x27679c(0x271)];_0x1d3af4?(_0x1033f6=_0x1d3af4,this[_0x27679c(0x271)]=_0x484956):_0x1033f6=this[_0x27679c(0x24d)];for(var _0x5a79bc=0x0;_0x5a79bc<_0x59da3c;_0x5a79bc++)_0x15cd42[_0x2e85a0+_0x5a79bc]^=_0x1033f6[_0x5a79bc];}return __name(_0x551b63,_0x14b020(0x343)),_0x55e761;}()),_0x45ae5a=_0x41d08c[_0x497a6c(0x2d2)]={},_0x5b49b2=_0x45ae5a[_0x497a6c(0x35b)]={'pad':__name(function(_0x27786f,_0x5f016b){var _0x5976fd=_0x497a6c;for(var _0xf3972=_0x5f016b*0x4,_0x6d849f=_0xf3972-_0x27786f[_0x5976fd(0x1fe)]%_0xf3972,_0x4e7f68=_0x6d849f<<0x18|_0x6d849f<<0x10|_0x6d849f<<0x8|_0x6d849f,_0x47e9ec=[],_0x3a7419=0x0;_0x3a7419<_0x6d849f;_0x3a7419+=0x4)_0x47e9ec[_0x5976fd(0x202)](_0x4e7f68);var _0x153474=_0xba9238[_0x5976fd(0x366)](_0x47e9ec,_0x6d849f);_0x27786f[_0x5976fd(0x2e2)](_0x153474);},_0x497a6c(0x2d2)),'unpad':__name(function(_0x34bad8){var _0x2c2445=_0x497a6c,_0x3d0b84=_0x34bad8[_0x2c2445(0x253)][_0x34bad8['sigBytes']-0x1>>>0x2]&0xff;_0x34bad8[_0x2c2445(0x1fe)]-=_0x3d0b84;},_0x497a6c(0x269))};_0xbdcf3b['BlockCipher']=_0x306c73[_0x497a6c(0x400)]({'cfg':_0x306c73[_0x497a6c(0x3dc)][_0x497a6c(0x400)]({'mode':_0x546c1d,'padding':_0x5b49b2}),'reset':__name(function(){var _0x50a2a6=_0x497a6c,_0x39c60d;_0x306c73[_0x50a2a6(0x1be)][_0x50a2a6(0x4db)](this);var _0x515e8d=this['cfg'],_0x10f80f=_0x515e8d['iv'],_0x59e308=_0x515e8d[_0x50a2a6(0x3bd)];this[_0x50a2a6(0x3d4)]==this[_0x50a2a6(0x4a5)]?_0x39c60d=_0x59e308[_0x50a2a6(0x39c)]:(_0x39c60d=_0x59e308[_0x50a2a6(0x248)],this[_0x50a2a6(0x1e3)]=0x1),this[_0x50a2a6(0x1f4)]&&this[_0x50a2a6(0x1f4)][_0x50a2a6(0x29f)]==_0x39c60d?this[_0x50a2a6(0x1f4)][_0x50a2a6(0x21f)](this,_0x10f80f&&_0x10f80f['words']):(this[_0x50a2a6(0x1f4)]=_0x39c60d[_0x50a2a6(0x4db)](_0x59e308,this,_0x10f80f&&_0x10f80f[_0x50a2a6(0x253)]),this['_mode']['__creator']=_0x39c60d);},_0x497a6c(0x1be)),'_doProcessBlock':__name(function(_0x2aed88,_0x276845){var _0x809a7e=_0x497a6c;this[_0x809a7e(0x1f4)][_0x809a7e(0x42b)](_0x2aed88,_0x276845);},_0x497a6c(0x1f3)),'_doFinalize':__name(function(){var _0x5be1dc=_0x497a6c,_0x549e40,_0x2459d1=this['cfg']['padding'];return this[_0x5be1dc(0x3d4)]==this[_0x5be1dc(0x4a5)]?(_0x2459d1['pad'](this['_data'],this['blockSize']),_0x549e40=this['_process'](!0x0)):(_0x549e40=this['_process'](!0x0),_0x2459d1[_0x5be1dc(0x269)](_0x549e40)),_0x549e40;},_0x497a6c(0x464)),'blockSize':0x80/0x20});var _0x1a1688=_0xbdcf3b[_0x497a6c(0x2b8)]=_0x155d48['extend']({'init':__name(function(_0x15cd96){var _0x22295e=_0x497a6c;this[_0x22295e(0x437)](_0x15cd96);},'init'),'toString':__name(function(_0x594947){var _0x17d11e=_0x497a6c;return(_0x594947||this[_0x17d11e(0x2d3)])['stringify'](this);},_0x497a6c(0x4c1))}),_0x3523e7=_0x41d08c[_0x497a6c(0x1b7)]={},_0x3333e2=_0x3523e7[_0x497a6c(0x2ce)]={'stringify':__name(function(_0x227c2d){var _0xd270bf=_0x497a6c,_0x579e0b,_0x576676=_0x227c2d[_0xd270bf(0x325)],_0x201eac=_0x227c2d[_0xd270bf(0x3d7)];return _0x201eac?_0x579e0b=_0xba9238[_0xd270bf(0x366)]([0x53616c74,0x65645f5f])['concat'](_0x201eac)[_0xd270bf(0x2e2)](_0x576676):_0x579e0b=_0x576676,_0x579e0b[_0xd270bf(0x4c1)](_0x4598bc);},'stringify'),'parse':__name(function(_0x45fbab){var _0x5adc55=_0x497a6c,_0x107337,_0x5af27d=_0x4598bc[_0x5adc55(0x1cd)](_0x45fbab),_0x592859=_0x5af27d['words'];return _0x592859[0x0]==0x53616c74&&_0x592859[0x1]==0x65645f5f&&(_0x107337=_0xba9238[_0x5adc55(0x366)](_0x592859[_0x5adc55(0x479)](0x2,0x4)),_0x592859[_0x5adc55(0x233)](0x0,0x4),_0x5af27d['sigBytes']-=0x10),_0x1a1688['create']({'ciphertext':_0x5af27d,'salt':_0x107337});},_0x497a6c(0x1cd))},_0x169519=_0xbdcf3b['SerializableCipher']=_0x155d48[_0x497a6c(0x400)]({'cfg':_0x155d48[_0x497a6c(0x400)]({'format':_0x3333e2}),'encrypt':__name(function(_0x125202,_0x48849d,_0x27f31e,_0xf1a15a){var _0x86033a=_0x497a6c;_0xf1a15a=this[_0x86033a(0x3dc)][_0x86033a(0x400)](_0xf1a15a);var _0x5664b2=_0x125202[_0x86033a(0x39c)](_0x27f31e,_0xf1a15a),_0x3bf404=_0x5664b2[_0x86033a(0x4f9)](_0x48849d),_0x3d66af=_0x5664b2[_0x86033a(0x3dc)];return _0x1a1688[_0x86033a(0x366)]({'ciphertext':_0x3bf404,'key':_0x27f31e,'iv':_0x3d66af['iv'],'algorithm':_0x125202,'mode':_0x3d66af[_0x86033a(0x3bd)],'padding':_0x3d66af['padding'],'blockSize':_0x125202[_0x86033a(0x2eb)],'formatter':_0xf1a15a[_0x86033a(0x1b7)]});},_0x497a6c(0x216)),'decrypt':__name(function(_0x16f296,_0x44e499,_0x1d7a1d,_0x1c13c9){var _0x14eead=_0x497a6c;_0x1c13c9=this['cfg'][_0x14eead(0x400)](_0x1c13c9),_0x44e499=this[_0x14eead(0x4c8)](_0x44e499,_0x1c13c9[_0x14eead(0x1b7)]);var _0x3235d5=_0x16f296[_0x14eead(0x248)](_0x1d7a1d,_0x1c13c9)['finalize'](_0x44e499[_0x14eead(0x325)]);return _0x3235d5;},_0x497a6c(0x2ec)),'_parse':__name(function(_0x2d6f3d,_0x263319){var _0x47cb3e=_0x497a6c;return typeof _0x2d6f3d==_0x47cb3e(0x380)?_0x263319[_0x47cb3e(0x1cd)](_0x2d6f3d,this):_0x2d6f3d;},_0x497a6c(0x4c8))}),_0x886afb=_0x41d08c[_0x497a6c(0x27d)]={},_0x2ff939=_0x886afb[_0x497a6c(0x2ce)]={'execute':__name(function(_0x5bec9e,_0x4379fd,_0x434bee,_0x2a6f9d,_0x4a8744){var _0x394a52=_0x497a6c;if(_0x2a6f9d||(_0x2a6f9d=_0xba9238[_0x394a52(0x4ae)](0x40/0x8)),_0x4a8744)var _0x441650=_0xd6423c[_0x394a52(0x366)]({'keySize':_0x4379fd+_0x434bee,'hasher':_0x4a8744})[_0x394a52(0x223)](_0x5bec9e,_0x2a6f9d);else var _0x441650=_0xd6423c[_0x394a52(0x366)]({'keySize':_0x4379fd+_0x434bee})[_0x394a52(0x223)](_0x5bec9e,_0x2a6f9d);var _0x1dc3df=_0xba9238[_0x394a52(0x366)](_0x441650[_0x394a52(0x253)]['slice'](_0x4379fd),_0x434bee*0x4);return _0x441650['sigBytes']=_0x4379fd*0x4,_0x1a1688[_0x394a52(0x366)]({'key':_0x441650,'iv':_0x1dc3df,'salt':_0x2a6f9d});},_0x497a6c(0x388))},_0xbbd410=_0xbdcf3b[_0x497a6c(0x3b1)]=_0x169519[_0x497a6c(0x400)]({'cfg':_0x169519['cfg'][_0x497a6c(0x400)]({'kdf':_0x2ff939}),'encrypt':__name(function(_0x21c71c,_0x39abdb,_0x1f612a,_0x49e842){var _0x5afa81=_0x497a6c;_0x49e842=this['cfg'][_0x5afa81(0x400)](_0x49e842);var _0x2e36be=_0x49e842['kdf'][_0x5afa81(0x388)](_0x1f612a,_0x21c71c[_0x5afa81(0x2b6)],_0x21c71c[_0x5afa81(0x3b0)],_0x49e842[_0x5afa81(0x3d7)],_0x49e842[_0x5afa81(0x4fb)]);_0x49e842['iv']=_0x2e36be['iv'];var _0x246a5a=_0x169519[_0x5afa81(0x216)]['call'](this,_0x21c71c,_0x39abdb,_0x2e36be[_0x5afa81(0x1f6)],_0x49e842);return _0x246a5a[_0x5afa81(0x437)](_0x2e36be),_0x246a5a;},_0x497a6c(0x216)),'decrypt':__name(function(_0x46252a,_0x206718,_0x52cce9,_0x5a98d6){var _0x5c1637=_0x497a6c;_0x5a98d6=this['cfg']['extend'](_0x5a98d6),_0x206718=this['_parse'](_0x206718,_0x5a98d6[_0x5c1637(0x1b7)]);var _0x4bd5b6=_0x5a98d6[_0x5c1637(0x27d)][_0x5c1637(0x388)](_0x52cce9,_0x46252a['keySize'],_0x46252a['ivSize'],_0x206718['salt'],_0x5a98d6[_0x5c1637(0x4fb)]);_0x5a98d6['iv']=_0x4bd5b6['iv'];var _0x25c5f7=_0x169519[_0x5c1637(0x2ec)]['call'](this,_0x46252a,_0x206718,_0x4bd5b6[_0x5c1637(0x1f6)],_0x5a98d6);return _0x25c5f7;},_0x497a6c(0x2ec))});}();}));}(cipherCore$1)),cipherCore$1[_0x54c5bb(0x370)];}__name(requireCipherCore,'requireCipherCore');var aes=aes$1[_0x5deefc(0x370)],hasRequiredAes;function requireAes(){var _0x37d89a=_0x5deefc;return hasRequiredAes||(hasRequiredAes=0x1,function(_0x47c732,_0x34c4d0){(function(_0x35e805,_0x4e901b,_0x25577c){var _0x826944=_0x450a;_0x47c732[_0x826944(0x370)]=_0x4e901b(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x24ef18){var _0x322957=_0x450a;return(function(){var _0x87e4d8=_0x450a,_0x30633f=_0x24ef18,_0x3d6a3a=_0x30633f[_0x87e4d8(0x2b3)],_0x1dd0bc=_0x3d6a3a[_0x87e4d8(0x212)],_0x190ed3=_0x30633f[_0x87e4d8(0x266)],_0x1d0aea=[],_0xd30fff=[],_0x3107c2=[],_0x4a3666=[],_0x5397cb=[],_0x2e6964=[],_0x3e3d36=[],_0x63f661=[],_0x4d4931=[],_0x5be9f7=[];(function(){for(var _0x51413d=[],_0xf890a9=0x0;_0xf890a9<0x100;_0xf890a9++)_0xf890a9<0x80?_0x51413d[_0xf890a9]=_0xf890a9<<0x1:_0x51413d[_0xf890a9]=_0xf890a9<<0x1^0x11b;for(var _0x5f3159=0x0,_0x432764=0x0,_0xf890a9=0x0;_0xf890a9<0x100;_0xf890a9++){var _0x35046f=_0x432764^_0x432764<<0x1^_0x432764<<0x2^_0x432764<<0x3^_0x432764<<0x4;_0x35046f=_0x35046f>>>0x8^_0x35046f&0xff^0x63,_0x1d0aea[_0x5f3159]=_0x35046f,_0xd30fff[_0x35046f]=_0x5f3159;var _0x5b63d0=_0x51413d[_0x5f3159],_0x2b8025=_0x51413d[_0x5b63d0],_0x2e681f=_0x51413d[_0x2b8025],_0x5a4e1d=_0x51413d[_0x35046f]*0x101^_0x35046f*0x1010100;_0x3107c2[_0x5f3159]=_0x5a4e1d<<0x18|_0x5a4e1d>>>0x8,_0x4a3666[_0x5f3159]=_0x5a4e1d<<0x10|_0x5a4e1d>>>0x10,_0x5397cb[_0x5f3159]=_0x5a4e1d<<0x8|_0x5a4e1d>>>0x18,_0x2e6964[_0x5f3159]=_0x5a4e1d;var _0x5a4e1d=_0x2e681f*0x1010101^_0x2b8025*0x10001^_0x5b63d0*0x101^_0x5f3159*0x1010100;_0x3e3d36[_0x35046f]=_0x5a4e1d<<0x18|_0x5a4e1d>>>0x8,_0x63f661[_0x35046f]=_0x5a4e1d<<0x10|_0x5a4e1d>>>0x10,_0x4d4931[_0x35046f]=_0x5a4e1d<<0x8|_0x5a4e1d>>>0x18,_0x5be9f7[_0x35046f]=_0x5a4e1d,_0x5f3159?(_0x5f3159=_0x5b63d0^_0x51413d[_0x51413d[_0x51413d[_0x2e681f^_0x5b63d0]]],_0x432764^=_0x51413d[_0x51413d[_0x432764]]):_0x5f3159=_0x432764=0x1;}}());var _0xdc81d7=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x174349=_0x190ed3[_0x87e4d8(0x22f)]=_0x1dd0bc[_0x87e4d8(0x400)]({'_doReset':__name(function(){var _0x46f6f5=_0x87e4d8,_0x3d89ee;if(!(this['_nRounds']&&this[_0x46f6f5(0x294)]===this['_key'])){for(var _0x2b83bd=this[_0x46f6f5(0x294)]=this[_0x46f6f5(0x42a)],_0xe3337f=_0x2b83bd[_0x46f6f5(0x253)],_0x5d9d12=_0x2b83bd[_0x46f6f5(0x1fe)]/0x4,_0x5e56ea=this[_0x46f6f5(0x396)]=_0x5d9d12+0x6,_0x17c7c5=(_0x5e56ea+0x1)*0x4,_0x15c178=this[_0x46f6f5(0x435)]=[],_0x3f06a4=0x0;_0x3f06a4<_0x17c7c5;_0x3f06a4++)_0x3f06a4<_0x5d9d12?_0x15c178[_0x3f06a4]=_0xe3337f[_0x3f06a4]:(_0x3d89ee=_0x15c178[_0x3f06a4-0x1],_0x3f06a4%_0x5d9d12?_0x5d9d12>0x6&&_0x3f06a4%_0x5d9d12==0x4&&(_0x3d89ee=_0x1d0aea[_0x3d89ee>>>0x18]<<0x18|_0x1d0aea[_0x3d89ee>>>0x10&0xff]<<0x10|_0x1d0aea[_0x3d89ee>>>0x8&0xff]<<0x8|_0x1d0aea[_0x3d89ee&0xff]):(_0x3d89ee=_0x3d89ee<<0x8|_0x3d89ee>>>0x18,_0x3d89ee=_0x1d0aea[_0x3d89ee>>>0x18]<<0x18|_0x1d0aea[_0x3d89ee>>>0x10&0xff]<<0x10|_0x1d0aea[_0x3d89ee>>>0x8&0xff]<<0x8|_0x1d0aea[_0x3d89ee&0xff],_0x3d89ee^=_0xdc81d7[_0x3f06a4/_0x5d9d12|0x0]<<0x18),_0x15c178[_0x3f06a4]=_0x15c178[_0x3f06a4-_0x5d9d12]^_0x3d89ee);for(var _0x4a11a7=this[_0x46f6f5(0x1e6)]=[],_0x13a403=0x0;_0x13a403<_0x17c7c5;_0x13a403++){var _0x3f06a4=_0x17c7c5-_0x13a403;if(_0x13a403%0x4)var _0x3d89ee=_0x15c178[_0x3f06a4];else var _0x3d89ee=_0x15c178[_0x3f06a4-0x4];_0x13a403<0x4||_0x3f06a4<=0x4?_0x4a11a7[_0x13a403]=_0x3d89ee:_0x4a11a7[_0x13a403]=_0x3e3d36[_0x1d0aea[_0x3d89ee>>>0x18]]^_0x63f661[_0x1d0aea[_0x3d89ee>>>0x10&0xff]]^_0x4d4931[_0x1d0aea[_0x3d89ee>>>0x8&0xff]]^_0x5be9f7[_0x1d0aea[_0x3d89ee&0xff]];}}},_0x87e4d8(0x4d9)),'encryptBlock':__name(function(_0x3de709,_0xc963b3){var _0x2d80a6=_0x87e4d8;this[_0x2d80a6(0x3d2)](_0x3de709,_0xc963b3,this[_0x2d80a6(0x435)],_0x3107c2,_0x4a3666,_0x5397cb,_0x2e6964,_0x1d0aea);},_0x87e4d8(0x265)),'decryptBlock':__name(function(_0x2aa85b,_0x2824fa){var _0x36ce68=_0x87e4d8,_0x3a6d41=_0x2aa85b[_0x2824fa+0x1];_0x2aa85b[_0x2824fa+0x1]=_0x2aa85b[_0x2824fa+0x3],_0x2aa85b[_0x2824fa+0x3]=_0x3a6d41,this[_0x36ce68(0x3d2)](_0x2aa85b,_0x2824fa,this['_invKeySchedule'],_0x3e3d36,_0x63f661,_0x4d4931,_0x5be9f7,_0xd30fff);var _0x3a6d41=_0x2aa85b[_0x2824fa+0x1];_0x2aa85b[_0x2824fa+0x1]=_0x2aa85b[_0x2824fa+0x3],_0x2aa85b[_0x2824fa+0x3]=_0x3a6d41;},_0x87e4d8(0x353)),'_doCryptBlock':__name(function(_0x2938c6,_0x57a855,_0x2eb546,_0x2fab97,_0x212cab,_0x11cec3,_0x3a7bae,_0x55b903){var _0xafdd66=_0x87e4d8;for(var _0x36f423=this[_0xafdd66(0x396)],_0x423f73=_0x2938c6[_0x57a855]^_0x2eb546[0x0],_0x20ca59=_0x2938c6[_0x57a855+0x1]^_0x2eb546[0x1],_0x19702f=_0x2938c6[_0x57a855+0x2]^_0x2eb546[0x2],_0x3512b0=_0x2938c6[_0x57a855+0x3]^_0x2eb546[0x3],_0x832910=0x4,_0x5d801d=0x1;_0x5d801d<_0x36f423;_0x5d801d++){var _0x924e40=_0x2fab97[_0x423f73>>>0x18]^_0x212cab[_0x20ca59>>>0x10&0xff]^_0x11cec3[_0x19702f>>>0x8&0xff]^_0x3a7bae[_0x3512b0&0xff]^_0x2eb546[_0x832910++],_0x2fda8b=_0x2fab97[_0x20ca59>>>0x18]^_0x212cab[_0x19702f>>>0x10&0xff]^_0x11cec3[_0x3512b0>>>0x8&0xff]^_0x3a7bae[_0x423f73&0xff]^_0x2eb546[_0x832910++],_0x5eaa10=_0x2fab97[_0x19702f>>>0x18]^_0x212cab[_0x3512b0>>>0x10&0xff]^_0x11cec3[_0x423f73>>>0x8&0xff]^_0x3a7bae[_0x20ca59&0xff]^_0x2eb546[_0x832910++],_0xcf8093=_0x2fab97[_0x3512b0>>>0x18]^_0x212cab[_0x423f73>>>0x10&0xff]^_0x11cec3[_0x20ca59>>>0x8&0xff]^_0x3a7bae[_0x19702f&0xff]^_0x2eb546[_0x832910++];_0x423f73=_0x924e40,_0x20ca59=_0x2fda8b,_0x19702f=_0x5eaa10,_0x3512b0=_0xcf8093;}var _0x924e40=(_0x55b903[_0x423f73>>>0x18]<<0x18|_0x55b903[_0x20ca59>>>0x10&0xff]<<0x10|_0x55b903[_0x19702f>>>0x8&0xff]<<0x8|_0x55b903[_0x3512b0&0xff])^_0x2eb546[_0x832910++],_0x2fda8b=(_0x55b903[_0x20ca59>>>0x18]<<0x18|_0x55b903[_0x19702f>>>0x10&0xff]<<0x10|_0x55b903[_0x3512b0>>>0x8&0xff]<<0x8|_0x55b903[_0x423f73&0xff])^_0x2eb546[_0x832910++],_0x5eaa10=(_0x55b903[_0x19702f>>>0x18]<<0x18|_0x55b903[_0x3512b0>>>0x10&0xff]<<0x10|_0x55b903[_0x423f73>>>0x8&0xff]<<0x8|_0x55b903[_0x20ca59&0xff])^_0x2eb546[_0x832910++],_0xcf8093=(_0x55b903[_0x3512b0>>>0x18]<<0x18|_0x55b903[_0x423f73>>>0x10&0xff]<<0x10|_0x55b903[_0x20ca59>>>0x8&0xff]<<0x8|_0x55b903[_0x19702f&0xff])^_0x2eb546[_0x832910++];_0x2938c6[_0x57a855]=_0x924e40,_0x2938c6[_0x57a855+0x1]=_0x2fda8b,_0x2938c6[_0x57a855+0x2]=_0x5eaa10,_0x2938c6[_0x57a855+0x3]=_0xcf8093;},'_doCryptBlock'),'keySize':0x100/0x20});_0x30633f[_0x87e4d8(0x22f)]=_0x1dd0bc[_0x87e4d8(0x21e)](_0x174349);}()),_0x24ef18[_0x322957(0x22f)];}));}(aes$1)),aes$1[_0x37d89a(0x370)];}__name(requireAes,_0x5deefc(0x478));var aesExports=requireAes();const AES=getDefaultExportFromCjs(aesExports);var encBase64Exports=requireEncBase64();const Base64=getDefaultExportFromCjs(encBase64Exports);var encUtf8$1={'exports':{}},encUtf8=encUtf8$1[_0x5deefc(0x370)],hasRequiredEncUtf8;function requireEncUtf8(){var _0x208d73=_0x5deefc;return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x4cab6f,_0x64a23a){(function(_0x598872,_0x1cc103){_0x4cab6f['exports']=_0x1cc103(requireCore());}(encUtf8,function(_0x44b9d6){var _0x3c2dee=_0x450a;return _0x44b9d6[_0x3c2dee(0x23b)][_0x3c2dee(0x4d2)];}));}(encUtf8$1)),encUtf8$1[_0x208d73(0x370)];}__name(requireEncUtf8,'requireEncUtf8');var encUtf8Exports=requireEncUtf8();const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1[_0x5deefc(0x370)],hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0x4d38f1,_0x449332){(function(_0x4d19c5,_0x9c3862){var _0x31eb59=_0x450a;_0x4d38f1[_0x31eb59(0x370)]=_0x9c3862(requireCore());}(libTypedarrays,function(_0x44aa81){var _0x2c7c73=_0x450a;return(function(){var _0x58b047=_0x450a;if(typeof ArrayBuffer==_0x58b047(0x2db)){var _0x597898=_0x44aa81,_0x2edf3c=_0x597898[_0x58b047(0x2b3)],_0x213ba9=_0x2edf3c[_0x58b047(0x3ec)],_0x4b61fa=_0x213ba9['init'],_0x190fae=_0x213ba9[_0x58b047(0x21f)]=function(_0x46d160){var _0x2e250b=_0x58b047;if(_0x46d160 instanceof ArrayBuffer&&(_0x46d160=new Uint8Array(_0x46d160)),(_0x46d160 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x46d160 instanceof Uint8ClampedArray||_0x46d160 instanceof Int16Array||_0x46d160 instanceof Uint16Array||_0x46d160 instanceof Int32Array||_0x46d160 instanceof Uint32Array||_0x46d160 instanceof Float32Array||_0x46d160 instanceof Float64Array)&&(_0x46d160=new Uint8Array(_0x46d160[_0x2e250b(0x201)],_0x46d160[_0x2e250b(0x331)],_0x46d160[_0x2e250b(0x1b1)])),_0x46d160 instanceof Uint8Array){for(var _0x5c87a8=_0x46d160['byteLength'],_0x58bb19=[],_0x15dfe0=0x0;_0x15dfe0<_0x5c87a8;_0x15dfe0++)_0x58bb19[_0x15dfe0>>>0x2]|=_0x46d160[_0x15dfe0]<<0x18-_0x15dfe0%0x4*0x8;_0x4b61fa['call'](this,_0x58bb19,_0x5c87a8);}else _0x4b61fa[_0x2e250b(0x2bc)](this,arguments);};_0x190fae[_0x58b047(0x30e)]=_0x213ba9;}}()),_0x44aa81[_0x2c7c73(0x2b3)][_0x2c7c73(0x3ec)];}));}(libTypedarrays$1)),libTypedarrays$1['exports'];}__name(requireLibTypedarrays,_0x5deefc(0x367));var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1[_0x5deefc(0x370)],hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0x55c3d7,_0x585568){(function(_0x240268,_0x113118,_0x1e0f87){var _0x3f944b=_0x450a;_0x55c3d7[_0x3f944b(0x370)]=_0x113118(requireCore(),requireCipherCore());}(padNopadding,function(_0x5be51a){var _0x425897=_0x450a;return _0x5be51a[_0x425897(0x2d2)][_0x425897(0x410)]={'pad':__name(function(){},_0x425897(0x2d2)),'unpad':__name(function(){},_0x425897(0x269))},_0x5be51a['pad']['NoPadding'];}));}(padNopadding$1)),padNopadding$1['exports'];}__name(requirePadNopadding,_0x5deefc(0x37f));var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0x5b5769,_0x5d1570){var _0x4e8388=_0x5deefc;const _0x3487f4=_0x5d1570-_0x5b5769[_0x4e8388(0x2f2)]%_0x5d1570,_0x4ea95d=String[_0x4e8388(0x374)](_0x3487f4)['repeat'](_0x3487f4);return _0x5b5769+_0x4ea95d;}__name(pkcs7Padding,_0x5deefc(0x395));function encrypt(_0x3f1a02,_0xe1c2b1){var _0x1907a8=_0x5deefc;const _0x4caa8a=WordArray[_0x1907a8(0x4ae)](0x10),_0x587fe1=pkcs7Padding(_0x3f1a02,0x10),_0x4fb446=AES[_0x1907a8(0x216)](Utf8[_0x1907a8(0x1cd)](_0x587fe1),Base64[_0x1907a8(0x1cd)](_0xe1c2b1),{'iv':_0x4caa8a,'padding':NoPadding});return _0x4caa8a[_0x1907a8(0x2e2)](_0x4fb446['ciphertext'])['toString'](Base64);}__name(encrypt,_0x5deefc(0x216));function getAttachHeader(){var _0x2f7583=_0x5deefc;const _0x3a00ed=getGlobalObject()[_0x2f7583(0x4cc)];if(_0x3a00ed){const _0x5086ca={'time':Math['floor'](Date[_0x2f7583(0x3e7)]()/0x3e8),'domain':location[_0x2f7583(0x4cb)]};return encrypt(JSON[_0x2f7583(0x480)](_0x5086ca),_0x3a00ed);}}__name(getAttachHeader,_0x5deefc(0x362));var __defProp$7=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$7=Object[_0x5deefc(0x4e3)],__decorateClass$7=__name((_0x33087d,_0x319298,_0x1a92d0,_0x173047)=>{var _0x1eb385=_0x5deefc;for(var _0x311fe5=_0x173047>0x1?void 0x0:_0x173047?__getOwnPropDesc$7(_0x319298,_0x1a92d0):_0x319298,_0xfa5c9d=_0x33087d[_0x1eb385(0x2f2)]-0x1,_0x4549f0;_0xfa5c9d>=0x0;_0xfa5c9d--)(_0x4549f0=_0x33087d[_0xfa5c9d])&&(_0x311fe5=(_0x173047?_0x4549f0(_0x319298,_0x1a92d0,_0x311fe5):_0x4549f0(_0x311fe5))||_0x311fe5);return _0x173047&&_0x311fe5&&__defProp$7(_0x319298,_0x1a92d0,_0x311fe5),_0x311fe5;},'__decorateClass$7'),__decorateParam$7=__name((_0x8b5af7,_0x478162)=>(_0x1ed1ef,_0x2eb339)=>_0x478162(_0x1ed1ef,_0x2eb339,_0x8b5af7),_0x5deefc(0x267)),_a20;let DomainRequestService=(_a20=class{constructor(_0x20a55d){var _0x237d1d=_0x5deefc;this['_httpService']=_0x20a55d,this[_0x237d1d(0x2bb)]();}[_0x5deefc(0x2bb)](){var _0x3369b6=_0x5deefc;this['_httpService'][_0x3369b6(0x245)]({'interceptor':__name((_0xf07a97,_0x360518)=>{var _0x3cb38f=_0x3369b6;const _0xe8bd06=_0xf07a97[_0x3cb38f(0x2c3)],_0x38e8ca=getAttachHeader();return _0x38e8ca&&_0xe8bd06[_0x3cb38f(0x31a)](_0x3cb38f(0x29d),_0x38e8ca),_0x360518(_0xf07a97);},_0x3369b6(0x1dd))});}},__name(_a20,_0x5deefc(0x363)),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$6=Object['getOwnPropertyDescriptor'],__decorateClass$6=__name((_0x23f0f6,_0x10fcf2,_0x11505d,_0x367707)=>{var _0x281e74=_0x5deefc;for(var _0x3e5f19=_0x367707>0x1?void 0x0:_0x367707?__getOwnPropDesc$6(_0x10fcf2,_0x11505d):_0x10fcf2,_0x345c5f=_0x23f0f6[_0x281e74(0x2f2)]-0x1,_0x6166a3;_0x345c5f>=0x0;_0x345c5f--)(_0x6166a3=_0x23f0f6[_0x345c5f])&&(_0x3e5f19=(_0x367707?_0x6166a3(_0x10fcf2,_0x11505d,_0x3e5f19):_0x6166a3(_0x3e5f19))||_0x3e5f19);return _0x367707&&_0x3e5f19&&__defProp$6(_0x10fcf2,_0x11505d,_0x3e5f19),_0x3e5f19;},'__decorateClass$6'),__decorateParam$6=__name((_0x3340dd,_0x508d1f)=>(_0x5a67a9,_0xe39482)=>_0x508d1f(_0x5a67a9,_0xe39482,_0x3340dd),_0x5deefc(0x3bf)),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x2c4911,_0x2702c7,_0x22018d){var _0x4a61e4=_0x5deefc;super(),__publicField(this,_0x4a61e4(0x340),new BehaviorSubject(null)),__publicField(this,_0x4a61e4(0x36c),this[_0x4a61e4(0x340)][_0x4a61e4(0x272)]()),(this['_logService']=_0x2c4911,this[_0x4a61e4(0x452)]=_0x2702c7,this[_0x4a61e4(0x1ae)]=_0x22018d);}async[_0x5deefc(0x275)](_0x5389ef,_0x3f127d,_0x13d7f2){var _0x2b387d=_0x5deefc;this[_0x2b387d(0x340)][_0x2b387d(0x41a)]({'unitId':_0x5389ef,'type':_0x3f127d,'subUnitId':_0x13d7f2});let _0x4dc82b=null;switch(_0x3f127d){case UniverType[_0x2b387d(0x4a9)]:{_0x4dc82b=await this['_loadSheet'](_0x5389ef);break;}case UniverType['UNIVER_DOC']:{_0x4dc82b=await this['_loadDoc'](_0x5389ef);break;}default:{this[_0x2b387d(0x1b0)][_0x2b387d(0x2ac)]('[DataLoaderService]',_0x2b387d(0x4b5));break;}}return _0x4dc82b;}async[_0x5deefc(0x4aa)](_0x29c715){var _0x286319=_0x5deefc,_0x5164ef;let _0x4d768c=0x0;const _0x4134ce=await((_0x5164ef=this[_0x286319(0x1ae)])==null?void 0x0:_0x5164ef[_0x286319(0x4d5)](_0x29c715));return _0x4134ce&&(_0x4134ce[_0x286319(0x2f6)]||_0x4134ce[_0x286319(0x35f)][_0x286319(0x2f2)]!==0x0)&&(_0x4d768c=_0x4134ce[_0x286319(0x2a6)]),_0x4d768c===0x0&&this[_0x286319(0x1b0)][_0x286319(0x3f5)](_0x286319(0x4d4),_0x286319(0x344)),this[_0x286319(0x452)]['loadSheet'](_0x29c715,_0x4d768c);}async[_0x5deefc(0x4e6)](_0xb7a775){var _0x2917ca=_0x5deefc,_0x591059;let _0x397aff=0x0;const _0x32b8f2=await((_0x591059=this[_0x2917ca(0x1ae)])==null?void 0x0:_0x591059['loadOfflineData'](_0xb7a775));return _0x32b8f2&&(_0x32b8f2['awaitingChangeset']||_0x32b8f2[_0x2917ca(0x35f)][_0x2917ca(0x2f2)]!==0x0)&&(_0x397aff=_0x32b8f2[_0x2917ca(0x2a6)]),_0x397aff===0x0&&this['_logService'][_0x2917ca(0x3f5)](_0x2917ca(0x4d4),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x2917ca(0x23e)](_0xb7a775,_0x397aff);}},__name(_a21,_0x5deefc(0x4a6)),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object['defineProperty'],__getOwnPropDesc$5=Object[_0x5deefc(0x4e3)],__decorateClass$5=__name((_0x1c9c99,_0x3420fe,_0x327c61,_0x8309f9)=>{var _0x3d8848=_0x5deefc;for(var _0x1736d0=_0x8309f9>0x1?void 0x0:_0x8309f9?__getOwnPropDesc$5(_0x3420fe,_0x327c61):_0x3420fe,_0x5ae3a1=_0x1c9c99[_0x3d8848(0x2f2)]-0x1,_0x3ad0ef;_0x5ae3a1>=0x0;_0x5ae3a1--)(_0x3ad0ef=_0x1c9c99[_0x5ae3a1])&&(_0x1736d0=(_0x8309f9?_0x3ad0ef(_0x3420fe,_0x327c61,_0x1736d0):_0x3ad0ef(_0x1736d0))||_0x1736d0);return _0x8309f9&&_0x1736d0&&__defProp$5(_0x3420fe,_0x327c61,_0x1736d0),_0x1736d0;},'__decorateClass$5'),__decorateParam$5=__name((_0x3f06d2,_0x37b176)=>(_0x309ec0,_0x5a83a4)=>_0x37b176(_0x309ec0,_0x5a83a4,_0x3f06d2),_0x5deefc(0x4df));const ALLOW_IMAGE_LIST=[_0x5deefc(0x39a),_0x5deefc(0x3f7),_0x5deefc(0x2b1),_0x5deefc(0x404),'image/bmp'],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x5deefc(0x309),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x5deefc(0x2d0),EXCHANGE_SIGN_URL_SERVER_URL_KEY='EXCHANGE_SIGN_URL_SERVER_URL_KEY',DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x5deefc(0x3cd);var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0x1aee10,_0x2d7546,_0xd60f58){var _0x4047e1=_0x5deefc;__publicField(this,_0x4047e1(0x25b),0x0),__publicField(this,_0x4047e1(0x1d3),new Subject()),__publicField(this,'change$',this[_0x4047e1(0x1d3)]),__publicField(this,'_imageSourceCache',new Map()),(this[_0x4047e1(0x3ac)]=_0x1aee10,this[_0x4047e1(0x32a)]=_0x2d7546,this[_0x4047e1(0x40e)]=_0xd60f58);}['setWaitCount'](_0x4540a6){var _0x55b646=_0x5deefc;this[_0x55b646(0x25b)]=_0x4540a6,this[_0x55b646(0x1d3)][_0x55b646(0x41a)](_0x4540a6);}[_0x5deefc(0x26e)](_0x313686,_0x11af21){var _0x1bc59f=_0x5deefc;if(_0x11af21===ImageSourceType[_0x1bc59f(0x406)]){const _0x7a817a=new Image();return _0x7a817a[_0x1bc59f(0x4bc)]=_0x313686,_0x7a817a;}return this[_0x1bc59f(0x473)]['get'](_0x313686);}['addImageSourceCache'](_0x1946f2,_0x42a8fa,_0x423973){var _0xb35462=_0x5deefc;_0x42a8fa===ImageSourceType[_0xb35462(0x406)]||_0x423973==null||this[_0xb35462(0x473)]['set'](_0x1946f2,_0x423973);}async['getImage'](_0x1d8be2){var _0x14586d=_0x5deefc;try{const _0x3fd9a4=this[_0x14586d(0x313)](this[_0x14586d(0x4eb)](),''+_0x1d8be2),_0x1f6ed1=(await this[_0x14586d(0x3ac)][_0x14586d(0x1ff)](_0x3fd9a4))[_0x14586d(0x324)];if(_0x1f6ed1[_0x14586d(0x2ac)]&&_0x1f6ed1['error'][_0x14586d(0x210)]===ErrorCode['OK']){const _0x4c118f=new URL(_0x1f6ed1['url'],this['_getDownloadEndpointURL']())[_0x14586d(0x4c1)]();return Promise[_0x14586d(0x472)](_0x4c118f);}return Promise[_0x14586d(0x306)](_0x1f6ed1[_0x14586d(0x2ac)]);}catch(_0x1910eb){return Promise[_0x14586d(0x306)](_0x1910eb);}}async[_0x5deefc(0x4a2)](_0x49ed2d){var _0x1730ba=_0x5deefc;let _0x46dc41='';if(!ALLOW_IMAGE_LIST[_0x1730ba(0x2a0)](_0x49ed2d['type']))return this[_0x1730ba(0x39d)](),Promise[_0x1730ba(0x306)](new Error(ImageUploadStatusType[_0x1730ba(0x27e)]));if(_0x49ed2d[_0x1730ba(0x4e7)]>ALLOW_IMAGE_SIZE)return this[_0x1730ba(0x39d)](),Promise[_0x1730ba(0x306)](new Error(ImageUploadStatusType[_0x1730ba(0x409)]));try{const _0x1cd7c8=new FormData();_0x1cd7c8[_0x1730ba(0x311)](_0x1730ba(0x237),_0x49ed2d);const _0x470859=this[_0x1730ba(0x40e)][_0x1730ba(0x352)](),_0x1dd0ba=_0x470859==null?void 0x0:_0x470859[_0x1730ba(0x1bd)]();if(!_0x1dd0ba)throw new Error(_0x1730ba(0x454));const _0xe222fe=this[_0x1730ba(0x3ef)]()+_0x1730ba(0x4f1)+_0x49ed2d[_0x1730ba(0x4e7)][_0x1730ba(0x4c1)]()+_0x1730ba(0x2c7)+FileSource[_0x1730ba(0x3f6)]+'&assign='+encodeURIComponent(_0x1dd0ba),_0x2761a8=await(await fetch(_0xe222fe,{'method':_0x1730ba(0x3c5),'body':_0x1cd7c8}))[_0x1730ba(0x459)]();if(typeof _0x2761a8[_0x1730ba(0x1a9)]!=_0x1730ba(0x380))return this[_0x1730ba(0x39d)](),Promise[_0x1730ba(0x306)](new Error(ImageUploadStatusType[_0x1730ba(0x358)]));_0x46dc41=_0x2761a8[_0x1730ba(0x1a9)];}catch{return this[_0x1730ba(0x39d)](),Promise[_0x1730ba(0x306)](new Error(ImageUploadStatusType[_0x1730ba(0x358)]));}return new Promise((_0x3d51b7,_0x1c46d1)=>{var _0x15e35f=_0x1730ba;const _0x281acd=new FileReader();_0x281acd['readAsDataURL'](_0x49ed2d),_0x281acd[_0x15e35f(0x279)]=_0x6cb9f5=>{var _0x49d3b8=_0x15e35f,_0x3eb8e1;const _0x4e205f=(_0x3eb8e1=_0x6cb9f5[_0x49d3b8(0x3a4)])==null?void 0x0:_0x3eb8e1[_0x49d3b8(0x1f0)];if(_0x4e205f==null){this[_0x49d3b8(0x39d)](),_0x1c46d1(new Error(ImageUploadStatusType['ERROR_IMAGE']));return;}const _0x309e1e=Tools[_0x49d3b8(0x229)](0x6);_0x3d51b7({'imageId':_0x309e1e,'imageSourceType':ImageSourceType[_0x49d3b8(0x4cf)],'source':_0x46dc41,'base64Cache':_0x4e205f,'status':ImageUploadStatusType[_0x49d3b8(0x2c4)]}),this[_0x49d3b8(0x39d)]();};});}[_0x5deefc(0x3ef)](){var _0x219976=_0x5deefc,_0x5ee4cd,_0x7d4ec0;const _0xc15e82=this[_0x219976(0x32a)][_0x219976(0x365)](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x246542=this[_0x219976(0x32a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x7d4ec0=(_0x5ee4cd=_0x246542==null?void 0x0:_0x246542[_0x219976(0x204)])!=null?_0x5ee4cd:_0xc15e82)!=null?_0x7d4ec0:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x5deefc(0x4eb)](){var _0x882e2d=_0x5deefc,_0x4c5cd1,_0x512163;const _0xefce5e=this[_0x882e2d(0x32a)][_0x882e2d(0x365)](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0x7b79e8=this[_0x882e2d(0x32a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x512163=(_0x4c5cd1=_0x7b79e8==null?void 0x0:_0x7b79e8[_0x882e2d(0x1f2)])!=null?_0x4c5cd1:_0xefce5e)!=null?_0x512163:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}['_getDownloadEndpointURL'](){var _0x572e8d=_0x5deefc,_0x2915ab;const _0x2c37e6=this[_0x572e8d(0x32a)][_0x572e8d(0x365)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x2915ab=_0x2c37e6==null?void 0x0:_0x2c37e6[_0x572e8d(0x411)])!=null?_0x2915ab:location[_0x572e8d(0x295)];}[_0x5deefc(0x313)](_0x489402,_0x2cd75e){var _0x5711b8=_0x5deefc;return _0x489402[_0x5711b8(0x3fc)](_0x5711b8(0x364),_0x2cd75e);}[_0x5deefc(0x39d)](){var _0x2aab61=_0x5deefc;this[_0x2aab61(0x25b)]-=0x1,this[_0x2aab61(0x1d3)]['next'](this[_0x2aab61(0x25b)]);}},__name(_a22,_0x5deefc(0x2f8)),_a22);CollaborationImageIoService=__decorateClass$5([__decorateParam$5(0x0,Inject(HTTPService)),__decorateParam$5(0x1,IConfigService),__decorateParam$5(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);var __defProp$4=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$4=Object[_0x5deefc(0x4e3)],__decorateClass$4=__name((_0x235e38,_0x28e6ef,_0x55ecec,_0x39482b)=>{var _0x345b70=_0x5deefc;for(var _0x115c5b=_0x39482b>0x1?void 0x0:_0x39482b?__getOwnPropDesc$4(_0x28e6ef,_0x55ecec):_0x28e6ef,_0x4e1dc3=_0x235e38[_0x345b70(0x2f2)]-0x1,_0x3fe9d8;_0x4e1dc3>=0x0;_0x4e1dc3--)(_0x3fe9d8=_0x235e38[_0x4e1dc3])&&(_0x115c5b=(_0x39482b?_0x3fe9d8(_0x28e6ef,_0x55ecec,_0x115c5b):_0x3fe9d8(_0x115c5b))||_0x115c5b);return _0x39482b&&_0x115c5b&&__defProp$4(_0x28e6ef,_0x55ecec,_0x115c5b),_0x115c5b;},_0x5deefc(0x38b)),__decorateParam$4=__name((_0x236311,_0x432105)=>(_0x4fef3,_0x459dc1)=>_0x432105(_0x4fef3,_0x459dc1,_0x236311),_0x5deefc(0x2a5));const DEFAULT_AUTHZ_URL_KEY=_0x5deefc(0x433);var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x216a8a,_0x4f89e0){var _0x145875=_0x5deefc;this[_0x145875(0x32a)]=_0x216a8a,this[_0x145875(0x36f)]=_0x4f89e0;}[_0x5deefc(0x32d)](){var _0x78b478=_0x5deefc,_0x4fe2fb,_0x13a954;const _0x50a966=this[_0x78b478(0x32a)][_0x78b478(0x365)](AUTHZ_URL_KEY),_0x1976eb=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x13a954=(_0x4fe2fb=_0x1976eb==null?void 0x0:_0x1976eb[_0x78b478(0x3b7)])!=null?_0x4fe2fb:_0x50a966)!=null?_0x13a954:DEFAULT_AUTHZ_URL_KEY;}async[_0x5deefc(0x239)](_0x3055f4){var _0x5e265a=_0x5deefc;const _0x50e5be=this[_0x5e265a(0x32d)]()+_0x5e265a(0x292);return{'list':[{'title':_0x5e265a(0x2ad),'mentions':(await this[_0x5e265a(0x36f)][_0x5e265a(0x1ff)](_0x50e5be,{'params':{'objectID':_0x3055f4['unitId'],'unitID':_0x3055f4[_0x5e265a(0x4c0)]}}))[_0x5e265a(0x324)][_0x5e265a(0x2cb)]['map'](_0x41b3a3=>({'objectId':_0x41b3a3['id'],'name':_0x41b3a3[_0x5e265a(0x4d0)][_0x5e265a(0x32e)],'metadata':{'icon':_0x41b3a3[_0x5e265a(0x4d0)]['avatar']},'label':_0x41b3a3[_0x5e265a(0x4d0)][_0x5e265a(0x32e)],'objectType':MentionType['PERSON']})),'metadata':{},'type':MentionType[_0x5e265a(0x34b)]}]};}},__name(_a23,_0x5deefc(0x2a1)),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object['defineProperty'],__getOwnPropDesc$3=Object['getOwnPropertyDescriptor'],__decorateClass$3=__name((_0x32fc2a,_0x1a5836,_0x3a68f9,_0x562981)=>{var _0x56ce0f=_0x5deefc;for(var _0xd8e777=_0x562981>0x1?void 0x0:_0x562981?__getOwnPropDesc$3(_0x1a5836,_0x3a68f9):_0x1a5836,_0x5d02eb=_0x32fc2a[_0x56ce0f(0x2f2)]-0x1,_0x267e1d;_0x5d02eb>=0x0;_0x5d02eb--)(_0x267e1d=_0x32fc2a[_0x5d02eb])&&(_0xd8e777=(_0x562981?_0x267e1d(_0x1a5836,_0x3a68f9,_0xd8e777):_0x267e1d(_0xd8e777))||_0xd8e777);return _0x562981&&_0xd8e777&&__defProp$3(_0x1a5836,_0x3a68f9,_0xd8e777),_0xd8e777;},_0x5deefc(0x49b)),__decorateParam$3=__name((_0x175242,_0x54e496)=>(_0xafda09,_0x4369c0)=>_0x54e496(_0xafda09,_0x4369c0,_0x175242),_0x5deefc(0x378)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0x402527,_0x52e72e,_0x360f93,_0x29e5d0,_0x5acdac,_0x37552c,_0x1abbf5){var _0x2b898b=_0x5deefc;super(),this[_0x2b898b(0x321)]=_0x402527,this[_0x2b898b(0x40e)]=_0x52e72e,this['_permissionService']=_0x360f93,this[_0x2b898b(0x43b)]=_0x29e5d0,this['_collaborationUIEventService']=_0x5acdac,this[_0x2b898b(0x25d)]=_0x37552c,this['_undoRedoService']=_0x1abbf5,this[_0x2b898b(0x4c3)](),this[_0x2b898b(0x207)]();}[_0x5deefc(0x207)](){var _0xe2dcfc=_0x5deefc;const _0x23548b=__name(async _0x594550=>{var _0x29c60=_0x450a;(await this[_0x29c60(0x43b)]['requireSession'](_0x594550))[_0x29c60(0x37b)][_0x29c60(0x431)](filter(_0x5193be=>_0x5193be[_0x29c60(0x4b8)]===CollaborationEvent[_0x29c60(0x254)]),_0x160a42(this[_0x29c60(0x1c6)]))['subscribe'](_0x31c18c=>{var _0x859949=_0x29c60;const _0x2c69b9=_0x31c18c,{reason:_0xcd0d7b}=_0x2c69b9[_0x859949(0x3e4)];this[_0x859949(0x214)][_0x859949(0x333)]({'id':CollaborationUIEventId[_0x859949(0x3c4)],'data':_0xcd0d7b}),this[_0x859949(0x288)][_0x859949(0x461)](new WorkbookEditablePermission(_0x594550)['id'],!0x1),this[_0x859949(0x43b)][_0x859949(0x4c6)](_0x594550);});},'handleCloseConn');merge(this[_0xe2dcfc(0x40e)][_0xe2dcfc(0x3c6)](UniverInstanceType['UNIVER_SHEET']),this[_0xe2dcfc(0x40e)][_0xe2dcfc(0x3c6)](UniverInstanceType[_0xe2dcfc(0x385)]))['pipe'](map(_0x786b3b=>_0x786b3b[_0xe2dcfc(0x1bd)]()),filter(_0x128dc4=>!isInternalEditorID(_0x128dc4)),_0x160a42(this[_0xe2dcfc(0x1c6)]))[_0xe2dcfc(0x49c)](_0x334419=>{_0x23548b(_0x334419);});}[_0x5deefc(0x4c3)](){var _0x4fd17a=_0x5deefc;const _0x292b81=__name(async _0x4a4dcc=>{var _0x62136a=_0x450a;const _0x49ed56=await this['_collaborationSessionService'][_0x62136a(0x330)](_0x4a4dcc),_0x42fc64=this[_0x62136a(0x321)][_0x62136a(0x1ff)](SheetPermissionInitController);_0x49ed56[_0x62136a(0x37b)][_0x62136a(0x431)](filter(_0x805cc0=>_0x805cc0[_0x62136a(0x4b8)]===CollaborationEvent[_0x62136a(0x282)]),_0x160a42(this[_0x62136a(0x1c6)]))[_0x62136a(0x49c)](_0x287bca=>{var _0x59606e=_0x62136a;const _0x4b1a70=_0x287bca,{objectId:_0x410029}=_0x4b1a70[_0x59606e(0x3e4)];_0x410029===_0x4a4dcc?_0x42fc64[_0x59606e(0x29b)](_0x4a4dcc):_0x42fc64['refreshPermission'](_0x4a4dcc,_0x410029);});},_0x4fd17a(0x4a8));merge(this[_0x4fd17a(0x40e)][_0x4fd17a(0x3c6)](UniverInstanceType['UNIVER_SHEET']),this['_univerInstanceService'][_0x4fd17a(0x3c6)](UniverInstanceType['UNIVER_DOC']))[_0x4fd17a(0x431)](map(_0xbe7833=>_0xbe7833[_0x4fd17a(0x1bd)]()),filter(_0x22bae4=>!isInternalEditorID(_0x22bae4)),_0x160a42(this[_0x4fd17a(0x1c6)]))['subscribe'](_0x1555b8=>{_0x292b81(_0x1555b8);});}},__name(_a24,_0x5deefc(0x489)),_a24);PermissionService=__decorateClass$3([__decorateParam$3(0x0,Inject(Injector)),__decorateParam$3(0x1,IUniverInstanceService),__decorateParam$3(0x2,IPermissionService),__decorateParam$3(0x3,Inject(CollaborationSessionService)),__decorateParam$3(0x4,Inject(CollaborationUIEventService)),__decorateParam$3(0x5,IAuthzIoService),__decorateParam$3(0x6,IUndoRedoService)],PermissionService);var __defProp$2=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$2=Object[_0x5deefc(0x4e3)],__decorateClass$2=__name((_0x295d70,_0x5a1da6,_0xf82516,_0x328ff2)=>{var _0x39f13a=_0x5deefc;for(var _0x20b375=_0x328ff2>0x1?void 0x0:_0x328ff2?__getOwnPropDesc$2(_0x5a1da6,_0xf82516):_0x5a1da6,_0x41543f=_0x295d70[_0x39f13a(0x2f2)]-0x1,_0x56c1e;_0x41543f>=0x0;_0x41543f--)(_0x56c1e=_0x295d70[_0x41543f])&&(_0x20b375=(_0x328ff2?_0x56c1e(_0x5a1da6,_0xf82516,_0x20b375):_0x56c1e(_0x20b375))||_0x20b375);return _0x328ff2&&_0x20b375&&__defProp$2(_0x5a1da6,_0xf82516,_0x20b375),_0x20b375;},_0x5deefc(0x235)),__decorateParam$2=__name((_0x378693,_0x382d27)=>(_0x2c6673,_0x3e9953)=>_0x382d27(_0x2c6673,_0x3e9953,_0x378693),_0x5deefc(0x3c2)),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x5524b6,_0x5e059d){var _0x143136=_0x5deefc;this[_0x143136(0x32a)]=_0x5524b6,this[_0x143136(0x3ac)]=_0x5e059d;}async['getUnitOnRev'](_0x32acb2,_0x4145dd){var _0x55229c=_0x5deefc,_0x4070dc;const {unitID:_0x275cb7,type:_0x103cb1,revision:revision=0x0}=_0x4145dd,_0x48db46=this[_0x55229c(0x3a1)]()+'/'+_0x103cb1+_0x55229c(0x3d5)+_0x275cb7+_0x55229c(0x386)+revision,_0x127819=(await this['_httpService']['get'](_0x48db46))[_0x55229c(0x324)],_0x400d18=(_0x4070dc=_0x127819[_0x55229c(0x4f4)])==null?void 0x0:_0x4070dc[_0x55229c(0x27b)];if(_0x400d18){const _0x24c831=_0x400d18==null?void 0x0:_0x400d18['originalMeta'],_0x5153fa=textEncoder['encode'](b64DecodeUnicode(_0x24c831));_0x400d18[_0x55229c(0x1b6)]=_0x5153fa,Object[_0x55229c(0x22c)](_0x400d18['sheets'])['forEach'](([,_0x417f6b])=>{var _0x28dd57=_0x55229c;const _0x102a0b=_0x417f6b[_0x28dd57(0x1b6)],_0x4957bb=textEncoder[_0x28dd57(0x208)](b64DecodeUnicode(_0x102a0b));_0x417f6b[_0x28dd57(0x1b6)]=_0x4957bb;});}return _0x127819;}async[_0x5deefc(0x1eb)](_0x3ce37d,_0x4d1f0b){var _0x36e3be=_0x5deefc;const {unitID:_0x17434b,type:_0x211c70,blockID:_0x58594a}=_0x4d1f0b,_0x268665=this[_0x36e3be(0x37a)]()+'/'+_0x211c70+_0x36e3be(0x3d5)+_0x17434b+'/block/'+_0x58594a;return(await this[_0x36e3be(0x3ac)][_0x36e3be(0x1ff)](_0x268665))[_0x36e3be(0x324)];}async[_0x5deefc(0x317)](_0x210539,_0x16c370){var _0x52d371=_0x5deefc;const {unitID:_0x43a417,type:_0x17f3e7,blockID:_0x5e0d4c}=_0x16c370,_0x28e5c3=this[_0x52d371(0x37a)]()+_0x52d371(0x3b5)+_0x17f3e7+'/unit/'+_0x43a417+_0x52d371(0x3b5)+_0x5e0d4c;return(await this['_httpService'][_0x52d371(0x1ff)](_0x28e5c3))[_0x52d371(0x324)];}async[_0x5deefc(0x2a7)](_0x2f7cb5,_0x224bf5){var _0x13ecfe=_0x5deefc;const {unitID:_0x2de77a,type:_0x11cb4a,from:_0x1d5255,to:_0x15b8ea}=_0x224bf5,_0x202d81=this[_0x13ecfe(0x37a)]()+'/'+_0x11cb4a+_0x13ecfe(0x3d5)+_0x2de77a+_0x13ecfe(0x3e0)+_0x1d5255+_0x13ecfe(0x21d)+_0x15b8ea;return(await this[_0x13ecfe(0x3ac)][_0x13ecfe(0x1ff)](_0x202d81))[_0x13ecfe(0x324)];}['getSnapshotAPIPath'](){var _0xa81a26=_0x5deefc,_0x247062;return(_0x247062=this['_configService'][_0xa81a26(0x365)](SNAPSHOT_URL_KEY))!=null?_0x247062:this['_getAPIPrefix']();}['_getAPIPrefix'](){var _0x364485=_0x5deefc,_0x39e83d,_0x199bc4;const _0x20d47e=this[_0x364485(0x32a)]['getConfig'](SNAPSHOT_SERVER_URL_KEY),_0xa4691d=this[_0x364485(0x32a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x199bc4=(_0x39e83d=_0xa4691d==null?void 0x0:_0xa4691d[_0x364485(0x293)])!=null?_0x39e83d:_0x20d47e)!=null?_0x199bc4:DEFAULT_SNAPSHOT_SERVER_URL;}async['getResourcesRequest'](_0x3e83fb,_0x50c945){var _0x595ba7=_0x5deefc;const _0x4679ff=_0x595ba7(0x281)+_0x50c945[_0x595ba7(0x2b5)]+_0x595ba7(0x3d5)+_0x50c945[_0x595ba7(0x46e)]+_0x595ba7(0x232);return(await this[_0x595ba7(0x3ac)][_0x595ba7(0x1ff)](_0x4679ff,{'params':{'resourceId':JSON['stringify'](_0x50c945['resourceIDs'])}}))[_0x595ba7(0x324)];}[_0x5deefc(0x337)](){var _0x5402c3=_0x5deefc;throw new Error(_0x5402c3(0x316));}[_0x5deefc(0x39e)](){var _0x3b0849=_0x5deefc;throw new Error(_0x3b0849(0x316));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5deefc(0x2a9)](){var _0x1e94b5=_0x5deefc;throw new Error(_0x1e94b5(0x316));}[_0x5deefc(0x1ef)](){var _0x3cd3f4=_0x5deefc;throw new Error(_0x3cd3f4(0x316));}},__name(_a25,_0x5deefc(0x44b)),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0x5deefc(0x4ad)],__getOwnPropDesc$1=Object[_0x5deefc(0x4e3)],__decorateClass$1=__name((_0x213e38,_0x53747f,_0x19a016,_0x2fb76b)=>{var _0x1a32f8=_0x5deefc;for(var _0x3543fe=_0x2fb76b>0x1?void 0x0:_0x2fb76b?__getOwnPropDesc$1(_0x53747f,_0x19a016):_0x53747f,_0x10aab5=_0x213e38[_0x1a32f8(0x2f2)]-0x1,_0x324fa2;_0x10aab5>=0x0;_0x10aab5--)(_0x324fa2=_0x213e38[_0x10aab5])&&(_0x3543fe=(_0x2fb76b?_0x324fa2(_0x53747f,_0x19a016,_0x3543fe):_0x324fa2(_0x3543fe))||_0x3543fe);return _0x2fb76b&&_0x3543fe&&__defProp$1(_0x53747f,_0x19a016,_0x3543fe),_0x3543fe;},_0x5deefc(0x3d0)),__decorateParam$1=__name((_0x3efadb,_0x49140c)=>(_0x51aa62,_0x706623)=>_0x49140c(_0x51aa62,_0x706623,_0x3efadb),'__decorateParam$1'),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x15c53a,_0x98effa,_0x481fca,_0x181b26,_0xd0882){var _0x5af9f8=_0x5deefc;super(_0x15c53a,_0x98effa,_0x481fca),this[_0x5af9f8(0x34c)]=_0x181b26,this['_logService']=_0xd0882;}[_0x5deefc(0x491)](_0x2f85ef,_0x356ad5){var _0x37ed91=_0x5deefc;const _0x416f18=this['_getUndoStack'](_0x2f85ef);if(_0x416f18)try{const _0x2c61cb=this[_0x37ed91(0x2d5)](_0x416f18,_0x356ad5);this[_0x37ed91(0x438)](_0x2f85ef,_0x2c61cb);}catch(_0xad4d58){this[_0x37ed91(0x1b0)]['error'](_0x37ed91(0x21a),_0xad4d58),this[_0x37ed91(0x4e1)](_0x2f85ef);}const _0x1baa78=this[_0x37ed91(0x256)](_0x2f85ef);if(_0x1baa78)try{const _0x55c44a=this[_0x37ed91(0x2d5)](_0x1baa78,_0x356ad5);this['_substituteRedoStack'](_0x2f85ef,_0x55c44a);}catch(_0x489893){this[_0x37ed91(0x1b0)][_0x37ed91(0x2ac)](_0x489893),this[_0x37ed91(0x24c)](_0x2f85ef);}}[_0x5deefc(0x4e1)](_0x1ebe35){var _0x5410e4=_0x5deefc;const _0x404546=this[_0x5410e4(0x434)](_0x1ebe35);_0x404546&&(_0x404546[_0x5410e4(0x2f2)]=0x0,this['_updateStatus']());}[_0x5deefc(0x24c)](_0x2054a6){var _0x36b24c=_0x5deefc;const _0x1a0bfb=this['_getRedoStack'](_0x2054a6);_0x1a0bfb&&(_0x1a0bfb[_0x36b24c(0x2f2)]=0x0,this[_0x36b24c(0x3a7)]());}[_0x5deefc(0x438)](_0x16ddfe,_0x477147){var _0x15427e=_0x5deefc;this[_0x15427e(0x251)][_0x15427e(0x31a)](_0x16ddfe,_0x477147),this['_updateStatus']();}['_substituteRedoStack'](_0x23165c,_0x412a28){var _0x5214fd=_0x5deefc;this[_0x5214fd(0x277)]['set'](_0x23165c,_0x412a28),this['_updateStatus']();}[_0x5deefc(0x2d5)](_0x1cf5ab,_0x531e6f){var _0x2feb5f=_0x5deefc;const _0x374855=[];let _0x451e9d=_0x531e6f,_0x541052=_0x531e6f;for(let _0x6fef7b=_0x1cf5ab['length']-0x1;_0x6fef7b>=0x0;_0x6fef7b--){const {unitID:_0x16a332,undoMutations:_0x53c558,redoMutations:_0x2ccb0f}=_0x1cf5ab[_0x6fef7b],_0x1fe337=this[_0x2feb5f(0x34c)]['transformMutationsWithChangeset'](_0x451e9d,_0x53c558),_0x1131f3=this[_0x2feb5f(0x34c)][_0x2feb5f(0x4b4)](_0x541052,_0x2ccb0f);if(isTransformMutationsWithChangesetFailure(_0x1fe337)||isTransformMutationsWithChangesetFailure(_0x1131f3)){this['_logService'][_0x2feb5f(0x2ac)](_0x2feb5f(0x21a),'transformStack\x20failed!',_0x1fe337,_0x1131f3);break;}_0x451e9d=_0x1fe337[_0x2feb5f(0x274)],_0x541052=_0x1131f3['c1Prime'],_0x374855['push']({'unitID':_0x16a332,'undoMutations':_0x1fe337[_0x2feb5f(0x2dd)],'redoMutations':_0x1131f3[_0x2feb5f(0x2dd)]});}return _0x374855['reverse']();}},__name(_a26,'CollaborativeUndoRedoService'),_a26);CollaborativeUndoRedoService=__decorateClass$1([__decorateParam$1(0x0,IUniverInstanceService),__decorateParam$1(0x1,ICommandService),__decorateParam$1(0x2,IContextService),__decorateParam$1(0x3,ITransformService),__decorateParam$1(0x4,ILogService)],CollaborativeUndoRedoService);var __defProp2=Object[_0x5deefc(0x4ad)],__getOwnPropDesc=Object[_0x5deefc(0x4e3)],__defNormalProp2=__name((_0x3bcad1,_0x5c6019,_0x38e5e7)=>_0x5c6019 in _0x3bcad1?__defProp2(_0x3bcad1,_0x5c6019,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38e5e7}):_0x3bcad1[_0x5c6019]=_0x38e5e7,_0x5deefc(0x4b6)),__decorateClass=__name((_0x368465,_0x9db3fd,_0x196bff,_0x18776b)=>{var _0x4e7475=_0x5deefc;for(var _0x48b69e=_0x18776b>0x1?void 0x0:_0x18776b?__getOwnPropDesc(_0x9db3fd,_0x196bff):_0x9db3fd,_0xc1f345=_0x368465[_0x4e7475(0x2f2)]-0x1,_0x40ca7c;_0xc1f345>=0x0;_0xc1f345--)(_0x40ca7c=_0x368465[_0xc1f345])&&(_0x48b69e=(_0x18776b?_0x40ca7c(_0x9db3fd,_0x196bff,_0x48b69e):_0x40ca7c(_0x48b69e))||_0x48b69e);return _0x18776b&&_0x48b69e&&__defProp2(_0x9db3fd,_0x196bff,_0x48b69e),_0x48b69e;},_0x5deefc(0x38e)),__decorateParam=__name((_0x4b172e,_0x4cd779)=>(_0x4c8b76,_0x381e40)=>_0x4cd779(_0x4c8b76,_0x381e40,_0x4b172e),_0x5deefc(0x209)),__publicField2=__name((_0x32bfa1,_0x244ffb,_0x33c42f)=>__defNormalProp2(_0x32bfa1,_0x244ffb+'',_0x33c42f),_0x5deefc(0x439));const PLUGIN_NAME=_0x5deefc(0x211);var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0x6863e9=defaultPluginConfig,_0x124486,_0x5967d7,_0x27ef7e){var _0x246f60=_0x5deefc;super(),this['_config']=_0x6863e9,this[_0x246f60(0x1b0)]=_0x124486,this['_injector']=_0x5967d7,this[_0x246f60(0x32a)]=_0x27ef7e;const {..._0x4d5363}=_0x254d2d({},defaultPluginConfig,this[_0x246f60(0x3f0)]);this[_0x246f60(0x32a)][_0x246f60(0x47c)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x4d5363);}[_0x5deefc(0x2af)](){var _0x1fec81=_0x5deefc;this[_0x1fec81(0x3a8)](),this[_0x1fec81(0x1fc)]();}[_0x5deefc(0x3a8)](){var _0x2c6380=_0x5deefc,_0x134f71,_0x24905e,_0x3a2e5f,_0x33412a;this[_0x2c6380(0x321)][_0x2c6380(0x31b)](IUndoRedoService)&&this['_logService'][_0x2c6380(0x2ac)](_0x2c6380(0x1c8),_0x2c6380(0x424));const _0x28264c=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0x24905e=(_0x134f71=this[_0x2c6380(0x3f0)])==null?void 0x0:_0x134f71[_0x2c6380(0x361)])!=null?_0x24905e:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x3a2e5f=this[_0x2c6380(0x3f0)])==null?void 0x0:_0x3a2e5f['override']);if(!((_0x33412a=this[_0x2c6380(0x3f0)])!=null&&_0x33412a['enableSingleActiveInstanceLock'])){const _0x14293e=_0x28264c[_0x2c6380(0x1ed)](([_0xf987ce])=>_0xf987ce===ISingleActiveUnitService);_0x14293e!==-0x1&&_0x28264c[_0x2c6380(0x233)](_0x14293e,0x1);}registerDependencies(this['_injector'],_0x28264c);}[_0x5deefc(0x1fc)](){var _0x4f59d1=_0x5deefc,_0x3ba07b,_0x1f2127,_0x1a2b34;this[_0x4f59d1(0x321)][_0x4f59d1(0x1ff)](HTTPService)[_0x4f59d1(0x245)]({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0x3ba07b=this['_config'])!=null&&_0x3ba07b['enableOfflineEditing']||(_0x1f2127=this[_0x4f59d1(0x321)]['get'](ILocalCacheService,Quantity[_0x4f59d1(0x300)]))==null||_0x1f2127[_0x4f59d1(0x2da)](),(_0x1a2b34=this[_0x4f59d1(0x3f0)])!=null&&_0x1a2b34[_0x4f59d1(0x4e0)]&&touchDependencies(this[_0x4f59d1(0x321)],[[AuthServerService]]),touchDependencies(this[_0x4f59d1(0x321)],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,'UniverCollaborationClientPlugin'),_a27);__publicField2(UniverCollaborationClientPlugin,'pluginName',PLUGIN_NAME),UniverCollaborationClientPlugin=__decorateClass([DependentOn(UniverCollaborationPlugin,UniverSheetsPlugin,UniverNetworkPlugin),__decorateParam(0x1,ILogService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientPlugin);export{AUTHZ_URL_KEY,AuthzIoHttpService,AwaitingState,AwaitingWithPendingState,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,COLLAB_SUBMIT_CHANGESET_URL_KEY,COLLAB_WEB_SOCKET_URL_KEY,CollaborationController,CollaborationEntity,CollaborationImageIoService,CollaborationSession,CollaborationSessionService,CollaborationSocketService,CollaborationStatus,CollaborationUIEventId,CollaborationUIEventService,CollaborativeUndoRedoService,CommentService,ConflictState,DEFAULT_COLLAB_WEB_SOCKET_URL,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,DataLoaderService,DocCollaborationEntity,FetchingMissState,HEARTBEAT_INTERVAL_KEY,HEARTBEAT_TIMEOUT_KEY,ICollaborationSocketService,ILocalCacheService,INetworkConditionService,ISingleActiveUnitService,LOCAL_CACHE_INTERVAL,LOCAL_CACHE_INTERVAL_KEY,LOGIN_URL_KEY,MemberService,MentionIoHttpService,OfflineState,PendingState,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,RETRY_CONNECTING_MAX_COUNT_KEY,SEND_CHANGESET_TIMEOUT_KEY,SNAPSHOT_SERVER_URL_KEY,SNAPSHOT_URL_KEY,SessionStatus,SheetCollaborationEntity,SheetTransformSelectionsService,SnapshotServerOverHTTPService,SyncedState,UnitStatus,UniverCollaborationClientPlugin,deserializeToCombResponse,getLocalCacheKey,serializeCombRequest};
|