@univerjs-pro/collaboration-client 0.5.5-nightly.202501210925 → 0.5.5-nightly.202501220324
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 _0x4b7416=_0x1bf9;(function(_0x16f092,_0xf8aa9d){var _0x1fa72f=_0x1bf9,_0x3ce58d=_0x16f092();while(!![]){try{var _0x27c437=-parseInt(_0x1fa72f(0x193))/0x1+-parseInt(_0x1fa72f(0x23d))/0x2*(-parseInt(_0x1fa72f(0x23a))/0x3)+parseInt(_0x1fa72f(0x231))/0x4*(-parseInt(_0x1fa72f(0x3a8))/0x5)+parseInt(_0x1fa72f(0x259))/0x6*(-parseInt(_0x1fa72f(0x272))/0x7)+-parseInt(_0x1fa72f(0x153))/0x8+-parseInt(_0x1fa72f(0x261))/0x9*(-parseInt(_0x1fa72f(0x2a0))/0xa)+parseInt(_0x1fa72f(0x1d5))/0xb*(parseInt(_0x1fa72f(0x3b8))/0xc);if(_0x27c437===_0xf8aa9d)break;else _0x3ce58d['push'](_0x3ce58d['shift']());}catch(_0x50824b){_0x3ce58d['push'](_0x3ce58d['shift']());}}}(_0x1977,0xe35be));var Li=Object[_0x4b7416(0x2cb)],Mi=(_0x4cb905,_0x4be949,_0x55620a)=>_0x4be949 in _0x4cb905?Li(_0x4cb905,_0x4be949,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55620a}):_0x4cb905[_0x4be949]=_0x55620a,N=(_0x57377e,_0x1b5240,_0x458719)=>Mi(_0x57377e,typeof _0x1b5240!='symbol'?_0x1b5240+'':_0x1b5240,_0x458719);import{createIdentifier as _0x3009aa,Inject as _0x33e245,Injector as _0x5596e1,Disposable as _0x325afd,DisposableCollection as _0x19c122,toDisposable as _0x2f82a7,IConfigService as _0x1218c6,ILogService as _0x46cc09,UserManagerService as _0x586694,UniverInstanceType as _0x26d1dc,IUniverInstanceService as _0x280bc0,LocaleService as _0x377f39,Optional as _0x30fb77,RxDisposable as _0x1ebecf,Tools as _0x12b872,Rectangle as _0x383a7d,ICommandService as _0x44e191,JSONX as _0x3eb9dc,CommandType as _0x26c610,IPermissionService as _0x3d23e7,IUndoRedoService as _0x1e3c7e,sequenceExecute as _0x156deb,Workbook as _0x29269e,MentionType as _0x45c7b6,IAuthzIoService as _0x33b7ff,isInternalEditorID as _0xdfb37d,LocalUndoRedoService as _0x1cdab7,IContextService as _0x2847d8,DependentOn as _0x5ba38c,Plugin as _0x60228e,merge as _0x8efa46,mergeOverrideWithDependencies as _0x1911e0,IMentionIOService as _0x4b92c5,registerDependencies as _0x31994b,Quantity as _0x34630d,touchDependencies as _0x4a6f6f}from'@univerjs/core';import{Subject as _0x9f6386,merge as _0xddea8f,of as _0x4f9ee1,BehaviorSubject as _0x4a0b1c,takeUntil as _0x1045a6,ReplaySubject as _0x501bd8,take as _0x2501f0,map as _0x5b8ccd,shareReplay as _0x1e81c2,firstValueFrom as _0xec409a,concatMap as _0x44ace6}from'rxjs';import{map as _0x30b411,take as _0x5a9f4b,filter as _0x2478c4,delay as _0x436533,takeUntil as _0x15e5da}from'rxjs/operators';import{HTTPService as _0x313ce8,ISocketService as _0xebca31,MergeInterceptorFactory as _0x479e5e,HTTPRequest as _0x539577,UniverNetworkPlugin as _0x2e22fe,ThresholdInterceptorFactory as _0x57e8c3}from'@univerjs/network';import{CollaborationEvent as _0x424b4b,parseChangesetToProtocol as _0xcf1c2,ISnapshotServerService as _0x411302,isTransformMutationsWithChangesetSuccess as _0x3469f3,ITransformService as _0x1186f3,mapDocumentTypeToUniverType as _0x2df773,RevisionService as _0x4d1984,isTransformChangesetsSuccess as _0x3fcc9a,CompressMutationService as _0x2628bf,parseProtocolChangeset as _0x4c3c85,SnapshotService as _0x24b93f,textEncoder as _0x21a1ca,b64DecodeUnicode as _0x54478a,isTransformMutationsWithChangesetFailure as _0x2a62be,UniverCollaborationPlugin as _0x403bdd}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x5e9635}from'@univerjs/telemetry';import{RichTextEditingMutation as _0x3b7e98}from'@univerjs/docs';import{SheetsSelectionsService as _0x3c531e,SetSelectionsOperation as _0xd89e59,InsertSheetMutation as _0xe3eea5,EmptyMutation as _0x44b477,WorkbookEditablePermission as _0x2e755a,SheetPermissionInitController as _0x5044e0,UniverSheetsPlugin as _0x525489}from'@univerjs/sheets';import{ImageSourceType as _0x5922b2,ImageUploadStatusType as _0x5b5449,IImageIoService as _0x5e0b5e}from'@univerjs/drawing';import{getGlobalObject as _0x2be3a0}from'@univerjs-pro/license';const En=_0x4b7416(0x145),In=_0x4b7416(0x3f6),Tn='SNAPSHOT_URL_KEY',eo=_0x4b7416(0x2fd),Cn=0x7d0,Rn=_0x4b7416(0x354),bn=_0x4b7416(0x404),On='/universer-api/user/session-ticket',yn=_0x4b7416(0x2b4),Nn=0x7530,Si=_0x4b7416(0x201),Ei=0x4e20,Dn=0x4e20,Pn=_0x4b7416(0x19c),wn=0x3,to=_0x4b7416(0x1e0),io=0x3e8,Un=_0x4b7416(0x244),An=_0x4b7416(0x2f3),xn=_0x4b7416(0x2df),Ln=_0x4b7416(0x407),no=_0x4b7416(0x2bd),ro=_0x4b7416(0x14b);var Ii=(_0x216318=>(_0x216318[_0x216318[_0x4b7416(0x27f)]=0x0]=_0x4b7416(0x27f),_0x216318[_0x216318['OK']=0x1]='OK',_0x216318[_0x216318[_0x4b7416(0x1a1)]=0x2]=_0x4b7416(0x1a1),_0x216318[_0x216318[_0x4b7416(0x2b6)]=0x3]='PERMISSION_DENIED',_0x216318[_0x216318[_0x4b7416(0x172)]=0x4]=_0x4b7416(0x172),_0x216318[_0x216318[_0x4b7416(0x216)]=0x5]=_0x4b7416(0x216),_0x216318[_0x216318[_0x4b7416(0x33b)]=0x6]=_0x4b7416(0x33b),_0x216318[_0x216318[_0x4b7416(0x305)]=0x7]=_0x4b7416(0x305),_0x216318[_0x216318['TOO_MANY_REQUESTS']=0x8]=_0x4b7416(0x1ee),_0x216318[_0x216318[_0x4b7416(0x2f7)]=0x9]='COMPLETION_FINISHED',_0x216318[_0x216318[_0x4b7416(0x232)]=0x1389]=_0x4b7416(0x232),_0x216318[_0x216318[_0x4b7416(0x296)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x216318[_0x216318[_0x4b7416(0x446)]=0x1772]=_0x4b7416(0x446),_0x216318[_0x216318[_0x4b7416(0x3c5)]=0x1773]=_0x4b7416(0x3c5),_0x216318[_0x216318[_0x4b7416(0x443)]=0x1b59]=_0x4b7416(0x443),_0x216318[_0x216318['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4b7416(0x158),_0x216318[_0x216318[_0x4b7416(0x347)]=0x1b5b]=_0x4b7416(0x347),_0x216318[_0x216318[_0x4b7416(0x1ef)]=0x1b5c]=_0x4b7416(0x1ef),_0x216318[_0x216318[_0x4b7416(0x24f)]=0x1b5d]=_0x4b7416(0x24f),_0x216318[_0x216318[_0x4b7416(0x37f)]=0x1f41]=_0x4b7416(0x37f),_0x216318[_0x216318[_0x4b7416(0x2c8)]=0x2329]=_0x4b7416(0x2c8),_0x216318[_0x216318[_0x4b7416(0x3a6)]=0x232a]=_0x4b7416(0x3a6),_0x216318[_0x216318[_0x4b7416(0x2bf)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x216318[_0x216318[_0x4b7416(0x423)]=0x232c]=_0x4b7416(0x423),_0x216318[_0x216318['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x216318[_0x216318[_0x4b7416(0x214)]=0x2711]=_0x4b7416(0x214),_0x216318[_0x216318['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4b7416(0x221),_0x216318[_0x216318[_0x4b7416(0x2be)]=0x2713]=_0x4b7416(0x2be),_0x216318[_0x216318[_0x4b7416(0x402)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x216318[_0x216318[_0x4b7416(0x2e7)]=0x2af9]=_0x4b7416(0x2e7),_0x216318[_0x216318[_0x4b7416(0x327)]=-0x1]=_0x4b7416(0x327),_0x216318))(Ii||{}),Q=(_0x30e477=>(_0x30e477[_0x30e477[_0x4b7416(0x40c)]=0x0]='UNIVER_UNKNOWN',_0x30e477[_0x30e477['UNIVER_DOC']=0x1]=_0x4b7416(0x3a9),_0x30e477[_0x30e477[_0x4b7416(0x409)]=0x2]=_0x4b7416(0x409),_0x30e477[_0x30e477['UNIVER_SLIDE']=0x3]=_0x4b7416(0x400),_0x30e477[_0x30e477[_0x4b7416(0x320)]=0x4]=_0x4b7416(0x320),_0x30e477[_0x30e477['UNRECOGNIZED']=-0x1]=_0x4b7416(0x327),_0x30e477))(Q||{}),F=(_0x284835=>(_0x284835[_0x284835[_0x4b7416(0x2cc)]=0x0]='UNKNOWN_CMD',_0x284835[_0x284835[_0x4b7416(0x273)]=0x1]='HELLO',_0x284835[_0x284835[_0x4b7416(0x300)]=0x2]=_0x4b7416(0x300),_0x284835[_0x284835[_0x4b7416(0x355)]=0x3]='LEAVE',_0x284835[_0x284835['INGEST']=0x4]=_0x4b7416(0x1b5),_0x284835[_0x284835['HEARTBEAT']=0x5]='HEARTBEAT',_0x284835[_0x284835[_0x4b7416(0x42b)]=0x6]=_0x4b7416(0x42b),_0x284835[_0x284835[_0x4b7416(0x327)]=-0x1]=_0x4b7416(0x327),_0x284835))(F||{}),Ee=(_0x2bfa34=>(_0x2bfa34[_0x2bfa34[_0x4b7416(0x3e4)]=0x0]=_0x4b7416(0x3e4),_0x2bfa34[_0x2bfa34['OK']=0x1]='OK',_0x2bfa34[_0x2bfa34[_0x4b7416(0x381)]=0x2]=_0x4b7416(0x381),_0x2bfa34[_0x2bfa34[_0x4b7416(0x30a)]=0x3e9]='JOIN_ROOM_FULL',_0x2bfa34[_0x2bfa34[_0x4b7416(0x16e)]=0x3ea]=_0x4b7416(0x16e),_0x2bfa34[_0x2bfa34[_0x4b7416(0x22c)]=0x3eb]=_0x4b7416(0x22c),_0x2bfa34[_0x2bfa34['GLOBAL_ROOMS_CNT_EXCEEDS']=0x3ec]=_0x4b7416(0x2b7),_0x2bfa34[_0x2bfa34[_0x4b7416(0x327)]=-0x1]=_0x4b7416(0x327),_0x2bfa34))(Ee||{}),Ti=(_0x38f978=>(_0x38f978[_0x38f978[_0x4b7416(0x382)]=0x0]=_0x4b7416(0x382),_0x38f978[_0x38f978[_0x4b7416(0x3b4)]=0x1]=_0x4b7416(0x3b4),_0x38f978[_0x38f978[_0x4b7416(0x16a)]=0x2]=_0x4b7416(0x16a),_0x38f978[_0x38f978[_0x4b7416(0x3d7)]=0x3]=_0x4b7416(0x3d7),_0x38f978[_0x38f978[_0x4b7416(0x3d4)]=0x4]='UnitSnapshot',_0x38f978[_0x38f978[_0x4b7416(0x327)]=-0x1]='UNRECOGNIZED',_0x38f978))(Ti||{});const q=_0x4b7416(0x20a),Wt={};var se=(_0x557b67=>(_0x557b67[_0x4b7416(0x3ae)]=_0x4b7416(0x3ae),_0x557b67[_0x4b7416(0x2b6)]=_0x4b7416(0x2b6),_0x557b67[_0x4b7416(0x31f)]='CONFLICT',_0x557b67[_0x4b7416(0x246)]=_0x4b7416(0x246),_0x557b67[_0x4b7416(0x2ba)]='JOIN_ROOM_FAILED',_0x557b67[_0x4b7416(0x189)]=_0x4b7416(0x189),_0x557b67[_0x4b7416(0x26e)]=_0x4b7416(0x26e),_0x557b67[_0x4b7416(0x222)]=_0x4b7416(0x222),_0x557b67))(se||{});class pe{constructor(){var _0x4d4dd6=_0x4b7416;N(this,_0x4d4dd6(0x3ce),new _0x9f6386()),N(this,_0x4d4dd6(0x2ee),this[_0x4d4dd6(0x3ce)][_0x4d4dd6(0x32c)]());}['emitEvent'](_0xda672a){var _0xbe8744=_0x4b7416;this[_0xbe8744(0x3ce)][_0xbe8744(0x1b8)](_0xda672a);}}const Mn=_0x3009aa(_0x4b7416(0x410));function $n(_0x22d3a8){var _0x1ef7b0=_0x4b7416,_0x1c5df1,_0x2e032e,_0x4d829a,_0x588dc0,_0x43e001;const _0x18b8e5=_0x22d3a8[_0x1ef7b0(0x19a)],_0x4e308c=JSON[_0x1ef7b0(0x1c1)](_0x18b8e5);switch(_0x4e308c[_0x1ef7b0(0x383)]){case F[_0x1ef7b0(0x28f)]:case F['HELLO']:{const _0x1ac8e2=_0x4e308c['infoRsp'];return{..._0x4e308c,'data':_0x1ac8e2,'cmd':_0x4e308c['cmd']};}case F[_0x1ef7b0(0x300)]:{const _0x3e3520=_0x4e308c[_0x1ef7b0(0x2d2)];return{..._0x4e308c,'data':_0x3e3520,'cmd':_0x4e308c[_0x1ef7b0(0x383)]};}case F[_0x1ef7b0(0x42b)]:{const _0x2758e4=_0x4e308c['collaMsg'];switch(_0x2758e4[_0x1ef7b0(0x1f7)]){case _0x424b4b['PERMISSION_REJ']:return{..._0x4e308c,'data':{..._0x2758e4,'data':(_0x1c5df1=_0x2758e4[_0x1ef7b0(0x379)])==null?void 0x0:_0x1c5df1['cs']},'cmd':_0x4e308c[_0x1ef7b0(0x383)]};case _0x424b4b[_0x1ef7b0(0x2fe)]:return{..._0x4e308c,'data':{..._0x2758e4,'data':(_0x2e032e=_0x2758e4[_0x1ef7b0(0x2e2)])==null?void 0x0:_0x2e032e['cs']},'cmd':_0x4e308c[_0x1ef7b0(0x383)]};case _0x424b4b[_0x1ef7b0(0x37a)]:return{..._0x4e308c,'data':{..._0x2758e4,'data':(_0x4d829a=_0x2758e4[_0x1ef7b0(0x380)])==null?void 0x0:_0x4d829a['cs']},'cmd':_0x4e308c['cmd']};case _0x424b4b[_0x1ef7b0(0x3d2)]:return{..._0x4e308c,'data':{..._0x2758e4,'data':(_0x588dc0=_0x2758e4[_0x1ef7b0(0x385)])==null?void 0x0:_0x588dc0['cs']},'cmd':_0x4e308c[_0x1ef7b0(0x383)]};case _0x424b4b[_0x1ef7b0(0x179)]:return{..._0x4e308c,'data':{..._0x2758e4,'data':(_0x43e001=_0x2758e4[_0x1ef7b0(0x34a)])==null?void 0x0:_0x43e001['cs']},'cmd':_0x4e308c['cmd']};case _0x424b4b[_0x1ef7b0(0x411)]:return{..._0x4e308c,'data':{..._0x2758e4,'data':_0x2758e4[_0x1ef7b0(0x43c)]},'cmd':_0x4e308c[_0x1ef7b0(0x383)]};case _0x424b4b[_0x1ef7b0(0x25f)]:return{..._0x4e308c,'data':{..._0x2758e4,'data':_0x2758e4['joinEvent']},'cmd':_0x4e308c['cmd']};case _0x424b4b[_0x1ef7b0(0x1f0)]:return{..._0x4e308c,'data':{..._0x2758e4,'data':_0x2758e4['leaveEvent']},'cmd':_0x4e308c[_0x1ef7b0(0x383)]};case _0x424b4b[_0x1ef7b0(0x301)]:return{..._0x4e308c,'data':{..._0x2758e4,'data':_0x2758e4[_0x1ef7b0(0x1a3)]},'cmd':_0x4e308c[_0x1ef7b0(0x383)]};case _0x424b4b['LIVESHARE_FETCH_OPERATIONS']:case _0x424b4b[_0x1ef7b0(0x218)]:return{..._0x4e308c,'data':{..._0x2758e4,'data':_0x2758e4[_0x1ef7b0(0x195)]},'cmd':_0x4e308c['cmd']};case _0x424b4b['LIVESHARE_TERMINATE']:return{..._0x4e308c,'data':{..._0x2758e4,'data':_0x2758e4[_0x1ef7b0(0x1a3)]},'cmd':_0x4e308c[_0x1ef7b0(0x383)]};case _0x424b4b[_0x1ef7b0(0x28e)]:return{..._0x4e308c,'data':_0x2758e4,'cmd':_0x4e308c[_0x1ef7b0(0x383)]};case _0x424b4b['COMMENT_UPDATE']:return{..._0x4e308c,'data':{..._0x2758e4,'data':_0x2758e4[_0x1ef7b0(0x364)]},'cmd':_0x4e308c[_0x1ef7b0(0x383)]};case _0x424b4b['UPDATE_PERMISSION_OBJ']:return{..._0x4e308c,'data':{..._0x2758e4,'data':_0x2758e4[_0x1ef7b0(0x32d)]},'cmd':_0x4e308c['cmd']};case _0x424b4b[_0x1ef7b0(0x335)]:return{..._0x4e308c,'data':{..._0x2758e4,'data':_0x2758e4[_0x1ef7b0(0x1c9)]},'cmd':_0x4e308c[_0x1ef7b0(0x383)]};case _0x424b4b[_0x1ef7b0(0x230)]:return{..._0x4e308c,'data':{..._0x2758e4,'data':_0x2758e4[_0x1ef7b0(0x448)]},'cmd':_0x4e308c[_0x1ef7b0(0x383)]};default:return _0x4e308c;}}default:return _0x4e308c;}}function Hn(_0x5d7dc2){var _0x48292c=_0x4b7416;switch(_0x5d7dc2['cmd']){case F[_0x48292c(0x28f)]:case F[_0x48292c(0x273)]:return JSON[_0x48292c(0x418)]({'cmd':_0x5d7dc2[_0x48292c(0x383)],'routeKey':_0x5d7dc2[_0x48292c(0x1be)]});case F[_0x48292c(0x1b5)]:{let _0x303989;switch(_0x5d7dc2[_0x48292c(0x19a)][_0x48292c(0x1f7)]){case _0x424b4b['UPDATE_CURSOR']:{_0x303989={'eventID':_0x424b4b[_0x48292c(0x411)],'updateCursorEvent':_0x5d7dc2[_0x48292c(0x19a)]['data']};break;}case _0x424b4b[_0x48292c(0x1f0)]:{_0x303989={'eventID':_0x424b4b[_0x48292c(0x1f0)],'leaveEvent':_0x5d7dc2[_0x48292c(0x19a)]['data']};break;}case _0x424b4b[_0x48292c(0x25f)]:{_0x303989={'eventID':_0x424b4b[_0x48292c(0x25f)],'joinEvent':_0x5d7dc2[_0x48292c(0x19a)][_0x48292c(0x19a)]};break;}case _0x424b4b[_0x48292c(0x301)]:{_0x303989={'eventID':_0x424b4b[_0x48292c(0x301)],'liveShareNewHost':_0x5d7dc2[_0x48292c(0x19a)][_0x48292c(0x19a)]};break;}case _0x424b4b[_0x48292c(0x218)]:{_0x303989={'eventID':_0x424b4b[_0x48292c(0x218)],'liveShareOperation':_0x5d7dc2[_0x48292c(0x19a)][_0x48292c(0x19a)]};break;}case _0x424b4b[_0x48292c(0x365)]:{_0x303989={'eventID':_0x424b4b['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5d7dc2[_0x48292c(0x19a)][_0x48292c(0x19a)]};break;}case _0x424b4b[_0x48292c(0x26a)]:{_0x303989={'eventID':_0x424b4b['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x5d7dc2['data'][_0x48292c(0x19a)]};break;}case _0x424b4b[_0x48292c(0x3a0)]:{_0x303989={'eventID':_0x424b4b[_0x48292c(0x3a0)]};break;}default:_0x303989={'eventID':_0x5d7dc2[_0x48292c(0x19a)]['eventID']};}return JSON[_0x48292c(0x418)]({'cmd':_0x5d7dc2[_0x48292c(0x383)],'routeKey':_0x5d7dc2['routeKey'],'collaMsg':_0x303989});}case F[_0x48292c(0x300)]:return JSON['stringify']({'cmd':_0x5d7dc2[_0x48292c(0x383)],'routeKey':_0x5d7dc2[_0x48292c(0x1be)],'joinReq':_0x5d7dc2[_0x48292c(0x19a)]});case F[_0x48292c(0x355)]:return JSON[_0x48292c(0x418)]({'cmd':_0x5d7dc2['cmd'],'routeKey':_0x5d7dc2['routeKey'],'leaveReq':_0x5d7dc2[_0x48292c(0x19a)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var kn=Object[_0x4b7416(0x2cb)],jn=Object[_0x4b7416(0x26b)],Bn=(_0x23aa20,_0x117584,_0x3b7230,_0x26e0e9)=>{var _0x90b909=_0x4b7416;for(var _0x3882d4=_0x26e0e9>0x1?void 0x0:_0x26e0e9?jn(_0x117584,_0x3b7230):_0x117584,_0x35f1a7=_0x23aa20[_0x90b909(0x39c)]-0x1,_0x149b0f;_0x35f1a7>=0x0;_0x35f1a7--)(_0x149b0f=_0x23aa20[_0x35f1a7])&&(_0x3882d4=(_0x26e0e9?_0x149b0f(_0x117584,_0x3b7230,_0x3882d4):_0x149b0f(_0x3882d4))||_0x3882d4);return _0x26e0e9&&_0x3882d4&&kn(_0x117584,_0x3b7230,_0x3882d4),_0x3882d4;},Ue=(_0x5a83fd,_0x16f280)=>(_0xadfc3e,_0x23a155)=>_0x16f280(_0xadfc3e,_0x23a155,_0x5a83fd);const Ci=_0x3009aa(_0x4b7416(0x28b));function Fn(_0x534456,_0x2fab1b,_0x5deb70){var _0x75329=_0x4b7416;return _0x534456+'/'+_0x2fab1b+_0x75329(0x3ac)+_0x5deb70+_0x75329(0x3f2);}let Et=class extends _0x325afd{constructor(_0xaad6a3,_0x386214,_0x110e1e,_0xb0961d,_0x4bb0dc){var _0x2ad0be=_0x4b7416;super(),this['_injector']=_0xaad6a3,this[_0x2ad0be(0x280)]=_0x386214,this['_configService']=_0x110e1e,this['_logService']=_0xb0961d,this[_0x2ad0be(0x2fb)]=_0x4bb0dc;}[_0x4b7416(0x23b)](_0x147283){var _0x5ccbf0=_0x4b7416;const _0x3e5813=this['_injector'][_0x5ccbf0(0x279)](_0xebca31);if(!_0x3e5813)throw new Error(_0x5ccbf0(0x249));const _0x215a88=_0x3e5813[_0x5ccbf0(0x23b)](_0x147283);if(!_0x215a88)throw new Error(_0x5ccbf0(0x29e));const _0x5678b1=new _0x19c122(),_0x1ceadc=new _0x9f6386();_0x5678b1[_0x5ccbf0(0x263)](_0x215a88[_0x5ccbf0(0x399)][_0x5ccbf0(0x435)](_0x2b9d59=>_0x1ceadc[_0x5ccbf0(0x1b8)](_0x2b9d59))),_0x5678b1[_0x5ccbf0(0x263)](_0x2f82a7(()=>_0x1ceadc[_0x5ccbf0(0x3b2)]()));const _0x4a84c2=new _0x9f6386();_0x5678b1[_0x5ccbf0(0x263)](_0x215a88[_0x5ccbf0(0x163)][_0x5ccbf0(0x435)](_0x128481=>_0x4a84c2[_0x5ccbf0(0x1b8)](_0x128481))),_0x5678b1[_0x5ccbf0(0x263)](_0x2f82a7(()=>_0x4a84c2['complete']()));const _0x4d37a9=new _0x9f6386();_0x5678b1[_0x5ccbf0(0x263)](_0x215a88[_0x5ccbf0(0x37c)][_0x5ccbf0(0x435)](_0x181abf=>{var _0x1b1b0e=_0x5ccbf0;const _0x2c0136=$n(_0x181abf);_0x4d37a9[_0x1b1b0e(0x1b8)](_0x2c0136);})),_0x5678b1[_0x5ccbf0(0x263)](_0x2f82a7(()=>_0x4d37a9['complete']()));let _0x5cfcaa;const _0x523053=()=>{var _0x156b9c=_0x5ccbf0;_0x4a84c2[_0x156b9c(0x1b8)](new Event(_0x156b9c(0x16f))),_0x1ceadc[_0x156b9c(0x1b8)](new CloseEvent(_0x156b9c(0x16f))),_0x5cfcaa[_0x156b9c(0x340)]();};return _0x5cfcaa={'memberID':'','close$':_0x1ceadc[_0x5ccbf0(0x32c)](),'error$':_0x4a84c2[_0x5ccbf0(0x32c)](),'open$':_0x215a88[_0x5ccbf0(0x285)],'message$':_0x4d37a9['asObservable'](),'send':_0x2c07e9=>{var _0x228e32=_0x5ccbf0;if(_0x2c07e9[_0x228e32(0x383)]===F['INGEST']){if(_0x2c07e9[_0x228e32(0x19a)]['eventID']===_0x424b4b[_0x228e32(0x3f5)]){this['_submitChangeset'](_0x5cfcaa,_0x2c07e9[_0x228e32(0x19a)])[_0x228e32(0x2c0)](_0x4b3688=>{var _0x38f1f5=_0x228e32;this[_0x38f1f5(0x38f)][_0x38f1f5(0x2bc)](_0x4b3688),_0x523053();});return;}if(_0x2c07e9[_0x228e32(0x19a)]['eventID']===_0x424b4b[_0x228e32(0x199)]){const _0xe8ad0c=_0x2c07e9[_0x228e32(0x19a)];this[_0x228e32(0x2b2)](_0xe8ad0c)[_0x228e32(0x37d)](_0x19f173=>{var _0x5a4b8e=_0x228e32;_0x4d37a9['next']({'cmd':F[_0x5a4b8e(0x42b)],'code':Ee['OK'],'routeKey':_0xe8ad0c[_0x5a4b8e(0x19a)][_0x5a4b8e(0x311)],'routeType':'','data':{'eventID':_0x424b4b[_0x5a4b8e(0x24a)],'data':{'changesets':_0x19f173}}});})[_0x228e32(0x2c0)](_0x27af23=>{var _0x48bd06=_0x228e32;this[_0x48bd06(0x38f)][_0x48bd06(0x2bc)](_0x27af23),_0x523053();});return;}}_0x215a88['send'](Hn(_0x2c07e9));},'close':()=>{var _0x38a551=_0x5ccbf0;_0x215a88[_0x38a551(0x340)](),_0x5678b1[_0x38a551(0x363)]();}},_0x5cfcaa;}async[_0x4b7416(0x1e9)](_0x37a65b,_0xec5333){var _0x12f380=_0x4b7416,_0x5c140a,_0x1994e9;const {unitType:_0x90bf94,unitID:_0x31bb53,changeset:_0x303509}=_0xec5333['data'],_0x915387={'unitID':_0x31bb53,'memberID':_0x37a65b[_0x12f380(0x1ea)],'type':_0x90bf94,'changeset':_0xcf1c2(_0x303509)},_0x48a8a3=this[_0x12f380(0x152)]['getConfig'](Un),_0x2f06d6=this[_0x12f380(0x152)][_0x12f380(0x40e)](q),_0x1f3978=Fn((_0x1994e9=(_0x5c140a=_0x2f06d6==null?void 0x0:_0x2f06d6[_0x12f380(0x26c)])!=null?_0x5c140a:_0x48a8a3)!=null?_0x1994e9:An,_0x90bf94,_0x31bb53);try{await this[_0x12f380(0x280)]['post'](_0x1f3978,{'body':_0x915387});}catch(_0x4064e8){throw this[_0x12f380(0x38f)][_0x12f380(0x2bc)](_0x12f380(0x35e),_0x12f380(0x362)),_0x4064e8;}}async[_0x4b7416(0x2b2)](_0x515eae){var _0x55cd3b=_0x4b7416;const {unitID:_0x2e3dbd,from:_0x4de93f,to:_0x3fdb64,unitType:_0x4df35e}=_0x515eae[_0x55cd3b(0x19a)];return(await this[_0x55cd3b(0x2fb)][_0x55cd3b(0x3b7)]({'metadata':void 0x0},{'unitID':_0x2e3dbd,'type':_0x4df35e,'from':_0x4de93f,'to':_0x3fdb64}))['changesets'];}};Et=Bn([Ue(0x0,_0x33e245(_0x5596e1)),Ue(0x1,_0x33e245(_0x313ce8)),Ue(0x2,_0x1218c6),Ue(0x3,_0x46cc09),Ue(0x4,_0x411302)],Et);const Vn='collaboration_new_changeset';function Gn(_0x591a5e){return JSON['stringify'](_0x591a5e)['length'];}class Ri{constructor(){var _0xda04fa=_0x4b7416;N(this,_0xda04fa(0x16c),new _0x9f6386()),N(this,_0xda04fa(0x419),this[_0xda04fa(0x16c)][_0xda04fa(0x32c)]());}['onCommentUpdate'](_0x5030fc){var _0x283017=_0x4b7416;this[_0x283017(0x16c)][_0x283017(0x1b8)](_0x5030fc);}}var Wn=Object[_0x4b7416(0x2cb)],Kn=Object[_0x4b7416(0x26b)],Yn=(_0x393a36,_0x2700b7,_0x1237c8,_0x265c94)=>{var _0x53f176=_0x4b7416;for(var _0x26f410=_0x265c94>0x1?void 0x0:_0x265c94?Kn(_0x2700b7,_0x1237c8):_0x2700b7,_0x552c78=_0x393a36[_0x53f176(0x39c)]-0x1,_0x5b0025;_0x552c78>=0x0;_0x552c78--)(_0x5b0025=_0x393a36[_0x552c78])&&(_0x26f410=(_0x265c94?_0x5b0025(_0x2700b7,_0x1237c8,_0x26f410):_0x5b0025(_0x26f410))||_0x26f410);return _0x265c94&&_0x26f410&&Wn(_0x2700b7,_0x1237c8,_0x26f410),_0x26f410;},Kt=(_0xa12c28,_0xd8d4ce)=>(_0x5e46b6,_0x17b114)=>_0xd8d4ce(_0x5e46b6,_0x17b114,_0xa12c28);let xe=class extends _0x325afd{constructor(_0xc46e92,_0x1d54d8){var _0x6a75e3=_0x4b7416;super(),N(this,_0x6a75e3(0x24b),new Map()),N(this,_0x6a75e3(0x28a),new _0x9f6386()),(this[_0x6a75e3(0x3cb)]=_0xc46e92,this[_0x6a75e3(0x420)]=_0x1d54d8,this['disposeWithMe'](_0xddea8f(this[_0x6a75e3(0x3cb)][_0x6a75e3(0x30b)](_0x26d1dc['UNIVER_SHEET'])[_0x6a75e3(0x182)](_0x30b411(_0x50e29a=>_0x50e29a[_0x6a75e3(0x314)]())),this[_0x6a75e3(0x3cb)]['getTypeOfUnitDisposed$'](_0x26d1dc[_0x6a75e3(0x3a9)])['pipe'](_0x30b411(_0x30813d=>_0x30813d[_0x6a75e3(0x314)]())),this['_univerInstanceService'][_0x6a75e3(0x30b)](_0x26d1dc[_0x6a75e3(0x400)])[_0x6a75e3(0x182)](_0x30b411(_0x2cb07e=>_0x2cb07e[_0x6a75e3(0x314)]())))['subscribe'](_0x31a76b=>this[_0x6a75e3(0x275)](_0x31a76b))));}['waitForRoom$'](_0x199f6b){var _0x3b5b50=_0x4b7416;return this[_0x3b5b50(0x24b)]['has'](_0x199f6b)?_0x4f9ee1(this[_0x3b5b50(0x24b)][_0x3b5b50(0x279)](_0x199f6b)):this[_0x3b5b50(0x28a)][_0x3b5b50(0x182)](_0x30b411(_0x1d38e9=>{var _0x1ffe8c=_0x3b5b50;if(_0x1d38e9===_0x199f6b)return this[_0x1ffe8c(0x24b)][_0x1ffe8c(0x279)](_0x1d38e9);}));}[_0x4b7416(0x414)](_0x521459){var _0x502de0=_0x4b7416;this[_0x502de0(0x420)][_0x502de0(0x414)](_0x521459);}[_0x4b7416(0x237)](){var _0x2ac139=_0x4b7416;return this[_0x2ac139(0x420)][_0x2ac139(0x237)]();}[_0x4b7416(0x21e)](_0x14ccc1,_0x1dc140){var _0x384059=_0x4b7416;let _0x300251=this[_0x384059(0x24b)]['get'](_0x14ccc1);_0x300251||(_0x300251=new qn(),this['_roomMembers'][_0x384059(0x329)](_0x14ccc1,_0x300251),this[_0x384059(0x28a)][_0x384059(0x1b8)](_0x14ccc1)),_0x300251[_0x384059(0x21e)](_0x1dc140);}['removeMember'](_0x1007f5,_0xdf16a3){var _0xde5243=_0x4b7416;const _0x399e98=this[_0xde5243(0x24b)][_0xde5243(0x279)](_0x1007f5);_0x399e98&&_0x399e98['removeMember'](_0xdf16a3);}['getRoom'](_0x2c7a1a){var _0x14feb1=_0x4b7416;return this[_0x14feb1(0x24b)][_0x14feb1(0x279)](_0x2c7a1a);}['getMember'](_0x55aa7a,_0x4cbe78){var _0xe41c76=_0x4b7416;const _0x291748=this[_0xe41c76(0x24b)][_0xe41c76(0x279)](_0x55aa7a);if(_0x291748)return _0x291748[_0xe41c76(0x197)](_0x4cbe78);}[_0x4b7416(0x275)](_0x1e4093){var _0xf409eb=_0x4b7416;const _0x284448=this[_0xf409eb(0x24b)][_0xf409eb(0x279)](_0x1e4093);_0x284448&&(_0x284448[_0xf409eb(0x363)](),this[_0xf409eb(0x24b)][_0xf409eb(0x3fd)](_0x1e4093));}[_0x4b7416(0x363)](){var _0x31468c=_0x4b7416;this[_0x31468c(0x24b)][_0x31468c(0x1d1)](_0x1cf8af=>_0x1cf8af[_0x31468c(0x363)]()),this[_0x31468c(0x24b)][_0x31468c(0x29b)](),this['_roomCreated$'][_0x31468c(0x3b2)]();}};xe=Yn([Kt(0x0,_0x280bc0),Kt(0x1,_0x33e245(_0x586694))],xe);class qn extends _0x325afd{constructor(){var _0x416a9b=_0x4b7416;super(...arguments),N(this,_0x416a9b(0x326),new Map()),N(this,_0x416a9b(0x2af),new _0x4a0b1c(this['_members'])),N(this,_0x416a9b(0x1f9),this[_0x416a9b(0x2af)][_0x416a9b(0x32c)]());}[_0x4b7416(0x363)](){var _0xd3729f=_0x4b7416;this[_0xd3729f(0x326)][_0xd3729f(0x29b)]();}[_0x4b7416(0x21e)](_0x5821a4){var _0x3f8bd3=_0x4b7416;this['_members'][_0x3f8bd3(0x329)](_0x5821a4['memberID'],_0x5821a4),this[_0x3f8bd3(0x440)]();}[_0x4b7416(0x268)](_0x1421a5){var _0x477d69=_0x4b7416;this[_0x477d69(0x326)][_0x477d69(0x3fd)](_0x1421a5);}[_0x4b7416(0x197)](_0x3af3c9){var _0x485991=_0x4b7416;return this[_0x485991(0x326)][_0x485991(0x279)](_0x3af3c9);}['getAllMembers'](){var _0x4ab89e=_0x4b7416;return Array[_0x4ab89e(0x266)](this[_0x4ab89e(0x326)][_0x4ab89e(0x250)]());}[_0x4b7416(0x440)](){var _0x17fadf=_0x4b7416;this[_0x17fadf(0x2af)][_0x17fadf(0x1b8)](this['_members']);}}var zn=Object[_0x4b7416(0x2cb)],Jn=Object[_0x4b7416(0x26b)],Xn=(_0x80a273,_0x3a890f,_0x3b271b,_0x24babe)=>{for(var _0x532a28=_0x24babe>0x1?void 0x0:_0x24babe?Jn(_0x3a890f,_0x3b271b):_0x3a890f,_0x1bf6a5=_0x80a273['length']-0x1,_0xe51f61;_0x1bf6a5>=0x0;_0x1bf6a5--)(_0xe51f61=_0x80a273[_0x1bf6a5])&&(_0x532a28=(_0x24babe?_0xe51f61(_0x3a890f,_0x3b271b,_0x532a28):_0xe51f61(_0x532a28))||_0x532a28);return _0x24babe&&_0x532a28&&zn(_0x3a890f,_0x3b271b,_0x532a28),_0x532a28;},me=(_0x150889,_0xa02cc)=>(_0x381eff,_0x5919e7)=>_0xa02cc(_0x381eff,_0x5919e7,_0x150889),Te=(_0x49e096=>(_0x49e096[_0x49e096['IDLE']=0x0]=_0x4b7416(0x325),_0x49e096[_0x49e096[_0x4b7416(0x377)]=0x1]=_0x4b7416(0x377),_0x49e096[_0x49e096[_0x4b7416(0x252)]=0x2]=_0x4b7416(0x252),_0x49e096[_0x49e096[_0x4b7416(0x3d1)]=0x3]='ONLINE',_0x49e096))(Te||{});const Yt={[Ee[_0x4b7416(0x381)]]:_0x4b7416(0x328),[Ee[_0x4b7416(0x30a)]]:'session.room-full',[Ee[_0x4b7416(0x16e)]]:'session.room-not-exists',[Ee[_0x4b7416(0x22c)]]:_0x4b7416(0x206),[Ee[_0x4b7416(0x2b7)]]:_0x4b7416(0x154)};let It=class extends _0x1ebecf{constructor(_0x210897,_0x59d184,_0x4dd873,_0x365ea0,_0x35f2cd,_0x1a72cc,_0x44ba0b,_0xb7550d,_0x197318){var _0x194c74=_0x4b7416;super(),N(this,'_sessionStatus$',new _0x4a0b1c(0x0)),N(this,_0x194c74(0x27d),this['_sessionStatus$'][_0x194c74(0x32c)]()),N(this,'_event$',new _0x9f6386()),N(this,_0x194c74(0x2ee),this[_0x194c74(0x3ce)][_0x194c74(0x32c)]()),N(this,'_socket'),N(this,_0x194c74(0x15e)),N(this,'_collaborationTimeoutTimer'),N(this,'_shouldReportTelemetry',!0x1),N(this,'_telemetryInfo',null),(this['_unitID']=_0x210897,this['_logService']=_0x4dd873,this['_configService']=_0x365ea0,this[_0x194c74(0x1f1)]=_0x35f2cd,this[_0x194c74(0x277)]=_0x1a72cc,this['_commentService']=_0x44ba0b,this['_collaborationUIEventService']=_0xb7550d,this[_0x194c74(0x150)]=_0x197318,this[_0x194c74(0x333)]=!!this[_0x194c74(0x150)],_0x59d184['pipe'](_0x1045a6(this[_0x194c74(0x43d)]))[_0x194c74(0x435)](_0x1f3549=>{var _0x2e8576=_0x194c74,_0xedde65;typeof _0x1f3549>'u'||(this['_socket']=_0x1f3549,_0x1f3549?(this[_0x2e8576(0x294)](_0x1f3549),this[_0x2e8576(0x15e)]=_0x1f3549[_0x2e8576(0x37c)]['subscribe'](_0x4e95bc=>{var _0x1935a8=_0x2e8576;_0x4e95bc[_0x1935a8(0x1be)]===this[_0x1935a8(0x412)]&&this[_0x1935a8(0x352)](_0x4e95bc);})):(this[_0x2e8576(0x2db)](),this[_0x2e8576(0x3bb)]['next'](0x2),(_0xedde65=this[_0x2e8576(0x15e)])==null||_0xedde65[_0x2e8576(0x219)](),this['_socketMessageSubscription']=null));}));}get[_0x4b7416(0x1d9)](){var _0x45630c=_0x4b7416;return this[_0x45630c(0x3bb)][_0x45630c(0x1a4)]();}[_0x4b7416(0x360)](){var _0x23ef57,_0x495075;return(_0x495075=(_0x23ef57=this['_socket'])==null?void 0x0:_0x23ef57['memberID'])!=null?_0x495075:null;}[_0x4b7416(0x363)](){var _0x4a10d4=_0x4b7416;super[_0x4a10d4(0x363)](),this[_0x4a10d4(0x43d)]['next'](),this[_0x4a10d4(0x43d)][_0x4a10d4(0x3b2)]();}[_0x4b7416(0x340)](){var _0x507f40=_0x4b7416,_0x180f56,_0x4122a7;this[_0x507f40(0x2db)](),(_0x180f56=this[_0x507f40(0x1e1)])==null||_0x180f56[_0x507f40(0x3e9)]({'cmd':F[_0x507f40(0x355)],'data':{'roomID':this[_0x507f40(0x412)]}}),(_0x4122a7=this[_0x507f40(0x1e1)])==null||_0x4122a7[_0x507f40(0x340)](),this[_0x507f40(0x3ce)][_0x507f40(0x3b2)](),this['_sessionStatus$'][_0x507f40(0x3b2)](),this[_0x507f40(0x363)]();}[_0x4b7416(0x352)](_0x667c0d){var _0x384849=_0x4b7416;_0x667c0d[_0x384849(0x383)]===F[_0x384849(0x300)]?this[_0x384849(0x3c3)](_0x667c0d):_0x667c0d[_0x384849(0x383)]===F[_0x384849(0x42b)]&&this[_0x384849(0x191)](_0x667c0d);}[_0x4b7416(0x294)](_0x2fc16b){var _0x14e35c=_0x4b7416;this['_sessionStatus$'][_0x14e35c(0x1b8)](0x1),_0x2fc16b['send']({'cmd':F[_0x14e35c(0x300)],'routeKey':this[_0x14e35c(0x412)],'routeType':'','data':{'rooms':[{'roomID':this[_0x14e35c(0x412)]}]}});}[_0x4b7416(0x3c3)](_0x49c59c){var _0x493c0f=_0x4b7416,_0x20c20d;if(_0x49c59c['code']in Yt){this[_0x493c0f(0x43a)][_0x493c0f(0x213)]({'id':se[_0x493c0f(0x2ba)],'data':Yt[_0x49c59c[_0x493c0f(0x25b)]]}),this[_0x493c0f(0x3bb)][_0x493c0f(0x1b8)](0x2);return;}this[_0x493c0f(0x3bb)][_0x493c0f(0x1b8)](0x3);const _0x268657=(_0x20c20d=_0x49c59c[_0x493c0f(0x19a)]['roomInfos'][this[_0x493c0f(0x412)]])==null?void 0x0:_0x20c20d['members'];_0x268657&&_0x268657[_0x493c0f(0x1d1)](_0x10d08b=>this[_0x493c0f(0x277)][_0x493c0f(0x21e)](this[_0x493c0f(0x412)],_0x10d08b));}[_0x4b7416(0x191)](_0x139e91){var _0x59b876=_0x4b7416;try{const _0x17c67b=_0x139e91[_0x59b876(0x19a)];switch(_0x17c67b['eventID']){case _0x424b4b[_0x59b876(0x25f)]:this['_onUserJoin'](_0x17c67b),this[_0x59b876(0x3ce)][_0x59b876(0x1b8)](_0x17c67b);break;case _0x424b4b[_0x59b876(0x1f0)]:this['_onUserLeave'](_0x17c67b),this[_0x59b876(0x3ce)][_0x59b876(0x1b8)](_0x17c67b);break;case _0x424b4b['CHANGESET_ACK']:case _0x424b4b[_0x59b876(0x179)]:this[_0x59b876(0x159)](),this[_0x59b876(0x276)](),this[_0x59b876(0x3ce)][_0x59b876(0x1b8)](_0x17c67b);break;case _0x424b4b[_0x59b876(0x28e)]:this[_0x59b876(0x38f)][_0x59b876(0x2bc)](_0x59b876(0x227)+JSON['stringify'](_0x17c67b)),this['_event$']['next'](_0x17c67b);break;case _0x424b4b[_0x59b876(0x2d6)]:this[_0x59b876(0x2c5)]['onCommentUpdate'](_0x17c67b['data']),this[_0x59b876(0x3ce)][_0x59b876(0x1b8)](_0x17c67b);break;default:this[_0x59b876(0x3ce)][_0x59b876(0x1b8)](_0x17c67b);}}catch(_0x13cf4d){this[_0x59b876(0x38f)][_0x59b876(0x2bc)](_0x13cf4d,_0x139e91);}}['_onUserJoin'](_0x390cbb){var _0x56bff4=_0x4b7416;this[_0x56bff4(0x277)][_0x56bff4(0x21e)](this['_unitID'],_0x390cbb['data']);}[_0x4b7416(0x247)](_0x4c4065){var _0x58454d=_0x4b7416;this['_memberService'][_0x58454d(0x268)](this[_0x58454d(0x412)],_0x4c4065[_0x58454d(0x19a)][_0x58454d(0x1ea)]);}async[_0x4b7416(0x3e9)](_0x1c1b30,_0x47cc46){var _0x3f9fc5=_0x4b7416;if(this[_0x3f9fc5(0x1d9)]!==0x3||!this['_socket'])throw new Error(_0x3f9fc5(0x1d3));try{_0x1c1b30[_0x3f9fc5(0x1f7)]===_0x424b4b['SUBMIT_CHANGESET']&&(this[_0x3f9fc5(0x353)](),this[_0x3f9fc5(0x188)](_0x1c1b30)),this['_socket']['send']({'cmd':F[_0x3f9fc5(0x1b5)],'routeKey':_0x47cc46,'routeType':'','data':_0x1c1b30});}catch(_0x2666ac){this[_0x3f9fc5(0x38f)][_0x3f9fc5(0x2bc)](_0x2666ac);}}[_0x4b7416(0x353)](){var _0x20867c=_0x4b7416,_0x135a0a;this[_0x20867c(0x3cd)]=setTimeout(()=>{var _0x4f7b11=_0x20867c;this['_collaborationTimeoutTimer']=null,this[_0x4f7b11(0x43a)][_0x4f7b11(0x213)]({'id':se[_0x4f7b11(0x222)]});},(_0x135a0a=this['_configService'][_0x20867c(0x40e)](Si))!=null?_0x135a0a:Ei);}[_0x4b7416(0x276)](){var _0x12e774=_0x4b7416;this[_0x12e774(0x3cd)]&&(clearTimeout(this[_0x12e774(0x3cd)]),this[_0x12e774(0x3cd)]=null);}[_0x4b7416(0x188)](_0x2f5b84){var _0x156373=_0x4b7416;if(!this[_0x156373(0x333)])return;const {data:_0x38db16}=_0x2f5b84,{unitID:_0x5a87f3,changeset:_0x509a2f}=_0x38db16,{mutations:_0x4ced9b,type:_0x3abd0b}=_0x509a2f;this[_0x156373(0x155)]={'unitId':_0x5a87f3,'type':_0x3abd0b,'startTime':performance[_0x156373(0x33a)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x4ced9b)};}['_stopTelemetryCollaborationNewChangeset'](){var _0x2ee15c=_0x4b7416;if(this[_0x2ee15c(0x333)]){if(!this['_telemetryInfo']){this[_0x2ee15c(0x38f)][_0x2ee15c(0x2bc)](_0x2ee15c(0x35e),_0x2ee15c(0x260));return;}this['_telemetryInfo']['stopTime']=performance[_0x2ee15c(0x33a)](),this[_0x2ee15c(0x155)]['duration']=this['_telemetryInfo']['stopTime']-this['_telemetryInfo'][_0x2ee15c(0x2aa)],this[_0x2ee15c(0x150)][_0x2ee15c(0x3c9)](Vn,this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x4b7416(0x2db)](){var _0x471ba4=_0x4b7416;this[_0x471ba4(0x155)]=null;}};It=Xn([me(0x2,_0x46cc09),me(0x3,_0x1218c6),me(0x4,_0x33e245(_0x377f39)),me(0x5,_0x33e245(xe)),me(0x6,_0x33e245(Ri)),me(0x7,_0x33e245(pe)),me(0x8,_0x30fb77(_0x5e9635))],It);var Zn=Object[_0x4b7416(0x2cb)],Qn=Object[_0x4b7416(0x26b)],er=(_0xf31670,_0x2f851e,_0x230d04,_0x4f955c)=>{var _0x12fcc1=_0x4b7416;for(var _0x484511=_0x4f955c>0x1?void 0x0:_0x4f955c?Qn(_0x2f851e,_0x230d04):_0x2f851e,_0x192b2e=_0xf31670[_0x12fcc1(0x39c)]-0x1,_0x3f9288;_0x192b2e>=0x0;_0x192b2e--)(_0x3f9288=_0xf31670[_0x192b2e])&&(_0x484511=(_0x4f955c?_0x3f9288(_0x2f851e,_0x230d04,_0x484511):_0x3f9288(_0x484511))||_0x484511);return _0x4f955c&&_0x484511&&Zn(_0x2f851e,_0x230d04,_0x484511),_0x484511;},ge=(_0x5beef9,_0x42a711)=>(_0x15e3b7,_0x4bf0c5)=>_0x42a711(_0x15e3b7,_0x4bf0c5,_0x5beef9);let Le=class extends _0x325afd{constructor(_0x5f1a3f,_0x292675,_0x43051f,_0x33ab6f,_0x38477f,_0x2f60f0,_0x45f041){var _0x282cf5=_0x4b7416;super(),N(this,_0x282cf5(0x3f4),new _0x4a0b1c(void 0x0)),N(this,_0x282cf5(0x186),this[_0x282cf5(0x3f4)][_0x282cf5(0x32c)]()),N(this,_0x282cf5(0x31e),null),N(this,_0x282cf5(0x1d2),new Map()),N(this,'_status$',new _0x4a0b1c(Te['IDLE'])),N(this,'status$',this[_0x282cf5(0x234)]['asObservable']()),N(this,_0x282cf5(0x257),!0x1),N(this,_0x282cf5(0x1c0)),N(this,_0x282cf5(0x17e),0x0),N(this,_0x282cf5(0x1e2)),N(this,_0x282cf5(0x3c2)),(this[_0x282cf5(0x3e3)]=_0x5f1a3f,this[_0x282cf5(0x38f)]=_0x292675,this[_0x282cf5(0x152)]=_0x43051f,this[_0x282cf5(0x405)]=_0x33ab6f,this['_httpService']=_0x38477f,this[_0x282cf5(0x43a)]=_0x2f60f0,this[_0x282cf5(0x162)]=_0x45f041,this[_0x282cf5(0x439)]());}get[_0x4b7416(0x1e1)](){var _0x1720ab=_0x4b7416;return this[_0x1720ab(0x3f4)][_0x1720ab(0x1a4)]();}[_0x4b7416(0x439)](){var _0x582aad=_0x4b7416;this['_networkConditionService']&&this[_0x582aad(0x20d)](this['_networkConditionService']['online$'][_0x582aad(0x435)](_0x56e641=>{var _0x25d4f8=_0x582aad;_0x56e641&&!this[_0x25d4f8(0x1e1)]&&this['reconnect'](),_0x56e641||this[_0x25d4f8(0x166)]();}));}[_0x4b7416(0x363)](){var _0x4b915e=_0x4b7416;super[_0x4b915e(0x363)](),this['_sessions']['forEach'](_0x31c2fa=>_0x31c2fa['dispose']()),this['_sessions'][_0x4b915e(0x29b)](),this[_0x4b915e(0x234)][_0x4b915e(0x3b2)]();}async[_0x4b7416(0x3fb)](_0x20656a){var _0xa0ff6d=_0x4b7416;if(this[_0xa0ff6d(0x1d2)][_0xa0ff6d(0x3e2)](_0x20656a))return this['_sessions'][_0xa0ff6d(0x279)](_0x20656a);this['_tryEnsureSocket']();const _0xac0aec=this[_0xa0ff6d(0x3e3)][_0xa0ff6d(0x2ff)](It,_0x20656a,this['_socket$']['asObservable']());return this['_sessions'][_0xa0ff6d(0x329)](_0x20656a,_0xac0aec),_0xac0aec;}['closeSession'](_0x21e597){var _0x1c3586=_0x4b7416,_0x22f520;const _0x5116b3=this[_0x1c3586(0x1d2)]['get'](_0x21e597);_0x5116b3&&(this[_0x1c3586(0x1d2)][_0x1c3586(0x3fd)](_0x21e597),_0x5116b3[_0x1c3586(0x340)]()),this['_sessions']['size']||(_0x22f520=this['_socket'])==null||_0x22f520['close']();}[_0x4b7416(0x331)](){var _0x750de4=_0x4b7416;this[_0x750de4(0x17e)]=0x0,this[_0x750de4(0x1c0)]!=null&&(clearTimeout(this[_0x750de4(0x1c0)]),this['_retryConnectingTimer']=null),this[_0x750de4(0x236)]();}async[_0x4b7416(0x1c7)](){var _0xf7c09=_0x4b7416,_0x54c849,_0x5bda49,_0x1262b7;const _0x246c4d=this['_configService'][_0xf7c09(0x40e)](q),_0x22c176=(_0x54c849=_0x246c4d==null?void 0x0:_0x246c4d['wsSessionTicketUrl'])!=null?_0x54c849:On;return(_0x1262b7=(_0x5bda49=(await this[_0xf7c09(0x15a)][_0xf7c09(0x279)](_0x22c176,{'headers':{'Content-Type':_0xf7c09(0x238)}}))['body'])==null?void 0x0:_0x5bda49[_0xf7c09(0x321)])!=null?_0x1262b7:'';}[_0x4b7416(0x349)](_0x521bbe){var _0x2e4599=_0x4b7416,_0x85fcd3,_0x13d167;const _0x5a56cf=this[_0x2e4599(0x152)]['getConfig'](Rn),_0x33bf8b=this[_0x2e4599(0x152)][_0x2e4599(0x40e)](q),_0x6bde5b=(_0x13d167=(_0x85fcd3=_0x33bf8b==null?void 0x0:_0x33bf8b[_0x2e4599(0x3f3)])!=null?_0x85fcd3:_0x5a56cf)!=null?_0x13d167:bn,_0xe5fd48=typeof window>'u'?new URL(_0x6bde5b):new URL(_0x6bde5b,window[_0x2e4599(0x2c4)][_0x2e4599(0x14f)]);_0xe5fd48[_0x2e4599(0x2b1)][_0x2e4599(0x329)](_0x2e4599(0x2d4),_0x521bbe);const _0x1a3432=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2e4599(0x2c4)]['search']);return _0x1a3432[_0x2e4599(0x279)](_0x2e4599(0x38d))&&_0xe5fd48[_0x2e4599(0x2b1)][_0x2e4599(0x329)](_0x2e4599(0x38d),_0x1a3432[_0x2e4599(0x279)](_0x2e4599(0x38d))),_0xe5fd48[_0x2e4599(0x148)]();}async['_createSocket'](){var _0x2ca33c=_0x4b7416;const _0x6e9c03=await this[_0x2ca33c(0x1c7)](),_0x4aa58b=this['_createSocketURL'](_0x6e9c03),_0x16062c=this[_0x2ca33c(0x405)]['createSocket'](_0x4aa58b);return this[_0x2ca33c(0x31e)]=_0x16062c,_0x16062c;}async[_0x4b7416(0x318)](){var _0x1b7ccc=_0x4b7416,_0x14fecc,_0x5d8663;try{const _0x19701b=(_0x5d8663=(_0x14fecc=this[_0x1b7ccc(0x1e1)])!=null?_0x14fecc:this[_0x1b7ccc(0x31e)])!=null?_0x5d8663:await this[_0x1b7ccc(0x19b)]();if(_0x19701b){const _0x4854dc=_0x19701b[_0x1b7ccc(0x3e9)];_0x19701b[_0x1b7ccc(0x3e9)]=_0x22ed74=>(this[_0x1b7ccc(0x36e)](),_0x4854dc['apply'](_0x19701b,[_0x22ed74])),_0x19701b[_0x1b7ccc(0x37c)][_0x1b7ccc(0x435)](_0x3fb12a=>this['_onMessage'](_0x19701b,_0x3fb12a)),_0x19701b[_0x1b7ccc(0x163)][_0x1b7ccc(0x182)](_0x5a9f4b(0x1))['subscribe'](_0x32e942=>this[_0x1b7ccc(0x38f)][_0x1b7ccc(0x2bc)]('[CollaborationSessionService]:\x20socket\x20error',_0x32e942)),_0x19701b['open$'][_0x1b7ccc(0x182)](_0x5a9f4b(0x1))[_0x1b7ccc(0x435)](()=>{var _0x3b30ac=_0x1b7ccc;this[_0x3b30ac(0x1fa)](_0x19701b);}),_0x19701b[_0x1b7ccc(0x399)]['pipe'](_0x5a9f4b(0x1))[_0x1b7ccc(0x435)](_0x5221ae=>{var _0x20384f=_0x1b7ccc;this[_0x20384f(0x38f)][_0x20384f(0x1c3)](_0x20384f(0x3f7),_0x20384f(0x303),_0x5221ae),this['_onConnectionFailed']();});}}catch(_0x3020e4){this[_0x1b7ccc(0x38f)][_0x1b7ccc(0x2bc)](_0x3020e4),this['_onConnectionFailed']();}}[_0x4b7416(0x1fa)](_0x3be0c9){var _0x213134=_0x4b7416;this[_0x213134(0x38f)][_0x213134(0x1c3)](_0x213134(0x3f7),_0x213134(0x1f3)),_0x3be0c9[_0x213134(0x3e9)]({'cmd':F[_0x213134(0x273)]}),this[_0x213134(0x36e)]();}[_0x4b7416(0x166)](){var _0x35ee82=_0x4b7416;this[_0x35ee82(0x257)]=!0x1,this[_0x35ee82(0x31e)]=null,this[_0x35ee82(0x234)]['next'](Te[_0x35ee82(0x252)]),this[_0x35ee82(0x3f4)]['next'](null),this[_0x35ee82(0x357)](),this[_0x35ee82(0x415)]();}[_0x4b7416(0x421)](){var _0x574556=_0x4b7416,_0x34fbae;this[_0x574556(0x166)](),this[_0x574556(0x17e)]<((_0x34fbae=this['_configService']['getConfig'](Pn))!=null?_0x34fbae:wn)?(this['_collaborationUIEventService'][_0x574556(0x213)]({'id':se[_0x574556(0x189)]}),this[_0x574556(0x236)]()):this['_collaborationUIEventService'][_0x574556(0x213)]({'id':se[_0x574556(0x26e)]});}[_0x4b7416(0x236)](){var _0x2e9790=_0x4b7416,_0x500d24;const _0xd01066=this['_retryCount'],_0x3a3bd8=this['_configService'][_0x2e9790(0x40e)](q),_0x177282=_0xd01066===0x0?0x0:((_0x500d24=_0x3a3bd8==null?void 0x0:_0x3a3bd8[_0x2e9790(0x1b6)])!=null?_0x500d24:Dn)*0x2**_0xd01066;this[_0x2e9790(0x1c0)]=setTimeout(()=>{var _0x5a8f9f=_0x2e9790;clearTimeout(this['_retryConnectingTimer']),this[_0x5a8f9f(0x1c0)]=null,this[_0x5a8f9f(0x318)]();},_0x177282),this[_0x2e9790(0x17e)]+=0x1;}[_0x4b7416(0x316)](_0x4fbfa1,_0x1da952){var _0x1086c5=_0x4b7416;const {cmd:_0x37573d}=_0x1da952;_0x37573d===F['HELLO']&&!this[_0x1086c5(0x257)]&&(_0x4fbfa1['memberID']=_0x1da952[_0x1086c5(0x19a)][_0x1086c5(0x1ea)],this[_0x1086c5(0x3f4)][_0x1086c5(0x1b8)](_0x4fbfa1),this[_0x1086c5(0x234)][_0x1086c5(0x1b8)](Te[_0x1086c5(0x3d1)]),this['_socketReady']=!0x0,this[_0x1086c5(0x31e)]=null),_0x37573d===F[_0x1086c5(0x28f)]&&this[_0x1086c5(0x357)](),this[_0x1086c5(0x36e)]();}[_0x4b7416(0x36e)](){var _0x41f3ed=_0x4b7416,_0x2bb08b;this[_0x41f3ed(0x415)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x41f3ed(0x1d0)](),(_0x2bb08b=this[_0x41f3ed(0x152)][_0x41f3ed(0x40e)](yn))!=null?_0x2bb08b:Nn);}[_0x4b7416(0x1d0)](){var _0x1d57a0=_0x4b7416;this[_0x1d57a0(0x1e1)][_0x1d57a0(0x3e9)]({'cmd':F['HEARTBEAT']}),this[_0x1d57a0(0x424)]();}[_0x4b7416(0x424)](){var _0x32ccb0=_0x4b7416,_0x23b87b;this[_0x32ccb0(0x3c2)]=setTimeout(()=>this[_0x32ccb0(0x421)](),(_0x23b87b=this[_0x32ccb0(0x152)]['getConfig'](Si))!=null?_0x23b87b:Ei);}['_clearHeartbeatTimer'](){var _0x34d033=_0x4b7416;this[_0x34d033(0x1e2)]!=null&&(clearTimeout(this[_0x34d033(0x1e2)]),this[_0x34d033(0x1e2)]=null);}[_0x4b7416(0x357)](){var _0x1e0bbe=_0x4b7416;this[_0x1e0bbe(0x3c2)]!=null&&(clearTimeout(this[_0x1e0bbe(0x3c2)]),this[_0x1e0bbe(0x3c2)]=null);}};Le=er([ge(0x0,_0x33e245(_0x5596e1)),ge(0x1,_0x46cc09),ge(0x2,_0x1218c6),ge(0x3,Ci),ge(0x4,_0x33e245(_0x313ce8)),ge(0x5,_0x33e245(pe)),ge(0x6,_0x30fb77(Mn))],Le);const V=[];for(let n=0x0;n<0x100;++n)V['push']((n+0x100)[_0x4b7416(0x148)](0x10)[_0x4b7416(0x367)](0x1));function tr(_0x597412,_0x25ef62=0x0){var _0x2275f5=_0x4b7416;return(V[_0x597412[_0x25ef62+0x0]]+V[_0x597412[_0x25ef62+0x1]]+V[_0x597412[_0x25ef62+0x2]]+V[_0x597412[_0x25ef62+0x3]]+'-'+V[_0x597412[_0x25ef62+0x4]]+V[_0x597412[_0x25ef62+0x5]]+'-'+V[_0x597412[_0x25ef62+0x6]]+V[_0x597412[_0x25ef62+0x7]]+'-'+V[_0x597412[_0x25ef62+0x8]]+V[_0x597412[_0x25ef62+0x9]]+'-'+V[_0x597412[_0x25ef62+0xa]]+V[_0x597412[_0x25ef62+0xb]]+V[_0x597412[_0x25ef62+0xc]]+V[_0x597412[_0x25ef62+0xd]]+V[_0x597412[_0x25ef62+0xe]]+V[_0x597412[_0x25ef62+0xf]])[_0x2275f5(0x386)]();}let ut;const ir=new Uint8Array(0x10);function nr(){var _0x38be65=_0x4b7416;if(!ut){if(typeof crypto>'u'||!crypto[_0x38be65(0x1a7)])throw new Error(_0x38be65(0x2ce));ut=crypto['getRandomValues']['bind'](crypto);}return ut(ir);}const rr=typeof crypto<'u'&&crypto['randomUUID']&&crypto['randomUUID']['bind'](crypto),qt={'randomUUID':rr};function sr(_0x10ce3c,_0x3377f5,_0x163868){var _0x3366b3=_0x4b7416,_0x1026f1,_0x5f3b5c,_0x1bbc2f;if(qt[_0x3366b3(0x1af)]&&!_0x10ce3c)return qt[_0x3366b3(0x1af)]();_0x10ce3c=_0x10ce3c||{};const _0x29f956=(_0x1bbc2f=(_0x5f3b5c=_0x10ce3c['random'])!=null?_0x5f3b5c:(_0x1026f1=_0x10ce3c[_0x3366b3(0x224)])==null?void 0x0:_0x1026f1[_0x3366b3(0x3f8)](_0x10ce3c))!=null?_0x1bbc2f:nr();if(_0x29f956['length']<0x10)throw new Error(_0x3366b3(0x3d6));return _0x29f956[0x6]=_0x29f956[0x6]&0xf|0x40,_0x29f956[0x8]=_0x29f956[0x8]&0x3f|0x80,tr(_0x29f956);}const J=_0x3009aa(_0x4b7416(0x1c6));function so(_0x3d0c20){var _0x514b61=_0x4b7416;return _0x514b61(0x2a3)+_0x3d0c20;}var or=Object[_0x4b7416(0x2cb)],ar=Object[_0x4b7416(0x26b)],cr=(_0x3b4779,_0x42214c,_0xdddad5,_0x20e6e9)=>{var _0x3df13c=_0x4b7416;for(var _0x584bb1=_0x20e6e9>0x1?void 0x0:_0x20e6e9?ar(_0x42214c,_0xdddad5):_0x42214c,_0x16e9ee=_0x3b4779[_0x3df13c(0x39c)]-0x1,_0x5372a0;_0x16e9ee>=0x0;_0x16e9ee--)(_0x5372a0=_0x3b4779[_0x16e9ee])&&(_0x584bb1=(_0x20e6e9?_0x5372a0(_0x42214c,_0xdddad5,_0x584bb1):_0x5372a0(_0x584bb1))||_0x584bb1);return _0x20e6e9&&_0x584bb1&&or(_0x42214c,_0xdddad5,_0x584bb1),_0x584bb1;},dt=(_0x12c5d1,_0x54379d)=>(_0x35f781,_0xa7f534)=>_0x54379d(_0x35f781,_0xa7f534,_0x12c5d1);function hr(_0x14db12){var _0x65f27d=_0x4b7416;const {unitID:_0x260d49,mutations:_0x496338}=_0x14db12;return{'unitId':_0x260d49,'subUnitId':_0x496338[0x0][_0x65f27d(0x228)][_0x65f27d(0x3eb)]};}let it=class{constructor(_0x2ef3c1,_0x30d292,_0x37ac0b){var _0x4e763e=_0x4b7416;this[_0x4e763e(0x3e3)]=_0x2ef3c1,this[_0x4e763e(0x24d)]=_0x30d292,this[_0x4e763e(0x31d)]=_0x37ac0b;}[_0x4b7416(0x20b)](_0x264cc8){var _0xd31a61=_0x4b7416,_0x3160b8,_0x47f9df,_0x4d1b50,_0xa515c6;const _0x39e485=this['_injector'][_0xd31a61(0x279)](_0x3c531e),{unitId:_0x7810fd,subUnitId:_0x2b302b}=hr(_0x264cc8),_0x558c7f=_0x39e485==null?void 0x0:_0x39e485[_0xd31a61(0x295)](_0x7810fd)['getCurrentSelections'](),_0x4db0eb=(_0x47f9df=(_0x3160b8=this['_instanceService'][_0xd31a61(0x13f)](_0x7810fd))==null?void 0x0:_0x3160b8[_0xd31a61(0x444)]())==null?void 0x0:_0x47f9df['getSheetId']();if(_0x558c7f[_0xd31a61(0x39c)]===0x0||!_0x7810fd||!_0x2b302b)return;const _0x1a00af=[{'id':_0xd89e59['id'],'params':{'unitId':_0x7810fd,'subUnitId':_0x4db0eb,'selections':_0x12b872[_0xd31a61(0x3c6)](_0x558c7f)}}],_0x14f39a=this[_0xd31a61(0x24d)][_0xd31a61(0x332)](_0x264cc8,_0x1a00af);if(!_0x3469f3(_0x14f39a))throw _0x14f39a[_0xd31a61(0x2bc)];const _0x342094=(_0xa515c6=(_0x4d1b50=_0x14f39a[_0xd31a61(0x3b1)][0x0])==null?void 0x0:_0x4d1b50[_0xd31a61(0x228)])==null?void 0x0:_0xa515c6[_0xd31a61(0x24e)];if(Array['isArray'](_0x342094)&&_0x342094[_0xd31a61(0x39c)]){if(_0x342094[_0xd31a61(0x39c)]===_0x1a00af[0x0][_0xd31a61(0x228)]['selections'][_0xd31a61(0x39c)]&&_0x342094[_0xd31a61(0x1c2)]((_0x2e4423,_0x48baff)=>_0x383a7d['equals'](_0x2e4423[_0xd31a61(0x361)],_0x1a00af[0x0][_0xd31a61(0x228)]['selections'][_0x48baff][_0xd31a61(0x361)])))return;this[_0xd31a61(0x3e3)][_0xd31a61(0x279)](_0x44e191)[_0xd31a61(0x437)](_0xd89e59['id'],{'unitId':_0x7810fd,'subUnitId':_0x4db0eb,'selections':_0x342094});}}};it=cr([dt(0x0,_0x33e245(_0x5596e1)),dt(0x1,_0x1186f3),dt(0x2,_0x280bc0)],it);const ht=_0x3009aa(_0x4b7416(0x144));var bi=(_0x55a1ff=>(_0x55a1ff[_0x55a1ff['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x4b7416(0x2e4),_0x55a1ff[_0x55a1ff[_0x4b7416(0x200)]=0x1]=_0x4b7416(0x200),_0x55a1ff))(bi||{});const _r=new Set([_0xe3eea5['id']]);function zt(_0xc7f92c,_0x44ef18,_0x25a59f,_0x4a233c,_0x3d4fe5){var _0x137f92=_0x4b7416,_0x2dc4c6,_0x1786ff,_0x4b5e1c,_0x27500a;const _0x5c5e41=[];for(const _0x344db5 of _0xc7f92c)if(_r[_0x137f92(0x3e2)](_0x344db5['id'])){if(_0x5c5e41['length']>0x0)break;_0x5c5e41[_0x137f92(0x2fa)](_0x344db5);break;}else _0x5c5e41['push'](_0x344db5);const _0x57c03e=(_0x1786ff=(_0x2dc4c6=_0x3d4fe5[_0x137f92(0x237)]())==null?void 0x0:_0x2dc4c6[_0x137f92(0x157)])!=null?_0x1786ff:_0x137f92(0x3fe),_0x170933=(_0x27500a=(_0x4b5e1c=_0x3d4fe5[_0x137f92(0x237)]())==null?void 0x0:_0x4b5e1c['memberID'])!=null?_0x27500a:_0x137f92(0x3fe);return{'changeset':{'unitID':_0x44ef18,'type':_0x2df773(_0x25a59f[_0x137f92(0x2a5)](_0x44ef18)),'baseRev':_0x4a233c[_0x137f92(0x264)](_0x44ef18),'revision':0x0,'userID':_0x57c03e,'memberID':_0x170933,'mutations':_0x5c5e41},'pendingMutations':_0xc7f92c[_0x137f92(0x367)](_0x5c5e41[_0x137f92(0x39c)])};}function lr(_0x3d4356,_0x1720e2,_0x3e0c00,_0x5a20a3,_0x6ab509){var _0x4bac0c=_0x4b7416,_0x53e571,_0xdcf354,_0x33437b,_0x52685d;const _0x306aee=[_0x3d4356[_0x4bac0c(0x422)]((_0x59be32,_0x1e7739)=>{var _0x7730bf=_0x4bac0c,_0x6e00e2;const {id:_0x592837}=_0x59be32,{id:_0x1467dd,type:_0x436b27}=_0x1e7739,_0x4f0d17=(_0x6e00e2=_0x59be32['params'])!=null?_0x6e00e2:{'actions':null},_0x574877=_0x1e7739['params'];if(_0x592837&&_0x592837!==_0x1467dd)throw new Error(_0x7730bf(0x180)+_0x592837+_0x7730bf(0x2bb)+_0x1467dd+'.');return{..._0x59be32,'id':_0x1467dd,'type':_0x436b27,'params':{'unitId':_0x574877[_0x7730bf(0x18c)],'textRanges':_0x574877[_0x7730bf(0x177)],'actions':_0x3eb9dc['compose'](_0x4f0d17[_0x7730bf(0x2b0)],_0x574877['actions'])}};},{})],_0x30d6b7=(_0xdcf354=(_0x53e571=_0x6ab509[_0x4bac0c(0x237)]())==null?void 0x0:_0x53e571[_0x4bac0c(0x157)])!=null?_0xdcf354:'unknown',_0x5da425=(_0x52685d=(_0x33437b=_0x6ab509[_0x4bac0c(0x237)]())==null?void 0x0:_0x33437b[_0x4bac0c(0x1ea)])!=null?_0x52685d:'unknown';return{'changeset':{'unitID':_0x1720e2,'type':_0x2df773(_0x3e0c00['getUnitType'](_0x1720e2)),'baseRev':_0x5a20a3[_0x4bac0c(0x264)](_0x1720e2),'revision':0x0,'userID':_0x30d6b7,'memberID':_0x5da425,'mutations':_0x306aee},'pendingMutations':[]};}function Oi(_0x53f4e1,_0x1da4b3){var _0x1871d8=_0x4b7416;const _0x231274=new _0x501bd8(0x1);return setTimeout(()=>_0x231274['next'](_0x1da4b3),_0x53f4e1),_0x231274['asObservable']()[_0x1871d8(0x182)](_0x2501f0(0x1));}const ur={'id':_0x44b477['id'],'type':_0x26c610[_0x4b7416(0x13d)],'params':{}};function _0x1bf9(_0x3db1da,_0x403d7b){var _0x1977fe=_0x1977();return _0x1bf9=function(_0x1bf974,_0x5bd875){_0x1bf974=_0x1bf974-0x13d;var _0x17a01d=_0x1977fe[_0x1bf974];return _0x17a01d;},_0x1bf9(_0x3db1da,_0x403d7b);}var dr=Object['defineProperty'],fr=Object[_0x4b7416(0x26b)],Re=(_0x458421,_0x185ec4,_0x3da567,_0xe6e8f1)=>{var _0x24fb7f=_0x4b7416;for(var _0x225fde=_0xe6e8f1>0x1?void 0x0:_0xe6e8f1?fr(_0x185ec4,_0x3da567):_0x185ec4,_0x1e0f3f=_0x458421[_0x24fb7f(0x39c)]-0x1,_0x555e5a;_0x1e0f3f>=0x0;_0x1e0f3f--)(_0x555e5a=_0x458421[_0x1e0f3f])&&(_0x225fde=(_0xe6e8f1?_0x555e5a(_0x185ec4,_0x3da567,_0x225fde):_0x555e5a(_0x225fde))||_0x225fde);return _0xe6e8f1&&_0x225fde&&dr(_0x185ec4,_0x3da567,_0x225fde),_0x225fde;},A=(_0x27ee73,_0x56ab0b)=>(_0x500ca3,_0x2e499b)=>_0x56ab0b(_0x500ca3,_0x2e499b,_0x27ee73),yi=(_0x44c858=>(_0x44c858[_0x4b7416(0x31c)]='not_collab',_0x44c858[_0x4b7416(0x3aa)]=_0x4b7416(0x31b),_0x44c858[_0x4b7416(0x346)]=_0x4b7416(0x183),_0x44c858['AWAITING']=_0x4b7416(0x3de),_0x44c858['AWAITING_WITH_PENDING']=_0x4b7416(0x387),_0x44c858[_0x4b7416(0x1d7)]=_0x4b7416(0x371),_0x44c858[_0x4b7416(0x31f)]='conflict',_0x44c858['OFFLINE']=_0x4b7416(0x2da),_0x44c858))(yi||{});const Ni=0xea60;class be{constructor(_0x235f00,_0x420e82,_0x1d2037,_0x990a43,_0x5a1ae3,_0x191d6b,_0x13450e,_0x59b709,_0xbc35f2){var _0x4952de=_0x4b7416;N(this,_0x4952de(0x18a),null),N(this,_0x4952de(0x225),[]),(this[_0x4952de(0x311)]=_0x235f00,this[_0x4952de(0x38e)]=_0x420e82,this['_handler']=_0x5a1ae3,this[_0x4952de(0x30e)]=_0x191d6b,this[_0x4952de(0x33c)]=_0x13450e,this[_0x4952de(0x39f)]=_0x59b709,this[_0x4952de(0x341)]=_0xbc35f2,this['_awaitingChangeset']=_0x1d2037,this[_0x4952de(0x225)]=_0x990a43);}[_0x4b7416(0x2a1)](_0x58f1d0){var _0x5a9391=_0x4b7416;const _0x2f3f5f=this[_0x5a9391(0x39f)][_0x5a9391(0x264)](this[_0x5a9391(0x311)]);return _0x58f1d0[_0x5a9391(0x297)]>_0x2f3f5f+0x1?(this[_0x5a9391(0x14a)][_0x5a9391(0x39d)]({'from':_0x2f3f5f,'to':_0x58f1d0[_0x5a9391(0x297)]-0x1}),!0x0):!0x1;}[_0x4b7416(0x2ea)](_0x45983c){var _0x448ae4=_0x4b7416;this[_0x448ae4(0x33c)]['transformUndoRedo'](this[_0x448ae4(0x311)],_0x45983c);}[_0x4b7416(0x372)](_0x3ee462){var _0x3c3ce=_0x4b7416,_0x431ece,_0x22af9b;(_0x22af9b=(_0x431ece=this[_0x3c3ce(0x14a)])[_0x3c3ce(0x35f)])==null||_0x22af9b['call'](_0x431ece,_0x3ee462);}[_0x4b7416(0x25a)](_0x58e08b){var _0x5e20b7=_0x4b7416,_0xdc714b,_0x22e131;return(_0x22e131=(_0xdc714b=this[_0x5e20b7(0x14a)])[_0x5e20b7(0x1cd)])==null?void 0x0:_0x22e131[_0x5e20b7(0x3f8)](_0xdc714b,_0x58e08b);}[_0x4b7416(0x430)](_0x19de7e){var _0x334b7f=_0x4b7416,_0x3472fc,_0x140325;return(_0x140325=(_0x3472fc=this[_0x334b7f(0x14a)])[_0x334b7f(0x1d4)])==null?void 0x0:_0x140325['call'](_0x3472fc,_0x19de7e);}[_0x4b7416(0x42f)](_0x100aa9){var _0x4983af=_0x4b7416,_0x229eea,_0x3cc930,_0x51e223;return(_0x51e223=(_0x3cc930=(_0x229eea=this[_0x4983af(0x14a)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3cc930[_0x4983af(0x3f8)](_0x229eea,_0x100aa9))!=null?_0x51e223:_0x100aa9;}[_0x4b7416(0x2b5)](_0x5e4b02){var _0x52a88c=_0x4b7416,_0x53a9e1,_0x10ae6d,_0x547ec9;return(_0x547ec9=(_0x10ae6d=(_0x53a9e1=this[_0x52a88c(0x14a)])[_0x52a88c(0x2c3)])==null?void 0x0:_0x10ae6d[_0x52a88c(0x3f8)](_0x53a9e1,_0x5e4b02))!=null?_0x547ec9:_0x5e4b02;}[_0x4b7416(0x27a)](_0x373418){var _0x133fff=_0x4b7416,_0x3bd39e,_0x44fdcd;if(this['type']===Q[_0x133fff(0x3a9)]){const {unitID:_0x2aaf06,mutations:_0x4bbe45,memberID:_0x1d2258}=_0x373418,_0x3a013b=_0x4bbe45[0x0]['params'][_0x133fff(0x177)];Array[_0x133fff(0x39a)](_0x3a013b)&&_0x3a013b[_0x133fff(0x39c)]>0x0&&((_0x44fdcd=(_0x3bd39e=this[_0x133fff(0x14a)])[_0x133fff(0x32a)])==null||_0x44fdcd[_0x133fff(0x3f8)](_0x3bd39e,{'unitID':_0x2aaf06,'memberID':_0x1d2258,'textRanges':_0x3a013b}));}}['_updateLocalCache'](){var _0x127c27=_0x4b7416,_0x1945da;(_0x1945da=this[_0x127c27(0x341)])==null||_0x1945da[_0x127c27(0x21b)](this[_0x127c27(0x311)],this[_0x127c27(0x38e)],this[_0x127c27(0x18a)],this[_0x127c27(0x225)]);}['_getCurrentRevision'](){var _0x55d4cb=_0x4b7416;return this[_0x55d4cb(0x39f)][_0x55d4cb(0x264)](this[_0x55d4cb(0x311)]);}[_0x4b7416(0x42d)](){var _0x38e9ec=_0x4b7416;this[_0x38e9ec(0x39f)][_0x38e9ec(0x2ad)](this['unitID']);}[_0x4b7416(0x147)](_0x19b606){var _0x169636=_0x4b7416,_0x8d5aa7;let _0x10009f=this[_0x169636(0x42f)](_0x19b606);_0x10009f=this[_0x169636(0x2b5)](_0x10009f);const _0x5a92cf=_0x156deb(_0x10009f['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x5a92cf[_0x169636(0x1bc)])throw _0x5a92cf[_0x169636(0x2bc)]instanceof Error?_0x5a92cf['error']:new Error((_0x8d5aa7=_0x5a92cf[_0x169636(0x2bc)])!=null?_0x8d5aa7:_0x169636(0x20e));this[_0x169636(0x25a)](_0x10009f),this[_0x169636(0x430)](_0x10009f),this['_transformUndoredo'](_0x19b606),this['_transformSelections'](_0x10009f),this[_0x169636(0x27a)](_0x10009f),this[_0x169636(0x42d)]();}}let De=class extends be{constructor(_0x16add7,_0x528c8e,_0x510b2e,_0x455cd8,_0x8ad8fa,_0x1f1d5c,_0x3094f4,_0x23763d,_0x2c3a29,_0x4a286a){var _0x54276f=_0x4b7416;super(_0x16add7,_0x528c8e,null,[],_0x510b2e,_0x3094f4,_0x1f1d5c,_0x455cd8,_0x4a286a),N(this,_0x54276f(0x2ca),'synced'),(this[_0x54276f(0x3e3)]=_0x8ad8fa,this[_0x54276f(0x38f)]=_0x23763d,this[_0x54276f(0x24d)]=_0x2c3a29,this['localCacheService']=_0x4a286a);}[_0x4b7416(0x2f1)](_0x48c46d){var _0x1ff7b3=_0x4b7416;const _0x18fe3d=this['_injector'][_0x1ff7b3(0x2ff)](oe,this[_0x1ff7b3(0x311)],this['type'],[_0x48c46d],this[_0x1ff7b3(0x14a)]);return _0x18fe3d[_0x1ff7b3(0x2d8)](),_0x18fe3d[_0x1ff7b3(0x17c)](),_0x18fe3d;}[_0x4b7416(0x41e)](_0x2a87ff){var _0x909d7=_0x4b7416;if(this['_checkMissing'](_0x2a87ff))return this[_0x909d7(0x3e3)][_0x909d7(0x2ff)](te,this[_0x909d7(0x311)],this[_0x909d7(0x38e)],null,[],null,[_0x2a87ff],this[_0x909d7(0x14a)]);try{const _0x3a7668=this[_0x909d7(0x24d)]['transformMutationsWithChangeset'](_0x2a87ff,[ur]);if(_0x3469f3(_0x3a7668)){const {c1Prime:_0xede0f4}=_0x3a7668;return this['_executeRemoteChangeset'](_0xede0f4),this;}throw _0x3a7668[_0x909d7(0x2bc)];}catch(_0x3be447){return this[_0x909d7(0x38f)]['error'](_0x3be447),this[_0x909d7(0x2ae)](!0x1);}}[_0x4b7416(0x2ae)](_0x59fd8d){var _0x3ed034=_0x4b7416;return this['_injector'][_0x3ed034(0x2ff)](de,this[_0x3ed034(0x311)],this[_0x3ed034(0x38e)],null,[],this[_0x3ed034(0x14a)],_0x59fd8d);}['onRemoteAck'](){var _0x2863a0=_0x4b7416;throw new Error(_0x2863a0(0x2e5));}[_0x4b7416(0x41d)](){var _0x5a7941=_0x4b7416;throw new Error(_0x5a7941(0x1fb));}['onRemoteRetry'](){return this;}['toggleOffline'](){var _0x28c30f=_0x4b7416;return this[_0x28c30f(0x3e3)][_0x28c30f(0x2ff)](fe,this[_0x28c30f(0x311)],this['type'],null,[],this[_0x28c30f(0x14a)]);}['toggleOnline'](){return this;}[_0x4b7416(0x173)](){var _0x2c1261=_0x4b7416;throw new Error(_0x2c1261(0x1dc));}[_0x4b7416(0x336)](){var _0x16c979=_0x4b7416;const _0x5e2753=this[_0x16c979(0x39f)]['getCurrentRevOfUnit'](this[_0x16c979(0x311)]);return this[_0x16c979(0x14a)][_0x16c979(0x39d)]({'from':_0x5e2753,'to':0x0}),this[_0x16c979(0x3e3)][_0x16c979(0x2ff)](te,this['unitID'],this[_0x16c979(0x38e)],null,[],null,[],this['_handler']);}};De=Re([A(0x3,_0x33e245(_0x4d1984)),A(0x4,_0x33e245(_0x5596e1)),A(0x5,_0x1e3c7e),A(0x6,_0x44e191),A(0x7,_0x46cc09),A(0x8,_0x1186f3),A(0x9,_0x30fb77(J))],De);let oe=class extends be{constructor(_0x1b6293,_0x58e3f8,_0x149cf6,_0xd17ab4,_0x4dcb82,_0x3639c1,_0x18227e,_0x39ab8a,_0xc8edc1,_0x3e658f,_0x2e82cf,_0xa00be6,_0x458258,_0x480d7f){var _0x18095d=_0x4b7416;super(_0x1b6293,_0x58e3f8,null,_0x149cf6,_0xd17ab4,_0xc8edc1,_0x458258,_0x3639c1,_0x480d7f),N(this,_0x18095d(0x2ca),_0x18095d(0x183)),N(this,_0x18095d(0x1a8),null),N(this,_0x18095d(0x1f6),null),(this[_0x18095d(0x3e3)]=_0x4dcb82,this[_0x18095d(0x277)]=_0x18227e,this[_0x18095d(0x38f)]=_0x39ab8a,this[_0x18095d(0x152)]=_0x3e658f,this[_0x18095d(0x24d)]=_0x2e82cf,this[_0x18095d(0x3cb)]=_0xa00be6);}['appendMutation'](_0x54dd1d){var _0x35a7f7=_0x4b7416;return this[_0x35a7f7(0x225)][_0x35a7f7(0x2fa)](_0x54dd1d),this[_0x35a7f7(0x17c)](),this;}[_0x4b7416(0x41e)](_0x2d65ef){var _0x83ee1b=_0x4b7416;if(this['_checkMissing'](_0x2d65ef))return this[_0x83ee1b(0x3b9)](),this[_0x83ee1b(0x3e3)][_0x83ee1b(0x2ff)](te,this[_0x83ee1b(0x311)],this[_0x83ee1b(0x38e)],null,this[_0x83ee1b(0x225)],null,[_0x2d65ef],this[_0x83ee1b(0x14a)]);try{const _0x1c82e9=this[_0x83ee1b(0x24d)]['transformMutationsWithChangeset'](_0x2d65ef,this[_0x83ee1b(0x225)]);if(_0x3469f3(_0x1c82e9)){const {c1Prime:_0x23f0d3,m2Prime:_0x483ed1}=_0x1c82e9;this[_0x83ee1b(0x147)](_0x23f0d3);const _0x4684f5=this[_0x83ee1b(0x3e3)]['createInstance'](oe,this[_0x83ee1b(0x311)],this[_0x83ee1b(0x38e)],_0x483ed1,this[_0x83ee1b(0x14a)]);this['_clearScheduledTask']();const _0x24e69b=new Date()[_0x83ee1b(0x2d9)](),_0x1260d8=this[_0x83ee1b(0x1a8)]?Math[_0x83ee1b(0x32e)](this[_0x83ee1b(0x1a8)]-_0x24e69b,0x0):this[_0x83ee1b(0x2dc)]();return _0x4684f5['_schedule'](_0x1260d8),_0x4684f5;}throw _0x1c82e9['error'];}catch(_0x27ed95){return this['_logService']['error'](_0x27ed95),this[_0x83ee1b(0x2ae)](!0x1);}}[_0x4b7416(0x21c)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x4b7416(0x41d)](){var _0x5ab1db=_0x4b7416;throw new Error(_0x5ab1db(0x330));}['onRemoteRetry'](){return this;}[_0x4b7416(0x25e)](){var _0x44412a=_0x4b7416;return this['_clearScheduledTask'](),this['_injector'][_0x44412a(0x2ff)](fe,this[_0x44412a(0x311)],this[_0x44412a(0x38e)],null,this['_pendingMutations'],this[_0x44412a(0x14a)]);}['toggleOnline'](){return this;}[_0x4b7416(0x2d8)](_0x2e7d41){var _0x39887a=_0x4b7416;const _0xe6bdaa=_0x2e7d41!=null?_0x2e7d41:this[_0x39887a(0x2dc)]();this[_0x39887a(0x1a8)]=new Date()['getTime']()+_0xe6bdaa,this[_0x39887a(0x1f6)]=setTimeout(()=>{var _0x23e16f=_0x39887a;this[_0x23e16f(0x3b9)]();let _0x1d78cc=null;switch(this[_0x23e16f(0x38e)]){case Q[_0x23e16f(0x409)]:{_0x1d78cc=zt(this[_0x23e16f(0x225)],this[_0x23e16f(0x311)],this[_0x23e16f(0x3cb)],this['_revisionService'],this['_memberService']);break;}case Q[_0x23e16f(0x3a9)]:{this[_0x23e16f(0x225)][_0x23e16f(0x1c2)](_0x4acfae=>_0x4acfae['id']===_0x3b7e98['id'])?_0x1d78cc=lr(this[_0x23e16f(0x225)],this[_0x23e16f(0x311)],this[_0x23e16f(0x3cb)],this[_0x23e16f(0x39f)],this[_0x23e16f(0x277)]):_0x1d78cc=zt(this[_0x23e16f(0x225)],this[_0x23e16f(0x311)],this[_0x23e16f(0x3cb)],this[_0x23e16f(0x39f)],this['_memberService']);break;}default:throw new Error(_0x23e16f(0x1ae)+this[_0x23e16f(0x38e)]+_0x23e16f(0x3b0));}const {changeset:_0x55d31e,pendingMutations:_0x10ce93}=_0x1d78cc;this['_handler']['onSendChangeset'](_0x55d31e);const _0x3d5789=_0x10ce93['length']?this['_injector'][_0x23e16f(0x2ff)](ae,this['unitID'],this['type'],_0x55d31e,_0x10ce93,this[_0x23e16f(0x14a)],void 0x0):this[_0x23e16f(0x3e3)]['createInstance'](ue,this[_0x23e16f(0x311)],this[_0x23e16f(0x38e)],_0x55d31e,this[_0x23e16f(0x14a)]);_0x3d5789[_0x23e16f(0x17c)](),this[_0x23e16f(0x14a)]['onStateChange'](this,_0x3d5789);},_0xe6bdaa);}[_0x4b7416(0x2dc)](){var _0x202e28=_0x4b7416,_0x7d8a7e;const _0x598a62=this[_0x202e28(0x152)][_0x202e28(0x40e)](q);return(_0x7d8a7e=_0x598a62==null?void 0x0:_0x598a62[_0x202e28(0x3ea)])!=null?_0x7d8a7e:Cn;}[_0x4b7416(0x173)](){var _0x3ee31f=_0x4b7416;throw new Error(_0x3ee31f(0x2d5));}[_0x4b7416(0x3b9)](){var _0x5d180f=_0x4b7416;this[_0x5d180f(0x1f6)]!=null&&(clearTimeout(this[_0x5d180f(0x1f6)]),this[_0x5d180f(0x1f6)]=null);}[_0x4b7416(0x2ae)](_0x1e6a24){var _0x1fd7dc=_0x4b7416;return this[_0x1fd7dc(0x3b9)](),this['_injector'][_0x1fd7dc(0x2ff)](de,this['unitID'],this['type'],null,this[_0x1fd7dc(0x225)],this[_0x1fd7dc(0x14a)],_0x1e6a24);}};oe=Re([A(0x4,_0x33e245(_0x5596e1)),A(0x5,_0x33e245(_0x4d1984)),A(0x6,_0x33e245(xe)),A(0x7,_0x46cc09),A(0x8,_0x44e191),A(0x9,_0x1218c6),A(0xa,_0x1186f3),A(0xb,_0x280bc0),A(0xc,_0x1e3c7e),A(0xd,_0x30fb77(J))],oe);let ue=class extends be{constructor(_0x5ddc8c,_0x17091f,_0x212ccd,_0x10a258,_0x21f807,_0x28a464,_0x5747d1,_0x4cb6cc,_0x13c602,_0x313312,_0x148691){var _0x278347=_0x4b7416;super(_0x5ddc8c,_0x17091f,_0x212ccd,[],_0x10a258,_0x5747d1,_0x313312,_0x28a464,_0x148691),N(this,'status',_0x278347(0x3de)),N(this,'_resendTimeout',0x0),N(this,'_resendTimer'),N(this,_0x278347(0x3a7)),(this['_injector']=_0x21f807,this[_0x278347(0x38f)]=_0x4cb6cc,this[_0x278347(0x24d)]=_0x13c602);}[_0x4b7416(0x2f1)](_0x32e3f8){var _0x5e1a24=_0x4b7416;this[_0x5e1a24(0x3b9)]();const _0x4bdb82=this[_0x5e1a24(0x3e3)][_0x5e1a24(0x2ff)](ae,this[_0x5e1a24(0x311)],this[_0x5e1a24(0x38e)],this[_0x5e1a24(0x18a)],[_0x32e3f8],this[_0x5e1a24(0x14a)],this[_0x5e1a24(0x42a)]);return _0x4bdb82['_updateLocalCache'](),_0x4bdb82;}[_0x4b7416(0x41e)](_0x1df51f){var _0x53d4d0=_0x4b7416;if(this[_0x53d4d0(0x2a1)](_0x1df51f))return this[_0x53d4d0(0x3b9)](),this[_0x53d4d0(0x3e3)][_0x53d4d0(0x2ff)](te,this[_0x53d4d0(0x311)],this[_0x53d4d0(0x38e)],this[_0x53d4d0(0x18a)],[],null,[_0x1df51f],this[_0x53d4d0(0x14a)]);try{const _0x42b810=this['_transformService'][_0x53d4d0(0x43e)]([_0x1df51f],[this['_awaitingChangeset']],!0x1);if(_0x3fcc9a(_0x42b810)){const {c1Prime:_0x525d95,c2Prime:_0x7c3c2e}=_0x42b810;this[_0x53d4d0(0x147)](_0x525d95[0x0]),_0x7c3c2e[0x0][_0x53d4d0(0x2ec)]=this[_0x53d4d0(0x18e)](),this[_0x53d4d0(0x3b9)]();const _0x7093ba=this['_injector'][_0x53d4d0(0x2ff)](ue,this[_0x53d4d0(0x311)],this[_0x53d4d0(0x38e)],_0x7c3c2e[0x0],this[_0x53d4d0(0x14a)]);return _0x7093ba[_0x53d4d0(0x17c)](),_0x7093ba;}return this[_0x53d4d0(0x2ae)](!0x1);}catch(_0x2a0686){return this[_0x53d4d0(0x38f)][_0x53d4d0(0x2bc)](_0x2a0686),this[_0x53d4d0(0x2ae)](!0x1);}}['onRemoteAck'](_0x433c18){var _0x15115c=_0x4b7416;this[_0x15115c(0x3b9)]();const _0x549b55=this[_0x15115c(0x39f)][_0x15115c(0x264)](this[_0x15115c(0x311)]);if(_0x433c18[_0x15115c(0x297)]<_0x549b55-0x1)return this;if(this[_0x15115c(0x2a1)](_0x433c18))return this[_0x15115c(0x3e3)]['createInstance'](te,this[_0x15115c(0x311)],this[_0x15115c(0x38e)],null,[],this[_0x15115c(0x18a)],[],this[_0x15115c(0x14a)]);this[_0x15115c(0x42d)]();const _0x3f20c3=this[_0x15115c(0x3e3)][_0x15115c(0x2ff)](De,this[_0x15115c(0x311)],this[_0x15115c(0x38e)],this[_0x15115c(0x14a)]);return _0x3f20c3[_0x15115c(0x17c)](),_0x3f20c3;}[_0x4b7416(0x41d)](_0x204be0){var _0x39f43b=_0x4b7416;return this[_0x39f43b(0x2ae)](!!(_0x204be0!=null&&_0x204be0[_0x39f43b(0x18f)]));}['onRemoteRetry'](_0x53e648){var _0x59a41d=_0x4b7416;return this['_resendTimeout']>Ni?this['toggleOffline']():(this[_0x59a41d(0x42a)]=Oi(this[_0x59a41d(0x1d6)],{'timeout':this['_resendTimeout'],'reqId':_0x53e648[_0x59a41d(0x34d)]}),this[_0x59a41d(0x3a7)]=this[_0x59a41d(0x42a)][_0x59a41d(0x435)](({reqId:_0xf2f4d1,timeout:_0x4bb16f})=>{var _0x458c51=_0x59a41d;this[_0x458c51(0x32b)](_0xf2f4d1,_0x4bb16f);}),this);}[_0x4b7416(0x25e)](){var _0x41ead3=_0x4b7416;return this[_0x41ead3(0x3b9)](),this[_0x41ead3(0x3e3)]['createInstance'](fe,this[_0x41ead3(0x311)],this[_0x41ead3(0x38e)],this[_0x41ead3(0x18a)],[],this['_handler']);}[_0x4b7416(0x397)](){return this;}[_0x4b7416(0x173)](){var _0x4e2873=_0x4b7416;this[_0x4e2873(0x14a)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x4b7416(0x2ae)](_0x66187){var _0x14e37f=_0x4b7416;return this['_clearScheduledTask'](),this[_0x14e37f(0x3e3)][_0x14e37f(0x2ff)](de,this[_0x14e37f(0x311)],this[_0x14e37f(0x38e)],this[_0x14e37f(0x18a)],[],this[_0x14e37f(0x14a)],_0x66187);}[_0x4b7416(0x32b)](_0x53c1d8,_0x1c012b){var _0x5100ec=_0x4b7416,_0x43bb24;_0x53c1d8===((_0x43bb24=this[_0x5100ec(0x18a)])==null?void 0x0:_0x43bb24['reqId'])&&(this['resend'](),this[_0x5100ec(0x1d6)]=_0x1c012b===0x0?0x3e8:_0x1c012b*0x2);}['_clearScheduledTask'](){var _0x34b96c=_0x4b7416,_0x4a65c4;(_0x4a65c4=this['_sender'])==null||_0x4a65c4['unsubscribe'](),this[_0x34b96c(0x1d6)]=0x0;}};ue=Re([A(0x4,_0x33e245(_0x5596e1)),A(0x5,_0x33e245(_0x4d1984)),A(0x6,_0x44e191),A(0x7,_0x46cc09),A(0x8,_0x1186f3),A(0x9,_0x1e3c7e),A(0xa,_0x30fb77(J))],ue);let ae=class extends be{constructor(_0x1e241e,_0x561cfe,_0x43d97f,_0x49c671,_0x4562ee,_0xea37b2,_0x4db9d9,_0x50f139,_0x591423,_0x24a76b,_0x1a62f7,_0x4e48a4,_0x4e7c0e){var _0x2732ee=_0x4b7416;super(_0x1e241e,_0x561cfe,_0x43d97f,_0x49c671,_0x4562ee,_0x591423,_0x4e48a4,_0x50f139,_0x4e7c0e),N(this,_0x2732ee(0x2ca),_0x2732ee(0x387)),N(this,'_resendTimeout',0x0),N(this,'_resendTimer'),N(this,_0x2732ee(0x3a7)),(this['_injector']=_0x4db9d9,this[_0x2732ee(0x38f)]=_0x24a76b,this[_0x2732ee(0x24d)]=_0x1a62f7,this['localCacheService']=_0x4e7c0e,_0xea37b2&&(this[_0x2732ee(0x42a)]=_0xea37b2,this[_0x2732ee(0x3a7)]=this[_0x2732ee(0x42a)]['subscribe'](({reqId:_0x1e011c,timeout:_0x41b4a9})=>{this['_resendWithTimeout'](_0x1e011c,_0x41b4a9);})));}['appendMutation'](_0x355f0d){var _0x1c6f48=_0x4b7416;return this[_0x1c6f48(0x225)][_0x1c6f48(0x2fa)](_0x355f0d),this;}[_0x4b7416(0x41e)](_0x38aea8){var _0x24091c=_0x4b7416;if(this[_0x24091c(0x2a1)](_0x38aea8))return this[_0x24091c(0x3b9)](),this[_0x24091c(0x3e3)]['createInstance'](te,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x24091c(0x225)],null,[_0x38aea8],this[_0x24091c(0x14a)]);try{const _0x277978=this['_transformService']['transformChangesets']([_0x38aea8],[this[_0x24091c(0x18a)]],!0x1);if(_0x3fcc9a(_0x277978)){const {c1Prime:_0x52bd12,c2Prime:_0x2b7f77}=_0x277978,_0x25d61a=this[_0x24091c(0x24d)][_0x24091c(0x332)](_0x52bd12[0x0],this[_0x24091c(0x225)]);if(_0x3469f3(_0x25d61a)){const {c1Prime:_0x2e8ac3,m2Prime:_0x43722d}=_0x25d61a;return this[_0x24091c(0x147)](_0x2e8ac3),_0x2b7f77[0x0][_0x24091c(0x2ec)]=this[_0x24091c(0x18e)](),this[_0x24091c(0x3b9)](),this[_0x24091c(0x3e3)][_0x24091c(0x2ff)](ae,this['unitID'],this['type'],_0x2b7f77[0x0],_0x43722d,this[_0x24091c(0x14a)],void 0x0);}throw _0x25d61a['error'];}throw _0x277978[_0x24091c(0x2bc)];}catch(_0x2094e7){return this[_0x24091c(0x38f)][_0x24091c(0x2bc)](_0x2094e7),this[_0x24091c(0x2ae)](!0x1);}}[_0x4b7416(0x21c)](_0x136891){var _0x4672c9=_0x4b7416;if(this['_clearScheduledTask'](),this['_checkMissing'](_0x136891))return this[_0x4672c9(0x3e3)][_0x4672c9(0x2ff)](te,this[_0x4672c9(0x311)],this['type'],null,this[_0x4672c9(0x225)],this[_0x4672c9(0x18a)],[],this[_0x4672c9(0x14a)]);this[_0x4672c9(0x42d)]();const _0x37e8b2=this[_0x4672c9(0x3e3)][_0x4672c9(0x2ff)](oe,this[_0x4672c9(0x311)],this[_0x4672c9(0x38e)],this[_0x4672c9(0x225)],this['_handler']);return _0x37e8b2[_0x4672c9(0x2d8)](),_0x37e8b2[_0x4672c9(0x17c)](),_0x37e8b2;}['onRemoteRej'](_0x155c09){var _0x7753d6=_0x4b7416;return this[_0x7753d6(0x2ae)](!!(_0x155c09!=null&&_0x155c09['isPermissionRej']));}[_0x4b7416(0x3ca)](_0x4e1329){var _0xb76f8d=_0x4b7416;return this[_0xb76f8d(0x1d6)]>Ni?this[_0xb76f8d(0x25e)]():(this[_0xb76f8d(0x42a)]=Oi(this[_0xb76f8d(0x1d6)],{'timeout':this[_0xb76f8d(0x1d6)],'reqId':_0x4e1329[_0xb76f8d(0x34d)]}),this['_sender']=this[_0xb76f8d(0x42a)][_0xb76f8d(0x435)](({reqId:_0x229f89,timeout:_0x101f2d})=>{var _0x5b0700=_0xb76f8d;this[_0x5b0700(0x32b)](_0x229f89,_0x101f2d);}),this);}[_0x4b7416(0x25e)](){var _0x586c71=_0x4b7416;return this[_0x586c71(0x3b9)](),this['_injector'][_0x586c71(0x2ff)](fe,this[_0x586c71(0x311)],this['type'],this[_0x586c71(0x18a)],this[_0x586c71(0x225)],this['_handler']);}[_0x4b7416(0x397)](){return this;}[_0x4b7416(0x173)](){var _0x4bace9=_0x4b7416;this['_handler'][_0x4bace9(0x178)](this[_0x4bace9(0x18a)]);}[_0x4b7416(0x2ae)](_0x537917){var _0x405462=_0x4b7416;return this[_0x405462(0x3b9)](),this[_0x405462(0x3e3)][_0x405462(0x2ff)](de,this['unitID'],this[_0x405462(0x38e)],null,this[_0x405462(0x225)],this['_handler'],_0x537917);}['_resendWithTimeout'](_0x58e6b6,_0x99c240){var _0x53cc42=_0x4b7416,_0x4041f3;_0x58e6b6===((_0x4041f3=this[_0x53cc42(0x18a)])==null?void 0x0:_0x4041f3['reqId'])&&(this[_0x53cc42(0x173)](),this[_0x53cc42(0x1d6)]=_0x99c240===0x0?0x3e8:_0x99c240*0x2);}[_0x4b7416(0x3b9)](){var _0x5e5a15=_0x4b7416,_0x2aa193;(_0x2aa193=this[_0x5e5a15(0x3a7)])==null||_0x2aa193[_0x5e5a15(0x219)](),this[_0x5e5a15(0x1d6)]=0x0;}};ae=Re([A(0x6,_0x33e245(_0x5596e1)),A(0x7,_0x33e245(_0x4d1984)),A(0x8,_0x44e191),A(0x9,_0x46cc09),A(0xa,_0x1186f3),A(0xb,_0x1e3c7e),A(0xc,_0x30fb77(J))],ae);let de=class extends be{constructor(_0x283c04,_0x81b36f,_0x23a44e,_0x4cdde6,_0x2b5e97,_0x430427=!0x1,_0x198c5c,_0x80b8af,_0x307f65,_0x2d5917,_0x1903b3,_0x13f02e,_0x51e0b9){var _0x3f3302=_0x4b7416;super(_0x283c04,_0x81b36f,_0x23a44e,_0x4cdde6,_0x2b5e97,_0x80b8af,_0x307f65,_0x2d5917,_0x51e0b9),N(this,_0x3f3302(0x2ca),_0x3f3302(0x42c)),(this[_0x3f3302(0x23f)]=_0x430427,this[_0x3f3302(0x3cc)]=_0x198c5c,this[_0x3f3302(0x1f1)]=_0x1903b3,this[_0x3f3302(0x43a)]=_0x13f02e,this[_0x3f3302(0x1a2)]=_0x51e0b9,this[_0x3f3302(0x342)](),this[_0x3f3302(0x3da)](),this[_0x3f3302(0x3a2)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4b7416(0x21c)](){return this;}[_0x4b7416(0x41d)](){return this;}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x4b7416(0x397)](){return this;}[_0x4b7416(0x173)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4b7416(0x3da)](){var _0x1da166=_0x4b7416,_0x298b57;(_0x298b57=this[_0x1da166(0x341)])==null||_0x298b57[_0x1da166(0x21b)](this['unitID'],this[_0x1da166(0x38e)],null,[]);}[_0x4b7416(0x342)](){var _0x9ebe06=_0x4b7416;this[_0x9ebe06(0x23f)]?this[_0x9ebe06(0x43a)]['emitEvent']({'id':se['PERMISSION_DENIED']}):this['_collaborationUIEventService'][_0x9ebe06(0x213)]({'id':se[_0x9ebe06(0x31f)]});}[_0x4b7416(0x3a2)](){var _0x3ade4d=_0x4b7416;this['_permissionService'][_0x3ade4d(0x282)](new _0x2e755a(this[_0x3ade4d(0x311)])['id'],!0x1);}};de=Re([A(0x6,_0x33e245(_0x3d23e7)),A(0x7,_0x44e191),A(0x8,_0x1e3c7e),A(0x9,_0x33e245(_0x4d1984)),A(0xa,_0x33e245(_0x377f39)),A(0xb,_0x33e245(pe)),A(0xc,_0x30fb77(J))],de);let fe=class extends be{constructor(_0x3a3e84,_0x174b73,_0xa606b,_0x9c2d96,_0x2675bd,_0x373f4,_0x415efe,_0x423bc8,_0x358f2c,_0x43d7a5){var _0x297138=_0x4b7416;super(_0x3a3e84,_0x174b73,_0xa606b,_0x9c2d96,_0x2675bd,_0x423bc8,_0x358f2c,_0x415efe,_0x43d7a5),N(this,_0x297138(0x2ca),_0x297138(0x2da)),this[_0x297138(0x3e3)]=_0x373f4;}['appendMutation'](_0x3c4870){var _0x2d9d39=_0x4b7416;return this[_0x2d9d39(0x225)]['push'](_0x3c4870),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x38fd99){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x4b7416(0x21c)](){var _0x23f391=_0x4b7416;throw new Error(_0x23f391(0x23c));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x4b7416(0x3ca)](){return this;}[_0x4b7416(0x25e)](){return this;}[_0x4b7416(0x397)](){var _0x2014f1=_0x4b7416;const {_injector:_0xbbdde5,_pendingMutations:_0x39e5df,_awaitingChangeset:_0x3e2fa0,unitID:_0x11bff2,_handler:_0x28bdb0,type:_0x4e2ed7}=this,_0x3ce0dc=Di(_0xbbdde5,_0x11bff2,_0x4e2ed7,_0x3e2fa0,_0x39e5df,_0x28bdb0);return _0x3ce0dc instanceof oe?_0x3ce0dc[_0x2014f1(0x2d8)]():(_0x3ce0dc instanceof ae||_0x3ce0dc instanceof ue)&&_0x3ce0dc['resend'](),_0x3ce0dc;}['resend'](){var _0x5751f6=_0x4b7416;throw new Error(_0x5751f6(0x3e6));}};fe=Re([A(0x5,_0x33e245(_0x5596e1)),A(0x6,_0x33e245(_0x4d1984)),A(0x7,_0x44e191),A(0x8,_0x1e3c7e),A(0x9,_0x30fb77(J))],fe);let te=class extends be{constructor(_0x3ebdf2,_0x5d3ed9,_0x1928e6,_0x1cbc58,_0x33b4e3,_0x59a155,_0x42752d,_0xea3377,_0xd7dee8,_0x27c507,_0x4a239a,_0x3dda8f,_0x477222,_0x20facf){var _0xc68f1b=_0x4b7416;super(_0x3ebdf2,_0x5d3ed9,_0x1928e6,_0x1cbc58,_0x42752d,_0x4a239a,_0x3dda8f,_0xd7dee8,_0x20facf),N(this,_0xc68f1b(0x2ca),_0xc68f1b(0x371)),(this[_0xc68f1b(0x1ca)]=_0x33b4e3,this[_0xc68f1b(0x1e8)]=_0x59a155,this[_0xc68f1b(0x3e3)]=_0xea3377,this[_0xc68f1b(0x38f)]=_0x27c507,this[_0xc68f1b(0x24d)]=_0x477222,this[_0xc68f1b(0x1a2)]=_0x20facf);}[_0x4b7416(0x2a7)](_0x24e1a8){var _0xd5ceda=_0x4b7416;try{const _0x1c8abe=[..._0x24e1a8,...this['_queuedRemoteChangesets']],_0x2f9d58=[this[_0xd5ceda(0x18a)]||this['_acknowledgedAwaitingChangeset']][_0xd5ceda(0x2c9)](_0x345526=>!!_0x345526);let _0x3c3e16,_0x67bb7a;if(_0x2f9d58['length']){const _0x40afba=this[_0xd5ceda(0x24d)][_0xd5ceda(0x43e)](_0x1c8abe,_0x2f9d58,!0x1);if(!_0x3fcc9a(_0x40afba))throw _0x40afba[_0xd5ceda(0x2bc)];_0x3c3e16=_0x40afba[_0xd5ceda(0x3bc)],_0x67bb7a=_0x40afba[_0xd5ceda(0x2f0)];}else _0x3c3e16=_0x1c8abe,_0x67bb7a=[];let _0x28810c=this['_pendingMutations'];_0x3c3e16[_0xd5ceda(0x1d1)](_0x1e6fe7=>{var _0x2d74c3=_0xd5ceda;let _0x2e8b90;if(_0x28810c[_0x2d74c3(0x39c)]){const _0x2fe1ce=this[_0x2d74c3(0x24d)][_0x2d74c3(0x332)](_0x1e6fe7,_0x28810c);if(!_0x3469f3(_0x2fe1ce))throw _0x2fe1ce[_0x2d74c3(0x2bc)];_0x2e8b90=_0x2fe1ce['c1Prime'],_0x28810c=_0x2fe1ce['m2Prime'];}else _0x2e8b90=_0x1e6fe7;this[_0x2d74c3(0x147)](_0x2e8b90);}),this[_0xd5ceda(0x1ca)]&&this['_incrementRevisionNumber'](),this[_0xd5ceda(0x18a)]&&_0x67bb7a[_0xd5ceda(0x39c)]&&(_0x67bb7a[0x0]['baseRev']=this[_0xd5ceda(0x18e)]());let _0x31bf4;if(this[_0xd5ceda(0x18a)]&&_0x28810c[_0xd5ceda(0x39c)]!==0x0)_0x31bf4=this[_0xd5ceda(0x3e3)][_0xd5ceda(0x2ff)](ae,this['unitID'],this[_0xd5ceda(0x38e)],_0x67bb7a[0x0],_0x28810c,this[_0xd5ceda(0x14a)],void 0x0);else{if(this[_0xd5ceda(0x18a)]&&_0x28810c[_0xd5ceda(0x39c)]===0x0)_0x67bb7a[0x0][_0xd5ceda(0x2ec)]=this['_getCurrentRevision'](),_0x31bf4=this[_0xd5ceda(0x3e3)][_0xd5ceda(0x2ff)](ue,this[_0xd5ceda(0x311)],this[_0xd5ceda(0x38e)],_0x67bb7a[0x0],this[_0xd5ceda(0x14a)]);else{if(_0x28810c[_0xd5ceda(0x39c)]!==0x0){const _0x19381d=this['_injector'][_0xd5ceda(0x2ff)](oe,this[_0xd5ceda(0x311)],this['type'],_0x28810c,this[_0xd5ceda(0x14a)]);_0x19381d['_schedule'](),_0x31bf4=_0x19381d;}else _0x31bf4=this[_0xd5ceda(0x3e3)][_0xd5ceda(0x2ff)](De,this[_0xd5ceda(0x311)],this['type'],this[_0xd5ceda(0x14a)]);}}return _0x31bf4[_0xd5ceda(0x17c)](),_0x31bf4;}catch(_0x45b7dc){return this[_0xd5ceda(0x38f)]['error'](_0xd5ceda(0x15d),_0xd5ceda(0x1a5),_0x45b7dc),this['_injector'][_0xd5ceda(0x2ff)](de,this[_0xd5ceda(0x311)],this[_0xd5ceda(0x38e)],this[_0xd5ceda(0x18a)],this['_pendingMutations'],this[_0xd5ceda(0x14a)],!0x1);}}[_0x4b7416(0x173)](){var _0x53a4e8=_0x4b7416;throw new Error(_0x53a4e8(0x35b));}['appendMutation'](_0x3737a4){var _0x53a584=_0x4b7416;return this['_pendingMutations'][_0x53a584(0x2fa)](_0x3737a4),this;}[_0x4b7416(0x41e)](_0x1c0c93){var _0xdd1235=_0x4b7416;return this[_0xdd1235(0x1e8)]['push'](_0x1c0c93),this;}['onRemoteAck'](_0x9ab6c2){var _0x1e3f2d=_0x4b7416;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this[_0x1e3f2d(0x18a)],this[_0x1e3f2d(0x18a)]=null,this;throw new Error(_0x1e3f2d(0x37b));}[_0x4b7416(0x41d)](_0x4d4900){var _0x238146=_0x4b7416;return this[_0x238146(0x2ae)](!!(_0x4d4900!=null&&_0x4d4900['isPermissionRej']));}[_0x4b7416(0x3ca)](){return this;}[_0x4b7416(0x25e)](){var _0x50bf5c=_0x4b7416;return this[_0x50bf5c(0x3e3)][_0x50bf5c(0x2ff)](fe,this['unitID'],this['type'],this[_0x50bf5c(0x18a)],this['_pendingMutations'],this['_handler']);}[_0x4b7416(0x397)](){return this;}[_0x4b7416(0x2ae)](_0x302dd2){var _0x4a3e94=_0x4b7416;return this[_0x4a3e94(0x3e3)][_0x4a3e94(0x2ff)](de,this[_0x4a3e94(0x311)],this[_0x4a3e94(0x38e)],this[_0x4a3e94(0x18a)],this[_0x4a3e94(0x225)],this['_handler'],_0x302dd2);}};te=Re([A(0x7,_0x33e245(_0x5596e1)),A(0x8,_0x33e245(_0x4d1984)),A(0x9,_0x46cc09),A(0xa,_0x44e191),A(0xb,_0x1e3c7e),A(0xc,_0x1186f3),A(0xd,_0x30fb77(J))],te);function Di(_0x5b76c5,_0x829c17,_0x5015d2,_0x267075,_0x3fe8b9,_0x46b40c){var _0x278957=_0x4b7416;return _0x267075&&_0x3fe8b9['length']?_0x5b76c5[_0x278957(0x2ff)](ae,_0x829c17,_0x5015d2,_0x267075,_0x3fe8b9,_0x46b40c,void 0x0):_0x267075?_0x5b76c5[_0x278957(0x2ff)](ue,_0x829c17,_0x5015d2,_0x267075,_0x46b40c):_0x3fe8b9[_0x278957(0x39c)]?_0x5b76c5[_0x278957(0x2ff)](oe,_0x829c17,_0x5015d2,_0x3fe8b9,_0x46b40c):_0x5b76c5[_0x278957(0x2ff)](De,_0x829c17,_0x5015d2,_0x46b40c);}var vr=Object['defineProperty'],pr=Object['getOwnPropertyDescriptor'],Lt=(_0x1b894f,_0x3688e4,_0x13ddcc,_0x7c92de)=>{for(var _0x141216=_0x7c92de>0x1?void 0x0:_0x7c92de?pr(_0x3688e4,_0x13ddcc):_0x3688e4,_0x179099=_0x1b894f['length']-0x1,_0x95c8f1;_0x179099>=0x0;_0x179099--)(_0x95c8f1=_0x1b894f[_0x179099])&&(_0x141216=(_0x7c92de?_0x95c8f1(_0x3688e4,_0x13ddcc,_0x141216):_0x95c8f1(_0x141216))||_0x141216);return _0x7c92de&&_0x141216&&vr(_0x3688e4,_0x13ddcc,_0x141216),_0x141216;},k=(_0x1debf2,_0x5f0462)=>(_0x31fc72,_0x4dafff)=>_0x5f0462(_0x31fc72,_0x4dafff,_0x1debf2);let nt=class extends _0x1ebecf{constructor(_0x2ac996,_0x4ad7b9,_0x232ce4,_0x4c671a,_0x3f53c4,_0x1fc542,_0x1d0ed2,_0x509672,_0x109bb8,_0x5440ea,_0x5095ce,_0x2a15ce,_0x348a51){var _0x10241d=_0x4b7416;super(),N(this,_0x10241d(0x2d0),new _0x4a0b1c(null)),N(this,_0x10241d(0x3bd),this[_0x10241d(0x2d0)][_0x10241d(0x32c)]()),N(this,_0x10241d(0x41f)),N(this,_0x10241d(0x1a0),!0x1),N(this,'_changesetSessionId',''),N(this,_0x10241d(0x38a),0x0),N(this,_0x10241d(0x34f),this[_0x10241d(0x3bd)][_0x10241d(0x182)](_0x5b8ccd(_0x1b1311=>_0x1b1311?_0x1b1311[_0x10241d(0x2ca)]:yi['OFFLINE']),_0x1e81c2(0x1))),N(this,_0x10241d(0x1da),!0x1),N(this,_0x10241d(0x22a),[]),(this[_0x10241d(0x311)]=_0x2ac996,this[_0x10241d(0x1cf)]=_0x4ad7b9,this[_0x10241d(0x34c)]=_0x232ce4,this[_0x10241d(0x3e3)]=_0x4c671a,this[_0x10241d(0x3d3)]=_0x3f53c4,this[_0x10241d(0x1f1)]=_0x1fc542,this[_0x10241d(0x39f)]=_0x1d0ed2,this[_0x10241d(0x3a3)]=_0x509672,this['_logService']=_0x109bb8,this[_0x10241d(0x30e)]=_0x5440ea,this[_0x10241d(0x3cc)]=_0x5095ce,this['_singleActiveUnitService']=_0x2a15ce,this[_0x10241d(0x341)]=_0x348a51);}get[_0x4b7416(0x3e7)](){var _0x59cc69=_0x4b7416;return this[_0x59cc69(0x41f)];}async[_0x4b7416(0x390)](){var _0x30388c=_0x4b7416;if(this[_0x30388c(0x3e7)])throw new Error(_0x30388c(0x2d1));await this[_0x30388c(0x22d)]();}[_0x4b7416(0x293)](){return this['_collaborationPaused']=!0x0,_0x2f82a7(()=>{var _0x2955fe=_0x1bf9;this['_collaborationPaused']=!0x1,this[_0x2955fe(0x40f)]();});}[_0x4b7416(0x2cd)](_0x321b54){var _0x5f4e40=_0x4b7416;this[_0x5f4e40(0x3af)](_0x321b54);}['_updateState'](_0x6fb375){var _0x430659=_0x4b7416;this[_0x430659(0x41f)]=_0x6fb375,this[_0x430659(0x2d0)]['next'](_0x6fb375);}async[_0x4b7416(0x22d)](){var _0x17c595=_0x4b7416,_0x501365;this[_0x17c595(0x21f)](await this[_0x17c595(0x239)]()),this['_singleActiveUnitService']&&((_0x501365=this[_0x17c595(0x2d3)])==null||_0x501365[_0x17c595(0x394)](this['unitID']),this[_0x17c595(0x20d)](this['_singleActiveUnitService'][_0x17c595(0x434)](this['unitID'])['subscribe'](_0x55a7b7=>{var _0x246f48=_0x17c595;this[_0x246f48(0x38f)]['debug'](_0x246f48(0x290),'editing\x20status\x20changed\x20to',_0x55a7b7),_0x55a7b7===bi[_0x246f48(0x200)]?(this[_0x246f48(0x3a3)][_0x246f48(0x213)]({'id':se[_0x246f48(0x3ae)]}),this[_0x246f48(0x3cc)][_0x246f48(0x282)](new _0x2e755a(this[_0x246f48(0x311)])['id'],!0x1),this[_0x246f48(0x3cc)][_0x246f48(0x3d9)](!0x1)):(this['_permissionService']['updatePermissionPoint'](new _0x2e755a(this[_0x246f48(0x311)])['id'],!0x0),this[_0x246f48(0x3cc)][_0x246f48(0x3d9)](!0x0));})));let _0x299aec=!0x1;return this['disposeWithMe'](this[_0x17c595(0x1cf)]['sessionStatus$'][_0x17c595(0x435)](_0x5104c6=>{var _0x1ee073=_0x17c595;_0x5104c6===Te[_0x1ee073(0x3d1)]?this[_0x1ee073(0x308)](_0x299aec):_0x5104c6===Te[_0x1ee073(0x252)]&&(_0x299aec=!0x0,this[_0x1ee073(0x2cf)]());})),this[_0x17c595(0x20d)](this[_0x17c595(0x1cf)][_0x17c595(0x2ee)][_0x17c595(0x435)](_0x3bb93b=>{var _0x340330=_0x17c595;try{switch(_0x3bb93b[_0x340330(0x1f7)]){case _0x424b4b[_0x340330(0x37a)]:{this[_0x340330(0x3f0)](_0x4c3c85(_0x3bb93b[_0x340330(0x19a)]));break;}case _0x424b4b[_0x340330(0x2fe)]:{this['_onRemoteACK'](_0x3bb93b['data']);break;}case _0x424b4b[_0x340330(0x3d2)]:{this[_0x340330(0x156)]();break;}case _0x424b4b[_0x340330(0x179)]:{this[_0x340330(0x388)](_0x3bb93b[_0x340330(0x19a)]);break;}case _0x424b4b['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x340330(0x1b1)](_0x3bb93b[_0x340330(0x19a)][_0x340330(0x35a)]['map'](_0x428562=>_0x4c3c85(_0x428562)));break;}case _0x424b4b['PERMISSION_REJ']:{this['_onRemoteRejected']({'isPermissionRej':!0x0});break;}case _0x424b4b['UNISCRIPT_RUN']:break;}}catch(_0x20a8c1){throw console[_0x340330(0x2bc)](_0x340330(0x13e),_0x20a8c1),_0x20a8c1;}})),this[_0x17c595(0x41f)];}[_0x4b7416(0x19d)](){this['_transitionLocked']=!0x1;}[_0x4b7416(0x26d)](){var _0x4ec92d=_0x4b7416;if(this['_transitionLocked'])throw new Error(_0x4ec92d(0x358));this[_0x4ec92d(0x1da)]=!0x0;}['_onLocalMutation'](_0x53236d){var _0x50b908=_0x4b7416;this[_0x50b908(0x26d)](),this[_0x50b908(0x21f)](this[_0x50b908(0x41f)][_0x50b908(0x2f1)](_0x53236d)),this[_0x50b908(0x19d)]();}[_0x4b7416(0x3f0)](_0x129a44){var _0x38587e=_0x4b7416;if(!(_0x129a44[_0x38587e(0x297)]<=this[_0x38587e(0x39f)][_0x38587e(0x264)](this['unitID']))){if(this[_0x38587e(0x1a0)]){this['_remoteChangesetQueue'][_0x38587e(0x2fa)](_0x129a44);return;}this['_applyRemoteChangeset'](_0x129a44);}}[_0x4b7416(0x40f)](){var _0x50ee70=_0x4b7416;this[_0x50ee70(0x22a)][_0x50ee70(0x1d1)](_0x45451a=>this['_applyRemoteChangeset'](_0x45451a)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x45985e){var _0x485b2c=_0x4b7416;const _0x441a04=this[_0x485b2c(0x3d3)][_0x485b2c(0x223)][_0x485b2c(0x307)](this[_0x485b2c(0x3d3)][_0x485b2c(0x223)]['getInterceptPoints']()[_0x485b2c(0x35c)])(_0x45985e[_0x485b2c(0x40a)],null)||_0x45985e[_0x485b2c(0x40a)],_0x467be3={..._0x45985e,'mutations':_0x441a04};this[_0x485b2c(0x26d)](),this[_0x485b2c(0x21f)](this[_0x485b2c(0x41f)]['onRemoteChangeset'](_0x467be3)),this[_0x485b2c(0x19d)]();}[_0x4b7416(0x269)](_0x27b054){var _0x5b07b6=_0x4b7416;this[_0x5b07b6(0x26d)](),this[_0x5b07b6(0x21f)](this[_0x5b07b6(0x41f)][_0x5b07b6(0x21c)](_0x27b054)),this[_0x5b07b6(0x19d)]();}[_0x4b7416(0x156)](_0x45649e){var _0x336fd8=_0x4b7416;this['_lockTransition'](),this[_0x336fd8(0x21f)](this['_state'][_0x336fd8(0x41d)](_0x45649e)),this[_0x336fd8(0x19d)]();}['_onRemoteRetry'](_0x48fd6d){var _0x196e75=_0x4b7416;this[_0x196e75(0x26d)](),this[_0x196e75(0x21f)](this[_0x196e75(0x41f)]['onRemoteRetry'](_0x48fd6d)),this[_0x196e75(0x19d)]();}[_0x4b7416(0x1b1)](_0x5eea48){var _0x27af22=_0x4b7416;if(!(this['_state']instanceof te))throw new TypeError(_0x27af22(0x2ef));const _0x1855e8=_0x5eea48[_0x27af22(0x378)](_0x318fe5=>{var _0x5cff05=_0x27af22;const _0x930ffd=this[_0x5cff05(0x3d3)][_0x5cff05(0x223)][_0x5cff05(0x307)](this[_0x5cff05(0x3d3)][_0x5cff05(0x223)][_0x5cff05(0x3e5)]()[_0x5cff05(0x35c)])(_0x318fe5[_0x5cff05(0x40a)],null)||_0x318fe5[_0x5cff05(0x40a)];return{..._0x318fe5,'mutations':_0x930ffd};});this[_0x27af22(0x26d)](),this[_0x27af22(0x21f)](this[_0x27af22(0x41f)]['onMissedChangesetFetched'](_0x1855e8)),this[_0x27af22(0x19d)]();}[_0x4b7416(0x2cf)](){var _0x4ff9b8=_0x4b7416;this['_lockTransition'](),this[_0x4ff9b8(0x21f)](this[_0x4ff9b8(0x41f)]['toggleOffline']()),this[_0x4ff9b8(0x19d)]();}['_toggleOnline'](_0x288e51=!0x1){var _0x2076b2=_0x4b7416;this['_lockTransition'](),this['_updateState'](this[_0x2076b2(0x41f)]['toggleOnline']()),this['_unlockTransition']();const _0x13283a=this[_0x2076b2(0x41f)];_0x288e51&&_0x13283a instanceof De&&(this['_lockTransition'](),this[_0x2076b2(0x21f)](_0x13283a[_0x2076b2(0x336)]()),this[_0x2076b2(0x19d)]());}async[_0x4b7416(0x239)](){return new Promise(_0x315372=>{var _0x2c1a18=_0x1bf9;this[_0x2c1a18(0x1cf)][_0x2c1a18(0x27d)][_0x2c1a18(0x182)](_0x2501f0(0x1))['subscribe'](async _0x2c623c=>{var _0x3a59d9=_0x2c1a18;_0x315372(await this[_0x3a59d9(0x43f)](_0x2c623c===Te[_0x3a59d9(0x3d1)]));});});}[_0x4b7416(0x190)](){var _0x40139b=_0x4b7416;const _0x4f94e0=this[_0x40139b(0x311)];return{'onStateChange':(_0x401a49,_0x367147)=>{var _0x56e65d=_0x40139b;if(_0x401a49!==this[_0x56e65d(0x41f)])throw new Error(_0x56e65d(0x267)+_0x401a49[_0x56e65d(0x2ca)]+'\x0aAfter:\x20'+_0x367147[_0x56e65d(0x2ca)]+_0x56e65d(0x30f)+this['_state']['status']);this['_updateState'](_0x367147);},'onSendChangeset':_0x465b9f=>{var _0x1b142a=_0x40139b;_0x465b9f[_0x1b142a(0x428)]||(_0x465b9f[_0x1b142a(0x428)]=this['_changesetSessionId'],_0x465b9f[_0x1b142a(0x34d)]=++this[_0x1b142a(0x38a)]);const _0x42535f={'eventID':_0x424b4b[_0x1b142a(0x3f5)],'data':{'unitID':_0x465b9f[_0x1b142a(0x311)],'unitType':this[_0x1b142a(0x34c)],'changeset':_0x465b9f,'memberID':this[_0x1b142a(0x1cf)][_0x1b142a(0x360)]()}};this[_0x1b142a(0x1cf)][_0x1b142a(0x3e9)](_0x42535f,this[_0x1b142a(0x311)]);},'onMissingChangesets':({from:_0xe12841,to:_0x352e53})=>{var _0x44dfda=_0x40139b;this[_0x44dfda(0x38f)][_0x44dfda(0x1c3)](_0x44dfda(0x290),_0x44dfda(0x391)+_0xe12841+_0x44dfda(0x271)+_0x352e53);const _0x4fed90={'eventID':_0x424b4b[_0x44dfda(0x199)],'data':{'unitID':_0x4f94e0,'unitType':this[_0x44dfda(0x34c)],'from':_0xe12841,'to':_0x352e53}};this['session'][_0x44dfda(0x3e9)](_0x4fed90,this[_0x44dfda(0x311)]);}};}async[_0x4b7416(0x43f)](_0x4de9dd){var _0x28daf6=_0x4b7416,_0x1e0a63,_0x183f9d,_0x3f8984;const _0x40b88b=await((_0x1e0a63=this['_localCacheService'])==null?void 0x0:_0x1e0a63['loadOfflineData'](this[_0x28daf6(0x311)])),_0x21bd3e=(_0x183f9d=_0x40b88b==null?void 0x0:_0x40b88b[_0x28daf6(0x40a)])!=null?_0x183f9d:[],_0x496932=(_0x3f8984=_0x40b88b==null?void 0x0:_0x40b88b[_0x28daf6(0x34e)])!=null?_0x3f8984:null,_0x2c70f6=!!(_0x496932!=null&&_0x496932[_0x28daf6(0x428)])&&!!(_0x496932!=null&&_0x496932['reqId']);this[_0x28daf6(0x2a8)]=_0x2c70f6?_0x496932[_0x28daf6(0x428)]:sr(),this[_0x28daf6(0x38a)]=_0x2c70f6?_0x496932[_0x28daf6(0x34d)]:0x0;const _0x21ed0e=this[_0x28daf6(0x311)];try{this['_replayCachedMutations'](_0x496932,_0x21bd3e);}catch(_0x1d4603){this[_0x28daf6(0x38f)]['error'](_0x1d4603);}const _0x2c1fbb=this[_0x28daf6(0x190)]();if(_0x4de9dd){const _0x1aebe2=Di(this[_0x28daf6(0x3e3)],_0x21ed0e,this[_0x28daf6(0x34c)],_0x496932,_0x21bd3e,_0x2c1fbb);return _0x1aebe2 instanceof oe?_0x1aebe2[_0x28daf6(0x2d8)]():(_0x1aebe2 instanceof ae||_0x1aebe2 instanceof ue)&&_0x1aebe2['resend'](),_0x1aebe2;}return this[_0x28daf6(0x3e3)][_0x28daf6(0x2ff)](fe,_0x21ed0e,this['_type'],_0x496932,_0x21bd3e,_0x2c1fbb);}[_0x4b7416(0x176)](_0x566eff,_0x5bc520){var _0x18331b=_0x4b7416,_0x1fd63f,_0x2dd348;const _0x2db606=this[_0x18331b(0x3d3)][_0x18331b(0x223)][_0x18331b(0x307)](this[_0x18331b(0x3d3)]['interceptor'][_0x18331b(0x3e5)]()[_0x18331b(0x35c)]);(_0x1fd63f=_0x2db606((_0x566eff==null?void 0x0:_0x566eff[_0x18331b(0x40a)])||[],null))==null||_0x1fd63f['forEach'](_0x2d83b4=>this[_0x18331b(0x30e)]['executeCommand'](_0x2d83b4['id'],_0x2d83b4[_0x18331b(0x228)])),(_0x2dd348=_0x2db606(_0x5bc520||[],null))==null||_0x2dd348['forEach'](_0xef3ee2=>this['_commandService'][_0x18331b(0x437)](_0xef3ee2['id'],_0xef3ee2[_0x18331b(0x228)]));}};nt=Lt([k(0x3,_0x33e245(_0x5596e1)),k(0x4,_0x33e245(_0x2628bf)),k(0x5,_0x33e245(_0x377f39)),k(0x6,_0x33e245(_0x4d1984)),k(0x7,_0x33e245(pe)),k(0x8,_0x46cc09),k(0x9,_0x44e191),k(0xa,_0x3d23e7),k(0xb,_0x30fb77(ht)),k(0xc,_0x30fb77(J))],nt);let Tt=class extends nt{constructor(_0x44c397,_0x292ce2,_0x1d9d11,_0x48e36b,_0x234fec,_0x209898,_0x1bb6c8,_0x2b9284,_0x52d36d,_0xcff403,_0x2a14f7,_0x331564,_0x188a2c){var _0x4f0153=_0x4b7416;super(_0x44c397,_0x1d9d11,_0x292ce2,_0x48e36b,_0x234fec,_0x209898,_0x1bb6c8,_0x2b9284,_0x52d36d,_0xcff403,_0x2a14f7,_0x331564,_0x188a2c),N(this,_0x4f0153(0x359),null),(this[_0x4f0153(0x311)]=_0x44c397,this[_0x4f0153(0x38e)]=_0x292ce2);}['addHandlerCallback'](_0x49a12b){this['_handlerCallback']=_0x49a12b;}[_0x4b7416(0x363)](){var _0x286053=_0x4b7416;this[_0x286053(0x359)]=null,super[_0x286053(0x363)]();}['_createHandler'](){var _0x427563=_0x4b7416;const _0x3e9ecd=super['_createHandler']();return _0x3e9ecd[_0x427563(0x1cd)]=_0x2dd852=>{var _0x468d5f=_0x427563,_0x470036,_0x7d6275;return(_0x7d6275=(_0x470036=this['_handlerCallback'])==null?void 0x0:_0x470036[_0x468d5f(0x1cd)])==null?void 0x0:_0x7d6275[_0x468d5f(0x3f8)](_0x470036,_0x2dd852);},_0x3e9ecd[_0x427563(0x1d4)]=_0x5076b8=>{var _0xc2ecc2=_0x427563,_0x21a727,_0x29fad9;return(_0x29fad9=(_0x21a727=this[_0xc2ecc2(0x359)])==null?void 0x0:_0x21a727['onTransformState'])==null?void 0x0:_0x29fad9['call'](_0x21a727,_0x5076b8);},_0x3e9ecd['onTransformSelections']=_0x193919=>{var _0x3f074c=_0x427563,_0x1ceb74,_0x4db60b;return(_0x4db60b=(_0x1ceb74=this[_0x3f074c(0x359)])==null?void 0x0:_0x1ceb74[_0x3f074c(0x35f)])==null?void 0x0:_0x4db60b[_0x3f074c(0x3f8)](_0x1ceb74,_0x193919);},_0x3e9ecd[_0x427563(0x32a)]=_0x41f3d0=>{var _0x5bd5ea=_0x427563,_0x3f32b5,_0x22c9d8;return(_0x22c9d8=(_0x3f32b5=this[_0x5bd5ea(0x359)])==null?void 0x0:_0x3f32b5[_0x5bd5ea(0x32a)])==null?void 0x0:_0x22c9d8[_0x5bd5ea(0x3f8)](_0x3f32b5,_0x41f3d0);},_0x3e9ecd[_0x427563(0x204)]=_0xadb5a2=>{var _0xd358da=_0x427563,_0x15776c,_0x4368cc,_0xd61680;if(!((_0x15776c=this[_0xd358da(0x359)])!=null&&_0x15776c['onTransformRemoteChangesetByIMECache']))throw new Error(_0xd358da(0x369));return(_0xd61680=(_0x4368cc=this[_0xd358da(0x359)])==null?void 0x0:_0x4368cc[_0xd358da(0x204)])==null?void 0x0:_0xd61680[_0xd358da(0x3f8)](_0x4368cc,_0xadb5a2);},_0x3e9ecd[_0x427563(0x2c3)]=_0x4e273a=>{var _0x18ad0c=_0x427563,_0x43b341,_0x4f7b49,_0x4ccf69;if(!((_0x43b341=this[_0x18ad0c(0x359)])!=null&&_0x43b341[_0x18ad0c(0x2c3)]))throw new Error(_0x18ad0c(0x315));return(_0x4ccf69=(_0x4f7b49=this[_0x18ad0c(0x359)])==null?void 0x0:_0x4f7b49[_0x18ad0c(0x2c3)])==null?void 0x0:_0x4ccf69[_0x18ad0c(0x3f8)](_0x4f7b49,_0x4e273a);},_0x3e9ecd;}async[_0x4b7416(0x22d)](){var _0x47bc66=_0x4b7416;const _0x558927=await super[_0x47bc66(0x22d)]();return this[_0x47bc66(0x20d)](this[_0x47bc66(0x30e)]['onCommandExecuted']((_0x4b6c11,_0x25b4f9)=>{var _0x4a7bef=_0x47bc66;if(_0x4b6c11['type']!==_0x26c610[_0x4a7bef(0x13d)]||_0x25b4f9!=null&&_0x25b4f9[_0x4a7bef(0x220)]||_0x25b4f9!=null&&_0x25b4f9['onlyLocal']||_0x4b6c11['id']===_0x3b7e98['id'])return;const _0x1ffba6=_0x4b6c11[_0x4a7bef(0x228)];if((_0x1ffba6==null?void 0x0:_0x1ffba6['unitId'])!==this[_0x4a7bef(0x311)])return;const _0x5e8bbd=_0x4b6c11,_0x1ea191=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0x4a7bef(0x3d3)][_0x4a7bef(0x223)][_0x4a7bef(0x3e5)]()[_0x4a7bef(0x2eb)])([_0x5e8bbd],null)||[_0x5e8bbd];this[_0x4a7bef(0x3af)](_0x1ea191[0x0]);})),_0x558927;}};Tt=Lt([k(0x3,_0x33e245(_0x5596e1)),k(0x4,_0x33e245(_0x2628bf)),k(0x5,_0x33e245(_0x377f39)),k(0x6,_0x33e245(_0x4d1984)),k(0x7,_0x33e245(pe)),k(0x8,_0x46cc09),k(0x9,_0x44e191),k(0xa,_0x3d23e7),k(0xb,_0x30fb77(ht)),k(0xc,_0x30fb77(J))],Tt);let Ct=class extends nt{constructor(_0x11145f,_0x2441a5,_0x1cf76a,_0x17eff0,_0x347635,_0x4c1b12,_0x2de5a4,_0x2ff186,_0x56c355,_0x3b0fc3,_0x44870a,_0x54e93a,_0x3fd277,_0x561663){var _0x5185dc=_0x4b7416;super(_0x11145f,_0x1cf76a,_0x2441a5,_0x17eff0,_0x347635,_0x4c1b12,_0x2de5a4,_0x56c355,_0x3b0fc3,_0x44870a,_0x54e93a,_0x3fd277,_0x561663),this[_0x5185dc(0x311)]=_0x11145f,this['type']=_0x2441a5,this['_sheetTransformSelectionsService']=_0x2ff186;}[_0x4b7416(0x190)](){var _0x458d3c=_0x4b7416;const _0x3df217=super[_0x458d3c(0x190)]();return _0x3df217[_0x458d3c(0x35f)]=_0x5bb96e=>this[_0x458d3c(0x233)]['transformSelections'](_0x5bb96e),_0x3df217;}async[_0x4b7416(0x22d)](){var _0x3e4076=_0x4b7416;const _0x252260=await super[_0x3e4076(0x22d)]();return this['disposeWithMe'](this[_0x3e4076(0x30e)][_0x3e4076(0x149)]((_0x1fe498,_0x5781bc)=>{var _0x21f240=_0x3e4076;if(_0x1fe498['type']!==_0x26c610[_0x21f240(0x13d)]||_0x5781bc!=null&&_0x5781bc['fromCollab']||_0x5781bc!=null&&_0x5781bc[_0x21f240(0x27e)])return;const _0x53c146=_0x1fe498[_0x21f240(0x228)];if((_0x53c146==null?void 0x0:_0x53c146[_0x21f240(0x18c)])!==this[_0x21f240(0x311)])return;const _0x4b4b5c=_0x1fe498,_0x32e98b=this[_0x21f240(0x3d3)]['interceptor'][_0x21f240(0x307)](this['_compressMutationService'][_0x21f240(0x223)][_0x21f240(0x3e5)]()[_0x21f240(0x2eb)])([_0x4b4b5c],null)||[_0x4b4b5c];this[_0x21f240(0x3af)](_0x32e98b[0x0]);})),_0x252260;}};Ct=Lt([k(0x3,_0x33e245(_0x5596e1)),k(0x4,_0x33e245(_0x2628bf)),k(0x5,_0x33e245(_0x377f39)),k(0x6,_0x33e245(_0x4d1984)),k(0x7,_0x33e245(it)),k(0x8,_0x33e245(pe)),k(0x9,_0x46cc09),k(0xa,_0x44e191),k(0xb,_0x3d23e7),k(0xc,_0x30fb77(ht)),k(0xd,_0x30fb77(J))],Ct);var mr=Object['defineProperty'],gr=Object['getOwnPropertyDescriptor'],Sr=(_0x21f22f,_0x32527c,_0x106b2e,_0x3311df)=>{var _0x4dece6=_0x4b7416;for(var _0x58b51d=_0x3311df>0x1?void 0x0:_0x3311df?gr(_0x32527c,_0x106b2e):_0x32527c,_0x12aa32=_0x21f22f[_0x4dece6(0x39c)]-0x1,_0x3f8cbe;_0x12aa32>=0x0;_0x12aa32--)(_0x3f8cbe=_0x21f22f[_0x12aa32])&&(_0x58b51d=(_0x3311df?_0x3f8cbe(_0x32527c,_0x106b2e,_0x58b51d):_0x3f8cbe(_0x58b51d))||_0x58b51d);return _0x3311df&&_0x58b51d&&mr(_0x32527c,_0x106b2e,_0x58b51d),_0x58b51d;},ft=(_0x30f6a2,_0x346c77)=>(_0x25e573,_0x16e3b7)=>_0x346c77(_0x25e573,_0x16e3b7,_0x30f6a2);let rt=class extends _0x1ebecf{constructor(_0x529615,_0x45fcf9,_0x344c8f){var _0x22a7b6=_0x4b7416;super(),N(this,'_entities',new Map()),N(this,_0x22a7b6(0x396),new _0x9f6386()),N(this,_0x22a7b6(0x258),this[_0x22a7b6(0x396)]['asObservable']()),(this[_0x22a7b6(0x3e3)]=_0x529615,this[_0x22a7b6(0x376)]=_0x45fcf9,this[_0x22a7b6(0x3cb)]=_0x344c8f,this[_0x22a7b6(0x22d)]());}[_0x4b7416(0x363)](){var _0x50285d=_0x4b7416;super[_0x50285d(0x363)](),this[_0x50285d(0x1eb)][_0x50285d(0x1d1)](_0xe66704=>_0xe66704['dispose']()),this['_entities'][_0x50285d(0x29b)]();}[_0x4b7416(0x1dd)](_0x1bcfbd){var _0x400861=_0x4b7416,_0x5bae5f;return(_0x5bae5f=this['_entities'][_0x400861(0x279)](_0x1bcfbd))!=null?_0x5bae5f:null;}[_0x4b7416(0x322)](_0x4fc099){var _0x1dfd4f=_0x4b7416;const _0x2fd7f8=this[_0x1dfd4f(0x1dd)](_0x4fc099);return _0x2fd7f8?_0x4f9ee1(_0x2fd7f8):this[_0x1dfd4f(0x396)][_0x1dfd4f(0x182)](_0x2478c4(_0x28eeed=>_0x28eeed[_0x1dfd4f(0x311)]===_0x4fc099));}[_0x4b7416(0x165)](_0x47e8f4){var _0x522615=_0x4b7416;return _0xec409a(this['getCollabEntity$'](_0x47e8f4)[_0x522615(0x182)](_0x30b411(()=>{})));}[_0x4b7416(0x22d)](){var _0x4381bb=_0x4b7416;this[_0x4381bb(0x3cb)]['getTypeOfUnitAdded$'](_0x26d1dc[_0x4381bb(0x409)])[_0x4381bb(0x182)](_0x1045a6(this[_0x4381bb(0x43d)]),_0x436533(0x10))[_0x4381bb(0x435)](async _0x165a2e=>{var _0x6b4c3c=_0x4381bb;const _0x38e80e=_0x165a2e['getUnitId'](),_0x3b10d2=await this['_startCollaboration'](_0x38e80e,Q[_0x6b4c3c(0x409)]);this[_0x6b4c3c(0x1eb)][_0x6b4c3c(0x329)](_0x38e80e,_0x3b10d2);}),this[_0x4381bb(0x3cb)][_0x4381bb(0x338)](_0x26d1dc[_0x4381bb(0x3a9)])[_0x4381bb(0x182)](_0x1045a6(this['dispose$']),_0x436533(0x10))['pipe'](_0x2478c4(_0x2a947c=>!_0x2a947c['getUnitId']()['startsWith']('__')))[_0x4381bb(0x435)](async _0x306cba=>{var _0x4d225d=_0x4381bb;const _0x5dafd0=_0x306cba['getUnitId'](),_0x35ff6c=await this[_0x4d225d(0x1fc)](_0x5dafd0,Q[_0x4d225d(0x3a9)]);this[_0x4d225d(0x1eb)][_0x4d225d(0x329)](_0x5dafd0,_0x35ff6c);}),_0xddea8f(this[_0x4381bb(0x3cb)][_0x4381bb(0x30b)](_0x26d1dc[_0x4381bb(0x409)]),this[_0x4381bb(0x3cb)]['getTypeOfUnitDisposed$'](_0x26d1dc[_0x4381bb(0x3a9)]))[_0x4381bb(0x182)](_0x1045a6(this[_0x4381bb(0x43d)]))['subscribe'](_0x2c6498=>{var _0x35c33f=_0x4381bb;const _0x338f53=_0x2c6498['getUnitId'](),_0x495813=this[_0x35c33f(0x1eb)][_0x35c33f(0x279)](_0x338f53);_0x495813&&(_0x495813[_0x35c33f(0x363)](),this['_entities']['delete'](_0x338f53));});}async[_0x4b7416(0x1fc)](_0x556b4e,_0x497542){var _0x218d54=_0x4b7416;const _0x30a258=await this[_0x218d54(0x376)][_0x218d54(0x3fb)](_0x556b4e),_0x1e2e82=this[_0x218d54(0x3e3)][_0x218d54(0x2ff)](this['_getCtorByUniverType'](_0x497542),_0x556b4e,_0x497542,_0x30a258);return await _0x1e2e82['init'](),this[_0x218d54(0x396)]['next'](_0x1e2e82),_0x1e2e82;}[_0x4b7416(0x403)](_0x1964ac){var _0xff04d1=_0x4b7416;switch(_0x1964ac){case Q[_0xff04d1(0x3a9)]:return Tt;case Q[_0xff04d1(0x409)]:return Ct;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x1964ac);}}};rt=Sr([ft(0x0,_0x33e245(_0x5596e1)),ft(0x1,_0x33e245(Le)),ft(0x2,_0x280bc0)],rt);var Er=Object[_0x4b7416(0x2cb)],Ir=Object[_0x4b7416(0x26b)],Tr=(_0x426562,_0x52ed02,_0x2fb249,_0x1168cf)=>{var _0x5f0c53=_0x4b7416;for(var _0x495ddb=_0x1168cf>0x1?void 0x0:_0x1168cf?Ir(_0x52ed02,_0x2fb249):_0x52ed02,_0x8f212a=_0x426562[_0x5f0c53(0x39c)]-0x1,_0x136d2c;_0x8f212a>=0x0;_0x8f212a--)(_0x136d2c=_0x426562[_0x8f212a])&&(_0x495ddb=(_0x1168cf?_0x136d2c(_0x52ed02,_0x2fb249,_0x495ddb):_0x136d2c(_0x495ddb))||_0x495ddb);return _0x1168cf&&_0x495ddb&&Er(_0x52ed02,_0x2fb249,_0x495ddb),_0x495ddb;},Jt=(_0xf6e512,_0x356389)=>(_0x5f6d7a,_0x1038af)=>_0x356389(_0x5f6d7a,_0x1038af,_0xf6e512);const Cr=_0x4b7416(0x373),Rr='Univer';let Rt=class extends _0x325afd{constructor(_0x1422d0,_0x344407){var _0x2d83a6=_0x4b7416;super(),this[_0x2d83a6(0x3cb)]=_0x1422d0,this[_0x2d83a6(0x152)]=_0x344407,this[_0x2d83a6(0x22d)]();}[_0x4b7416(0x22d)](){var _0x52dca5=_0x4b7416;this['disposeWithMe'](this['_univerInstanceService'][_0x52dca5(0x21a)][_0x52dca5(0x435)](()=>{var _0x535292=_0x52dca5,_0x4a5f30;const _0x335569=this['_univerInstanceService'][_0x535292(0x313)]();let _0x2f31b7=(_0x4a5f30=this[_0x535292(0x152)]['getConfig'](Cr))!=null?_0x4a5f30:Rr;_0x335569 instanceof _0x29269e&&(_0x2f31b7=_0x335569[_0x535292(0x39b)]),document['title']=_0x2f31b7;}));}};Rt=Tr([Jt(0x0,_0x280bc0),Jt(0x1,_0x1218c6)],Rt);var br=Object['defineProperty'],Or=Object[_0x4b7416(0x26b)],yr=(_0x3f233e,_0x2ec4b5,_0x365940,_0x1fce12)=>{for(var _0x4e2968=_0x1fce12>0x1?void 0x0:_0x1fce12?Or(_0x2ec4b5,_0x365940):_0x2ec4b5,_0x4b4eb2=_0x3f233e['length']-0x1,_0x21a4f3;_0x4b4eb2>=0x0;_0x4b4eb2--)(_0x21a4f3=_0x3f233e[_0x4b4eb2])&&(_0x4e2968=(_0x1fce12?_0x21a4f3(_0x2ec4b5,_0x365940,_0x4e2968):_0x21a4f3(_0x4e2968))||_0x4e2968);return _0x1fce12&&_0x4e2968&&br(_0x2ec4b5,_0x365940,_0x4e2968),_0x4e2968;},vt=(_0x4aea86,_0x136908)=>(_0x4650b7,_0x1f1caa)=>_0x136908(_0x4650b7,_0x1f1caa,_0x4aea86);let st=class{constructor(_0x29cf10,_0x36188f,_0x4d56da){var _0x54de9f=_0x4b7416;this[_0x54de9f(0x152)]=_0x29cf10,this[_0x54de9f(0x15a)]=_0x36188f,this[_0x54de9f(0x2a9)]=_0x4d56da,this['init']();}[_0x4b7416(0x390)](){var _0x4300ab=_0x4b7416;this[_0x4300ab(0x15a)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x528314,_0x593869)=>_0x593869(_0x528314)[_0x4300ab(0x182)](_0x44ace6(async _0x42f2c6=>{var _0x53b2e8=_0x4300ab;const _0x539e0f=_0x42f2c6;if(_0x539e0f[_0x53b2e8(0x2ca)]===0x191){if(typeof window>'u')throw new Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window['confirm'](this[_0x53b2e8(0x2a9)]['t'](_0x53b2e8(0x3ab)))){const _0x3caa16=window[_0x53b2e8(0x235)](window['location']['href']);window[_0x53b2e8(0x2c4)][_0x53b2e8(0x1b3)]=this['_getLoginPath']()+_0x53b2e8(0x3df)+_0x3caa16;}}return _0x539e0f;}))});}[_0x4b7416(0x1ed)](){var _0x4e29f8=_0x4b7416,_0x1f8a74,_0x1fc227;const _0x57e2de=this[_0x4e29f8(0x152)][_0x4e29f8(0x40e)](xn),_0x6330a8=this[_0x4e29f8(0x152)][_0x4e29f8(0x40e)](q);return(_0x1fc227=(_0x1f8a74=_0x6330a8==null?void 0x0:_0x6330a8[_0x4e29f8(0x393)])!=null?_0x1f8a74:_0x57e2de)!=null?_0x1fc227:Ln;}};st=yr([vt(0x0,_0x1218c6),vt(0x1,_0x33e245(_0x313ce8)),vt(0x2,_0x33e245(_0x377f39))],st);var Nr=Object[_0x4b7416(0x2cb)],Dr=Object[_0x4b7416(0x26b)],Pr=(_0xcefef3,_0x594c95,_0x3b1415,_0x916e87)=>{var _0x49839b=_0x4b7416;for(var _0x5d3e95=_0x916e87>0x1?void 0x0:_0x916e87?Dr(_0x594c95,_0x3b1415):_0x594c95,_0x250c45=_0xcefef3[_0x49839b(0x39c)]-0x1,_0x395efa;_0x250c45>=0x0;_0x250c45--)(_0x395efa=_0xcefef3[_0x250c45])&&(_0x5d3e95=(_0x916e87?_0x395efa(_0x594c95,_0x3b1415,_0x5d3e95):_0x395efa(_0x5d3e95))||_0x5d3e95);return _0x916e87&&_0x5d3e95&&Nr(_0x594c95,_0x3b1415,_0x5d3e95),_0x5d3e95;},Xt=(_0x162feb,_0x566d52)=>(_0x3548ae,_0x485798)=>_0x566d52(_0x3548ae,_0x485798,_0x162feb);const Pi=_0x4b7416(0x3e1),wr=_0x4b7416(0x1e4);let bt=class extends _0x325afd{constructor(_0x9f1049,_0x239fdb){var _0x3361f3=_0x4b7416;super(),this[_0x3361f3(0x22b)]=_0x9f1049,this['_configService']=_0x239fdb,this[_0x3361f3(0x1e3)]();}[_0x4b7416(0x1e3)](){var _0x1b9d9a=_0x4b7416;const _0x1a9bf2=this;this['disposeWithMe'](this[_0x1b9d9a(0x22b)][_0x1b9d9a(0x3c1)]({'priority':0x3e7,'interceptor':_0x479e5e({'isMatch'(_0x235707){var _0x18f979=_0x1b9d9a,_0x31baeb;if(_0x235707[_0x18f979(0x202)]===_0x18f979(0x292)&&((_0x31baeb=_0x235707[_0x18f979(0x3fa)])!=null&&_0x31baeb['body'])){const {objectID:_0x242335,objectType:_0x5d347d}=_0x235707[_0x18f979(0x3fa)][_0x18f979(0x14e)]||{};if(!_0x242335||_0x5d347d===void 0x0)return!0x1;const _0x2ecb24=_0x1a9bf2[_0x18f979(0x196)]()+'/'+_0x5d347d+_0x18f979(0x243)+_0x242335+_0x18f979(0x22f);if(_0x235707[_0x18f979(0x17b)]===_0x2ecb24)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x621370){var _0x330e82=_0x1b9d9a,_0xf5d3da;return(_0xf5d3da=_0x621370['requestParams'])==null?void 0x0:_0xf5d3da[_0x330e82(0x14e)];},'mergeParamsToRequest'(_0x4b66ae,_0x35926c){var _0x8c949e=_0x1b9d9a;const _0x12b42f=_0x1a9bf2[_0x8c949e(0x196)]()+_0x8c949e(0x417),_0x205418=_0x4b66ae[_0x8c949e(0x422)]((_0x152a39,_0x2921fe)=>{var _0x24b8b8=_0x8c949e;const {unitID:_0x88a465,objectID:_0x57b487,objectType:_0x28b3cf,actions:_0x2c6e29}=_0x2921fe;return _0x152a39[_0x88a465]||(_0x152a39[_0x88a465]={}),_0x152a39[_0x88a465][_0x57b487]||(_0x152a39[_0x88a465][_0x57b487]={'objectID':_0x57b487,'objectType':_0x28b3cf,'actions':[]}),_0x152a39[_0x88a465][_0x57b487][_0x24b8b8(0x2b0)][_0x24b8b8(0x2fa)](..._0x2c6e29),_0x152a39;},{}),_0x55a3bb=[];for(const _0x405c96 in _0x205418)for(const _0x58002f in _0x205418[_0x405c96]){const {actions:_0xbf6fa,objectType:_0x5ecd35}=_0x205418[_0x405c96][_0x58002f],_0xfc0330=[...new Set(_0xbf6fa)];_0x55a3bb[_0x8c949e(0x2fa)]({'unitID':_0x405c96,'objectID':_0x58002f,'objectType':_0x5ecd35,'actions':_0xfc0330});}return new _0x539577(_0x8c949e(0x292),_0x12b42f,{'headers':_0x35926c[_0x8c949e(0x3d0)],'withCredentials':_0x35926c[_0x8c949e(0x3dd)],'responseType':_0x35926c['responseType'],'body':{'requests':_0x55a3bb}});}},{'distributeResult'(_0x87285c,_0x28af99){var _0x51fa1b=_0x1b9d9a;const {objectActions:_0x4e188c}=_0x87285c;return _0x28af99[_0x51fa1b(0x378)](_0x38465b=>{var _0x3fc67d=_0x51fa1b;const {unitID:_0x1519fb,objectID:_0x50f58f,actions:_0x14e38d}=_0x38465b,_0x5976d8=_0x4e188c[_0x3fc67d(0x398)](_0x13934f=>_0x13934f['unitID']===_0x1519fb&&_0x13934f[_0x3fc67d(0x184)]===_0x50f58f),_0x16f660=_0x14e38d[_0x3fc67d(0x378)](_0x2231d1=>_0x5976d8==null?void 0x0:_0x5976d8[_0x3fc67d(0x2b0)]['find'](_0x1809c1=>_0x1809c1[_0x3fc67d(0x1ad)]===_0x2231d1))[_0x3fc67d(0x2c9)](_0x58733b=>!!_0x58733b);return{'config':_0x38465b,'result':{'actions':_0x16f660,'error':_0x87285c[_0x3fc67d(0x2bc)]}};});}})}));}[_0x4b7416(0x196)](){var _0x383681=_0x4b7416,_0x1dca97,_0x434d76;const _0x4d7bdb=this[_0x383681(0x152)][_0x383681(0x40e)](Pi),_0x324acb=this[_0x383681(0x152)][_0x383681(0x40e)](q);return(_0x434d76=(_0x1dca97=_0x324acb==null?void 0x0:_0x324acb[_0x383681(0x1c4)])!=null?_0x1dca97:_0x4d7bdb)!=null?_0x434d76:wr;}async[_0x4b7416(0x319)](_0x401a36){var _0x449813=_0x4b7416;const _0x335b31=this[_0x449813(0x196)]()+'/'+_0x401a36['objectType']+'/object';return(await this[_0x449813(0x22b)]['post'](_0x335b31,{'body':_0x401a36}))[_0x449813(0x14e)][_0x449813(0x184)]||'';}async[_0x4b7416(0x2f4)](_0x78e206){var _0x45d129=_0x4b7416;const _0x49bd59=this[_0x45d129(0x196)]()+_0x45d129(0x1b9);return(await this['_HTTPService']['post'](_0x49bd59,{'body':_0x78e206}))['body'][_0x45d129(0x36d)];}async[_0x4b7416(0x3c4)](_0x2290b6){var _0x2c9251=_0x4b7416;const _0x2a7889=this[_0x2c9251(0x196)]()+'/'+_0x2290b6[_0x2c9251(0x255)]+'/object/'+_0x2290b6[_0x2c9251(0x184)];await this['_HTTPService'][_0x2c9251(0x25c)](_0x2a7889,{'body':_0x2290b6});}async['allowed'](_0xd9cbcd){var _0x2b2445=_0x4b7416;const _0x176d8f=this['_getAPIPrefixPath']()+'/'+_0xd9cbcd[_0x2b2445(0x255)]+_0x2b2445(0x243)+_0xd9cbcd[_0x2b2445(0x184)]+_0x2b2445(0x22f);return(await this[_0x2b2445(0x22b)][_0x2b2445(0x19e)](_0x176d8f,{'body':_0xd9cbcd}))['body'][_0x2b2445(0x2b0)];}async[_0x4b7416(0x151)](_0x541d1e){var _0x53373d=_0x4b7416;const _0x5a5898=this[_0x53373d(0x196)]()+_0x53373d(0x417);return(await this[_0x53373d(0x22b)][_0x53373d(0x19e)](_0x5a5898,{'body':{'requests':_0x541d1e}}))[_0x53373d(0x14e)][_0x53373d(0x171)];}async['listRoles'](_0x960016){var _0x971869=_0x4b7416;const _0x35272=this[_0x971869(0x196)]()+'/'+_0x960016[_0x971869(0x255)]+_0x971869(0x447),_0x5c0117=await this[_0x971869(0x22b)][_0x971869(0x19e)](_0x35272,{'body':_0x960016});return{'roles':_0x5c0117[_0x971869(0x14e)][_0x971869(0x286)],'actions':_0x5c0117[_0x971869(0x14e)][_0x971869(0x2b0)]};}async[_0x4b7416(0x181)](_0x1d9033){var _0x1f5879=_0x4b7416;const _0x62610d=this['_getAPIPrefixPath']()+_0x1f5879(0x2e8);await this[_0x1f5879(0x22b)][_0x1f5879(0x3fd)](_0x62610d,{'params':{'collaboratorID':_0x1d9033[_0x1f5879(0x445)],'objectID':_0x1d9033['objectID'],'unitID':_0x1d9033[_0x1f5879(0x311)]}});}async['updateCollaborator'](_0x2e508a){var _0x1e95ac=_0x4b7416;const _0x33b2d0=this[_0x1e95ac(0x196)]()+'/collaborator';await this['_HTTPService'][_0x1e95ac(0x274)](_0x33b2d0,{'body':_0x2e508a});}async[_0x4b7416(0x395)](_0x524dec){var _0x33141e=_0x4b7416;const _0x28451b=this[_0x33141e(0x196)]()+_0x33141e(0x2e8);await this['_HTTPService']['post'](_0x28451b,{'body':_0x524dec});}async[_0x4b7416(0x168)](_0x4fa26e){var _0x554ec1=_0x4b7416;const _0x301037=this[_0x554ec1(0x196)]()+_0x554ec1(0x2e8);return(await this[_0x554ec1(0x22b)][_0x554ec1(0x279)](_0x301037,{'params':{'objectID':_0x4fa26e[_0x554ec1(0x184)],'unitID':_0x4fa26e[_0x554ec1(0x311)]}}))[_0x554ec1(0x14e)][_0x554ec1(0x3ad)];}async[_0x4b7416(0x242)](_0x3470ee){var _0x53595c=_0x4b7416;const _0x54aaba=this[_0x53595c(0x196)]()+_0x53595c(0x2e8);await this[_0x53595c(0x22b)][_0x53595c(0x25c)](_0x54aaba,{'body':_0x3470ee});}};bt=Pr([Xt(0x0,_0x33e245(_0x313ce8)),Xt(0x1,_0x33e245(_0x1218c6))],bt);var pt=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function ke(_0x58adfc){var _0x1a8001=_0x4b7416;return _0x58adfc&&_0x58adfc[_0x1a8001(0x283)]&&Object[_0x1a8001(0x2b8)][_0x1a8001(0x174)][_0x1a8001(0x3f8)](_0x58adfc,_0x1a8001(0x2c2))?_0x58adfc[_0x1a8001(0x2c2)]:_0x58adfc;}var Ve={'exports':{}};function Ur(_0x3496fe){var _0x5c8212=_0x4b7416;throw new Error(_0x5c8212(0x3f9)+_0x3496fe+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}var Ge={'exports':{}},Ar=Ge['exports'],Zt;function ne(){return Zt||(Zt=0x1,function(_0x2957cc,_0x599de5){(function(_0x10ef7a,_0x192953){_0x2957cc['exports']=_0x192953();}(Ar,function(){var _0x284ea7=_0x284ea7||function(_0x5c4f87,_0x408f4d){var _0x338635=_0x1bf9,_0x1fb20f;if(typeof window<'u'&&window['crypto']&&(_0x1fb20f=window[_0x338635(0x309)]),typeof self<'u'&&self[_0x338635(0x309)]&&(_0x1fb20f=self['crypto']),typeof globalThis<'u'&&globalThis['crypto']&&(_0x1fb20f=globalThis[_0x338635(0x309)]),!_0x1fb20f&&typeof window<'u'&&window[_0x338635(0x2e1)]&&(_0x1fb20f=window[_0x338635(0x2e1)]),!_0x1fb20f&&typeof pt<'u'&&pt[_0x338635(0x309)]&&(_0x1fb20f=pt[_0x338635(0x309)]),!_0x1fb20f&&typeof Ur==_0x338635(0x1d8))try{_0x1fb20f=require(_0x338635(0x309));}catch{}var _0x367375=function(){var _0x1d9674=_0x338635;if(_0x1fb20f){if(typeof _0x1fb20f[_0x1d9674(0x1a7)]==_0x1d9674(0x1d8))try{return _0x1fb20f[_0x1d9674(0x1a7)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x1fb20f[_0x1d9674(0x449)]==_0x1d9674(0x1d8))try{return _0x1fb20f[_0x1d9674(0x449)](0x4)[_0x1d9674(0x416)]();}catch{}}throw new Error(_0x1d9674(0x3a5));},_0x243f6d=Object[_0x338635(0x319)]||(function(){function _0x50fff7(){}return function(_0x438fc0){var _0xe465a7=_0x1bf9,_0x5e6d1e;return _0x50fff7['prototype']=_0x438fc0,_0x5e6d1e=new _0x50fff7(),_0x50fff7[_0xe465a7(0x2b8)]=null,_0x5e6d1e;};}()),_0x481c14={},_0x4bc8ed=_0x481c14[_0x338635(0x229)]={},_0x30736f=_0x4bc8ed[_0x338635(0x29a)]=(function(){return{'extend':function(_0x26aef3){var _0x105e97=_0x1bf9,_0x105843=_0x243f6d(this);return _0x26aef3&&_0x105843['mixIn'](_0x26aef3),(!_0x105843[_0x105e97(0x174)](_0x105e97(0x390))||this[_0x105e97(0x390)]===_0x105843[_0x105e97(0x390)])&&(_0x105843['init']=function(){var _0x57c5c1=_0x105e97;_0x105843[_0x57c5c1(0x29c)][_0x57c5c1(0x390)][_0x57c5c1(0x1b4)](this,arguments);}),_0x105843['init'][_0x105e97(0x2b8)]=_0x105843,_0x105843[_0x105e97(0x29c)]=this,_0x105843;},'create':function(){var _0x55b2b6=_0x1bf9,_0x4415a3=this[_0x55b2b6(0x431)]();return _0x4415a3[_0x55b2b6(0x390)][_0x55b2b6(0x1b4)](_0x4415a3,arguments),_0x4415a3;},'init':function(){},'mixIn':function(_0x3a402f){var _0x291b5d=_0x1bf9;for(var _0x4c1a09 in _0x3a402f)_0x3a402f[_0x291b5d(0x174)](_0x4c1a09)&&(this[_0x4c1a09]=_0x3a402f[_0x4c1a09]);_0x3a402f[_0x291b5d(0x174)](_0x291b5d(0x148))&&(this[_0x291b5d(0x148)]=_0x3a402f[_0x291b5d(0x148)]);},'clone':function(){var _0x1a2219=_0x1bf9;return this[_0x1a2219(0x390)][_0x1a2219(0x2b8)][_0x1a2219(0x431)](this);}};}()),_0x4169fd=_0x4bc8ed[_0x338635(0x30d)]=_0x30736f[_0x338635(0x431)]({'init':function(_0x1eb97d,_0x2f230c){var _0x1e8152=_0x338635;_0x1eb97d=this[_0x1e8152(0x2ab)]=_0x1eb97d||[],_0x2f230c!=_0x408f4d?this[_0x1e8152(0x2a4)]=_0x2f230c:this[_0x1e8152(0x2a4)]=_0x1eb97d['length']*0x4;},'toString':function(_0x5747fc){var _0x4bf6bf=_0x338635;return(_0x5747fc||_0x26c8f8)[_0x4bf6bf(0x418)](this);},'concat':function(_0x90389e){var _0x4ad87c=_0x338635,_0x1ef276=this[_0x4ad87c(0x2ab)],_0x355e74=_0x90389e[_0x4ad87c(0x2ab)],_0x2626ce=this['sigBytes'],_0xa7e5ba=_0x90389e[_0x4ad87c(0x2a4)];if(this[_0x4ad87c(0x29d)](),_0x2626ce%0x4)for(var _0x4aa485=0x0;_0x4aa485<_0xa7e5ba;_0x4aa485++){var _0x35c07e=_0x355e74[_0x4aa485>>>0x2]>>>0x18-_0x4aa485%0x4*0x8&0xff;_0x1ef276[_0x2626ce+_0x4aa485>>>0x2]|=_0x35c07e<<0x18-(_0x2626ce+_0x4aa485)%0x4*0x8;}else{for(var _0x1929c6=0x0;_0x1929c6<_0xa7e5ba;_0x1929c6+=0x4)_0x1ef276[_0x2626ce+_0x1929c6>>>0x2]=_0x355e74[_0x1929c6>>>0x2];}return this['sigBytes']+=_0xa7e5ba,this;},'clamp':function(){var _0x4ba34c=_0x338635,_0x2c65c1=this[_0x4ba34c(0x2ab)],_0x5b67cb=this[_0x4ba34c(0x2a4)];_0x2c65c1[_0x5b67cb>>>0x2]&=0xffffffff<<0x20-_0x5b67cb%0x4*0x8,_0x2c65c1[_0x4ba34c(0x39c)]=_0x5c4f87[_0x4ba34c(0x389)](_0x5b67cb/0x4);},'clone':function(){var _0x11ed67=_0x338635,_0xd10439=_0x30736f[_0x11ed67(0x408)][_0x11ed67(0x3f8)](this);return _0xd10439[_0x11ed67(0x2ab)]=this[_0x11ed67(0x2ab)][_0x11ed67(0x367)](0x0),_0xd10439;},'random':function(_0x35c3f9){var _0x1742e9=_0x338635;for(var _0x46d91b=[],_0x5295f0=0x0;_0x5295f0<_0x35c3f9;_0x5295f0+=0x4)_0x46d91b[_0x1742e9(0x2fa)](_0x367375());return new _0x4169fd[(_0x1742e9(0x390))](_0x46d91b,_0x35c3f9);}}),_0xa80c14=_0x481c14[_0x338635(0x3f1)]={},_0x26c8f8=_0xa80c14[_0x338635(0x160)]={'stringify':function(_0x5100b9){var _0x3476d8=_0x338635;for(var _0x315089=_0x5100b9[_0x3476d8(0x2ab)],_0x21b2d2=_0x5100b9['sigBytes'],_0x583a72=[],_0x5052f3=0x0;_0x5052f3<_0x21b2d2;_0x5052f3++){var _0x247e37=_0x315089[_0x5052f3>>>0x2]>>>0x18-_0x5052f3%0x4*0x8&0xff;_0x583a72[_0x3476d8(0x2fa)]((_0x247e37>>>0x4)[_0x3476d8(0x148)](0x10)),_0x583a72[_0x3476d8(0x2fa)]((_0x247e37&0xf)[_0x3476d8(0x148)](0x10));}return _0x583a72[_0x3476d8(0x350)]('');},'parse':function(_0x4442ed){var _0x6f9bf4=_0x338635;for(var _0x30b143=_0x4442ed[_0x6f9bf4(0x39c)],_0x1877b1=[],_0x39b968=0x0;_0x39b968<_0x30b143;_0x39b968+=0x2)_0x1877b1[_0x39b968>>>0x3]|=parseInt(_0x4442ed[_0x6f9bf4(0x140)](_0x39b968,0x2),0x10)<<0x18-_0x39b968%0x8*0x4;return new _0x4169fd[(_0x6f9bf4(0x390))](_0x1877b1,_0x30b143/0x2);}},_0x20e108=_0xa80c14[_0x338635(0x14d)]={'stringify':function(_0x14b4ed){var _0x1ac108=_0x338635;for(var _0x311feb=_0x14b4ed[_0x1ac108(0x2ab)],_0x26a474=_0x14b4ed[_0x1ac108(0x2a4)],_0x1a18b0=[],_0x3f90d4=0x0;_0x3f90d4<_0x26a474;_0x3f90d4++){var _0x17df48=_0x311feb[_0x3f90d4>>>0x2]>>>0x18-_0x3f90d4%0x4*0x8&0xff;_0x1a18b0[_0x1ac108(0x2fa)](String[_0x1ac108(0x1b7)](_0x17df48));}return _0x1a18b0[_0x1ac108(0x350)]('');},'parse':function(_0x41d9e3){var _0x1bf8e4=_0x338635;for(var _0x4ed3c2=_0x41d9e3[_0x1bf8e4(0x39c)],_0x31bdaf=[],_0x2eaad4=0x0;_0x2eaad4<_0x4ed3c2;_0x2eaad4++)_0x31bdaf[_0x2eaad4>>>0x2]|=(_0x41d9e3[_0x1bf8e4(0x2a6)](_0x2eaad4)&0xff)<<0x18-_0x2eaad4%0x4*0x8;return new _0x4169fd[(_0x1bf8e4(0x390))](_0x31bdaf,_0x4ed3c2);}},_0x2fd476=_0xa80c14[_0x338635(0x2c1)]={'stringify':function(_0x7b4c0d){var _0x4935a7=_0x338635;try{return decodeURIComponent(escape(_0x20e108['stringify'](_0x7b4c0d)));}catch{throw new Error(_0x4935a7(0x146));}},'parse':function(_0x58b6f9){var _0x12f3f0=_0x338635;return _0x20e108[_0x12f3f0(0x1c1)](unescape(encodeURIComponent(_0x58b6f9)));}},_0x599f2e=_0x4bc8ed[_0x338635(0x245)]=_0x30736f[_0x338635(0x431)]({'reset':function(){var _0x55e842=_0x338635;this[_0x55e842(0x433)]=new _0x4169fd['init'](),this['_nDataBytes']=0x0;},'_append':function(_0x36a325){var _0x2f876f=_0x338635;typeof _0x36a325=='string'&&(_0x36a325=_0x2fd476['parse'](_0x36a325)),this['_data']['concat'](_0x36a325),this[_0x2f876f(0x141)]+=_0x36a325[_0x2f876f(0x2a4)];},'_process':function(_0x1f5a70){var _0x4d5b8b=_0x338635,_0x2a0125,_0x19d96a=this['_data'],_0xa2a49a=_0x19d96a[_0x4d5b8b(0x2ab)],_0x5ca0da=_0x19d96a[_0x4d5b8b(0x2a4)],_0x2daf86=this[_0x4d5b8b(0x370)],_0x2c712b=_0x2daf86*0x4,_0x2615a7=_0x5ca0da/_0x2c712b;_0x1f5a70?_0x2615a7=_0x5c4f87[_0x4d5b8b(0x389)](_0x2615a7):_0x2615a7=_0x5c4f87[_0x4d5b8b(0x32e)]((_0x2615a7|0x0)-this['_minBufferSize'],0x0);var _0x48c844=_0x2615a7*_0x2daf86,_0x430dbb=_0x5c4f87[_0x4d5b8b(0x429)](_0x48c844*0x4,_0x5ca0da);if(_0x48c844){for(var _0x23a1cb=0x0;_0x23a1cb<_0x48c844;_0x23a1cb+=_0x2daf86)this[_0x4d5b8b(0x33d)](_0xa2a49a,_0x23a1cb);_0x2a0125=_0xa2a49a['splice'](0x0,_0x48c844),_0x19d96a['sigBytes']-=_0x430dbb;}return new _0x4169fd[(_0x4d5b8b(0x390))](_0x2a0125,_0x430dbb);},'clone':function(){var _0x509bc6=_0x338635,_0x53efc7=_0x30736f['clone'][_0x509bc6(0x3f8)](this);return _0x53efc7[_0x509bc6(0x433)]=this[_0x509bc6(0x433)][_0x509bc6(0x408)](),_0x53efc7;},'_minBufferSize':0x0});_0x4bc8ed[_0x338635(0x427)]=_0x599f2e[_0x338635(0x431)]({'cfg':_0x30736f[_0x338635(0x431)](),'init':function(_0x46cb63){var _0x77b9bc=_0x338635;this[_0x77b9bc(0x299)]=this['cfg'][_0x77b9bc(0x431)](_0x46cb63),this[_0x77b9bc(0x366)]();},'reset':function(){var _0x48a5df=_0x338635;_0x599f2e[_0x48a5df(0x366)]['call'](this),this['_doReset']();},'update':function(_0xf0c08d){var _0x514dcb=_0x338635;return this[_0x514dcb(0x248)](_0xf0c08d),this[_0x514dcb(0x15f)](),this;},'finalize':function(_0x4b124f){var _0x596e46=_0x338635;_0x4b124f&&this[_0x596e46(0x248)](_0x4b124f);var _0x13fb5f=this[_0x596e46(0x27c)]();return _0x13fb5f;},'blockSize':0x10,'_createHelper':function(_0x1fcec3){return function(_0x30071a,_0x27d876){var _0x46bfc9=_0x1bf9;return new _0x1fcec3[(_0x46bfc9(0x390))](_0x27d876)[_0x46bfc9(0x1ab)](_0x30071a);};},'_createHmacHelper':function(_0x1b675f){return function(_0x1a1f68,_0x31a143){var _0x59123b=_0x1bf9;return new _0x58591f[(_0x59123b(0x36b))]['init'](_0x1b675f,_0x31a143)[_0x59123b(0x1ab)](_0x1a1f68);};}});var _0x58591f=_0x481c14['algo']={};return _0x481c14;}(Math);return _0x284ea7;}));}(Ge)),Ge['exports'];}var We={'exports':{}},xr=We[_0x4b7416(0x2c6)],Qt;function wi(){var _0xb9c4d8=_0x4b7416;return Qt||(Qt=0x1,function(_0x2fb0a6,_0x5cba2f){(function(_0x195de1,_0x183da8){var _0x2eda01=_0x1bf9;_0x2fb0a6[_0x2eda01(0x2c6)]=_0x183da8(ne());}(xr,function(_0x5e7554){var _0x154854=_0x1bf9;return(function(){var _0x341a81=_0x1bf9,_0x4f0a77=_0x5e7554,_0x4163ec=_0x4f0a77[_0x341a81(0x229)],_0x1b1e0f=_0x4163ec[_0x341a81(0x30d)],_0x2c98d7=_0x4f0a77[_0x341a81(0x3f1)];_0x2c98d7['Base64']={'stringify':function(_0x3ba99b){var _0x8b3855=_0x341a81,_0x116164=_0x3ba99b[_0x8b3855(0x2ab)],_0x17e956=_0x3ba99b[_0x8b3855(0x2a4)],_0x377544=this[_0x8b3855(0x288)];_0x3ba99b[_0x8b3855(0x29d)]();for(var _0x526f75=[],_0xdab55f=0x0;_0xdab55f<_0x17e956;_0xdab55f+=0x3)for(var _0x374d0b=_0x116164[_0xdab55f>>>0x2]>>>0x18-_0xdab55f%0x4*0x8&0xff,_0x80c1e=_0x116164[_0xdab55f+0x1>>>0x2]>>>0x18-(_0xdab55f+0x1)%0x4*0x8&0xff,_0x34ee25=_0x116164[_0xdab55f+0x2>>>0x2]>>>0x18-(_0xdab55f+0x2)%0x4*0x8&0xff,_0x8b119a=_0x374d0b<<0x10|_0x80c1e<<0x8|_0x34ee25,_0x187482=0x0;_0x187482<0x4&&_0xdab55f+_0x187482*0.75<_0x17e956;_0x187482++)_0x526f75[_0x8b3855(0x2fa)](_0x377544[_0x8b3855(0x392)](_0x8b119a>>>0x6*(0x3-_0x187482)&0x3f));var _0x4be6a4=_0x377544[_0x8b3855(0x392)](0x40);if(_0x4be6a4){for(;_0x526f75[_0x8b3855(0x39c)]%0x4;)_0x526f75['push'](_0x4be6a4);}return _0x526f75[_0x8b3855(0x350)]('');},'parse':function(_0x3d44fc){var _0x16d1ec=_0x341a81,_0x335389=_0x3d44fc[_0x16d1ec(0x39c)],_0x362c4e=this['_map'],_0x2c9de9=this['_reverseMap'];if(!_0x2c9de9){_0x2c9de9=this[_0x16d1ec(0x348)]=[];for(var _0xc8c55c=0x0;_0xc8c55c<_0x362c4e[_0x16d1ec(0x39c)];_0xc8c55c++)_0x2c9de9[_0x362c4e[_0x16d1ec(0x2a6)](_0xc8c55c)]=_0xc8c55c;}var _0x3f6758=_0x362c4e[_0x16d1ec(0x392)](0x40);if(_0x3f6758){var _0x35d8c9=_0x3d44fc[_0x16d1ec(0x3bf)](_0x3f6758);_0x35d8c9!==-0x1&&(_0x335389=_0x35d8c9);}return _0x2b6cc4(_0x3d44fc,_0x335389,_0x2c9de9);},'_map':_0x341a81(0x16b)};function _0x2b6cc4(_0x471af6,_0x4072d6,_0x4bebff){var _0x56ced9=_0x341a81;for(var _0x2329d7=[],_0xbe392e=0x0,_0x51a417=0x0;_0x51a417<_0x4072d6;_0x51a417++)if(_0x51a417%0x4){var _0x77a028=_0x4bebff[_0x471af6[_0x56ced9(0x2a6)](_0x51a417-0x1)]<<_0x51a417%0x4*0x2,_0x482dda=_0x4bebff[_0x471af6[_0x56ced9(0x2a6)](_0x51a417)]>>>0x6-_0x51a417%0x4*0x2,_0x7f2898=_0x77a028|_0x482dda;_0x2329d7[_0xbe392e>>>0x2]|=_0x7f2898<<0x18-_0xbe392e%0x4*0x8,_0xbe392e++;}return _0x1b1e0f[_0x56ced9(0x319)](_0x2329d7,_0xbe392e);}}()),_0x5e7554[_0x154854(0x3f1)][_0x154854(0x170)];}));}(We)),We[_0xb9c4d8(0x2c6)];}var Ke={'exports':{}},Lr=Ke[_0x4b7416(0x2c6)],ei;function Mr(){var _0x45eff1=_0x4b7416;return ei||(ei=0x1,function(_0x18999b,_0x688cec){(function(_0x175572,_0x3eb981){var _0x1cf662=_0x1bf9;_0x18999b[_0x1cf662(0x2c6)]=_0x3eb981(ne());}(Lr,function(_0x4a4170){var _0x3ed17e=_0x1bf9;return function(_0x3e7439){var _0x108c86=_0x1bf9,_0x4ebbe8=_0x4a4170,_0x49d7aa=_0x4ebbe8[_0x108c86(0x229)],_0x4c958c=_0x49d7aa[_0x108c86(0x30d)],_0x251151=_0x49d7aa[_0x108c86(0x427)],_0x305a60=_0x4ebbe8[_0x108c86(0x1de)],_0x5bf817=[];(function(){var _0x167172=_0x108c86;for(var _0x19e4e6=0x0;_0x19e4e6<0x40;_0x19e4e6++)_0x5bf817[_0x19e4e6]=_0x3e7439[_0x167172(0x44a)](_0x3e7439['sin'](_0x19e4e6+0x1))*0x100000000|0x0;}());var _0x29dba9=_0x305a60['MD5']=_0x251151[_0x108c86(0x431)]({'_doReset':function(){var _0x4082ec=_0x108c86;this[_0x4082ec(0x3b5)]=new _0x4c958c[(_0x4082ec(0x390))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x257137,_0x1733a1){var _0x2c7805=_0x108c86;for(var _0x16b61d=0x0;_0x16b61d<0x10;_0x16b61d++){var _0x3cfb7b=_0x1733a1+_0x16b61d,_0x3f1e39=_0x257137[_0x3cfb7b];_0x257137[_0x3cfb7b]=(_0x3f1e39<<0x8|_0x3f1e39>>>0x18)&0xff00ff|(_0x3f1e39<<0x18|_0x3f1e39>>>0x8)&0xff00ff00;}var _0x192e0b=this[_0x2c7805(0x3b5)]['words'],_0x8d2db2=_0x257137[_0x1733a1+0x0],_0x3536ac=_0x257137[_0x1733a1+0x1],_0x2cd997=_0x257137[_0x1733a1+0x2],_0x4dd300=_0x257137[_0x1733a1+0x3],_0x2da1b2=_0x257137[_0x1733a1+0x4],_0x5d3485=_0x257137[_0x1733a1+0x5],_0x282f41=_0x257137[_0x1733a1+0x6],_0x135edf=_0x257137[_0x1733a1+0x7],_0x1535f8=_0x257137[_0x1733a1+0x8],_0x1e388c=_0x257137[_0x1733a1+0x9],_0x10f568=_0x257137[_0x1733a1+0xa],_0x6c8262=_0x257137[_0x1733a1+0xb],_0x4b0474=_0x257137[_0x1733a1+0xc],_0x535e48=_0x257137[_0x1733a1+0xd],_0x3963e5=_0x257137[_0x1733a1+0xe],_0x399983=_0x257137[_0x1733a1+0xf],_0x3d23d9=_0x192e0b[0x0],_0x2dd2fa=_0x192e0b[0x1],_0x4a0fa3=_0x192e0b[0x2],_0x5ecb9e=_0x192e0b[0x3];_0x3d23d9=_0xb0e3ff(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x8d2db2,0x7,_0x5bf817[0x0]),_0x5ecb9e=_0xb0e3ff(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x3536ac,0xc,_0x5bf817[0x1]),_0x4a0fa3=_0xb0e3ff(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x2cd997,0x11,_0x5bf817[0x2]),_0x2dd2fa=_0xb0e3ff(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x4dd300,0x16,_0x5bf817[0x3]),_0x3d23d9=_0xb0e3ff(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x2da1b2,0x7,_0x5bf817[0x4]),_0x5ecb9e=_0xb0e3ff(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5d3485,0xc,_0x5bf817[0x5]),_0x4a0fa3=_0xb0e3ff(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x282f41,0x11,_0x5bf817[0x6]),_0x2dd2fa=_0xb0e3ff(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x135edf,0x16,_0x5bf817[0x7]),_0x3d23d9=_0xb0e3ff(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x1535f8,0x7,_0x5bf817[0x8]),_0x5ecb9e=_0xb0e3ff(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x1e388c,0xc,_0x5bf817[0x9]),_0x4a0fa3=_0xb0e3ff(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x10f568,0x11,_0x5bf817[0xa]),_0x2dd2fa=_0xb0e3ff(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x6c8262,0x16,_0x5bf817[0xb]),_0x3d23d9=_0xb0e3ff(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x4b0474,0x7,_0x5bf817[0xc]),_0x5ecb9e=_0xb0e3ff(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x535e48,0xc,_0x5bf817[0xd]),_0x4a0fa3=_0xb0e3ff(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x3963e5,0x11,_0x5bf817[0xe]),_0x2dd2fa=_0xb0e3ff(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x399983,0x16,_0x5bf817[0xf]),_0x3d23d9=_0x21a601(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3536ac,0x5,_0x5bf817[0x10]),_0x5ecb9e=_0x21a601(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x282f41,0x9,_0x5bf817[0x11]),_0x4a0fa3=_0x21a601(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x6c8262,0xe,_0x5bf817[0x12]),_0x2dd2fa=_0x21a601(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x8d2db2,0x14,_0x5bf817[0x13]),_0x3d23d9=_0x21a601(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x5d3485,0x5,_0x5bf817[0x14]),_0x5ecb9e=_0x21a601(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x10f568,0x9,_0x5bf817[0x15]),_0x4a0fa3=_0x21a601(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x399983,0xe,_0x5bf817[0x16]),_0x2dd2fa=_0x21a601(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2da1b2,0x14,_0x5bf817[0x17]),_0x3d23d9=_0x21a601(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x1e388c,0x5,_0x5bf817[0x18]),_0x5ecb9e=_0x21a601(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x3963e5,0x9,_0x5bf817[0x19]),_0x4a0fa3=_0x21a601(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4dd300,0xe,_0x5bf817[0x1a]),_0x2dd2fa=_0x21a601(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x1535f8,0x14,_0x5bf817[0x1b]),_0x3d23d9=_0x21a601(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x535e48,0x5,_0x5bf817[0x1c]),_0x5ecb9e=_0x21a601(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x2cd997,0x9,_0x5bf817[0x1d]),_0x4a0fa3=_0x21a601(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x135edf,0xe,_0x5bf817[0x1e]),_0x2dd2fa=_0x21a601(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x4b0474,0x14,_0x5bf817[0x1f]),_0x3d23d9=_0x262bdd(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x5d3485,0x4,_0x5bf817[0x20]),_0x5ecb9e=_0x262bdd(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x1535f8,0xb,_0x5bf817[0x21]),_0x4a0fa3=_0x262bdd(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x6c8262,0x10,_0x5bf817[0x22]),_0x2dd2fa=_0x262bdd(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x3963e5,0x17,_0x5bf817[0x23]),_0x3d23d9=_0x262bdd(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3536ac,0x4,_0x5bf817[0x24]),_0x5ecb9e=_0x262bdd(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x2da1b2,0xb,_0x5bf817[0x25]),_0x4a0fa3=_0x262bdd(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x135edf,0x10,_0x5bf817[0x26]),_0x2dd2fa=_0x262bdd(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x10f568,0x17,_0x5bf817[0x27]),_0x3d23d9=_0x262bdd(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x535e48,0x4,_0x5bf817[0x28]),_0x5ecb9e=_0x262bdd(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x8d2db2,0xb,_0x5bf817[0x29]),_0x4a0fa3=_0x262bdd(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4dd300,0x10,_0x5bf817[0x2a]),_0x2dd2fa=_0x262bdd(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x282f41,0x17,_0x5bf817[0x2b]),_0x3d23d9=_0x262bdd(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x1e388c,0x4,_0x5bf817[0x2c]),_0x5ecb9e=_0x262bdd(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x4b0474,0xb,_0x5bf817[0x2d]),_0x4a0fa3=_0x262bdd(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x399983,0x10,_0x5bf817[0x2e]),_0x2dd2fa=_0x262bdd(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2cd997,0x17,_0x5bf817[0x2f]),_0x3d23d9=_0x2c36ba(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x8d2db2,0x6,_0x5bf817[0x30]),_0x5ecb9e=_0x2c36ba(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x135edf,0xa,_0x5bf817[0x31]),_0x4a0fa3=_0x2c36ba(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x3963e5,0xf,_0x5bf817[0x32]),_0x2dd2fa=_0x2c36ba(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x5d3485,0x15,_0x5bf817[0x33]),_0x3d23d9=_0x2c36ba(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x4b0474,0x6,_0x5bf817[0x34]),_0x5ecb9e=_0x2c36ba(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x4dd300,0xa,_0x5bf817[0x35]),_0x4a0fa3=_0x2c36ba(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x10f568,0xf,_0x5bf817[0x36]),_0x2dd2fa=_0x2c36ba(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x3536ac,0x15,_0x5bf817[0x37]),_0x3d23d9=_0x2c36ba(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x1535f8,0x6,_0x5bf817[0x38]),_0x5ecb9e=_0x2c36ba(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x399983,0xa,_0x5bf817[0x39]),_0x4a0fa3=_0x2c36ba(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x282f41,0xf,_0x5bf817[0x3a]),_0x2dd2fa=_0x2c36ba(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x535e48,0x15,_0x5bf817[0x3b]),_0x3d23d9=_0x2c36ba(_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x2da1b2,0x6,_0x5bf817[0x3c]),_0x5ecb9e=_0x2c36ba(_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x4a0fa3,_0x6c8262,0xa,_0x5bf817[0x3d]),_0x4a0fa3=_0x2c36ba(_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x2dd2fa,_0x2cd997,0xf,_0x5bf817[0x3e]),_0x2dd2fa=_0x2c36ba(_0x2dd2fa,_0x4a0fa3,_0x5ecb9e,_0x3d23d9,_0x1e388c,0x15,_0x5bf817[0x3f]),_0x192e0b[0x0]=_0x192e0b[0x0]+_0x3d23d9|0x0,_0x192e0b[0x1]=_0x192e0b[0x1]+_0x2dd2fa|0x0,_0x192e0b[0x2]=_0x192e0b[0x2]+_0x4a0fa3|0x0,_0x192e0b[0x3]=_0x192e0b[0x3]+_0x5ecb9e|0x0;},'_doFinalize':function(){var _0x7f221e=_0x108c86,_0x5ee485=this[_0x7f221e(0x433)],_0x4ca22d=_0x5ee485[_0x7f221e(0x2ab)],_0x16c232=this['_nDataBytes']*0x8,_0x3138b5=_0x5ee485[_0x7f221e(0x2a4)]*0x8;_0x4ca22d[_0x3138b5>>>0x5]|=0x80<<0x18-_0x3138b5%0x20;var _0x5e8f9d=_0x3e7439[_0x7f221e(0x41b)](_0x16c232/0x100000000),_0x23d749=_0x16c232;_0x4ca22d[(_0x3138b5+0x40>>>0x9<<0x4)+0xf]=(_0x5e8f9d<<0x8|_0x5e8f9d>>>0x18)&0xff00ff|(_0x5e8f9d<<0x18|_0x5e8f9d>>>0x8)&0xff00ff00,_0x4ca22d[(_0x3138b5+0x40>>>0x9<<0x4)+0xe]=(_0x23d749<<0x8|_0x23d749>>>0x18)&0xff00ff|(_0x23d749<<0x18|_0x23d749>>>0x8)&0xff00ff00,_0x5ee485[_0x7f221e(0x2a4)]=(_0x4ca22d[_0x7f221e(0x39c)]+0x1)*0x4,this[_0x7f221e(0x15f)]();for(var _0x153cf1=this[_0x7f221e(0x3b5)],_0x28b3d6=_0x153cf1[_0x7f221e(0x2ab)],_0xfb9c4a=0x0;_0xfb9c4a<0x4;_0xfb9c4a++){var _0x4df9f1=_0x28b3d6[_0xfb9c4a];_0x28b3d6[_0xfb9c4a]=(_0x4df9f1<<0x8|_0x4df9f1>>>0x18)&0xff00ff|(_0x4df9f1<<0x18|_0x4df9f1>>>0x8)&0xff00ff00;}return _0x153cf1;},'clone':function(){var _0x4d589d=_0x108c86,_0x17fcd5=_0x251151[_0x4d589d(0x408)][_0x4d589d(0x3f8)](this);return _0x17fcd5['_hash']=this['_hash']['clone'](),_0x17fcd5;}});function _0xb0e3ff(_0x3aac2a,_0x2cf3d3,_0xbbdc7e,_0x29b6b0,_0xc52300,_0xff5c50,_0x463692){var _0x4dffae=_0x3aac2a+(_0x2cf3d3&_0xbbdc7e|~_0x2cf3d3&_0x29b6b0)+_0xc52300+_0x463692;return(_0x4dffae<<_0xff5c50|_0x4dffae>>>0x20-_0xff5c50)+_0x2cf3d3;}function _0x21a601(_0x4ff955,_0x378ecc,_0x4c3c2e,_0xc156fb,_0x33298e,_0x4cb2a1,_0x4067c2){var _0x459820=_0x4ff955+(_0x378ecc&_0xc156fb|_0x4c3c2e&~_0xc156fb)+_0x33298e+_0x4067c2;return(_0x459820<<_0x4cb2a1|_0x459820>>>0x20-_0x4cb2a1)+_0x378ecc;}function _0x262bdd(_0x5cef04,_0x2990d9,_0x2faa9,_0x56fb28,_0x304f3e,_0x6b6f28,_0x1e64d0){var _0x412d49=_0x5cef04+(_0x2990d9^_0x2faa9^_0x56fb28)+_0x304f3e+_0x1e64d0;return(_0x412d49<<_0x6b6f28|_0x412d49>>>0x20-_0x6b6f28)+_0x2990d9;}function _0x2c36ba(_0x463980,_0x2b1bb4,_0x14d421,_0x2aef3c,_0x335adf,_0x42ab62,_0x456a18){var _0x5a9913=_0x463980+(_0x14d421^(_0x2b1bb4|~_0x2aef3c))+_0x335adf+_0x456a18;return(_0x5a9913<<_0x42ab62|_0x5a9913>>>0x20-_0x42ab62)+_0x2b1bb4;}_0x4ebbe8[_0x108c86(0x442)]=_0x251151[_0x108c86(0x38c)](_0x29dba9),_0x4ebbe8[_0x108c86(0x438)]=_0x251151['_createHmacHelper'](_0x29dba9);}(Math),_0x4a4170[_0x3ed17e(0x442)];}));}(Ke)),Ke[_0x45eff1(0x2c6)];}var Ye={'exports':{}},qe={'exports':{}},$r=qe[_0x4b7416(0x2c6)],ti;function Hr(){var _0x2029c1=_0x4b7416;return ti||(ti=0x1,function(_0x4e53c8,_0xc2446c){(function(_0x53df84,_0x2d54c4){var _0x231cbe=_0x1bf9;_0x4e53c8[_0x231cbe(0x2c6)]=_0x2d54c4(ne());}($r,function(_0x388f7d){var _0x170394=_0x1bf9;return(function(){var _0x31cac9=_0x1bf9,_0x30f673=_0x388f7d,_0x41d3eb=_0x30f673[_0x31cac9(0x229)],_0x5cbb25=_0x41d3eb['WordArray'],_0x95fa6c=_0x41d3eb[_0x31cac9(0x427)],_0x343873=_0x30f673[_0x31cac9(0x1de)],_0x1bbabb=[],_0x120043=_0x343873[_0x31cac9(0x1bb)]=_0x95fa6c[_0x31cac9(0x431)]({'_doReset':function(){var _0x456631=_0x31cac9;this['_hash']=new _0x5cbb25[(_0x456631(0x390))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x239747,_0x1e00d0){var _0x1d5ff=_0x31cac9;for(var _0x5d7ed2=this[_0x1d5ff(0x3b5)][_0x1d5ff(0x2ab)],_0x5b7bbc=_0x5d7ed2[0x0],_0x40b8b6=_0x5d7ed2[0x1],_0x3e2fb3=_0x5d7ed2[0x2],_0x30da12=_0x5d7ed2[0x3],_0x2aefbd=_0x5d7ed2[0x4],_0x2a06ee=0x0;_0x2a06ee<0x50;_0x2a06ee++){if(_0x2a06ee<0x10)_0x1bbabb[_0x2a06ee]=_0x239747[_0x1e00d0+_0x2a06ee]|0x0;else{var _0x5cb241=_0x1bbabb[_0x2a06ee-0x3]^_0x1bbabb[_0x2a06ee-0x8]^_0x1bbabb[_0x2a06ee-0xe]^_0x1bbabb[_0x2a06ee-0x10];_0x1bbabb[_0x2a06ee]=_0x5cb241<<0x1|_0x5cb241>>>0x1f;}var _0x6b67=(_0x5b7bbc<<0x5|_0x5b7bbc>>>0x1b)+_0x2aefbd+_0x1bbabb[_0x2a06ee];_0x2a06ee<0x14?_0x6b67+=(_0x40b8b6&_0x3e2fb3|~_0x40b8b6&_0x30da12)+0x5a827999:_0x2a06ee<0x28?_0x6b67+=(_0x40b8b6^_0x3e2fb3^_0x30da12)+0x6ed9eba1:_0x2a06ee<0x3c?_0x6b67+=(_0x40b8b6&_0x3e2fb3|_0x40b8b6&_0x30da12|_0x3e2fb3&_0x30da12)-0x70e44324:_0x6b67+=(_0x40b8b6^_0x3e2fb3^_0x30da12)-0x359d3e2a,_0x2aefbd=_0x30da12,_0x30da12=_0x3e2fb3,_0x3e2fb3=_0x40b8b6<<0x1e|_0x40b8b6>>>0x2,_0x40b8b6=_0x5b7bbc,_0x5b7bbc=_0x6b67;}_0x5d7ed2[0x0]=_0x5d7ed2[0x0]+_0x5b7bbc|0x0,_0x5d7ed2[0x1]=_0x5d7ed2[0x1]+_0x40b8b6|0x0,_0x5d7ed2[0x2]=_0x5d7ed2[0x2]+_0x3e2fb3|0x0,_0x5d7ed2[0x3]=_0x5d7ed2[0x3]+_0x30da12|0x0,_0x5d7ed2[0x4]=_0x5d7ed2[0x4]+_0x2aefbd|0x0;},'_doFinalize':function(){var _0xa75eb8=_0x31cac9,_0x483fa0=this[_0xa75eb8(0x433)],_0x4b1e92=_0x483fa0[_0xa75eb8(0x2ab)],_0x3a1662=this[_0xa75eb8(0x141)]*0x8,_0x2ef8e0=_0x483fa0[_0xa75eb8(0x2a4)]*0x8;return _0x4b1e92[_0x2ef8e0>>>0x5]|=0x80<<0x18-_0x2ef8e0%0x20,_0x4b1e92[(_0x2ef8e0+0x40>>>0x9<<0x4)+0xe]=Math[_0xa75eb8(0x41b)](_0x3a1662/0x100000000),_0x4b1e92[(_0x2ef8e0+0x40>>>0x9<<0x4)+0xf]=_0x3a1662,_0x483fa0['sigBytes']=_0x4b1e92[_0xa75eb8(0x39c)]*0x4,this[_0xa75eb8(0x15f)](),this['_hash'];},'clone':function(){var _0x2adbde=_0x31cac9,_0x31ec2d=_0x95fa6c[_0x2adbde(0x408)][_0x2adbde(0x3f8)](this);return _0x31ec2d[_0x2adbde(0x3b5)]=this[_0x2adbde(0x3b5)][_0x2adbde(0x408)](),_0x31ec2d;}});_0x30f673['SHA1']=_0x95fa6c[_0x31cac9(0x38c)](_0x120043),_0x30f673[_0x31cac9(0x210)]=_0x95fa6c[_0x31cac9(0x302)](_0x120043);}()),_0x388f7d[_0x170394(0x1bb)];}));}(qe)),qe[_0x2029c1(0x2c6)];}var ze={'exports':{}},kr=ze[_0x4b7416(0x2c6)],ii;function jr(){var _0x574652=_0x4b7416;return ii||(ii=0x1,function(_0x78bfbe,_0x4e042f){(function(_0x17620f,_0xfef77b){var _0x5533c3=_0x1bf9;_0x78bfbe[_0x5533c3(0x2c6)]=_0xfef77b(ne());}(kr,function(_0xb5277){(function(){var _0x359082=_0x1bf9,_0x132b70=_0xb5277,_0x2b9e1a=_0x132b70['lib'],_0x2db8ff=_0x2b9e1a[_0x359082(0x29a)],_0x3f77bc=_0x132b70[_0x359082(0x3f1)],_0x3e2680=_0x3f77bc['Utf8'],_0x393252=_0x132b70[_0x359082(0x1de)];_0x393252[_0x359082(0x36b)]=_0x2db8ff[_0x359082(0x431)]({'init':function(_0x242d30,_0x33b8e3){var _0x145c98=_0x359082;_0x242d30=this[_0x145c98(0x23e)]=new _0x242d30[(_0x145c98(0x390))](),typeof _0x33b8e3=='string'&&(_0x33b8e3=_0x3e2680[_0x145c98(0x1c1)](_0x33b8e3));var _0x1dc590=_0x242d30[_0x145c98(0x370)],_0x55d4fa=_0x1dc590*0x4;_0x33b8e3['sigBytes']>_0x55d4fa&&(_0x33b8e3=_0x242d30[_0x145c98(0x1ab)](_0x33b8e3)),_0x33b8e3[_0x145c98(0x29d)]();for(var _0x1be72d=this[_0x145c98(0x20f)]=_0x33b8e3['clone'](),_0x431e8d=this['_iKey']=_0x33b8e3[_0x145c98(0x408)](),_0x40c3b1=_0x1be72d[_0x145c98(0x2ab)],_0x2a9e4f=_0x431e8d[_0x145c98(0x2ab)],_0x4f9be1=0x0;_0x4f9be1<_0x1dc590;_0x4f9be1++)_0x40c3b1[_0x4f9be1]^=0x5c5c5c5c,_0x2a9e4f[_0x4f9be1]^=0x36363636;_0x1be72d[_0x145c98(0x2a4)]=_0x431e8d[_0x145c98(0x2a4)]=_0x55d4fa,this[_0x145c98(0x366)]();},'reset':function(){var _0x39b326=_0x359082,_0x4e8a45=this[_0x39b326(0x23e)];_0x4e8a45[_0x39b326(0x366)](),_0x4e8a45[_0x39b326(0x3c4)](this[_0x39b326(0x1f4)]);},'update':function(_0x188294){var _0x45bfc3=_0x359082;return this[_0x45bfc3(0x23e)][_0x45bfc3(0x3c4)](_0x188294),this;},'finalize':function(_0x32551a){var _0x309537=_0x359082,_0x26885d=this[_0x309537(0x23e)],_0x29b244=_0x26885d[_0x309537(0x1ab)](_0x32551a);_0x26885d['reset']();var _0x1ce28d=_0x26885d[_0x309537(0x1ab)](this[_0x309537(0x20f)][_0x309537(0x408)]()['concat'](_0x29b244));return _0x1ce28d;}});}());}));}(ze)),ze[_0x574652(0x2c6)];}var Br=Ye['exports'],ni;function Ui(){var _0x558069=_0x4b7416;return ni||(ni=0x1,function(_0x228ca3,_0xccdfc0){(function(_0xc37c8f,_0x3a5498,_0x3bcffb){var _0x5232a5=_0x1bf9;_0x228ca3[_0x5232a5(0x2c6)]=_0x3a5498(ne(),Hr(),jr());}(Br,function(_0x455c62){var _0x8dd503=_0x1bf9;return(function(){var _0xa6ec4b=_0x1bf9,_0x3ff54d=_0x455c62,_0x5b3e32=_0x3ff54d[_0xa6ec4b(0x229)],_0x4a4152=_0x5b3e32[_0xa6ec4b(0x29a)],_0x2f39a3=_0x5b3e32[_0xa6ec4b(0x30d)],_0x1a8e5f=_0x3ff54d[_0xa6ec4b(0x1de)],_0x3eb248=_0x1a8e5f[_0xa6ec4b(0x442)],_0x5986a9=_0x1a8e5f['EvpKDF']=_0x4a4152['extend']({'cfg':_0x4a4152[_0xa6ec4b(0x431)]({'keySize':0x80/0x20,'hasher':_0x3eb248,'iterations':0x1}),'init':function(_0x55f145){var _0x385178=_0xa6ec4b;this[_0x385178(0x299)]=this[_0x385178(0x299)]['extend'](_0x55f145);},'compute':function(_0x33e157,_0x1a19dd){var _0x4bffd5=_0xa6ec4b;for(var _0x4f87d8,_0x2852e0=this[_0x4bffd5(0x299)],_0x34cd68=_0x2852e0['hasher'][_0x4bffd5(0x319)](),_0x11055e=_0x2f39a3[_0x4bffd5(0x319)](),_0x5bb254=_0x11055e[_0x4bffd5(0x2ab)],_0xee4183=_0x2852e0['keySize'],_0x223859=_0x2852e0['iterations'];_0x5bb254[_0x4bffd5(0x39c)]<_0xee4183;){_0x4f87d8&&_0x34cd68[_0x4bffd5(0x3c4)](_0x4f87d8),_0x4f87d8=_0x34cd68[_0x4bffd5(0x3c4)](_0x33e157)[_0x4bffd5(0x1ab)](_0x1a19dd),_0x34cd68[_0x4bffd5(0x366)]();for(var _0x41e43c=0x1;_0x41e43c<_0x223859;_0x41e43c++)_0x4f87d8=_0x34cd68[_0x4bffd5(0x1ab)](_0x4f87d8),_0x34cd68[_0x4bffd5(0x366)]();_0x11055e[_0x4bffd5(0x16d)](_0x4f87d8);}return _0x11055e[_0x4bffd5(0x2a4)]=_0xee4183*0x4,_0x11055e;}});_0x3ff54d[_0xa6ec4b(0x2a2)]=function(_0x2962ff,_0x5047cc,_0x278c31){var _0x50db57=_0xa6ec4b;return _0x5986a9['create'](_0x278c31)[_0x50db57(0x31a)](_0x2962ff,_0x5047cc);};}()),_0x455c62[_0x8dd503(0x2a2)];}));}(Ye)),Ye[_0x558069(0x2c6)];}var Je={'exports':{}},Fr=Je[_0x4b7416(0x2c6)],ri;function _0x1977(){var _0x5c476b=['_onConflict','_members$','actions','searchParams','_fetchMissChangesets','getDeserializedSheetBlock','HEARTBEAT_INTERVAL','_transformRemoteChangesetByStateCache','PERMISSION_DENIED','GLOBAL_ROOMS_CNT_EXCEEDS','prototype','/universer-api/file/{fileID}/sign-url','JOIN_ROOM_FAILED','\x20-\x20','error','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','YUUMI_RATE_OVER_LIMIT','LICENSE_IMPORT_SIZE_EXCEEDED','catch','Utf8','default','onTransformRemoteChangesetByStateCache','location','_commentService','exports','SerializableCipher','LICENSE_MAX_UNITS_EXCEEDED','filter','status','defineProperty','UNKNOWN_CMD','onLocalMutation','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_toggleOffline','_state$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','joinRsp','_singleActiveUnitService','sessionTicket','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','COMMENT_UPDATE','createDecryptor','_schedule','getTime','offline','_throwTelemetryCollaborationNewChangeset','_getSendChangesetTimeout','entries','setWaitCount','LOGIN_URL_KEY','_getDownloadEndpointURL','msCrypto','csAckEvent','Decryptor','NO_OTHER_CLIENTS_EDITING','[SyncedState]:\x20received\x20acknowledgement.','enableAuthServer','PY_RUNTIME_SCRIPT_ERROR','/collaborator','&assign=','_transformUndoredo','COMPRESS_MUTATION_SEND','baseRev','_decreaseWaiting','event$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','c2Prime','appendMutation','_getSignURL','/universer-api/comb','list','/fetchmissing?from=','_initDependencies','COMPLETION_FINISHED','string','/universer-api/snapshot/','push','_snapshotServerService','unitInfo$','SEND_CHANGESET_TIMEOUT','CHANGESET_ACK','createInstance','JOIN','LIVESHARE_NEW_HOST','_createHmacHelper','socket\x20close','loadSheet','INVALID_ARGUMENT','hasher','fetchThroughInterceptors','_toggleOnline','crypto','JOIN_ROOM_FULL','getTypeOfUnitDisposed$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','WordArray','_commandService','\x0aCurrent:\x20','_initRequestHeader','unitID','decrypt','getFocusedUnit','getUnitId','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','_onMessage','src','_tryEnsureSocket','create','compute','synced','NOT_COLLAB','_instanceService','_candidateSocket','CONFLICT','UNIVER_PROJECT','ticket','getCollabEntity$','findIndex','replace','IDLE','_members','UNRECOGNIZED','session.join-failed','set','onSyncEditingCollabCursor','_resendWithTimeout','asObservable','updatePermissionObjEvent','max','_getUndoStack','[PendingState]:\x20received\x20rejection.','reconnect','transformMutationsWithChangeset','_shouldReportTelemetry','&source=','SHOULD_CLOSE_CONN','fetchMiss','_replaceFileID','getTypeOfUnitAdded$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','now','ALREADY_EXISTS','_undoRedoService','_doProcessBlock','getImage','_waitCount','close','_localCacheService','_showConflictNotification','byteLength','EXCHANGE_SIGN_URL_SERVER_URL_KEY','size','PENDING','APPLY_REVISION_CONFILICT','_reverseMap','_createSocketURL','csShouldRetryEvent','_clearUndo','_type','reqId','awaitingChangeset','status$','join','image/jpg','_onCombEvent','_scheduleCollaborationTimeoutTimer','COLLAB_WEB_SOCKET_URL','LEAVE','encode','_clearTimeoutTimer','[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.','_handlerCallback','changesets','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','COMPRESS_MUTATION_APPLY','reverse','[CollaborationSession]','onTransformSelections','getMemberID','range','submit\x20changeset\x20error!','dispose','commentUpdateEvent','LIVESHARE_TERMINATE','reset','slice','_cipher','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','image/gif','HMAC','reject','objects','_rescheduleHeartbeat','_getAPIPrefix','blockSize','fetch_missing','_transformSelections','DEFAULT_FILE_NAME','Cipher','keySize','_collabSessionService','JOINING','map','permissionRejEvent','NEW_CHANGESETS','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','message$','then','createEncryptor','CONNECTOR_DATA_TOO_LARGE','newCsEvent','FAIL','Undefined','cmd','readAsDataURL','csRejEvent','toLowerCase','awaiting_with_pending','_onRemoteRetry','ceil','_changesetReqId','unpad','_createHelper','runId','type','_logService','init','fetching\x20missing\x20changesets\x20from\x20','charAt','loginUrlKey','editingUnit','createCollaborator','_entityInit$','toggleOnline','find','close$','isArray','name','length','onMissingChangesets','_iv','_revisionService','LIVESHARE_FETCH_OPERATIONS','BASE64','_disableEditing','_eventService','transformUndoRedo','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_sender','1580405UOnavR','UNIVER_DOC','SYNCED','auth.needGotoLoginAlert','/unit/','collaborators','OTHER_CLIENT_EDITING','_onLocalMutation','\x20in\x20_schedule.','m2Prime','complete','salt','HttpImport','_hash','_mode','fetchMissingChangesets','32304fKkmJe','_clearScheduledTask','__Key__','_sessionStatus$','c1Prime','state$','pluginName','indexOf','[CollaborationUndoRedoService]','registerHTTPInterceptor','_timeoutTimer','_onJoinRoomEvent','update','ENSURE_SNAPSHOT_EXECUTION','deepClone','_keyPriorReset','_substituteRedoStack','capture','onRemoteRetry','_univerInstanceService','_permissionService','_collaborationTimeoutTimer','_event$','_prevBlock','headers','ONLINE','CHANGESET_REJ','_compressMutationService','UnitSnapshot','transformStack\x20failed!','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','UnitEmbedded','_registerDependencies','setShowComponents','_clearLocalCache','image/png','override','withCredentials','awaiting','?url=','_collaborationSessionService','AUTHZ_URL_KEY','has','_injector','UNKNOWN_CODE','getInterceptPoints','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','state','loadOfflineData','send','sendChangesetTimeout','subUnitId','_invKeySchedule','repeat','subject','_minBufferSize','_onRemoteChangeset','enc','/new_changes','collabWebSocketUrl','_socket$','SUBMIT_CHANGESET','/universer-api/snapshot','[CollaborationSessionService]','call','Could\x20not\x20dynamically\x20require\x20\x22','requestParams','requireSession','SUCCUSS','delete','unknown','encrypt','UNIVER_SLIDE','padding','YUUMI_SUBSCRIPTION_NOT_FOUND','_getCtorByUniverType','ws://127.0.0.1:8000/universer-api/comb/connect','_socketService','_undoStacks','/universer-api/oidc/authpage','clone','UNIVER_SHEET','mutations','_getRedoStack','UNIVER_UNKNOWN','disableLocalCache','getConfig','_exhaustRemoteChangesetQueue','univer-pro.collaboration-client.network-condition.service','UPDATE_CURSOR','_unitID','x-univer-host','setCurrentUser','_clearHeartbeatTimer','readInt32LE','/-/object/-/batch_allowed','stringify','commentUpdate$','_config','floor','_key','onRemoteRej','onRemoteChangeset','_state','_userManagerService','_onConnectionFailed','reduce','LICENSE_EXPORT_SIZE_EXCEEDED','_waitForHeartbeatResponse','Pkcs7','random','Hasher','sid','min','_resendTimer','RECV','conflict','_incrementRevisionNumber','_keySchedule','_transformRemoteChangesetByIMECache','_transformStateCache','extend','_clearRedo','_data','getUnitStatus$','subscribe','UPDATE_PERMISSION_OBJ','executeCommand','HmacMD5','_listenToNetworkCondition','_collaborationUIEventService','People','updateCursorEvent','dispose$','transformChangesets','_createInitialStateImpl','_emitMembers','byteOffset','MD5','APPLY_REJECT','getActiveSheet','collaboratorID','SNAPSHOT_HAS_BEEN_REMOVED','/role','uniscriptRunEvent','randomBytes','abs','MUTATION','Error\x20on\x20receiving\x20event','getUnit','substr','_nDataBytes','/block/','socketService','univer-pro.collaboration-client.single-active-unit-service','SNAPSHOT_SERVER_URL_KEY','Malformed\x20UTF-8\x20data','_executeRemoteChangeset','toString','onCommandExecuted','_handler','/universer-api/uniscript','change$','Latin1','body','origin','_telemetryService','batchAllowed','_configService','13881224dXKSND','session.room-cnt-exceeds','_telemetryInfo','_onRemoteRejected','userID','APPLY_NON_SEQUENTIAL_REVISION','_stopTelemetryCollaborationNewChangeset','_httpService','ivSize','[DataLoaderService]','[FetchMissState]','_socketMessageSubscription','_process','Hex','CBC','_networkConditionService','error$','UNIVER_COLLABORATION_CLIENT_PLUGIN','readyForCollab','_onOffline','file','listCollaborators','getSnapshotAPIPath','HttpExport','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','_commentUpdate$','concat','JOIN_ROOM_NOT_EXISTS','connection\x20error','Base64','objectActions','NOT_FOUND','resend','hasOwnProperty','Encryptor','_replayCachedMutations','textRanges','onSendChangeset','CHANGESET_SHOULD_RETRY','mixIn','url','_updateLocalCache','getLatestCsReqIdBySid','_retryCount','image/jpeg','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','deleteCollaborator','pipe','pending','objectID','BlockCipher','socket$','setConfig','_startTelemetryCollaborationNewChangeset','SOCKET_FAILED_RETRY','_awaitingChangeset','rev','unitId','snapshot','_getCurrentRevision','isPermissionRej','_createHandler','_onRecvEvent','_DEC_XFORM_MODE','1452483buJtex','onStarting','liveShareOperation','_getAPIPrefixPath','getMember','saveSnapshot','FETCH_MISSING','data','_createSocket','RETRY_CONNECTING_MAX_COUNT','_unlockTransition','post','PERSON','_collaborationPaused','INTERNAL_ERROR','localCacheService','liveShareNewHost','getValue','failed\x20to\x20apply\x20missed\x20changesets!','_initUnitPermissionChange','getRandomValues','_scheduleCompleteTimestamp','ERROR_EXCEED_SIZE','saveSheetBlock','finalize','/resources','action','[PendingState]:\x20unhandled\x20univer\x20type:\x20','randomUUID','_xformMode','_onFetchMissResult','pad','href','apply','INGEST','retryConnectingInterval','fromCharCode','next','/-/object/list','image/bmp','SHA1','result','_initCloseConn','routeKey','OpenSSL','_retryConnectingTimer','parse','every','debug','authzUrl','execute','collaboration-client.local-cache-service','_getSessionTicket','enableOfflineEditing','shouldCloseConn','_acknowledgedAwaitingChangeset','kdf','_transformStack','onTransformIME','originalMeta','session','_sendHeartbeat','forEach','_sessions','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','onTransformState','21769rLVInU','_resendTimeout','FETCH_MISS','function','sessionStatus','_transitionLocked','refreshPermission','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','getCollabEntity','algo','FileId','LOCAL_CACHE_INTERVAL','_socket','_sendHeartbeatTimer','_initMergeInterceptor','/universer-api/authz','getUnitOnRev','addImageSourceCache','_loadDoc','_queuedRemoteChangesets','_submitChangeset','memberID','_entities','avatar','_getLoginPath','TOO_MANY_REQUESTS','APPLY_PERMISSION_DENIED','USERS_LEAVE','_localeService','_nRounds','socket\x20open.','_iKey','closeSession','_sendingTimer','eventID','?size=','members$','_onConnectionOpen','[SyncedState]:\x20received\x20rejection.','_startCollaboration','resourceIDs','processBlock','format','OTHER_CLIENTS_EDITING','HEARTBEAT_TIMEOUT','method','ciphertext','onTransformRemoteChangesetByIMECache','_snapshotService','session.room-permission-denied','BlockCipherMode','_ENC_XFORM_MODE','splice','collaboration-client.config','transformSelections','_updateStatus','disposeWithMe','[CollaborationState]:\x20apply\x20error!','_oKey','HmacSHA1','key','_doCryptBlock','emitEvent','YUUMI_UNABLE_LOAD_URL','_imageSourceCache','UNAUTHENTICATED','sheets','LIVESHARE_OPERATION','unsubscribe','focused$','updateOfflineData','onRemoteAck','__creator','updateMember','_updateState','fromCollab','YUUMI_URL_COL_OUT_OF_RANGE','SUBMIT_CHANGESET_TIMEOUT','interceptor','rng','_pendingMutations','_loadSheet','save\x20fail\x20reason\x20is\x20','params','lib','_remoteChangesetQueue','_HTTPService','JOIN_ROOM_PERMISSION_DENIED','_init','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','/allowed','UNISCRIPT_RUN','12CkeLsy','CHANGESET_REVISION_CONFILICT','_sheetTransformSelectionsService','_status$','encodeURIComponent','_tryReconnect','getCurrentUser','application/json','_createInitialState','3pZPTzI','createSocket','[OfflineState]:\x20received\x20acknowledgement.','56710WTtpoL','_hasher','_isPermissionRej','OPTIONAL','StreamCipher','putCollaborators','/object/','COLLAB_SUBMIT_CHANGESET_URL','BufferedBlockAlgorithm','CLOSE_ROOM','_onUserLeave','_append','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','PSEUDO_FETCH_MISSING_RESULT','_roomMembers','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_transformService','selections','APPLY_DUPLICATED','values','resolve','OFFLINE','getSheetBlock','AES','objectType','PasswordBasedCipher','_socketReady','entityInit$','6HUrtqL','_transformIMECache','code','put','_substituteUndoStack','toggleOffline','USERS_ENTER','telemetry\x20info\x20is\x20not\x20initialized','69318XoMGFl','_change$','add','getCurrentRevOfUnit','uploadFileServerUrl','from','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','removeMember','_onRemoteACK','LIVESHARE_REQUEST_HOST','getOwnPropertyDescriptor','collabSubmitChangesetUrl','_lockTransition','SOCKET_FAILED','unitId\x20is\x20not\x20found','_unitInfo$','\x20to\x20','8059142hkyQsX','HELLO','patch','_removeRoom','_clearCollaborationTimeoutTimer','_memberService','encryptBlock','get','_syncEditingCollabCursor','decryptBlock','_doFinalize','sessionStatus$','onlyLocal','UNDEFINED','_http','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','updatePermissionPoint','__esModule','UUID','open$','roles','enableSingleActiveInstanceLock','_map','&to=','_roomCreated$','univer-pro.collaboration-client-socket-service','{fileID}','saveImage','MSG_FOR_ERROR','HEARTBEAT','[CollaborationEntity]','NoPadding','POST','pauseCollaboration','_joinRoom','getWorkbookSelections','SNAPSHOT_INVALID_SNAPSHOT','revision','onload','cfg','Base','clear','$super','clamp','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','target','1120ZkmJDc','_checkMissing','EvpKDF','unit-cache-','sigBytes','getUnitType','charCodeAt','onMissedChangesetFetched','_changesetSessionId','localeService','startTime','words','loadDoc','incrementRevOfUnit'];_0x1977=function(){return _0x5c476b;};return _0x1977();}function Ai(){var _0x29ee04=_0x4b7416;return ri||(ri=0x1,function(_0x4c6379,_0x3a8996){(function(_0x3ab1cf,_0x5260f1,_0x38ed39){var _0x3d6831=_0x1bf9;_0x4c6379[_0x3d6831(0x2c6)]=_0x5260f1(ne(),Ui());}(Fr,function(_0x19331f){var _0x339836=_0x1bf9;_0x19331f[_0x339836(0x229)][_0x339836(0x374)]||function(_0x172437){var _0x23d5ca=_0x339836,_0x564ff7=_0x19331f,_0x163cd8=_0x564ff7['lib'],_0x5bee73=_0x163cd8[_0x23d5ca(0x29a)],_0x5ac222=_0x163cd8['WordArray'],_0x3149b0=_0x163cd8[_0x23d5ca(0x245)],_0x4a61bb=_0x564ff7[_0x23d5ca(0x3f1)];_0x4a61bb[_0x23d5ca(0x2c1)];var _0x445498=_0x4a61bb[_0x23d5ca(0x170)],_0x599016=_0x564ff7[_0x23d5ca(0x1de)],_0x49a884=_0x599016[_0x23d5ca(0x2a2)],_0x19acaf=_0x163cd8[_0x23d5ca(0x374)]=_0x3149b0[_0x23d5ca(0x431)]({'cfg':_0x5bee73['extend'](),'createEncryptor':function(_0x5e86f4,_0x3761cd){var _0x4bdaee=_0x23d5ca;return this[_0x4bdaee(0x319)](this[_0x4bdaee(0x208)],_0x5e86f4,_0x3761cd);},'createDecryptor':function(_0x258832,_0x5c2be3){var _0x47d47c=_0x23d5ca;return this['create'](this[_0x47d47c(0x192)],_0x258832,_0x5c2be3);},'init':function(_0x58e040,_0x5a7d6e,_0xc58550){var _0x48f176=_0x23d5ca;this['cfg']=this[_0x48f176(0x299)][_0x48f176(0x431)](_0xc58550),this[_0x48f176(0x1b0)]=_0x58e040,this[_0x48f176(0x41c)]=_0x5a7d6e,this[_0x48f176(0x366)]();},'reset':function(){var _0x1e34f6=_0x23d5ca;_0x3149b0['reset'][_0x1e34f6(0x3f8)](this),this['_doReset']();},'process':function(_0x1e6900){var _0x3fede8=_0x23d5ca;return this[_0x3fede8(0x248)](_0x1e6900),this['_process']();},'finalize':function(_0x1cfafa){var _0x13b2a4=_0x23d5ca;_0x1cfafa&&this['_append'](_0x1cfafa);var _0x563ca7=this[_0x13b2a4(0x27c)]();return _0x563ca7;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x1ea5f8(_0x756dcc){var _0x43cf19=_0x1bf9;return typeof _0x756dcc==_0x43cf19(0x2f8)?_0x2d1d6e:_0x345ded;}return function(_0x1980df){return{'encrypt':function(_0x93ee3f,_0x4d2930,_0x3346c8){return _0x1ea5f8(_0x4d2930)['encrypt'](_0x1980df,_0x93ee3f,_0x4d2930,_0x3346c8);},'decrypt':function(_0x3d9b4b,_0x83f43b,_0x175f5c){var _0x27cf76=_0x1bf9;return _0x1ea5f8(_0x83f43b)[_0x27cf76(0x312)](_0x1980df,_0x3d9b4b,_0x83f43b,_0x175f5c);}};};}())});_0x163cd8[_0x23d5ca(0x241)]=_0x19acaf[_0x23d5ca(0x431)]({'_doFinalize':function(){var _0x1d413c=_0x23d5ca,_0x1f3134=this[_0x1d413c(0x15f)](!0x0);return _0x1f3134;},'blockSize':0x1});var _0x54eea3=_0x564ff7['mode']={},_0x127f78=_0x163cd8[_0x23d5ca(0x207)]=_0x5bee73[_0x23d5ca(0x431)]({'createEncryptor':function(_0x4c5aab,_0x56d0e7){var _0x580bdc=_0x23d5ca;return this['Encryptor'][_0x580bdc(0x319)](_0x4c5aab,_0x56d0e7);},'createDecryptor':function(_0x1b14b5,_0x330275){var _0x371f05=_0x23d5ca;return this['Decryptor'][_0x371f05(0x319)](_0x1b14b5,_0x330275);},'init':function(_0x2054c8,_0x592158){var _0x20ab40=_0x23d5ca;this[_0x20ab40(0x368)]=_0x2054c8,this[_0x20ab40(0x39e)]=_0x592158;}}),_0x5bb716=_0x54eea3[_0x23d5ca(0x161)]=(function(){var _0x2fc47a=_0x23d5ca,_0x22bfd5=_0x127f78[_0x2fc47a(0x431)]();_0x22bfd5[_0x2fc47a(0x175)]=_0x22bfd5['extend']({'processBlock':function(_0x25252e,_0x2fe4c5){var _0x23f881=_0x2fc47a,_0x169276=this[_0x23f881(0x368)],_0x335b34=_0x169276[_0x23f881(0x370)];_0xf6d3e6[_0x23f881(0x3f8)](this,_0x25252e,_0x2fe4c5,_0x335b34),_0x169276[_0x23f881(0x278)](_0x25252e,_0x2fe4c5),this['_prevBlock']=_0x25252e['slice'](_0x2fe4c5,_0x2fe4c5+_0x335b34);}}),_0x22bfd5[_0x2fc47a(0x2e3)]=_0x22bfd5[_0x2fc47a(0x431)]({'processBlock':function(_0xf6b832,_0x42b0ec){var _0x25edaf=_0x2fc47a,_0x3605fc=this[_0x25edaf(0x368)],_0x596623=_0x3605fc[_0x25edaf(0x370)],_0x90c797=_0xf6b832[_0x25edaf(0x367)](_0x42b0ec,_0x42b0ec+_0x596623);_0x3605fc[_0x25edaf(0x27b)](_0xf6b832,_0x42b0ec),_0xf6d3e6[_0x25edaf(0x3f8)](this,_0xf6b832,_0x42b0ec,_0x596623),this[_0x25edaf(0x3cf)]=_0x90c797;}});function _0xf6d3e6(_0x3302f5,_0x39ca42,_0x3103ea){var _0x1a8441=_0x2fc47a,_0x496e23,_0x156dcf=this[_0x1a8441(0x39e)];_0x156dcf?(_0x496e23=_0x156dcf,this[_0x1a8441(0x39e)]=_0x172437):_0x496e23=this[_0x1a8441(0x3cf)];for(var _0x236e9c=0x0;_0x236e9c<_0x3103ea;_0x236e9c++)_0x3302f5[_0x39ca42+_0x236e9c]^=_0x496e23[_0x236e9c];}return _0x22bfd5;}()),_0x3f2a14=_0x564ff7[_0x23d5ca(0x1b2)]={},_0x2599e3=_0x3f2a14[_0x23d5ca(0x425)]={'pad':function(_0x1847e9,_0xecf8cd){var _0x40a74a=_0x23d5ca;for(var _0x49c764=_0xecf8cd*0x4,_0x8bf3bc=_0x49c764-_0x1847e9['sigBytes']%_0x49c764,_0x52c8bc=_0x8bf3bc<<0x18|_0x8bf3bc<<0x10|_0x8bf3bc<<0x8|_0x8bf3bc,_0x25dd54=[],_0x5c0326=0x0;_0x5c0326<_0x8bf3bc;_0x5c0326+=0x4)_0x25dd54[_0x40a74a(0x2fa)](_0x52c8bc);var _0xf0f3d4=_0x5ac222[_0x40a74a(0x319)](_0x25dd54,_0x8bf3bc);_0x1847e9[_0x40a74a(0x16d)](_0xf0f3d4);},'unpad':function(_0x1ca031){var _0x269141=_0x23d5ca,_0x5572af=_0x1ca031[_0x269141(0x2ab)][_0x1ca031[_0x269141(0x2a4)]-0x1>>>0x2]&0xff;_0x1ca031[_0x269141(0x2a4)]-=_0x5572af;}};_0x163cd8[_0x23d5ca(0x185)]=_0x19acaf[_0x23d5ca(0x431)]({'cfg':_0x19acaf[_0x23d5ca(0x299)][_0x23d5ca(0x431)]({'mode':_0x5bb716,'padding':_0x2599e3}),'reset':function(){var _0x5145c2=_0x23d5ca,_0x53e18e;_0x19acaf['reset'][_0x5145c2(0x3f8)](this);var _0x366c95=this[_0x5145c2(0x299)],_0x42c674=_0x366c95['iv'],_0x59dc20=_0x366c95['mode'];this[_0x5145c2(0x1b0)]==this[_0x5145c2(0x208)]?_0x53e18e=_0x59dc20[_0x5145c2(0x37e)]:(_0x53e18e=_0x59dc20['createDecryptor'],this[_0x5145c2(0x3ef)]=0x1),this[_0x5145c2(0x3b6)]&&this[_0x5145c2(0x3b6)][_0x5145c2(0x21d)]==_0x53e18e?this[_0x5145c2(0x3b6)][_0x5145c2(0x390)](this,_0x42c674&&_0x42c674[_0x5145c2(0x2ab)]):(this[_0x5145c2(0x3b6)]=_0x53e18e[_0x5145c2(0x3f8)](_0x59dc20,this,_0x42c674&&_0x42c674[_0x5145c2(0x2ab)]),this[_0x5145c2(0x3b6)][_0x5145c2(0x21d)]=_0x53e18e);},'_doProcessBlock':function(_0xf54fc2,_0x13b650){var _0x1001d0=_0x23d5ca;this[_0x1001d0(0x3b6)][_0x1001d0(0x1fe)](_0xf54fc2,_0x13b650);},'_doFinalize':function(){var _0x1f73bc=_0x23d5ca,_0x463a58,_0x47f1d4=this[_0x1f73bc(0x299)][_0x1f73bc(0x401)];return this[_0x1f73bc(0x1b0)]==this[_0x1f73bc(0x208)]?(_0x47f1d4[_0x1f73bc(0x1b2)](this['_data'],this[_0x1f73bc(0x370)]),_0x463a58=this[_0x1f73bc(0x15f)](!0x0)):(_0x463a58=this[_0x1f73bc(0x15f)](!0x0),_0x47f1d4[_0x1f73bc(0x38b)](_0x463a58)),_0x463a58;},'blockSize':0x80/0x20});var _0x33d420=_0x163cd8['CipherParams']=_0x5bee73[_0x23d5ca(0x431)]({'init':function(_0xb8c2a2){var _0x100f0a=_0x23d5ca;this[_0x100f0a(0x17a)](_0xb8c2a2);},'toString':function(_0x309bf0){var _0xcdd3d3=_0x23d5ca;return(_0x309bf0||this['formatter'])[_0xcdd3d3(0x418)](this);}}),_0x3ad951=_0x564ff7['format']={},_0x1ad4e5=_0x3ad951[_0x23d5ca(0x1bf)]={'stringify':function(_0x2c7411){var _0x565e8f=_0x23d5ca,_0x57f423,_0xd3024e=_0x2c7411['ciphertext'],_0x3c08dd=_0x2c7411[_0x565e8f(0x3b3)];return _0x3c08dd?_0x57f423=_0x5ac222[_0x565e8f(0x319)]([0x53616c74,0x65645f5f])['concat'](_0x3c08dd)[_0x565e8f(0x16d)](_0xd3024e):_0x57f423=_0xd3024e,_0x57f423[_0x565e8f(0x148)](_0x445498);},'parse':function(_0x175a80){var _0x5b5827=_0x23d5ca,_0x15a0be,_0xdb937c=_0x445498['parse'](_0x175a80),_0x11e574=_0xdb937c[_0x5b5827(0x2ab)];return _0x11e574[0x0]==0x53616c74&&_0x11e574[0x1]==0x65645f5f&&(_0x15a0be=_0x5ac222['create'](_0x11e574[_0x5b5827(0x367)](0x2,0x4)),_0x11e574[_0x5b5827(0x209)](0x0,0x4),_0xdb937c[_0x5b5827(0x2a4)]-=0x10),_0x33d420[_0x5b5827(0x319)]({'ciphertext':_0xdb937c,'salt':_0x15a0be});}},_0x345ded=_0x163cd8[_0x23d5ca(0x2c7)]=_0x5bee73[_0x23d5ca(0x431)]({'cfg':_0x5bee73[_0x23d5ca(0x431)]({'format':_0x1ad4e5}),'encrypt':function(_0x1ed328,_0x2e2fd6,_0x31ea9b,_0x34a386){var _0x52433a=_0x23d5ca;_0x34a386=this[_0x52433a(0x299)][_0x52433a(0x431)](_0x34a386);var _0x56395b=_0x1ed328[_0x52433a(0x37e)](_0x31ea9b,_0x34a386),_0xcb8614=_0x56395b[_0x52433a(0x1ab)](_0x2e2fd6),_0x5c0e5d=_0x56395b[_0x52433a(0x299)];return _0x33d420['create']({'ciphertext':_0xcb8614,'key':_0x31ea9b,'iv':_0x5c0e5d['iv'],'algorithm':_0x1ed328,'mode':_0x5c0e5d['mode'],'padding':_0x5c0e5d[_0x52433a(0x401)],'blockSize':_0x1ed328[_0x52433a(0x370)],'formatter':_0x34a386[_0x52433a(0x1ff)]});},'decrypt':function(_0x9aa25,_0x3d19e1,_0x4f7e12,_0x4ea4e1){var _0x233114=_0x23d5ca;_0x4ea4e1=this[_0x233114(0x299)][_0x233114(0x431)](_0x4ea4e1),_0x3d19e1=this['_parse'](_0x3d19e1,_0x4ea4e1[_0x233114(0x1ff)]);var _0x1f2355=_0x9aa25[_0x233114(0x2d7)](_0x4f7e12,_0x4ea4e1)[_0x233114(0x1ab)](_0x3d19e1[_0x233114(0x203)]);return _0x1f2355;},'_parse':function(_0x216012,_0x544c32){var _0x470379=_0x23d5ca;return typeof _0x216012==_0x470379(0x2f8)?_0x544c32[_0x470379(0x1c1)](_0x216012,this):_0x216012;}}),_0x56a193=_0x564ff7[_0x23d5ca(0x1cb)]={},_0x5b2db8=_0x56a193['OpenSSL']={'execute':function(_0x42ce29,_0x53cc19,_0x1b25ce,_0xe00eac,_0x12df6c){var _0x47e090=_0x23d5ca;if(_0xe00eac||(_0xe00eac=_0x5ac222[_0x47e090(0x426)](0x40/0x8)),_0x12df6c)var _0xfa4dc3=_0x49a884[_0x47e090(0x319)]({'keySize':_0x53cc19+_0x1b25ce,'hasher':_0x12df6c})['compute'](_0x42ce29,_0xe00eac);else var _0xfa4dc3=_0x49a884[_0x47e090(0x319)]({'keySize':_0x53cc19+_0x1b25ce})[_0x47e090(0x31a)](_0x42ce29,_0xe00eac);var _0xf4c901=_0x5ac222[_0x47e090(0x319)](_0xfa4dc3['words'][_0x47e090(0x367)](_0x53cc19),_0x1b25ce*0x4);return _0xfa4dc3['sigBytes']=_0x53cc19*0x4,_0x33d420[_0x47e090(0x319)]({'key':_0xfa4dc3,'iv':_0xf4c901,'salt':_0xe00eac});}},_0x2d1d6e=_0x163cd8[_0x23d5ca(0x256)]=_0x345ded[_0x23d5ca(0x431)]({'cfg':_0x345ded['cfg'][_0x23d5ca(0x431)]({'kdf':_0x5b2db8}),'encrypt':function(_0x1cc652,_0x473a05,_0x4dac77,_0x48c195){var _0x2a84ea=_0x23d5ca;_0x48c195=this[_0x2a84ea(0x299)][_0x2a84ea(0x431)](_0x48c195);var _0x3179e4=_0x48c195[_0x2a84ea(0x1cb)][_0x2a84ea(0x1c5)](_0x4dac77,_0x1cc652[_0x2a84ea(0x375)],_0x1cc652['ivSize'],_0x48c195['salt'],_0x48c195['hasher']);_0x48c195['iv']=_0x3179e4['iv'];var _0x36f162=_0x345ded[_0x2a84ea(0x3ff)][_0x2a84ea(0x3f8)](this,_0x1cc652,_0x473a05,_0x3179e4[_0x2a84ea(0x211)],_0x48c195);return _0x36f162['mixIn'](_0x3179e4),_0x36f162;},'decrypt':function(_0x58a15e,_0x228cf8,_0x5d2fc2,_0x328d30){var _0x1024cd=_0x23d5ca;_0x328d30=this['cfg'][_0x1024cd(0x431)](_0x328d30),_0x228cf8=this['_parse'](_0x228cf8,_0x328d30[_0x1024cd(0x1ff)]);var _0x3ea92a=_0x328d30[_0x1024cd(0x1cb)]['execute'](_0x5d2fc2,_0x58a15e[_0x1024cd(0x375)],_0x58a15e[_0x1024cd(0x15b)],_0x228cf8[_0x1024cd(0x3b3)],_0x328d30[_0x1024cd(0x306)]);_0x328d30['iv']=_0x3ea92a['iv'];var _0x161f56=_0x345ded[_0x1024cd(0x312)][_0x1024cd(0x3f8)](this,_0x58a15e,_0x228cf8,_0x3ea92a[_0x1024cd(0x211)],_0x328d30);return _0x161f56;}});}();}));}(Je)),Je[_0x29ee04(0x2c6)];}var Vr=Ve[_0x4b7416(0x2c6)],si;function Gr(){return si||(si=0x1,function(_0x425c48,_0x2f9d45){(function(_0x1b31b7,_0x42c91b,_0x18b25d){var _0x5f1b4d=_0x1bf9;_0x425c48[_0x5f1b4d(0x2c6)]=_0x42c91b(ne(),wi(),Mr(),Ui(),Ai());}(Vr,function(_0x274069){return(function(){var _0x6bb6ad=_0x1bf9,_0x268a77=_0x274069,_0x50c741=_0x268a77[_0x6bb6ad(0x229)],_0x1c96a8=_0x50c741['BlockCipher'],_0x87ce2c=_0x268a77[_0x6bb6ad(0x1de)],_0x17c15c=[],_0x26e882=[],_0x53ace2=[],_0xafc586=[],_0x14173a=[],_0x5c016d=[],_0x1491ca=[],_0x4ca0f4=[],_0x2a5d81=[],_0x19bbfc=[];(function(){for(var _0x538bc5=[],_0x308fd2=0x0;_0x308fd2<0x100;_0x308fd2++)_0x308fd2<0x80?_0x538bc5[_0x308fd2]=_0x308fd2<<0x1:_0x538bc5[_0x308fd2]=_0x308fd2<<0x1^0x11b;for(var _0x145f06=0x0,_0x13a211=0x0,_0x308fd2=0x0;_0x308fd2<0x100;_0x308fd2++){var _0x134724=_0x13a211^_0x13a211<<0x1^_0x13a211<<0x2^_0x13a211<<0x3^_0x13a211<<0x4;_0x134724=_0x134724>>>0x8^_0x134724&0xff^0x63,_0x17c15c[_0x145f06]=_0x134724,_0x26e882[_0x134724]=_0x145f06;var _0x59f654=_0x538bc5[_0x145f06],_0x3a8ff2=_0x538bc5[_0x59f654],_0x5b3db6=_0x538bc5[_0x3a8ff2],_0x38d5cb=_0x538bc5[_0x134724]*0x101^_0x134724*0x1010100;_0x53ace2[_0x145f06]=_0x38d5cb<<0x18|_0x38d5cb>>>0x8,_0xafc586[_0x145f06]=_0x38d5cb<<0x10|_0x38d5cb>>>0x10,_0x14173a[_0x145f06]=_0x38d5cb<<0x8|_0x38d5cb>>>0x18,_0x5c016d[_0x145f06]=_0x38d5cb;var _0x38d5cb=_0x5b3db6*0x1010101^_0x3a8ff2*0x10001^_0x59f654*0x101^_0x145f06*0x1010100;_0x1491ca[_0x134724]=_0x38d5cb<<0x18|_0x38d5cb>>>0x8,_0x4ca0f4[_0x134724]=_0x38d5cb<<0x10|_0x38d5cb>>>0x10,_0x2a5d81[_0x134724]=_0x38d5cb<<0x8|_0x38d5cb>>>0x18,_0x19bbfc[_0x134724]=_0x38d5cb,_0x145f06?(_0x145f06=_0x59f654^_0x538bc5[_0x538bc5[_0x538bc5[_0x5b3db6^_0x59f654]]],_0x13a211^=_0x538bc5[_0x538bc5[_0x13a211]]):_0x145f06=_0x13a211=0x1;}}());var _0x376bb3=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x14045c=_0x87ce2c[_0x6bb6ad(0x254)]=_0x1c96a8[_0x6bb6ad(0x431)]({'_doReset':function(){var _0x5c05b4=_0x6bb6ad,_0x58578b;if(!(this[_0x5c05b4(0x1f2)]&&this[_0x5c05b4(0x3c7)]===this[_0x5c05b4(0x41c)])){for(var _0x256815=this[_0x5c05b4(0x3c7)]=this[_0x5c05b4(0x41c)],_0x2e75fc=_0x256815[_0x5c05b4(0x2ab)],_0x37f85e=_0x256815['sigBytes']/0x4,_0x24a13f=this['_nRounds']=_0x37f85e+0x6,_0x36e89e=(_0x24a13f+0x1)*0x4,_0x2bd718=this[_0x5c05b4(0x42e)]=[],_0x8446fa=0x0;_0x8446fa<_0x36e89e;_0x8446fa++)_0x8446fa<_0x37f85e?_0x2bd718[_0x8446fa]=_0x2e75fc[_0x8446fa]:(_0x58578b=_0x2bd718[_0x8446fa-0x1],_0x8446fa%_0x37f85e?_0x37f85e>0x6&&_0x8446fa%_0x37f85e==0x4&&(_0x58578b=_0x17c15c[_0x58578b>>>0x18]<<0x18|_0x17c15c[_0x58578b>>>0x10&0xff]<<0x10|_0x17c15c[_0x58578b>>>0x8&0xff]<<0x8|_0x17c15c[_0x58578b&0xff]):(_0x58578b=_0x58578b<<0x8|_0x58578b>>>0x18,_0x58578b=_0x17c15c[_0x58578b>>>0x18]<<0x18|_0x17c15c[_0x58578b>>>0x10&0xff]<<0x10|_0x17c15c[_0x58578b>>>0x8&0xff]<<0x8|_0x17c15c[_0x58578b&0xff],_0x58578b^=_0x376bb3[_0x8446fa/_0x37f85e|0x0]<<0x18),_0x2bd718[_0x8446fa]=_0x2bd718[_0x8446fa-_0x37f85e]^_0x58578b);for(var _0x56001c=this[_0x5c05b4(0x3ec)]=[],_0x7b6acf=0x0;_0x7b6acf<_0x36e89e;_0x7b6acf++){var _0x8446fa=_0x36e89e-_0x7b6acf;if(_0x7b6acf%0x4)var _0x58578b=_0x2bd718[_0x8446fa];else var _0x58578b=_0x2bd718[_0x8446fa-0x4];_0x7b6acf<0x4||_0x8446fa<=0x4?_0x56001c[_0x7b6acf]=_0x58578b:_0x56001c[_0x7b6acf]=_0x1491ca[_0x17c15c[_0x58578b>>>0x18]]^_0x4ca0f4[_0x17c15c[_0x58578b>>>0x10&0xff]]^_0x2a5d81[_0x17c15c[_0x58578b>>>0x8&0xff]]^_0x19bbfc[_0x17c15c[_0x58578b&0xff]];}}},'encryptBlock':function(_0x456180,_0xf52e70){var _0x57cc54=_0x6bb6ad;this[_0x57cc54(0x212)](_0x456180,_0xf52e70,this['_keySchedule'],_0x53ace2,_0xafc586,_0x14173a,_0x5c016d,_0x17c15c);},'decryptBlock':function(_0xe1b2cb,_0x177454){var _0x1ddb46=_0x6bb6ad,_0x184319=_0xe1b2cb[_0x177454+0x1];_0xe1b2cb[_0x177454+0x1]=_0xe1b2cb[_0x177454+0x3],_0xe1b2cb[_0x177454+0x3]=_0x184319,this[_0x1ddb46(0x212)](_0xe1b2cb,_0x177454,this[_0x1ddb46(0x3ec)],_0x1491ca,_0x4ca0f4,_0x2a5d81,_0x19bbfc,_0x26e882);var _0x184319=_0xe1b2cb[_0x177454+0x1];_0xe1b2cb[_0x177454+0x1]=_0xe1b2cb[_0x177454+0x3],_0xe1b2cb[_0x177454+0x3]=_0x184319;},'_doCryptBlock':function(_0x4c3aa1,_0x5b7712,_0x1a24a0,_0x4eda37,_0xbb664e,_0x4700cf,_0x548678,_0x86e8a2){var _0x3e3313=_0x6bb6ad;for(var _0x167fb2=this[_0x3e3313(0x1f2)],_0x2514be=_0x4c3aa1[_0x5b7712]^_0x1a24a0[0x0],_0x5aa3ee=_0x4c3aa1[_0x5b7712+0x1]^_0x1a24a0[0x1],_0x5a44f2=_0x4c3aa1[_0x5b7712+0x2]^_0x1a24a0[0x2],_0x144321=_0x4c3aa1[_0x5b7712+0x3]^_0x1a24a0[0x3],_0x1615dc=0x4,_0x3814f8=0x1;_0x3814f8<_0x167fb2;_0x3814f8++){var _0x55a742=_0x4eda37[_0x2514be>>>0x18]^_0xbb664e[_0x5aa3ee>>>0x10&0xff]^_0x4700cf[_0x5a44f2>>>0x8&0xff]^_0x548678[_0x144321&0xff]^_0x1a24a0[_0x1615dc++],_0x3b2507=_0x4eda37[_0x5aa3ee>>>0x18]^_0xbb664e[_0x5a44f2>>>0x10&0xff]^_0x4700cf[_0x144321>>>0x8&0xff]^_0x548678[_0x2514be&0xff]^_0x1a24a0[_0x1615dc++],_0x205068=_0x4eda37[_0x5a44f2>>>0x18]^_0xbb664e[_0x144321>>>0x10&0xff]^_0x4700cf[_0x2514be>>>0x8&0xff]^_0x548678[_0x5aa3ee&0xff]^_0x1a24a0[_0x1615dc++],_0x1667f4=_0x4eda37[_0x144321>>>0x18]^_0xbb664e[_0x2514be>>>0x10&0xff]^_0x4700cf[_0x5aa3ee>>>0x8&0xff]^_0x548678[_0x5a44f2&0xff]^_0x1a24a0[_0x1615dc++];_0x2514be=_0x55a742,_0x5aa3ee=_0x3b2507,_0x5a44f2=_0x205068,_0x144321=_0x1667f4;}var _0x55a742=(_0x86e8a2[_0x2514be>>>0x18]<<0x18|_0x86e8a2[_0x5aa3ee>>>0x10&0xff]<<0x10|_0x86e8a2[_0x5a44f2>>>0x8&0xff]<<0x8|_0x86e8a2[_0x144321&0xff])^_0x1a24a0[_0x1615dc++],_0x3b2507=(_0x86e8a2[_0x5aa3ee>>>0x18]<<0x18|_0x86e8a2[_0x5a44f2>>>0x10&0xff]<<0x10|_0x86e8a2[_0x144321>>>0x8&0xff]<<0x8|_0x86e8a2[_0x2514be&0xff])^_0x1a24a0[_0x1615dc++],_0x205068=(_0x86e8a2[_0x5a44f2>>>0x18]<<0x18|_0x86e8a2[_0x144321>>>0x10&0xff]<<0x10|_0x86e8a2[_0x2514be>>>0x8&0xff]<<0x8|_0x86e8a2[_0x5aa3ee&0xff])^_0x1a24a0[_0x1615dc++],_0x1667f4=(_0x86e8a2[_0x144321>>>0x18]<<0x18|_0x86e8a2[_0x2514be>>>0x10&0xff]<<0x10|_0x86e8a2[_0x5aa3ee>>>0x8&0xff]<<0x8|_0x86e8a2[_0x5a44f2&0xff])^_0x1a24a0[_0x1615dc++];_0x4c3aa1[_0x5b7712]=_0x55a742,_0x4c3aa1[_0x5b7712+0x1]=_0x3b2507,_0x4c3aa1[_0x5b7712+0x2]=_0x205068,_0x4c3aa1[_0x5b7712+0x3]=_0x1667f4;},'keySize':0x100/0x20});_0x268a77[_0x6bb6ad(0x254)]=_0x1c96a8[_0x6bb6ad(0x38c)](_0x14045c);}()),_0x274069['AES'];}));}(Ve)),Ve['exports'];}var Wr=Gr();const Kr=ke(Wr);var Yr=wi();const oi=ke(Yr);var Xe={'exports':{}},qr=Xe[_0x4b7416(0x2c6)],ai;function zr(){var _0x199ca9=_0x4b7416;return ai||(ai=0x1,function(_0x4e92ba,_0x327402){(function(_0x41d516,_0x45afc2){_0x4e92ba['exports']=_0x45afc2(ne());}(qr,function(_0x58f076){var _0x241530=_0x1bf9;return _0x58f076[_0x241530(0x3f1)][_0x241530(0x2c1)];}));}(Xe)),Xe[_0x199ca9(0x2c6)];}var Jr=zr();const Xr=ke(Jr);var Ze={'exports':{}},Zr=Ze[_0x4b7416(0x2c6)],ci;function Qr(){return ci||(ci=0x1,function(_0x2a4485,_0x3f319f){(function(_0x51fda5,_0x1ca5e2){_0x2a4485['exports']=_0x1ca5e2(ne());}(Zr,function(_0x3dd848){var _0x583137=_0x1bf9;return(function(){var _0x468f0b=_0x1bf9;if(typeof ArrayBuffer=='function'){var _0x4b6755=_0x3dd848,_0x1c8415=_0x4b6755[_0x468f0b(0x229)],_0x9ad39c=_0x1c8415[_0x468f0b(0x30d)],_0x42cf7a=_0x9ad39c[_0x468f0b(0x390)],_0x362d4e=_0x9ad39c['init']=function(_0x328930){var _0x984391=_0x468f0b;if(_0x328930 instanceof ArrayBuffer&&(_0x328930=new Uint8Array(_0x328930)),(_0x328930 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x328930 instanceof Uint8ClampedArray||_0x328930 instanceof Int16Array||_0x328930 instanceof Uint16Array||_0x328930 instanceof Int32Array||_0x328930 instanceof Uint32Array||_0x328930 instanceof Float32Array||_0x328930 instanceof Float64Array)&&(_0x328930=new Uint8Array(_0x328930['buffer'],_0x328930[_0x984391(0x441)],_0x328930[_0x984391(0x343)])),_0x328930 instanceof Uint8Array){for(var _0x31caad=_0x328930['byteLength'],_0x1ec800=[],_0x326b3b=0x0;_0x326b3b<_0x31caad;_0x326b3b++)_0x1ec800[_0x326b3b>>>0x2]|=_0x328930[_0x326b3b]<<0x18-_0x326b3b%0x4*0x8;_0x42cf7a['call'](this,_0x1ec800,_0x31caad);}else _0x42cf7a[_0x984391(0x1b4)](this,arguments);};_0x362d4e[_0x468f0b(0x2b8)]=_0x9ad39c;}}()),_0x3dd848[_0x583137(0x229)]['WordArray'];}));}(Ze)),Ze['exports'];}var es=Qr();const ts=ke(es);var Qe={'exports':{}},is=Qe[_0x4b7416(0x2c6)],hi;function ns(){var _0x1b56b9=_0x4b7416;return hi||(hi=0x1,function(_0x64c4be,_0x508735){(function(_0x59998b,_0xd57d41,_0x16e331){var _0x54e1af=_0x1bf9;_0x64c4be[_0x54e1af(0x2c6)]=_0xd57d41(ne(),Ai());}(is,function(_0x2dc827){var _0x39c964=_0x1bf9;return _0x2dc827['pad'][_0x39c964(0x291)]={'pad':function(){},'unpad':function(){}},_0x2dc827[_0x39c964(0x1b2)][_0x39c964(0x291)];}));}(Qe)),Qe[_0x1b56b9(0x2c6)];}var rs=ns();const ss=ke(rs);function os(_0x226569,_0x19f7e3){var _0x55568a=_0x4b7416;const _0x43d586=_0x19f7e3-_0x226569[_0x55568a(0x39c)]%_0x19f7e3,_0x4919c2=String[_0x55568a(0x1b7)](_0x43d586)[_0x55568a(0x3ed)](_0x43d586);return _0x226569+_0x4919c2;}function as(_0x24906,_0x34c746){var _0x436492=_0x4b7416;const _0x12af09=ts[_0x436492(0x426)](0x10),_0x3520b4=os(_0x24906,0x10),_0x593425=Kr[_0x436492(0x3ff)](Xr[_0x436492(0x1c1)](_0x3520b4),oi[_0x436492(0x1c1)](_0x34c746),{'iv':_0x12af09,'padding':ss});return _0x12af09[_0x436492(0x16d)](_0x593425[_0x436492(0x203)])[_0x436492(0x148)](oi);}function cs(){var _0x4f632a=_0x4b7416;const _0x15192c=_0x2be3a0()[_0x4f632a(0x3ba)];if(_0x15192c){const _0x4d08fd={'time':Math[_0x4f632a(0x41b)](Date[_0x4f632a(0x33a)]()/0x3e8),'domain':location['hostname']};return as(JSON[_0x4f632a(0x418)](_0x4d08fd),_0x15192c);}}var hs=Object['defineProperty'],_s=Object[_0x4b7416(0x26b)],ls=(_0x2ab0ac,_0x4c1c80,_0x31a8b2,_0x240bef)=>{for(var _0x3c2127=_0x240bef>0x1?void 0x0:_0x240bef?_s(_0x4c1c80,_0x31a8b2):_0x4c1c80,_0x51b779=_0x2ab0ac['length']-0x1,_0x474f78;_0x51b779>=0x0;_0x51b779--)(_0x474f78=_0x2ab0ac[_0x51b779])&&(_0x3c2127=(_0x240bef?_0x474f78(_0x4c1c80,_0x31a8b2,_0x3c2127):_0x474f78(_0x3c2127))||_0x3c2127);return _0x240bef&&_0x3c2127&&hs(_0x4c1c80,_0x31a8b2,_0x3c2127),_0x3c2127;},us=(_0x4ceba7,_0x353b1c)=>(_0x3095b3,_0x167031)=>_0x353b1c(_0x3095b3,_0x167031,_0x4ceba7);let ot=class{constructor(_0x2d0f87){var _0xa92899=_0x4b7416;this[_0xa92899(0x15a)]=_0x2d0f87,this[_0xa92899(0x310)]();}[_0x4b7416(0x310)](){var _0x1cb7c1=_0x4b7416;this['_httpService'][_0x1cb7c1(0x3c1)]({'interceptor':(_0x52a1c0,_0x588fc1)=>{var _0xa763d0=_0x1cb7c1;const _0x92aa6e=_0x52a1c0[_0xa763d0(0x3d0)],_0x47c2a8=cs();return _0x47c2a8&&_0x92aa6e[_0xa763d0(0x329)](_0xa763d0(0x413),_0x47c2a8),_0x588fc1(_0x52a1c0);}});}};ot=ls([us(0x0,_0x33e245(_0x313ce8))],ot);var ds=Object['defineProperty'],fs=Object[_0x4b7416(0x26b)],vs=(_0x5e1882,_0x9afb1f,_0x4a7cfb,_0x452388)=>{var _0x4ed0e4=_0x4b7416;for(var _0x493e1e=_0x452388>0x1?void 0x0:_0x452388?fs(_0x9afb1f,_0x4a7cfb):_0x9afb1f,_0x2ad940=_0x5e1882[_0x4ed0e4(0x39c)]-0x1,_0x226ab5;_0x2ad940>=0x0;_0x2ad940--)(_0x226ab5=_0x5e1882[_0x2ad940])&&(_0x493e1e=(_0x452388?_0x226ab5(_0x9afb1f,_0x4a7cfb,_0x493e1e):_0x226ab5(_0x493e1e))||_0x493e1e);return _0x452388&&_0x493e1e&&ds(_0x9afb1f,_0x4a7cfb,_0x493e1e),_0x493e1e;},mt=(_0x6fa583,_0x46b4a2)=>(_0x5edaec,_0x14aff2)=>_0x46b4a2(_0x5edaec,_0x14aff2,_0x6fa583);let Ot=class extends _0x1ebecf{constructor(_0x32100c,_0x1d599b,_0x4a63b3){var _0x1f4678=_0x4b7416;super(),N(this,_0x1f4678(0x270),new _0x4a0b1c(null)),N(this,_0x1f4678(0x2fc),this['_unitInfo$'][_0x1f4678(0x32c)]()),(this['_logService']=_0x32100c,this[_0x1f4678(0x205)]=_0x1d599b,this[_0x1f4678(0x341)]=_0x4a63b3);}async['loadUnit'](_0xa674c3,_0x217a09,_0x43754e){var _0x15bb8d=_0x4b7416;this[_0x15bb8d(0x270)][_0x15bb8d(0x1b8)]({'unitId':_0xa674c3,'type':_0x217a09,'subUnitId':_0x43754e});let _0x2fb482=null;switch(_0x217a09){case Q[_0x15bb8d(0x409)]:{_0x2fb482=await this[_0x15bb8d(0x226)](_0xa674c3);break;}case Q['UNIVER_DOC']:{_0x2fb482=await this['_loadDoc'](_0xa674c3);break;}default:{this['_logService'][_0x15bb8d(0x2bc)](_0x15bb8d(0x15c),_0x15bb8d(0x281));break;}}return _0x2fb482;}async[_0x4b7416(0x226)](_0x2aec2c){var _0x66ce0c=_0x4b7416,_0x42e018;let _0x4c8395=0x0;const _0x535fdd=await((_0x42e018=this[_0x66ce0c(0x341)])==null?void 0x0:_0x42e018[_0x66ce0c(0x3e8)](_0x2aec2c));return _0x535fdd&&(_0x535fdd[_0x66ce0c(0x34e)]||_0x535fdd[_0x66ce0c(0x40a)][_0x66ce0c(0x39c)]!==0x0)&&(_0x4c8395=_0x535fdd[_0x66ce0c(0x18b)]),_0x4c8395===0x0&&this[_0x66ce0c(0x38f)][_0x66ce0c(0x1c3)](_0x66ce0c(0x15c),_0x66ce0c(0x24c)),this[_0x66ce0c(0x205)][_0x66ce0c(0x304)](_0x2aec2c,_0x4c8395);}async[_0x4b7416(0x1e7)](_0x3b8886){var _0x56106e=_0x4b7416,_0x337747;let _0xd70968=0x0;const _0x4ee40d=await((_0x337747=this[_0x56106e(0x341)])==null?void 0x0:_0x337747[_0x56106e(0x3e8)](_0x3b8886));return _0x4ee40d&&(_0x4ee40d[_0x56106e(0x34e)]||_0x4ee40d[_0x56106e(0x40a)]['length']!==0x0)&&(_0xd70968=_0x4ee40d[_0x56106e(0x18b)]),_0xd70968===0x0&&this[_0x56106e(0x38f)][_0x56106e(0x1c3)](_0x56106e(0x15c),_0x56106e(0x24c)),this[_0x56106e(0x205)][_0x56106e(0x2ac)](_0x3b8886,_0xd70968);}};Ot=vs([mt(0x0,_0x46cc09),mt(0x1,_0x33e245(_0x24b93f)),mt(0x2,_0x30fb77(J))],Ot);var ps=Object[_0x4b7416(0x2cb)],ms=Object[_0x4b7416(0x26b)],gs=(_0x4f3945,_0x290f00,_0x2d0b20,_0x4ac988)=>{var _0x34b0d9=_0x4b7416;for(var _0x2eba8e=_0x4ac988>0x1?void 0x0:_0x4ac988?ms(_0x290f00,_0x2d0b20):_0x290f00,_0x20bfa0=_0x4f3945[_0x34b0d9(0x39c)]-0x1,_0x31d1ba;_0x20bfa0>=0x0;_0x20bfa0--)(_0x31d1ba=_0x4f3945[_0x20bfa0])&&(_0x2eba8e=(_0x4ac988?_0x31d1ba(_0x290f00,_0x2d0b20,_0x2eba8e):_0x31d1ba(_0x2eba8e))||_0x2eba8e);return _0x4ac988&&_0x2eba8e&&ps(_0x290f00,_0x2d0b20,_0x2eba8e),_0x2eba8e;},gt=(_0x402515,_0x20386d)=>(_0x242e3d,_0x498b48)=>_0x20386d(_0x242e3d,_0x498b48,_0x402515);const Ss=[_0x4b7416(0x3db),_0x4b7416(0x17f),_0x4b7416(0x351),_0x4b7416(0x36a),_0x4b7416(0x1ba)],Es=0x5*0x400*0x400,Is=_0x4b7416(0x22e),Ts='/universer-api/stream/file/upload',Cs=_0x4b7416(0x344),Rs=_0x4b7416(0x2b9);let yt=class{constructor(_0x10c579,_0xeebf8,_0x232fc0){var _0xa3cc7e=_0x4b7416;N(this,'_waitCount',0x0),N(this,_0xa3cc7e(0x262),new _0x9f6386()),N(this,_0xa3cc7e(0x14c),this[_0xa3cc7e(0x262)]),N(this,_0xa3cc7e(0x215),new Map()),(this[_0xa3cc7e(0x15a)]=_0x10c579,this[_0xa3cc7e(0x152)]=_0xeebf8,this[_0xa3cc7e(0x3cb)]=_0x232fc0);}[_0x4b7416(0x2de)](_0x2aac68){var _0x407f38=_0x4b7416;this[_0x407f38(0x33f)]=_0x2aac68,this[_0x407f38(0x262)]['next'](_0x2aac68);}['getImageSourceCache'](_0x401e3a,_0x2a1570){var _0x2d31ab=_0x4b7416;if(_0x2a1570===_0x5922b2[_0x2d31ab(0x3a1)]){const _0x3d61d2=new Image();return _0x3d61d2[_0x2d31ab(0x317)]=_0x401e3a,_0x3d61d2;}return this[_0x2d31ab(0x215)][_0x2d31ab(0x279)](_0x401e3a);}[_0x4b7416(0x1e6)](_0x14be41,_0x7e08da,_0x246035){var _0x533239=_0x4b7416;_0x7e08da===_0x5922b2[_0x533239(0x3a1)]||_0x246035==null||this['_imageSourceCache'][_0x533239(0x329)](_0x14be41,_0x246035);}async[_0x4b7416(0x33e)](_0x53797a){var _0x5cac95=_0x4b7416;try{const _0x4e1d9e=this[_0x5cac95(0x337)](this['_getSignURL'](),''+_0x53797a),_0x1bb582=(await this[_0x5cac95(0x15a)][_0x5cac95(0x279)](_0x4e1d9e))['body'];if(_0x1bb582[_0x5cac95(0x2bc)]&&_0x1bb582[_0x5cac95(0x2bc)]['code']===Ii['OK']){const _0x547b78=new URL(_0x1bb582[_0x5cac95(0x17b)],this[_0x5cac95(0x2e0)]())[_0x5cac95(0x148)]();return Promise[_0x5cac95(0x251)](_0x547b78);}return Promise[_0x5cac95(0x36c)](_0x1bb582[_0x5cac95(0x2bc)]);}catch(_0x15917f){return Promise['reject'](_0x15917f);}}async[_0x4b7416(0x28d)](_0x112028){var _0x213fb=_0x4b7416;let _0x1dc48b='';if(!Ss['includes'](_0x112028[_0x213fb(0x38e)]))return this[_0x213fb(0x2ed)](),Promise[_0x213fb(0x36c)](new Error(_0x5b5449['ERROR_IMAGE_TYPE']));if(_0x112028[_0x213fb(0x345)]>Es)return this[_0x213fb(0x2ed)](),Promise['reject'](new Error(_0x5b5449[_0x213fb(0x1a9)]));try{const _0x239f79=new FormData();_0x239f79['append'](_0x213fb(0x167),_0x112028);const _0x453c74=this[_0x213fb(0x3cb)][_0x213fb(0x313)](),_0x1035f1=_0x453c74==null?void 0x0:_0x453c74[_0x213fb(0x314)]();if(!_0x1035f1)throw new Error(_0x213fb(0x26f));const _0x4d1c4a=this['_getUploadFileURL']()+_0x213fb(0x1f8)+_0x112028[_0x213fb(0x345)][_0x213fb(0x148)]()+_0x213fb(0x334)+Ti['UnitEmbedded']+_0x213fb(0x2e9)+encodeURIComponent(_0x1035f1),_0x2ff0c2=await(await fetch(_0x4d1c4a,{'method':'POST','body':_0x239f79}))['json']();if(typeof _0x2ff0c2[_0x213fb(0x1df)]!='string')return this[_0x213fb(0x2ed)](),Promise[_0x213fb(0x36c)](new Error(_0x5b5449['ERROR_IMAGE']));_0x1dc48b=_0x2ff0c2[_0x213fb(0x1df)];}catch{return this[_0x213fb(0x2ed)](),Promise[_0x213fb(0x36c)](new Error(_0x5b5449['ERROR_IMAGE']));}return new Promise((_0x39b945,_0x43c609)=>{var _0x2fcad7=_0x213fb;const _0x13612a=new FileReader();_0x13612a[_0x2fcad7(0x384)](_0x112028),_0x13612a[_0x2fcad7(0x298)]=_0x4659b1=>{var _0x2e3570=_0x2fcad7,_0x56345c;const _0x4501b2=(_0x56345c=_0x4659b1[_0x2e3570(0x29f)])==null?void 0x0:_0x56345c[_0x2e3570(0x1bc)];if(_0x4501b2==null){this[_0x2e3570(0x2ed)](),_0x43c609(new Error(_0x5b5449['ERROR_IMAGE']));return;}const _0x4aa0c7=_0x12b872['generateRandomId'](0x6);_0x39b945({'imageId':_0x4aa0c7,'imageSourceType':_0x5922b2[_0x2e3570(0x284)],'source':_0x1dc48b,'base64Cache':_0x4501b2,'status':_0x5b5449[_0x2e3570(0x3fc)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){var _0x544d82=_0x4b7416,_0xa52cd2,_0x42360c;const _0x413ad8=this[_0x544d82(0x152)][_0x544d82(0x40e)](Is),_0x53fd56=this['_configService']['getConfig'](q);return(_0x42360c=(_0xa52cd2=_0x53fd56==null?void 0x0:_0x53fd56[_0x544d82(0x265)])!=null?_0xa52cd2:_0x413ad8)!=null?_0x42360c:Ts;}[_0x4b7416(0x2f2)](){var _0x2c5826=_0x4b7416,_0x1b8afb,_0x242262;const _0xd97335=this[_0x2c5826(0x152)][_0x2c5826(0x40e)](Cs),_0xb4ad46=this[_0x2c5826(0x152)][_0x2c5826(0x40e)](q);return(_0x242262=(_0x1b8afb=_0xb4ad46==null?void 0x0:_0xb4ad46['signUrlServerUrl'])!=null?_0x1b8afb:_0xd97335)!=null?_0x242262:Rs;}[_0x4b7416(0x2e0)](){var _0xc6218a=_0x4b7416,_0x50f41c;const _0x374dde=this[_0xc6218a(0x152)]['getConfig'](q);return(_0x50f41c=_0x374dde==null?void 0x0:_0x374dde['downloadEndpointUrl'])!=null?_0x50f41c:location[_0xc6218a(0x14f)];}['_replaceFileID'](_0x595704,_0x545ef2){var _0xede9e3=_0x4b7416;return _0x595704[_0xede9e3(0x324)](_0xede9e3(0x28c),_0x545ef2);}[_0x4b7416(0x2ed)](){var _0x48a47e=_0x4b7416;this['_waitCount']-=0x1,this['_change$'][_0x48a47e(0x1b8)](this[_0x48a47e(0x33f)]);}};yt=gs([gt(0x0,_0x33e245(_0x313ce8)),gt(0x1,_0x1218c6),gt(0x2,_0x33e245(_0x280bc0))],yt);var bs=Object[_0x4b7416(0x2cb)],Os=Object[_0x4b7416(0x26b)],ys=(_0x204ad2,_0x778b5a,_0x2ffaa7,_0x1fa61e)=>{var _0x341f11=_0x4b7416;for(var _0x3ad7fe=_0x1fa61e>0x1?void 0x0:_0x1fa61e?Os(_0x778b5a,_0x2ffaa7):_0x778b5a,_0x3d1b27=_0x204ad2[_0x341f11(0x39c)]-0x1,_0x55c27a;_0x3d1b27>=0x0;_0x3d1b27--)(_0x55c27a=_0x204ad2[_0x3d1b27])&&(_0x3ad7fe=(_0x1fa61e?_0x55c27a(_0x778b5a,_0x2ffaa7,_0x3ad7fe):_0x55c27a(_0x3ad7fe))||_0x3ad7fe);return _0x1fa61e&&_0x3ad7fe&&bs(_0x778b5a,_0x2ffaa7,_0x3ad7fe),_0x3ad7fe;},_i=(_0x29f25e,_0x1a9068)=>(_0x2a5d46,_0x28dc2a)=>_0x1a9068(_0x2a5d46,_0x28dc2a,_0x29f25e);const Ns='/universer-api/authz';let Nt=class{constructor(_0x53ad82,_0x41ec26){var _0x21758d=_0x4b7416;this['_configService']=_0x53ad82,this[_0x21758d(0x22b)]=_0x41ec26;}[_0x4b7416(0x196)](){var _0x58e504=_0x4b7416,_0x79728,_0x378733;const _0x2bdfd2=this[_0x58e504(0x152)][_0x58e504(0x40e)](Pi),_0x31c4ae=this['_configService'][_0x58e504(0x40e)](q);return(_0x378733=(_0x79728=_0x31c4ae==null?void 0x0:_0x31c4ae[_0x58e504(0x1c4)])!=null?_0x79728:_0x2bdfd2)!=null?_0x378733:Ns;}async[_0x4b7416(0x2f4)](_0x369e01){var _0x1b339c=_0x4b7416;const _0x149b5c=this[_0x1b339c(0x196)]()+_0x1b339c(0x2e8);return{'list':[{'title':_0x1b339c(0x43b),'mentions':(await this[_0x1b339c(0x22b)][_0x1b339c(0x279)](_0x149b5c,{'params':{'objectID':_0x369e01[_0x1b339c(0x18c)],'unitID':_0x369e01[_0x1b339c(0x18c)]}}))['body'][_0x1b339c(0x3ad)]['map'](_0x553c63=>({'objectId':_0x553c63['id'],'name':_0x553c63[_0x1b339c(0x3ee)][_0x1b339c(0x39b)],'metadata':{'icon':_0x553c63[_0x1b339c(0x3ee)][_0x1b339c(0x1ec)]},'label':_0x553c63['subject'][_0x1b339c(0x39b)],'objectType':_0x45c7b6['PERSON']})),'metadata':{},'type':_0x45c7b6[_0x1b339c(0x19f)]}]};}};Nt=ys([_i(0x0,_0x33e245(_0x1218c6)),_i(0x1,_0x33e245(_0x313ce8))],Nt);var Ds=Object[_0x4b7416(0x2cb)],Ps=Object[_0x4b7416(0x26b)],ws=(_0x50c9f2,_0x34ccee,_0x389ee5,_0x3fbdac)=>{var _0x19872f=_0x4b7416;for(var _0x577af0=_0x3fbdac>0x1?void 0x0:_0x3fbdac?Ps(_0x34ccee,_0x389ee5):_0x34ccee,_0x22c93e=_0x50c9f2[_0x19872f(0x39c)]-0x1,_0x807f11;_0x22c93e>=0x0;_0x22c93e--)(_0x807f11=_0x50c9f2[_0x22c93e])&&(_0x577af0=(_0x3fbdac?_0x807f11(_0x34ccee,_0x389ee5,_0x577af0):_0x807f11(_0x577af0))||_0x577af0);return _0x3fbdac&&_0x577af0&&Ds(_0x34ccee,_0x389ee5,_0x577af0),_0x577af0;},Se=(_0x421a6f,_0x4a39de)=>(_0x4098f8,_0x1005d9)=>_0x4a39de(_0x4098f8,_0x1005d9,_0x421a6f);let at=class extends _0x1ebecf{constructor(_0x572265,_0x314b85,_0x5e0e73,_0x2caddd,_0x68facb,_0x1c4034,_0x2d22a2){var _0x33ade6=_0x4b7416;super(),this['_injector']=_0x572265,this[_0x33ade6(0x3cb)]=_0x314b85,this[_0x33ade6(0x3cc)]=_0x5e0e73,this[_0x33ade6(0x3e0)]=_0x2caddd,this[_0x33ade6(0x43a)]=_0x68facb,this['_authzIoService']=_0x1c4034,this[_0x33ade6(0x33c)]=_0x2d22a2,this[_0x33ade6(0x1a6)](),this[_0x33ade6(0x1bd)]();}[_0x4b7416(0x1bd)](){var _0x10b690=_0x4b7416;const _0x14ae2d=async _0x369f8d=>{var _0x1e5dec=_0x1bf9;(await this[_0x1e5dec(0x3e0)][_0x1e5dec(0x3fb)](_0x369f8d))[_0x1e5dec(0x2ee)][_0x1e5dec(0x182)](_0x2478c4(_0x86a253=>_0x86a253['eventID']===_0x424b4b[_0x1e5dec(0x335)]),_0x15e5da(this[_0x1e5dec(0x43d)]))['subscribe'](_0x1a4a3e=>{var _0xfc1950=_0x1e5dec;const _0x11b5b6=_0x1a4a3e,{reason:_0x47eed2}=_0x11b5b6[_0xfc1950(0x19a)];this[_0xfc1950(0x43a)][_0xfc1950(0x213)]({'id':se[_0xfc1950(0x246)],'data':_0x47eed2}),this[_0xfc1950(0x3cc)][_0xfc1950(0x282)](new _0x2e755a(_0x369f8d)['id'],!0x1),this[_0xfc1950(0x3e0)][_0xfc1950(0x1f5)](_0x369f8d);});};_0xddea8f(this[_0x10b690(0x3cb)][_0x10b690(0x338)](_0x26d1dc[_0x10b690(0x409)]),this['_univerInstanceService'][_0x10b690(0x338)](_0x26d1dc[_0x10b690(0x3a9)]))[_0x10b690(0x182)](_0x30b411(_0x4d7315=>_0x4d7315[_0x10b690(0x314)]()),_0x2478c4(_0x55154e=>!_0xdfb37d(_0x55154e)),_0x15e5da(this[_0x10b690(0x43d)]))[_0x10b690(0x435)](_0x1b059c=>{_0x14ae2d(_0x1b059c);});}['_initUnitPermissionChange'](){var _0x19ad63=_0x4b7416;const _0x289d98=async _0x45edc9=>{var _0x271ed8=_0x1bf9;const _0x3312b9=await this[_0x271ed8(0x3e0)][_0x271ed8(0x3fb)](_0x45edc9),_0x3fba15=this[_0x271ed8(0x3e3)][_0x271ed8(0x279)](_0x5044e0);_0x3312b9[_0x271ed8(0x2ee)]['pipe'](_0x2478c4(_0x2a0d72=>_0x2a0d72[_0x271ed8(0x1f7)]===_0x424b4b[_0x271ed8(0x436)]),_0x15e5da(this[_0x271ed8(0x43d)]))[_0x271ed8(0x435)](_0x2c4fc2=>{var _0x1302d9=_0x271ed8;const _0x38b472=_0x2c4fc2,{objectId:_0x282f4a}=_0x38b472['data'];_0x282f4a===_0x45edc9?_0x3fba15['initWorkbookPermissionChange'](_0x45edc9):_0x3fba15[_0x1302d9(0x1db)](_0x45edc9,_0x282f4a);});};_0xddea8f(this[_0x19ad63(0x3cb)]['getTypeOfUnitAdded$'](_0x26d1dc[_0x19ad63(0x409)]),this[_0x19ad63(0x3cb)][_0x19ad63(0x338)](_0x26d1dc[_0x19ad63(0x3a9)]))[_0x19ad63(0x182)](_0x30b411(_0x43a875=>_0x43a875['getUnitId']()),_0x2478c4(_0xd51327=>!_0xdfb37d(_0xd51327)),_0x15e5da(this[_0x19ad63(0x43d)]))[_0x19ad63(0x435)](_0x19b6ac=>{_0x289d98(_0x19b6ac);});}};at=ws([Se(0x0,_0x33e245(_0x5596e1)),Se(0x1,_0x280bc0),Se(0x2,_0x3d23e7),Se(0x3,_0x33e245(Le)),Se(0x4,_0x33e245(pe)),Se(0x5,_0x33b7ff),Se(0x6,_0x1e3c7e)],at);var Us=Object[_0x4b7416(0x2cb)],As=Object[_0x4b7416(0x26b)],xs=(_0x52367f,_0x44e21c,_0x7141ab,_0xbe526c)=>{for(var _0x73871d=_0xbe526c>0x1?void 0x0:_0xbe526c?As(_0x44e21c,_0x7141ab):_0x44e21c,_0x219b8a=_0x52367f['length']-0x1,_0x25a27c;_0x219b8a>=0x0;_0x219b8a--)(_0x25a27c=_0x52367f[_0x219b8a])&&(_0x73871d=(_0xbe526c?_0x25a27c(_0x44e21c,_0x7141ab,_0x73871d):_0x25a27c(_0x73871d))||_0x73871d);return _0xbe526c&&_0x73871d&&Us(_0x44e21c,_0x7141ab,_0x73871d),_0x73871d;},li=(_0x4c2ddb,_0x30d69b)=>(_0x25dbef,_0x553040)=>_0x30d69b(_0x25dbef,_0x553040,_0x4c2ddb);let Dt=class{constructor(_0x212aa5,_0x50cbf8){this['_configService']=_0x212aa5,this['_httpService']=_0x50cbf8;}async[_0x4b7416(0x1e5)](_0x27ad0d,_0x534c0f){var _0x5dbd4f=_0x4b7416,_0x57332e;const {unitID:_0x34bf7b,type:_0x4a6ed2,revision:_0x16c4d9=0x0}=_0x534c0f,_0x5c1130=this['getSnapshotAPIPath']()+'/'+_0x4a6ed2+_0x5dbd4f(0x3ac)+_0x34bf7b+'/rev/'+_0x16c4d9,_0xae42c5=(await this[_0x5dbd4f(0x15a)][_0x5dbd4f(0x279)](_0x5c1130))[_0x5dbd4f(0x14e)],_0x3d8ead=(_0x57332e=_0xae42c5[_0x5dbd4f(0x18d)])==null?void 0x0:_0x57332e['workbook'];if(_0x3d8ead){const _0x413757=_0x3d8ead==null?void 0x0:_0x3d8ead['originalMeta'],_0x412b7c=_0x21a1ca[_0x5dbd4f(0x356)](_0x54478a(_0x413757));_0x3d8ead[_0x5dbd4f(0x1ce)]=_0x412b7c,Object[_0x5dbd4f(0x2dd)](_0x3d8ead[_0x5dbd4f(0x217)])[_0x5dbd4f(0x1d1)](([,_0x12dbfc])=>{var _0x38962f=_0x5dbd4f;const _0x925613=_0x12dbfc[_0x38962f(0x1ce)],_0x2de5ec=_0x21a1ca['encode'](_0x54478a(_0x925613));_0x12dbfc[_0x38962f(0x1ce)]=_0x2de5ec;});}return _0xae42c5;}async[_0x4b7416(0x253)](_0x2458e7,_0x413cd4){var _0x32d552=_0x4b7416;const {unitID:_0x5dc2f4,type:_0x704967,blockID:_0xb89b4f}=_0x413cd4,_0x466d61=this['_getAPIPrefix']()+'/'+_0x704967+'/unit/'+_0x5dc2f4+_0x32d552(0x142)+_0xb89b4f;return(await this[_0x32d552(0x15a)][_0x32d552(0x279)](_0x466d61))['body'];}async[_0x4b7416(0x2b3)](_0x20dbb6,_0x1ff8e8){var _0x433acf=_0x4b7416;const {unitID:_0x35c776,type:_0xe4d5a7,blockID:_0x1c6821}=_0x1ff8e8,_0x543366=this[_0x433acf(0x36f)]()+_0x433acf(0x142)+_0xe4d5a7+_0x433acf(0x3ac)+_0x35c776+_0x433acf(0x142)+_0x1c6821;return(await this[_0x433acf(0x15a)]['get'](_0x543366))[_0x433acf(0x14e)];}async[_0x4b7416(0x3b7)](_0x41d19c,_0x17a2f3){var _0x11e25a=_0x4b7416;const {unitID:_0x4dddaa,type:_0x4d6066,from:_0x4971de,to:_0x2498c0}=_0x17a2f3,_0x360ca0=this[_0x11e25a(0x36f)]()+'/'+_0x4d6066+_0x11e25a(0x3ac)+_0x4dddaa+_0x11e25a(0x2f5)+_0x4971de+_0x11e25a(0x289)+_0x2498c0;return(await this[_0x11e25a(0x15a)]['get'](_0x360ca0))[_0x11e25a(0x14e)];}[_0x4b7416(0x169)](){var _0x1a9aa9=_0x4b7416,_0x45b026;return(_0x45b026=this[_0x1a9aa9(0x152)][_0x1a9aa9(0x40e)](Tn))!=null?_0x45b026:this[_0x1a9aa9(0x36f)]();}['_getAPIPrefix'](){var _0x26048a=_0x4b7416,_0x1c2bc8,_0x5d6719;const _0x3da9f7=this[_0x26048a(0x152)][_0x26048a(0x40e)](En),_0x22c8cd=this[_0x26048a(0x152)][_0x26048a(0x40e)](q);return(_0x5d6719=(_0x1c2bc8=_0x22c8cd==null?void 0x0:_0x22c8cd['snapshotServerUrl'])!=null?_0x1c2bc8:_0x3da9f7)!=null?_0x5d6719:In;}async['getResourcesRequest'](_0x20eb0e,_0x384820){var _0x82087=_0x4b7416;const _0x1cf5d9=_0x82087(0x2f9)+_0x384820[_0x82087(0x38e)]+_0x82087(0x3ac)+_0x384820[_0x82087(0x311)]+_0x82087(0x1ac);return(await this['_httpService'][_0x82087(0x279)](_0x1cf5d9,{'params':{'resourceId':JSON[_0x82087(0x418)](_0x384820[_0x82087(0x1fd)])}}))[_0x82087(0x14e)];}[_0x4b7416(0x198)](){var _0x12c3b6=_0x4b7416;throw new Error(_0x12c3b6(0x30c));}[_0x4b7416(0x1aa)](){var _0x1ff4a3=_0x4b7416;throw new Error(_0x1ff4a3(0x30c));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){var _0x44f71d=_0x4b7416;throw new Error(_0x44f71d(0x30c));}[_0x4b7416(0x17d)](){var _0x47f4c2=_0x4b7416;throw new Error(_0x47f4c2(0x30c));}};Dt=xs([li(0x0,_0x1218c6),li(0x1,_0x33e245(_0x313ce8))],Dt);var Ls=Object['defineProperty'],Ms=Object['getOwnPropertyDescriptor'],$s=(_0x5da360,_0x2a0dc9,_0x29562f,_0x5566cd)=>{var _0x283f13=_0x4b7416;for(var _0x56b561=_0x5566cd>0x1?void 0x0:_0x5566cd?Ms(_0x2a0dc9,_0x29562f):_0x2a0dc9,_0x5a26c6=_0x5da360[_0x283f13(0x39c)]-0x1,_0x4f904a;_0x5a26c6>=0x0;_0x5a26c6--)(_0x4f904a=_0x5da360[_0x5a26c6])&&(_0x56b561=(_0x5566cd?_0x4f904a(_0x2a0dc9,_0x29562f,_0x56b561):_0x4f904a(_0x56b561))||_0x56b561);return _0x5566cd&&_0x56b561&&Ls(_0x2a0dc9,_0x29562f,_0x56b561),_0x56b561;},Ae=(_0x4c17e7,_0xf24bfe)=>(_0xcca731,_0x467341)=>_0xf24bfe(_0xcca731,_0x467341,_0x4c17e7);let Pt=class extends _0x1cdab7{constructor(_0x26ce3f,_0x55441f,_0x53c3ae,_0x313f35,_0xe6a866){var _0x25623a=_0x4b7416;super(_0x26ce3f,_0x55441f,_0x53c3ae),this[_0x25623a(0x24d)]=_0x313f35,this[_0x25623a(0x38f)]=_0xe6a866;}[_0x4b7416(0x3a4)](_0x3cd3ac,_0x244205){var _0x47988f=_0x4b7416;const _0x205a2f=this[_0x47988f(0x32f)](_0x3cd3ac);if(_0x205a2f)try{const _0x2b2510=this[_0x47988f(0x1cc)](_0x205a2f,_0x244205);this[_0x47988f(0x25d)](_0x3cd3ac,_0x2b2510);}catch(_0x2ebc7c){this['_logService']['error'](_0x47988f(0x3c0),_0x2ebc7c),this['_clearUndo'](_0x3cd3ac);}const _0x4eb70b=this[_0x47988f(0x40b)](_0x3cd3ac);if(_0x4eb70b)try{const _0x2cc3f4=this['_transformStack'](_0x4eb70b,_0x244205);this[_0x47988f(0x3c8)](_0x3cd3ac,_0x2cc3f4);}catch(_0x1de340){this['_logService']['error'](_0x1de340),this['_clearRedo'](_0x3cd3ac);}}[_0x4b7416(0x34b)](_0x4491d5){var _0x289a2c=_0x4b7416;const _0x1d4091=this[_0x289a2c(0x32f)](_0x4491d5);_0x1d4091&&(_0x1d4091[_0x289a2c(0x39c)]=0x0,this[_0x289a2c(0x20c)]());}[_0x4b7416(0x432)](_0x1b8209){var _0x4ef209=_0x4b7416;const _0x4d6bdc=this['_getRedoStack'](_0x1b8209);_0x4d6bdc&&(_0x4d6bdc[_0x4ef209(0x39c)]=0x0,this[_0x4ef209(0x20c)]());}[_0x4b7416(0x25d)](_0xecc809,_0x206775){var _0x284d44=_0x4b7416;this[_0x284d44(0x406)][_0x284d44(0x329)](_0xecc809,_0x206775),this['_updateStatus']();}['_substituteRedoStack'](_0x390bf2,_0x1f5e76){var _0x5024f3=_0x4b7416;this['_redoStacks'][_0x5024f3(0x329)](_0x390bf2,_0x1f5e76),this['_updateStatus']();}[_0x4b7416(0x1cc)](_0x32132a,_0x15146f){var _0x37b5cb=_0x4b7416;const _0x10a386=[];let _0x160e7d=_0x15146f,_0x5705a6=_0x15146f;for(let _0x27810e=_0x32132a[_0x37b5cb(0x39c)]-0x1;_0x27810e>=0x0;_0x27810e--){const {unitID:_0xdb0a91,undoMutations:_0x9099d5,redoMutations:_0x1d1850}=_0x32132a[_0x27810e],_0x5ce90d=this[_0x37b5cb(0x24d)][_0x37b5cb(0x332)](_0x160e7d,_0x9099d5),_0xb6142d=this['_transformService'][_0x37b5cb(0x332)](_0x5705a6,_0x1d1850);if(_0x2a62be(_0x5ce90d)||_0x2a62be(_0xb6142d)){this[_0x37b5cb(0x38f)][_0x37b5cb(0x2bc)](_0x37b5cb(0x3c0),_0x37b5cb(0x3d5),_0x5ce90d,_0xb6142d);break;}_0x160e7d=_0x5ce90d[_0x37b5cb(0x3bc)],_0x5705a6=_0xb6142d[_0x37b5cb(0x3bc)],_0x10a386[_0x37b5cb(0x2fa)]({'unitID':_0xdb0a91,'undoMutations':_0x5ce90d[_0x37b5cb(0x3b1)],'redoMutations':_0xb6142d[_0x37b5cb(0x3b1)]});}return _0x10a386[_0x37b5cb(0x35d)]();}};Pt=$s([Ae(0x0,_0x280bc0),Ae(0x1,_0x44e191),Ae(0x2,_0x2847d8),Ae(0x3,_0x1186f3),Ae(0x4,_0x46cc09)],Pt);var xi=Object[_0x4b7416(0x2cb)],Hs=Object[_0x4b7416(0x26b)],ks=(_0x3efcb9,_0x1b36fd,_0x425523)=>_0x1b36fd in _0x3efcb9?xi(_0x3efcb9,_0x1b36fd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x425523}):_0x3efcb9[_0x1b36fd]=_0x425523,js=(_0xf10c6d,_0x423fa7,_0x54ad09,_0x31e8ae)=>{var _0x28ffaf=_0x4b7416;for(var _0x2a6c51=_0x31e8ae>0x1?void 0x0:_0x31e8ae?Hs(_0x423fa7,_0x54ad09):_0x423fa7,_0x361d6f=_0xf10c6d[_0x28ffaf(0x39c)]-0x1,_0x24d79f;_0x361d6f>=0x0;_0x361d6f--)(_0x24d79f=_0xf10c6d[_0x361d6f])&&(_0x2a6c51=(_0x31e8ae?_0x24d79f(_0x423fa7,_0x54ad09,_0x2a6c51):_0x24d79f(_0x2a6c51))||_0x2a6c51);return _0x31e8ae&&_0x2a6c51&&xi(_0x423fa7,_0x54ad09,_0x2a6c51),_0x2a6c51;},St=(_0x2675a6,_0x2fcc97)=>(_0x597a21,_0x2a38ee)=>_0x2fcc97(_0x597a21,_0x2a38ee,_0x2675a6),Bs=(_0x326195,_0xaaaa3a,_0x4b9557)=>ks(_0x326195,_0xaaaa3a+'',_0x4b9557);const Fs=_0x4b7416(0x164);let wt=class extends _0x60228e{constructor(_0x45216d=Wt,_0x413b8a,_0x44f3eb,_0x54bb24){var _0x48e3ca=_0x4b7416;super(),this[_0x48e3ca(0x41a)]=_0x45216d,this[_0x48e3ca(0x38f)]=_0x413b8a,this[_0x48e3ca(0x3e3)]=_0x44f3eb,this[_0x48e3ca(0x152)]=_0x54bb24;const {..._0x1c8ba8}=_0x8efa46({},Wt,this[_0x48e3ca(0x41a)]);this[_0x48e3ca(0x152)][_0x48e3ca(0x187)](q,_0x1c8ba8);}[_0x4b7416(0x194)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x4b7416(0x3d8)](){var _0xece2d4=_0x4b7416,_0x13de54,_0x2711e3,_0x134417,_0x5c9682;this['_injector'][_0xece2d4(0x3e2)](_0x1e3c7e)&&this['_logService'][_0xece2d4(0x2bc)]('[UniverCollaborationClientPlugin]',_0xece2d4(0x339));const _0x34a805=_0x1911e0([[_0x1e3c7e,{'useClass':Pt}],[Le],[xe],[it],[st],[ot],[Ri],[at],[pe],[Ot],[Ci,{'useClass':(_0x2711e3=(_0x13de54=this[_0xece2d4(0x41a)])==null?void 0x0:_0x13de54[_0xece2d4(0x143)])!=null?_0x2711e3:Et}],[_0x411302,{'useClass':Dt}],[_0x33b7ff,{'useClass':bt}],[_0x5e0b5e,{'useClass':yt}],[_0x4b92c5,{'useClass':Nt}],[rt],[Rt]],(_0x134417=this[_0xece2d4(0x41a)])==null?void 0x0:_0x134417[_0xece2d4(0x3dc)]);if(!((_0x5c9682=this[_0xece2d4(0x41a)])!=null&&_0x5c9682[_0xece2d4(0x287)])){const _0x491da4=_0x34a805[_0xece2d4(0x323)](([_0x4bfc04])=>_0x4bfc04===ht);_0x491da4!==-0x1&&_0x34a805[_0xece2d4(0x209)](_0x491da4,0x1);}_0x31994b(this[_0xece2d4(0x3e3)],_0x34a805);}[_0x4b7416(0x2f6)](){var _0x5436e2=_0x4b7416,_0x23dfba,_0x244d2c,_0x245211;this['_injector'][_0x5436e2(0x279)](_0x313ce8)[_0x5436e2(0x3c1)]({'priority':0x14,'interceptor':_0x57e8c3({'maxParallel':0x6})}),(_0x23dfba=this[_0x5436e2(0x41a)])!=null&&_0x23dfba[_0x5436e2(0x1c8)]||(_0x244d2c=this['_injector']['get'](J,_0x34630d[_0x5436e2(0x240)]))==null||_0x244d2c[_0x5436e2(0x40d)](),(_0x245211=this[_0x5436e2(0x41a)])!=null&&_0x245211[_0x5436e2(0x2e6)]&&_0x4a6f6f(this[_0x5436e2(0x3e3)],[[st]]),_0x4a6f6f(this['_injector'],[[ot],[rt],[at]]);}};Bs(wt,_0x4b7416(0x3be),Fs),wt=js([_0x5ba38c(_0x403bdd,_0x525489,_0x2e22fe),St(0x1,_0x46cc09),St(0x2,_0x33e245(_0x5596e1)),St(0x3,_0x1218c6)],wt);export{Pi as AUTHZ_URL_KEY,bt as AuthzIoHttpService,ue as AwaitingState,ae as AwaitingWithPendingState,q as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Un as COLLAB_SUBMIT_CHANGESET_URL_KEY,Rn as COLLAB_WEB_SOCKET_URL_KEY,rt as CollaborationController,nt as CollaborationEntity,yt as CollaborationImageIoService,It as CollaborationSession,Le as CollaborationSessionService,Et as CollaborationSocketService,yi as CollaborationStatus,se as CollaborationUIEventId,pe as CollaborationUIEventService,Pt as CollaborativeUndoRedoService,Ri as CommentService,de as ConflictState,bn as DEFAULT_COLLAB_WEB_SOCKET_URL,ro as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,Ot as DataLoaderService,Tt as DocCollaborationEntity,te as FetchingMissState,yn as HEARTBEAT_INTERVAL_KEY,Si as HEARTBEAT_TIMEOUT_KEY,Ci as ICollaborationSocketService,J as ILocalCacheService,Mn as INetworkConditionService,ht as ISingleActiveUnitService,io as LOCAL_CACHE_INTERVAL,to as LOCAL_CACHE_INTERVAL_KEY,xn as LOGIN_URL_KEY,xe as MemberService,Nt as MentionIoHttpService,fe as OfflineState,oe as PendingState,no as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,eo as SEND_CHANGESET_TIMEOUT_KEY,En as SNAPSHOT_SERVER_URL_KEY,Tn as SNAPSHOT_URL_KEY,Te as SessionStatus,Ct as SheetCollaborationEntity,it as SheetTransformSelectionsService,Dt as SnapshotServerOverHTTPService,De as SyncedState,bi as UnitStatus,wt as UniverCollaborationClientPlugin,$n as deserializeToCombResponse,so as getLocalCacheKey,Hn as serializeCombRequest};
|
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};
|