@univerjs-pro/collaboration-client-ui 0.12.0 → 0.12.1-nightly.202511221011
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/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.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/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.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/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.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/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.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/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/config.schema.d.ts +5 -0
- package/lib/types/controllers/frontend-log/frontend-log.controller.d.ts +17 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.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/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.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 +16 -16
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x517afa=_0x4ad2;(function(_0x59798c,_0x421909){const _0x7bd44a=_0x4ad2,_0x1dd0be=_0x59798c();while(!![]){try{const _0x5767fc=parseInt(_0x7bd44a(0x82))/0x1+parseInt(_0x7bd44a(0x169))/0x2*(parseInt(_0x7bd44a(0x1f3))/0x3)+-parseInt(_0x7bd44a(0x142))/0x4+parseInt(_0x7bd44a(0x156))/0x5*(parseInt(_0x7bd44a(0x117))/0x6)+parseInt(_0x7bd44a(0x1b1))/0x7*(-parseInt(_0x7bd44a(0x157))/0x8)+-parseInt(_0x7bd44a(0x294))/0x9+parseInt(_0x7bd44a(0x22b))/0xa;if(_0x5767fc===_0x421909)break;else _0x1dd0be['push'](_0x1dd0be['shift']());}catch(_0xd5b0a5){_0x1dd0be['push'](_0x1dd0be['shift']());}}}(_0x1e85,0x623f9));var Ft=Object[_0x517afa(0xa8)],kt=(_0x5a2880,_0x4a8471,_0x3d2c14)=>_0x4a8471 in _0x5a2880?Ft(_0x5a2880,_0x4a8471,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d2c14}):_0x5a2880[_0x4a8471]=_0x3d2c14,l=(_0x9a81f7,_0x2cf990,_0x46698b)=>kt(_0x9a81f7,typeof _0x2cf990!='symbol'?_0x2cf990+'':_0x2cf990,_0x46698b);import{jsx as _0x277ba7,jsxs as _0x1bde0f}from'react/jsx-runtime';import{CollaborationStatus as _0x5039cf,CollaborationSessionService as _0x2c25d7,CollaborationController as _0x477518,DataLoaderService as _0x2a1a88,MemberService as _0x4164ee,SessionStatus as _0x309895,ILocalCacheService as _0x190965,CollaborationUIEventService as _0x3671b7,CollaborationUIEventId as _0x175362,DocCollaborationEntity as _0x39449e,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x174b68,getLocalCacheKey as _0x439647,LOCAL_CACHE_INTERVAL as _0x5d3637,LOCAL_CACHE_INTERVAL_KEY as _0x141eb8,UniverCollaborationClientPlugin as _0x246cf1,CollaborationSocketService as _0x5c223d,DEFAULT_WS_SESSION_TICKET_URL as _0x84448e,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5be24c,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x2db30,UnitStatus as _0x182996}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x3ae72e,IUniverInstanceService as _0x30c7ee,Inject as _0x388393,Injector as _0x258030,Disposable as _0x4057f7,createIdentifier as _0x39e1c8,ILogService as _0x46da51,ICommandService as _0x4ab028,Optional as _0x4ea5e5,RxDisposable as _0x518648,Workbook as _0x2a5c81,DOC_RANGE_TYPE as _0x13dbee,debounce as _0x5465f7,Rectangle as _0x54ee1a,DisposableCollection as _0x57a43d,toDisposable as _0x5d128c,UniverInstanceType as _0x4ed0b3,generateRandomId as _0x24b861,COLORS as _0x520d70,ColorKit as _0x27dda8,ThemeService as _0x4d7d85,fromEventSubject as _0xdcf17c,Tools as _0x24fd68,CommandType as _0x18ebdb,IConfigService as _0x6a4de3,CanceledError as _0x458890,isFormulaString as _0x434ee5,isFormulaId as _0x2fae16,ILocalStorageService as _0xbe08f5,DependentOn as _0x2422e9,Plugin as _0x576e66,merge as _0xff84a3,registerDependencies as _0x183763,mergeOverrideWithDependencies as _0x328036,touchDependencies as _0x36d93c}from'@univerjs/core';import{useObservable as _0x42cc23,useDependency as _0x5058dd,IUIPartsService as _0x396b61,BuiltInUIPart as _0x606109,connectInjector as _0x2a674f,IBeforeCloseService as _0x1e0e35,IMessageService as _0x341740,INotificationService as _0x577074}from'@univerjs/ui';import{BehaviorSubject as _0x340b13,switchMap as _0x1308ff,of as _0x38b4ff,takeUntil as _0xd33296,debounceTime as _0x59a831,Subject as _0x25ec2f,filter as _0x4edfe7,merge as _0x2f4c1a,combineLatest as _0x41429a,fromEvent as _0x258e3e,shareReplay as _0x4adcb8,mapTo as _0x487335,distinctUntilChanged as _0xfe7dd9}from'rxjs';import{Tooltip as _0x576972,clsx as _0x116133,MessageType as _0x43794b}from'@univerjs/design';import{useRef as _0x23f6bc,createElement as _0x217658,forwardRef as _0x33f249,useCallback as _0x3c5a52}from'react';import{IRemoteInstanceService as _0x4dada7}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3fab11,RefRangeService as _0x2c0610,SetSelectionsOperation as _0x24b6af,SheetsSelectionsService as _0x4b8257,EffectRefRangId as _0x3786ea,handleIRemoveRow as _0x559731,handleIRemoveCol as _0x1788e2,handleMoveRange as _0x443ce7,handleInsertRow as _0x223b9d,handleInsertRangeMoveRight as _0x516fbd,handleInsertRangeMoveDown as _0x2cc346,handleInsertCol as _0x11dfa9,handleDeleteRangeMoveUp as _0x1cffba,handleDeleteRangeMoveLeft as _0x3b4431,runRefRangeMutations as _0x575db5}from'@univerjs/sheets';import{Shape as _0x965c3a,Rect as _0x54f591,getColor as _0x4d4f6a,RegularPolygon as _0x6dd2a8,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2dd456,Vector2 as _0x4ad7c8,SHEET_VIEWPORT_KEY as _0x1f1ace,IRenderManagerService as _0x7acb9e}from'@univerjs/engine-render';import{HTTPService as _0x345138,ISocketService as _0x5adab9,WebSocketService as _0x558214}from'@univerjs/network';import{IDocClipboardService as _0xaa9e07,NodePositionConvertToCursor as _0x22b823,NodePositionConvertToRectRange as _0x4d41d5,TEXT_RANGE_LAYER_INDEX as _0x57eea3,SetDocZoomRatioOperation as _0x2a3ec3,DocIMEInputManagerService as _0x30a772,DocStateChangeManagerService as _0x3d7f81}from'@univerjs/docs-ui';import{IImageIoService as _0x32f1bc}from'@univerjs/drawing';import{ITransformService as _0x2e28c1,CollaborationEvent as _0x2aa15d,isTransformMutationFailure as _0x18536c,isTransformMutationsWithChangesetSuccess as _0x2ef47c,RevisionService as _0x1fb0da,ISnapshotServerService as _0x3419af}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x1ec7e1,RichTextEditingMutation as _0x3321ec,DocSelectionManagerService as _0x59d42f,DocSkeletonManagerService as _0x162c1a}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x2f7970,serializeRangeWithSheet as _0x1ae78a,FormulaExecuteStageType as _0x93f55d,FormulaExecutedStateType as _0x1da652,SetFormulaCalculationStartMutation as _0xa507f6,SetFormulaCalculationNotificationMutation as _0x3f8c9d}from'@univerjs/engine-formula';import{map as _0x4ee011,filter as _0x4cc029,throttleTime as _0x1a7dfa,takeUntil as _0x2533f0,switchMap as _0x23dfcb}from'rxjs/operators';import{SheetSkeletonManagerService as _0x4703f3,getCoordByCell as _0x10d1ca,getSheetObject as _0x3aa887}from'@univerjs/sheets-ui';function Ve({ref:_0x5bfeab,..._0xa6fbcf}){const _0x3d6d95=_0x517afa,{icon:_0x24d3dd,id:_0x3013c6,className:_0x52f677,extend:_0xfaa4c7,..._0x4b48be}=_0xa6fbcf,_0xaf6e07=('univerjs-icon\x20univerjs-icon-'+_0x3013c6+'\x20'+(_0x52f677||''))['trim'](),_0x2bfcde=_0x23f6bc('_'+gi());return Ut(_0x24d3dd,''+_0x3013c6,{'defIds':_0x24d3dd[_0x3d6d95(0x1ef)],'idSuffix':_0x2bfcde['current']},{'ref':_0x5bfeab,'className':_0xaf6e07,..._0x4b48be},_0xfaa4c7);}function Ut(_0x5e6d66,_0x552b58,_0x47df7d,_0x14c2cf,_0xf0a37d){const _0xa2f119=_0x517afa;return _0x217658(_0x5e6d66['tag'],{'key':_0x552b58,...mi(_0x5e6d66,_0x47df7d,_0xf0a37d),..._0x14c2cf},(fi(_0x5e6d66,_0x47df7d)[_0xa2f119(0x1af)]||[])[_0xa2f119(0x193)]((_0x4155a2,_0x190190)=>Ut(_0x4155a2,_0x552b58+'-'+_0x5e6d66[_0xa2f119(0x264)]+'-'+_0x190190,_0x47df7d,void 0x0,_0xf0a37d)));}function mi(_0x262718,_0x33ba4e,_0x180ede){const _0xda6143=_0x517afa,_0x22ab1b={..._0x262718['attrs']};_0x180ede!=null&&_0x180ede['colorChannel1']&&_0x22ab1b['fill']===_0xda6143(0x106)&&(_0x22ab1b['fill']=_0x180ede[_0xda6143(0x106)]),_0x262718[_0xda6143(0x264)]===_0xda6143(0x197)&&_0x22ab1b['id']&&(_0x22ab1b['id']=_0x22ab1b['id']+_0x33ba4e[_0xda6143(0x276)]),Object[_0xda6143(0x1dd)](_0x22ab1b)[_0xda6143(0x17f)](([_0x575f0e,_0x5be218])=>{const _0x24e62b=_0xda6143;_0x575f0e===_0x24e62b(0x197)&&typeof _0x5be218==_0x24e62b(0x149)&&(_0x22ab1b[_0x575f0e]=_0x5be218[_0x24e62b(0x216)](/url\(#(.*)\)/,_0x24e62b(0x9d)+_0x33ba4e[_0x24e62b(0x276)]+')'));});const {defIds:_0x9363d7}=_0x33ba4e;return!_0x9363d7||_0x9363d7[_0xda6143(0x1d1)]===0x0||(_0x262718[_0xda6143(0x264)]===_0xda6143(0x17e)&&_0x22ab1b['xlink:href']&&(_0x22ab1b[_0xda6143(0xa1)]=_0x22ab1b['xlink:href']+_0x33ba4e[_0xda6143(0x276)]),Object[_0xda6143(0x1dd)](_0x22ab1b)['forEach'](([_0xa97d55,_0x2f4f30])=>{const _0x33a548=_0xda6143;typeof _0x2f4f30==_0x33a548(0x149)&&(_0x22ab1b[_0xa97d55]=_0x2f4f30['replace'](/url\(#(.*)\)/,_0x33a548(0x9d)+_0x33ba4e[_0x33a548(0x276)]+')'));})),_0x22ab1b;}function fi(_0x5b5c03,_0x3bd42f){const _0x3913fe=_0x517afa;var _0x5e1ae8;const {defIds:_0x406ce6}=_0x3bd42f;return!_0x406ce6||_0x406ce6['length']===0x0?_0x5b5c03:_0x5b5c03[_0x3913fe(0x264)]===_0x3913fe(0x120)&&((_0x5e1ae8=_0x5b5c03['children'])!=null&&_0x5e1ae8[_0x3913fe(0x1d1)])?{..._0x5b5c03,'children':_0x5b5c03[_0x3913fe(0x1af)][_0x3913fe(0x193)](_0x31735e=>typeof _0x31735e[_0x3913fe(0x1db)]['id']==_0x3913fe(0x149)&&_0x406ce6&&_0x406ce6[_0x3913fe(0x170)](_0x31735e[_0x3913fe(0x1db)]['id'])?{..._0x31735e,'attrs':{..._0x31735e[_0x3913fe(0x1db)],'id':_0x31735e['attrs']['id']+_0x3bd42f[_0x3913fe(0x276)]}}:_0x31735e)}:_0x5b5c03;}function gi(){const _0xad11d6=_0x517afa;return Math['random']()[_0xad11d6(0xee)](0x24)[_0xad11d6(0x109)](0x2,0x8);}Ve[_0x517afa(0x114)]='UniverIcon';const vi={'tag':'svg','attrs':{'xmlns':_0x517afa(0x1d0),'fill':'none','viewBox':_0x517afa(0xbc),'width':_0x517afa(0xe4),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x517afa(0x172)},'children':[{'tag':_0x517afa(0x10a),'attrs':{'stroke':_0x517afa(0x192),'d':_0x517afa(0x27c),'strokeLinecap':'round','strokeLinejoin':_0x517afa(0xcb),'strokeWidth':1.2}}]},{'tag':_0x517afa(0x120),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x517afa(0x9e)},'children':[{'tag':_0x517afa(0x10a),'attrs':{'fill':'white','d':_0x517afa(0x7a)}}]}]}],'defIds':[_0x517afa(0x9e)]},Lt=_0x33f249(function(_0x389dae,_0x48818b){const _0x460a5e=_0x517afa;return _0x217658(Ve,Object['assign']({},_0x389dae,{'id':_0x460a5e(0xea),'ref':_0x48818b,'icon':vi}));});Lt['displayName']=_0x517afa(0x13f);const Ei={'tag':_0x517afa(0x6f),'attrs':{'xmlns':_0x517afa(0x1d0),'fill':'none','viewBox':_0x517afa(0xb1),'width':_0x517afa(0xe4),'height':_0x517afa(0xe4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x517afa(0x10a),'attrs':{'stroke':_0x517afa(0x192),'d':_0x517afa(0xdc),'strokeLinecap':_0x517afa(0xcb),'strokeLinejoin':_0x517afa(0xcb),'strokeWidth':1.2}}]},{'tag':_0x517afa(0x120),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x517afa(0xde)},'children':[{'tag':_0x517afa(0x10a),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x517afa(0x152)}}]}]}],'defIds':[_0x517afa(0xde)]},Mt=_0x33f249(function(_0x3a1bff,_0x1ff957){const _0x46b02b=_0x517afa;return _0x217658(Ve,Object[_0x46b02b(0x1bd)]({},_0x3a1bff,{'id':_0x46b02b(0xa9),'ref':_0x1ff957,'icon':Ei}));});Mt[_0x517afa(0x114)]='OnLineIcon';function pi(_0x246a7c){const _0x458919=_0x517afa;switch(_0x246a7c){case _0x5039cf['OFFLINE']:return _0x458919(0xfc);case _0x5039cf[_0x458919(0x275)]:return _0x458919(0x84);case _0x5039cf[_0x458919(0x153)]:return _0x458919(0x1de);case _0x5039cf['NOT_COLLAB']:return _0x458919(0x260);case _0x5039cf['AWAITING']:case _0x5039cf['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case _0x5039cf[_0x458919(0x14c)]:case _0x5039cf[_0x458919(0x23d)]:return'collabStatus.synced';}}function Oi(_0x1fe203){const _0x2780fb=_0x517afa,{status$:_0x4afa5e}=_0x1fe203,_0x3d1551=_0x42cc23(_0x4afa5e,_0x5039cf[_0x2780fb(0x24b)]),_0x168f93=_0x5058dd(_0x3ae72e),_0x830629=_0x5058dd(_0x2c25d7),_0x3d2e53=_0x3d1551!==_0x5039cf[_0x2780fb(0x9f)],_0x1f2e85=_0x168f93['t'](pi(_0x3d1551)),_0x24ddc8=_0x3d2e53?_0x277ba7(Mt,{}):_0x277ba7(Lt,{}),_0x247f49=_0x3c5a52(()=>{const _0x5ab0ad=_0x2780fb;_0x3d2e53||_0x830629[_0x5ab0ad(0x75)]();},[_0x3d2e53,_0x830629]);function _0x593962(){const _0x5b40c9=_0x2780fb;return _0x1bde0f(_0x5b40c9(0x1b7),{'className':_0x5b40c9(0x71),'onClick':_0x247f49,'children':[_0x277ba7(_0x5b40c9(0x1b7),{'className':_0x116133(_0x5b40c9(0x19c),{'univer-text-green-500':_0x3d2e53,'univer-text-red-500':!_0x3d2e53}),'children':_0x24ddc8}),_0x277ba7(_0x5b40c9(0x1b7),{'className':_0x5b40c9(0x204),'children':_0x1f2e85})]});}return _0x3d2e53?_0x593962():_0x277ba7(_0x576972,{'title':_0x168f93['t']('collab-client.tooltip.reconnect'),'children':_0x593962()});}var Ti=Object['getOwnPropertyDescriptor'],Ci=(_0x2beec6,_0xf1868,_0x236baa,_0xec97fc)=>{const _0x4a9fab=_0x517afa;for(var _0x2b1a11=_0xec97fc>0x1?void 0x0:_0xec97fc?Ti(_0xf1868,_0x236baa):_0xf1868,_0x49a528=_0x2beec6[_0x4a9fab(0x1d1)]-0x1,_0x1f9e63;_0x49a528>=0x0;_0x49a528--)(_0x1f9e63=_0x2beec6[_0x49a528])&&(_0x2b1a11=_0x1f9e63(_0x2b1a11)||_0x2b1a11);return _0x2b1a11;},se=(_0x1b45e8,_0xf62440)=>(_0x2d8c1a,_0x1559d1)=>_0xf62440(_0x2d8c1a,_0x1559d1,_0x1b45e8);let oe=class extends _0x4057f7{constructor(_0xa8a9d1,_0x190dfd,_0x3b783a,_0x2128af){const _0x557379=_0x517afa;super(),l(this,'_status$',new _0x340b13(_0x5039cf[_0x557379(0x24b)])),(this[_0x557379(0xb4)]=_0xa8a9d1,this[_0x557379(0x22f)]=_0x190dfd,this[_0x557379(0x15d)]=_0x3b783a,this[_0x557379(0x268)]=_0x2128af,this[_0x557379(0x11a)](),this[_0x557379(0x23e)]());}[_0x517afa(0x23e)](){const _0x2a543c=_0x517afa;this[_0x2a543c(0x161)](this['_univerInstanceService'][_0x2a543c(0xd0)]['pipe'](_0x1308ff(()=>{const _0x50fd83=_0x2a543c,_0x20a7eb=this[_0x50fd83(0xb4)][_0x50fd83(0x228)]();return _0x20a7eb?this[_0x50fd83(0x15d)][_0x50fd83(0x176)](_0x20a7eb['getUnitId']()):_0x38b4ff(null);}),_0x1308ff(_0x2bb4ae=>_0x2bb4ae?_0x2bb4ae[_0x2a543c(0x155)]:_0x38b4ff(_0x5039cf[_0x2a543c(0x24b)])))[_0x2a543c(0x243)](_0x21fa30=>{const _0x326167=_0x2a543c;this[_0x326167(0x245)][_0x326167(0xb2)](_0x21fa30);}));}[_0x517afa(0x11a)](){const _0x36298d=_0x517afa;this[_0x36298d(0x161)](this['_uiPartsService']['registerComponent'](_0x606109['HEADER_MENU'],()=>_0x2a674f(Ri({'status$':this[_0x36298d(0x245)][_0x36298d(0x198)]()}),this[_0x36298d(0x22f)])));}};oe=Ci([se(0x0,_0x30c7ee),se(0x1,_0x388393(_0x258030)),se(0x2,_0x388393(_0x477518)),se(0x3,_0x396b61)],oe);function Ri(_0x3a38ac){const {status$:_0x3580c7}=_0x3a38ac;return function(){return _0x277ba7(Oi,{'status$':_0x3580c7});};}const At=_0x39e1c8(_0x517afa(0x168));var Di=Object[_0x517afa(0x217)],Ni=(_0x27341c,_0x52be70,_0x434edb,_0x3f335a)=>{const _0x12f46e=_0x517afa;for(var _0x1032c7=_0x3f335a>0x1?void 0x0:_0x3f335a?Di(_0x52be70,_0x434edb):_0x52be70,_0x39ae90=_0x27341c[_0x12f46e(0x1d1)]-0x1,_0x559833;_0x39ae90>=0x0;_0x39ae90--)(_0x559833=_0x27341c[_0x39ae90])&&(_0x1032c7=_0x559833(_0x1032c7)||_0x1032c7);return _0x1032c7;},K=(_0x20c8d8,_0x42a27d)=>(_0x368a1d,_0x3315cf)=>_0x42a27d(_0x368a1d,_0x3315cf,_0x20c8d8);let ae=class extends _0x518648{constructor(_0x2d342a,_0x4ccbe7,_0x1df9ea,_0x269dda,_0x80710d){const _0x18a868=_0x517afa;super(),this['_urlService']=_0x2d342a,this[_0x18a868(0x237)]=_0x4ccbe7,this[_0x18a868(0x27f)]=_0x1df9ea,this['_dataLoaderService']=_0x269dda,_0x80710d?_0x80710d==null||_0x80710d[_0x18a868(0x93)]()[_0x18a868(0x189)](()=>this['_init']()):(this[_0x18a868(0x237)][_0x18a868(0x194)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x18a868(0xf3)]());}async['_init'](){const _0xdb0516=_0x517afa,_0x303827=this['_urlService']['getParam'](_0xdb0516(0x1ec)),_0x481ab6=this[_0xdb0516(0x242)][_0xdb0516(0xf5)](_0xdb0516(0x7e)),_0x685544=this['_urlService']['getParam'](_0xdb0516(0x7d));if(!_0x303827||!_0x481ab6){this[_0xdb0516(0x237)][_0xdb0516(0x194)](_0xdb0516(0x207),_0xdb0516(0x12d));return;}const _0x5a00dd=await this[_0xdb0516(0x1b0)][_0xdb0516(0xd5)](_0x303827,Number(_0x481ab6),_0x685544);_0x5a00dd&&_0x5a00dd instanceof _0x2a5c81&&this['_setupSubUnitSync'](_0x5a00dd);}async[_0x517afa(0x1c1)](_0x38d6c6){const _0x4ed5b3=_0x517afa;await this[_0x4ed5b3(0x6c)](_0x38d6c6),_0x38d6c6[_0x4ed5b3(0x19d)][_0x4ed5b3(0x7b)](_0xd33296(this['dispose$']))[_0x4ed5b3(0x243)](_0x8cd8a5=>{const _0x1757a4=_0x4ed5b3;_0x8cd8a5&&this[_0x1757a4(0x23f)](_0x8cd8a5);}),this[_0x4ed5b3(0x242)][_0x4ed5b3(0x20e)][_0x4ed5b3(0x7b)](_0xd33296(this['dispose$']))['subscribe'](()=>this[_0x4ed5b3(0x6c)](_0x38d6c6));}[_0x517afa(0x23f)](_0x2da51c,_0x162be8=!0x1){const _0x12044e=_0x517afa,_0x9a9089=this[_0x12044e(0x242)][_0x12044e(0xf5)]('subunit');_0x2da51c[_0x12044e(0x83)]()!==_0x9a9089&&this[_0x12044e(0x242)][_0x12044e(0x281)]('subunit',_0x2da51c[_0x12044e(0x83)](),_0x162be8);}async[_0x517afa(0x6c)](_0x132fe9){const _0x358343=_0x517afa;var _0x2b7771;const _0x217fca=this[_0x358343(0x242)][_0x358343(0xf5)](_0x358343(0x7d));if(!_0x217fca||!_0x132fe9['getSheetBySheetId'](_0x217fca)){const _0x306cb0=_0x132fe9[_0x358343(0x1f0)]()[0x0],_0x5c5991=_0x132fe9[_0x358343(0x18f)](_0x306cb0);if(!_0x5c5991)return;this['_updateURLWithCurrentState'](_0x5c5991,!0x0),await this['_commandService'][_0x358343(0x111)](_0x3fab11['id'],{'unitId':_0x132fe9[_0x358343(0x90)](),'subUnitId':_0x306cb0});return;}((_0x2b7771=_0x132fe9['getActiveSheet']())==null?void 0x0:_0x2b7771[_0x358343(0x83)]())!==_0x217fca&&await this[_0x358343(0x27f)][_0x358343(0x111)](_0x3fab11['id'],{'unitId':_0x132fe9[_0x358343(0x90)](),'subUnitId':_0x217fca});}};ae=Ni([K(0x0,At),K(0x1,_0x46da51),K(0x2,_0x4ab028),K(0x3,_0x388393(_0x2a1a88)),K(0x4,_0x4ea5e5(_0x4dada7))],ae);var bi=Object[_0x517afa(0x217)],Ui=(_0x3a589e,_0x271cc7,_0xee4681,_0x2b03ed)=>{const _0x2b818b=_0x517afa;for(var _0x23d4d7=_0x2b03ed>0x1?void 0x0:_0x2b03ed?bi(_0x271cc7,_0xee4681):_0x271cc7,_0x124f65=_0x3a589e[_0x2b818b(0x1d1)]-0x1,_0x47b0f2;_0x124f65>=0x0;_0x124f65--)(_0x47b0f2=_0x3a589e[_0x124f65])&&(_0x23d4d7=_0x47b0f2(_0x23d4d7)||_0x23d4d7);return _0x23d4d7;},tt=(_0x1da118,_0x5f0858)=>(_0x5a9b32,_0x492fc8)=>_0x5f0858(_0x5a9b32,_0x492fc8,_0x1da118);let Ae=class extends _0x518648{constructor(_0x3c548b,_0x287896){const _0x4ab910=_0x517afa;super(),this[_0x4ab910(0x1d4)]=_0x3c548b,this[_0x4ab910(0x238)]=_0x287896,this[_0x4ab910(0xf3)]();}[_0x517afa(0xf3)](){const _0x807ef7=_0x517afa,_0xed730a=this;this[_0x807ef7(0x161)](this[_0x807ef7(0x1d4)][_0x807ef7(0xcd)]({'onBeforePasteImage':async _0x104091=>{const _0x421e66=_0x807ef7,_0x22c284=await _0xed730a[_0x421e66(0x238)][_0x421e66(0x22d)](_0x104091);return _0x22c284?{'source':_0x22c284['source'],'imageSourceType':_0x22c284[_0x421e66(0x1e4)]}:null;}}));}};Ae=Ui([tt(0x0,_0xaa9e07),tt(0x1,_0x32f1bc)],Ae);const st=['purple.300',_0x517afa(0x1f8),_0x517afa(0xeb),_0x517afa(0x25d),_0x517afa(0x116),'yellow.400'];class je extends _0x4057f7{constructor(){const _0x532079=_0x517afa;super(...arguments),l(this,_0x532079(0x271),new Map()),l(this,_0x532079(0x158),0x0);}['assignAColorForMemberID'](_0x7aa126){const _0x43b310=_0x517afa;if(this['_assignedColors'][_0x43b310(0x248)](_0x7aa126))return this[_0x43b310(0x271)][_0x43b310(0x19b)](_0x7aa126);const _0x4d835b=st[this[_0x43b310(0x158)]];return this[_0x43b310(0x158)]=(this[_0x43b310(0x158)]+0x1)%st[_0x43b310(0x1d1)],this[_0x43b310(0x271)][_0x43b310(0x11e)](_0x7aa126,_0x4d835b),_0x4d835b;}}function Pt(_0x5e9642){const _0x265b04=_0x517afa;let _0x263ae5='';for(const _0x50a3df of _0x5e9642){const {startOffset:_0x54adc5,endOffset:_0x53eba6,isActive:_0x4bad31,rangeType:_0x4bf001,segmentId:_0x3935cd,segmentPage:_0xcc0f57}=_0x50a3df;_0x263ae5[_0x265b04(0x1d1)]&&(_0x263ae5+=','),_0x263ae5+=_0x54adc5+':'+_0x53eba6+':'+(_0x4bad31?'1':'0')+':'+_0x4bf001+':'+_0x3935cd+':'+_0xcc0f57;}return _0x263ae5;}function Li(_0x28dae9){const _0x5e844c=_0x517afa,_0x5de168=_0x28dae9[_0x5e844c(0xa4)](','),_0x1dde10=[];for(const _0x15e125 of _0x5de168){const [_0x5e1c5a,_0x5dc617,_0x163197,_0x3430a9,_0x2a8359,_0x57d42f]=_0x15e125[_0x5e844c(0xa4)](':');_0x1dde10['push']({'startOffset':Number(_0x5e1c5a),'endOffset':Number(_0x5dc617),'collapsed':_0x5e1c5a===_0x5dc617,'isActive':_0x163197==='1','rangeType':_0x3430a9===_0x13dbee['TEXT']?_0x13dbee['TEXT']:_0x13dbee[_0x5e844c(0x1ba)],'segmentId':typeof _0x2a8359=='string'?String(_0x2a8359):'','segmentPage':Number(_0x57d42f!=null?_0x57d42f:-0x1)});}return _0x1dde10[_0x5e844c(0x15e)](_0x592fd5=>_0x592fd5[_0x5e844c(0x24a)])||(_0x1dde10[0x0][_0x5e844c(0x24a)]=!0x0),_0x1dde10;}class Xe extends _0x518648{constructor(){const _0x5bbd14=_0x517afa;super(...arguments),l(this,_0x5bbd14(0x123),new _0x340b13(null)),l(this,'collabCursorState$',this[_0x5bbd14(0x123)][_0x5bbd14(0x198)]());}[_0x517afa(0x14a)](_0x2227c6){const _0x1b7d2f=_0x517afa,{unitID:_0x20ed6a,memberID:_0x447a78,textRanges:_0x441103}=_0x2227c6,_0x5ee698=Pt(_0x441103);if(_0x5ee698==='')return;const _0xeaed33={'unitID':_0x20ed6a,'memberID':_0x447a78,'selection':_0x5ee698};this[_0x1b7d2f(0x123)][_0x1b7d2f(0xb2)](_0xeaed33);}}var Mi=Object['getOwnPropertyDescriptor'],Ai=(_0x5c52be,_0x113c0e,_0x3f753c,_0x22ba5d)=>{for(var _0x426601=_0x22ba5d>0x1?void 0x0:_0x22ba5d?Mi(_0x113c0e,_0x3f753c):_0x113c0e,_0x3a3feb=_0x5c52be['length']-0x1,_0x159a49;_0x3a3feb>=0x0;_0x3a3feb--)(_0x159a49=_0x5c52be[_0x3a3feb])&&(_0x426601=_0x159a49(_0x426601)||_0x426601);return _0x426601;},A=(_0x3dee63,_0x2adcf7)=>(_0x1b4ae5,_0x25d1b8)=>_0x2adcf7(_0x1b4ae5,_0x25d1b8,_0x3dee63);const Pi=0x12c,wi=0x64;let Pe=class extends _0x518648{constructor(_0x5c3433,_0x328926,_0x1e1b10,_0x444016,_0x2d75f0,_0x1cf721,_0x490a57,_0x312c88,_0x531b60){const _0x56bd48=_0x517afa;super(),l(this,_0x56bd48(0xa7),!0x1),l(this,_0x56bd48(0xf3),!0x1),l(this,_0x56bd48(0x234),new _0x340b13(new Map())),l(this,_0x56bd48(0x255),this[_0x56bd48(0x234)]['asObservable']()),l(this,_0x56bd48(0x1f5),new _0x340b13([])),l(this,'roomMembers$',this[_0x56bd48(0x1f5)][_0x56bd48(0x7b)](_0x59a831(Pi))),l(this,_0x56bd48(0x284),_0x5465f7(_0x286426=>{const _0x15f7c9=_0x56bd48,_0x21f282={'eventID':_0x2aa15d[_0x15f7c9(0xd7)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Pt(_0x286426)}};this[_0x15f7c9(0xad)][_0x15f7c9(0x267)](_0x21f282,this[_0x15f7c9(0x186)]);},wi)),(this[_0x56bd48(0x186)]=_0x5c3433,this[_0x56bd48(0xad)]=_0x328926,this[_0x56bd48(0x22f)]=_0x1e1b10,this['_colorAssignService']=_0x444016,this[_0x56bd48(0x1d9)]=_0x2d75f0,this[_0x56bd48(0x66)]=_0x1cf721,this[_0x56bd48(0x295)]=_0x490a57,this[_0x56bd48(0xb4)]=_0x312c88,this[_0x56bd48(0x27f)]=_0x531b60);}get[_0x517afa(0x253)](){const _0x5bbc65=_0x517afa;return this['_cursorInfo$'][_0x5bbc65(0x89)]();}get[_0x517afa(0xf4)](){const _0x46a170=_0x517afa;return this[_0x46a170(0x1f5)][_0x46a170(0x89)]();}[_0x517afa(0x121)](){const _0x4645ac=_0x517afa;super[_0x4645ac(0x121)](),this['_cursorInfo$'][_0x4645ac(0xb2)](new Map()),this[_0x4645ac(0x234)][_0x4645ac(0x202)](),this[_0x4645ac(0x1f5)][_0x4645ac(0xb2)]([]),this[_0x4645ac(0x1f5)]['complete']();}['init'](){const _0x4bff03=_0x517afa;this[_0x4bff03(0xf3)]||(this[_0x4bff03(0xf3)]=!0x0,this[_0x4bff03(0xad)]['sessionStatus$'][_0x4bff03(0x7b)](_0xd33296(this[_0x4bff03(0x1e9)]))['subscribe'](_0x61aa1=>{const _0x2f867e=_0x4bff03;_0x61aa1===_0x309895['ONLINE']?this[_0x2f867e(0x177)]():this['_toggleOffline']();}),this[_0x4bff03(0xad)][_0x4bff03(0x226)][_0x4bff03(0x7b)](_0xd33296(this[_0x4bff03(0x1e9)]))[_0x4bff03(0x243)](_0x296dfc=>{const _0x1d2a06=_0x4bff03,_0x37a521=_0x296dfc[_0x1d2a06(0x69)];_0x37a521===_0x2aa15d['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x296dfc),_0x37a521===_0x2aa15d[_0x1d2a06(0x26c)]&&this['_onCursorDelete'](_0x296dfc);}),this[_0x4bff03(0x161)](this['_commandService'][_0x4bff03(0x208)](_0x2b90ab=>{const _0x44a781=_0x4bff03,_0x5eb7c3=_0x2b90ab[_0x44a781(0x269)];_0x5eb7c3!=null&&this['_online']&&_0x2b90ab['id']===_0x1ec7e1['id']&&_0x5eb7c3[_0x44a781(0x140)]===this[_0x44a781(0x186)]&&_0x5eb7c3[_0x44a781(0xe9)]===!0x1&&_0x5eb7c3[_0x44a781(0x25f)]['length']>0x0&&this[_0x44a781(0x284)](_0x5eb7c3['ranges']);})),this[_0x4bff03(0x66)][_0x4bff03(0xa6)][_0x4bff03(0x7b)](_0xd33296(this['dispose$']))[_0x4bff03(0x243)](_0x1d5e1e=>{const _0x2ad665=_0x4bff03;if((_0x1d5e1e==null?void 0x0:_0x1d5e1e[_0x2ad665(0x186)])!==this[_0x2ad665(0x186)])return;const _0x121ded={'eventID':_0x2aa15d['UPDATE_CURSOR'],'data':_0x1d5e1e};this[_0x2ad665(0x209)](_0x121ded);}),this[_0x4bff03(0x161)](this[_0x4bff03(0x27f)][_0x4bff03(0x208)](_0x8fa16=>{const _0x58c72b=_0x4bff03;if(_0x8fa16['params']==null)return;const _0x329bde=_0x8fa16[_0x58c72b(0x269)];if(_0x8fa16['id']!==_0x3321ec['id']||_0x329bde[_0x58c72b(0x140)]!==this[_0x58c72b(0x186)])return;const _0x54e2a8={'id':_0x58c72b(0x21f),'params':_0x329bde},_0x2f63a4=this[_0x58c72b(0x253)];for(const [_0xf47117,_0x2c4165]of _0x2f63a4){const _0xad3e8={'id':_0x58c72b(0x21f),'params':{'unitId':this[_0x58c72b(0x186)],'actions':null,'textRanges':_0x2c4165[_0x58c72b(0x25f)]}},_0x108dcc=this['_transformService'][_0x58c72b(0x1c4)](_0x54e2a8,_0xad3e8,!0x1);if(_0x18536c(_0x108dcc))throw _0x108dcc[_0x58c72b(0x154)];_0x2f63a4[_0x58c72b(0x11e)](_0xf47117,{..._0x2c4165,'ranges':_0x108dcc['m2Prime'][_0x58c72b(0x269)][_0x58c72b(0x1a7)]});}queueMicrotask(()=>{const _0x260184=_0x58c72b;this[_0x260184(0x234)][_0x260184(0xb2)](_0x2f63a4);});})));}[_0x517afa(0x209)](_0x1d3822){const _0x203a87=_0x517afa;var _0x51d598,_0x68ec78;const {memberID:_0x4d848e,selection:_0x526396}=_0x1d3822['data'],_0x5db27e=Li(_0x526396),_0x3e52af=(_0x68ec78=(_0x51d598=this[_0x203a87(0x1d9)][_0x203a87(0x1f9)](this['unitID'],_0x4d848e))==null?void 0x0:_0x51d598[_0x203a87(0xf8)])!=null?_0x68ec78:_0x203a87(0x22a),_0x5d9ebd={'color':this[_0x203a87(0xe5)][_0x203a87(0xa0)](_0x4d848e),'name':_0x3e52af,'ranges':_0x5db27e},_0x226837=this[_0x203a87(0x253)];_0x226837['set'](_0x4d848e,_0x5d9ebd),this['_cursorInfo$']['next'](_0x226837);}[_0x517afa(0x20b)](_0x592d2e){const _0xa582e8=_0x517afa,{memberID:_0x7a95a7}=_0x592d2e[_0xa582e8(0x16f)],_0x47acc9=this[_0xa582e8(0x253)];_0x47acc9[_0xa582e8(0x26d)](_0x7a95a7),this[_0xa582e8(0x234)][_0xa582e8(0xb2)](_0x47acc9);}[_0x517afa(0x177)](){const _0x1909b7=_0x517afa;var _0xb52e46;if(this[_0x1909b7(0xa7)]=!0x0,((_0xb52e46=this[_0x1909b7(0xb4)][_0x1909b7(0x228)]())==null?void 0x0:_0xb52e46[_0x1909b7(0x90)]())!==this[_0x1909b7(0x186)])return;const _0x5f4213=this['_injector'][_0x1909b7(0x19b)](_0x59d42f)[_0x1909b7(0x15c)]();Array[_0x1909b7(0x229)](_0x5f4213)&&_0x5f4213[_0x1909b7(0x1d1)]>0x0&&this[_0x1909b7(0x284)](_0x5f4213);}[_0x517afa(0x218)](){const _0x4aec1b=_0x517afa;this[_0x4aec1b(0xa7)]=!0x1;}};Pe=Ai([A(0x2,_0x388393(_0x258030)),A(0x3,_0x388393(je)),A(0x4,_0x388393(_0x4164ee)),A(0x5,_0x388393(Xe)),A(0x6,_0x2e28c1),A(0x7,_0x30c7ee),A(0x8,_0x4ab028)],Pe);var yi=Object[_0x517afa(0x217)],$i=(_0x45bb84,_0x2b2fe3,_0x22da68,_0x2a8a11)=>{const _0x5ab209=_0x517afa;for(var _0x5db564=_0x2a8a11>0x1?void 0x0:_0x2a8a11?yi(_0x2b2fe3,_0x22da68):_0x2b2fe3,_0x53f4a5=_0x45bb84[_0x5ab209(0x1d1)]-0x1,_0x4706cc;_0x53f4a5>=0x0;_0x53f4a5--)(_0x4706cc=_0x45bb84[_0x53f4a5])&&(_0x5db564=_0x4706cc(_0x5db564)||_0x5db564);return _0x5db564;},B=(_0xc1b32,_0x15babb)=>(_0x2e3581,_0xadafe1)=>_0x15babb(_0x2e3581,_0xadafe1,_0xc1b32);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x1020bf=[],_0x20e473=!0x1;return _0x331a1b=>{const _0x3d3fe5=_0x4ad2;_0x1020bf[_0x3d3fe5(0x178)](_0x331a1b),_0x20e473||(_0x20e473=!0x0,setTimeout(()=>{const _0x38ad4d=_0x3d3fe5;_0x1020bf[_0x38ad4d(0x17f)](_0xa08f75=>_0xa08f75()),_0x1020bf=[],_0x20e473=!0x1;}));};};let we=class extends _0x518648{constructor(_0x4a9b9e,_0xc9c157,_0x73a832,_0x38901f,_0x32ad48,_0x5657ce,_0x3cfa7b,_0x3d27e3){const _0xd28acc=_0x517afa;super(),l(this,_0xd28acc(0xa7),!0x1),l(this,_0xd28acc(0xf3),!0x1),l(this,'_cursorInfo$',new _0x340b13(new Map())),l(this,'cursorInfo$',this[_0xd28acc(0x234)]['asObservable']()),l(this,_0xd28acc(0x1f5),new _0x340b13([])),l(this,_0xd28acc(0x1fe),this[_0xd28acc(0x1f5)][_0xd28acc(0x7b)](_0x59a831(xi))),l(this,_0xd28acc(0x284),_0x5465f7((_0x33772c,_0x570664)=>{const _0x2c9d2a=_0xd28acc,_0x18d796={'eventID':_0x2aa15d['UPDATE_CURSOR'],'data':{'unitID':this[_0x2c9d2a(0x186)],'memberID':this[_0x2c9d2a(0xad)][_0x2c9d2a(0xc2)](),'selection':_0x1ae78a(_0x33772c,_0x570664['range'])}};this[_0x2c9d2a(0xad)][_0x2c9d2a(0x267)](_0x18d796,this[_0x2c9d2a(0x186)]);},Bi)),(this[_0xd28acc(0x186)]=_0x4a9b9e,this[_0xd28acc(0xad)]=_0xc9c157,this['_injector']=_0x73a832,this[_0xd28acc(0xe5)]=_0x38901f,this[_0xd28acc(0x1d9)]=_0x32ad48,this[_0xd28acc(0xb4)]=_0x5657ce,this[_0xd28acc(0x27f)]=_0x3cfa7b,this['_refRangeService']=_0x3d27e3);}get[_0x517afa(0x253)](){const _0x3b8c2c=_0x517afa;return this[_0x3b8c2c(0x234)][_0x3b8c2c(0x89)]();}get[_0x517afa(0xf4)](){const _0x27f646=_0x517afa;return this[_0x27f646(0x1f5)][_0x27f646(0x89)]();}['dispose'](){const _0x780598=_0x517afa;super[_0x780598(0x121)](),this['_cursorInfo$'][_0x780598(0xb2)](new Map()),this[_0x780598(0x234)][_0x780598(0x202)](),this[_0x780598(0x1f5)][_0x780598(0xb2)]([]),this['_roomMembers$'][_0x780598(0x202)]();}[_0x517afa(0x1bb)](){const _0x37fa7a=_0x517afa;this['_init']||(this[_0x37fa7a(0xf3)]=!0x0,this['_session'][_0x37fa7a(0x12b)][_0x37fa7a(0x7b)](_0xd33296(this['dispose$']))['subscribe'](_0x5070b9=>{const _0x7db586=_0x37fa7a;_0x5070b9===_0x309895['ONLINE']?this[_0x7db586(0x177)]():this[_0x7db586(0x218)]();}),this[_0x37fa7a(0xad)][_0x37fa7a(0x226)]['pipe'](_0xd33296(this[_0x37fa7a(0x1e9)]))[_0x37fa7a(0x243)](_0x1ec446=>{const _0x2813e6=_0x37fa7a,_0x3687af=_0x1ec446[_0x2813e6(0x69)];_0x3687af===_0x2aa15d[_0x2813e6(0xd7)]&&this[_0x2813e6(0x209)](_0x1ec446),_0x3687af===_0x2aa15d[_0x2813e6(0x26c)]&&this[_0x2813e6(0x20b)](_0x1ec446);}),this['_onRefRangeChange'](),this[_0x37fa7a(0x161)](this['_commandService'][_0x37fa7a(0x208)](_0x32761b=>{const _0x321346=_0x37fa7a;if(this['_online']&&_0x32761b['id']===_0x24b6af['id']&&_0x32761b['params'][_0x321346(0x140)]===this[_0x321346(0x186)]){const _0x46be23=_0x32761b[_0x321346(0x269)];this[_0x321346(0x284)](_0x46be23[_0x321346(0x15a)],_0x46be23[_0x321346(0x13a)][0x0]);}})));}[_0x517afa(0x209)](_0x473b66){const _0x3d45b0=_0x517afa;var _0x598fef,_0x39e513;const {memberID:_0x993bf4,selection:_0x8c5fb5}=_0x473b66['data'],{sheetName:_0x5d2220,range:_0x25b0ef}=_0x2f7970(_0x8c5fb5),_0x1d8bfc={'name':(_0x39e513=(_0x598fef=this[_0x3d45b0(0x1d9)][_0x3d45b0(0x1f9)](this[_0x3d45b0(0x186)],_0x993bf4))==null?void 0x0:_0x598fef[_0x3d45b0(0xf8)])!=null?_0x39e513:_0x3d45b0(0x22a),'range':this['_getMergeRange'](_0x5d2220,_0x25b0ef),'sheetID':_0x5d2220,'color':this[_0x3d45b0(0xe5)][_0x3d45b0(0xa0)](_0x993bf4),'selection':_0x8c5fb5},_0xd1788=this[_0x3d45b0(0x253)];_0xd1788[_0x3d45b0(0x11e)](_0x993bf4,_0x1d8bfc),this[_0x3d45b0(0x234)][_0x3d45b0(0xb2)](_0xd1788);}[_0x517afa(0x20b)](_0x3547f8){const _0x176164=_0x517afa,{memberID:_0x4ba7f3}=_0x3547f8[_0x176164(0x16f)],_0x63d5a2=this[_0x176164(0x253)];_0x63d5a2[_0x176164(0x26d)](_0x4ba7f3),this[_0x176164(0x234)][_0x176164(0xb2)](_0x63d5a2);}[_0x517afa(0x72)](_0x3aa281,_0x41b4ba){const _0x318f83=_0x517afa;var _0x549508,_0x3c770a;const _0x577250=(_0x3c770a=(_0x549508=this[_0x318f83(0xb4)][_0x318f83(0x11b)](this[_0x318f83(0x186)]))==null?void 0x0:_0x549508['getSheetBySheetId'](_0x3aa281))==null?void 0x0:_0x3c770a['getMergeData']();return(_0x577250==null?void 0x0:_0x577250[_0x318f83(0x108)](_0x300d92=>_0x54ee1a[_0x318f83(0x9c)](_0x300d92,_0x41b4ba)))||_0x41b4ba;}[_0x517afa(0x214)](){const _0x28e8fb=_0x517afa,_0x91e2df=new _0x57a43d(),_0x334ce3=Fi(),_0x19bbfd=()=>{const _0x2f3f19=_0x4ad2;_0x91e2df[_0x2f3f19(0x121)]();const _0x2b532b=(_0x19ee4b,_0x412742,_0x343cc0,_0x2847bd)=>{const _0x4225d7=_0x2f3f19;let _0x52674f=[];switch(_0x19ee4b['id']){case _0x3786ea[_0x4225d7(0x25c)]:{_0x52674f=_0x3b4431(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x131)]:{_0x52674f=_0x1cffba(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x10b)]:{_0x52674f=_0x11dfa9(_0x19ee4b,_0x2847bd);break;}case _0x3786ea['InsertRangeMoveDownCommandId']:{_0x52674f=_0x2cc346(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x203)]:{_0x52674f=_0x516fbd(_0x19ee4b,_0x2847bd);break;}case _0x3786ea['InsertRowCommandId']:{_0x52674f=_0x223b9d(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x94)]:{_0x52674f=_0x443ce7(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x8b)]:{_0x52674f=_0x1788e2(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x81)]:{_0x52674f=_0x559731(_0x19ee4b,_0x2847bd);break;}}const _0xf33b78=_0x575db5(_0x52674f,_0x2847bd),_0x2fb4f6=this[_0x4225d7(0x253)][_0x4225d7(0x19b)](_0x412742);if(_0x2fb4f6&&_0xf33b78){const _0x47de2e={..._0x2fb4f6,'range':_0xf33b78};this['cursorInfo']['set'](_0x412742,_0x47de2e),_0x334ce3(()=>{const _0x547b0f=_0x4225d7,_0x565801=this[_0x547b0f(0x16b)][_0x547b0f(0x20f)](_0xf33b78,_0x3632f4=>(_0x565801[_0x547b0f(0x121)](),_0x2b532b(_0x3632f4,_0x412742,_0x343cc0,_0xf33b78)));_0x91e2df['add'](_0x565801);});}return{'redos':[],'undos':[]};};this[_0x2f3f19(0x253)][_0x2f3f19(0x17f)]((_0x1b9df4,_0x5e6198)=>{const _0x4fb892=_0x2f3f19,{range:_0x30445a,sheetID:_0x3c7288}=_0x1b9df4,_0x2446c6=this[_0x4fb892(0x16b)][_0x4fb892(0x20f)](_0x30445a,_0x1abff8=>(_0x2446c6[_0x4fb892(0x121)](),_0x2b532b(_0x1abff8,_0x5e6198,_0x3c7288,_0x30445a)));_0x91e2df[_0x4fb892(0xef)](_0x2446c6);});};this[_0x28e8fb(0x161)](_0x5d128c(this['_cursorInfo$'][_0x28e8fb(0x243)](()=>{_0x19bbfd();})));}[_0x517afa(0x177)](){const _0x51f54b=_0x517afa;var _0x1769fe,_0x32afa9;if(this['_online']=!0x0,((_0x1769fe=this[_0x51f54b(0xb4)][_0x51f54b(0x228)]())==null?void 0x0:_0x1769fe[_0x51f54b(0x90)]())!==this[_0x51f54b(0x186)])return;const _0x145116=(_0x32afa9=this[_0x51f54b(0x22f)]['get'](_0x4b8257)[_0x51f54b(0xc9)]())==null?void 0x0:_0x32afa9[0x0],_0x332ac5=this[_0x51f54b(0xb4)]['getCurrentUnitForType'](_0x4ed0b3[_0x51f54b(0x211)])['getActiveSheet']();_0x145116&&_0x332ac5&&this['_updateLocalCursor'](_0x332ac5[_0x51f54b(0x83)](),_0x145116);}[_0x517afa(0x218)](){const _0x331618=_0x517afa;this[_0x331618(0xa7)]=!0x1;}};we=$i([B(0x2,_0x388393(_0x258030)),B(0x3,_0x388393(je)),B(0x4,_0x388393(_0x4164ee)),B(0x5,_0x30c7ee),B(0x6,_0x4ab028),B(0x7,_0x388393(_0x2c0610))],we);var ki=Object[_0x517afa(0x217)],Hi=(_0x4343dd,_0x56984c,_0x4bf1c9,_0x570a4d)=>{const _0x2a3f1e=_0x517afa;for(var _0x41c405=_0x570a4d>0x1?void 0x0:_0x570a4d?ki(_0x56984c,_0x4bf1c9):_0x56984c,_0x426f24=_0x4343dd[_0x2a3f1e(0x1d1)]-0x1,_0x5ce1c9;_0x426f24>=0x0;_0x426f24--)(_0x5ce1c9=_0x4343dd[_0x426f24])&&(_0x41c405=_0x5ce1c9(_0x41c405)||_0x41c405);return _0x41c405;},Ee=(_0x37743f,_0x25d6df)=>(_0x143889,_0x29524d)=>_0x25d6df(_0x143889,_0x29524d,_0x37743f);let H=class extends _0x518648{constructor(_0x645138,_0x11beec,_0xadfc10){const _0x5658f7=_0x517afa;super(),l(this,'_entities',new Map()),l(this,_0x5658f7(0x1cc),new _0x25ec2f()),(this[_0x5658f7(0xb4)]=_0x645138,this['_injector']=_0x11beec,this[_0x5658f7(0x1a8)]=_0xadfc10,this[_0x5658f7(0xf3)]());}[_0x517afa(0x121)](){const _0x35f67e=_0x517afa;super['dispose'](),this[_0x35f67e(0x1cc)][_0x35f67e(0x202)](),this[_0x35f67e(0x1e5)][_0x35f67e(0x17f)](_0x56f1f8=>_0x56f1f8[_0x35f67e(0x121)]());}[_0x517afa(0x205)](_0x411976){const _0x4783ea=_0x517afa;return this[_0x4783ea(0x1e5)][_0x4783ea(0x248)](_0x411976)?this[_0x4783ea(0x1e5)][_0x4783ea(0x19b)](_0x411976)[_0x4783ea(0x255)]:this[_0x4783ea(0x1cc)][_0x4783ea(0x7b)](_0x4edfe7(_0x3ab5ce=>_0x3ab5ce[_0x4783ea(0x186)]===_0x411976),_0x1308ff(_0x2de03e=>_0x2de03e['cursorInfo$']));}[_0x517afa(0xf3)](){const _0x206117=_0x517afa;this[_0x206117(0xb4)]['getTypeOfUnitAdded$'](_0x4ed0b3['UNIVER_SHEET'])[_0x206117(0x7b)](_0xd33296(this[_0x206117(0x1e9)]))[_0x206117(0x243)](async _0x3b652c=>{const _0x4e2ac6=_0x206117,_0x275a57=_0x3b652c[_0x4e2ac6(0x90)](),_0x4cd8b2=await this[_0x4e2ac6(0x17a)](_0x275a57);this[_0x4e2ac6(0x1cc)][_0x4e2ac6(0xb2)](_0x4cd8b2),this['_entities'][_0x4e2ac6(0x11e)](_0x275a57,_0x4cd8b2);}),this[_0x206117(0xb4)]['getTypeOfUnitAdded$'](_0x4ed0b3[_0x206117(0xf0)])[_0x206117(0x7b)](_0xd33296(this['dispose$']))[_0x206117(0x7b)](_0x4edfe7(_0x5aa57b=>!_0x5aa57b['getUnitId']()['startsWith']('__')))[_0x206117(0x243)](async _0x1ae181=>{const _0xbdeb3e=_0x206117,_0x2d62cf=_0x1ae181[_0xbdeb3e(0x90)](),_0x2a3076=await this[_0xbdeb3e(0x1e6)](_0x2d62cf);this[_0xbdeb3e(0x1cc)]['next'](_0x2a3076),this[_0xbdeb3e(0x1e5)][_0xbdeb3e(0x11e)](_0x2d62cf,_0x2a3076);}),_0x2f4c1a(this[_0x206117(0xb4)][_0x206117(0x1fa)](_0x4ed0b3['UNIVER_DOC']),this[_0x206117(0xb4)]['getTypeOfUnitDisposed$'](_0x4ed0b3[_0x206117(0x211)]))[_0x206117(0x7b)](_0xd33296(this[_0x206117(0x1e9)]))['subscribe'](_0x5691df=>{const _0x3323bb=_0x206117,_0x2e3e0e=_0x5691df[_0x3323bb(0x90)](),_0xef9d45=this[_0x3323bb(0x1e5)][_0x3323bb(0x19b)](_0x2e3e0e);_0xef9d45&&(_0xef9d45['dispose'](),this[_0x3323bb(0x1e5)]['delete'](_0x2e3e0e));});}async['_startSheetCollabCursor'](_0x2ba64c){const _0x3494ee=_0x517afa,_0x3b1762=await this[_0x3494ee(0x1a8)][_0x3494ee(0x146)](_0x2ba64c),_0x2f20e6=this['_injector'][_0x3494ee(0x263)](we,_0x2ba64c,_0x3b1762);return _0x2f20e6[_0x3494ee(0x1bb)](),_0x2f20e6;}async[_0x517afa(0x1e6)](_0x58e15b){const _0x4fb0b6=_0x517afa,_0x2df5c4=await this[_0x4fb0b6(0x1a8)][_0x4fb0b6(0x146)](_0x58e15b),_0x583a5e=this[_0x4fb0b6(0x22f)][_0x4fb0b6(0x263)](Pe,_0x58e15b,_0x2df5c4);return _0x583a5e[_0x4fb0b6(0x1bb)](),_0x583a5e;}};H=Hi([Ee(0x0,_0x30c7ee),Ee(0x1,_0x388393(_0x258030)),Ee(0x2,_0x388393(_0x2c25d7))],H);function _0x4ad2(_0x40d07e,_0x45a39a){const _0x1e85d5=_0x1e85();return _0x4ad2=function(_0x4ad208,_0x1fcd5c){_0x4ad208=_0x4ad208-0x64;let _0x1b0897=_0x1e85d5[_0x4ad208];return _0x1b0897;},_0x4ad2(_0x40d07e,_0x45a39a);}const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x4862c3,_0x56f022){const _0x1fbfa0=_0x517afa;let {radius:_0x7e1d69,width:_0x5960c5,height:_0x1056b4}=_0x56f022;_0x7e1d69=_0x7e1d69!=null?_0x7e1d69:0x0,_0x5960c5=_0x5960c5!=null?_0x5960c5:0x1e,_0x1056b4=_0x1056b4!=null?_0x1056b4:0x1e;let _0x2ef22f=0x0,_0x5724c0=0x0,_0x43f1fc=0x0;_0x2ef22f=_0x5724c0=_0x43f1fc=Math[_0x1fbfa0(0x135)](_0x7e1d69,_0x5960c5/0x2,_0x1056b4/0x2),_0x4862c3[_0x1fbfa0(0x266)](),_0x4862c3[_0x1fbfa0(0xec)](_0x2ef22f,0x0),_0x4862c3[_0x1fbfa0(0x105)](_0x5960c5-_0x5724c0,0x0),_0x4862c3[_0x1fbfa0(0x25a)](_0x5960c5-_0x5724c0,_0x5724c0,_0x5724c0,Math['PI']*0x3/0x2,0x0,!0x1),_0x4862c3[_0x1fbfa0(0x105)](_0x5960c5,_0x1056b4-_0x43f1fc),_0x4862c3['arc'](_0x5960c5-_0x43f1fc,_0x1056b4-_0x43f1fc,_0x43f1fc,0x0,Math['PI']/0x2,!0x1),_0x4862c3[_0x1fbfa0(0x105)](0x0,_0x1056b4),_0x4862c3[_0x1fbfa0(0x105)](0x0,_0x2ef22f),_0x4862c3[_0x1fbfa0(0x25a)](_0x2ef22f,_0x2ef22f,_0x2ef22f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4862c3[_0x1fbfa0(0x215)](),_0x56f022['fill']&&(_0x4862c3['save'](),_0x4862c3[_0x1fbfa0(0x101)]=_0x56f022['fill'],_0x56f022[_0x1fbfa0(0x1e7)]===_0x1fbfa0(0x67)?_0x4862c3[_0x1fbfa0(0x77)](_0x1fbfa0(0x67)):_0x4862c3[_0x1fbfa0(0x77)](),_0x4862c3['restore']());}class me extends _0x965c3a{constructor(_0x36e80f,_0x2d0a3b){const _0x419f38=_0x517afa;super(_0x36e80f,_0x2d0a3b),l(this,_0x419f38(0xdf)),l(this,_0x419f38(0x287)),(this[_0x419f38(0xdf)]=_0x2d0a3b==null?void 0x0:_0x2d0a3b[_0x419f38(0xdf)],this[_0x419f38(0x287)]=_0x2d0a3b==null?void 0x0:_0x2d0a3b['text']);}static['drawWith'](_0x50405d,_0x50678d){const _0x28aa27=_0x517afa,{text:_0x53ea7d,color:_0x10b704}=_0x50678d;_0x50405d[_0x28aa27(0x147)](),_0x50405d[_0x28aa27(0x292)]=_0x28aa27(0x7f);const _0x24eb2f=_0x50405d[_0x28aa27(0x1bc)](_0x53ea7d)[_0x28aa27(0x1ee)],_0x31efa3=Math['min'](_0x24eb2f+0x2*pe,it);Wi(_0x50405d,{'height':Q,'radius':0x4,'width':_0x31efa3,'fill':_0x10b704}),_0x50405d['fillStyle']='#FFF';const _0x36f223=pe,_0x47398d=Q-Yi,_0x1ff68a=it-0x2*pe;if(_0x24eb2f>_0x1ff68a){let _0x40b36d='',_0x53edf6=0x0;for(const _0x593334 of _0x53ea7d){const _0xd56cfa=_0x50405d[_0x28aa27(0x1bc)](_0x593334)['width'];if(_0x53edf6+_0xd56cfa<=_0x1ff68a-_0x50405d[_0x28aa27(0x1bc)](_0x28aa27(0xab))['width'])_0x40b36d+=_0x593334,_0x53edf6+=_0xd56cfa;else{_0x40b36d+=_0x28aa27(0xab);break;}}_0x50405d[_0x28aa27(0x12f)](_0x40b36d,_0x36f223,_0x47398d);}else _0x50405d[_0x28aa27(0x12f)](_0x53ea7d,_0x36f223,_0x47398d);_0x50405d[_0x28aa27(0x70)]();}[_0x517afa(0x78)](_0x5c164c){const _0x3fb4a0=_0x517afa;me[_0x3fb4a0(0x12c)](_0x5c164c,this);}}const Oe=_0x517afa(0x95),Vi=_0x517afa(0x1bf),ji='collab-rect-range-',z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x517afa(0x128);class nt{constructor(_0x12f06c,_0x3abc28,_0xbbaaae,_0x59ebcc){const _0x27b03e=_0x517afa;l(this,_0x27b03e(0x10c),[]),l(this,_0x27b03e(0x27d),null),l(this,'_textBubble',null),l(this,'_anchorDot',null),l(this,_0x27b03e(0x1aa),null),l(this,'_eventUnsubscribe',null),(this[_0x27b03e(0x270)]=_0x12f06c,this[_0x27b03e(0x132)]=_0x3abc28,this[_0x27b03e(0x136)]=_0xbbaaae,this[_0x27b03e(0x73)]=_0x59ebcc,this[_0x27b03e(0xc4)]());}set[_0x517afa(0xb5)](_0x3dfc13){const _0x4382ae=_0x517afa;_0x3dfc13?(this[_0x4382ae(0x236)]&&this[_0x4382ae(0x236)][_0x4382ae(0x181)](),this[_0x4382ae(0x28b)]&&this[_0x4382ae(0x28b)][_0x4382ae(0xd6)]()):(this[_0x4382ae(0x236)]&&this[_0x4382ae(0x236)]['show'](),this[_0x4382ae(0x28b)]&&this[_0x4382ae(0x28b)][_0x4382ae(0x181)]());}[_0x517afa(0x121)](){const _0x28062c=_0x517afa;for(const _0x4c0799 of this[_0x28062c(0x10c)])_0x4c0799[_0x28062c(0x121)]();this[_0x28062c(0x28b)]&&this[_0x28062c(0x28b)][_0x28062c(0x121)](),this[_0x28062c(0x236)]&&this[_0x28062c(0x236)]['dispose'](),this[_0x28062c(0x27d)]&&this[_0x28062c(0x27d)]['dispose'](),this[_0x28062c(0x185)]&&this[_0x28062c(0x185)]();}[_0x517afa(0xc4)](){const _0x4597c4=_0x517afa;var _0x17fa94;const {_docSkeleton:_0x383f21,_document:_0x264125}=this,{color:_0x309182,name:_0x4de3df,ranges:_0x22ef0c}=this['_cursor'],_0x585345=_0x264125['getOffsetConfig'](),{docsLeft:_0x2ccd0f,docsTop:_0x3703b4}=_0x585345,_0x1f7ad2=new _0x22b823(_0x585345,_0x383f21);for(const {startOffset:_0x31f17e,endOffset:_0x1af54b,rangeType:_0x728e6a,segmentId:_0x1b55fd,segmentPage:_0x3aeff9,collapsed:_0x5e4e86,isActive:_0x4a7d5d}of _0x22ef0c){const _0x134bdc=_0x383f21[_0x4597c4(0x10d)](_0x31f17e,!0x0,_0x1b55fd,_0x3aeff9);let _0x1e633f=_0x383f21[_0x4597c4(0x10d)](_0x1af54b,!0x0,_0x1b55fd,_0x3aeff9);if(_0x1e633f==null&&(_0x1e633f=_0x383f21[_0x4597c4(0x10d)](_0x1af54b-0x1,!0x1,_0x1b55fd,_0x3aeff9)),_0x4a7d5d){const {contentBoxPointGroup:_0x1f0935}=_0x1f7ad2[_0x4597c4(0x261)](_0x1e633f,_0x1e633f);if(_0x1f0935[_0x4597c4(0x1d1)]===0x0)continue;this[_0x4597c4(0x19f)](_0x309182,_0x1f0935,_0x2ccd0f,_0x3703b4,_0x4de3df),this[_0x4597c4(0x185)]=this['_handleHover']();}if(_0x134bdc&&_0x1e633f){if(_0x728e6a===_0x13dbee['RECT']){const _0x46e7be=new _0x4d41d5(_0x585345,_0x383f21),{pointGroup:_0x4b7d28}=(_0x17fa94=_0x46e7be['getRangePointData'](_0x134bdc,_0x1e633f))!=null?_0x17fa94:{};if(_0x4b7d28==null||_0x4b7d28[_0x4597c4(0x1d1)]===0x0)continue;this['_drawRectRange'](_0x309182,_0x4b7d28,_0x2ccd0f,_0x3703b4);}else{if(!_0x5e4e86){const {borderBoxPointGroup:_0x182dc4}=_0x1f7ad2['getRangePointData'](_0x134bdc,_0x1e633f);if(_0x182dc4['length']===0x0)continue;this[_0x4597c4(0xd9)](_0x309182,_0x182dc4,_0x2ccd0f,_0x3703b4);}}}}}[_0x517afa(0x19f)](_0xb937a3,_0x3aec95,_0x4103f6,_0x478822,_0x3643e6){const _0x5a6df9=_0x517afa,_0x2924fd=this[_0x5a6df9(0x16e)](_0x3aec95),{left:_0x5be36e,top:_0x42b5de,height:_0xd79e66}=_0x2924fd,_0x3319da=this['_getScale'](),_0x1707b8=Gi/_0x3319da,_0x2c7148=new _0x54f591(Oe+_0x24b861(z),{'left':_0x5be36e+_0x4103f6-_0x1707b8,'top':_0x42b5de+_0x478822,'height':_0xd79e66,'width':Xi,'fill':_0xb937a3||_0x4d4f6a(_0x520d70[_0x5a6df9(0xba)],0x0),'strokeWidth':_0x1707b8,'stroke':Ki,'evented':!0x0});this['_anchor']=_0x2c7148,this['_scene'][_0x5a6df9(0x151)](_0x2c7148,_0x57eea3);const _0x408fef=new _0x54f591(Oe+_0x24b861(z),{'left':_0x5be36e+_0x4103f6-_0x1707b8,'top':_0x42b5de+_0x478822-Te/0x2,'height':Te,'width':Te,'fill':_0xb937a3||_0x4d4f6a(_0x520d70[_0x5a6df9(0xba)],0x0),'strokeWidth':0x0,'stroke':_0xb937a3||_0x4d4f6a(_0x520d70[_0x5a6df9(0xba)],0x0),'evented':!0x1});this['_anchorDot']=_0x408fef,this[_0x5a6df9(0x132)][_0x5a6df9(0x151)](_0x408fef,_0x57eea3);const _0x13cb91=new me(Oe+_0x24b861(z),{'left':_0x5be36e+_0x4103f6-_0x1707b8,'top':_0x42b5de+_0x478822-Q,'text':_0x3643e6,'color':_0xb937a3});this[_0x5a6df9(0x28b)]=_0x13cb91,this[_0x5a6df9(0x132)][_0x5a6df9(0x151)](_0x13cb91,_0x57eea3),this[_0x5a6df9(0xb5)]=!0x1;}['_handleHover'](){const _0x59dce2=_0x517afa,_0x59e6a7=this[_0x59dce2(0x27d)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x2bb66d=_0x59dce2;this[_0x2bb66d(0xb5)]=!0x0;}),_0xd0a599=this[_0x59dce2(0x27d)][_0x59dce2(0x1b6)][_0x59dce2(0x1b9)](()=>{const _0x236821=_0x59dce2;this[_0x236821(0x1aa)]&&clearTimeout(this[_0x236821(0x1aa)]),this['_hideTimer']=setTimeout(()=>{const _0x3fcac6=_0x236821;this[_0x3fcac6(0xb5)]=!0x1;},0x7d0);});return()=>{const _0x18ec8c=_0x59dce2;_0x59e6a7['unsubscribe'](),_0xd0a599[_0x18ec8c(0x183)]();};}[_0x517afa(0xd9)](_0x2a1681,_0x2ea02c,_0x194a02,_0x510151){const _0x429cac=_0x517afa,_0x2580a5=new _0x27dda8(_0x2a1681)[_0x429cac(0x227)](0.2)['toRgbString'](),_0x1f8b7a=new _0x6dd2a8(Vi+_0x24b861(z),{'pointsGroup':_0x2ea02c,'fill':_0x2580a5||_0x4d4f6a(_0x520d70[_0x429cac(0xba)],0.2),'left':_0x194a02,'top':_0x510151,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x429cac(0x10c)][_0x429cac(0x178)](_0x1f8b7a),this[_0x429cac(0x132)][_0x429cac(0x151)](_0x1f8b7a,_0x57eea3);}[_0x517afa(0x28f)](_0x31545d,_0x42c77e,_0x4a9f8d,_0x23bad3){const _0x5aa9f8=_0x517afa,_0x58f5e0=new _0x27dda8(_0x31545d)[_0x5aa9f8(0x227)](0.2)[_0x5aa9f8(0x10f)](),_0x576fa7=new _0x6dd2a8(ji+_0x24b861(z),{'pointsGroup':_0x42c77e,'fill':_0x58f5e0||_0x4d4f6a(_0x520d70[_0x5aa9f8(0xba)],0.2),'left':_0x4a9f8d,'top':_0x23bad3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5aa9f8(0x10c)][_0x5aa9f8(0x178)](_0x576fa7),this[_0x5aa9f8(0x132)][_0x5aa9f8(0x151)](_0x576fa7,_0x57eea3);}[_0x517afa(0x16e)](_0x217d00){const _0x4818ec=_0x217d00[0x0],_0x5cd9ee=_0x4818ec[0x0],_0x3fcf86=_0x4818ec[0x2],{x:_0x284e01,y:_0x49183d}=_0x5cd9ee,{x:_0x594e39,y:_0x1ea92d}=_0x3fcf86;return{'left':_0x284e01,'top':_0x49183d,'width':_0x594e39-_0x284e01,'height':_0x1ea92d-_0x49183d};}[_0x517afa(0x1ca)](){const _0x3b3368=_0x517afa,{scaleX:_0x4a2282,scaleY:_0x25b036}=this['_scene'][_0x3b3368(0x166)]();return Math[_0x3b3368(0x282)](_0x4a2282,_0x25b036);}}function _0x1e85(){const _0x41b31d=['color','OTHER_CLIENT_EDITING','APPLY_NON_SEQUENTIAL_REVISION','now','getSkeleton','1em','_colorAssignService','deepClone','clearInterval','getUndoRedoMutationParamsCache','isEditing','off-line-icon','green.600','moveTo','_localCacheService','toString','add','UNIVER_DOC','removeParam','size','_init','roomMembers','getParam','INTERNAL_ERROR','CONNECTOR_DATA_TOO_LARGE','name','PERMISSION_DENIED','ENTITLE_DUP_SUBSCRIPTION','addObjects','collabStatus.offline','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_docSyncEditingCollabCursorService','stringify','override','fillStyle','NO_OTHER_CLIENTS_EDITING','beforeCommandExecuted','REDEMPTION_USER_REDEEM_TIMES_EXCEED','lineTo','colorChannel1','REDEMPTION_CODE_FULLY_REDEEMED','find','substring','path','InsertColCommandId','_shapes','findNodePositionByCharIndex','onLocalMutation','toRgbString','_labelPosition','executeCommand','_setFormulaLimitStatus','_renderManagerService','displayName','session.collaboration-timeout','blue.400','306ZyzxlJ','ENTITLE_REPORT_LIMIT_EXCEED','permission.content','_initStatusComponent','getUniverSheetInstance','UNDEFINED','getStateCache','set','replaceState','defs','dispose','_doCreateSocket','_collabCursorState$','INVITE_CODE_REQUIRED','pushState','COMPLETION_FINISHED','collaboration.single-unit.warning','rgba(255,\x20255,\x20255,\x200.01)','formula.calculation.waiting','INVALID_ARGUMENT','sessionStatus$','drawWith','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_cachedData','fillText','ENTITLE_INSUFFICIENT_QUOTA','DeleteRangeMoveUpCommandId','_scene','dirtyRanges','_heartbeatTimer','min','_docSkeleton','undoState','_range','transformSelections','selections','YUUMI_NO_CUBOID_FOR_QUESTION','setUndoRedoMutationParamsCache','INVITE_CODE_HAS_BEEN_UES','getRelativeToViewportCoord','OffLineIcon','unitId','currentUsage','409488MGjWXN','_docTransformStateCacheService','_getSaveTimeout','_refreshCollabCursors','requireSession','save','_removeClearOtherTimer','string','syncEditingCollabCursor','_lastResponseTimestamp','SYNCED','_taskIds','_collabCursorController','transformByState','_registerDependencies','addObject','translate(.97)','FETCH_MISS','error','status$','18530IsfPMZ','511064BUkdGW','_colorIndex','OTHER_CLIENTS_EDITING','subUnitId','_checkAndWaitForCalculationPermission','getDocRanges','_collaborationController','some','body','USER_IS_ANONYMOUS','disposeWithMe','totalFormulasToCalculate','registerBeforeClose','maxFormulaLimit','LICENSE_IMPORT_SIZE_EXCEEDED','getAncestorScale','DATA_SOURCE_TOO_LARGE','uni.network.url-service','910408KSeBKf','ERROR_AGAIN','_refRangeService','setStateCache','getVpScrollXYInfoByPosToVp','_getAnchorBounding','data','includes','FromArray','url(#off-line-icon_clip0_910_343)','history','_send','_scheduleClearOtherTimer','getCollabEntity$','_toggleOnline','push','ENTITLE_NEED_BILLING_ADDRESS','_startSheetCollabCursor','_applyCommand','_beforeCloseService','disableLocalCache','use','forEach','_config','hide','transformMutationsWithChangeset','unsubscribe','ticket','_eventUnsubscribe','unitID','_sheetSkeletonManagerService','_initCommandExecutedListener','then','USER_NOT_INVITED_CODE','REDEMPTION_INVALID_CODE','_scheduleHeartbeat','setItem','result','getSheetBySheetId','runOnServer','_messageService','currentColor','map','debug','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','APPLY_REVISION_CONFILICT','mask','asObservable','YUUMI_RATE_OVER_LIMIT','getActiveRange','get','univer-mr-2\x20univer-flex\x20univer-text-xl','activeSheet$','ENSURE_SNAPSHOT_EXECUTION','_drawAnchor','VIEW_MAIN','key','parse','_setupBeforeClosingHandler','getRenderById','_instanceService','storage','textRanges','_collabSessionService','SNAPSHOT_HAS_BEEN_REMOVED','_hideTimer','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_selfUnitIDs','INVALID_INVITE_CODE','Loading','children','_dataLoaderService','28EaLEWR','transformRemoteChangeset','search','NOT_FOUND','limitInfo','onPointerLeave$','div','_docSkeletonManagerService','subscribeEvent','RECT','init','measureText','assign','EMAIL_VERIFY_CODE_MISMATCH','collab-text-range-','_getSheetObject','_setupSubUnitSync','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','loadOfflineData','transformMutation','YUUMI_AI_RUN_FAILED','SNAPSHOT_INVALID_SNAPSHOT','top','_unitStatus','code','_getScale','WECHAT_HAS_BEEN_BOUND','_entityInit$','from','bottom','setTimeout','http://www.w3.org/2000/svg','length','getItem','_handleEvent','_docClipboardService','_showGuardMessage','Warning','AUTHORIZE_CODE_ILLEGAL','SOCKET_FAILED_RETRY','_memberService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','attrs','CURRENT_STATUS_CANNOT_OPERATE','entries','collabStatus.fetchMiss','engine','sheetID','APPLY_REJECT','_themeService','APPLY_DUPLICATED','imageSourceType','_entities','_startDocCollabCursor','fillRule','USER_NOT_FOUND','dispose$','executionId','session.connection-failed','unit','getViewport','width','defIds','getUnhiddenWorksheets','_id','_getFormulaLimitStatus','3DnRdhV','PAYMENT_CHANNEL_NOT_SUPPORT','_roomMembers$','resize','row','jiqing.500','getMember','getTypeOfUnitDisposed$','searchParams','backgroundColor','_clearOtherTimers','roomMembers$','updateOfflineData','EMAIL_HAS_BEEN_BOUND','getConfig','complete','InsertRangeMoveRightCommandId','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getCollabCursors$','_maxFormulaLimit','[CollaborationDataLoaderController]','onCommandExecuted','_onCursorUpdate','redoState','_onCursorDelete','onPointerEnter$','_removeCollabCursors','urlChange$','registerRefRange','_lastPointer','UNIVER_SHEET','_revisionService','onMouseMove','_onRefRangeChange','closePath','replace','getOwnPropertyDescriptor','_toggleOffline','with','_initEvent','_httpService','PY_RUNTIME_SCRIPT_ERROR','YUUMI_CONNECTOR_URL_NOT_FOUND','LOGIN_TOKEN_PROCESSING_FAILED','doc.mutation.rich-text-editing','_saveCache','makeDirty','collaboration-client-ui.config','enableLocalCache','YUUMI_ALL_TABLES_IS_INVALID','hovered','event$','setAlpha','getFocusedUnit','isArray','Unknown\x20user','1265750RUVdjc','ACTIVE_UNIT_EVENT_CHANNEL','saveImage','pluginName','_injector','setConfig','_disabled','transformIMECache','START_CALCULATION','_cursorInfo$','post','_anchorDot','_logService','_imageIoService','docStateChange$','onStarting','YUUMI_SUBSCRIPTION_NOT_FOUND','_clearPolling','PENDING','_initStatusListener','_updateURLWithCurrentState','_handleLeaveEvent','_ensureSubject','_urlService','subscribe','_currentUsage','_status$','SOCKET_FAILED','/run/','has','height','isActive','NOT_COLLAB','m2Prime','getformulaLimitStatusUrl','all','getCurrentRevOfUnit','href','_handleJoinEvent','LICENSE_EXPORT_SIZE_EXCEEDED','cursorInfo','getCurrent','cursorInfo$','stage','_releaseCalculationLimit','application/json','saveOfflineData','arc','currentTheme$','DeleteRangeMoveLeftCommandId','red.300','_createSocketURL','ranges','collabStatus.notCollab','getRangePointData','_docTransformSelectionsService','createInstance','tag','editingUnit','beginPath','send','_uiPartsService','params','mutations','collaboration-client.offline-data-not-saved','USERS_LEAVE','delete','transform','SUBMIT_CHANGESET_TIMEOUT','_cursor','_assignedColors','_hovered','/universer-api/license/formula/limit/done','entityInit$','CONFLICT','idSuffix','_docStateChangeManagerService','YUUMI_URL_COL_OUT_OF_RANGE','_transformUndoRedoStack','_saveTaskMap','ENTITLE_CHAT_LIMIT_EXCEED','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_anchor','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_commandService','?taskId=','setParam','max','stageInfo','_updateLocalCursor','unshift','MUTATION','text','_color','_initCommandInterceptor','LICENSE_MAX_UNITS_EXCEEDED','_textBubble','column','ALREADY_EXISTS','_localStorageService','_drawRectRange','location','MOBILE_HAS_BEEN_BOUND','font','INVITE_CODE_ALREADY_BOUND','2783889SmCIue','_transformService','_docTransformIMECacheService','setInterval','wsSessionTicketUrl','SUCCESS','_syncEditingCollabCursorService','evenodd','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','eventID','_transformPreviousActiveRange','runId','_updateSubUnitFromURLParams','selection','registerRenderModule','svg','restore','univer-flex\x20univer-items-center','_getMergeRange','_document','_transformHistoryAndStateStack','reconnect','REDEMPTION_CODE_HAS_BEEN_CREATED','fill','_draw','shift','M0\x200H16V16H0z','pipe','permission.title','subunit','type','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','endRow','RemoveRowCommandId','298865ytrNhi','getSheetId','collabStatus.conflict','_initResize','currentSkeleton$','origin','_name','getValue','_hasFormulaInDirtyRanges','RemoveColCommandId','_startCalculationLimit','YUUMI_ASYNCIO_CANCELLED','_backgroundColor','Error','getUnitId','_context','_updateCollabCursors','whenReady','MoveRangeCommandId','collab-text-anchor-','exhaustSavingTask','APPLY_PERMISSION_DENIED','endColumn','_pollingInterval','_unitOnClients','_scheduleSaving','contains','url(#$1','off-line-icon_clip0_910_343','OFFLINE','assignAColorForMemberID','xlink:href','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_initEntityListener','split','MOBILE_VERIFY_CODE_MISMATCH','collabCursorState$','_online','defineProperty','on-line-icon','m1Prime','...','functionsExecutedState','_session','_registerRenderDependencies','values','YUUMI_UNABLE_LOAD_URL','0\x200\x2017\x2016','next','saveTaskMap','_univerInstanceService','_hover','newValue','TOO_MANY_REQUESTS','_notificationService','Failed','black','setShapeProps','0\x200\x2016\x2016','_cursors','clearTimeout','REDEMPTION_CODE_INACTIVE','LICENSE_DISTRO_REJECTED','UNRECOGNIZED','getMemberID','REDEMPTION_CODE_NOT_STARTED','_render','_getSessionTicket','_configService','onPointerMove$','collaboration.closeRoom','getCurrentSelections','startFormulaLimitUrl','round','disposeUnit','addClipboardHook','startRow','startColumn','focused$','transformStateCache','_checkCalculationAvailable','addHandlerCallback','unload','loadUnit','show','UPDATE_CURSOR','UNAUTHENTICATED','_drawTextRange','_cursorShapes','_localeService','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','LOGIN_FAILED','on-line-icon_clip0_910_349'];_0x1e85=function(){return _0x41b31d;};return _0x1e85();}var zi=Object[_0x517afa(0x217)],Ji=(_0x37f32c,_0xba789f,_0x3c5667,_0x3c03c2)=>{const _0x40201f=_0x517afa;for(var _0x45c090=_0x3c03c2>0x1?void 0x0:_0x3c03c2?zi(_0xba789f,_0x3c5667):_0xba789f,_0x50ab61=_0x37f32c[_0x40201f(0x1d1)]-0x1,_0x36b1df;_0x50ab61>=0x0;_0x50ab61--)(_0x36b1df=_0x37f32c[_0x50ab61])&&(_0x45c090=_0x36b1df(_0x45c090)||_0x45c090);return _0x45c090;},ie=(_0x403136,_0x132da6)=>(_0x4c0073,_0x17be63)=>_0x132da6(_0x4c0073,_0x17be63,_0x403136);let ye=class extends _0x518648{constructor(_0x337615,_0x135bbf,_0x5f2687,_0x20199d,_0x2ea171){const _0x56fd18=_0x517afa;super(),l(this,_0x56fd18(0xda),[]),l(this,_0x56fd18(0xbd),[]),(this[_0x56fd18(0x91)]=_0x337615,this[_0x56fd18(0x1b8)]=_0x135bbf,this[_0x56fd18(0x14e)]=_0x5f2687,this[_0x56fd18(0x27f)]=_0x20199d,this[_0x56fd18(0x1e2)]=_0x2ea171,this['_init']());}[_0x517afa(0xf3)](){const _0xf2a926=_0x517afa,_0x4ae723=this[_0xf2a926(0x91)]['unitId'],_0x1f4125=this['_docSkeletonManagerService'];this[_0xf2a926(0x161)](_0x41429a([this[_0xf2a926(0x14e)][_0xf2a926(0x205)](_0x4ae723),this['_themeService'][_0xf2a926(0x25b)]])[_0xf2a926(0x7b)](_0x4ee011(([_0x2ff7f8,_0x477b9e])=>({'skeleton':_0x1f4125['getSkeleton'](),'cursors':[..._0x2ff7f8[_0xf2a926(0xaf)]()]['flatMap'](_0x34f9f0=>({..._0x34f9f0,'color':this[_0xf2a926(0x1e2)]['getColorFromTheme'](_0x34f9f0[_0xf2a926(0xdf)])}))})))[_0xf2a926(0x243)](_0x371178=>{const _0x53095d=_0xf2a926;if(this[_0x53095d(0x20d)](),_0x371178){const {skeleton:_0xcdfbd,cursors:_0x23b662}=_0x371178;this[_0x53095d(0x92)](_0xcdfbd,_0x23b662);}})),this[_0xf2a926(0x85)](),this['_initCommandExecutedListener']();}[_0x517afa(0x92)](_0x419188,_0x55a1b3){const _0x2cf2cd=_0x517afa,{scene:_0x316f7a,mainComponent:_0x30bd54}=this[_0x2cf2cd(0x91)],_0x8f5119=_0x55a1b3[_0x2cf2cd(0x193)](_0x242929=>new nt(_0x242929,_0x316f7a,_0x419188,_0x30bd54));this[_0x2cf2cd(0xda)]=_0x8f5119,this['_cursors']=_0x55a1b3;}[_0x517afa(0x145)](){const _0x4bd211=_0x517afa;this[_0x4bd211(0x20d)]();const {scene:_0xae241a,mainComponent:_0x2805ee}=this[_0x4bd211(0x91)],_0x3794cc=this[_0x4bd211(0x1b8)][_0x4bd211(0xe3)](),_0x6a473b=this[_0x4bd211(0xbd)]['map'](_0x107e45=>new nt(_0x107e45,_0xae241a,_0x3794cc,_0x2805ee));this[_0x4bd211(0xda)]=_0x6a473b;}[_0x517afa(0x20d)](){const _0x323f63=_0x517afa;this[_0x323f63(0xda)][_0x323f63(0x17f)](_0x3780c6=>_0x3780c6[_0x323f63(0x121)]()),this['_cursorShapes']=[];}[_0x517afa(0x188)](){const _0x244f56=_0x517afa,_0x101246=[_0x2a3ec3['id']];this[_0x244f56(0x161)](this['_commandService']['onCommandExecuted'](_0x498361=>{const _0x196b5a=_0x244f56;_0x101246[_0x196b5a(0x170)](_0x498361['id'])&&_0x498361[_0x196b5a(0x269)][_0x196b5a(0x140)]===this[_0x196b5a(0x91)][_0x196b5a(0x140)]&&this[_0x196b5a(0x145)]();}));}[_0x517afa(0x85)](){const _0x3424c1=_0x517afa;this['disposeWithMe'](_0xdcf17c(this[_0x3424c1(0x91)][_0x3424c1(0x1df)]['onTransformChange$'])['pipe'](_0x4cc029(_0x216c0b=>_0x216c0b['type']===_0x2dd456[_0x3424c1(0x1f6)]),_0x1a7dfa(0x10))[_0x3424c1(0x243)](()=>{const _0x3dc584=_0x3424c1;this[_0x3dc584(0x145)]();}));}};ye=Ji([ie(0x1,_0x388393(_0x162c1a)),ie(0x2,_0x388393(H)),ie(0x3,_0x4ab028),ie(0x4,_0x388393(_0x4d7d85))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x965c3a{constructor(_0x429493,_0x2c559c){const _0x228d2d=_0x517afa;super(_0x429493,_0x2c559c),l(this,_0x228d2d(0x288)),l(this,_0x228d2d(0x272),!0x1),l(this,_0x228d2d(0x138)),l(this,_0x228d2d(0x88),''),l(this,_0x228d2d(0x110),_0x228d2d(0x1c7)),l(this,_0x228d2d(0x8e)),(_0x2c559c&&this[_0x228d2d(0xbb)](_0x2c559c),this[_0x228d2d(0x20c)][_0x228d2d(0x1b9)](()=>this[_0x228d2d(0xbb)]({'hovered':!0x0})),this[_0x228d2d(0x1b6)][_0x228d2d(0x1b9)](()=>this[_0x228d2d(0xbb)]({'hovered':!0x1})));}[_0x517afa(0xbb)](_0x26d96c){const _0x2e0c41=_0x517afa;var _0x551ba4,_0x58e5f8,_0x35a6bf,_0x19e734,_0x1c8749,_0x1f8002;this[_0x2e0c41(0x288)]=(_0x551ba4=_0x26d96c[_0x2e0c41(0xdf)])!=null?_0x551ba4:this[_0x2e0c41(0x288)],this['_hovered']=(_0x58e5f8=_0x26d96c[_0x2e0c41(0x225)])!=null?_0x58e5f8:this[_0x2e0c41(0x272)],this[_0x2e0c41(0x138)]=(_0x35a6bf=_0x26d96c['range'])!=null?_0x35a6bf:this[_0x2e0c41(0x138)],this['_name']=(_0x19e734=_0x26d96c[_0x2e0c41(0xf8)])!=null?_0x19e734:this[_0x2e0c41(0x88)],this[_0x2e0c41(0x110)]=(_0x1c8749=_0x26d96c['labelPosition'])!=null?_0x1c8749:this[_0x2e0c41(0x110)],this[_0x2e0c41(0x8e)]=(_0x1f8002=_0x26d96c[_0x2e0c41(0x1fc)])!=null?_0x1f8002:this[_0x2e0c41(0x8e)],this[_0x2e0c41(0x14f)]({'width':_0x26d96c[_0x2e0c41(0x1ee)],'height':_0x26d96c['height']});}[_0x517afa(0x213)](_0x3dab74){const _0x282a2a=_0x517afa,{row:_0x4861b1,column:_0x6fc78f}=_0x3dab74;if(_0x4861b1>=this[_0x282a2a(0x138)][_0x282a2a(0xce)]&&_0x4861b1<=this[_0x282a2a(0x138)][_0x282a2a(0x80)]&&_0x6fc78f>=this[_0x282a2a(0x138)]['startColumn']&&_0x6fc78f<=this[_0x282a2a(0x138)]['endColumn']){this[_0x282a2a(0xbb)]({'hovered':!0x0});return;}this[_0x282a2a(0xbb)]({'hovered':!0x1});}['triggerDblclick'](_0x3e58e0){return!0x1;}[_0x517afa(0x78)](_0x1444c3){const _0x299a14=_0x517afa;_0x54f591[_0x299a14(0x12c)](_0x1444c3,{'width':this['width'],'height':this[_0x299a14(0x249)],'strokeWidth':Qi,'stroke':this[_0x299a14(0x288)],'evented':!0x1,'fill':this[_0x299a14(0x8e)]}),this[_0x299a14(0x272)]&&(_0x1444c3[_0x299a14(0x147)](),_0x1444c3[_0x299a14(0x26e)](0x1,0x0,0x0,0x1,this[_0x299a14(0x1ee)],this[_0x299a14(0x110)]===_0x299a14(0x1ce)?0x0:-Q),me['drawWith'](_0x1444c3,{'text':this[_0x299a14(0x88)],'color':this['_color']}),_0x1444c3['restore']());}}var en=Object[_0x517afa(0x217)],tn=(_0x19ebf0,_0x5b13fc,_0x343362,_0xd8df34)=>{const _0x554386=_0x517afa;for(var _0x1b931e=_0xd8df34>0x1?void 0x0:_0xd8df34?en(_0x5b13fc,_0x343362):_0x5b13fc,_0x13641c=_0x19ebf0[_0x554386(0x1d1)]-0x1,_0x43d7c1;_0x13641c>=0x0;_0x13641c--)(_0x43d7c1=_0x19ebf0[_0x13641c])&&(_0x1b931e=_0x43d7c1(_0x1b931e)||_0x1b931e);return _0x1b931e;},Ce=(_0x4f7dba,_0x12892a)=>(_0x3ddac3,_0x1747de)=>_0x12892a(_0x3ddac3,_0x1747de,_0x4f7dba);const sn=0x1389;let $e=class extends _0x518648{constructor(_0x33e5e2,_0x1487ff,_0x266e7a,_0x77ee90){const _0x4e637b=_0x517afa;super(),l(this,_0x4e637b(0xbd),new Set()),l(this,_0x4e637b(0x210),null),(this[_0x4e637b(0x91)]=_0x33e5e2,this[_0x4e637b(0x187)]=_0x1487ff,this[_0x4e637b(0x14e)]=_0x266e7a,this[_0x4e637b(0x1e2)]=_0x77ee90,this[_0x4e637b(0xf3)]());}['_init'](){const _0x297707=_0x517afa;this[_0x297707(0x187)]['currentSkeleton$'][_0x297707(0x7b)](_0x2533f0(this[_0x297707(0x1e9)]),_0x23dfcb(_0x1e6620=>{const _0x2a1bde=_0x297707;if(_0x1e6620){const _0x490071=_0x1e6620['sheetId'];return _0x41429a(this['_collabCursorController'][_0x2a1bde(0x205)](this[_0x2a1bde(0x91)][_0x2a1bde(0x140)]),this['_themeService'][_0x2a1bde(0x25b)])['pipe'](_0x4ee011(([_0x39b135,_0x2465d0])=>{const _0xf6c9d0=new Map();return _0x39b135['forEach']((_0x3433c5,_0x1801cc)=>{const _0x5d9b51=_0x4ad2;if(_0x3433c5[_0x5d9b51(0x1e0)]===_0x490071){const _0x1fc8c0={..._0x3433c5};_0x1fc8c0[_0x5d9b51(0xdf)]=this['_themeService']['getColorFromTheme'](_0x3433c5[_0x5d9b51(0xdf)]),_0xf6c9d0['set'](_0x1801cc,_0x1fc8c0);}}),{'skeleton':_0x1e6620,'cursors':_0xf6c9d0};}));}return _0x38b4ff({'skeleton':null,'cursors':new Map()});}))[_0x297707(0x243)](({skeleton:_0x149f3c,cursors:_0x268c40})=>{const _0x35d9bb=_0x297707;this[_0x35d9bb(0x20d)](),_0x149f3c&&this[_0x35d9bb(0x92)](_0x149f3c,_0x268c40);}),this[_0x297707(0x187)][_0x297707(0x86)][_0x297707(0x243)](_0x25150f=>{const _0x5a48cb=_0x297707;if(_0x25150f==null)return;const {skeleton:_0x383828}=_0x25150f,{scene:_0x497a31}=this[_0x5a48cb(0x91)];_0x497a31[_0x5a48cb(0xc7)][_0x5a48cb(0x1b9)](_0x5465f7(_0x50dfb9=>{const _0xa2bb71=_0x5a48cb;var _0x46760c,_0x293d2f;const {offsetX:_0x562630,offsetY:_0x256a81}=_0x50dfb9,{x:_0x405776,y:_0x2cd196}=_0x497a31[_0xa2bb71(0x13e)](_0x4ad7c8['FromArray']([_0x562630,_0x256a81])),{scaleX:_0xc028e0,scaleY:_0x412b03}=_0x497a31['getAncestorScale'](),_0x322b0f=_0x497a31[_0xa2bb71(0x1ed)](_0x1f1ace[_0xa2bb71(0x1a0)]),_0x386160=_0x497a31[_0xa2bb71(0x16d)](_0x4ad7c8[_0xa2bb71(0x171)]([_0x405776,_0x2cd196]),_0x322b0f),_0x1b27c7=_0x383828['getCellPositionByOffset'](_0x562630,_0x256a81,_0xc028e0,_0x412b03,_0x386160);((_0x46760c=this[_0xa2bb71(0x210)])==null?void 0x0:_0x46760c[_0xa2bb71(0x28c)])===_0x1b27c7[_0xa2bb71(0x28c)]&&((_0x293d2f=this[_0xa2bb71(0x210)])==null?void 0x0:_0x293d2f[_0xa2bb71(0x1f7)])===_0x1b27c7[_0xa2bb71(0x1f7)]||this['_cursors'][_0xa2bb71(0x17f)](_0x26a033=>{const _0x2a177c=_0xa2bb71;_0x26a033[_0x2a177c(0x213)](_0x1b27c7);});},0x64));});}['_updateCollabCursors'](_0x3807b7,_0x3a10aa){const _0x6efb2=_0x517afa;var _0xf20e6b;const _0x5be4a1=(_0xf20e6b=this[_0x6efb2(0x187)][_0x6efb2(0x254)]())==null?void 0x0:_0xf20e6b['skeleton'];if(!_0x5be4a1)return;const _0xa8162b=this[_0x6efb2(0x1c0)]();if(!_0xa8162b)return;this['_cursors']['forEach'](_0x306482=>{const _0x27ef68=_0x6efb2;_0x306482[_0x27ef68(0x221)]();});const {scene:_0x92f103}=_0xa8162b,_0x36f274=nn(Array[_0x6efb2(0x1cd)](_0x3a10aa[_0x6efb2(0xaf)]()))[_0x6efb2(0x193)](_0x432f9f=>{const _0x2fdd41=_0x6efb2,{color:_0x5887f9,range:_0x5791a0,name:_0x189001,selection:_0x26a515,sheetID:_0x2db938}=_0x432f9f,{startColumn:_0x44bc8d,startRow:_0x3f332b,endColumn:_0x1a936b,endRow:_0x47cdf1}=_0x5791a0,_0x28ff1d=_0x10d1ca(_0x3f332b,_0x44bc8d,_0x92f103,_0x5be4a1),_0x11406b=_0x10d1ca(_0x47cdf1,_0x1a936b,_0x92f103,_0x5be4a1),{columnHeaderHeightAndMarginTop:_0x17a643}=_0x5be4a1,{startX:_0x54bd26,startY:_0x48f706}=_0x28ff1d,{endX:_0x204883,endY:_0x15896f}=_0x11406b,_0x295131=_0x204883-_0x54bd26,_0x4bca02=_0x15896f-_0x48f706,_0x448721={'labelPosition':_0x48f706-_0x17a643>=Q?_0x2fdd41(0x1c7):_0x2fdd41(0x1ce),'sheetID':_0x2db938,'range':_0x5791a0,'color':_0x5887f9,'name':_0x189001,'selection':_0x26a515,'left':_0x54bd26,'top':_0x48f706,'width':_0x295131,'height':_0x4bca02,'evented':!0x1,'zIndex':sn};return new qi(_0x189001,_0x448721);});_0x92f103[_0x6efb2(0xfb)](_0x36f274,Zi),this['_cursors']=new Set(_0x36f274);}['_removeCollabCursors'](){const _0x24ceff=_0x517afa;var _0xd168a8;(_0xd168a8=this[_0x24ceff(0xbd)])==null||_0xd168a8[_0x24ceff(0x17f)](_0xd9841d=>_0xd9841d[_0x24ceff(0x121)]());}[_0x517afa(0x1c0)](){const _0x11f851=_0x517afa;return _0x3aa887(this[_0x11f851(0x91)][_0x11f851(0x1ec)],this[_0x11f851(0x91)]);}};$e=tn([Ce(0x1,_0x388393(_0x4703f3)),Ce(0x2,_0x388393(H)),Ce(0x3,_0x388393(_0x4d7d85))],$e);function nn(_0x434a65){const _0x487d08=_0x517afa,_0x5e10c9=new Map();return _0x434a65[_0x487d08(0x17f)](_0x56c4b0=>{const _0x1a899d=_0x487d08;if(_0x5e10c9['has'](_0x56c4b0[_0x1a899d(0x6d)])){const _0x7e279e=_0x5e10c9[_0x1a899d(0x19b)](_0x56c4b0[_0x1a899d(0x6d)]);_0x7e279e[_0x1a899d(0xf8)]+=',\x20'+_0x56c4b0[_0x1a899d(0xf8)];}else _0x5e10c9[_0x1a899d(0x11e)](_0x56c4b0[_0x1a899d(0x6d)],_0x56c4b0);}),Array[_0x487d08(0x1cd)](_0x5e10c9['values']());}var rn=Object[_0x517afa(0x217)],on=(_0x3b4fed,_0x4e1716,_0x2500c0,_0x403b6d)=>{const _0x48abf1=_0x517afa;for(var _0x1c212d=_0x403b6d>0x1?void 0x0:_0x403b6d?rn(_0x4e1716,_0x2500c0):_0x4e1716,_0xad212c=_0x3b4fed[_0x48abf1(0x1d1)]-0x1,_0x5b5257;_0xad212c>=0x0;_0xad212c--)(_0x5b5257=_0x3b4fed[_0xad212c])&&(_0x1c212d=_0x5b5257(_0x1c212d)||_0x1c212d);return _0x1c212d;},F=(_0x20f412,_0x25f52c)=>(_0x5c5a3d,_0x4d3194)=>_0x25f52c(_0x5c5a3d,_0x4d3194,_0x20f412);let ce=class extends _0x4057f7{constructor(_0x3700ff,_0x5488b2,_0x44b68e,_0x39ac2a,_0x1befe7,_0x1f1a07){const _0x6cbe1b=_0x517afa;super(),this['_beforeCloseService']=_0x3700ff,this[_0x6cbe1b(0xed)]=_0x5488b2,this['_collaborationUIEventService']=_0x44b68e,this[_0x6cbe1b(0x191)]=_0x39ac2a,this[_0x6cbe1b(0xb8)]=_0x1befe7,this[_0x6cbe1b(0xdb)]=_0x1f1a07,this[_0x6cbe1b(0x1a3)](),this[_0x6cbe1b(0x21a)]();}[_0x517afa(0x1a3)](){const _0x34ba59=_0x517afa;this['disposeWithMe'](this[_0x34ba59(0x17c)][_0x34ba59(0x163)](()=>{const _0x5cdd06=_0x34ba59;if(this['_localCacheService'][_0x5cdd06(0xb3)][_0x5cdd06(0xf2)])return this[_0x5cdd06(0xdb)]['t'](_0x5cdd06(0x26b));}));}[_0x517afa(0x21a)](){const _0x1f8fd1=_0x517afa;this['disposeWithMe'](this['_collaborationUIEventService'][_0x1f8fd1(0x226)][_0x1f8fd1(0x243)](_0x17b0da=>{const _0x2ccaaa=_0x1f8fd1;_0x17b0da['id']===_0x175362[_0x2ccaaa(0xe0)]&&this[_0x2ccaaa(0x191)]['show']({'type':_0x43794b['Warning'],'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0x127))}),_0x17b0da['id']===_0x175362['CLOSE_ROOM']&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b[_0x2ccaaa(0x1d6)],'content':this['_localeService']['t'](_0x2ccaaa(0xc8))}),_0x17b0da['id']===_0x175362['PERMISSION_DENIED']&&this[_0x2ccaaa(0xb8)][_0x2ccaaa(0xd6)]({'title':this['_localeService']['t'](_0x2ccaaa(0x7c)),'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0x119)),'type':'error','duration':0x0}),_0x17b0da['id']===_0x175362[_0x2ccaaa(0x275)]&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b['Error'],'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0xc8))+'('+_0x17b0da[_0x2ccaaa(0x16f)]+')'}),_0x17b0da['id']===_0x175362['JOIN_ROOM_FAILED']&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b[_0x2ccaaa(0x1d6)],'content':this[_0x2ccaaa(0xdb)]['t'](_0x17b0da[_0x2ccaaa(0x16f)]||'')}),_0x17b0da['id']===_0x175362[_0x2ccaaa(0x1d8)]&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b['Warning'],'content':this[_0x2ccaaa(0xdb)]['t']('session.will-retry')}),_0x17b0da['id']===_0x175362[_0x2ccaaa(0x246)]&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b[_0x2ccaaa(0x8f)],'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0x1eb))}),_0x17b0da['id']===_0x175362[_0x2ccaaa(0x26f)]&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b['Error'],'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0x115))});}));}};ce=on([F(0x0,_0x1e0e35),F(0x1,_0x190965),F(0x2,_0x388393(_0x3671b7)),F(0x3,_0x341740),F(0x4,_0x577074),F(0x5,_0x388393(_0x3ae72e))],ce);const an=_0x517afa(0x222),rt={};var cn=Object[_0x517afa(0x217)],_n=(_0x3ae042,_0x10a46f,_0x273f65,_0x3c9bdb)=>{const _0x518aa0=_0x517afa;for(var _0x187418=_0x3c9bdb>0x1?void 0x0:_0x3c9bdb?cn(_0x10a46f,_0x273f65):_0x10a46f,_0x111d57=_0x3ae042[_0x518aa0(0x1d1)]-0x1,_0x55fd48;_0x111d57>=0x0;_0x111d57--)(_0x55fd48=_0x3ae042[_0x111d57])&&(_0x187418=_0x55fd48(_0x187418)||_0x187418);return _0x187418;},ot=(_0x324d99,_0x4e30d1)=>(_0x59d06c,_0x17e609)=>_0x4e30d1(_0x59d06c,_0x17e609,_0x324d99);let _e=class{constructor(_0x5b9987,_0x39f375){const _0x5ea6c4=_0x517afa;this[_0x5ea6c4(0x295)]=_0x5b9987,this[_0x5ea6c4(0x113)]=_0x39f375;}['transformIMECache'](_0x19c6ac){const _0x59d30b=_0x517afa;this['_transformUndoRedoStack'](_0x19c6ac),this[_0x59d30b(0x6a)](_0x19c6ac);}[_0x517afa(0x1b2)](_0x1f5f28){const _0x47d3ac=_0x517afa,{unitID:_0x435790}=_0x1f5f28,_0x971b61=this[_0x47d3ac(0x113)][_0x47d3ac(0x1a4)](_0x435790)[_0x47d3ac(0x219)](_0x30a772),{redoCache:_0x5f12b9}=_0x971b61[_0x47d3ac(0xe8)]();if(_0x5f12b9[_0x47d3ac(0x1d1)]===0x0)return _0x1f5f28;let _0x463c29=_0x24fd68[_0x47d3ac(0xe6)](_0x1f5f28[_0x47d3ac(0x26a)][0x0]);for(let _0x47838d=0x0;_0x47838d<_0x5f12b9['length'];_0x47838d++){const _0x92998b={'id':_0x47d3ac(0x21f),'params':{..._0x5f12b9[_0x47838d]}},_0x567bcd=this[_0x47d3ac(0x295)][_0x47d3ac(0x1c4)](_0x463c29,_0x92998b,!0x1);if(_0x18536c(_0x567bcd))throw _0x567bcd[_0x47d3ac(0x154)];_0x463c29=_0x567bcd[_0x47d3ac(0xaa)];}return{..._0x24fd68['deepClone'](_0x1f5f28),'mutations':[_0x463c29]};}[_0x517afa(0x279)](_0x2edaba){const _0x1124e6=_0x517afa,{unitID:_0x3df96a}=_0x2edaba,_0x5b3589=this[_0x1124e6(0x113)][_0x1124e6(0x1a4)](_0x3df96a)[_0x1124e6(0x219)](_0x30a772),{undoCache:_0x6b1ddf,redoCache:_0x584b5c}=_0x5b3589[_0x1124e6(0xe8)]();if(_0x6b1ddf['length']===0x0||_0x584b5c[_0x1124e6(0x1d1)]===0x0)return;const _0x2f2b3f=[],_0x1ff2da=[];let _0x126d48=_0x24fd68['deepClone'](_0x2edaba[_0x1124e6(0x26a)][0x0]),_0x550f33=_0x24fd68[_0x1124e6(0xe6)](_0x2edaba[_0x1124e6(0x26a)][0x0]);for(let _0x2efa3f=_0x6b1ddf['length']-0x1;_0x2efa3f>=0x0;_0x2efa3f--){const _0x1d2383={'id':_0x1124e6(0x21f),'params':{..._0x6b1ddf[_0x2efa3f]}},_0x52fa1a={'id':'doc.mutation.rich-text-editing','params':{..._0x584b5c[_0x2efa3f]}},_0x4f453d=this[_0x1124e6(0x295)][_0x1124e6(0x1c4)](_0x126d48,_0x1d2383,!0x1),_0x1d1bcb=this[_0x1124e6(0x295)]['transformMutation'](_0x550f33,_0x52fa1a,!0x1);if(_0x18536c(_0x4f453d))throw _0x4f453d[_0x1124e6(0x154)];if(_0x18536c(_0x1d1bcb))throw _0x1d1bcb[_0x1124e6(0x154)];_0x2f2b3f['unshift'](_0x4f453d[_0x1124e6(0x24c)]['params']),_0x1ff2da[_0x1124e6(0x285)](_0x1d1bcb[_0x1124e6(0x24c)][_0x1124e6(0x269)]),_0x126d48=_0x4f453d[_0x1124e6(0xaa)],_0x550f33=_0x1d1bcb[_0x1124e6(0xaa)];}_0x5b3589[_0x1124e6(0x13c)]({'undoCache':_0x2f2b3f,'redoCache':_0x1ff2da});}[_0x517afa(0x6a)](_0x4dc19c){const _0x2e5859=_0x517afa,{unitID:_0x5e00d8}=_0x4dc19c,_0x5942f7=this[_0x2e5859(0x113)][_0x2e5859(0x1a4)](_0x5e00d8)['with'](_0x30a772),_0x4afd79=_0x5942f7[_0x2e5859(0x19a)]();if(_0x4afd79==null)return;const _0x18b393=[{'id':_0x2e5859(0x21f),'params':{'unitId':_0x4dc19c[_0x2e5859(0x186)],'actions':null,'textRanges':[_0x4afd79]}}],_0x4ebfe5=this[_0x2e5859(0x295)]['transformMutationsWithChangeset'](_0x4dc19c,_0x18b393);if(!_0x2ef47c(_0x4ebfe5))throw _0x4ebfe5['error'];const _0x31d6ae=_0x4ebfe5[_0x2e5859(0x24c)][0x0][_0x2e5859(0x269)]['textRanges'];Array[_0x2e5859(0x229)](_0x31d6ae)&&_0x31d6ae[_0x2e5859(0x1d1)]&&_0x5942f7['setActiveRange'](_0x31d6ae[0x0]);}};_e=_n([ot(0x0,_0x2e28c1),ot(0x1,_0x7acb9e)],_e);var ln=Object[_0x517afa(0x217)],hn=(_0x4458cf,_0x46f2de,_0x7c4124,_0x53bec4)=>{const _0x2729f4=_0x517afa;for(var _0x455bf3=_0x53bec4>0x1?void 0x0:_0x53bec4?ln(_0x46f2de,_0x7c4124):_0x46f2de,_0x432b8f=_0x4458cf[_0x2729f4(0x1d1)]-0x1,_0x155fca;_0x432b8f>=0x0;_0x432b8f--)(_0x155fca=_0x4458cf[_0x432b8f])&&(_0x455bf3=_0x155fca(_0x455bf3)||_0x455bf3);return _0x455bf3;},Re=(_0x50126d,_0x99f43a)=>(_0x50fb61,_0x3fcdf5)=>_0x99f43a(_0x50fb61,_0x3fcdf5,_0x50126d);let le=class{constructor(_0x126124,_0x2d336a,_0x38dc96){const _0x3cb7e8=_0x517afa;this[_0x3cb7e8(0x22f)]=_0x126124,this[_0x3cb7e8(0x295)]=_0x2d336a,this['_docStateChangeManagerService']=_0x38dc96;}[_0x517afa(0xd1)](_0x20f3b6){const _0x2e2afc=_0x517afa;this[_0x2e2afc(0x74)](_0x20f3b6);}[_0x517afa(0x1b2)](_0x384922){const _0x53fdb9=_0x517afa,{unitID:_0x2574a5}=_0x384922,{collaboration:_0x393a64}=this[_0x53fdb9(0x277)][_0x53fdb9(0x11d)](_0x2574a5);if(_0x393a64[_0x53fdb9(0x1d1)]===0x0)return _0x384922;let _0x1b8d66=_0x24fd68[_0x53fdb9(0xe6)](_0x384922[_0x53fdb9(0x26a)][0x0]);for(let _0x4b7413=0x0;_0x4b7413<_0x393a64[_0x53fdb9(0x1d1)];_0x4b7413++){const _0x3acf16={'id':_0x53fdb9(0x21f),'params':{'unitId':_0x393a64[_0x4b7413]['unitId'],..._0x393a64[_0x4b7413][_0x53fdb9(0x20a)]}},_0x5784c4=this['_transformService'][_0x53fdb9(0x1c4)](_0x1b8d66,_0x3acf16,!0x1);if(_0x18536c(_0x5784c4))throw _0x5784c4[_0x53fdb9(0x154)];_0x1b8d66=_0x5784c4[_0x53fdb9(0xaa)];}return{..._0x24fd68[_0x53fdb9(0xe6)](_0x384922),'mutations':[_0x1b8d66]};}[_0x517afa(0x74)](_0x3a10ac){const _0x7cbf23=_0x517afa,{unitID:_0x2829ed}=_0x3a10ac,{history:_0x32e1c9,collaboration:_0xcfbd13}=this[_0x7cbf23(0x277)][_0x7cbf23(0x11d)](_0x2829ed);if(_0x32e1c9[_0x7cbf23(0x1d1)]===0x0&&_0xcfbd13['length']===0x0)return;const _0x28b2a2=[],_0x4d6d5d=[];let _0x2c38d3=_0x24fd68[_0x7cbf23(0xe6)](_0x3a10ac[_0x7cbf23(0x26a)][0x0]),_0x36db6f=_0x24fd68[_0x7cbf23(0xe6)](_0x3a10ac['mutations'][0x0]);for(let _0x418fa8=_0x32e1c9[_0x7cbf23(0x1d1)]-0x1;_0x418fa8>=0x0;_0x418fa8--){const _0x41de1b={'id':_0x7cbf23(0x21f),'params':{'unitId':_0x32e1c9[_0x418fa8][_0x7cbf23(0x140)],..._0x32e1c9[_0x418fa8]['undoState']}},_0x4ffa14={'id':_0x7cbf23(0x21f),'params':{'unitId':_0x32e1c9[_0x418fa8][_0x7cbf23(0x140)],..._0x32e1c9[_0x418fa8][_0x7cbf23(0x20a)]}},_0xa61010=this[_0x7cbf23(0x295)][_0x7cbf23(0x1c4)](_0x2c38d3,_0x41de1b,!0x1),_0x4169bf=this['_transformService'][_0x7cbf23(0x1c4)](_0x36db6f,_0x4ffa14,!0x1);if(_0x18536c(_0xa61010))throw _0xa61010[_0x7cbf23(0x154)];if(_0x18536c(_0x4169bf))throw _0x4169bf[_0x7cbf23(0x154)];_0x28b2a2[_0x7cbf23(0x285)]({..._0x32e1c9[_0x418fa8],'undoState':_0xa61010[_0x7cbf23(0x24c)][_0x7cbf23(0x269)],'redoState':_0x4169bf['m2Prime']['params']}),_0x2c38d3=_0xa61010[_0x7cbf23(0xaa)],_0x36db6f=_0x4169bf[_0x7cbf23(0xaa)];}_0x2c38d3=_0x24fd68[_0x7cbf23(0xe6)](_0x3a10ac['mutations'][0x0]),_0x36db6f=_0x24fd68[_0x7cbf23(0xe6)](_0x3a10ac['mutations'][0x0]);for(let _0x66037d=_0xcfbd13[_0x7cbf23(0x1d1)]-0x1;_0x66037d>=0x0;_0x66037d--){const _0x4ae7db={'id':_0x7cbf23(0x21f),'params':{'unitId':_0xcfbd13[_0x66037d]['unitId'],..._0xcfbd13[_0x66037d][_0x7cbf23(0x137)]}},_0x583663={'id':_0x7cbf23(0x21f),'params':{'unitId':_0xcfbd13[_0x66037d]['unitId'],..._0xcfbd13[_0x66037d][_0x7cbf23(0x20a)]}},_0x2ea0dd=this[_0x7cbf23(0x295)][_0x7cbf23(0x1c4)](_0x2c38d3,_0x4ae7db,!0x1),_0x5e24ee=this[_0x7cbf23(0x295)]['transformMutation'](_0x36db6f,_0x583663,!0x1);if(_0x18536c(_0x2ea0dd))throw _0x2ea0dd[_0x7cbf23(0x154)];if(_0x18536c(_0x5e24ee))throw _0x5e24ee[_0x7cbf23(0x154)];_0x4d6d5d['unshift']({..._0xcfbd13[_0x66037d],'undoState':_0x2ea0dd[_0x7cbf23(0x24c)]['params'],'redoState':_0x5e24ee['m2Prime']['params']}),_0x2c38d3=_0x2ea0dd[_0x7cbf23(0xaa)],_0x36db6f=_0x5e24ee[_0x7cbf23(0xaa)];}this[_0x7cbf23(0x277)][_0x7cbf23(0x16c)](_0x2829ed,{'history':_0x28b2a2,'collaboration':_0x4d6d5d});}};le=hn([Re(0x0,_0x388393(_0x258030)),Re(0x1,_0x2e28c1),Re(0x2,_0x388393(_0x3d7f81))],le);var un=Object[_0x517afa(0x217)],dn=(_0xece5e7,_0x4d7754,_0x1673fd,_0x17545b)=>{const _0x30ff08=_0x517afa;for(var _0x37cacc=_0x17545b>0x1?void 0x0:_0x17545b?un(_0x4d7754,_0x1673fd):_0x4d7754,_0x37d560=_0xece5e7[_0x30ff08(0x1d1)]-0x1,_0x5c2de4;_0x37d560>=0x0;_0x37d560--)(_0x5c2de4=_0xece5e7[_0x37d560])&&(_0x37cacc=_0x5c2de4(_0x37cacc)||_0x37cacc);return _0x37cacc;},at=(_0x1518c1,_0x2989f3)=>(_0x1a4fe4,_0x4f3bf0)=>_0x2989f3(_0x1a4fe4,_0x4f3bf0,_0x1518c1);let he=class{constructor(_0x2fda4f,_0x2c59bc){const _0x29c5e5=_0x517afa;this[_0x29c5e5(0x22f)]=_0x2fda4f,this[_0x29c5e5(0x295)]=_0x2c59bc;}['transformSelections'](_0x5309e9){const _0x4a0b0b=_0x517afa;var _0x55aa30;const _0x9cf969=this[_0x4a0b0b(0x22f)][_0x4a0b0b(0x19b)](_0x59d42f),_0x49537d=(_0x55aa30=_0x9cf969['getDocRanges']())!=null?_0x55aa30:[];if(_0x49537d[_0x4a0b0b(0x1d1)]===0x0)return;const _0x9cca00=_0x5309e9[_0x4a0b0b(0x186)],_0x597da6=[{'id':_0x4a0b0b(0x21f),'params':{'unitId':_0x9cca00,'actions':null,'textRanges':_0x49537d}}],_0x1217b0=this[_0x4a0b0b(0x295)][_0x4a0b0b(0x182)](_0x5309e9,_0x597da6);if(!_0x2ef47c(_0x1217b0))throw _0x1217b0[_0x4a0b0b(0x154)];const _0xcf83dd=_0x1217b0['m2Prime'][0x0][_0x4a0b0b(0x269)]['textRanges'];Array[_0x4a0b0b(0x229)](_0xcf83dd)&&_0xcf83dd['length']&&_0x9cf969['replaceDocRanges'](_0xcf83dd,{'unitId':_0x9cca00,'subUnitId':_0x9cca00},!0x1);}};he=dn([at(0x0,_0x388393(_0x258030)),at(0x1,_0x2e28c1)],he);var Sn=Object[_0x517afa(0x217)],In=(_0x3b0f7c,_0x5c9b72,_0x3b5bab,_0x3dc740)=>{const _0x4b69bc=_0x517afa;for(var _0x1f2b4c=_0x3dc740>0x1?void 0x0:_0x3dc740?Sn(_0x5c9b72,_0x3b5bab):_0x5c9b72,_0x242280=_0x3b0f7c[_0x4b69bc(0x1d1)]-0x1,_0x49b9da;_0x242280>=0x0;_0x242280--)(_0x49b9da=_0x3b0f7c[_0x242280])&&(_0x1f2b4c=_0x49b9da(_0x1f2b4c)||_0x1f2b4c);return _0x1f2b4c;},b=(_0x148e5f,_0x3b65d8)=>(_0x5093b8,_0x447037)=>_0x3b65d8(_0x5093b8,_0x447037,_0x148e5f);let ue=class extends _0x4057f7{constructor(_0x390a71,_0x2a381c,_0xa0b5da,_0x4faef1,_0x4ed0f3,_0x350e03,_0x5b60a1,_0x711cd4){const _0x5397d5=_0x517afa;super(),l(this,_0x5397d5(0x245),new _0x340b13(_0x5039cf['NOT_COLLAB'])),(this[_0x5397d5(0x277)]=_0x390a71,this[_0x5397d5(0x15d)]=_0x2a381c,this['_docTransformIMECacheService']=_0xa0b5da,this[_0x5397d5(0x143)]=_0x4faef1,this[_0x5397d5(0x262)]=_0x4ed0f3,this[_0x5397d5(0xfe)]=_0x350e03,this[_0x5397d5(0x191)]=_0x5b60a1,this[_0x5397d5(0xdb)]=_0x711cd4,this['_initEntityListener']());}[_0x517afa(0xa3)](){const _0x1d4228=_0x517afa;this[_0x1d4228(0x161)](this[_0x1d4228(0x15d)][_0x1d4228(0x274)]['subscribe'](_0x3bc89f=>{const _0xa0f12f=_0x1d4228,_0x172d8d=this[_0xa0f12f(0x277)][_0xa0f12f(0x239)]['subscribe'](_0x1f0d78=>{const _0xe9171f=_0xa0f12f;if(_0x1f0d78==null)return;const {unitId:_0x19a576,redoState:_0x35f6ad,commandId:_0x90a0e9}=_0x1f0d78;if(_0x19a576!==_0x3bc89f[_0xe9171f(0x186)])return;const _0xaaa88c={'id':_0x90a0e9,'type':_0x18ebdb[_0xe9171f(0x286)],'params':{'unitId':_0x19a576,'actions':_0x35f6ad['actions'],'textRanges':null}};_0x3bc89f[_0xe9171f(0x10e)](_0xaaa88c);});if(_0x3bc89f['disposeWithMe'](_0x172d8d),_0x3bc89f instanceof _0x39449e){const _0xa0e02f={'onTransformIME':_0x5eee1f=>this[_0xa0f12f(0x296)][_0xa0f12f(0x232)](_0x5eee1f),'onTransformState':_0x115574=>this[_0xa0f12f(0x143)][_0xa0f12f(0xd1)](_0x115574),'onTransformSelections':_0x27f67f=>this[_0xa0f12f(0x262)][_0xa0f12f(0x139)](_0x27f67f),'onSyncEditingCollabCursor':_0x183e92=>this[_0xa0f12f(0xfe)][_0xa0f12f(0x14a)](_0x183e92),'onTransformRemoteChangesetByIMECache':_0x4e2912=>this[_0xa0f12f(0x296)]['transformRemoteChangeset'](_0x4e2912),'onTransformRemoteChangesetByStateCache':_0x24ffa1=>this[_0xa0f12f(0x143)][_0xa0f12f(0x1b2)](_0x24ffa1)};_0x3bc89f[_0xa0f12f(0xd3)](_0xa0e02f);}}));}};ue=In([b(0x0,_0x388393(_0x3d7f81)),b(0x1,_0x388393(_0x477518)),b(0x2,_0x388393(_e)),b(0x3,_0x388393(le)),b(0x4,_0x388393(he)),b(0x5,_0x388393(Xe)),b(0x6,_0x341740),b(0x7,_0x388393(_0x3ae72e))],ue);var Z=(_0x1a20bc=>(_0x1a20bc[_0x1a20bc[_0x517afa(0x11c)]=0x0]='UNDEFINED',_0x1a20bc[_0x1a20bc['OK']=0x1]='OK',_0x1a20bc[_0x1a20bc[_0x517afa(0xf6)]=0x2]=_0x517afa(0xf6),_0x1a20bc[_0x1a20bc[_0x517afa(0xf9)]=0x3]=_0x517afa(0xf9),_0x1a20bc[_0x1a20bc[_0x517afa(0x1b4)]=0x4]='NOT_FOUND',_0x1a20bc[_0x1a20bc[_0x517afa(0xd8)]=0x5]=_0x517afa(0xd8),_0x1a20bc[_0x1a20bc[_0x517afa(0x28d)]=0x6]=_0x517afa(0x28d),_0x1a20bc[_0x1a20bc[_0x517afa(0x12a)]=0x7]=_0x517afa(0x12a),_0x1a20bc[_0x1a20bc[_0x517afa(0xb7)]=0x8]=_0x517afa(0xb7),_0x1a20bc[_0x1a20bc['COMPLETION_FINISHED']=0x9]=_0x517afa(0x126),_0x1a20bc[_0x1a20bc['LOGIN_FAILED']=0xa]=_0x517afa(0xdd),_0x1a20bc[_0x1a20bc['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x517afa(0xa5),_0x1a20bc[_0x1a20bc['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x517afa(0x195),_0x1a20bc[_0x1a20bc[_0x517afa(0x1be)]=0xd]=_0x517afa(0x1be),_0x1a20bc[_0x1a20bc[_0x517afa(0x1ab)]=0xe]=_0x517afa(0x1ab),_0x1a20bc[_0x1a20bc[_0x517afa(0x1d7)]=0xf]=_0x517afa(0x1d7),_0x1a20bc[_0x1a20bc[_0x517afa(0x21e)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x1a20bc[_0x1a20bc['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x517afa(0x1dc),_0x1a20bc[_0x1a20bc[_0x517afa(0x16a)]=0x65]=_0x517afa(0x16a),_0x1a20bc[_0x1a20bc[_0x517afa(0x1e8)]=0xc9]=_0x517afa(0x1e8),_0x1a20bc[_0x1a20bc['USER_IS_ANONYMOUS']=0xca]=_0x517afa(0x160),_0x1a20bc[_0x1a20bc['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1a20bc[_0x1a20bc[_0x517afa(0x1c6)]=0x1771]=_0x517afa(0x1c6),_0x1a20bc[_0x1a20bc[_0x517afa(0x1a9)]=0x1772]=_0x517afa(0x1a9),_0x1a20bc[_0x1a20bc['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x517afa(0x19e),_0x1a20bc[_0x1a20bc[_0x517afa(0x1e1)]=0x1b59]=_0x517afa(0x1e1),_0x1a20bc[_0x1a20bc[_0x517afa(0xe1)]=0x1b5a]=_0x517afa(0xe1),_0x1a20bc[_0x1a20bc['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x517afa(0x196),_0x1a20bc[_0x1a20bc[_0x517afa(0x97)]=0x1b5c]=_0x517afa(0x97),_0x1a20bc[_0x1a20bc[_0x517afa(0x1e3)]=0x1b5d]=_0x517afa(0x1e3),_0x1a20bc[_0x1a20bc[_0x517afa(0xf7)]=0x1f41]=_0x517afa(0xf7),_0x1a20bc[_0x1a20bc['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x517afa(0x28a),_0x1a20bc[_0x1a20bc[_0x517afa(0x1da)]=0x232a]=_0x517afa(0x1da),_0x1a20bc[_0x1a20bc['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x517afa(0x165),_0x1a20bc[_0x1a20bc[_0x517afa(0x252)]=0x232c]=_0x517afa(0x252),_0x1a20bc[_0x1a20bc[_0x517afa(0xc0)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x1a20bc[_0x1a20bc[_0x517afa(0xb0)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1a20bc[_0x1a20bc[_0x517afa(0x278)]=0x2712]=_0x517afa(0x278),_0x1a20bc[_0x1a20bc[_0x517afa(0x199)]=0x2713]=_0x517afa(0x199),_0x1a20bc[_0x1a20bc[_0x517afa(0x23b)]=0x2714]=_0x517afa(0x23b),_0x1a20bc[_0x1a20bc[_0x517afa(0x13b)]=0x271a]=_0x517afa(0x13b),_0x1a20bc[_0x1a20bc['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x517afa(0x8d),_0x1a20bc[_0x1a20bc['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x1a20bc[_0x1a20bc['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x517afa(0x224),_0x1a20bc[_0x1a20bc[_0x517afa(0x68)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x1a20bc[_0x1a20bc[_0x517afa(0x1c5)]=0x271f]=_0x517afa(0x1c5),_0x1a20bc[_0x1a20bc[_0x517afa(0x21d)]=0x2720]=_0x517afa(0x21d),_0x1a20bc[_0x1a20bc['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x517afa(0x21c),_0x1a20bc[_0x1a20bc[_0x517afa(0x13d)]=0x2ee1]=_0x517afa(0x13d),_0x1a20bc[_0x1a20bc[_0x517afa(0x1ad)]=0x2ee2]=_0x517afa(0x1ad),_0x1a20bc[_0x1a20bc['INVITE_CODE_REQUIRED']=0x2ee3]=_0x517afa(0x124),_0x1a20bc[_0x1a20bc[_0x517afa(0x18a)]=0x2ee4]=_0x517afa(0x18a),_0x1a20bc[_0x1a20bc[_0x517afa(0x293)]=0x2ee5]=_0x517afa(0x293),_0x1a20bc[_0x1a20bc[_0x517afa(0x1cb)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x1a20bc[_0x1a20bc[_0x517afa(0x291)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x1a20bc[_0x1a20bc['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x517afa(0x200),_0x1a20bc[_0x1a20bc[_0x517afa(0x27e)]=0x36b1]=_0x517afa(0x27e),_0x1a20bc[_0x1a20bc['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x517afa(0xfd),_0x1a20bc[_0x1a20bc[_0x517afa(0xfa)]=0x36b3]=_0x517afa(0xfa),_0x1a20bc[_0x1a20bc[_0x517afa(0x1f4)]=0x36b4]=_0x517afa(0x1f4),_0x1a20bc[_0x1a20bc[_0x517afa(0x27b)]=0x3715]=_0x517afa(0x27b),_0x1a20bc[_0x1a20bc[_0x517afa(0x118)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x1a20bc[_0x1a20bc[_0x517afa(0x130)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x1a20bc[_0x1a20bc['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x517afa(0x179),_0x1a20bc[_0x1a20bc[_0x517afa(0x18b)]=0x3a99]=_0x517afa(0x18b),_0x1a20bc[_0x1a20bc[_0x517afa(0xbf)]=0x3a9a]=_0x517afa(0xbf),_0x1a20bc[_0x1a20bc[_0x517afa(0x107)]=0x3a9b]=_0x517afa(0x107),_0x1a20bc[_0x1a20bc[_0x517afa(0xc3)]=0x3a9c]=_0x517afa(0xc3),_0x1a20bc[_0x1a20bc['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x1a20bc[_0x1a20bc[_0x517afa(0x104)]=0x3a9e]=_0x517afa(0x104),_0x1a20bc[_0x1a20bc[_0x517afa(0x76)]=0x3a9f]=_0x517afa(0x76),_0x1a20bc[_0x1a20bc[_0x517afa(0x167)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x1a20bc[_0x1a20bc['UNRECOGNIZED']=-0x1]=_0x517afa(0xc1),_0x1a20bc))(Z||{});function mn(_0x4d6f50){const _0x209b02=_0x517afa;var _0xfd3c42,_0x24ead2;const _0x32d0ec=(_0xfd3c42=_0x4d6f50[_0x209b02(0x283)])==null?void 0x0:_0xfd3c42[_0x209b02(0x256)],_0x5cb3c1=((_0x24ead2=_0x4d6f50[_0x209b02(0x283)])==null?void 0x0:_0x24ead2[_0x209b02(0x162)])||0x0;return _0x32d0ec===_0x93f55d[_0x209b02(0x233)]&&_0x5cb3c1>0x0;}function fn(_0x2db790){const _0x3ed280=_0x517afa;return _0x2db790[_0x3ed280(0xac)]===_0x1da652[_0x3ed280(0x65)];}var gn=Object[_0x517afa(0x217)],vn=(_0x42edd7,_0x36cd90,_0x650ab3,_0x5746d6)=>{const _0x58b2c2=_0x517afa;for(var _0x4c71d2=_0x5746d6>0x1?void 0x0:_0x5746d6?gn(_0x36cd90,_0x650ab3):_0x36cd90,_0x38f27f=_0x42edd7[_0x58b2c2(0x1d1)]-0x1,_0x1a02cb;_0x38f27f>=0x0;_0x38f27f--)(_0x1a02cb=_0x42edd7[_0x38f27f])&&(_0x4c71d2=_0x1a02cb(_0x4c71d2)||_0x4c71d2);return _0x4c71d2;},P=(_0x1b3eda,_0x32ddc3)=>(_0x535d94,_0x2c1350)=>_0x32ddc3(_0x535d94,_0x2c1350,_0x1b3eda);const En='/universer-api/license/formula/limit/status',pn='/universer-api/license/formula/limit/start',On=_0x517afa(0x273);let de=class extends _0x4057f7{constructor(_0x20ff60,_0x29f812,_0x3c6dbd,_0x165279,_0x46c0d4,_0x155e8a,_0x8c97dc){const _0x538433=_0x517afa;super(),l(this,_0x538433(0x99),null),l(this,'_maxFormulaLimit',0x0),l(this,'_currentUsage',0x0),l(this,_0x538433(0x14d),[]),l(this,_0x538433(0x14b),0x0),(this[_0x538433(0x191)]=_0x20ff60,this[_0x538433(0x27f)]=_0x29f812,this[_0x538433(0xc6)]=_0x3c6dbd,this[_0x538433(0x21b)]=_0x165279,this['_univerInstanceService']=_0x46c0d4,this[_0x538433(0x237)]=_0x155e8a,this['_localeService']=_0x8c97dc,this[_0x538433(0x289)]());}[_0x517afa(0x289)](){const _0x95c16=_0x517afa;this['disposeWithMe'](this['_commandService'][_0x95c16(0x103)]((_0x5f37d4,_0x465109)=>{const _0x3ccf7c=_0x95c16;var _0x5d7b85;if(_0x5f37d4['id']!==_0xa507f6['id'])return;const _0x20befe=_0x5f37d4[_0x3ccf7c(0x269)];if(!this['_hasFormulaInDirtyRanges']((_0x5d7b85=_0x20befe[_0x3ccf7c(0x133)])!=null?_0x5d7b85:[]))return;if(!this[_0x3ccf7c(0xd2)]())throw this[_0x3ccf7c(0x15b)](_0x5f37d4,_0x465109),this[_0x3ccf7c(0x1d5)](),new _0x458890();})),this[_0x95c16(0x161)](this[_0x95c16(0x27f)][_0x95c16(0x208)]((_0x5b3de1,_0x3ce737)=>{const _0x42d722=_0x95c16;if(_0x5b3de1['id']!==_0x3f8c9d['id'])return;const _0xcc16a6=_0x5b3de1[_0x42d722(0x269)];if(mn(_0xcc16a6)){const _0x4037ca=_0x24b861();this[_0x42d722(0x14d)]['push'](_0x4037ca),this[_0x42d722(0x8c)](_0x4037ca);}else{if(fn(_0xcc16a6)&&this[_0x42d722(0x14d)]['length']>0x0){const _0x29aad4=this[_0x42d722(0x14d)][_0x42d722(0x79)]();this[_0x42d722(0x257)](_0x29aad4);}}}));}['dispose'](){const _0x3aa429=_0x517afa;super[_0x3aa429(0x121)](),this[_0x3aa429(0x23c)](),this[_0x3aa429(0x14d)]=[],this[_0x3aa429(0x244)]=0x0,this[_0x3aa429(0x206)]=0x0,this[_0x3aa429(0x14b)]=0x0;}async[_0x517afa(0x15b)](_0x593a5e,_0x22c115){const _0x51301a=_0x517afa;for(let _0x188b6c=0x0;_0x188b6c<0x1e;_0x188b6c++)try{if(await this[_0x51301a(0x1f2)](),this[_0x51301a(0xd2)]()){this[_0x51301a(0x17b)](_0x593a5e,_0x22c115),this[_0x51301a(0x191)][_0x51301a(0xd6)]({'content':this['_localeService']['t']('formula.calculation.started'),'type':_0x43794b['Success']});return;}await new Promise(_0x3d8cd9=>{const _0x2ce021=_0x51301a;this[_0x2ce021(0x99)]=window[_0x2ce021(0x1cf)](_0x3d8cd9,0x3e8);});}catch(_0x33fda0){this['_logService'][_0x51301a(0x154)](_0x33fda0);}this[_0x51301a(0x191)][_0x51301a(0xd6)]({'content':this['_localeService']['t']('formula.calculation.unable'),'type':_0x43794b[_0x51301a(0x8f)]});}['_applyCommand'](_0x1582cf,_0x543d5e){const _0x5c5b27=_0x517afa;try{this[_0x5c5b27(0x27f)][_0x5c5b27(0x111)](_0x1582cf['id'],_0x1582cf[_0x5c5b27(0x269)],_0x543d5e);}catch(_0x525ead){this[_0x5c5b27(0x237)][_0x5c5b27(0x154)](_0x525ead);}}[_0x517afa(0x112)](_0x45244e,_0x17c92f){const _0x2da246=_0x517afa;_0x17c92f<this[_0x2da246(0x14b)]||(this[_0x2da246(0x14b)]=_0x17c92f,this[_0x2da246(0x206)]=Number['parseInt'](_0x45244e[_0x2da246(0x164)]),this[_0x2da246(0x244)]=Number['parseInt'](_0x45244e[_0x2da246(0x141)]));}async[_0x517afa(0x8c)](_0x226969){const _0x5218fc=_0x517afa;var _0x1531f2,_0x3db894;const _0x5641d9=Date['now']();try{const _0x4f578b=((_0x1531f2=this[_0x5218fc(0xc6)]['getConfig'](_0x174b68))==null?void 0x0:_0x1531f2[_0x5218fc(0xca)])||pn,_0x26d139=(await this[_0x5218fc(0x21b)]['post'](_0x4f578b,{'body':JSON[_0x5218fc(0xff)]({'taskId':_0x226969})}))[_0x5218fc(0x15f)];if(((_0x3db894=_0x26d139[_0x5218fc(0x154)])==null?void 0x0:_0x3db894[_0x5218fc(0x1c9)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x26d139[_0x5218fc(0x1b5)],_0x5641d9);}catch(_0x35ac8d){this[_0x5218fc(0x237)]['error'](_0x35ac8d);}}async[_0x517afa(0x1f2)](_0x2efd39){const _0x274cbe=_0x517afa;var _0x2ed56c,_0x2418a9;const _0x35bbce=Date[_0x274cbe(0xe2)]();try{const _0x48ace7=((_0x2ed56c=this[_0x274cbe(0xc6)]['getConfig'](_0x174b68))==null?void 0x0:_0x2ed56c[_0x274cbe(0x24d)])||En,_0x36ffe1=_0x2efd39?_0x48ace7+_0x274cbe(0x280)+encodeURIComponent(_0x2efd39):_0x48ace7,_0x4bd62c=(await this[_0x274cbe(0x21b)]['get'](_0x36ffe1))['body'];if(((_0x2418a9=_0x4bd62c[_0x274cbe(0x154)])==null?void 0x0:_0x2418a9['code'])!==Z['OK'])return;this[_0x274cbe(0x112)](_0x4bd62c[_0x274cbe(0x1b5)],_0x35bbce);}catch(_0x158de8){this['_logService'][_0x274cbe(0x154)](_0x158de8);}}async[_0x517afa(0x257)](_0x271961){const _0x2aba0c=_0x517afa;var _0x18859e,_0xbe029c;const _0x5ebc96=Date[_0x2aba0c(0xe2)]();try{const _0x1a5486=((_0x18859e=this[_0x2aba0c(0xc6)]['getConfig'](_0x174b68))==null?void 0x0:_0x18859e['releaseFormulaLimitUrl'])||On,_0x17daef=(await this[_0x2aba0c(0x21b)]['post'](_0x1a5486,{'body':JSON['stringify']({'taskId':_0x271961})}))[_0x2aba0c(0x15f)];if(((_0xbe029c=_0x17daef[_0x2aba0c(0x154)])==null?void 0x0:_0xbe029c[_0x2aba0c(0x1c9)])!==Z['OK'])return;this[_0x2aba0c(0x112)](_0x17daef[_0x2aba0c(0x1b5)],_0x5ebc96);}catch(_0x46ac57){this[_0x2aba0c(0x237)][_0x2aba0c(0x154)](_0x46ac57);}}['_checkCalculationAvailable'](){const _0x29df4d=_0x517afa;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x29df4d(0x206)]-this[_0x29df4d(0x244)]>0x0;}[_0x517afa(0x23c)](){const _0x566f10=_0x517afa;this[_0x566f10(0x99)]&&(clearTimeout(this[_0x566f10(0x99)]),this[_0x566f10(0x99)]=null);}[_0x517afa(0x1d5)](){const _0x34d020=_0x517afa;this['_messageService'][_0x34d020(0xd6)]({'content':this[_0x34d020(0xdb)]['t'](_0x34d020(0x129)),'type':_0x43794b[_0x34d020(0x1ae)]});}[_0x517afa(0x8a)](_0x4a54d6){const _0x3127bc=_0x517afa;for(const _0x139f2d of _0x4a54d6){const {unitId:_0x360549,sheetId:_0x4b8697,range:_0xe0b171}=_0x139f2d,_0x5be82c=this[_0x3127bc(0xb4)]['getUnit'](_0x360549);if(!_0x5be82c)continue;const _0x3cf598=_0x5be82c[_0x3127bc(0x18f)](_0x4b8697);if(!_0x3cf598)continue;const _0x30c1b6=_0x3cf598['getCellMatrix']();for(let _0x5f4648=_0xe0b171['startRow'];_0x5f4648<=_0xe0b171[_0x3127bc(0x80)];_0x5f4648++)for(let _0x41fba2=_0xe0b171[_0x3127bc(0xcf)];_0x41fba2<=_0xe0b171[_0x3127bc(0x98)];_0x41fba2++){const _0x30c985=_0x30c1b6[_0x3127bc(0x89)](_0x5f4648,_0x41fba2);if(_0x30c985&&(_0x434ee5(_0x30c985['f'])||_0x2fae16(_0x30c985['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x388393(_0x341740)),P(0x1,_0x4ab028),P(0x2,_0x6a4de3),P(0x3,_0x388393(_0x345138)),P(0x4,_0x30c7ee),P(0x5,_0x46da51),P(0x6,_0x388393(_0x3ae72e))],de);var Tn=Object[_0x517afa(0x217)],Cn=(_0x516afe,_0xb22d77,_0x3b03f1,_0x33614e)=>{const _0xb10d20=_0x517afa;for(var _0x58f3ce=_0x33614e>0x1?void 0x0:_0x33614e?Tn(_0xb22d77,_0x3b03f1):_0xb22d77,_0x2acf0b=_0x516afe[_0xb10d20(0x1d1)]-0x1,_0xa26ba;_0x2acf0b>=0x0;_0x2acf0b--)(_0xa26ba=_0x516afe[_0x2acf0b])&&(_0x58f3ce=_0xa26ba(_0x58f3ce)||_0x58f3ce);return _0x58f3ce;},De=(_0x408472,_0x168c64)=>(_0x48ee2c,_0x486808)=>_0x168c64(_0x48ee2c,_0x486808,_0x408472);let xe=class extends _0x4057f7{constructor(_0x25539e,_0x4edeeb,_0x3eb649){const _0x569a2b=_0x517afa;super(),l(this,_0x569a2b(0x12e),new Map()),l(this,_0x569a2b(0x27a),new Map()),l(this,_0x569a2b(0x231),!0x1),(this[_0x569a2b(0xc6)]=_0x25539e,this[_0x569a2b(0x28e)]=_0x4edeeb,this[_0x569a2b(0x212)]=_0x3eb649);}[_0x517afa(0x17d)](){const _0x32d058=_0x517afa;this[_0x32d058(0x231)]=!0x0;}[_0x517afa(0x223)](){const _0x4d861e=_0x517afa;this[_0x4d861e(0x231)]=!0x1;}get[_0x517afa(0xb3)](){return this['_saveTaskMap'];}[_0x517afa(0x121)](){const _0x1b55af=_0x517afa;this[_0x1b55af(0x96)]()[_0x1b55af(0x189)](()=>super[_0x1b55af(0x121)]());}async[_0x517afa(0x1c3)](_0xc26c88){const _0xdfee4f=_0x517afa;return this['_disabled']?null:this['_localStorageService'][_0xdfee4f(0x1d2)](_0x439647(_0xc26c88));}async[_0x517afa(0x259)](_0x4c3fb9,_0x670f80){const _0x36d466=_0x517afa;return!!this['_localStorageService'][_0x36d466(0x18d)](_0x4c3fb9,_0x670f80);}[_0x517afa(0x1ff)](_0x37064e,_0x525bd6,_0x48dccb,_0x3988b2){const _0xee7b78=_0x517afa,_0x575caf=this[_0xee7b78(0x212)][_0xee7b78(0x24f)](_0x37064e);this[_0xee7b78(0x12e)][_0xee7b78(0x11e)](_0x37064e,{'unitID':_0x37064e,'type':_0x525bd6,'awaitingChangeset':_0x48dccb,'mutations':_0x3988b2,'rev':_0x575caf}),this[_0xee7b78(0x27a)][_0xee7b78(0x248)](_0x37064e)||this[_0xee7b78(0x9b)](_0x37064e);}['_scheduleSaving'](_0x3e077d){const _0x540a54=_0x517afa,_0x1e2e2e=this[_0x540a54(0x144)]();_0x1e2e2e===0x0?this[_0x540a54(0x220)](_0x3e077d):this['_saveTaskMap'][_0x540a54(0x11e)](_0x3e077d,setTimeout(()=>this[_0x540a54(0x220)](_0x3e077d),_0x1e2e2e));}[_0x517afa(0x144)](){const _0x47f51d=_0x517afa;var _0x14626b;return(_0x14626b=this[_0x47f51d(0xc6)][_0x47f51d(0x201)](_0x141eb8))!=null?_0x14626b:_0x5d3637;}[_0x517afa(0x220)](_0x50867e){const _0x2dba9a=_0x517afa,_0xe14ff4=this['_saveTaskMap'][_0x2dba9a(0x19b)](_0x50867e);return _0xe14ff4!==void 0x0&&window[_0x2dba9a(0xbe)](_0xe14ff4),this[_0x2dba9a(0x28e)][_0x2dba9a(0x18d)](_0x439647(_0x50867e),this[_0x2dba9a(0x12e)][_0x2dba9a(0x19b)](_0x50867e))[_0x2dba9a(0x189)](()=>this[_0x2dba9a(0x27a)][_0x2dba9a(0x26d)](_0x50867e));}async[_0x517afa(0x96)](){const _0x4651c8=_0x517afa,_0x531f4f=[];this[_0x4651c8(0x27a)][_0x4651c8(0x17f)]((_0x11f40c,_0x535c89)=>{const _0x354589=_0x4651c8;window[_0x354589(0xbe)](_0x11f40c),_0x531f4f['push'](this['_saveCache'](_0x535c89)[_0x354589(0x189)](()=>{const _0x29d529=_0x354589;this['_saveTaskMap'][_0x29d529(0x26d)](_0x535c89);}));}),await Promise[_0x4651c8(0x24e)](_0x531f4f);}};xe=Cn([De(0x0,_0x6a4de3),De(0x1,_0xbe08f5),De(0x2,_0x388393(_0x1fb0da))],xe);class Rn extends _0x518648{constructor(){const _0x39ba9e=_0x517afa;super(),l(this,'urlChange$'),this['urlChange$']=_0x258e3e(window,'popstate')[_0x39ba9e(0x7b)](_0xd33296(this[_0x39ba9e(0x1e9)]),_0x4adcb8(0x1),_0x487335(void 0x0));}[_0x517afa(0x281)](_0x1182bd,_0x4440e3,_0x4ce1b5=!0x1){const _0x2b8b2b=_0x517afa,_0x344e83=new URL(window[_0x2b8b2b(0x290)][_0x2b8b2b(0x250)]);_0x344e83[_0x2b8b2b(0x1fb)][_0x2b8b2b(0x11e)](_0x1182bd,_0x4440e3),_0x4ce1b5?window['history'][_0x2b8b2b(0x11f)]('','',_0x344e83[_0x2b8b2b(0xee)]()):window[_0x2b8b2b(0x173)][_0x2b8b2b(0x125)]('','',_0x344e83['toString']());}[_0x517afa(0xf1)](_0x72dc06,_0x576f15=!0x1){const _0x396972=_0x517afa,_0x4e151c=new URL(window[_0x396972(0x290)]['href']);_0x4e151c['searchParams'][_0x396972(0x26d)](_0x72dc06),_0x576f15?window[_0x396972(0x173)][_0x396972(0x11f)]('','',_0x4e151c['toString']()):window[_0x396972(0x173)][_0x396972(0x125)]('','',_0x4e151c[_0x396972(0xee)]());}[_0x517afa(0xf5)](_0x42739c){const _0x59ea87=_0x517afa;var _0x5d2149;return(_0x5d2149=new URL(window[_0x59ea87(0x290)][_0x59ea87(0x250)])[_0x59ea87(0x1fb)][_0x59ea87(0x19b)](_0x42739c))!=null?_0x5d2149:void 0x0;}}var Dn=Object['defineProperty'],Nn=Object['getOwnPropertyDescriptor'],bn=(_0x75f93a,_0x450df4,_0x1e14f0)=>_0x450df4 in _0x75f93a?Dn(_0x75f93a,_0x450df4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e14f0}):_0x75f93a[_0x450df4]=_0x1e14f0,Un=(_0x3fb22a,_0x612123,_0x1110f8,_0xd35fa1)=>{const _0x17934a=_0x517afa;for(var _0x29f87a=_0xd35fa1>0x1?void 0x0:_0xd35fa1?Nn(_0x612123,_0x1110f8):_0x612123,_0x1b468b=_0x3fb22a[_0x17934a(0x1d1)]-0x1,_0x3b0d11;_0x1b468b>=0x0;_0x1b468b--)(_0x3b0d11=_0x3fb22a[_0x1b468b])&&(_0x29f87a=_0x3b0d11(_0x29f87a)||_0x29f87a);return _0x29f87a;},Ne=(_0x25a969,_0x350ae3)=>(_0xc584a9,_0x471781)=>_0x350ae3(_0xc584a9,_0x471781,_0x25a969),Ln=(_0x35d2d9,_0x11516a,_0x4f6538)=>bn(_0x35d2d9,_0x11516a+'',_0x4f6538);const Mn=_0x517afa(0x1c2);let Be=class extends _0x576e66{constructor(_0x134e48=rt,_0x21f916,_0x557771,_0x11708a){const _0xbbb914=_0x517afa;super(),this[_0xbbb914(0x180)]=_0x134e48,this[_0xbbb914(0x113)]=_0x21f916,this[_0xbbb914(0x22f)]=_0x557771,this[_0xbbb914(0xc6)]=_0x11708a;const {..._0x4b6022}=_0xff84a3({},rt,this[_0xbbb914(0x180)]);this[_0xbbb914(0xc6)][_0xbbb914(0x230)](an,_0x4b6022);}[_0x517afa(0x23a)](){const _0xed6282=_0x517afa;this[_0xed6282(0x150)](),this['_initDependencies']();}['onRendered'](){const _0x325492=_0x517afa;this[_0x325492(0xae)]();}[_0x517afa(0x150)](){const _0x40ac8b=_0x517afa;var _0x28c032;const _0x366b49=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x5adab9,{'useClass':_0x558214}],[_0x190965,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x183763(this[_0x40ac8b(0x22f)],_0x328036(_0x366b49,(_0x28c032=this[_0x40ac8b(0x180)])==null?void 0x0:_0x28c032[_0x40ac8b(0x100)]));}['_registerRenderDependencies'](){const _0x5ac2d4=_0x517afa;this[_0x5ac2d4(0x161)](this['_renderManagerService'][_0x5ac2d4(0x6e)](_0x4ed0b3[_0x5ac2d4(0xf0)],[ye])),this['disposeWithMe'](this[_0x5ac2d4(0x113)][_0x5ac2d4(0x6e)](_0x4ed0b3[_0x5ac2d4(0x211)],[$e]));}['_initDependencies'](){const _0x587f12=_0x517afa;_0x36d93c(this[_0x587f12(0x22f)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0x517afa(0x22e),Mn),Be=Un([_0x2422e9(_0x246cf1),Ne(0x1,_0x7acb9e),Ne(0x2,_0x388393(_0x258030)),Ne(0x3,_0x6a4de3)],Be);var An=Object[_0x517afa(0x217)],Pn=(_0x2ff376,_0x9fac01,_0x35963e,_0x81f380)=>{const _0x3baa0e=_0x517afa;for(var _0x1e3e4d=_0x81f380>0x1?void 0x0:_0x81f380?An(_0x9fac01,_0x35963e):_0x9fac01,_0x538f2f=_0x2ff376[_0x3baa0e(0x1d1)]-0x1,_0x412cb3;_0x538f2f>=0x0;_0x538f2f--)(_0x412cb3=_0x2ff376[_0x538f2f])&&(_0x1e3e4d=_0x412cb3(_0x1e3e4d)||_0x1e3e4d);return _0x1e3e4d;},J=(_0xb9c1f1,_0x13955e)=>(_0x14ce0f,_0x39c5de)=>_0x13955e(_0x14ce0f,_0x39c5de,_0xb9c1f1);let ct=class extends _0x5c223d{constructor(_0x3428e1,_0x2f0096,_0x48cc36,_0x53a874,_0x291fd9){super(_0x3428e1,_0x2f0096,_0x48cc36,_0x53a874,_0x291fd9);}async['createSocket'](_0x1bd2c1){const _0x5c280a=_0x517afa,_0x5cebef=await this[_0x5c280a(0xc5)](),_0x51fbc2=this['_createSocketURL'](_0x1bd2c1,_0x5cebef);return this[_0x5c280a(0x122)](_0x51fbc2);}[_0x517afa(0x25e)](_0x4bf289,_0x23a8d5){const _0x8ca50a=_0x517afa,_0x2a701c=typeof window>'u'?new URL(_0x4bf289):new URL(_0x4bf289,window[_0x8ca50a(0x290)][_0x8ca50a(0x87)]);_0x2a701c[_0x8ca50a(0x1fb)][_0x8ca50a(0x11e)]('sessionTicket',_0x23a8d5);const _0x57240a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x8ca50a(0x290)][_0x8ca50a(0x1b3)]);return _0x57240a['get']('runId')&&_0x2a701c[_0x8ca50a(0x1fb)][_0x8ca50a(0x11e)](_0x8ca50a(0x6b),_0x57240a[_0x8ca50a(0x19b)](_0x8ca50a(0x6b))),_0x2a701c[_0x8ca50a(0xee)]();}async[_0x517afa(0xc5)](){const _0x2b8b07=_0x517afa;var _0x10da06,_0x3b371b,_0x2e7c0a;const _0x490f68=this[_0x2b8b07(0xc6)][_0x2b8b07(0x201)](_0x174b68),_0x48659f=(_0x10da06=_0x490f68==null?void 0x0:_0x490f68[_0x2b8b07(0x64)])!=null?_0x10da06:_0x84448e;return(_0x2e7c0a=(_0x3b371b=(await this[_0x2b8b07(0x21b)][_0x2b8b07(0x19b)](_0x48659f,{'headers':{'Content-Type':_0x2b8b07(0x258)}}))['body'])==null?void 0x0:_0x3b371b[_0x2b8b07(0x184)])!=null?_0x2e7c0a:'';}};ct=Pn([J(0x0,_0x388393(_0x258030)),J(0x1,_0x388393(_0x345138)),J(0x2,_0x6a4de3),J(0x3,_0x46da51),J(0x4,_0x3419af)],ct);var wn=Object[_0x517afa(0x217)],yn=(_0x8e2e0f,_0x1aeee1,_0xf4372,_0x7112)=>{const _0x2dbf6a=_0x517afa;for(var _0x58496e=_0x7112>0x1?void 0x0:_0x7112?wn(_0x1aeee1,_0xf4372):_0x1aeee1,_0x4ce315=_0x8e2e0f[_0x2dbf6a(0x1d1)]-0x1,_0x2f09c1;_0x4ce315>=0x0;_0x4ce315--)(_0x2f09c1=_0x8e2e0f[_0x4ce315])&&(_0x58496e=_0x2f09c1(_0x58496e)||_0x58496e);return _0x58496e;},be=(_0x479338,_0x4ebe8b)=>(_0x11f824,_0x2f569b)=>_0x4ebe8b(_0x11f824,_0x2f569b,_0x479338);let _t=class extends _0x4057f7{constructor(_0x32cabd,_0x120fb2,_0x375742){const _0x5dbca3=_0x517afa;super(),this[_0x5dbca3(0x1a5)]=_0x32cabd,this['_httpService']=_0x120fb2,this[_0x5dbca3(0xc6)]=_0x375742;}async[_0x517afa(0x190)](_0x30c50c,_0xae4965,_0x16543f,..._0x465e95){const _0x3038d3=_0x517afa;var _0x5b0974,_0x193cd5,_0x59b5b3,_0x57d416;const _0x163a08=this[_0x3038d3(0x1a5)][_0x3038d3(0x228)]();if(!_0x163a08)throw new Error(_0x3038d3(0xa2));const _0x6b7b66=((_0x5b0974=this['_configService'][_0x3038d3(0x201)](_0x5be24c))!=null?_0x5b0974:_0x2db30)+'/'+_0x30c50c+_0x3038d3(0x247)+_0xae4965,_0x1d4631=new URL(window[_0x3038d3(0x290)][_0x3038d3(0x250)]),_0x23ad41={'scriptId':_0x30c50c,'runId':(_0x193cd5=_0x1d4631[_0x3038d3(0x1fb)][_0x3038d3(0x19b)](_0x3038d3(0x6b)))!=null?_0x193cd5:'','function':_0xae4965,'unitId':_0x163a08[_0x3038d3(0x90)](),'argsOfFunction':JSON[_0x3038d3(0xff)](_0x465e95),'invokeId':(_0x59b5b3=_0x16543f['invokeId'])!=null?_0x59b5b3:'','executionId':(_0x57d416=_0x16543f[_0x3038d3(0x1ea)])!=null?_0x57d416:''};try{const _0x1201ad=await this[_0x3038d3(0x21b)][_0x3038d3(0x235)](_0x6b7b66,{'body':_0x23ad41});return _0x1201ad[_0x3038d3(0x15f)][_0x3038d3(0x154)]&&_0x1201ad['body'][_0x3038d3(0x154)]['code']!==Z['OK']?_0x3038d3(0xb9):_0x1201ad[_0x3038d3(0x15f)][_0x3038d3(0x18e)];}catch{return _0x3038d3(0xb9);}}};_t=yn([be(0x0,_0x30c7ee),be(0x1,_0x388393(_0x345138)),be(0x2,_0x6a4de3)],_t);const lt=0x7530,ht=_0x517afa(0x22c);class tr extends _0x4057f7{constructor(){const _0x4c1c38=_0x517afa;super(),l(this,_0x4c1c38(0x1f1),_0x24b861()),l(this,_0x4c1c38(0x1ac),new Set()),l(this,_0x4c1c38(0x9a),new Map()),l(this,_0x4c1c38(0x134),null),l(this,_0x4c1c38(0x1fd),new Map()),l(this,_0x4c1c38(0x1c8),new Map()),this['_init']();}[_0x517afa(0x121)](){const _0x520346=_0x517afa;super[_0x520346(0x121)](),this[_0x520346(0x1fd)][_0x520346(0x17f)]((_0xbf1db2,_0x165190)=>this[_0x520346(0x148)](_0x165190)),this[_0x520346(0x134)]&&window[_0x520346(0xe7)](this[_0x520346(0x134)]);}['getUnitStatus$'](_0x53e614){return this['_ensureSubject'](_0x53e614)['pipe'](_0xfe7dd9());}[_0x517afa(0x265)](_0x135c13){const _0x39a802=_0x517afa;this[_0x39a802(0x1ac)][_0x39a802(0xf2)]===0x0&&this['_scheduleHeartbeat'](),this[_0x39a802(0x1ac)][_0x39a802(0xef)](_0x135c13),this[_0x39a802(0x174)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x135c13],'isForwarded':!0x1});}[_0x517afa(0xcc)](_0x856fa3){const _0x211217=_0x517afa;this['_selfUnitIDs'][_0x211217(0x26d)](_0x856fa3),this[_0x211217(0x1ac)][_0x211217(0xf2)]===0x0&&this[_0x211217(0x134)]&&window['clearInterval'](this[_0x211217(0x134)]);}['_init'](){const _0x54dbb8=_0x517afa;this[_0x54dbb8(0x161)](_0x5d128c(_0x258e3e(window,_0x54dbb8(0x1a6))['subscribe'](_0x57c6e5=>{const _0x5600b9=_0x54dbb8;if(_0x57c6e5[_0x5600b9(0x1a1)]!==ht||!_0x57c6e5[_0x5600b9(0xb6)])return;const _0x12f928=JSON[_0x5600b9(0x1a2)](_0x57c6e5[_0x5600b9(0xb6)]);this['_handleEvent'](_0x12f928);}))),window['addEventListener'](_0x54dbb8(0xd4),()=>this[_0x54dbb8(0x174)]({'type':0x1,'memberID':this[_0x54dbb8(0x1f1)],'unitIDs':Array[_0x54dbb8(0x1cd)](this[_0x54dbb8(0x1ac)])}));}[_0x517afa(0x1d3)](_0x277228){const _0x2bc802=_0x517afa;switch(_0x277228[_0x2bc802(0x7e)]){case 0x0:this[_0x2bc802(0x251)](_0x277228);break;case 0x1:this[_0x2bc802(0x240)](_0x277228);break;case 0x2:this['_handleHeartbeatEvent'](_0x277228);break;}}[_0x517afa(0x251)](_0x41631c){const _0x28cd09=_0x517afa,{unitIDs:_0x3fcd1b,memberID:_0x322d0d,isForwarded:_0x3561e7}=_0x41631c;_0x3fcd1b[_0x28cd09(0x17f)](_0x234857=>{const _0x35277b=_0x28cd09;if(!_0x3561e7&&this[_0x35277b(0x9a)]['has'](_0x234857)&&this['_ensureSubject'](_0x234857)['next'](_0x182996['OTHER_CLIENTS_EDITING']),!this[_0x35277b(0x9a)][_0x35277b(0x248)](_0x234857)||!this[_0x35277b(0x9a)][_0x35277b(0x19b)](_0x234857)[_0x35277b(0x248)](_0x322d0d)){const _0x30e2e4=this['_unitOnClients']['get'](_0x234857)||new Set();_0x30e2e4[_0x35277b(0xef)](_0x322d0d),this[_0x35277b(0x9a)][_0x35277b(0x11e)](_0x234857,_0x30e2e4),this[_0x35277b(0x175)](_0x322d0d);}}),_0x3561e7||this[_0x28cd09(0x174)]({'type':0x0,'memberID':this[_0x28cd09(0x1f1)],'unitIDs':[...this[_0x28cd09(0x1ac)]],'isForwarded':!0x0});}[_0x517afa(0x175)](_0x16f577){const _0x1dca94=_0x517afa;this[_0x1dca94(0x148)](_0x16f577);const _0x3d05b3=window[_0x1dca94(0x1cf)](()=>{const _0x396a66=_0x1dca94;this['_unitOnClients'][_0x396a66(0x17f)](_0x1c1128=>{_0x1c1128['delete'](_0x16f577);});},lt*0x2);this[_0x1dca94(0x1fd)]['set'](_0x16f577,_0x3d05b3);}[_0x517afa(0x148)](_0x4de560){const _0x105f79=_0x517afa;if(this[_0x105f79(0x1fd)]['has'](_0x4de560)){const _0x53e76c=this[_0x105f79(0x1fd)][_0x105f79(0x19b)](_0x4de560);_0x53e76c&&window[_0x105f79(0xbe)](_0x53e76c),this['_clearOtherTimers'][_0x105f79(0x11e)](_0x4de560,null);}}[_0x517afa(0x240)](_0x5a6670){const _0xec18cf=_0x517afa,{memberID:_0x3560e0,unitIDs:_0x5cb6f8}=_0x5a6670;_0x5cb6f8[_0xec18cf(0x17f)](_0x4b52e0=>{const _0x7cf082=_0xec18cf;var _0x2e045e;const _0x18a1d7=this[_0x7cf082(0x9a)]['get'](_0x4b52e0);_0x18a1d7&&(_0x18a1d7[_0x7cf082(0x26d)](_0x3560e0),(_0x2e045e=this[_0x7cf082(0x241)](_0x4b52e0))==null||_0x2e045e[_0x7cf082(0xb2)](_0x18a1d7['size']===0x0?_0x182996[_0x7cf082(0x102)]:_0x182996[_0x7cf082(0x159)]));}),this[_0xec18cf(0x148)](_0x3560e0);}['_handleHeartbeatEvent'](_0x57da80){const _0x41e076=_0x517afa;this[_0x41e076(0x175)](_0x57da80['memberID']);}[_0x517afa(0x174)](_0x347b81){const _0x2992a6=_0x517afa;localStorage[_0x2992a6(0x18d)](ht,JSON['stringify'](_0x347b81));}[_0x517afa(0x18c)](){const _0x4d3b59=_0x517afa;this[_0x4d3b59(0x134)]=window[_0x4d3b59(0x297)](()=>{const _0xc57d32=_0x4d3b59;this['_send']({'type':0x2,'memberID':this[_0xc57d32(0x1f1)]});},lt);}[_0x517afa(0x241)](_0x32e38e){const _0x232c48=_0x517afa;return this[_0x232c48(0x1c8)][_0x232c48(0x248)](_0x32e38e)||this[_0x232c48(0x1c8)]['set'](_0x32e38e,new _0x340b13(_0x182996[_0x232c48(0x102)])),this[_0x232c48(0x1c8)][_0x232c48(0x19b)](_0x32e38e);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
|
|
1
|
+
const _0x1bab67=_0x4050;(function(_0x1011b,_0x3908fa){const _0x410ebc=_0x4050,_0x5d27ff=_0x1011b();while(!![]){try{const _0x4a1eef=parseInt(_0x410ebc(0x3e3))/0x1*(-parseInt(_0x410ebc(0x317))/0x2)+-parseInt(_0x410ebc(0x234))/0x3+-parseInt(_0x410ebc(0x331))/0x4+-parseInt(_0x410ebc(0x1e9))/0x5+-parseInt(_0x410ebc(0x1de))/0x6*(-parseInt(_0x410ebc(0x3a5))/0x7)+-parseInt(_0x410ebc(0x368))/0x8*(parseInt(_0x410ebc(0x392))/0x9)+parseInt(_0x410ebc(0x208))/0xa;if(_0x4a1eef===_0x3908fa)break;else _0x5d27ff['push'](_0x5d27ff['shift']());}catch(_0x4758be){_0x5d27ff['push'](_0x5d27ff['shift']());}}}(_0x2e9d,0xbb006));var Yt=Object['defineProperty'],Wt=(_0x482695,_0x18a159,_0x4abdc0)=>_0x18a159 in _0x482695?Yt(_0x482695,_0x18a159,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4abdc0}):_0x482695[_0x18a159]=_0x4abdc0,_=(_0x3253da,_0x267ec8,_0x2ad90d)=>Wt(_0x3253da,typeof _0x267ec8!=_0x1bab67(0x391)?_0x267ec8+'':_0x267ec8,_0x2ad90d);import{jsx as _0x2b343a,jsxs as _0x548497}from'react/jsx-runtime';import{CollaborationStatus as _0x1db3c4,CollaborationSessionService as _0x5b8361,CollaborationController as _0x519a49,DataLoaderService as _0x403737,MemberService as _0x4b1a14,SessionStatus as _0x407a80,ILocalCacheService as _0x47e6d9,CollaborationUIEventService as _0x1cc67e,CollaborationUIEventId as _0x4fffd5,DocCollaborationEntity as _0x1d8428,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4f0d33,getLocalCacheKey as _0x35f275,LOCAL_CACHE_INTERVAL as _0x389196,LOCAL_CACHE_INTERVAL_KEY as _0x295962,UniverCollaborationClientPlugin as _0x306f7d,CollaborationSocketService as _0x5160fc,DEFAULT_WS_SESSION_TICKET_URL as _0x38397b,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x48ebf0,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x21d34e,UnitStatus as _0x1daf11}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x358b52,IUniverInstanceService as _0x3b2157,Inject as _0x5a79e2,Injector as _0x41a636,Disposable as _0x570ab2,createIdentifier as _0x2fa984,ILogService as _0xf1ee96,ICommandService as _0x34fc9a,Optional as _0x173b7e,RxDisposable as _0xb8eb03,Workbook as _0x456127,DOC_RANGE_TYPE as _0x4c6b17,debounce as _0x3dabb7,Rectangle as _0x3f41b8,DisposableCollection as _0x59db6f,toDisposable as _0x2b2711,UniverInstanceType as _0x547011,generateRandomId as _0x2679ea,COLORS as _0xee8009,ColorKit as _0x55dc10,ThemeService as _0x3c6cac,fromEventSubject as _0x525fe4,Tools as _0x3b1d01,CommandType as _0x5d535e,IConfigService as _0x52bdc7,CanceledError as _0x419811,isFormulaString as _0x9c35a0,isFormulaId as _0x28c56f,ILocalStorageService as _0x5852d4,DependentOn as _0x32854b,Plugin as _0x26861e,merge as _0x2b8749,registerDependencies as _0x28fdc0,mergeOverrideWithDependencies as _0x7f7db3,touchDependencies as _0x4c947a}from'@univerjs/core';import{useObservable as _0x26e909,useDependency as _0xe6eb82,IUIPartsService as _0xc64278,BuiltInUIPart as _0x20bf22,connectInjector as _0x25cd97,IBeforeCloseService as _0x912558,IMessageService as _0x116021,INotificationService as _0x259113}from'@univerjs/ui';import{BehaviorSubject as _0x42c9f3,switchMap as _0x404b1e,of as _0x147589,takeUntil as _0x4cbc42,debounceTime as _0x48e44d,Subject as _0xbe2b9d,filter as _0x22f5b1,merge as _0x33fea5,combineLatest as _0x188334,fromEvent as _0x5af89f,shareReplay as _0x3b24b5,mapTo as _0x50b777,distinctUntilChanged as _0x7cced5}from'rxjs';import{Tooltip as _0x4a0b9c,clsx as _0x37fe69,MessageType as _0x5d27fe}from'@univerjs/design';import{useRef as _0x1a4b64,createElement as _0x375bb9,forwardRef as _0x4314be,useCallback as _0xb36e2e}from'react';import{IRemoteInstanceService as _0xee83ea}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x4822bc,RefRangeService as _0x474d9d,SetSelectionsOperation as _0x22809a,SheetsSelectionsService as _0x4ae7c3,EffectRefRangId as _0x59c1c3,handleIRemoveRow as _0x581694,handleIRemoveCol as _0x3c8f15,handleMoveRange as _0x2e1057,handleInsertRow as _0x43caa4,handleInsertRangeMoveRight as _0x2041ff,handleInsertRangeMoveDown as _0x5b3cb2,handleInsertCol as _0x922e73,handleDeleteRangeMoveUp as _0x54b924,handleDeleteRangeMoveLeft as _0x25bf2f,runRefRangeMutations as _0x57870a}from'@univerjs/sheets';import{Shape as _0x2d6f87,Rect as _0x17d777,getColor as _0x59e896,RegularPolygon as _0x232ebe,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x30d333,Vector2 as _0x380b35,SHEET_VIEWPORT_KEY as _0x3d4c73,IRenderManagerService as _0x1eaf53}from'@univerjs/engine-render';import{HTTPService as _0x1fe289,ISocketService as _0xc715c1,WebSocketService as _0x1b48bb}from'@univerjs/network';import{IDocClipboardService as _0x372b4b,NodePositionConvertToCursor as _0x267305,NodePositionConvertToRectRange as _0x48404a,TEXT_RANGE_LAYER_INDEX as _0x4adf9c,SetDocZoomRatioOperation as _0x2e1434,DocIMEInputManagerService as _0x38083a,DocStateChangeManagerService as _0x242de7}from'@univerjs/docs-ui';import{IImageIoService as _0x3ee77e}from'@univerjs/drawing';import{ITransformService as _0x1b61b0,CollaborationEvent as _0x4ec7f0,isTransformMutationFailure as _0x571730,isTransformMutationsWithChangesetSuccess as _0x29ce50,RevisionService as _0x10ef4a,ISnapshotServerService as _0x24fc69}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x5817ee,RichTextEditingMutation as _0x435618,DocSelectionManagerService as _0xd5f03f,DocSkeletonManagerService as _0x210e2e}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x374d74,serializeRangeWithSheet as _0x44242a,FormulaExecuteStageType as _0x1a0570,FormulaExecutedStateType as _0x16d1f3,SetFormulaCalculationStartMutation as _0x3a24d4,SetFormulaCalculationNotificationMutation as _0x3d0d88}from'@univerjs/engine-formula';import{map as _0xa7eefa,filter as _0x2df3db,throttleTime as _0x5454da,takeUntil as _0x33be30,switchMap as _0x42a06f}from'rxjs/operators';import{SheetSkeletonManagerService as _0x1576bc,getCoordByCell as _0xa911b5,getSheetObject as _0x11d02e}from'@univerjs/sheets-ui';function Ge({ref:_0x4f7920,..._0x184ce1}){const _0x22ceaf=_0x1bab67,{icon:_0x31a156,id:_0x31aca9,className:_0x13fd09,extend:_0x59705a,..._0x5f2d73}=_0x184ce1,_0x4d443b=(_0x22ceaf(0x3fb)+_0x31aca9+'\x20'+(_0x13fd09||''))['trim'](),_0x3792bd=_0x1a4b64('_'+Ei());return At(_0x31a156,''+_0x31aca9,{'defIds':_0x31a156['defIds'],'idSuffix':_0x3792bd[_0x22ceaf(0x3d4)]},{'ref':_0x4f7920,'className':_0x4d443b,..._0x5f2d73},_0x59705a);}function At(_0x2b36ef,_0x599b5e,_0x3ca6a2,_0x523fc6,_0x38df25){const _0x162b0c=_0x1bab67;return _0x375bb9(_0x2b36ef[_0x162b0c(0x348)],{'key':_0x599b5e,...gi(_0x2b36ef,_0x3ca6a2,_0x38df25),..._0x523fc6},(vi(_0x2b36ef,_0x3ca6a2)[_0x162b0c(0x2d8)]||[])['map']((_0x383912,_0x503a3c)=>At(_0x383912,_0x599b5e+'-'+_0x2b36ef[_0x162b0c(0x348)]+'-'+_0x503a3c,_0x3ca6a2,void 0x0,_0x38df25)));}function gi(_0x2c1159,_0x2411c5,_0x3c8bb5){const _0x2e726d=_0x1bab67,_0x347056={..._0x2c1159[_0x2e726d(0x2b6)]};_0x3c8bb5!=null&&_0x3c8bb5[_0x2e726d(0x374)]&&_0x347056['fill']===_0x2e726d(0x374)&&(_0x347056[_0x2e726d(0x367)]=_0x3c8bb5[_0x2e726d(0x374)]),_0x2c1159[_0x2e726d(0x348)]===_0x2e726d(0x286)&&_0x347056['id']&&(_0x347056['id']=_0x347056['id']+_0x2411c5[_0x2e726d(0x1ea)]),Object[_0x2e726d(0x41c)](_0x347056)[_0x2e726d(0x36c)](([_0x517bd4,_0x4778e6])=>{const _0x276f70=_0x2e726d;_0x517bd4===_0x276f70(0x286)&&typeof _0x4778e6==_0x276f70(0x1e6)&&(_0x347056[_0x517bd4]=_0x4778e6['replace'](/url\(#(.*)\)/,_0x276f70(0x274)+_0x2411c5[_0x276f70(0x1ea)]+')'));});const {defIds:_0x307800}=_0x2411c5;return!_0x307800||_0x307800[_0x2e726d(0x30a)]===0x0||(_0x2c1159['tag']==='use'&&_0x347056[_0x2e726d(0x27d)]&&(_0x347056[_0x2e726d(0x27d)]=_0x347056[_0x2e726d(0x27d)]+_0x2411c5[_0x2e726d(0x1ea)]),Object[_0x2e726d(0x41c)](_0x347056)[_0x2e726d(0x36c)](([_0x237790,_0x1f085b])=>{const _0x27282d=_0x2e726d;typeof _0x1f085b==_0x27282d(0x1e6)&&(_0x347056[_0x237790]=_0x1f085b[_0x27282d(0x400)](/url\(#(.*)\)/,_0x27282d(0x274)+_0x2411c5[_0x27282d(0x1ea)]+')'));})),_0x347056;}function vi(_0xcafa7a,_0x4da834){const _0x531acb=_0x1bab67;var _0x50e806;const {defIds:_0x2803b3}=_0x4da834;return!_0x2803b3||_0x2803b3[_0x531acb(0x30a)]===0x0?_0xcafa7a:_0xcafa7a[_0x531acb(0x348)]==='defs'&&((_0x50e806=_0xcafa7a[_0x531acb(0x2d8)])!=null&&_0x50e806[_0x531acb(0x30a)])?{..._0xcafa7a,'children':_0xcafa7a[_0x531acb(0x2d8)]['map'](_0x21316e=>typeof _0x21316e['attrs']['id']==_0x531acb(0x1e6)&&_0x2803b3&&_0x2803b3[_0x531acb(0x2de)](_0x21316e[_0x531acb(0x2b6)]['id'])?{..._0x21316e,'attrs':{..._0x21316e[_0x531acb(0x2b6)],'id':_0x21316e[_0x531acb(0x2b6)]['id']+_0x4da834[_0x531acb(0x1ea)]}}:_0x21316e)}:_0xcafa7a;}function Ei(){const _0x529ba7=_0x1bab67;return Math[_0x529ba7(0x38d)]()[_0x529ba7(0x1dd)](0x24)[_0x529ba7(0x31b)](0x2,0x8);}Ge['displayName']=_0x1bab67(0x3e0);const pi={'tag':_0x1bab67(0x1db),'attrs':{'xmlns':_0x1bab67(0x2a1),'fill':'none','viewBox':_0x1bab67(0x244),'width':_0x1bab67(0x341),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x1bab67(0x42b)},'children':[{'tag':_0x1bab67(0x2a6),'attrs':{'stroke':_0x1bab67(0x280),'d':_0x1bab67(0x293),'strokeLinecap':'round','strokeLinejoin':_0x1bab67(0x3a3),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x1bab67(0x2a6),'attrs':{'fill':_0x1bab67(0x3ba),'d':_0x1bab67(0x226)}}]}]}],'defIds':[_0x1bab67(0x1f2)]},Pt=_0x4314be(function(_0x31de6b,_0x207e7e){const _0x527011=_0x1bab67;return _0x375bb9(Ge,Object[_0x527011(0x422)]({},_0x31de6b,{'id':'off-line-icon','ref':_0x207e7e,'icon':pi}));});Pt[_0x1bab67(0x3be)]=_0x1bab67(0x20c);const Oi={'tag':_0x1bab67(0x1db),'attrs':{'xmlns':_0x1bab67(0x2a1),'fill':_0x1bab67(0x27f),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x1bab67(0x341)},'children':[{'tag':'g','attrs':{'clipPath':_0x1bab67(0x1da)},'children':[{'tag':_0x1bab67(0x2a6),'attrs':{'stroke':_0x1bab67(0x280),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x1bab67(0x3a3),'strokeLinejoin':_0x1bab67(0x3a3),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1bab67(0x220),'attrs':{'id':_0x1bab67(0x409)},'children':[{'tag':'path','attrs':{'fill':_0x1bab67(0x3ba),'d':'M0\x200H16V16H0z','transform':_0x1bab67(0x28e)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x4314be(function(_0x4c31f6,_0x5b144e){const _0x12090f=_0x1bab67;return _0x375bb9(Ge,Object['assign']({},_0x4c31f6,{'id':_0x12090f(0x32d),'ref':_0x5b144e,'icon':Oi}));});wt[_0x1bab67(0x3be)]=_0x1bab67(0x245);function Ti(_0x12e919){const _0x101f9a=_0x1bab67;switch(_0x12e919){case _0x1db3c4[_0x101f9a(0x33b)]:return _0x101f9a(0x3c8);case _0x1db3c4[_0x101f9a(0x338)]:return _0x101f9a(0x32e);case _0x1db3c4[_0x101f9a(0x285)]:return _0x101f9a(0x1f6);case _0x1db3c4[_0x101f9a(0x3cb)]:return _0x101f9a(0x1f1);case _0x1db3c4['AWAITING']:case _0x1db3c4['AWAITING_WITH_PENDING']:return _0x101f9a(0x2ad);case _0x1db3c4[_0x101f9a(0x346)]:case _0x1db3c4[_0x101f9a(0x23b)]:return _0x101f9a(0x395);}}function Ci(_0x17f1a0){const _0xa7e9ff=_0x1bab67,{status$:_0x32a3b4}=_0x17f1a0,_0x5be08f=_0x26e909(_0x32a3b4,_0x1db3c4[_0xa7e9ff(0x3cb)]),_0x14b7c4=_0xe6eb82(_0x358b52),_0x66fb56=_0xe6eb82(_0x5b8361),_0x55a9e9=_0x5be08f!==_0x1db3c4[_0xa7e9ff(0x33b)],_0x46a4ac=_0x14b7c4['t'](Ti(_0x5be08f)),_0x393589=_0x55a9e9?_0x2b343a(wt,{}):_0x2b343a(Pt,{}),_0x5b8f1f=_0xb36e2e(()=>{const _0x419129=_0xa7e9ff;_0x55a9e9||_0x66fb56[_0x419129(0x36e)]();},[_0x55a9e9,_0x66fb56]);function _0x1d2ba5(){const _0x53ff73=_0xa7e9ff;return _0x548497(_0x53ff73(0x362),{'className':_0x53ff73(0x3f2),'onClick':_0x5b8f1f,'children':[_0x2b343a(_0x53ff73(0x362),{'className':_0x37fe69(_0x53ff73(0x361),{'univer-text-green-500':_0x55a9e9,'univer-text-red-500':!_0x55a9e9}),'children':_0x393589}),_0x2b343a(_0x53ff73(0x362),{'className':_0x53ff73(0x2c2),'children':_0x46a4ac})]});}return _0x55a9e9?_0x1d2ba5():_0x2b343a(_0x4a0b9c,{'title':_0x14b7c4['t'](_0xa7e9ff(0x2bc)),'children':_0x1d2ba5()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x1a0ef3,_0x38cd82,_0x410d15,_0x460c24)=>{for(var _0x397a78=_0x460c24>0x1?void 0x0:_0x460c24?Ri(_0x38cd82,_0x410d15):_0x38cd82,_0x2201c3=_0x1a0ef3['length']-0x1,_0x341e55;_0x2201c3>=0x0;_0x2201c3--)(_0x341e55=_0x1a0ef3[_0x2201c3])&&(_0x397a78=_0x341e55(_0x397a78)||_0x397a78);return _0x397a78;},se=(_0x720f64,_0x413b7b)=>(_0x312fb0,_0x47e189)=>_0x413b7b(_0x312fb0,_0x47e189,_0x720f64);let ae=class extends _0x570ab2{constructor(_0x2acafa,_0x5e9693,_0x2499f7,_0x3be39e){const _0x470a4e=_0x1bab67;super(),_(this,'_status$',new _0x42c9f3(_0x1db3c4[_0x470a4e(0x3cb)])),(this[_0x470a4e(0x3aa)]=_0x2acafa,this[_0x470a4e(0x428)]=_0x5e9693,this[_0x470a4e(0x22e)]=_0x2499f7,this[_0x470a4e(0x38b)]=_0x3be39e,this[_0x470a4e(0x2b5)](),this[_0x470a4e(0x36f)]());}[_0x1bab67(0x36f)](){const _0x29311e=_0x1bab67;this[_0x29311e(0x24d)](this[_0x29311e(0x3aa)][_0x29311e(0x2bb)][_0x29311e(0x3e7)](_0x404b1e(()=>{const _0x1b27fe=_0x29311e,_0x559f2c=this[_0x1b27fe(0x3aa)][_0x1b27fe(0x3cc)]();return _0x559f2c?this[_0x1b27fe(0x22e)][_0x1b27fe(0x42a)](_0x559f2c['getUnitId']()):_0x147589(null);}),_0x404b1e(_0x5be286=>_0x5be286?_0x5be286[_0x29311e(0x2a5)]:_0x147589(_0x1db3c4[_0x29311e(0x3cb)])))[_0x29311e(0x401)](_0x54daee=>{const _0x90323c=_0x29311e;this[_0x90323c(0x2af)][_0x90323c(0x419)](_0x54daee);}));}['_initStatusComponent'](){const _0x595833=_0x1bab67;this['disposeWithMe'](this[_0x595833(0x38b)][_0x595833(0x291)](_0x20bf22[_0x595833(0x399)],()=>_0x25cd97(bi({'status$':this[_0x595833(0x2af)][_0x595833(0x239)]()}),this[_0x595833(0x428)])));}};ae=Di([se(0x0,_0x3b2157),se(0x1,_0x5a79e2(_0x41a636)),se(0x2,_0x5a79e2(_0x519a49)),se(0x3,_0xc64278)],ae);function bi(_0x5de85f){const {status$:_0x2aa82b}=_0x5de85f;return function(){return _0x2b343a(Ci,{'status$':_0x2aa82b});};}const yt=_0x2fa984(_0x1bab67(0x339));var Ni=Object[_0x1bab67(0x32a)],Li=(_0x1fece0,_0x2f5542,_0x23adaf,_0xa91c26)=>{const _0x210358=_0x1bab67;for(var _0x526db8=_0xa91c26>0x1?void 0x0:_0xa91c26?Ni(_0x2f5542,_0x23adaf):_0x2f5542,_0x219c28=_0x1fece0[_0x210358(0x30a)]-0x1,_0x381cd6;_0x219c28>=0x0;_0x219c28--)(_0x381cd6=_0x1fece0[_0x219c28])&&(_0x526db8=_0x381cd6(_0x526db8)||_0x526db8);return _0x526db8;},K=(_0x3f8b93,_0x4339dc)=>(_0x5d6139,_0x49c7c8)=>_0x4339dc(_0x5d6139,_0x49c7c8,_0x3f8b93);let ce=class extends _0xb8eb03{constructor(_0x58024e,_0x360812,_0x594564,_0x22bc43,_0x3a9c32){const _0x39204d=_0x1bab67;super(),this[_0x39204d(0x28f)]=_0x58024e,this[_0x39204d(0x2b2)]=_0x360812,this[_0x39204d(0x22c)]=_0x594564,this['_dataLoaderService']=_0x22bc43,_0x3a9c32?_0x3a9c32==null||_0x3a9c32['whenReady']()[_0x39204d(0x1f3)](()=>this[_0x39204d(0x38f)]()):(this[_0x39204d(0x2b2)][_0x39204d(0x376)](_0x39204d(0x417),_0x39204d(0x2a4)),this[_0x39204d(0x38f)]());}async['_init'](){const _0x5050d7=_0x1bab67,_0x5a0d55=this[_0x5050d7(0x28f)][_0x5050d7(0x34d)](_0x5050d7(0x1fd)),_0x370267=this[_0x5050d7(0x28f)][_0x5050d7(0x34d)]('type'),_0x284d09=this[_0x5050d7(0x28f)][_0x5050d7(0x34d)]('subunit');if(!_0x5a0d55||!_0x370267){this['_logService'][_0x5050d7(0x376)]('[CollaborationDataLoaderController]',_0x5050d7(0x363));return;}const _0x4e98fb=await this[_0x5050d7(0x3ab)][_0x5050d7(0x25e)](_0x5a0d55,Number(_0x370267),_0x284d09);_0x4e98fb&&_0x4e98fb instanceof _0x456127&&this['_setupSubUnitSync'](_0x4e98fb);}async[_0x1bab67(0x24a)](_0x4d9c42){const _0x1f95e6=_0x1bab67;await this[_0x1f95e6(0x262)](_0x4d9c42),_0x4d9c42['activeSheet$'][_0x1f95e6(0x3e7)](_0x4cbc42(this[_0x1f95e6(0x297)]))[_0x1f95e6(0x401)](_0x548bf6=>{const _0x56d703=_0x1f95e6;_0x548bf6&&this[_0x56d703(0x381)](_0x548bf6);}),this['_urlService'][_0x1f95e6(0x204)][_0x1f95e6(0x3e7)](_0x4cbc42(this[_0x1f95e6(0x297)]))[_0x1f95e6(0x401)](()=>this[_0x1f95e6(0x262)](_0x4d9c42));}[_0x1bab67(0x381)](_0x1295a9,_0x517aff=!0x1){const _0x367f2d=_0x1bab67,_0x38d818=this[_0x367f2d(0x28f)][_0x367f2d(0x34d)](_0x367f2d(0x29f));_0x1295a9[_0x367f2d(0x1fa)]()!==_0x38d818&&this[_0x367f2d(0x28f)][_0x367f2d(0x326)](_0x367f2d(0x29f),_0x1295a9[_0x367f2d(0x1fa)](),_0x517aff);}async[_0x1bab67(0x262)](_0x4505e8){const _0xe90f56=_0x1bab67;var _0x2ddf3a;const _0x3b982d=this[_0xe90f56(0x28f)][_0xe90f56(0x34d)]('subunit');if(!_0x3b982d||!_0x4505e8[_0xe90f56(0x26b)](_0x3b982d)){const _0x73e2f0=_0x4505e8[_0xe90f56(0x25c)]()[0x0],_0x2d617e=_0x4505e8['getSheetBySheetId'](_0x73e2f0);if(!_0x2d617e)return;this[_0xe90f56(0x381)](_0x2d617e,!0x0),await this['_commandService'][_0xe90f56(0x271)](_0x4822bc['id'],{'unitId':_0x4505e8[_0xe90f56(0x3e6)](),'subUnitId':_0x73e2f0});return;}((_0x2ddf3a=_0x4505e8[_0xe90f56(0x1ff)]())==null?void 0x0:_0x2ddf3a['getSheetId']())!==_0x3b982d&&await this['_commandService']['executeCommand'](_0x4822bc['id'],{'unitId':_0x4505e8['getUnitId'](),'subUnitId':_0x3b982d});}};ce=Li([K(0x0,yt),K(0x1,_0xf1ee96),K(0x2,_0x34fc9a),K(0x3,_0x5a79e2(_0x403737)),K(0x4,_0x173b7e(_0xee83ea))],ce);var Ui=Object[_0x1bab67(0x32a)],Mi=(_0x2ee822,_0x443797,_0x53526d,_0x21edee)=>{const _0x22065d=_0x1bab67;for(var _0x3da9e4=_0x21edee>0x1?void 0x0:_0x21edee?Ui(_0x443797,_0x53526d):_0x443797,_0x23ec6f=_0x2ee822[_0x22065d(0x30a)]-0x1,_0x232280;_0x23ec6f>=0x0;_0x23ec6f--)(_0x232280=_0x2ee822[_0x23ec6f])&&(_0x3da9e4=_0x232280(_0x3da9e4)||_0x3da9e4);return _0x3da9e4;},rt=(_0x16969a,_0x1ddef9)=>(_0x48a164,_0x3b5354)=>_0x1ddef9(_0x48a164,_0x3b5354,_0x16969a);let $e=class extends _0xb8eb03{constructor(_0x2d784d,_0xba3c3b){const _0x502212=_0x1bab67;super(),this[_0x502212(0x242)]=_0x2d784d,this[_0x502212(0x320)]=_0xba3c3b,this[_0x502212(0x38f)]();}[_0x1bab67(0x38f)](){const _0x4e8bf5=_0x1bab67,_0x1fd8d3=this;this[_0x4e8bf5(0x24d)](this[_0x4e8bf5(0x242)][_0x4e8bf5(0x243)]({'onBeforePasteImage':async _0x59b1c3=>{const _0x58e88c=_0x4e8bf5,_0x47ac9a=await _0x1fd8d3[_0x58e88c(0x320)][_0x58e88c(0x3e1)](_0x59b1c3);return _0x47ac9a?{'source':_0x47ac9a[_0x58e88c(0x364)],'imageSourceType':_0x47ac9a[_0x58e88c(0x279)]}:null;}}));}};$e=Mi([rt(0x0,_0x372b4b),rt(0x1,_0x3ee77e)],$e);const ot=[_0x1bab67(0x201),_0x1bab67(0x32f),_0x1bab67(0x26e),'red.300','blue.400',_0x1bab67(0x30f)];class Ke extends _0x570ab2{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x39b47c){const _0x38633c=_0x1bab67;if(this[_0x38633c(0x413)][_0x38633c(0x1f7)](_0x39b47c))return this[_0x38633c(0x413)]['get'](_0x39b47c);const _0x3223a4=ot[this[_0x38633c(0x3de)]];return this[_0x38633c(0x3de)]=(this[_0x38633c(0x3de)]+0x1)%ot['length'],this[_0x38633c(0x413)][_0x38633c(0x25f)](_0x39b47c,_0x3223a4),_0x3223a4;}}function _0x2e9d(){const _0x5db5ca=['InsertColCommandId','includes','_getSaveTimeout','endRow','INVITE_CODE_ALREADY_BOUND','stringify','stage','_docSkeletonManagerService','isActive','getActiveRange','Loading','arc','onStarting','isEditing','DeleteRangeMoveLeftCommandId','docStateChange$','transformMutation','...','join','_transformHistoryAndStateStack','_cursorInfo$','message','onMouseMove','searchParams','maxFormulaLimit','_textBubble','_httpService','USER_NOT_INVITED_CODE','getCurrentSelections','getRelativeToViewportCoord','loadOfflineData','_uploadLog','min','send','_toggleOffline','eventID','_applyCommand','_eventUnsubscribe','name','INVALID_INVITE_CODE','_beforeCloseService','COMPLETION_FINISHED','_monkeyPatchLogService','assignAColorForMemberID','MoveRangeCommandId','length','_unitStatus','INVITE_CODE_HAS_BEEN_UES','UNDEFINED','transformStateCache','yellow.400','_hideTimer','_labelPosition','requireSession','_messageService','_registerDependencies','APPLY_NON_SEQUENTIAL_REVISION','collab-text-anchor-','6wCWZqT','SNAPSHOT_INVALID_SNAPSHOT','ENTITLE_REPORT_LIMIT_EXCEED','onPointerMove$','substring','setInterval','_docTransformSelectionsService','result','RemoveColCommandId','_imageIoService','values','getStateCache','replaceDocRanges','_unitOnClients','TEXT','setParam','_drawRectRange','editingUnit','top','getOwnPropertyDescriptor','YUUMI_ALL_TABLES_IS_INVALID','_docTransformIMECacheService','on-line-icon','collabStatus.conflict','jiqing.500','ENTITLE_INSUFFICIENT_QUOTA','3959336rqhcUs','roomMembers','_hasFormulaInDirtyRanges','all','_handleHeartbeatEvent','actions','_transformUndoRedoStack','CONFLICT','uni.network.url-service','_revisionService','OFFLINE','code','backgroundColor','engine','ONLINE','APPLY_REJECT','1em','_notificationService','_range','_transformPreviousActiveRange','isArray','SYNCED','_anchor','tag','_pollingInterval','complete','storage','_localeService','getParam','REDEMPTION_USER_NOT_ELIGIBLE','_instanceService','clearTimeout','_getSheetObject','_online','_refreshCollabCursors','_collaborationUIEventService','sheetId','unsubscribe','origin','onCommandExecuted','unload','endColumn','LICENSE_EXPORT_SIZE_EXCEEDED','params','sessionStatus$','Unknown\x20user','pushState','range','univer-mr-2\x20univer-flex\x20univer-text-xl','div','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','source','registerRefRange','triggerDblclick','fill','16hXnSNL','setAlpha','onLocalMutation','/universer-api/frontend/logs','forEach','stageInfo','reconnect','_initStatusListener','font','roomMembers$','session.will-retry','getTypeOfUnitAdded$','colorChannel1','_startCalculationLimit','debug','setItem','_docSkeleton','currentTheme$','m2Prime','OTHER_CLIENT_EDITING','_disabled','location','onTransformChange$','ACTIVE_UNIT_EVENT_CHANNEL','href','_updateURLWithCurrentState','cursorInfo','catch','colno','[LogService\x20Error]:\x20','_hovered','setActiveRange','_shapes','width','_onCursorUpdate','_uiPartsService','reason','random','saveTaskMap','_init','_handleEvent','symbol','1683513dNXsUE','collaboration-client.offline-data-not-saved','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collabStatus.synced','now','_getSessionTicket','getTypeOfUnitDisposed$','HEADER_MENU','exhaustSavingTask','UNIVER_SHEET','removeParam','_sheetSkeletonManagerService','startsWith','fillText','startColumn','runId','pluginName','round','wsSessionTicketUrl','7RhDFug','_heartbeatTimer','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_clearPolling','formula.calculation.started','_univerInstanceService','_dataLoaderService','_anchorDot','transformRemoteChangeset','delete','collab-text-range-','getOffsetConfig','_draw','getCurrent','key','evenodd','_docStateChangeManagerService','dirtyRanges','_cursorShapes','[Unhandled\x20Rejection]:\x20','_name','white','_releaseCalculationLimit','/universer-api/license/formula/limit/status','getMemberID','displayName','unitID','disableLocalCache','YUUMI_UNABLE_LOAD_URL','YUUMI_URL_COL_OUT_OF_RANGE','YUUMI_AI_RUN_FAILED','ENTITLE_DUP_SUBSCRIPTION','START_CALCULATION','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','fillStyle','collabStatus.offline','PAYMENT_CHANNEL_NOT_SUPPORT','_checkCalculationAvailable','NOT_COLLAB','getFocusedUnit','with','getAncestorScale','currentSkeleton$','selection','_docTransformStateCacheService','addObject','subscribeEvent','current','ENTITLE_CHAT_LIMIT_EXCEED','closePath','_themeService','dispose','INVALID_ARGUMENT','YUUMI_TABLE_NOT_FOUND_IN_UNIT','MOBILE_VERIFY_CODE_MISMATCH','_selfUnitIDs','_showGuardMessage','_colorIndex','\x20at\x20','UniverIcon','saveImage','_memberID','9173oPAORA','USER_IS_ANONYMOUS','UNAUTHENTICATED','getUnitId','pipe','_saveTaskMap','getRangePointData','split','collab-rect-range-','setTimeout','add','_startSheetCollabCursor','black','labelPosition','getformulaLimitStatusUrl','univer-flex\x20univer-items-center','ENTITLE_CAN_NOT_BUY_LOWER_OTP','RemoveRowCommandId','fillRule','_getAnchorBounding','AUTHORIZE_CODE_ILLEGAL','InsertRangeMoveDownCommandId','replaceState','drawWith','univerjs-icon\x20univerjs-icon-','_colorAssignService','invokeId','_removeCollabCursors','_handleLeaveEvent','replace','subscribe','toRgbString','push','INVITE_CODE_REQUIRED','formula.calculation.unable','ERROR_AGAIN','LICENSE_DISTRO_REJECTED','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','on-line-icon_clip0_910_349','size','show','_getMergeRange','lineTo','_setupBeforeClosingHandler','stack','collabCursorState$','_send','enableLocalCache','_assignedColors','text','_id','REDEMPTION_CODE_NOT_STARTED','[CollaborationDataLoaderController]','_initDependencies','next','_removeClearOtherTimer','_color','entries','_collaborationSessionService','addEventListener','InsertRowCommandId','onPointerEnter$','InsertRangeMoveRightCommandId','assign','selections','_docSyncEditingCollabCursorService','_backgroundColor','Warning','save','_injector','APPLY_REVISION_CONFILICT','getCollabEntity$','url(#off-line-icon_clip0_910_343)','MOBILE_HAS_BEEN_BOUND','redoState','_initCommandExecutedListener','YUUMI_ASYNCIO_CANCELLED','syncEditingCollabCursor','url(#on-line-icon_clip0_910_349)','svg','_clearOtherTimers','toString','7167378qZeTnt','filename','_getScale','_registerRenderDependencies','PERMISSION_DENIED','get','_entityInit$','findNodePositionByCharIndex','string','_document','_initEvent','6520705STjPib','idSuffix','YUUMI_RATE_OVER_LIMIT','Error','formula.calculation.waiting','EMAIL_HAS_BEEN_BOUND','_cursor','_refRangeService','collabStatus.notCollab','off-line-icon_clip0_910_343','then','_lastPointer','post','collabStatus.fetchMiss','has','getColorFromTheme','transformMutationsWithChangeset','getSheetId','DeleteRangeMoveUpCommandId','beginPath','unit','disposeUnit','getActiveSheet','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','purple.300','_collabCursorState$','LOGIN_TOKEN_PROCESSING_FAILED','urlChange$','socket$','lineno','_initUnhandledRejectionListener','22910200cHysTn','_initUserListener','_initWindowErrorListener','_scheduleSaving','OffLineIcon','_context','JOIN_ROOM_FAILED','collaboration.single-unit.warning','column','onRendered','_cursors','releaseFormulaLimitUrl','functionsExecutedState','getUnitStatus$','REDEMPTION_USER_REDEEM_TIMES_EXCEED','UPDATE_CURSOR','_updateCollabCursors','REDEMPTION_CODE_HAS_BEEN_CREATED','unshift','_renderManagerService','addObjects','clearInterval','updateOfflineData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','clipPath','_scene','RECT','application/json','_scheduleClearOtherTimer','newValue','M0\x200H16V16H0z','type','REDEMPTION_CODE_INACTIVE','FromArray','find','_drawAnchor','_commandService','setStateCache','_collaborationController','mutations','_doCreateSocket','height','session.connection-failed','startFormulaLimitUrl','72051biZGrc','cursorInfo$','max','OTHER_CLIENTS_EDITING','_taskIds','asObservable','bind','PENDING','setConfig','getCurrentRevOfUnit','/universer-api/license/formula/limit/done','doc.mutation.rich-text-editing','/universer-api/license/formula/limit/start','ENSURE_SNAPSHOT_EXECUTION','_docClipboardService','addClipboardHook','0\x200\x2016\x2016','OnLineIcon','getVpScrollXYInfoByPosToVp','NO_OTHER_CLIENTS_EDITING','history','NOT_FOUND','_setupSubUnitSync','USER_NOT_FOUND','_cachedData','disposeWithMe','_toggleOnline','ENTITLE_NEED_BILLING_ADDRESS','Failed','setShapeProps','collaboration.closeRoom','error','getRenderById','_handleHover','_currentUsage','_initCommandInterceptor','getItem','Success','_session','restore','getUnhiddenWorksheets','LOGIN_FAILED','loadUnit','set','ticket','_transformService','_updateSubUnitFromURLParams','deepClone','row','UNIVER_DOC','SNAPSHOT_HAS_BEEN_REMOVED','_updateLocalCursor','currentUsage','_lastResponseTimestamp','_entities','getSheetBySheetId','body','REDEMPTION_CODE_FULLY_REDEEMED','green.600','moveTo','event$','executeCommand','undoState','_maxFormulaLimit','url(#$1','getMember','DATA_SOURCE_TOO_LARGE','init','_hover','imageSourceType','getUnit','getValue','popstate','xlink:href','removeEventListener','none','currentColor','m1Prime','_collabCursorController','enableFrontendLog','_syncEditingCollabCursorService','FETCH_MISS','mask','CURRENT_STATUS_CANNOT_OPERATE','_roomMembers$','some','_configService','parse','_getFormulaLimitStatus','_handleJoinEvent','translate(.97)','_urlService','_render','registerComponent','_config','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_ensureSubject','_scheduleHeartbeat','limitInfo','dispose$','_checkAndWaitForCalculationPermission','APPLY_DUPLICATED','_localCacheService','textRanges','_collabSessionService','measureText','/run/','subunit','_createSocketURL','http://www.w3.org/2000/svg','skeleton','parseInt','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','status$','path','SOCKET_FAILED','from','_memberService','session.collaboration-timeout','_onCursorDelete','shift','collabStatus.syncing','ranges','_status$','[Window\x20Error]:\x20','APPLY_PERMISSION_DENIED','_logService','data','startRow','_initStatusComponent','attrs','_initResize','UNRECOGNIZED','bottom','CHANGESET_REVISION_CONFILICT','focused$','collab-client.tooltip.reconnect','EMAIL_VERIFY_CODE_MISMATCH','getCurrentUnitForType','_localStorageService','onPointerLeave$','map','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','executionId','registerRenderModule','LICENSE_IMPORT_SIZE_EXCEEDED','YUUMI_CONNECTOR_URL_NOT_FOUND','color','getDocRanges','_onRefRangeChange','flatMap','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','WECHAT_HAS_BEEN_BOUND','SUBMIT_CHANGESET_TIMEOUT','getSkeleton','_setFormulaLimitStatus','_saveCache','getConfig','INTERNAL_ERROR','unitId','runOnServer','USERS_LEAVE','createSocket','getCollabCursors$','children','REDEMPTION_INVALID_CODE','transformIMECache','[RemoteUniscriptService]:\x20no\x20focused\x20unit','LICENSE_MAX_UNITS_EXCEEDED'];_0x2e9d=function(){return _0x5db5ca;};return _0x2e9d();}function _0x4050(_0x33e86a,_0x16ba9d){const _0x2e9dfe=_0x2e9d();return _0x4050=function(_0x40508e,_0x2ab5fb){_0x40508e=_0x40508e-0x1da;let _0x5ddaca=_0x2e9dfe[_0x40508e];return _0x5ddaca;},_0x4050(_0x33e86a,_0x16ba9d);}function $t(_0x118b38){const _0x52e724=_0x1bab67;let _0x28f92c='';for(const _0x3fdf64 of _0x118b38){const {startOffset:_0x47acc0,endOffset:_0x42f66e,isActive:_0xcb52eb,rangeType:_0x157b0f,segmentId:_0x49bca8,segmentPage:_0x5b5d91}=_0x3fdf64;_0x28f92c[_0x52e724(0x30a)]&&(_0x28f92c+=','),_0x28f92c+=_0x47acc0+':'+_0x42f66e+':'+(_0xcb52eb?'1':'0')+':'+_0x157b0f+':'+_0x49bca8+':'+_0x5b5d91;}return _0x28f92c;}function Ai(_0x388dcd){const _0x3b422b=_0x1bab67,_0x11bc14=_0x388dcd[_0x3b422b(0x3ea)](','),_0x49b18e=[];for(const _0x53783c of _0x11bc14){const [_0x95358b,_0x25c31b,_0x305007,_0x47b6ba,_0x256109,_0x492a93]=_0x53783c[_0x3b422b(0x3ea)](':');_0x49b18e[_0x3b422b(0x403)]({'startOffset':Number(_0x95358b),'endOffset':Number(_0x25c31b),'collapsed':_0x95358b===_0x25c31b,'isActive':_0x305007==='1','rangeType':_0x47b6ba===_0x4c6b17[_0x3b422b(0x325)]?_0x4c6b17[_0x3b422b(0x325)]:_0x4c6b17[_0x3b422b(0x222)],'segmentId':typeof _0x256109==_0x3b422b(0x1e6)?String(_0x256109):'','segmentPage':Number(_0x492a93!=null?_0x492a93:-0x1)});}return _0x49b18e[_0x3b422b(0x289)](_0x5e7346=>_0x5e7346[_0x3b422b(0x2e5)])||(_0x49b18e[0x0][_0x3b422b(0x2e5)]=!0x0),_0x49b18e;}class ze extends _0xb8eb03{constructor(){const _0x1be5e7=_0x1bab67;super(...arguments),_(this,_0x1be5e7(0x202),new _0x42c9f3(null)),_(this,_0x1be5e7(0x410),this['_collabCursorState$'][_0x1be5e7(0x239)]());}[_0x1bab67(0x430)](_0x206d47){const _0x32380c=_0x1bab67,{unitID:_0x21aa26,memberID:_0x10a199,textRanges:_0x3f0b89}=_0x206d47,_0xa32e66=$t(_0x3f0b89);if(_0xa32e66==='')return;const _0xcbc59a={'unitID':_0x21aa26,'memberID':_0x10a199,'selection':_0xa32e66};this[_0x32380c(0x202)]['next'](_0xcbc59a);}}var Pi=Object[_0x1bab67(0x32a)],wi=(_0x4744d7,_0x41355d,_0x1862b7,_0x5b48cb)=>{const _0x186e56=_0x1bab67;for(var _0x48bddd=_0x5b48cb>0x1?void 0x0:_0x5b48cb?Pi(_0x41355d,_0x1862b7):_0x41355d,_0x4397ed=_0x4744d7[_0x186e56(0x30a)]-0x1,_0x178dce;_0x4397ed>=0x0;_0x4397ed--)(_0x178dce=_0x4744d7[_0x4397ed])&&(_0x48bddd=_0x178dce(_0x48bddd)||_0x48bddd);return _0x48bddd;},A=(_0x413cdf,_0x21cd16)=>(_0x542c94,_0x53c47d)=>_0x21cd16(_0x542c94,_0x53c47d,_0x413cdf);const yi=0x12c,$i=0x64;let xe=class extends _0xb8eb03{constructor(_0x2cc6ba,_0x97313f,_0x5ec303,_0x209907,_0x30de5a,_0x7ebdcf,_0x4ddff1,_0x21d128,_0x2bd437){const _0xc537d4=_0x1bab67;super(),_(this,_0xc537d4(0x352),!0x1),_(this,_0xc537d4(0x38f),!0x1),_(this,_0xc537d4(0x2f1),new _0x42c9f3(new Map())),_(this,_0xc537d4(0x235),this[_0xc537d4(0x2f1)][_0xc537d4(0x239)]()),_(this,_0xc537d4(0x288),new _0x42c9f3([])),_(this,_0xc537d4(0x371),this['_roomMembers$'][_0xc537d4(0x3e7)](_0x48e44d(yi))),_(this,'_updateLocalCursor',_0x3dabb7(_0xf92d62=>{const _0x5ba6c3=_0xc537d4,_0x36eefa={'eventID':_0x4ec7f0[_0x5ba6c3(0x217)],'data':{'unitID':this[_0x5ba6c3(0x3bf)],'memberID':this['_session']['getMemberID'](),'selection':$t(_0xf92d62)}};this[_0x5ba6c3(0x25a)][_0x5ba6c3(0x2fe)](_0x36eefa,this[_0x5ba6c3(0x3bf)]);},$i)),(this['unitID']=_0x2cc6ba,this[_0xc537d4(0x25a)]=_0x97313f,this['_injector']=_0x5ec303,this[_0xc537d4(0x3fc)]=_0x209907,this['_memberService']=_0x30de5a,this[_0xc537d4(0x284)]=_0x7ebdcf,this[_0xc537d4(0x261)]=_0x4ddff1,this['_univerInstanceService']=_0x21d128,this[_0xc537d4(0x22c)]=_0x2bd437);}get[_0x1bab67(0x382)](){const _0x30e132=_0x1bab67;return this[_0x30e132(0x2f1)][_0x30e132(0x27b)]();}get[_0x1bab67(0x332)](){const _0x48be76=_0x1bab67;return this[_0x48be76(0x288)][_0x48be76(0x27b)]();}['dispose'](){const _0x20ac2c=_0x1bab67;super[_0x20ac2c(0x3d8)](),this[_0x20ac2c(0x2f1)][_0x20ac2c(0x419)](new Map()),this[_0x20ac2c(0x2f1)][_0x20ac2c(0x34a)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x20ac2c(0x34a)]();}['init'](){const _0x209e6f=_0x1bab67;this[_0x209e6f(0x38f)]||(this['_init']=!0x0,this['_session'][_0x209e6f(0x35d)][_0x209e6f(0x3e7)](_0x4cbc42(this[_0x209e6f(0x297)]))[_0x209e6f(0x401)](_0x28ce6e=>{const _0x32d859=_0x209e6f;_0x28ce6e===_0x407a80[_0x32d859(0x33f)]?this[_0x32d859(0x24e)]():this[_0x32d859(0x2ff)]();}),this[_0x209e6f(0x25a)]['event$']['pipe'](_0x4cbc42(this[_0x209e6f(0x297)]))[_0x209e6f(0x401)](_0x38d642=>{const _0x4cd99e=_0x209e6f,_0x578474=_0x38d642['eventID'];_0x578474===_0x4ec7f0[_0x4cd99e(0x217)]&&this[_0x4cd99e(0x38a)](_0x38d642),_0x578474===_0x4ec7f0[_0x4cd99e(0x2d5)]&&this[_0x4cd99e(0x2ab)](_0x38d642);}),this['disposeWithMe'](this[_0x209e6f(0x22c)][_0x209e6f(0x358)](_0x4f7fa8=>{const _0x46a6c3=_0x209e6f,_0x4795bf=_0x4f7fa8['params'];_0x4795bf!=null&&this[_0x46a6c3(0x352)]&&_0x4f7fa8['id']===_0x5817ee['id']&&_0x4795bf['unitId']===this[_0x46a6c3(0x3bf)]&&_0x4795bf[_0x46a6c3(0x2ea)]===!0x1&&_0x4795bf['ranges']['length']>0x0&&this[_0x46a6c3(0x267)](_0x4795bf['ranges']);})),this[_0x209e6f(0x284)][_0x209e6f(0x410)]['pipe'](_0x4cbc42(this[_0x209e6f(0x297)]))[_0x209e6f(0x401)](_0x2cd82e=>{const _0x2579e8=_0x209e6f;if((_0x2cd82e==null?void 0x0:_0x2cd82e[_0x2579e8(0x3bf)])!==this['unitID'])return;const _0x24ac30={'eventID':_0x4ec7f0[_0x2579e8(0x217)],'data':_0x2cd82e};this[_0x2579e8(0x38a)](_0x24ac30);}),this['disposeWithMe'](this[_0x209e6f(0x22c)]['onCommandExecuted'](_0x1a984c=>{const _0x43c3fe=_0x209e6f;if(_0x1a984c[_0x43c3fe(0x35c)]==null)return;const _0x2b286c=_0x1a984c[_0x43c3fe(0x35c)];if(_0x1a984c['id']!==_0x435618['id']||_0x2b286c['unitId']!==this[_0x43c3fe(0x3bf)])return;const _0x57ee92={'id':_0x43c3fe(0x23f),'params':_0x2b286c},_0x53614f=this[_0x43c3fe(0x382)];for(const [_0x172403,_0x2ce6e2]of _0x53614f){const _0x526717={'id':_0x43c3fe(0x23f),'params':{'unitId':this[_0x43c3fe(0x3bf)],'actions':null,'textRanges':_0x2ce6e2[_0x43c3fe(0x2ae)]}},_0x41c021=this[_0x43c3fe(0x261)][_0x43c3fe(0x2ed)](_0x57ee92,_0x526717,!0x1);if(_0x571730(_0x41c021))throw _0x41c021[_0x43c3fe(0x253)];_0x53614f[_0x43c3fe(0x25f)](_0x172403,{..._0x2ce6e2,'ranges':_0x41c021[_0x43c3fe(0x37a)][_0x43c3fe(0x35c)]['textRanges']});}queueMicrotask(()=>{const _0x35780f=_0x43c3fe;this[_0x35780f(0x2f1)]['next'](_0x53614f);});})));}[_0x1bab67(0x38a)](_0x2ba568){const _0x4e02f1=_0x1bab67;var _0x1bbe31,_0x240616;const {memberID:_0x590621,selection:_0x1630af}=_0x2ba568['data'],_0x3ac75c=Ai(_0x1630af),_0x2348ae=(_0x240616=(_0x1bbe31=this[_0x4e02f1(0x2a9)]['getMember'](this[_0x4e02f1(0x3bf)],_0x590621))==null?void 0x0:_0x1bbe31[_0x4e02f1(0x303)])!=null?_0x240616:_0x4e02f1(0x35e),_0x4dcf64={'color':this[_0x4e02f1(0x3fc)][_0x4e02f1(0x308)](_0x590621),'name':_0x2348ae,'ranges':_0x3ac75c},_0x471202=this[_0x4e02f1(0x382)];_0x471202[_0x4e02f1(0x25f)](_0x590621,_0x4dcf64),this[_0x4e02f1(0x2f1)][_0x4e02f1(0x419)](_0x471202);}[_0x1bab67(0x2ab)](_0x5339ba){const _0x332e13=_0x1bab67,{memberID:_0x33e030}=_0x5339ba[_0x332e13(0x2b3)],_0x112f20=this[_0x332e13(0x382)];_0x112f20['delete'](_0x33e030),this[_0x332e13(0x2f1)]['next'](_0x112f20);}['_toggleOnline'](){const _0x32ef7b=_0x1bab67;var _0x2673d0;if(this[_0x32ef7b(0x352)]=!0x0,((_0x2673d0=this[_0x32ef7b(0x3aa)][_0x32ef7b(0x3cc)]())==null?void 0x0:_0x2673d0[_0x32ef7b(0x3e6)]())!==this[_0x32ef7b(0x3bf)])return;const _0xecd3f1=this[_0x32ef7b(0x428)][_0x32ef7b(0x1e3)](_0xd5f03f)[_0x32ef7b(0x2c8)]();Array['isArray'](_0xecd3f1)&&_0xecd3f1[_0x32ef7b(0x30a)]>0x0&&this[_0x32ef7b(0x267)](_0xecd3f1);}[_0x1bab67(0x2ff)](){const _0x389f77=_0x1bab67;this[_0x389f77(0x352)]=!0x1;}};xe=wi([A(0x2,_0x5a79e2(_0x41a636)),A(0x3,_0x5a79e2(Ke)),A(0x4,_0x5a79e2(_0x4b1a14)),A(0x5,_0x5a79e2(ze)),A(0x6,_0x1b61b0),A(0x7,_0x3b2157),A(0x8,_0x34fc9a)],xe);var xi=Object[_0x1bab67(0x32a)],Bi=(_0xac4c3,_0x32e5cf,_0x10bf03,_0x52eb7f)=>{const _0xfde1e3=_0x1bab67;for(var _0x25811b=_0x52eb7f>0x1?void 0x0:_0x52eb7f?xi(_0x32e5cf,_0x10bf03):_0x32e5cf,_0x30e0c6=_0xac4c3[_0xfde1e3(0x30a)]-0x1,_0xc79a2;_0x30e0c6>=0x0;_0x30e0c6--)(_0xc79a2=_0xac4c3[_0x30e0c6])&&(_0x25811b=_0xc79a2(_0x25811b)||_0x25811b);return _0x25811b;},B=(_0x2738ba,_0x193353)=>(_0x44e12f,_0x364eb2)=>_0x193353(_0x44e12f,_0x364eb2,_0x2738ba);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x154648=[],_0x146645=!0x1;return _0x35e7b3=>{const _0x4109c4=_0x4050;_0x154648[_0x4109c4(0x403)](_0x35e7b3),_0x146645||(_0x146645=!0x0,setTimeout(()=>{_0x154648['forEach'](_0x303db8=>_0x303db8()),_0x154648=[],_0x146645=!0x1;}));};};let Be=class extends _0xb8eb03{constructor(_0x332386,_0x58c3f7,_0x51df86,_0x363c0b,_0xe23248,_0xa8011b,_0x481e6e,_0x1ecd3b){const _0x1476c0=_0x1bab67;super(),_(this,_0x1476c0(0x352),!0x1),_(this,_0x1476c0(0x38f),!0x1),_(this,'_cursorInfo$',new _0x42c9f3(new Map())),_(this,_0x1476c0(0x235),this['_cursorInfo$']['asObservable']()),_(this,_0x1476c0(0x288),new _0x42c9f3([])),_(this,'roomMembers$',this[_0x1476c0(0x288)][_0x1476c0(0x3e7)](_0x48e44d(Fi))),_(this,'_updateLocalCursor',_0x3dabb7((_0xa2c941,_0x46eff0)=>{const _0x49ffe6=_0x1476c0,_0x54f159={'eventID':_0x4ec7f0[_0x49ffe6(0x217)],'data':{'unitID':this[_0x49ffe6(0x3bf)],'memberID':this[_0x49ffe6(0x25a)][_0x49ffe6(0x3bd)](),'selection':_0x44242a(_0xa2c941,_0x46eff0[_0x49ffe6(0x360)])}};this[_0x49ffe6(0x25a)][_0x49ffe6(0x2fe)](_0x54f159,this['unitID']);},ki)),(this[_0x1476c0(0x3bf)]=_0x332386,this[_0x1476c0(0x25a)]=_0x58c3f7,this['_injector']=_0x51df86,this[_0x1476c0(0x3fc)]=_0x363c0b,this['_memberService']=_0xe23248,this[_0x1476c0(0x3aa)]=_0xa8011b,this[_0x1476c0(0x22c)]=_0x481e6e,this[_0x1476c0(0x1f0)]=_0x1ecd3b);}get[_0x1bab67(0x382)](){const _0x3a5cef=_0x1bab67;return this[_0x3a5cef(0x2f1)][_0x3a5cef(0x27b)]();}get[_0x1bab67(0x332)](){const _0x29e0eb=_0x1bab67;return this[_0x29e0eb(0x288)][_0x29e0eb(0x27b)]();}[_0x1bab67(0x3d8)](){const _0xd12a52=_0x1bab67;super[_0xd12a52(0x3d8)](),this['_cursorInfo$'][_0xd12a52(0x419)](new Map()),this['_cursorInfo$'][_0xd12a52(0x34a)](),this[_0xd12a52(0x288)]['next']([]),this['_roomMembers$']['complete']();}[_0x1bab67(0x277)](){const _0x20c187=_0x1bab67;this[_0x20c187(0x38f)]||(this[_0x20c187(0x38f)]=!0x0,this[_0x20c187(0x25a)][_0x20c187(0x35d)]['pipe'](_0x4cbc42(this[_0x20c187(0x297)]))[_0x20c187(0x401)](_0x3d331d=>{const _0x302f24=_0x20c187;_0x3d331d===_0x407a80[_0x302f24(0x33f)]?this[_0x302f24(0x24e)]():this['_toggleOffline']();}),this[_0x20c187(0x25a)][_0x20c187(0x270)]['pipe'](_0x4cbc42(this['dispose$']))[_0x20c187(0x401)](_0x31375e=>{const _0x419f04=_0x20c187,_0x4880c1=_0x31375e[_0x419f04(0x300)];_0x4880c1===_0x4ec7f0[_0x419f04(0x217)]&&this[_0x419f04(0x38a)](_0x31375e),_0x4880c1===_0x4ec7f0[_0x419f04(0x2d5)]&&this['_onCursorDelete'](_0x31375e);}),this[_0x20c187(0x2c9)](),this[_0x20c187(0x24d)](this[_0x20c187(0x22c)][_0x20c187(0x358)](_0x6715af=>{const _0x3dc817=_0x20c187;if(this[_0x3dc817(0x352)]&&_0x6715af['id']===_0x22809a['id']&&_0x6715af['params'][_0x3dc817(0x2d3)]===this['unitID']){const _0x54b755=_0x6715af['params'];this[_0x3dc817(0x267)](_0x54b755['subUnitId'],_0x54b755[_0x3dc817(0x423)][0x0]);}})));}[_0x1bab67(0x38a)](_0x1950f6){const _0xf67bce=_0x1bab67;var _0x1cb8df,_0x324fb2;const {memberID:_0x50683e,selection:_0x4ac511}=_0x1950f6[_0xf67bce(0x2b3)],{sheetName:_0x25d928,range:_0x41de96}=_0x374d74(_0x4ac511),_0x1f7c9e={'name':(_0x324fb2=(_0x1cb8df=this[_0xf67bce(0x2a9)][_0xf67bce(0x275)](this[_0xf67bce(0x3bf)],_0x50683e))==null?void 0x0:_0x1cb8df[_0xf67bce(0x303)])!=null?_0x324fb2:'Unknown\x20user','range':this['_getMergeRange'](_0x25d928,_0x41de96),'sheetID':_0x25d928,'color':this[_0xf67bce(0x3fc)][_0xf67bce(0x308)](_0x50683e),'selection':_0x4ac511},_0x46f238=this[_0xf67bce(0x382)];_0x46f238['set'](_0x50683e,_0x1f7c9e),this[_0xf67bce(0x2f1)]['next'](_0x46f238);}[_0x1bab67(0x2ab)](_0x28fa8d){const _0x18d9ca=_0x1bab67,{memberID:_0x48726b}=_0x28fa8d[_0x18d9ca(0x2b3)],_0x5a372e=this['cursorInfo'];_0x5a372e[_0x18d9ca(0x3ae)](_0x48726b),this[_0x18d9ca(0x2f1)][_0x18d9ca(0x419)](_0x5a372e);}[_0x1bab67(0x40c)](_0x3c2bed,_0x330147){const _0x2d1e6e=_0x1bab67;var _0x1890e2,_0xfc31d9;const _0x817d41=(_0xfc31d9=(_0x1890e2=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x2d1e6e(0x3bf)]))==null?void 0x0:_0x1890e2[_0x2d1e6e(0x26b)](_0x3c2bed))==null?void 0x0:_0xfc31d9['getMergeData']();return(_0x817d41==null?void 0x0:_0x817d41[_0x2d1e6e(0x22a)](_0x33c289=>_0x3f41b8['contains'](_0x33c289,_0x330147)))||_0x330147;}[_0x1bab67(0x2c9)](){const _0x268731=_0x1bab67,_0x816bf0=new _0x59db6f(),_0x25db48=Hi(),_0x361251=()=>{const _0x3054b1=_0x4050;_0x816bf0['dispose']();const _0x1d67db=(_0x473132,_0x119c72,_0x33fe0c,_0x48d8e5)=>{const _0x2bb777=_0x4050;let _0x52c7f6=[];switch(_0x473132['id']){case _0x59c1c3[_0x2bb777(0x2eb)]:{_0x52c7f6=_0x25bf2f(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x1fb)]:{_0x52c7f6=_0x54b924(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x2dd)]:{_0x52c7f6=_0x922e73(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x3f8)]:{_0x52c7f6=_0x5b3cb2(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x421)]:{_0x52c7f6=_0x2041ff(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x41f)]:{_0x52c7f6=_0x43caa4(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x309)]:{_0x52c7f6=_0x2e1057(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x31f)]:{_0x52c7f6=_0x3c8f15(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x3f4)]:{_0x52c7f6=_0x581694(_0x473132,_0x48d8e5);break;}}const _0x15e98e=_0x57870a(_0x52c7f6,_0x48d8e5),_0x237d32=this['cursorInfo']['get'](_0x119c72);if(_0x237d32&&_0x15e98e){const _0x5b21eb={..._0x237d32,'range':_0x15e98e};this[_0x2bb777(0x382)]['set'](_0x119c72,_0x5b21eb),_0x25db48(()=>{const _0x4ba6e7=_0x2bb777,_0x2f5d86=this['_refRangeService'][_0x4ba6e7(0x365)](_0x15e98e,_0x4697e0=>(_0x2f5d86[_0x4ba6e7(0x3d8)](),_0x1d67db(_0x4697e0,_0x119c72,_0x33fe0c,_0x15e98e)));_0x816bf0['add'](_0x2f5d86);});}return{'redos':[],'undos':[]};};this[_0x3054b1(0x382)][_0x3054b1(0x36c)]((_0x910bd8,_0x24506b)=>{const _0x4a14b5=_0x3054b1,{range:_0x475436,sheetID:_0x5c44c0}=_0x910bd8,_0x58c18c=this[_0x4a14b5(0x1f0)]['registerRefRange'](_0x475436,_0x39a82f=>(_0x58c18c[_0x4a14b5(0x3d8)](),_0x1d67db(_0x39a82f,_0x24506b,_0x5c44c0,_0x475436)));_0x816bf0[_0x4a14b5(0x3ed)](_0x58c18c);});};this[_0x268731(0x24d)](_0x2b2711(this[_0x268731(0x2f1)][_0x268731(0x401)](()=>{_0x361251();})));}['_toggleOnline'](){const _0x4def66=_0x1bab67;var _0x5edce7,_0x454ffd;if(this[_0x4def66(0x352)]=!0x0,((_0x5edce7=this[_0x4def66(0x3aa)][_0x4def66(0x3cc)]())==null?void 0x0:_0x5edce7[_0x4def66(0x3e6)]())!==this[_0x4def66(0x3bf)])return;const _0x13446e=(_0x454ffd=this[_0x4def66(0x428)][_0x4def66(0x1e3)](_0x4ae7c3)[_0x4def66(0x2f9)]())==null?void 0x0:_0x454ffd[0x0],_0x53becd=this['_univerInstanceService'][_0x4def66(0x2be)](_0x547011[_0x4def66(0x39b)])['getActiveSheet']();_0x13446e&&_0x53becd&&this[_0x4def66(0x267)](_0x53becd[_0x4def66(0x1fa)](),_0x13446e);}[_0x1bab67(0x2ff)](){const _0x232326=_0x1bab67;this[_0x232326(0x352)]=!0x1;}};Be=Bi([B(0x2,_0x5a79e2(_0x41a636)),B(0x3,_0x5a79e2(Ke)),B(0x4,_0x5a79e2(_0x4b1a14)),B(0x5,_0x3b2157),B(0x6,_0x34fc9a),B(0x7,_0x5a79e2(_0x474d9d))],Be);var Yi=Object[_0x1bab67(0x32a)],Wi=(_0x3e0a85,_0x5189a6,_0x3ff1db,_0x51c07d)=>{const _0x1066eb=_0x1bab67;for(var _0x55330e=_0x51c07d>0x1?void 0x0:_0x51c07d?Yi(_0x5189a6,_0x3ff1db):_0x5189a6,_0x644fcb=_0x3e0a85[_0x1066eb(0x30a)]-0x1,_0x393ab2;_0x644fcb>=0x0;_0x644fcb--)(_0x393ab2=_0x3e0a85[_0x644fcb])&&(_0x55330e=_0x393ab2(_0x55330e)||_0x55330e);return _0x55330e;},Ce=(_0x223de9,_0x24b3f3)=>(_0x56355c,_0xee9af2)=>_0x24b3f3(_0x56355c,_0xee9af2,_0x223de9);let H=class extends _0xb8eb03{constructor(_0x7bc3a4,_0x4331ed,_0x1f8c29){const _0x4c6b36=_0x1bab67;super(),_(this,'_entities',new Map()),_(this,_0x4c6b36(0x1e4),new _0xbe2b9d()),(this[_0x4c6b36(0x3aa)]=_0x7bc3a4,this[_0x4c6b36(0x428)]=_0x4331ed,this[_0x4c6b36(0x29c)]=_0x1f8c29,this[_0x4c6b36(0x38f)]());}['dispose'](){const _0x1a8ab7=_0x1bab67;super[_0x1a8ab7(0x3d8)](),this[_0x1a8ab7(0x1e4)][_0x1a8ab7(0x34a)](),this[_0x1a8ab7(0x26a)][_0x1a8ab7(0x36c)](_0x1f977f=>_0x1f977f[_0x1a8ab7(0x3d8)]());}['getCollabCursors$'](_0x2bf058){const _0x2c97f6=_0x1bab67;return this[_0x2c97f6(0x26a)][_0x2c97f6(0x1f7)](_0x2bf058)?this['_entities'][_0x2c97f6(0x1e3)](_0x2bf058)[_0x2c97f6(0x235)]:this['_entityInit$'][_0x2c97f6(0x3e7)](_0x22f5b1(_0xfab95=>_0xfab95[_0x2c97f6(0x3bf)]===_0x2bf058),_0x404b1e(_0x57cc0d=>_0x57cc0d['cursorInfo$']));}[_0x1bab67(0x38f)](){const _0x429eaf=_0x1bab67;this[_0x429eaf(0x3aa)][_0x429eaf(0x373)](_0x547011[_0x429eaf(0x39b)])[_0x429eaf(0x3e7)](_0x4cbc42(this['dispose$']))[_0x429eaf(0x401)](async _0x1cfdc6=>{const _0x4f9742=_0x429eaf,_0x38d183=_0x1cfdc6[_0x4f9742(0x3e6)](),_0x252792=await this[_0x4f9742(0x3ee)](_0x38d183);this[_0x4f9742(0x1e4)][_0x4f9742(0x419)](_0x252792),this[_0x4f9742(0x26a)][_0x4f9742(0x25f)](_0x38d183,_0x252792);}),this[_0x429eaf(0x3aa)]['getTypeOfUnitAdded$'](_0x547011['UNIVER_DOC'])[_0x429eaf(0x3e7)](_0x4cbc42(this[_0x429eaf(0x297)]))[_0x429eaf(0x3e7)](_0x22f5b1(_0x2e11f6=>!_0x2e11f6['getUnitId']()[_0x429eaf(0x39e)]('__')))['subscribe'](async _0x1aaea4=>{const _0xe1adc3=_0x429eaf,_0x55cc06=_0x1aaea4[_0xe1adc3(0x3e6)](),_0x423f68=await this['_startDocCollabCursor'](_0x55cc06);this[_0xe1adc3(0x1e4)][_0xe1adc3(0x419)](_0x423f68),this[_0xe1adc3(0x26a)][_0xe1adc3(0x25f)](_0x55cc06,_0x423f68);}),_0x33fea5(this['_univerInstanceService'][_0x429eaf(0x398)](_0x547011[_0x429eaf(0x265)]),this['_univerInstanceService'][_0x429eaf(0x398)](_0x547011['UNIVER_SHEET']))[_0x429eaf(0x3e7)](_0x4cbc42(this[_0x429eaf(0x297)]))[_0x429eaf(0x401)](_0x6d11e5=>{const _0x48a371=_0x429eaf,_0x2091bf=_0x6d11e5[_0x48a371(0x3e6)](),_0x4b452f=this[_0x48a371(0x26a)]['get'](_0x2091bf);_0x4b452f&&(_0x4b452f[_0x48a371(0x3d8)](),this[_0x48a371(0x26a)][_0x48a371(0x3ae)](_0x2091bf));});}async[_0x1bab67(0x3ee)](_0x4084cb){const _0x2e4336=_0x1bab67,_0x424803=await this[_0x2e4336(0x29c)][_0x2e4336(0x312)](_0x4084cb),_0x3ca671=this[_0x2e4336(0x428)]['createInstance'](Be,_0x4084cb,_0x424803);return _0x3ca671[_0x2e4336(0x277)](),_0x3ca671;}async['_startDocCollabCursor'](_0x556ce0){const _0x1a6d11=_0x1bab67,_0xa67d9f=await this[_0x1a6d11(0x29c)][_0x1a6d11(0x312)](_0x556ce0),_0x485a3e=this[_0x1a6d11(0x428)]['createInstance'](xe,_0x556ce0,_0xa67d9f);return _0x485a3e[_0x1a6d11(0x277)](),_0x485a3e;}};H=Wi([Ce(0x0,_0x3b2157),Ce(0x1,_0x5a79e2(_0x41a636)),Ce(0x2,_0x5a79e2(_0x5b8361))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x2ed9dc,_0x22b7c2){const _0x16c6c4=_0x1bab67;let {radius:_0x199139,width:_0x9c5e95,height:_0x2b88cb}=_0x22b7c2;_0x199139=_0x199139!=null?_0x199139:0x0,_0x9c5e95=_0x9c5e95!=null?_0x9c5e95:0x1e,_0x2b88cb=_0x2b88cb!=null?_0x2b88cb:0x1e;let _0x30faaa=0x0,_0x418bac=0x0,_0x3b7346=0x0;_0x30faaa=_0x418bac=_0x3b7346=Math[_0x16c6c4(0x2fd)](_0x199139,_0x9c5e95/0x2,_0x2b88cb/0x2),_0x2ed9dc[_0x16c6c4(0x1fc)](),_0x2ed9dc[_0x16c6c4(0x26f)](_0x30faaa,0x0),_0x2ed9dc['lineTo'](_0x9c5e95-_0x418bac,0x0),_0x2ed9dc['arc'](_0x9c5e95-_0x418bac,_0x418bac,_0x418bac,Math['PI']*0x3/0x2,0x0,!0x1),_0x2ed9dc[_0x16c6c4(0x40d)](_0x9c5e95,_0x2b88cb-_0x3b7346),_0x2ed9dc[_0x16c6c4(0x2e8)](_0x9c5e95-_0x3b7346,_0x2b88cb-_0x3b7346,_0x3b7346,0x0,Math['PI']/0x2,!0x1),_0x2ed9dc[_0x16c6c4(0x40d)](0x0,_0x2b88cb),_0x2ed9dc['lineTo'](0x0,_0x30faaa),_0x2ed9dc['arc'](_0x30faaa,_0x30faaa,_0x30faaa,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2ed9dc[_0x16c6c4(0x3d6)](),_0x22b7c2['fill']&&(_0x2ed9dc[_0x16c6c4(0x427)](),_0x2ed9dc[_0x16c6c4(0x3c7)]=_0x22b7c2[_0x16c6c4(0x367)],_0x22b7c2[_0x16c6c4(0x3f5)]===_0x16c6c4(0x3b4)?_0x2ed9dc[_0x16c6c4(0x367)](_0x16c6c4(0x3b4)):_0x2ed9dc[_0x16c6c4(0x367)](),_0x2ed9dc['restore']());}class Ee extends _0x2d6f87{constructor(_0x37dc14,_0x1665ac){const _0x410001=_0x1bab67;super(_0x37dc14,_0x1665ac),_(this,_0x410001(0x2c7)),_(this,_0x410001(0x414)),(this[_0x410001(0x2c7)]=_0x1665ac==null?void 0x0:_0x1665ac['color'],this[_0x410001(0x414)]=_0x1665ac==null?void 0x0:_0x1665ac[_0x410001(0x414)]);}static[_0x1bab67(0x3fa)](_0x2f4077,_0x36b00d){const _0x36524c=_0x1bab67,{text:_0x15bf5c,color:_0x193dca}=_0x36b00d;_0x2f4077[_0x36524c(0x427)](),_0x2f4077[_0x36524c(0x370)]=_0x36524c(0x200);const _0xf8a9dd=_0x2f4077['measureText'](_0x15bf5c)[_0x36524c(0x389)],_0x16d201=Math[_0x36524c(0x2fd)](_0xf8a9dd+0x2*Re,at);Vi(_0x2f4077,{'height':Q,'radius':0x4,'width':_0x16d201,'fill':_0x193dca}),_0x2f4077[_0x36524c(0x3c7)]='#FFF';const _0x1bb07f=Re,_0x5dc167=Q-ji,_0x3b7c0d=at-0x2*Re;if(_0xf8a9dd>_0x3b7c0d){let _0x66d3f6='',_0x5cca07=0x0;for(const _0x286f33 of _0x15bf5c){const _0x1b70bf=_0x2f4077[_0x36524c(0x29d)](_0x286f33)[_0x36524c(0x389)];if(_0x5cca07+_0x1b70bf<=_0x3b7c0d-_0x2f4077[_0x36524c(0x29d)](_0x36524c(0x2ee))[_0x36524c(0x389)])_0x66d3f6+=_0x286f33,_0x5cca07+=_0x1b70bf;else{_0x66d3f6+=_0x36524c(0x2ee);break;}}_0x2f4077[_0x36524c(0x39f)](_0x66d3f6,_0x1bb07f,_0x5dc167);}else _0x2f4077[_0x36524c(0x39f)](_0x15bf5c,_0x1bb07f,_0x5dc167);_0x2f4077[_0x36524c(0x25b)]();}[_0x1bab67(0x3b1)](_0x3ffa06){const _0x2f4ba7=_0x1bab67;Ee[_0x2f4ba7(0x3fa)](_0x3ffa06,this);}}const De=_0x1bab67(0x316),Xi=_0x1bab67(0x3af),Gi=_0x1bab67(0x3eb),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x34246f,_0x28e6af,_0x590b1e,_0xc2fae8){const _0x5509ba=_0x1bab67;_(this,'_shapes',[]),_(this,_0x5509ba(0x347),null),_(this,_0x5509ba(0x2f6),null),_(this,_0x5509ba(0x3ac),null),_(this,_0x5509ba(0x310),null),_(this,_0x5509ba(0x302),null),(this[_0x5509ba(0x1ef)]=_0x34246f,this['_scene']=_0x28e6af,this[_0x5509ba(0x378)]=_0x590b1e,this[_0x5509ba(0x1e7)]=_0xc2fae8,this[_0x5509ba(0x290)]());}set[_0x1bab67(0x278)](_0x35123a){const _0x55b355=_0x1bab67;_0x35123a?(this['_anchorDot']&&this[_0x55b355(0x3ac)]['hide'](),this['_textBubble']&&this['_textBubble']['show']()):(this['_anchorDot']&&this[_0x55b355(0x3ac)][_0x55b355(0x40b)](),this[_0x55b355(0x2f6)]&&this[_0x55b355(0x2f6)]['hide']());}[_0x1bab67(0x3d8)](){const _0x5345ed=_0x1bab67;for(const _0x111cd9 of this['_shapes'])_0x111cd9[_0x5345ed(0x3d8)]();this[_0x5345ed(0x2f6)]&&this[_0x5345ed(0x2f6)][_0x5345ed(0x3d8)](),this[_0x5345ed(0x3ac)]&&this[_0x5345ed(0x3ac)][_0x5345ed(0x3d8)](),this[_0x5345ed(0x347)]&&this[_0x5345ed(0x347)][_0x5345ed(0x3d8)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}['_render'](){const _0x57d489=_0x1bab67;var _0x351098;const {_docSkeleton:_0x50e0ac,_document:_0xe3e00e}=this,{color:_0x195c9b,name:_0x30b5f1,ranges:_0xbb3eee}=this[_0x57d489(0x1ef)],_0x188535=_0xe3e00e[_0x57d489(0x3b0)](),{docsLeft:_0x485e45,docsTop:_0x4524cd}=_0x188535,_0xc63472=new _0x267305(_0x188535,_0x50e0ac);for(const {startOffset:_0x5c5174,endOffset:_0x296b02,rangeType:_0x3fdc38,segmentId:_0x4b5d57,segmentPage:_0x20b7ab,collapsed:_0x2da7c7,isActive:_0x9e50f4}of _0xbb3eee){const _0x4767b5=_0x50e0ac[_0x57d489(0x1e5)](_0x5c5174,!0x0,_0x4b5d57,_0x20b7ab);let _0x5dfc1f=_0x50e0ac[_0x57d489(0x1e5)](_0x296b02,!0x0,_0x4b5d57,_0x20b7ab);if(_0x5dfc1f==null&&(_0x5dfc1f=_0x50e0ac[_0x57d489(0x1e5)](_0x296b02-0x1,!0x1,_0x4b5d57,_0x20b7ab)),_0x9e50f4){const {contentBoxPointGroup:_0x3e7209}=_0xc63472[_0x57d489(0x3e9)](_0x5dfc1f,_0x5dfc1f);if(_0x3e7209[_0x57d489(0x30a)]===0x0)continue;this['_drawAnchor'](_0x195c9b,_0x3e7209,_0x485e45,_0x4524cd,_0x30b5f1),this[_0x57d489(0x302)]=this[_0x57d489(0x255)]();}if(_0x4767b5&&_0x5dfc1f){if(_0x3fdc38===_0x4c6b17[_0x57d489(0x222)]){const _0xdc662e=new _0x48404a(_0x188535,_0x50e0ac),{pointGroup:_0x4a0b48}=(_0x351098=_0xdc662e['getRangePointData'](_0x4767b5,_0x5dfc1f))!=null?_0x351098:{};if(_0x4a0b48==null||_0x4a0b48[_0x57d489(0x30a)]===0x0)continue;this['_drawRectRange'](_0x195c9b,_0x4a0b48,_0x485e45,_0x4524cd);}else{if(!_0x2da7c7){const {borderBoxPointGroup:_0x15fe20}=_0xc63472[_0x57d489(0x3e9)](_0x4767b5,_0x5dfc1f);if(_0x15fe20[_0x57d489(0x30a)]===0x0)continue;this['_drawTextRange'](_0x195c9b,_0x15fe20,_0x485e45,_0x4524cd);}}}}}[_0x1bab67(0x22b)](_0x1a489b,_0x1b4455,_0x438e56,_0x440686,_0x4a10a1){const _0x1861ce=_0x1bab67,_0x36b0b0=this[_0x1861ce(0x3f6)](_0x1b4455),{left:_0x442971,top:_0x5e9aa0,height:_0x596658}=_0x36b0b0,_0x44fe62=this['_getScale'](),_0x14dd35=zi/_0x44fe62,_0x1d7760=new _0x17d777(De+_0x2679ea(z),{'left':_0x442971+_0x438e56-_0x14dd35,'top':_0x5e9aa0+_0x440686,'height':_0x596658,'width':Ki,'fill':_0x1a489b||_0x59e896(_0xee8009[_0x1861ce(0x3ef)],0x0),'strokeWidth':_0x14dd35,'stroke':Ji,'evented':!0x0});this[_0x1861ce(0x347)]=_0x1d7760,this[_0x1861ce(0x221)][_0x1861ce(0x3d2)](_0x1d7760,_0x4adf9c);const _0x12804f=new _0x17d777(De+_0x2679ea(z),{'left':_0x442971+_0x438e56-_0x14dd35,'top':_0x5e9aa0+_0x440686-be/0x2,'height':be,'width':be,'fill':_0x1a489b||_0x59e896(_0xee8009['black'],0x0),'strokeWidth':0x0,'stroke':_0x1a489b||_0x59e896(_0xee8009['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x12804f,this[_0x1861ce(0x221)][_0x1861ce(0x3d2)](_0x12804f,_0x4adf9c);const _0x450c14=new Ee(De+_0x2679ea(z),{'left':_0x442971+_0x438e56-_0x14dd35,'top':_0x5e9aa0+_0x440686-Q,'text':_0x4a10a1,'color':_0x1a489b});this['_textBubble']=_0x450c14,this[_0x1861ce(0x221)][_0x1861ce(0x3d2)](_0x450c14,_0x4adf9c),this['_hover']=!0x1;}[_0x1bab67(0x255)](){const _0x132ba5=_0x1bab67,_0x597758=this['_anchor'][_0x132ba5(0x420)][_0x132ba5(0x3d3)](()=>{const _0x511e8f=_0x132ba5;this[_0x511e8f(0x278)]=!0x0;}),_0x11ffcf=this[_0x132ba5(0x347)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x58c0ff=_0x132ba5;this[_0x58c0ff(0x310)]&&clearTimeout(this[_0x58c0ff(0x310)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0xc9ed=_0x132ba5;_0x597758[_0xc9ed(0x356)](),_0x11ffcf[_0xc9ed(0x356)]();};}['_drawTextRange'](_0x5991de,_0x5476a1,_0x420da3,_0x1fdcf7){const _0x431a17=_0x1bab67,_0x5d7175=new _0x55dc10(_0x5991de)[_0x431a17(0x369)](0.2)[_0x431a17(0x402)](),_0x1cf60b=new _0x232ebe(Xi+_0x2679ea(z),{'pointsGroup':_0x5476a1,'fill':_0x5d7175||_0x59e896(_0xee8009[_0x431a17(0x3ef)],0.2),'left':_0x420da3,'top':_0x1fdcf7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x431a17(0x388)][_0x431a17(0x403)](_0x1cf60b),this[_0x431a17(0x221)][_0x431a17(0x3d2)](_0x1cf60b,_0x4adf9c);}[_0x1bab67(0x327)](_0x135bdc,_0x1d0d00,_0xb0ad51,_0x305280){const _0x1a2a38=_0x1bab67,_0xafb77a=new _0x55dc10(_0x135bdc)['setAlpha'](0.2)['toRgbString'](),_0x154bcb=new _0x232ebe(Gi+_0x2679ea(z),{'pointsGroup':_0x1d0d00,'fill':_0xafb77a||_0x59e896(_0xee8009['black'],0.2),'left':_0xb0ad51,'top':_0x305280,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1a2a38(0x388)]['push'](_0x154bcb),this[_0x1a2a38(0x221)][_0x1a2a38(0x3d2)](_0x154bcb,_0x4adf9c);}[_0x1bab67(0x3f6)](_0x26854a){const _0x545479=_0x26854a[0x0],_0x512448=_0x545479[0x0],_0x2c0612=_0x545479[0x2],{x:_0x4365ac,y:_0xbf9f94}=_0x512448,{x:_0x2f93ce,y:_0x33004b}=_0x2c0612;return{'left':_0x4365ac,'top':_0xbf9f94,'width':_0x2f93ce-_0x4365ac,'height':_0x33004b-_0xbf9f94};}[_0x1bab67(0x1e0)](){const _0x44d4ae=_0x1bab67,{scaleX:_0xa75073,scaleY:_0xae521e}=this[_0x44d4ae(0x221)][_0x44d4ae(0x3ce)]();return Math[_0x44d4ae(0x236)](_0xa75073,_0xae521e);}}var Zi=Object[_0x1bab67(0x32a)],Qi=(_0x14e6a2,_0x449847,_0x12098e,_0x32be15)=>{const _0xf9e188=_0x1bab67;for(var _0x3e7c48=_0x32be15>0x1?void 0x0:_0x32be15?Zi(_0x449847,_0x12098e):_0x449847,_0x2b85ec=_0x14e6a2[_0xf9e188(0x30a)]-0x1,_0x406600;_0x2b85ec>=0x0;_0x2b85ec--)(_0x406600=_0x14e6a2[_0x2b85ec])&&(_0x3e7c48=_0x406600(_0x3e7c48)||_0x3e7c48);return _0x3e7c48;},ie=(_0x13f61c,_0x30a4a4)=>(_0x49dfd0,_0x3cdcfe)=>_0x30a4a4(_0x49dfd0,_0x3cdcfe,_0x13f61c);let Fe=class extends _0xb8eb03{constructor(_0x4c59c7,_0xbcc34c,_0x202c7d,_0x4ab9a0,_0x58584f){const _0x5040e9=_0x1bab67;super(),_(this,_0x5040e9(0x3b7),[]),_(this,_0x5040e9(0x212),[]),(this[_0x5040e9(0x20d)]=_0x4c59c7,this[_0x5040e9(0x2e4)]=_0xbcc34c,this[_0x5040e9(0x282)]=_0x202c7d,this[_0x5040e9(0x22c)]=_0x4ab9a0,this[_0x5040e9(0x3d7)]=_0x58584f,this['_init']());}[_0x1bab67(0x38f)](){const _0xa55c62=_0x1bab67,_0x3e3552=this[_0xa55c62(0x20d)][_0xa55c62(0x2d3)],_0x20e7e3=this[_0xa55c62(0x2e4)];this['disposeWithMe'](_0x188334([this[_0xa55c62(0x282)][_0xa55c62(0x2d7)](_0x3e3552),this[_0xa55c62(0x3d7)][_0xa55c62(0x379)]])[_0xa55c62(0x3e7)](_0xa7eefa(([_0x1aec03,_0x260f97])=>({'skeleton':_0x20e7e3[_0xa55c62(0x2ce)](),'cursors':[..._0x1aec03[_0xa55c62(0x321)]()][_0xa55c62(0x2ca)](_0x1e66f7=>({..._0x1e66f7,'color':this[_0xa55c62(0x3d7)]['getColorFromTheme'](_0x1e66f7['color'])}))})))['subscribe'](_0x55cae5=>{const _0x4ccb31=_0xa55c62;if(this['_removeCollabCursors'](),_0x55cae5){const {skeleton:_0x289adb,cursors:_0x20a01b}=_0x55cae5;this[_0x4ccb31(0x218)](_0x289adb,_0x20a01b);}})),this[_0xa55c62(0x2b7)](),this[_0xa55c62(0x42e)]();}[_0x1bab67(0x218)](_0x17eff5,_0x546485){const _0x39a0d8=_0x1bab67,{scene:_0x2da384,mainComponent:_0x1023d0}=this[_0x39a0d8(0x20d)],_0xe88525=_0x546485['map'](_0x5936e3=>new ct(_0x5936e3,_0x2da384,_0x17eff5,_0x1023d0));this[_0x39a0d8(0x3b7)]=_0xe88525,this[_0x39a0d8(0x212)]=_0x546485;}[_0x1bab67(0x353)](){const _0x4165e0=_0x1bab67;this[_0x4165e0(0x3fe)]();const {scene:_0x8017a4,mainComponent:_0x41f8ac}=this[_0x4165e0(0x20d)],_0x270b88=this[_0x4165e0(0x2e4)]['getSkeleton'](),_0x53f6e6=this[_0x4165e0(0x212)]['map'](_0x59e6fb=>new ct(_0x59e6fb,_0x8017a4,_0x270b88,_0x41f8ac));this[_0x4165e0(0x3b7)]=_0x53f6e6;}[_0x1bab67(0x3fe)](){const _0x3fc7d6=_0x1bab67;this[_0x3fc7d6(0x3b7)]['forEach'](_0x765013=>_0x765013[_0x3fc7d6(0x3d8)]()),this[_0x3fc7d6(0x3b7)]=[];}[_0x1bab67(0x42e)](){const _0x54ba46=_0x1bab67,_0x54ec4d=[_0x2e1434['id']];this[_0x54ba46(0x24d)](this[_0x54ba46(0x22c)]['onCommandExecuted'](_0x2687c5=>{const _0x494919=_0x54ba46;_0x54ec4d[_0x494919(0x2de)](_0x2687c5['id'])&&_0x2687c5[_0x494919(0x35c)][_0x494919(0x2d3)]===this[_0x494919(0x20d)][_0x494919(0x2d3)]&&this[_0x494919(0x353)]();}));}['_initResize'](){const _0x15420a=_0x1bab67;this[_0x15420a(0x24d)](_0x525fe4(this['_context'][_0x15420a(0x33e)][_0x15420a(0x37e)])[_0x15420a(0x3e7)](_0x2df3db(_0x4b7603=>_0x4b7603[_0x15420a(0x227)]===_0x30d333['resize']),_0x5454da(0x10))[_0x15420a(0x401)](()=>{const _0x4047ad=_0x15420a;this[_0x4047ad(0x353)]();}));}};Fe=Qi([ie(0x1,_0x5a79e2(_0x210e2e)),ie(0x2,_0x5a79e2(H)),ie(0x3,_0x34fc9a),ie(0x4,_0x5a79e2(_0x3c6cac))],Fe);const qi=0x1,en=1.5;class tn extends _0x2d6f87{constructor(_0x5e6409,_0x3180de){const _0xe3612f=_0x1bab67;super(_0x5e6409,_0x3180de),_(this,_0xe3612f(0x41b)),_(this,_0xe3612f(0x386),!0x1),_(this,_0xe3612f(0x343)),_(this,_0xe3612f(0x3b9),''),_(this,_0xe3612f(0x311),'top'),_(this,_0xe3612f(0x425)),(_0x3180de&&this[_0xe3612f(0x251)](_0x3180de),this[_0xe3612f(0x420)][_0xe3612f(0x3d3)](()=>this[_0xe3612f(0x251)]({'hovered':!0x0})),this[_0xe3612f(0x2c0)][_0xe3612f(0x3d3)](()=>this[_0xe3612f(0x251)]({'hovered':!0x1})));}[_0x1bab67(0x251)](_0x6b03c7){const _0x3bcbc3=_0x1bab67;var _0x4498ae,_0x8fa3b5,_0x5f72b7,_0x29e33d,_0x336189,_0x417d38;this['_color']=(_0x4498ae=_0x6b03c7[_0x3bcbc3(0x2c7)])!=null?_0x4498ae:this[_0x3bcbc3(0x41b)],this[_0x3bcbc3(0x386)]=(_0x8fa3b5=_0x6b03c7['hovered'])!=null?_0x8fa3b5:this[_0x3bcbc3(0x386)],this[_0x3bcbc3(0x343)]=(_0x5f72b7=_0x6b03c7['range'])!=null?_0x5f72b7:this[_0x3bcbc3(0x343)],this[_0x3bcbc3(0x3b9)]=(_0x29e33d=_0x6b03c7[_0x3bcbc3(0x303)])!=null?_0x29e33d:this['_name'],this['_labelPosition']=(_0x336189=_0x6b03c7[_0x3bcbc3(0x3f0)])!=null?_0x336189:this['_labelPosition'],this['_backgroundColor']=(_0x417d38=_0x6b03c7[_0x3bcbc3(0x33d)])!=null?_0x417d38:this[_0x3bcbc3(0x425)],this['transformByState']({'width':_0x6b03c7[_0x3bcbc3(0x389)],'height':_0x6b03c7[_0x3bcbc3(0x231)]});}[_0x1bab67(0x2f3)](_0xe689b3){const _0x5b8869=_0x1bab67,{row:_0x1ff9d2,column:_0x1142ff}=_0xe689b3;if(_0x1ff9d2>=this['_range'][_0x5b8869(0x2b4)]&&_0x1ff9d2<=this[_0x5b8869(0x343)][_0x5b8869(0x2e0)]&&_0x1142ff>=this[_0x5b8869(0x343)][_0x5b8869(0x3a0)]&&_0x1142ff<=this[_0x5b8869(0x343)]['endColumn']){this[_0x5b8869(0x251)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x1bab67(0x366)](_0x360417){return!0x1;}['_draw'](_0x175f9b){const _0x2ea097=_0x1bab67;_0x17d777[_0x2ea097(0x3fa)](_0x175f9b,{'width':this[_0x2ea097(0x389)],'height':this[_0x2ea097(0x231)],'strokeWidth':en,'stroke':this[_0x2ea097(0x41b)],'evented':!0x1,'fill':this[_0x2ea097(0x425)]}),this[_0x2ea097(0x386)]&&(_0x175f9b[_0x2ea097(0x427)](),_0x175f9b['transform'](0x1,0x0,0x0,0x1,this[_0x2ea097(0x389)],this[_0x2ea097(0x311)]===_0x2ea097(0x2b9)?0x0:-Q),Ee['drawWith'](_0x175f9b,{'text':this['_name'],'color':this['_color']}),_0x175f9b[_0x2ea097(0x25b)]());}}var sn=Object[_0x1bab67(0x32a)],nn=(_0x4b9642,_0xf5cfeb,_0x2773a7,_0x564345)=>{for(var _0x5e7239=_0x564345>0x1?void 0x0:_0x564345?sn(_0xf5cfeb,_0x2773a7):_0xf5cfeb,_0x5e32b5=_0x4b9642['length']-0x1,_0x171eb2;_0x5e32b5>=0x0;_0x5e32b5--)(_0x171eb2=_0x4b9642[_0x5e32b5])&&(_0x5e7239=_0x171eb2(_0x5e7239)||_0x5e7239);return _0x5e7239;},Ne=(_0x3c57d7,_0x9996c8)=>(_0x4f59e8,_0x2d2aa6)=>_0x9996c8(_0x4f59e8,_0x2d2aa6,_0x3c57d7);const rn=0x1389;let ke=class extends _0xb8eb03{constructor(_0x3c2fad,_0x153c3f,_0x19738a,_0x3adad0){const _0x1faa58=_0x1bab67;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x3c2fad,this['_sheetSkeletonManagerService']=_0x153c3f,this[_0x1faa58(0x282)]=_0x19738a,this[_0x1faa58(0x3d7)]=_0x3adad0,this[_0x1faa58(0x38f)]());}['_init'](){const _0x1d43cc=_0x1bab67;this[_0x1d43cc(0x39d)][_0x1d43cc(0x3cf)][_0x1d43cc(0x3e7)](_0x33be30(this['dispose$']),_0x42a06f(_0x4df927=>{const _0x1c0a1d=_0x1d43cc;if(_0x4df927){const _0x34ba2a=_0x4df927[_0x1c0a1d(0x355)];return _0x188334(this['_collabCursorController'][_0x1c0a1d(0x2d7)](this[_0x1c0a1d(0x20d)][_0x1c0a1d(0x2d3)]),this[_0x1c0a1d(0x3d7)][_0x1c0a1d(0x379)])[_0x1c0a1d(0x3e7)](_0xa7eefa(([_0x469270,_0x1b4770])=>{const _0x21c471=_0x1c0a1d,_0x29ead3=new Map();return _0x469270[_0x21c471(0x36c)]((_0x28f587,_0x4f8c99)=>{const _0x40f6a7=_0x21c471;if(_0x28f587['sheetID']===_0x34ba2a){const _0x1a0e14={..._0x28f587};_0x1a0e14[_0x40f6a7(0x2c7)]=this['_themeService'][_0x40f6a7(0x1f8)](_0x28f587[_0x40f6a7(0x2c7)]),_0x29ead3[_0x40f6a7(0x25f)](_0x4f8c99,_0x1a0e14);}}),{'skeleton':_0x4df927,'cursors':_0x29ead3};}));}return _0x147589({'skeleton':null,'cursors':new Map()});}))[_0x1d43cc(0x401)](({skeleton:_0x36020f,cursors:_0x52c56a})=>{const _0x8ec66e=_0x1d43cc;this[_0x8ec66e(0x3fe)](),_0x36020f&&this[_0x8ec66e(0x218)](_0x36020f,_0x52c56a);}),this[_0x1d43cc(0x39d)][_0x1d43cc(0x3cf)][_0x1d43cc(0x401)](_0x80c981=>{const _0x81a85f=_0x1d43cc;if(_0x80c981==null)return;const {skeleton:_0x3ead5f}=_0x80c981,{scene:_0x4b0a5c}=this[_0x81a85f(0x20d)];_0x4b0a5c[_0x81a85f(0x31a)][_0x81a85f(0x3d3)](_0x3dabb7(_0x5aa040=>{const _0x79d623=_0x81a85f;var _0x4424cd,_0x13f85a;const {offsetX:_0x46da65,offsetY:_0x383e5c}=_0x5aa040,{x:_0x1f05ad,y:_0xcd8795}=_0x4b0a5c[_0x79d623(0x2fa)](_0x380b35[_0x79d623(0x229)]([_0x46da65,_0x383e5c])),{scaleX:_0x56bd2f,scaleY:_0x5a1c38}=_0x4b0a5c[_0x79d623(0x3ce)](),_0x2615e5=_0x4b0a5c['getViewport'](_0x3d4c73['VIEW_MAIN']),_0x1414f6=_0x4b0a5c[_0x79d623(0x246)](_0x380b35[_0x79d623(0x229)]([_0x1f05ad,_0xcd8795]),_0x2615e5),_0xe7dbd4=_0x3ead5f['getCellPositionByOffset'](_0x46da65,_0x383e5c,_0x56bd2f,_0x5a1c38,_0x1414f6);((_0x4424cd=this[_0x79d623(0x1f4)])==null?void 0x0:_0x4424cd[_0x79d623(0x210)])===_0xe7dbd4['column']&&((_0x13f85a=this['_lastPointer'])==null?void 0x0:_0x13f85a[_0x79d623(0x264)])===_0xe7dbd4[_0x79d623(0x264)]||this['_cursors'][_0x79d623(0x36c)](_0x605f7b=>{const _0x3cd157=_0x79d623;_0x605f7b[_0x3cd157(0x2f3)](_0xe7dbd4);});},0x64));});}[_0x1bab67(0x218)](_0x2e08ec,_0x1e9d0a){const _0x2b75b1=_0x1bab67;var _0x35fece;const _0x1832e7=(_0x35fece=this[_0x2b75b1(0x39d)][_0x2b75b1(0x3b2)]())==null?void 0x0:_0x35fece[_0x2b75b1(0x2a2)];if(!_0x1832e7)return;const _0x4653e3=this[_0x2b75b1(0x351)]();if(!_0x4653e3)return;this['_cursors'][_0x2b75b1(0x36c)](_0x8bab99=>{_0x8bab99['makeDirty']();});const {scene:_0x2d8e29}=_0x4653e3,_0x3901ea=on(Array['from'](_0x1e9d0a[_0x2b75b1(0x321)]()))[_0x2b75b1(0x2c1)](_0x158ef9=>{const _0x2c3422=_0x2b75b1,{color:_0x1a370a,range:_0xb4c76c,name:_0x45e6b8,selection:_0x13b15f,sheetID:_0x207f7d}=_0x158ef9,{startColumn:_0x9efde,startRow:_0x3d538d,endColumn:_0x5b5d47,endRow:_0x3b8edd}=_0xb4c76c,_0x151490=_0xa911b5(_0x3d538d,_0x9efde,_0x2d8e29,_0x1832e7),_0x124ca8=_0xa911b5(_0x3b8edd,_0x5b5d47,_0x2d8e29,_0x1832e7),{columnHeaderHeightAndMarginTop:_0x17f47c}=_0x1832e7,{startX:_0x223683,startY:_0x4e8661}=_0x151490,{endX:_0x467e38,endY:_0x266c35}=_0x124ca8,_0x4de627=_0x467e38-_0x223683,_0x44cc54=_0x266c35-_0x4e8661,_0x5aecf3={'labelPosition':_0x4e8661-_0x17f47c>=Q?_0x2c3422(0x329):_0x2c3422(0x2b9),'sheetID':_0x207f7d,'range':_0xb4c76c,'color':_0x1a370a,'name':_0x45e6b8,'selection':_0x13b15f,'left':_0x223683,'top':_0x4e8661,'width':_0x4de627,'height':_0x44cc54,'evented':!0x1,'zIndex':rn};return new tn(_0x45e6b8,_0x5aecf3);});_0x2d8e29[_0x2b75b1(0x21c)](_0x3901ea,qi),this[_0x2b75b1(0x212)]=new Set(_0x3901ea);}['_removeCollabCursors'](){const _0x5264c2=_0x1bab67;var _0x260683;(_0x260683=this[_0x5264c2(0x212)])==null||_0x260683['forEach'](_0x5c6d47=>_0x5c6d47['dispose']());}[_0x1bab67(0x351)](){const _0x304d4f=_0x1bab67;return _0x11d02e(this['_context'][_0x304d4f(0x1fd)],this[_0x304d4f(0x20d)]);}};ke=nn([Ne(0x1,_0x5a79e2(_0x1576bc)),Ne(0x2,_0x5a79e2(H)),Ne(0x3,_0x5a79e2(_0x3c6cac))],ke);function on(_0x24f41e){const _0x2ff8e9=_0x1bab67,_0x516600=new Map();return _0x24f41e[_0x2ff8e9(0x36c)](_0x4a00b7=>{const _0x2e0e4c=_0x2ff8e9;if(_0x516600[_0x2e0e4c(0x1f7)](_0x4a00b7[_0x2e0e4c(0x3d0)])){const _0x36eb20=_0x516600[_0x2e0e4c(0x1e3)](_0x4a00b7[_0x2e0e4c(0x3d0)]);_0x36eb20[_0x2e0e4c(0x303)]+=',\x20'+_0x4a00b7['name'];}else _0x516600[_0x2e0e4c(0x25f)](_0x4a00b7[_0x2e0e4c(0x3d0)],_0x4a00b7);}),Array[_0x2ff8e9(0x2a8)](_0x516600[_0x2ff8e9(0x321)]());}var an=Object[_0x1bab67(0x32a)],cn=(_0x7b29b8,_0x1cf500,_0x54e7be,_0x4bdb50)=>{const _0x280f8f=_0x1bab67;for(var _0x41b697=_0x4bdb50>0x1?void 0x0:_0x4bdb50?an(_0x1cf500,_0x54e7be):_0x1cf500,_0x11f348=_0x7b29b8[_0x280f8f(0x30a)]-0x1,_0x4b9ed1;_0x11f348>=0x0;_0x11f348--)(_0x4b9ed1=_0x7b29b8[_0x11f348])&&(_0x41b697=_0x4b9ed1(_0x41b697)||_0x41b697);return _0x41b697;},F=(_0x3e8ae4,_0x508206)=>(_0x552e5c,_0x3ba337)=>_0x508206(_0x552e5c,_0x3ba337,_0x3e8ae4);let _e=class extends _0x570ab2{constructor(_0x6140cb,_0x4111d5,_0x3676e9,_0x4f2df8,_0x709ba4,_0x10bb00){const _0xe9056e=_0x1bab67;super(),this[_0xe9056e(0x305)]=_0x6140cb,this[_0xe9056e(0x29a)]=_0x4111d5,this[_0xe9056e(0x354)]=_0x3676e9,this[_0xe9056e(0x313)]=_0x4f2df8,this[_0xe9056e(0x342)]=_0x709ba4,this['_localeService']=_0x10bb00,this['_setupBeforeClosingHandler'](),this[_0xe9056e(0x1e8)]();}[_0x1bab67(0x40e)](){const _0x2da9a0=_0x1bab67;this[_0x2da9a0(0x24d)](this[_0x2da9a0(0x305)]['registerBeforeClose'](()=>{const _0x231897=_0x2da9a0;if(this[_0x231897(0x29a)][_0x231897(0x38e)][_0x231897(0x40a)])return this['_localeService']['t'](_0x231897(0x393));}));}[_0x1bab67(0x1e8)](){const _0x15870b=_0x1bab67;this[_0x15870b(0x24d)](this['_collaborationUIEventService'][_0x15870b(0x270)][_0x15870b(0x401)](_0xf22be4=>{const _0x33fa42=_0x15870b;_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x37b)]&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe['Warning'],'content':this[_0x33fa42(0x34c)]['t'](_0x33fa42(0x20f))}),_0xf22be4['id']===_0x4fffd5['CLOSE_ROOM']&&this[_0x33fa42(0x313)]['show']({'type':_0x5d27fe['Warning'],'content':this[_0x33fa42(0x34c)]['t'](_0x33fa42(0x252))}),_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x1e2)]&&this['_notificationService']['show']({'title':this[_0x33fa42(0x34c)]['t']('permission.title'),'content':this[_0x33fa42(0x34c)]['t']('permission.content'),'type':_0x33fa42(0x253),'duration':0x0}),_0xf22be4['id']===_0x4fffd5['CONFLICT']&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe[_0x33fa42(0x1ec)],'content':this[_0x33fa42(0x34c)]['t'](_0x33fa42(0x252))+'('+_0xf22be4[_0x33fa42(0x2b3)]+')'}),_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x20e)]&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe[_0x33fa42(0x426)],'content':this['_localeService']['t'](_0xf22be4[_0x33fa42(0x2b3)]||'')}),_0xf22be4['id']===_0x4fffd5['SOCKET_FAILED_RETRY']&&this['_messageService']['show']({'type':_0x5d27fe[_0x33fa42(0x426)],'content':this[_0x33fa42(0x34c)]['t'](_0x33fa42(0x372))}),_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x2a7)]&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe[_0x33fa42(0x1ec)],'content':this['_localeService']['t'](_0x33fa42(0x232))}),_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x2cd)]&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe['Error'],'content':this['_localeService']['t'](_0x33fa42(0x2aa))});}));}};_e=cn([F(0x0,_0x912558),F(0x1,_0x47e6d9),F(0x2,_0x5a79e2(_0x1cc67e)),F(0x3,_0x116021),F(0x4,_0x259113),F(0x5,_0x5a79e2(_0x358b52))],_e);var _n=Object[_0x1bab67(0x32a)],ln=(_0x587c60,_0x469b60,_0x3fc423,_0x4f7681)=>{const _0x40493e=_0x1bab67;for(var _0x196a82=_0x4f7681>0x1?void 0x0:_0x4f7681?_n(_0x469b60,_0x3fc423):_0x469b60,_0x5dcd92=_0x587c60[_0x40493e(0x30a)]-0x1,_0x40b55f;_0x5dcd92>=0x0;_0x5dcd92--)(_0x40b55f=_0x587c60[_0x5dcd92])&&(_0x196a82=_0x40b55f(_0x196a82)||_0x196a82);return _0x196a82;},ne=(_0x58aad6,_0x54dcac)=>(_0x3ba565,_0x530bec)=>_0x54dcac(_0x3ba565,_0x530bec,_0x58aad6);let le=class extends _0x570ab2{constructor(_0x5e732d,_0x4d5605,_0x4720b5,_0x12abd3){const _0x29af06=_0x1bab67;super(),_(this,_0x29af06(0x3e2)),(this[_0x29af06(0x428)]=_0x5e732d,this[_0x29af06(0x2f7)]=_0x4d5605,this[_0x29af06(0x2b2)]=_0x4720b5,this[_0x29af06(0x41d)]=_0x12abd3,this['_init']());}[_0x1bab67(0x38f)](){const _0x26b2a3=_0x1bab67;this[_0x26b2a3(0x20a)](),this[_0x26b2a3(0x207)](),this['_monkeyPatchLogService'](),this[_0x26b2a3(0x209)]();}[_0x1bab67(0x209)](){const _0x2af938=_0x1bab67;this[_0x2af938(0x24d)](this[_0x2af938(0x41d)][_0x2af938(0x205)][_0x2af938(0x401)](_0x479674=>{const _0x55fa0f=_0x2af938;this[_0x55fa0f(0x3e2)]=_0x479674==null?void 0x0:_0x479674['memberID'];}));}[_0x1bab67(0x20a)](){const _0x2a6afa=_0x1bab67,_0x1e4495=_0x1cdeaa=>{const _0x2a5ad1=_0x4050;var _0x3fb0ea;this['_uploadLog'](_0x2a5ad1(0x253),_0x2a5ad1(0x2b0)+_0x1cdeaa['message']+_0x2a5ad1(0x3df)+_0x1cdeaa[_0x2a5ad1(0x1df)]+':'+_0x1cdeaa[_0x2a5ad1(0x206)]+':'+_0x1cdeaa[_0x2a5ad1(0x384)]+'\x0a'+(((_0x3fb0ea=_0x1cdeaa[_0x2a5ad1(0x253)])==null?void 0x0:_0x3fb0ea['stack'])||''));};window[_0x2a6afa(0x41e)](_0x2a6afa(0x253),_0x1e4495),this['disposeWithMe'](()=>{const _0x690d0d=_0x2a6afa;window[_0x690d0d(0x27e)](_0x690d0d(0x253),_0x1e4495);});}[_0x1bab67(0x207)](){const _0x2880fa=_0x1bab67,_0x31e0f6=_0x53d1f7=>{const _0x39c27f=_0x4050;this[_0x39c27f(0x2fc)](_0x39c27f(0x253),_0x39c27f(0x3b8)+_0x53d1f7[_0x39c27f(0x38c)]);};window[_0x2880fa(0x41e)]('unhandledrejection',_0x31e0f6),this[_0x2880fa(0x24d)](()=>{const _0x357c27=_0x2880fa;window[_0x357c27(0x27e)]('unhandledrejection',_0x31e0f6);});}[_0x1bab67(0x307)](){const _0x34d657=_0x1bab67,_0x59d517=this[_0x34d657(0x2b2)][_0x34d657(0x253)][_0x34d657(0x23a)](this[_0x34d657(0x2b2)]);this[_0x34d657(0x2b2)][_0x34d657(0x253)]=(..._0x37e2be)=>{const _0x56f6ef=_0x34d657,_0x138d5=_0x37e2be[_0x56f6ef(0x2c1)](_0x199a85=>_0x199a85 instanceof Error?_0x199a85[_0x56f6ef(0x2f2)]+'\x0a'+_0x199a85[_0x56f6ef(0x40f)]:String(_0x199a85))[_0x56f6ef(0x2ef)]('\x20');this[_0x56f6ef(0x2fc)](_0x56f6ef(0x253),_0x56f6ef(0x385)+_0x138d5),_0x59d517(..._0x37e2be);},this[_0x34d657(0x24d)](()=>{const _0xb9af66=_0x34d657;this['_logService'][_0xb9af66(0x253)]=_0x59d517;});}[_0x1bab67(0x2fc)](_0x238ada,_0x2847db){const _0x3a5176=_0x1bab67;try{const _0x34b56b={'userId':this[_0x3a5176(0x3e2)],'logLabel':_0x238ada,'content':_0x2847db};this['_httpService']['post'](_0x3a5176(0x36b),{'body':_0x34b56b})[_0x3a5176(0x383)](()=>{});}catch{}}};le=ln([ne(0x0,_0x5a79e2(_0x41a636)),ne(0x1,_0x5a79e2(_0x1fe289)),ne(0x2,_0xf1ee96),ne(0x3,_0x5a79e2(_0x5b8361))],le);const hn='collaboration-client-ui.config',_t={};var un=Object[_0x1bab67(0x32a)],dn=(_0x449281,_0x5ed2fb,_0x22bcd9,_0x6b0232)=>{const _0x196800=_0x1bab67;for(var _0x5b3c9a=_0x6b0232>0x1?void 0x0:_0x6b0232?un(_0x5ed2fb,_0x22bcd9):_0x5ed2fb,_0x1beb85=_0x449281[_0x196800(0x30a)]-0x1,_0x2b73d6;_0x1beb85>=0x0;_0x1beb85--)(_0x2b73d6=_0x449281[_0x1beb85])&&(_0x5b3c9a=_0x2b73d6(_0x5b3c9a)||_0x5b3c9a);return _0x5b3c9a;},lt=(_0x1467c1,_0x4d4ef0)=>(_0x40d358,_0x11e9f6)=>_0x4d4ef0(_0x40d358,_0x11e9f6,_0x1467c1);let he=class{constructor(_0x21f33e,_0x2b0519){const _0x2c26c6=_0x1bab67;this[_0x2c26c6(0x261)]=_0x21f33e,this[_0x2c26c6(0x21b)]=_0x2b0519;}[_0x1bab67(0x2da)](_0xe81aa3){const _0x1f67db=_0x1bab67;this[_0x1f67db(0x337)](_0xe81aa3),this[_0x1f67db(0x344)](_0xe81aa3);}[_0x1bab67(0x3ad)](_0x4ed8b9){const _0x262365=_0x1bab67,{unitID:_0x3026e0}=_0x4ed8b9,_0x533884=this[_0x262365(0x21b)][_0x262365(0x254)](_0x3026e0)['with'](_0x38083a),{redoCache:_0x5332de}=_0x533884['getUndoRedoMutationParamsCache']();if(_0x5332de[_0x262365(0x30a)]===0x0)return _0x4ed8b9;let _0x190b86=_0x3b1d01[_0x262365(0x263)](_0x4ed8b9[_0x262365(0x22f)][0x0]);for(let _0x4ac063=0x0;_0x4ac063<_0x5332de[_0x262365(0x30a)];_0x4ac063++){const _0x59a29a={'id':'doc.mutation.rich-text-editing','params':{..._0x5332de[_0x4ac063]}},_0x35bf25=this['_transformService'][_0x262365(0x2ed)](_0x190b86,_0x59a29a,!0x1);if(_0x571730(_0x35bf25))throw _0x35bf25['error'];_0x190b86=_0x35bf25[_0x262365(0x281)];}return{..._0x3b1d01['deepClone'](_0x4ed8b9),'mutations':[_0x190b86]};}[_0x1bab67(0x337)](_0x4ca3f2){const _0x2b0e95=_0x1bab67,{unitID:_0x1328a4}=_0x4ca3f2,_0x221fe0=this['_renderManagerService'][_0x2b0e95(0x254)](_0x1328a4)[_0x2b0e95(0x3cd)](_0x38083a),{undoCache:_0x33b009,redoCache:_0x2a6466}=_0x221fe0['getUndoRedoMutationParamsCache']();if(_0x33b009[_0x2b0e95(0x30a)]===0x0||_0x2a6466['length']===0x0)return;const _0x591735=[],_0xf7a6c=[];let _0x119bb6=_0x3b1d01['deepClone'](_0x4ca3f2[_0x2b0e95(0x22f)][0x0]),_0x12612b=_0x3b1d01[_0x2b0e95(0x263)](_0x4ca3f2[_0x2b0e95(0x22f)][0x0]);for(let _0x26a38d=_0x33b009[_0x2b0e95(0x30a)]-0x1;_0x26a38d>=0x0;_0x26a38d--){const _0x5bbe94={'id':_0x2b0e95(0x23f),'params':{..._0x33b009[_0x26a38d]}},_0x51d778={'id':'doc.mutation.rich-text-editing','params':{..._0x2a6466[_0x26a38d]}},_0x3e56af=this[_0x2b0e95(0x261)][_0x2b0e95(0x2ed)](_0x119bb6,_0x5bbe94,!0x1),_0x1bcea0=this['_transformService'][_0x2b0e95(0x2ed)](_0x12612b,_0x51d778,!0x1);if(_0x571730(_0x3e56af))throw _0x3e56af[_0x2b0e95(0x253)];if(_0x571730(_0x1bcea0))throw _0x1bcea0['error'];_0x591735['unshift'](_0x3e56af['m2Prime'][_0x2b0e95(0x35c)]),_0xf7a6c[_0x2b0e95(0x21a)](_0x1bcea0[_0x2b0e95(0x37a)][_0x2b0e95(0x35c)]),_0x119bb6=_0x3e56af[_0x2b0e95(0x281)],_0x12612b=_0x1bcea0[_0x2b0e95(0x281)];}_0x221fe0['setUndoRedoMutationParamsCache']({'undoCache':_0x591735,'redoCache':_0xf7a6c});}[_0x1bab67(0x344)](_0x3bed7f){const _0x20e33b=_0x1bab67,{unitID:_0x4301db}=_0x3bed7f,_0x4f8dcf=this[_0x20e33b(0x21b)][_0x20e33b(0x254)](_0x4301db)['with'](_0x38083a),_0x3bd0c4=_0x4f8dcf[_0x20e33b(0x2e6)]();if(_0x3bd0c4==null)return;const _0x3a1551=[{'id':_0x20e33b(0x23f),'params':{'unitId':_0x3bed7f[_0x20e33b(0x3bf)],'actions':null,'textRanges':[_0x3bd0c4]}}],_0x1c8e49=this[_0x20e33b(0x261)]['transformMutationsWithChangeset'](_0x3bed7f,_0x3a1551);if(!_0x29ce50(_0x1c8e49))throw _0x1c8e49[_0x20e33b(0x253)];const _0x687798=_0x1c8e49[_0x20e33b(0x37a)][0x0][_0x20e33b(0x35c)][_0x20e33b(0x29b)];Array[_0x20e33b(0x345)](_0x687798)&&_0x687798[_0x20e33b(0x30a)]&&_0x4f8dcf[_0x20e33b(0x387)](_0x687798[0x0]);}};he=dn([lt(0x0,_0x1b61b0),lt(0x1,_0x1eaf53)],he);var Sn=Object[_0x1bab67(0x32a)],mn=(_0x475c79,_0x1d8a97,_0x3ca817,_0x417591)=>{for(var _0x26df80=_0x417591>0x1?void 0x0:_0x417591?Sn(_0x1d8a97,_0x3ca817):_0x1d8a97,_0x397112=_0x475c79['length']-0x1,_0x2d3dd2;_0x397112>=0x0;_0x397112--)(_0x2d3dd2=_0x475c79[_0x397112])&&(_0x26df80=_0x2d3dd2(_0x26df80)||_0x26df80);return _0x26df80;},Le=(_0x562dc0,_0xe87811)=>(_0x6da949,_0xc80a91)=>_0xe87811(_0x6da949,_0xc80a91,_0x562dc0);let ue=class{constructor(_0x16ed82,_0x41a794,_0x303cad){const _0x3df110=_0x1bab67;this[_0x3df110(0x428)]=_0x16ed82,this[_0x3df110(0x261)]=_0x41a794,this['_docStateChangeManagerService']=_0x303cad;}[_0x1bab67(0x30e)](_0x15fe4e){const _0x151367=_0x1bab67;this[_0x151367(0x2f0)](_0x15fe4e);}[_0x1bab67(0x3ad)](_0x1d4868){const _0x4556e4=_0x1bab67,{unitID:_0x1848b2}=_0x1d4868,{collaboration:_0x408f42}=this['_docStateChangeManagerService']['getStateCache'](_0x1848b2);if(_0x408f42[_0x4556e4(0x30a)]===0x0)return _0x1d4868;let _0x54a82f=_0x3b1d01[_0x4556e4(0x263)](_0x1d4868[_0x4556e4(0x22f)][0x0]);for(let _0x3bfcd3=0x0;_0x3bfcd3<_0x408f42['length'];_0x3bfcd3++){const _0x19a2e3={'id':_0x4556e4(0x23f),'params':{'unitId':_0x408f42[_0x3bfcd3]['unitId'],..._0x408f42[_0x3bfcd3]['redoState']}},_0x33373a=this[_0x4556e4(0x261)][_0x4556e4(0x2ed)](_0x54a82f,_0x19a2e3,!0x1);if(_0x571730(_0x33373a))throw _0x33373a[_0x4556e4(0x253)];_0x54a82f=_0x33373a[_0x4556e4(0x281)];}return{..._0x3b1d01[_0x4556e4(0x263)](_0x1d4868),'mutations':[_0x54a82f]};}[_0x1bab67(0x2f0)](_0x50b34f){const _0x505d5d=_0x1bab67,{unitID:_0x286dea}=_0x50b34f,{history:_0x32e9c1,collaboration:_0x296a87}=this[_0x505d5d(0x3b5)][_0x505d5d(0x322)](_0x286dea);if(_0x32e9c1[_0x505d5d(0x30a)]===0x0&&_0x296a87['length']===0x0)return;const _0x18fd7c=[],_0x1e04e8=[];let _0x35b257=_0x3b1d01[_0x505d5d(0x263)](_0x50b34f[_0x505d5d(0x22f)][0x0]),_0x5a3182=_0x3b1d01[_0x505d5d(0x263)](_0x50b34f['mutations'][0x0]);for(let _0x20511a=_0x32e9c1[_0x505d5d(0x30a)]-0x1;_0x20511a>=0x0;_0x20511a--){const _0x18b3fb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x32e9c1[_0x20511a][_0x505d5d(0x2d3)],..._0x32e9c1[_0x20511a][_0x505d5d(0x272)]}},_0x75222={'id':_0x505d5d(0x23f),'params':{'unitId':_0x32e9c1[_0x20511a]['unitId'],..._0x32e9c1[_0x20511a]['redoState']}},_0x3aeffd=this['_transformService']['transformMutation'](_0x35b257,_0x18b3fb,!0x1),_0x33e2b4=this[_0x505d5d(0x261)][_0x505d5d(0x2ed)](_0x5a3182,_0x75222,!0x1);if(_0x571730(_0x3aeffd))throw _0x3aeffd[_0x505d5d(0x253)];if(_0x571730(_0x33e2b4))throw _0x33e2b4['error'];_0x18fd7c[_0x505d5d(0x21a)]({..._0x32e9c1[_0x20511a],'undoState':_0x3aeffd[_0x505d5d(0x37a)][_0x505d5d(0x35c)],'redoState':_0x33e2b4[_0x505d5d(0x37a)]['params']}),_0x35b257=_0x3aeffd[_0x505d5d(0x281)],_0x5a3182=_0x33e2b4['m1Prime'];}_0x35b257=_0x3b1d01[_0x505d5d(0x263)](_0x50b34f['mutations'][0x0]),_0x5a3182=_0x3b1d01[_0x505d5d(0x263)](_0x50b34f[_0x505d5d(0x22f)][0x0]);for(let _0x4fc97e=_0x296a87[_0x505d5d(0x30a)]-0x1;_0x4fc97e>=0x0;_0x4fc97e--){const _0xe7561a={'id':_0x505d5d(0x23f),'params':{'unitId':_0x296a87[_0x4fc97e]['unitId'],..._0x296a87[_0x4fc97e][_0x505d5d(0x272)]}},_0x316b77={'id':_0x505d5d(0x23f),'params':{'unitId':_0x296a87[_0x4fc97e][_0x505d5d(0x2d3)],..._0x296a87[_0x4fc97e][_0x505d5d(0x42d)]}},_0x1e4a48=this[_0x505d5d(0x261)]['transformMutation'](_0x35b257,_0xe7561a,!0x1),_0x4d7a74=this[_0x505d5d(0x261)]['transformMutation'](_0x5a3182,_0x316b77,!0x1);if(_0x571730(_0x1e4a48))throw _0x1e4a48[_0x505d5d(0x253)];if(_0x571730(_0x4d7a74))throw _0x4d7a74[_0x505d5d(0x253)];_0x1e04e8[_0x505d5d(0x21a)]({..._0x296a87[_0x4fc97e],'undoState':_0x1e4a48[_0x505d5d(0x37a)][_0x505d5d(0x35c)],'redoState':_0x4d7a74[_0x505d5d(0x37a)][_0x505d5d(0x35c)]}),_0x35b257=_0x1e4a48['m1Prime'],_0x5a3182=_0x4d7a74[_0x505d5d(0x281)];}this[_0x505d5d(0x3b5)][_0x505d5d(0x22d)](_0x286dea,{'history':_0x18fd7c,'collaboration':_0x1e04e8});}};ue=mn([Le(0x0,_0x5a79e2(_0x41a636)),Le(0x1,_0x1b61b0),Le(0x2,_0x5a79e2(_0x242de7))],ue);var In=Object[_0x1bab67(0x32a)],fn=(_0x1712df,_0x3d3ddd,_0x21c2aa,_0x31834b)=>{const _0x4e0686=_0x1bab67;for(var _0x5ed9ea=_0x31834b>0x1?void 0x0:_0x31834b?In(_0x3d3ddd,_0x21c2aa):_0x3d3ddd,_0x4cd9ec=_0x1712df[_0x4e0686(0x30a)]-0x1,_0x51f53b;_0x4cd9ec>=0x0;_0x4cd9ec--)(_0x51f53b=_0x1712df[_0x4cd9ec])&&(_0x5ed9ea=_0x51f53b(_0x5ed9ea)||_0x5ed9ea);return _0x5ed9ea;},ht=(_0x280123,_0x393ac5)=>(_0x174f8a,_0x50cd2e)=>_0x393ac5(_0x174f8a,_0x50cd2e,_0x280123);let de=class{constructor(_0x39d525,_0x2b38ec){const _0x206f1b=_0x1bab67;this[_0x206f1b(0x428)]=_0x39d525,this[_0x206f1b(0x261)]=_0x2b38ec;}['transformSelections'](_0x24f68e){const _0x37f41b=_0x1bab67;var _0x36bc82;const _0x1ca88d=this['_injector'][_0x37f41b(0x1e3)](_0xd5f03f),_0x39fba8=(_0x36bc82=_0x1ca88d[_0x37f41b(0x2c8)]())!=null?_0x36bc82:[];if(_0x39fba8['length']===0x0)return;const _0x98984c=_0x24f68e['unitID'],_0x53aca3=[{'id':_0x37f41b(0x23f),'params':{'unitId':_0x98984c,'actions':null,'textRanges':_0x39fba8}}],_0x12f6d5=this[_0x37f41b(0x261)][_0x37f41b(0x1f9)](_0x24f68e,_0x53aca3);if(!_0x29ce50(_0x12f6d5))throw _0x12f6d5['error'];const _0x4f302d=_0x12f6d5['m2Prime'][0x0][_0x37f41b(0x35c)][_0x37f41b(0x29b)];Array['isArray'](_0x4f302d)&&_0x4f302d[_0x37f41b(0x30a)]&&_0x1ca88d[_0x37f41b(0x323)](_0x4f302d,{'unitId':_0x98984c,'subUnitId':_0x98984c},!0x1);}};de=fn([ht(0x0,_0x5a79e2(_0x41a636)),ht(0x1,_0x1b61b0)],de);var gn=Object[_0x1bab67(0x32a)],vn=(_0x5149b2,_0x1d6e7b,_0x2b3116,_0x85f2b7)=>{const _0x7844bd=_0x1bab67;for(var _0x50ae93=_0x85f2b7>0x1?void 0x0:_0x85f2b7?gn(_0x1d6e7b,_0x2b3116):_0x1d6e7b,_0x40da5f=_0x5149b2[_0x7844bd(0x30a)]-0x1,_0x332fcd;_0x40da5f>=0x0;_0x40da5f--)(_0x332fcd=_0x5149b2[_0x40da5f])&&(_0x50ae93=_0x332fcd(_0x50ae93)||_0x50ae93);return _0x50ae93;},U=(_0x29803f,_0x114c74)=>(_0x56576f,_0x550f74)=>_0x114c74(_0x56576f,_0x550f74,_0x29803f);let Se=class extends _0x570ab2{constructor(_0x237883,_0x5e5561,_0x59d54a,_0x57c2ee,_0x40580d,_0x433ded,_0xb45169,_0x27020e){const _0x423c91=_0x1bab67;super(),_(this,_0x423c91(0x2af),new _0x42c9f3(_0x1db3c4['NOT_COLLAB'])),(this[_0x423c91(0x3b5)]=_0x237883,this[_0x423c91(0x22e)]=_0x5e5561,this[_0x423c91(0x32c)]=_0x59d54a,this[_0x423c91(0x3d1)]=_0x57c2ee,this[_0x423c91(0x31d)]=_0x40580d,this[_0x423c91(0x424)]=_0x433ded,this[_0x423c91(0x313)]=_0xb45169,this[_0x423c91(0x34c)]=_0x27020e,this['_initEntityListener']());}['_initEntityListener'](){const _0xc5d3a6=_0x1bab67;this[_0xc5d3a6(0x24d)](this[_0xc5d3a6(0x22e)]['entityInit$'][_0xc5d3a6(0x401)](_0xa501e3=>{const _0x5779b0=_0xc5d3a6,_0x495f0d=this[_0x5779b0(0x3b5)][_0x5779b0(0x2ec)][_0x5779b0(0x401)](_0x600483=>{const _0x5f1906=_0x5779b0;if(_0x600483==null)return;const {unitId:_0x29d715,redoState:_0x4cfb57,commandId:_0x3e0bc4}=_0x600483;if(_0x29d715!==_0xa501e3[_0x5f1906(0x3bf)])return;const _0x1ad292={'id':_0x3e0bc4,'type':_0x5d535e['MUTATION'],'params':{'unitId':_0x29d715,'actions':_0x4cfb57[_0x5f1906(0x336)],'textRanges':null}};_0xa501e3[_0x5f1906(0x36a)](_0x1ad292);});if(_0xa501e3['disposeWithMe'](_0x495f0d),_0xa501e3 instanceof _0x1d8428){const _0x41be48={'onTransformIME':_0x11b248=>this['_docTransformIMECacheService']['transformIMECache'](_0x11b248),'onTransformState':_0x445f08=>this[_0x5779b0(0x3d1)][_0x5779b0(0x30e)](_0x445f08),'onTransformSelections':_0x6880eb=>this[_0x5779b0(0x31d)]['transformSelections'](_0x6880eb),'onSyncEditingCollabCursor':_0x316a39=>this[_0x5779b0(0x424)]['syncEditingCollabCursor'](_0x316a39),'onTransformRemoteChangesetByIMECache':_0x459a97=>this[_0x5779b0(0x32c)][_0x5779b0(0x3ad)](_0x459a97),'onTransformRemoteChangesetByStateCache':_0x5b13ea=>this[_0x5779b0(0x3d1)][_0x5779b0(0x3ad)](_0x5b13ea)};_0xa501e3['addHandlerCallback'](_0x41be48);}}));}};Se=vn([U(0x0,_0x5a79e2(_0x242de7)),U(0x1,_0x5a79e2(_0x519a49)),U(0x2,_0x5a79e2(he)),U(0x3,_0x5a79e2(ue)),U(0x4,_0x5a79e2(de)),U(0x5,_0x5a79e2(ze)),U(0x6,_0x116021),U(0x7,_0x5a79e2(_0x358b52))],Se);var Z=(_0xcea129=>(_0xcea129[_0xcea129['UNDEFINED']=0x0]=_0x1bab67(0x30d),_0xcea129[_0xcea129['OK']=0x1]='OK',_0xcea129[_0xcea129[_0x1bab67(0x2d2)]=0x2]='INTERNAL_ERROR',_0xcea129[_0xcea129[_0x1bab67(0x1e2)]=0x3]='PERMISSION_DENIED',_0xcea129[_0xcea129[_0x1bab67(0x249)]=0x4]='NOT_FOUND',_0xcea129[_0xcea129['UNAUTHENTICATED']=0x5]=_0x1bab67(0x3e5),_0xcea129[_0xcea129['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0xcea129[_0xcea129[_0x1bab67(0x3d9)]=0x7]=_0x1bab67(0x3d9),_0xcea129[_0xcea129['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0xcea129[_0xcea129[_0x1bab67(0x306)]=0x9]=_0x1bab67(0x306),_0xcea129[_0xcea129[_0x1bab67(0x25d)]=0xa]=_0x1bab67(0x25d),_0xcea129[_0xcea129[_0x1bab67(0x3db)]=0xb]=_0x1bab67(0x3db),_0xcea129[_0xcea129['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x1bab67(0x408),_0xcea129[_0xcea129[_0x1bab67(0x2bd)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0xcea129[_0xcea129[_0x1bab67(0x2cb)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xcea129[_0xcea129[_0x1bab67(0x3f7)]=0xf]=_0x1bab67(0x3f7),_0xcea129[_0xcea129[_0x1bab67(0x203)]=0x10]=_0x1bab67(0x203),_0xcea129[_0xcea129[_0x1bab67(0x287)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0xcea129[_0xcea129[_0x1bab67(0x406)]=0x65]=_0x1bab67(0x406),_0xcea129[_0xcea129[_0x1bab67(0x24b)]=0xc9]=_0x1bab67(0x24b),_0xcea129[_0xcea129[_0x1bab67(0x3e4)]=0xca]=_0x1bab67(0x3e4),_0xcea129[_0xcea129['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x1bab67(0x2ba),_0xcea129[_0xcea129['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x1bab67(0x318),_0xcea129[_0xcea129[_0x1bab67(0x266)]=0x1772]=_0x1bab67(0x266),_0xcea129[_0xcea129[_0x1bab67(0x241)]=0x1773]=_0x1bab67(0x241),_0xcea129[_0xcea129['APPLY_REJECT']=0x1b59]=_0x1bab67(0x340),_0xcea129[_0xcea129[_0x1bab67(0x315)]=0x1b5a]=_0x1bab67(0x315),_0xcea129[_0xcea129['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x1bab67(0x429),_0xcea129[_0xcea129[_0x1bab67(0x2b1)]=0x1b5c]=_0x1bab67(0x2b1),_0xcea129[_0xcea129['APPLY_DUPLICATED']=0x1b5d]=_0x1bab67(0x299),_0xcea129[_0xcea129['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xcea129[_0xcea129[_0x1bab67(0x2dc)]=0x2329]=_0x1bab67(0x2dc),_0xcea129[_0xcea129[_0x1bab67(0x21f)]=0x232a]=_0x1bab67(0x21f),_0xcea129[_0xcea129[_0x1bab67(0x2c5)]=0x232b]=_0x1bab67(0x2c5),_0xcea129[_0xcea129[_0x1bab67(0x35b)]=0x232c]=_0x1bab67(0x35b),_0xcea129[_0xcea129[_0x1bab67(0x407)]=0x232d]=_0x1bab67(0x407),_0xcea129[_0xcea129[_0x1bab67(0x3c1)]=0x2711]=_0x1bab67(0x3c1),_0xcea129[_0xcea129[_0x1bab67(0x3c2)]=0x2712]=_0x1bab67(0x3c2),_0xcea129[_0xcea129[_0x1bab67(0x1eb)]=0x2713]=_0x1bab67(0x1eb),_0xcea129[_0xcea129['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xcea129[_0xcea129['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xcea129[_0xcea129[_0x1bab67(0x42f)]=0x271b]=_0x1bab67(0x42f),_0xcea129[_0xcea129[_0x1bab67(0x3da)]=0x271c]=_0x1bab67(0x3da),_0xcea129[_0xcea129[_0x1bab67(0x32b)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0xcea129[_0xcea129[_0x1bab67(0x3a7)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xcea129[_0xcea129['YUUMI_AI_RUN_FAILED']=0x271f]=_0x1bab67(0x3c3),_0xcea129[_0xcea129[_0x1bab67(0x2c6)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0xcea129[_0xcea129['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0xcea129[_0xcea129[_0x1bab67(0x30c)]=0x2ee1]=_0x1bab67(0x30c),_0xcea129[_0xcea129[_0x1bab67(0x304)]=0x2ee2]=_0x1bab67(0x304),_0xcea129[_0xcea129[_0x1bab67(0x404)]=0x2ee3]='INVITE_CODE_REQUIRED',_0xcea129[_0xcea129[_0x1bab67(0x2f8)]=0x2ee4]=_0x1bab67(0x2f8),_0xcea129[_0xcea129[_0x1bab67(0x2e1)]=0x2ee5]=_0x1bab67(0x2e1),_0xcea129[_0xcea129[_0x1bab67(0x2cc)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0xcea129[_0xcea129['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x1bab67(0x42c),_0xcea129[_0xcea129['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x1bab67(0x1ee),_0xcea129[_0xcea129[_0x1bab67(0x3f3)]=0x36b1]=_0x1bab67(0x3f3),_0xcea129[_0xcea129[_0x1bab67(0x3c6)]=0x36b2]=_0x1bab67(0x3c6),_0xcea129[_0xcea129[_0x1bab67(0x3c4)]=0x36b3]=_0x1bab67(0x3c4),_0xcea129[_0xcea129[_0x1bab67(0x3c9)]=0x36b4]=_0x1bab67(0x3c9),_0xcea129[_0xcea129['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x1bab67(0x3d5),_0xcea129[_0xcea129[_0x1bab67(0x319)]=0x3716]=_0x1bab67(0x319),_0xcea129[_0xcea129[_0x1bab67(0x330)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0xcea129[_0xcea129[_0x1bab67(0x24f)]=0x37dd]=_0x1bab67(0x24f),_0xcea129[_0xcea129['REDEMPTION_INVALID_CODE']=0x3a99]=_0x1bab67(0x2d9),_0xcea129[_0xcea129[_0x1bab67(0x228)]=0x3a9a]=_0x1bab67(0x228),_0xcea129[_0xcea129[_0x1bab67(0x26d)]=0x3a9b]=_0x1bab67(0x26d),_0xcea129[_0xcea129['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x1bab67(0x416),_0xcea129[_0xcea129[_0x1bab67(0x34e)]=0x3a9d]=_0x1bab67(0x34e),_0xcea129[_0xcea129['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x1bab67(0x216),_0xcea129[_0xcea129['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x1bab67(0x219),_0xcea129[_0xcea129[_0x1bab67(0x276)]=0x3e81]=_0x1bab67(0x276),_0xcea129[_0xcea129[_0x1bab67(0x2b8)]=-0x1]='UNRECOGNIZED',_0xcea129))(Z||{});function En(_0xd2d6a3){const _0x33e377=_0x1bab67;var _0x1fd039,_0x2043e7;const _0x735954=(_0x1fd039=_0xd2d6a3['stageInfo'])==null?void 0x0:_0x1fd039[_0x33e377(0x2e3)],_0x39d30e=((_0x2043e7=_0xd2d6a3[_0x33e377(0x36d)])==null?void 0x0:_0x2043e7['totalFormulasToCalculate'])||0x0;return _0x735954===_0x1a0570[_0x33e377(0x3c5)]&&_0x39d30e>0x0;}function pn(_0x185905){const _0x458d8b=_0x1bab67;return _0x185905[_0x458d8b(0x214)]===_0x16d1f3['SUCCESS'];}var On=Object[_0x1bab67(0x32a)],Tn=(_0x50557e,_0x3c72df,_0x4cbeb7,_0x2c3357)=>{const _0x281125=_0x1bab67;for(var _0xfed756=_0x2c3357>0x1?void 0x0:_0x2c3357?On(_0x3c72df,_0x4cbeb7):_0x3c72df,_0x5dcf20=_0x50557e[_0x281125(0x30a)]-0x1,_0x17e89d;_0x5dcf20>=0x0;_0x5dcf20--)(_0x17e89d=_0x50557e[_0x5dcf20])&&(_0xfed756=_0x17e89d(_0xfed756)||_0xfed756);return _0xfed756;},P=(_0x201b27,_0x50dd81)=>(_0x5f4358,_0x152c3a)=>_0x50dd81(_0x5f4358,_0x152c3a,_0x201b27);const Cn=_0x1bab67(0x3bc),Rn=_0x1bab67(0x240),Dn=_0x1bab67(0x23e);let me=class extends _0x570ab2{constructor(_0x5eb79b,_0x523b7b,_0x4b97e3,_0x37e275,_0x42bfbb,_0x47d393,_0x274f5a){const _0x2a5134=_0x1bab67;super(),_(this,_0x2a5134(0x349),null),_(this,_0x2a5134(0x273),0x0),_(this,_0x2a5134(0x256),0x0),_(this,_0x2a5134(0x238),[]),_(this,_0x2a5134(0x269),0x0),(this[_0x2a5134(0x313)]=_0x5eb79b,this[_0x2a5134(0x22c)]=_0x523b7b,this[_0x2a5134(0x28a)]=_0x4b97e3,this[_0x2a5134(0x2f7)]=_0x37e275,this[_0x2a5134(0x3aa)]=_0x42bfbb,this[_0x2a5134(0x2b2)]=_0x47d393,this[_0x2a5134(0x34c)]=_0x274f5a,this[_0x2a5134(0x257)]());}[_0x1bab67(0x257)](){const _0x7db0dd=_0x1bab67;this[_0x7db0dd(0x24d)](this[_0x7db0dd(0x22c)]['beforeCommandExecuted']((_0x3df36e,_0x3abe07)=>{const _0x15bdca=_0x7db0dd;var _0x328ac8;if(_0x3df36e['id']!==_0x3a24d4['id'])return;const _0xfc4eb=_0x3df36e['params'];if(!this[_0x15bdca(0x333)]((_0x328ac8=_0xfc4eb[_0x15bdca(0x3b6)])!=null?_0x328ac8:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x15bdca(0x298)](_0x3df36e,_0x3abe07),this[_0x15bdca(0x3dd)](),new _0x419811();})),this['disposeWithMe'](this['_commandService'][_0x7db0dd(0x358)]((_0xed3937,_0x661733)=>{const _0x20a785=_0x7db0dd;if(_0xed3937['id']!==_0x3d0d88['id'])return;const _0x15da0e=_0xed3937['params'];if(En(_0x15da0e)){const _0x18ef86=_0x2679ea();this[_0x20a785(0x238)][_0x20a785(0x403)](_0x18ef86),this[_0x20a785(0x375)](_0x18ef86);}else{if(pn(_0x15da0e)&&this[_0x20a785(0x238)]['length']>0x0){const _0x52a0dd=this[_0x20a785(0x238)][_0x20a785(0x2ac)]();this[_0x20a785(0x3bb)](_0x52a0dd);}}}));}[_0x1bab67(0x3d8)](){const _0x3a1715=_0x1bab67;super[_0x3a1715(0x3d8)](),this[_0x3a1715(0x3a8)](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x3a1715(0x273)]=0x0,this[_0x3a1715(0x269)]=0x0;}async[_0x1bab67(0x298)](_0xeb36a2,_0x51314a){const _0x144e70=_0x1bab67;for(let _0x241dbf=0x0;_0x241dbf<0x1e;_0x241dbf++)try{if(await this[_0x144e70(0x28c)](),this['_checkCalculationAvailable']()){this[_0x144e70(0x301)](_0xeb36a2,_0x51314a),this['_messageService'][_0x144e70(0x40b)]({'content':this['_localeService']['t'](_0x144e70(0x3a9)),'type':_0x5d27fe[_0x144e70(0x259)]});return;}await new Promise(_0x13d3f2=>{const _0x2ccfcf=_0x144e70;this[_0x2ccfcf(0x349)]=window[_0x2ccfcf(0x3ec)](_0x13d3f2,0x3e8);});}catch(_0x22ba7b){this[_0x144e70(0x2b2)][_0x144e70(0x253)](_0x22ba7b);}this['_messageService']['show']({'content':this[_0x144e70(0x34c)]['t'](_0x144e70(0x405)),'type':_0x5d27fe['Error']});}[_0x1bab67(0x301)](_0x3e94fe,_0x1d1d7b){const _0x22d9ef=_0x1bab67;try{this[_0x22d9ef(0x22c)][_0x22d9ef(0x271)](_0x3e94fe['id'],_0x3e94fe[_0x22d9ef(0x35c)],_0x1d1d7b);}catch(_0x233f7c){this['_logService'][_0x22d9ef(0x253)](_0x233f7c);}}[_0x1bab67(0x2cf)](_0x482c7f,_0x452890){const _0x74f5f1=_0x1bab67;_0x452890<this[_0x74f5f1(0x269)]||(this['_lastResponseTimestamp']=_0x452890,this[_0x74f5f1(0x273)]=Number[_0x74f5f1(0x2a3)](_0x482c7f[_0x74f5f1(0x2f5)]),this[_0x74f5f1(0x256)]=Number[_0x74f5f1(0x2a3)](_0x482c7f[_0x74f5f1(0x268)]));}async['_startCalculationLimit'](_0x56fea8){const _0x2d3efd=_0x1bab67;var _0xb6dfad,_0x4c3107;const _0x5a210d=Date[_0x2d3efd(0x396)]();try{const _0x5e30b8=((_0xb6dfad=this[_0x2d3efd(0x28a)][_0x2d3efd(0x2d1)](_0x4f0d33))==null?void 0x0:_0xb6dfad[_0x2d3efd(0x233)])||Rn,_0x423d7b=(await this[_0x2d3efd(0x2f7)]['post'](_0x5e30b8,{'body':JSON[_0x2d3efd(0x2e2)]({'taskId':_0x56fea8})}))['body'];if(((_0x4c3107=_0x423d7b['error'])==null?void 0x0:_0x4c3107['code'])!==Z['OK'])return;this[_0x2d3efd(0x2cf)](_0x423d7b['limitInfo'],_0x5a210d);}catch(_0x4746c9){this[_0x2d3efd(0x2b2)][_0x2d3efd(0x253)](_0x4746c9);}}async[_0x1bab67(0x28c)](_0x5abeec){const _0x10666e=_0x1bab67;var _0x16e5cc,_0xf259e7;const _0xff73b1=Date['now']();try{const _0x1d1d32=((_0x16e5cc=this['_configService'][_0x10666e(0x2d1)](_0x4f0d33))==null?void 0x0:_0x16e5cc[_0x10666e(0x3f1)])||Cn,_0x177a49=_0x5abeec?_0x1d1d32+'?taskId='+encodeURIComponent(_0x5abeec):_0x1d1d32,_0x311917=(await this['_httpService'][_0x10666e(0x1e3)](_0x177a49))['body'];if(((_0xf259e7=_0x311917[_0x10666e(0x253)])==null?void 0x0:_0xf259e7[_0x10666e(0x33c)])!==Z['OK'])return;this[_0x10666e(0x2cf)](_0x311917[_0x10666e(0x296)],_0xff73b1);}catch(_0x4e1067){this[_0x10666e(0x2b2)]['error'](_0x4e1067);}}async['_releaseCalculationLimit'](_0x243122){const _0x530cfc=_0x1bab67;var _0x2af619,_0x36f190;const _0x2daa80=Date[_0x530cfc(0x396)]();try{const _0x326d85=((_0x2af619=this[_0x530cfc(0x28a)]['getConfig'](_0x4f0d33))==null?void 0x0:_0x2af619[_0x530cfc(0x213)])||Dn,_0x18a485=(await this[_0x530cfc(0x2f7)][_0x530cfc(0x1f5)](_0x326d85,{'body':JSON[_0x530cfc(0x2e2)]({'taskId':_0x243122})}))[_0x530cfc(0x26c)];if(((_0x36f190=_0x18a485[_0x530cfc(0x253)])==null?void 0x0:_0x36f190[_0x530cfc(0x33c)])!==Z['OK'])return;this[_0x530cfc(0x2cf)](_0x18a485[_0x530cfc(0x296)],_0x2daa80);}catch(_0x28d8e3){this[_0x530cfc(0x2b2)][_0x530cfc(0x253)](_0x28d8e3);}}[_0x1bab67(0x3ca)](){const _0x2766fa=_0x1bab67;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x2766fa(0x273)]-this['_currentUsage']>0x0;}['_clearPolling'](){const _0x54a23f=_0x1bab67;this[_0x54a23f(0x349)]&&(clearTimeout(this[_0x54a23f(0x349)]),this[_0x54a23f(0x349)]=null);}[_0x1bab67(0x3dd)](){const _0x22673c=_0x1bab67;this[_0x22673c(0x313)][_0x22673c(0x40b)]({'content':this[_0x22673c(0x34c)]['t'](_0x22673c(0x1ed)),'type':_0x5d27fe[_0x22673c(0x2e7)]});}[_0x1bab67(0x333)](_0x52cfc7){const _0x55ac19=_0x1bab67;for(const _0xd0616c of _0x52cfc7){const {unitId:_0x325c2f,sheetId:_0x7e3f22,range:_0xd5bae3}=_0xd0616c,_0x2d0433=this[_0x55ac19(0x3aa)][_0x55ac19(0x27a)](_0x325c2f);if(!_0x2d0433)continue;const _0x3d282b=_0x2d0433[_0x55ac19(0x26b)](_0x7e3f22);if(!_0x3d282b)continue;const _0x532673=_0x3d282b['getCellMatrix']();for(let _0x58ad56=_0xd5bae3['startRow'];_0x58ad56<=_0xd5bae3[_0x55ac19(0x2e0)];_0x58ad56++)for(let _0x47f615=_0xd5bae3[_0x55ac19(0x3a0)];_0x47f615<=_0xd5bae3[_0x55ac19(0x35a)];_0x47f615++){const _0x4623ec=_0x532673['getValue'](_0x58ad56,_0x47f615);if(_0x4623ec&&(_0x9c35a0(_0x4623ec['f'])||_0x28c56f(_0x4623ec['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x5a79e2(_0x116021)),P(0x1,_0x34fc9a),P(0x2,_0x52bdc7),P(0x3,_0x5a79e2(_0x1fe289)),P(0x4,_0x3b2157),P(0x5,_0xf1ee96),P(0x6,_0x5a79e2(_0x358b52))],me);var bn=Object['getOwnPropertyDescriptor'],Nn=(_0x4e5161,_0x3eed0f,_0x47f487,_0x247012)=>{const _0xc59411=_0x1bab67;for(var _0x802283=_0x247012>0x1?void 0x0:_0x247012?bn(_0x3eed0f,_0x47f487):_0x3eed0f,_0xd08554=_0x4e5161[_0xc59411(0x30a)]-0x1,_0x1f32c8;_0xd08554>=0x0;_0xd08554--)(_0x1f32c8=_0x4e5161[_0xd08554])&&(_0x802283=_0x1f32c8(_0x802283)||_0x802283);return _0x802283;},Ue=(_0x27b5db,_0x228ee8)=>(_0x100801,_0x4e3d9a)=>_0x228ee8(_0x100801,_0x4e3d9a,_0x27b5db);let He=class extends _0x570ab2{constructor(_0x22ca60,_0x4f645e,_0x4457e7){const _0x295577=_0x1bab67;super(),_(this,_0x295577(0x24c),new Map()),_(this,_0x295577(0x3e8),new Map()),_(this,_0x295577(0x37c),!0x1),(this[_0x295577(0x28a)]=_0x22ca60,this[_0x295577(0x2bf)]=_0x4f645e,this[_0x295577(0x33a)]=_0x4457e7);}[_0x1bab67(0x3c0)](){const _0x103abf=_0x1bab67;this[_0x103abf(0x37c)]=!0x0;}[_0x1bab67(0x412)](){const _0x44c9ad=_0x1bab67;this[_0x44c9ad(0x37c)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x1bab67(0x3d8)](){const _0x295e8e=_0x1bab67;this[_0x295e8e(0x39a)]()[_0x295e8e(0x1f3)](()=>super[_0x295e8e(0x3d8)]());}async[_0x1bab67(0x2fb)](_0x395bfa){const _0xde58a4=_0x1bab67;return this[_0xde58a4(0x37c)]?null:this[_0xde58a4(0x2bf)][_0xde58a4(0x258)](_0x35f275(_0x395bfa));}async['saveOfflineData'](_0x439c51,_0x5ae5ea){const _0x3d69dc=_0x1bab67;return!!this[_0x3d69dc(0x2bf)]['setItem'](_0x439c51,_0x5ae5ea);}[_0x1bab67(0x21e)](_0x111f29,_0x46792c,_0x174c4d,_0x52e134){const _0x2c35a7=_0x1bab67,_0x59a5a1=this['_revisionService'][_0x2c35a7(0x23d)](_0x111f29);this[_0x2c35a7(0x24c)][_0x2c35a7(0x25f)](_0x111f29,{'unitID':_0x111f29,'type':_0x46792c,'awaitingChangeset':_0x174c4d,'mutations':_0x52e134,'rev':_0x59a5a1}),this['_saveTaskMap']['has'](_0x111f29)||this[_0x2c35a7(0x20b)](_0x111f29);}[_0x1bab67(0x20b)](_0x3cd427){const _0x1a1477=_0x1bab67,_0x4aee2b=this[_0x1a1477(0x2df)]();_0x4aee2b===0x0?this[_0x1a1477(0x2d0)](_0x3cd427):this[_0x1a1477(0x3e8)]['set'](_0x3cd427,setTimeout(()=>this['_saveCache'](_0x3cd427),_0x4aee2b));}['_getSaveTimeout'](){var _0xad11c5;return(_0xad11c5=this['_configService']['getConfig'](_0x295962))!=null?_0xad11c5:_0x389196;}[_0x1bab67(0x2d0)](_0x47085a){const _0x35b8f5=_0x1bab67,_0x3fbe48=this[_0x35b8f5(0x3e8)][_0x35b8f5(0x1e3)](_0x47085a);return _0x3fbe48!==void 0x0&&window[_0x35b8f5(0x350)](_0x3fbe48),this[_0x35b8f5(0x2bf)][_0x35b8f5(0x377)](_0x35f275(_0x47085a),this['_cachedData'][_0x35b8f5(0x1e3)](_0x47085a))['then'](()=>this[_0x35b8f5(0x3e8)][_0x35b8f5(0x3ae)](_0x47085a));}async[_0x1bab67(0x39a)](){const _0x925981=_0x1bab67,_0x47de7f=[];this[_0x925981(0x3e8)][_0x925981(0x36c)]((_0x50ea1c,_0x2652ac)=>{const _0x5a85df=_0x925981;window['clearTimeout'](_0x50ea1c),_0x47de7f[_0x5a85df(0x403)](this['_saveCache'](_0x2652ac)['then'](()=>{const _0x5df51b=_0x5a85df;this['_saveTaskMap'][_0x5df51b(0x3ae)](_0x2652ac);}));}),await Promise[_0x925981(0x334)](_0x47de7f);}};He=Nn([Ue(0x0,_0x52bdc7),Ue(0x1,_0x5852d4),Ue(0x2,_0x5a79e2(_0x10ef4a))],He);class Ln extends _0xb8eb03{constructor(){const _0x66c0e1=_0x1bab67;super(),_(this,_0x66c0e1(0x204)),this['urlChange$']=_0x5af89f(window,_0x66c0e1(0x27c))['pipe'](_0x4cbc42(this[_0x66c0e1(0x297)]),_0x3b24b5(0x1),_0x50b777(void 0x0));}[_0x1bab67(0x326)](_0x3cd443,_0x275a8e,_0x40451d=!0x1){const _0x419f64=_0x1bab67,_0x39b0e7=new URL(window['location']['href']);_0x39b0e7[_0x419f64(0x2f4)][_0x419f64(0x25f)](_0x3cd443,_0x275a8e),_0x40451d?window[_0x419f64(0x248)][_0x419f64(0x3f9)]('','',_0x39b0e7['toString']()):window[_0x419f64(0x248)][_0x419f64(0x35f)]('','',_0x39b0e7[_0x419f64(0x1dd)]());}[_0x1bab67(0x39c)](_0x5603c7,_0x351953=!0x1){const _0x12b9cf=_0x1bab67,_0x1cc1be=new URL(window[_0x12b9cf(0x37d)]['href']);_0x1cc1be['searchParams'][_0x12b9cf(0x3ae)](_0x5603c7),_0x351953?window[_0x12b9cf(0x248)][_0x12b9cf(0x3f9)]('','',_0x1cc1be[_0x12b9cf(0x1dd)]()):window['history'][_0x12b9cf(0x35f)]('','',_0x1cc1be[_0x12b9cf(0x1dd)]());}['getParam'](_0x2eeb49){const _0x411ad8=_0x1bab67;var _0x1aacf4;return(_0x1aacf4=new URL(window[_0x411ad8(0x37d)][_0x411ad8(0x380)])[_0x411ad8(0x2f4)][_0x411ad8(0x1e3)](_0x2eeb49))!=null?_0x1aacf4:void 0x0;}}var Un=Object['defineProperty'],Mn=Object[_0x1bab67(0x32a)],An=(_0x541a78,_0x3a5997,_0x16973b)=>_0x3a5997 in _0x541a78?Un(_0x541a78,_0x3a5997,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16973b}):_0x541a78[_0x3a5997]=_0x16973b,Pn=(_0x5cdc82,_0x3dbb8c,_0x28a760,_0x241a83)=>{const _0x402c74=_0x1bab67;for(var _0x25ef7b=_0x241a83>0x1?void 0x0:_0x241a83?Mn(_0x3dbb8c,_0x28a760):_0x3dbb8c,_0x290f4c=_0x5cdc82[_0x402c74(0x30a)]-0x1,_0x162106;_0x290f4c>=0x0;_0x290f4c--)(_0x162106=_0x5cdc82[_0x290f4c])&&(_0x25ef7b=_0x162106(_0x25ef7b)||_0x25ef7b);return _0x25ef7b;},Me=(_0x518f37,_0x368680)=>(_0x26db83,_0x35e957)=>_0x368680(_0x26db83,_0x35e957,_0x518f37),wn=(_0x3dde04,_0x5ba1be,_0x5a95c5)=>An(_0x3dde04,_0x5ba1be+'',_0x5a95c5);const yn=_0x1bab67(0x394);let Ye=class extends _0x26861e{constructor(_0x294979=_t,_0x491ea2,_0xd321fd,_0x413208){const _0x170122=_0x1bab67;super(),this[_0x170122(0x292)]=_0x294979,this[_0x170122(0x21b)]=_0x491ea2,this[_0x170122(0x428)]=_0xd321fd,this[_0x170122(0x28a)]=_0x413208;const {..._0x329984}=_0x2b8749({},_t,this[_0x170122(0x292)]);this[_0x170122(0x28a)][_0x170122(0x23c)](hn,_0x329984);}[_0x1bab67(0x2e9)](){const _0x1688af=_0x1bab67;this[_0x1688af(0x314)](),this[_0x1688af(0x418)]();}[_0x1bab67(0x211)](){const _0x39638c=_0x1bab67;this[_0x39638c(0x1e1)]();}[_0x1bab67(0x314)](){const _0x2dc4d0=_0x1bab67;var _0x22b2e6;const _0xe7b362=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0xc715c1,{'useClass':_0x1b48bb}],[_0x47e6d9,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x2dc4d0(0x292)][_0x2dc4d0(0x283)]&&_0xe7b362[_0x2dc4d0(0x403)]([le]),_0x28fdc0(this[_0x2dc4d0(0x428)],_0x7f7db3(_0xe7b362,(_0x22b2e6=this['_config'])==null?void 0x0:_0x22b2e6['override']));}[_0x1bab67(0x1e1)](){const _0x3a2776=_0x1bab67;this[_0x3a2776(0x24d)](this[_0x3a2776(0x21b)][_0x3a2776(0x2c4)](_0x547011[_0x3a2776(0x265)],[Fe])),this[_0x3a2776(0x24d)](this['_renderManagerService']['registerRenderModule'](_0x547011[_0x3a2776(0x39b)],[ke]));}[_0x1bab67(0x418)](){const _0x15d570=_0x1bab67;_0x4c947a(this[_0x15d570(0x428)],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x15d570(0x292)][_0x15d570(0x283)]&&_0x4c947a(this[_0x15d570(0x428)],[[le]]);}};wn(Ye,_0x1bab67(0x3a2),yn),Ye=Pn([_0x32854b(_0x306f7d),Me(0x1,_0x1eaf53),Me(0x2,_0x5a79e2(_0x41a636)),Me(0x3,_0x52bdc7)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x4299c9,_0x1a1e5f,_0xd2c2eb,_0xe755f2)=>{const _0x3b9a43=_0x1bab67;for(var _0x42afda=_0xe755f2>0x1?void 0x0:_0xe755f2?$n(_0x1a1e5f,_0xd2c2eb):_0x1a1e5f,_0x162506=_0x4299c9[_0x3b9a43(0x30a)]-0x1,_0x388fca;_0x162506>=0x0;_0x162506--)(_0x388fca=_0x4299c9[_0x162506])&&(_0x42afda=_0x388fca(_0x42afda)||_0x42afda);return _0x42afda;},J=(_0x2f816a,_0x2a0e6f)=>(_0x26c6f4,_0x5edc9b)=>_0x2a0e6f(_0x26c6f4,_0x5edc9b,_0x2f816a);let ut=class extends _0x5160fc{constructor(_0x3fc811,_0xe2461c,_0x439fc9,_0x4c9bf9,_0x5966b6){super(_0x3fc811,_0xe2461c,_0x439fc9,_0x4c9bf9,_0x5966b6);}async[_0x1bab67(0x2d6)](_0xb9cf7c){const _0x456625=_0x1bab67,_0x26e8d2=await this[_0x456625(0x397)](),_0x37e9c2=this['_createSocketURL'](_0xb9cf7c,_0x26e8d2);return this[_0x456625(0x230)](_0x37e9c2);}[_0x1bab67(0x2a0)](_0xe07cd9,_0x2f05f6){const _0x431bc7=_0x1bab67,_0x4672a8=typeof window>'u'?new URL(_0xe07cd9):new URL(_0xe07cd9,window[_0x431bc7(0x37d)][_0x431bc7(0x357)]);_0x4672a8[_0x431bc7(0x2f4)][_0x431bc7(0x25f)]('sessionTicket',_0x2f05f6);const _0xa03114=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0xa03114[_0x431bc7(0x1e3)](_0x431bc7(0x3a1))&&_0x4672a8['searchParams']['set'](_0x431bc7(0x3a1),_0xa03114[_0x431bc7(0x1e3)](_0x431bc7(0x3a1))),_0x4672a8[_0x431bc7(0x1dd)]();}async[_0x1bab67(0x397)](){const _0x49be66=_0x1bab67;var _0x4745cd,_0x21c98f,_0x58b638;const _0x45a2a5=this['_configService'][_0x49be66(0x2d1)](_0x4f0d33),_0x2fcc0f=(_0x4745cd=_0x45a2a5==null?void 0x0:_0x45a2a5[_0x49be66(0x3a4)])!=null?_0x4745cd:_0x38397b;return(_0x58b638=(_0x21c98f=(await this[_0x49be66(0x2f7)]['get'](_0x2fcc0f,{'headers':{'Content-Type':_0x49be66(0x223)}}))[_0x49be66(0x26c)])==null?void 0x0:_0x21c98f[_0x49be66(0x260)])!=null?_0x58b638:'';}};ut=xn([J(0x0,_0x5a79e2(_0x41a636)),J(0x1,_0x5a79e2(_0x1fe289)),J(0x2,_0x52bdc7),J(0x3,_0xf1ee96),J(0x4,_0x24fc69)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x42bf5a,_0x577365,_0x24ccc5,_0x47968e)=>{for(var _0x4d7045=_0x47968e>0x1?void 0x0:_0x47968e?Bn(_0x577365,_0x24ccc5):_0x577365,_0x2f532e=_0x42bf5a['length']-0x1,_0x10d435;_0x2f532e>=0x0;_0x2f532e--)(_0x10d435=_0x42bf5a[_0x2f532e])&&(_0x4d7045=_0x10d435(_0x4d7045)||_0x4d7045);return _0x4d7045;},Ae=(_0x233cb5,_0x34c186)=>(_0x4c4e71,_0x5478f9)=>_0x34c186(_0x4c4e71,_0x5478f9,_0x233cb5);let dt=class extends _0x570ab2{constructor(_0x3f9285,_0x1119b0,_0x41e95c){const _0x26bc03=_0x1bab67;super(),this[_0x26bc03(0x34f)]=_0x3f9285,this['_httpService']=_0x1119b0,this[_0x26bc03(0x28a)]=_0x41e95c;}async[_0x1bab67(0x2d4)](_0x6d7b95,_0x226768,_0x5a14c9,..._0x6c9a18){const _0x896c2=_0x1bab67;var _0x2435a6,_0x4bf95d,_0x399121,_0x4310e4;const _0x2b7947=this[_0x896c2(0x34f)][_0x896c2(0x3cc)]();if(!_0x2b7947)throw new Error(_0x896c2(0x2db));const _0x42f36c=((_0x2435a6=this[_0x896c2(0x28a)][_0x896c2(0x2d1)](_0x48ebf0))!=null?_0x2435a6:_0x21d34e)+'/'+_0x6d7b95+_0x896c2(0x29e)+_0x226768,_0x314af8=new URL(window[_0x896c2(0x37d)]['href']),_0x57d8f5={'scriptId':_0x6d7b95,'runId':(_0x4bf95d=_0x314af8['searchParams'][_0x896c2(0x1e3)](_0x896c2(0x3a1)))!=null?_0x4bf95d:'','function':_0x226768,'unitId':_0x2b7947[_0x896c2(0x3e6)](),'argsOfFunction':JSON[_0x896c2(0x2e2)](_0x6c9a18),'invokeId':(_0x399121=_0x5a14c9[_0x896c2(0x3fd)])!=null?_0x399121:'','executionId':(_0x4310e4=_0x5a14c9[_0x896c2(0x2c3)])!=null?_0x4310e4:''};try{const _0x121db4=await this['_httpService'][_0x896c2(0x1f5)](_0x42f36c,{'body':_0x57d8f5});return _0x121db4[_0x896c2(0x26c)][_0x896c2(0x253)]&&_0x121db4[_0x896c2(0x26c)][_0x896c2(0x253)][_0x896c2(0x33c)]!==Z['OK']?_0x896c2(0x250):_0x121db4[_0x896c2(0x26c)][_0x896c2(0x31e)];}catch{return _0x896c2(0x250);}}};dt=Fn([Ae(0x0,_0x3b2157),Ae(0x1,_0x5a79e2(_0x1fe289)),Ae(0x2,_0x52bdc7)],dt);const St=0x7530,mt=_0x1bab67(0x37f);class rr extends _0x570ab2{constructor(){const _0x4f9369=_0x1bab67;super(),_(this,_0x4f9369(0x415),_0x2679ea()),_(this,_0x4f9369(0x3dc),new Set()),_(this,_0x4f9369(0x324),new Map()),_(this,_0x4f9369(0x3a6),null),_(this,_0x4f9369(0x1dc),new Map()),_(this,'_unitStatus',new Map()),this[_0x4f9369(0x38f)]();}[_0x1bab67(0x3d8)](){const _0x2ff711=_0x1bab67;super[_0x2ff711(0x3d8)](),this[_0x2ff711(0x1dc)][_0x2ff711(0x36c)]((_0x9c32a1,_0x3998e0)=>this[_0x2ff711(0x41a)](_0x3998e0)),this[_0x2ff711(0x3a6)]&&window[_0x2ff711(0x21d)](this[_0x2ff711(0x3a6)]);}[_0x1bab67(0x215)](_0x2ae0c){const _0x57545d=_0x1bab67;return this['_ensureSubject'](_0x2ae0c)[_0x57545d(0x3e7)](_0x7cced5());}[_0x1bab67(0x328)](_0x5e27fb){const _0x30b8ce=_0x1bab67;this[_0x30b8ce(0x3dc)][_0x30b8ce(0x40a)]===0x0&&this[_0x30b8ce(0x295)](),this[_0x30b8ce(0x3dc)]['add'](_0x5e27fb),this[_0x30b8ce(0x411)]({'type':0x0,'memberID':this[_0x30b8ce(0x415)],'unitIDs':[_0x5e27fb],'isForwarded':!0x1});}[_0x1bab67(0x1fe)](_0xae58f9){const _0x26ca78=_0x1bab67;this[_0x26ca78(0x3dc)][_0x26ca78(0x3ae)](_0xae58f9),this[_0x26ca78(0x3dc)][_0x26ca78(0x40a)]===0x0&&this[_0x26ca78(0x3a6)]&&window[_0x26ca78(0x21d)](this[_0x26ca78(0x3a6)]);}[_0x1bab67(0x38f)](){const _0x36383b=_0x1bab67;this[_0x36383b(0x24d)](_0x2b2711(_0x5af89f(window,_0x36383b(0x34b))[_0x36383b(0x401)](_0x4b7dda=>{const _0x57c1f7=_0x36383b;if(_0x4b7dda[_0x57c1f7(0x3b3)]!==mt||!_0x4b7dda[_0x57c1f7(0x225)])return;const _0xf642a6=JSON[_0x57c1f7(0x28b)](_0x4b7dda[_0x57c1f7(0x225)]);this[_0x57c1f7(0x390)](_0xf642a6);}))),window['addEventListener'](_0x36383b(0x359),()=>this[_0x36383b(0x411)]({'type':0x1,'memberID':this[_0x36383b(0x415)],'unitIDs':Array['from'](this[_0x36383b(0x3dc)])}));}['_handleEvent'](_0x28f950){const _0x4f36da=_0x1bab67;switch(_0x28f950[_0x4f36da(0x227)]){case 0x0:this[_0x4f36da(0x28d)](_0x28f950);break;case 0x1:this[_0x4f36da(0x3ff)](_0x28f950);break;case 0x2:this[_0x4f36da(0x335)](_0x28f950);break;}}[_0x1bab67(0x28d)](_0x2d1056){const _0x348798=_0x1bab67,{unitIDs:_0x820e6e,memberID:_0x181e2c,isForwarded:_0x38ad17}=_0x2d1056;_0x820e6e[_0x348798(0x36c)](_0x5b45fa=>{const _0x3250ae=_0x348798;if(!_0x38ad17&&this[_0x3250ae(0x324)][_0x3250ae(0x1f7)](_0x5b45fa)&&this[_0x3250ae(0x294)](_0x5b45fa)[_0x3250ae(0x419)](_0x1daf11[_0x3250ae(0x237)]),!this['_unitOnClients'][_0x3250ae(0x1f7)](_0x5b45fa)||!this[_0x3250ae(0x324)][_0x3250ae(0x1e3)](_0x5b45fa)[_0x3250ae(0x1f7)](_0x181e2c)){const _0x35945d=this['_unitOnClients'][_0x3250ae(0x1e3)](_0x5b45fa)||new Set();_0x35945d['add'](_0x181e2c),this[_0x3250ae(0x324)][_0x3250ae(0x25f)](_0x5b45fa,_0x35945d),this['_scheduleClearOtherTimer'](_0x181e2c);}}),_0x38ad17||this['_send']({'type':0x0,'memberID':this[_0x348798(0x415)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x1bab67(0x224)](_0x436036){const _0x36c947=_0x1bab67;this[_0x36c947(0x41a)](_0x436036);const _0x105532=window['setTimeout'](()=>{const _0x467531=_0x36c947;this[_0x467531(0x324)][_0x467531(0x36c)](_0x753a77=>{const _0x567aca=_0x467531;_0x753a77[_0x567aca(0x3ae)](_0x436036);});},St*0x2);this[_0x36c947(0x1dc)][_0x36c947(0x25f)](_0x436036,_0x105532);}[_0x1bab67(0x41a)](_0x43200c){const _0x2598a1=_0x1bab67;if(this[_0x2598a1(0x1dc)][_0x2598a1(0x1f7)](_0x43200c)){const _0x2e6a57=this[_0x2598a1(0x1dc)]['get'](_0x43200c);_0x2e6a57&&window['clearTimeout'](_0x2e6a57),this['_clearOtherTimers'][_0x2598a1(0x25f)](_0x43200c,null);}}[_0x1bab67(0x3ff)](_0x3c2cce){const _0x23b7a4=_0x1bab67,{memberID:_0x169865,unitIDs:_0x221d6f}=_0x3c2cce;_0x221d6f['forEach'](_0x21eae4=>{const _0x2e5c67=_0x4050;var _0x4f8f3d;const _0x55d67b=this['_unitOnClients'][_0x2e5c67(0x1e3)](_0x21eae4);_0x55d67b&&(_0x55d67b['delete'](_0x169865),(_0x4f8f3d=this['_ensureSubject'](_0x21eae4))==null||_0x4f8f3d[_0x2e5c67(0x419)](_0x55d67b[_0x2e5c67(0x40a)]===0x0?_0x1daf11[_0x2e5c67(0x247)]:_0x1daf11[_0x2e5c67(0x237)]));}),this[_0x23b7a4(0x41a)](_0x169865);}[_0x1bab67(0x335)](_0x5aba59){const _0x48cb28=_0x1bab67;this[_0x48cb28(0x224)](_0x5aba59['memberID']);}['_send'](_0xdaa409){const _0x309643=_0x1bab67;localStorage[_0x309643(0x377)](mt,JSON[_0x309643(0x2e2)](_0xdaa409));}[_0x1bab67(0x295)](){const _0x5e399d=_0x1bab67;this[_0x5e399d(0x3a6)]=window[_0x5e399d(0x31c)](()=>{const _0x1c980f=_0x5e399d;this[_0x1c980f(0x411)]({'type':0x2,'memberID':this['_id']});},St);}[_0x1bab67(0x294)](_0x426075){const _0x3b0d42=_0x1bab67;return this[_0x3b0d42(0x30b)][_0x3b0d42(0x1f7)](_0x426075)||this['_unitStatus'][_0x3b0d42(0x25f)](_0x426075,new _0x42c9f3(_0x1daf11['NO_OTHER_CLIENTS_EDITING'])),this[_0x3b0d42(0x30b)][_0x3b0d42(0x1e3)](_0x426075);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|