@univerjs-pro/collaboration-client-ui 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x195df1=_0x24c8;(function(_0x1321df,_0xc2399e){const _0x32403e=_0x24c8,_0x5b2fcc=_0x1321df();while(!![]){try{const _0x4023df=-parseInt(_0x32403e(0x1aa))/0x1+-parseInt(_0x32403e(0x1ad))/0x2*(-parseInt(_0x32403e(0x1b0))/0x3)+-parseInt(_0x32403e(0x1b2))/0x4+parseInt(_0x32403e(0x1b6))/0x5*(-parseInt(_0x32403e(0x1ac))/0x6)+-parseInt(_0x32403e(0x1b3))/0x7*(parseInt(_0x32403e(0x1b4))/0x8)+parseInt(_0x32403e(0x1b1))/0x9*(-parseInt(_0x32403e(0x1a6))/0xa)+parseInt(_0x32403e(0x1af))/0xb;if(_0x4023df===_0xc2399e)break;else _0x5b2fcc['push'](_0x5b2fcc['shift']());}catch(_0x3348b6){_0x5b2fcc['push'](_0x5b2fcc['shift']());}}}(_0x2a51,0xe621d));const t=require(_0x195df1(0x1a9)),e=require(_0x195df1(0x1ae));function _0x2a51(){const _0x37a3b4=['8lswBrK','get','1189245iTrfjT','30GkndPg','FUniver','runOnServer','@univerjs-pro/collaboration-client-ui','1381254EdXXVB','extend','18FlzdiN','4sumTKG','@univerjs/core/facade','54240450HjsaEU','700242bxYUvz','1432926PZwaoE','4188992lJafJC','5848262qQjJAO'];_0x2a51=function(){return _0x37a3b4;};return _0x2a51();}function _0x24c8(_0x5cdc4c,_0x5bed0b){const _0x2a51a3=_0x2a51();return _0x24c8=function(_0x24c803,_0x51fab2){_0x24c803=_0x24c803-0x1a6;let _0x3f316b=_0x2a51a3[_0x24c803];return _0x3f316b;},_0x24c8(_0x5cdc4c,_0x5bed0b);}class c extends e['FUniver']{[_0x195df1(0x1a8)](_0x4d34a3,_0x4065e1,..._0x492f10){const _0x138806=_0x195df1;return this['_injector'][_0x138806(0x1b5)](t['RemoteUniscriptService'])['runOnServer'](_0x4d34a3,_0x4065e1,{},..._0x492f10);}}e[_0x195df1(0x1a7)][_0x195df1(0x1ab)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x114f12=_0x7083;function _0x7083(_0x312793,_0x359a0e){const _0x46c80b=_0x46c8();return _0x7083=function(_0x708385,_0x2a84a0){_0x708385=_0x708385-0x142;let _0x41df07=_0x46c80b[_0x708385];return _0x41df07;},_0x7083(_0x312793,_0x359a0e);}(function(_0x53c7f3,_0x539307){const _0x3ce03d=_0x7083,_0xa41b3=_0x53c7f3();while(!![]){try{const _0x364858=parseInt(_0x3ce03d(0x2ff))/0x1*(-parseInt(_0x3ce03d(0x21c))/0x2)+parseInt(_0x3ce03d(0x37e))/0x3+parseInt(_0x3ce03d(0x308))/0x4+parseInt(_0x3ce03d(0x1aa))/0x5+-parseInt(_0x3ce03d(0x31d))/0x6+-parseInt(_0x3ce03d(0x175))/0x7*(parseInt(_0x3ce03d(0x2ec))/0x8)+-parseInt(_0x3ce03d(0x302))/0x9;if(_0x364858===_0x539307)break;else _0xa41b3['push'](_0xa41b3['shift']());}catch(_0x5743bd){_0xa41b3['push'](_0xa41b3['shift']());}}}(_0x46c8,0xd175f));var Ve=Object[_0x114f12(0x283)],Ge=(_0x5cf16b,_0x2096f8,_0x5e14fc)=>_0x2096f8 in _0x5cf16b?Ve(_0x5cf16b,_0x2096f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e14fc}):_0x5cf16b[_0x2096f8]=_0x5e14fc,h=(_0x15763f,_0x1a6b13,_0x43f9d4)=>Ge(_0x15763f,typeof _0x1a6b13!='symbol'?_0x1a6b13+'':_0x1a6b13,_0x43f9d4);Object[_0x114f12(0x283)](exports,Symbol['toStringTag'],{'value':_0x114f12(0x3b0)});const u=require(_0x114f12(0x19d)),a=require(_0x114f12(0x23a)),p=require(_0x114f12(0x16c)),q=require(_0x114f12(0x2c6)),b=require(_0x114f12(0x199)),qe=require(_0x114f12(0x1e3)),d=require(_0x114f12(0x1ad)),Y=require(_0x114f12(0x1a4)),m=require(_0x114f12(0x30c)),Te=require('@univerjs/engine-formula'),I=require(_0x114f12(0x316)),$=require(_0x114f12(0x257)),G=require('@univerjs/sheets-ui'),w=require(_0x114f12(0x2dc)),R=require('@univerjs/ui'),T=require(_0x114f12(0x1a8)),P=require('react'),Ke=require(_0x114f12(0x342));var ze=Object[_0x114f12(0x358)],Je=(_0x1da828,_0x38520b,_0x3d608f,_0x44f9bf)=>{const _0x29dba1=_0x114f12;for(var _0x31b5c9=_0x44f9bf>0x1?void 0x0:_0x44f9bf?ze(_0x38520b,_0x3d608f):_0x38520b,_0x54f5f4=_0x1da828[_0x29dba1(0x200)]-0x1,_0x5e4486;_0x54f5f4>=0x0;_0x54f5f4--)(_0x5e4486=_0x1da828[_0x54f5f4])&&(_0x31b5c9=_0x5e4486(_0x31b5c9)||_0x31b5c9);return _0x31b5c9;},Re=(_0x310ddb,_0x45fc50)=>(_0x486716,_0xbd7c8e)=>_0x45fc50(_0x486716,_0xbd7c8e,_0x310ddb);let fe=class extends a[_0x114f12(0x1de)]{constructor(_0x431c66,_0x3a3ee6){const _0x419d8f=_0x114f12;super(),this[_0x419d8f(0x2ca)]=_0x431c66,this['_imageIoService']=_0x3a3ee6,this[_0x419d8f(0x1f3)]();}[_0x114f12(0x1f3)](){const _0x202e92=_0x114f12,_0x3c3742=this;this[_0x202e92(0x19c)](this[_0x202e92(0x2ca)][_0x202e92(0x220)]({'onBeforePasteImage':async _0x37f8f4=>{const _0x6c2370=_0x202e92,_0xc8f01d=await _0x3c3742[_0x6c2370(0x30a)]['saveImage'](_0x37f8f4);return _0xc8f01d?{'source':_0xc8f01d[_0x6c2370(0x259)],'imageSourceType':_0xc8f01d['imageSourceType']}:null;}}));}};fe=Je([Re(0x0,b[_0x114f12(0x1f2)]),Re(0x1,qe['IImageIoService'])],fe);const Oe=['purple300',_0x114f12(0x314),_0x114f12(0x223),_0x114f12(0x1bd),'blue400',_0x114f12(0x39f)];class Ce extends a[_0x114f12(0x22e)]{constructor(){const _0x43dfed=_0x114f12;super(...arguments),h(this,_0x43dfed(0x180),new Map()),h(this,_0x43dfed(0x251),0x0);}[_0x114f12(0x30f)](_0x5089d5){const _0x140ab8=_0x114f12;if(this[_0x140ab8(0x180)][_0x140ab8(0x3bc)](_0x5089d5))return this[_0x140ab8(0x180)]['get'](_0x5089d5);const _0x55acc1=Oe[this['_colorIndex']];return this[_0x140ab8(0x251)]=(this[_0x140ab8(0x251)]+0x1)%Oe['length'],this[_0x140ab8(0x180)]['set'](_0x5089d5,_0x55acc1),_0x55acc1;}}function Le(_0x27e14a){let _0x4efd5f='';for(const _0x992067 of _0x27e14a){const {startOffset:_0x3e2319,endOffset:_0x590cfe,isActive:_0x28bc28,rangeType:_0x2ab53f,segmentId:_0x283a53,segmentPage:_0x354fc0}=_0x992067;_0x4efd5f['length']&&(_0x4efd5f+=','),_0x4efd5f+=_0x3e2319+':'+_0x590cfe+':'+(_0x28bc28?'1':'0')+':'+_0x2ab53f+':'+_0x283a53+':'+_0x354fc0;}return _0x4efd5f;}function Ze(_0x5ad32){const _0x3825db=_0x114f12,_0x46895d=_0x5ad32[_0x3825db(0x274)](','),_0x177791=[];for(const _0x1954db of _0x46895d){const [_0x9cf51a,_0x2774e8,_0x24d5f3,_0x4986e3,_0x147260,_0x181813]=_0x1954db[_0x3825db(0x274)](':');_0x177791['push']({'startOffset':Number(_0x9cf51a),'endOffset':Number(_0x2774e8),'collapsed':_0x9cf51a===_0x2774e8,'isActive':_0x24d5f3==='1','rangeType':_0x4986e3===a['DOC_RANGE_TYPE'][_0x3825db(0x27e)]?a[_0x3825db(0x2ab)][_0x3825db(0x27e)]:a[_0x3825db(0x2ab)][_0x3825db(0x2fa)],'segmentId':typeof _0x147260=='string'?String(_0x147260):'','segmentPage':Number(_0x181813!=null?_0x181813:-0x1)});}return _0x177791[_0x3825db(0x179)](_0x3ad045=>_0x3ad045[_0x3825db(0x361)])||(_0x177791[0x0][_0x3825db(0x361)]=!0x0),_0x177791;}class pe extends a[_0x114f12(0x1de)]{constructor(){const _0x3f69ab=_0x114f12;super(...arguments),h(this,_0x3f69ab(0x287),new d['BehaviorSubject'](null)),h(this,_0x3f69ab(0x233),this[_0x3f69ab(0x287)]['asObservable']());}[_0x114f12(0x37d)](_0x13cdfd){const _0x3e7ba0=_0x114f12,{unitID:_0x495b7d,memberID:_0x493073,textRanges:_0x225f8a}=_0x13cdfd,_0x16e77e=Le(_0x225f8a);if(_0x16e77e==='')return;const _0x344ff4={'unitID':_0x495b7d,'memberID':_0x493073,'selection':_0x16e77e};this[_0x3e7ba0(0x287)][_0x3e7ba0(0x157)](_0x344ff4);}}var Qe=Object[_0x114f12(0x358)],et=(_0x449550,_0x577be7,_0x4e9023,_0x57e4b1)=>{const _0x1f12bd=_0x114f12;for(var _0x584e2e=_0x57e4b1>0x1?void 0x0:_0x57e4b1?Qe(_0x577be7,_0x4e9023):_0x577be7,_0x596dd3=_0x449550[_0x1f12bd(0x200)]-0x1,_0x50c861;_0x596dd3>=0x0;_0x596dd3--)(_0x50c861=_0x449550[_0x596dd3])&&(_0x584e2e=_0x50c861(_0x584e2e)||_0x584e2e);return _0x584e2e;},N=(_0x2c3f67,_0x2d2284)=>(_0x1374ef,_0x2ba0e8)=>_0x2d2284(_0x1374ef,_0x2ba0e8,_0x2c3f67);const tt=0x12c,st=0x64;let Se=class extends a[_0x114f12(0x1de)]{constructor(_0x33b385,_0x5abc06,_0xba1636,_0x152d21,_0x38aaae,_0x2fbe72,_0x5bbee2,_0x2b1c10,_0x5d7429){const _0x4fe631=_0x114f12;super(),h(this,'_online',!0x1),h(this,_0x4fe631(0x1f3),!0x1),h(this,_0x4fe631(0x23c),new d[(_0x4fe631(0x38e))](new Map())),h(this,_0x4fe631(0x2ae),this[_0x4fe631(0x23c)][_0x4fe631(0x158)]()),h(this,_0x4fe631(0x36a),new d[(_0x4fe631(0x38e))]([])),h(this,_0x4fe631(0x1cb),this[_0x4fe631(0x36a)][_0x4fe631(0x3bb)](d['debounceTime'](tt))),h(this,'_updateLocalCursor',a[_0x4fe631(0x239)](_0x7b3567=>{const _0x4fff24=_0x4fe631,_0x2309da={'eventID':m[_0x4fff24(0x25f)][_0x4fff24(0x35e)],'data':{'unitID':this[_0x4fff24(0x26c)],'memberID':this[_0x4fff24(0x381)]['getMemberID'](),'selection':Le(_0x7b3567)}};this[_0x4fff24(0x381)]['send'](_0x2309da,this['unitID']);},st)),(this['unitID']=_0x33b385,this[_0x4fe631(0x381)]=_0x5abc06,this[_0x4fe631(0x39b)]=_0xba1636,this[_0x4fe631(0x1a3)]=_0x152d21,this[_0x4fe631(0x1a0)]=_0x38aaae,this['_syncEditingCollabCursorService']=_0x2fbe72,this[_0x4fe631(0x372)]=_0x5bbee2,this[_0x4fe631(0x288)]=_0x2b1c10,this[_0x4fe631(0x395)]=_0x5d7429);}get[_0x114f12(0x1a6)](){const _0x9d0d21=_0x114f12;return this[_0x9d0d21(0x23c)]['getValue']();}get[_0x114f12(0x194)](){const _0x589164=_0x114f12;return this['_roomMembers$'][_0x589164(0x397)]();}[_0x114f12(0x2bc)](){const _0x5a3bd7=_0x114f12;super[_0x5a3bd7(0x2bc)](),this[_0x5a3bd7(0x23c)]['next'](new Map()),this[_0x5a3bd7(0x23c)]['complete'](),this[_0x5a3bd7(0x36a)][_0x5a3bd7(0x157)]([]),this[_0x5a3bd7(0x36a)][_0x5a3bd7(0x34f)]();}[_0x114f12(0x345)](){const _0xfa6f56=_0x114f12;this[_0xfa6f56(0x1f3)]||(this[_0xfa6f56(0x1f3)]=!0x0,this[_0xfa6f56(0x381)][_0xfa6f56(0x344)][_0xfa6f56(0x3bb)](d['takeUntil'](this[_0xfa6f56(0x350)]))[_0xfa6f56(0x2d5)](_0x430fab=>{const _0x41c0ee=_0xfa6f56;_0x430fab===u[_0x41c0ee(0x389)]['ONLINE']?this[_0x41c0ee(0x329)]():this['_toggleOffline']();}),this['_session'][_0xfa6f56(0x2b0)][_0xfa6f56(0x3bb)](d[_0xfa6f56(0x23f)](this[_0xfa6f56(0x350)]))[_0xfa6f56(0x2d5)](_0x548254=>{const _0x4d6b85=_0xfa6f56,_0x4de430=_0x548254[_0x4d6b85(0x2ba)];_0x4de430===m[_0x4d6b85(0x25f)][_0x4d6b85(0x35e)]&&this[_0x4d6b85(0x1d0)](_0x548254),_0x4de430===m['CollaborationEvent'][_0x4d6b85(0x252)]&&this[_0x4d6b85(0x219)](_0x548254);}),this['disposeWithMe'](this[_0xfa6f56(0x395)][_0xfa6f56(0x1a7)](_0x5935e9=>{const _0x594de0=_0xfa6f56,_0x3ca873=_0x5935e9['params'];_0x3ca873!=null&&this[_0x594de0(0x21a)]&&_0x5935e9['id']===Y[_0x594de0(0x2a1)]['id']&&_0x3ca873[_0x594de0(0x163)]===this[_0x594de0(0x26c)]&&_0x3ca873[_0x594de0(0x2ea)]===!0x1&&_0x3ca873[_0x594de0(0x393)]['length']>0x0&&this[_0x594de0(0x2e4)](_0x3ca873[_0x594de0(0x393)]);})),this[_0xfa6f56(0x35d)][_0xfa6f56(0x233)][_0xfa6f56(0x3bb)](d['takeUntil'](this[_0xfa6f56(0x350)]))['subscribe'](_0x109d51=>{const _0x489eb4=_0xfa6f56;if((_0x109d51==null?void 0x0:_0x109d51['unitID'])!==this[_0x489eb4(0x26c)])return;const _0x3018f6={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x109d51};this['_onCursorUpdate'](_0x3018f6);}),this[_0xfa6f56(0x19c)](this['_commandService'][_0xfa6f56(0x1a7)](_0x2c1052=>{const _0x17f01a=_0xfa6f56;if(_0x2c1052[_0x17f01a(0x1e4)]==null)return;const _0x38130a=_0x2c1052['params'];if(_0x2c1052['id']!==Y['RichTextEditingMutation']['id']||_0x38130a[_0x17f01a(0x163)]!==this[_0x17f01a(0x26c)])return;const _0xa523fc={'id':_0x17f01a(0x36e),'params':_0x38130a},_0x38795e=this['cursorInfo'];for(const [_0x6fcb29,_0x512f27]of _0x38795e){const _0x1884a1={'id':_0x17f01a(0x36e),'params':{'unitId':this[_0x17f01a(0x26c)],'actions':null,'textRanges':_0x512f27[_0x17f01a(0x393)]}},_0x16aceb=this[_0x17f01a(0x372)][_0x17f01a(0x3b6)](_0xa523fc,_0x1884a1,!0x1);if(m['isTransformMutationFailure'](_0x16aceb))throw _0x16aceb[_0x17f01a(0x154)];_0x38795e[_0x17f01a(0x2a3)](_0x6fcb29,{..._0x512f27,'ranges':_0x16aceb[_0x17f01a(0x208)][_0x17f01a(0x1e4)][_0x17f01a(0x315)]});}queueMicrotask(()=>{const _0x3a7423=_0x17f01a;this[_0x3a7423(0x23c)]['next'](_0x38795e);});})));}[_0x114f12(0x1d0)](_0x351971){const _0x37f29f=_0x114f12;var _0x1b3372,_0x327536;const {memberID:_0x26f5bb,selection:_0xca71c4}=_0x351971[_0x37f29f(0x174)],_0x3bcc6a=Ze(_0xca71c4),_0x45944a=(_0x327536=(_0x1b3372=this[_0x37f29f(0x1a0)][_0x37f29f(0x143)](this[_0x37f29f(0x26c)],_0x26f5bb))==null?void 0x0:_0x1b3372[_0x37f29f(0x17a)])!=null?_0x327536:'Unknown\x20user',_0x1d65a5={'color':this[_0x37f29f(0x1a3)][_0x37f29f(0x30f)](_0x26f5bb),'name':_0x45944a,'ranges':_0x3bcc6a},_0x277c10=this['cursorInfo'];_0x277c10['set'](_0x26f5bb,_0x1d65a5),this[_0x37f29f(0x23c)]['next'](_0x277c10);}[_0x114f12(0x219)](_0xed2795){const _0x51936c=_0x114f12,{memberID:_0x495c0f}=_0xed2795[_0x51936c(0x174)],_0x4c608a=this[_0x51936c(0x1a6)];_0x4c608a[_0x51936c(0x14c)](_0x495c0f),this[_0x51936c(0x23c)][_0x51936c(0x157)](_0x4c608a);}[_0x114f12(0x329)](){const _0x26dbfb=_0x114f12;var _0x292606;if(this[_0x26dbfb(0x21a)]=!0x0,((_0x292606=this[_0x26dbfb(0x288)][_0x26dbfb(0x24c)]())==null?void 0x0:_0x292606[_0x26dbfb(0x1f1)]())!==this[_0x26dbfb(0x26c)])return;const _0x207c83=this[_0x26dbfb(0x39b)][_0x26dbfb(0x221)](Y[_0x26dbfb(0x36c)])[_0x26dbfb(0x22b)]();Array[_0x26dbfb(0x17b)](_0x207c83)&&_0x207c83[_0x26dbfb(0x200)]>0x0&&this[_0x26dbfb(0x2e4)](_0x207c83);}['_toggleOffline'](){const _0x220f4d=_0x114f12;this[_0x220f4d(0x21a)]=!0x1;}};Se=et([N(0x2,a[_0x114f12(0x2fe)](a[_0x114f12(0x203)])),N(0x3,a[_0x114f12(0x2fe)](Ce)),N(0x4,a['Inject'](u[_0x114f12(0x1fd)])),N(0x5,a[_0x114f12(0x2fe)](pe)),N(0x6,m[_0x114f12(0x226)]),N(0x7,a[_0x114f12(0x182)]),N(0x8,a[_0x114f12(0x318)])],Se);var nt=Object[_0x114f12(0x358)],it=(_0x6459f4,_0x5b9901,_0x568c7d,_0x37de63)=>{const _0x2cfb53=_0x114f12;for(var _0x5bbb74=_0x37de63>0x1?void 0x0:_0x37de63?nt(_0x5b9901,_0x568c7d):_0x5b9901,_0x4d5039=_0x6459f4[_0x2cfb53(0x200)]-0x1,_0x24ddd5;_0x4d5039>=0x0;_0x4d5039--)(_0x24ddd5=_0x6459f4[_0x4d5039])&&(_0x5bbb74=_0x24ddd5(_0x5bbb74)||_0x5bbb74);return _0x5bbb74;},y=(_0x1f92ce,_0x3787ba)=>(_0x1e1ac5,_0x30b676)=>_0x3787ba(_0x1e1ac5,_0x30b676,_0x1f92ce);const rt=0x12c,ot=0x64,at=()=>{let _0x5aa698=[],_0x5a3590=!0x1;return _0x37936b=>{const _0x2029d2=_0x7083;_0x5aa698[_0x2029d2(0x32e)](_0x37936b),_0x5a3590||(_0x5a3590=!0x0,setTimeout(()=>{const _0x47a9ae=_0x2029d2;_0x5aa698[_0x47a9ae(0x341)](_0x3797a4=>_0x3797a4()),_0x5aa698=[],_0x5a3590=!0x1;}));};};let ve=class extends a[_0x114f12(0x1de)]{constructor(_0x1f793f,_0x86dd8d,_0x410182,_0x5ac236,_0x5d441e,_0x3c970a,_0x3ddaee,_0x3ade6e){const _0x4bc849=_0x114f12;super(),h(this,_0x4bc849(0x21a),!0x1),h(this,'_init',!0x1),h(this,_0x4bc849(0x23c),new d[(_0x4bc849(0x38e))](new Map())),h(this,'cursorInfo$',this[_0x4bc849(0x23c)]['asObservable']()),h(this,_0x4bc849(0x36a),new d[(_0x4bc849(0x38e))]([])),h(this,_0x4bc849(0x1cb),this['_roomMembers$'][_0x4bc849(0x3bb)](d['debounceTime'](rt))),h(this,'_updateLocalCursor',a[_0x4bc849(0x239)]((_0x560518,_0x5381d8)=>{const _0x1a85a4=_0x4bc849,_0x47fcde={'eventID':m[_0x1a85a4(0x25f)][_0x1a85a4(0x35e)],'data':{'unitID':this[_0x1a85a4(0x26c)],'memberID':this[_0x1a85a4(0x381)][_0x1a85a4(0x231)](),'selection':Te[_0x1a85a4(0x3a0)](_0x560518,_0x5381d8[_0x1a85a4(0x1e8)])}};this[_0x1a85a4(0x381)]['send'](_0x47fcde,this['unitID']);},ot)),(this[_0x4bc849(0x26c)]=_0x1f793f,this[_0x4bc849(0x381)]=_0x86dd8d,this[_0x4bc849(0x39b)]=_0x410182,this[_0x4bc849(0x1a3)]=_0x5ac236,this[_0x4bc849(0x1a0)]=_0x5d441e,this[_0x4bc849(0x288)]=_0x3c970a,this[_0x4bc849(0x395)]=_0x3ddaee,this[_0x4bc849(0x1ee)]=_0x3ade6e);}get[_0x114f12(0x1a6)](){const _0x48d7c3=_0x114f12;return this['_cursorInfo$'][_0x48d7c3(0x397)]();}get[_0x114f12(0x194)](){return this['_roomMembers$']['getValue']();}[_0x114f12(0x2bc)](){const _0x2a1ad6=_0x114f12;super['dispose'](),this['_cursorInfo$'][_0x2a1ad6(0x157)](new Map()),this[_0x2a1ad6(0x23c)]['complete'](),this[_0x2a1ad6(0x36a)][_0x2a1ad6(0x157)]([]),this['_roomMembers$'][_0x2a1ad6(0x34f)]();}[_0x114f12(0x345)](){const _0x4f7f8b=_0x114f12;this[_0x4f7f8b(0x1f3)]||(this[_0x4f7f8b(0x1f3)]=!0x0,this[_0x4f7f8b(0x381)][_0x4f7f8b(0x344)][_0x4f7f8b(0x3bb)](d[_0x4f7f8b(0x23f)](this[_0x4f7f8b(0x350)]))['subscribe'](_0x51b246=>{const _0x5f06f1=_0x4f7f8b;_0x51b246===u[_0x5f06f1(0x389)][_0x5f06f1(0x34e)]?this[_0x5f06f1(0x329)]():this[_0x5f06f1(0x28a)]();}),this[_0x4f7f8b(0x381)][_0x4f7f8b(0x2b0)]['pipe'](d[_0x4f7f8b(0x23f)](this[_0x4f7f8b(0x350)]))[_0x4f7f8b(0x2d5)](_0x47eb11=>{const _0xaa3f28=_0x4f7f8b,_0x5b2e53=_0x47eb11[_0xaa3f28(0x2ba)];_0x5b2e53===m['CollaborationEvent'][_0xaa3f28(0x35e)]&&this[_0xaa3f28(0x1d0)](_0x47eb11),_0x5b2e53===m[_0xaa3f28(0x25f)][_0xaa3f28(0x252)]&&this[_0xaa3f28(0x219)](_0x47eb11);}),this['_onRefRangeChange'](),this[_0x4f7f8b(0x19c)](this[_0x4f7f8b(0x395)][_0x4f7f8b(0x1a7)](_0x56a069=>{const _0x2d6c00=_0x4f7f8b;if(this['_online']&&_0x56a069['id']===I[_0x2d6c00(0x382)]['id']&&_0x56a069['params'][_0x2d6c00(0x163)]===this['unitID']){const _0x850f8d=_0x56a069[_0x2d6c00(0x1e4)];this['_updateLocalCursor'](_0x850f8d[_0x2d6c00(0x171)],_0x850f8d['selections'][0x0]);}})));}[_0x114f12(0x1d0)](_0x467b66){const _0x3093e1=_0x114f12;var _0x1ff01f,_0x4f2d9f;const {memberID:_0x841551,selection:_0x2edbb8}=_0x467b66[_0x3093e1(0x174)],{sheetName:_0x371a0b,range:_0x5e63a2}=Te[_0x3093e1(0x222)](_0x2edbb8),_0x3fb3c4={'name':(_0x4f2d9f=(_0x1ff01f=this[_0x3093e1(0x1a0)][_0x3093e1(0x143)](this[_0x3093e1(0x26c)],_0x841551))==null?void 0x0:_0x1ff01f[_0x3093e1(0x17a)])!=null?_0x4f2d9f:_0x3093e1(0x2b6),'range':this['_getMergeRange'](_0x371a0b,_0x5e63a2),'sheetID':_0x371a0b,'color':this[_0x3093e1(0x1a3)]['assignAColorForMemberID'](_0x841551),'selection':_0x2edbb8},_0x5dd575=this[_0x3093e1(0x1a6)];_0x5dd575['set'](_0x841551,_0x3fb3c4),this['_cursorInfo$']['next'](_0x5dd575);}[_0x114f12(0x219)](_0x4c5422){const _0x12c882=_0x114f12,{memberID:_0x5bea39}=_0x4c5422['data'],_0x72c54f=this[_0x12c882(0x1a6)];_0x72c54f[_0x12c882(0x14c)](_0x5bea39),this[_0x12c882(0x23c)][_0x12c882(0x157)](_0x72c54f);}['_getMergeRange'](_0x2a5030,_0x51970d){const _0x2dc808=_0x114f12;var _0x44f518,_0x17b9e2;const _0x4cb0ea=(_0x17b9e2=(_0x44f518=this[_0x2dc808(0x288)][_0x2dc808(0x2b2)](this['unitID']))==null?void 0x0:_0x44f518[_0x2dc808(0x177)](_0x2a5030))==null?void 0x0:_0x17b9e2[_0x2dc808(0x247)]();return(_0x4cb0ea==null?void 0x0:_0x4cb0ea[_0x2dc808(0x2b7)](_0x59b0be=>a[_0x2dc808(0x23b)][_0x2dc808(0x3ad)](_0x59b0be,_0x51970d)))||_0x51970d;}[_0x114f12(0x20d)](){const _0x3b2da0=_0x114f12,_0x345990=new a['DisposableCollection'](),_0x1738f9=at(),_0x501271=()=>{const _0x4a9362=_0x7083;_0x345990[_0x4a9362(0x2bc)]();const _0x304f45=(_0x37569d,_0xdbfbd0,_0x1f00e0,_0x3ef7fe)=>{const _0xdf39bb=_0x4a9362;let _0x52f0cd=[];switch(_0x37569d['id']){case I[_0xdf39bb(0x3ae)][_0xdf39bb(0x392)]:{_0x52f0cd=I[_0xdf39bb(0x293)](_0x37569d,_0x3ef7fe);break;}case I['EffectRefRangId'][_0xdf39bb(0x367)]:{_0x52f0cd=I[_0xdf39bb(0x255)](_0x37569d,_0x3ef7fe);break;}case I[_0xdf39bb(0x3ae)][_0xdf39bb(0x1a2)]:{_0x52f0cd=I[_0xdf39bb(0x2f2)](_0x37569d,_0x3ef7fe);break;}case I[_0xdf39bb(0x3ae)][_0xdf39bb(0x32c)]:{_0x52f0cd=I[_0xdf39bb(0x2d7)](_0x37569d,_0x3ef7fe);break;}case I['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x52f0cd=I[_0xdf39bb(0x275)](_0x37569d,_0x3ef7fe);break;}case I[_0xdf39bb(0x3ae)][_0xdf39bb(0x2c7)]:{_0x52f0cd=I[_0xdf39bb(0x355)](_0x37569d,_0x3ef7fe);break;}case I[_0xdf39bb(0x3ae)][_0xdf39bb(0x2e2)]:{_0x52f0cd=I[_0xdf39bb(0x30d)](_0x37569d,_0x3ef7fe);break;}case I[_0xdf39bb(0x3ae)][_0xdf39bb(0x160)]:{_0x52f0cd=I[_0xdf39bb(0x2f8)](_0x37569d,_0x3ef7fe);break;}case I[_0xdf39bb(0x3ae)][_0xdf39bb(0x22a)]:{_0x52f0cd=I[_0xdf39bb(0x227)](_0x37569d,_0x3ef7fe);break;}}const _0x198dea=I[_0xdf39bb(0x1b4)](_0x52f0cd,_0x3ef7fe),_0x5ba7f3=this[_0xdf39bb(0x1a6)][_0xdf39bb(0x221)](_0xdbfbd0);if(_0x5ba7f3&&_0x198dea){const _0x19ca0e={..._0x5ba7f3,'range':_0x198dea};this[_0xdf39bb(0x1a6)]['set'](_0xdbfbd0,_0x19ca0e),_0x1738f9(()=>{const _0x3183d1=_0xdf39bb,_0x4caf16=this[_0x3183d1(0x1ee)]['registerRefRange'](_0x198dea,_0x5cd20b=>(_0x4caf16[_0x3183d1(0x2bc)](),_0x304f45(_0x5cd20b,_0xdbfbd0,_0x1f00e0,_0x198dea)));_0x345990[_0x3183d1(0x2fc)](_0x4caf16);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x169ab6,_0x4d4e57)=>{const _0x10a625=_0x4a9362,{range:_0x445f8a,sheetID:_0x1e4444}=_0x169ab6,_0x57c82a=this[_0x10a625(0x1ee)]['registerRefRange'](_0x445f8a,_0x2df06e=>(_0x57c82a[_0x10a625(0x2bc)](),_0x304f45(_0x2df06e,_0x4d4e57,_0x1e4444,_0x445f8a)));_0x345990[_0x10a625(0x2fc)](_0x57c82a);});};this[_0x3b2da0(0x19c)](a[_0x3b2da0(0x286)](this[_0x3b2da0(0x23c)][_0x3b2da0(0x2d5)](()=>{_0x501271();})));}[_0x114f12(0x329)](){const _0x4ad433=_0x114f12;var _0x4b9d45,_0x5c5f4f;if(this[_0x4ad433(0x21a)]=!0x0,((_0x4b9d45=this['_univerInstanceService'][_0x4ad433(0x24c)]())==null?void 0x0:_0x4b9d45[_0x4ad433(0x1f1)]())!==this[_0x4ad433(0x26c)])return;const _0x17f6f6=(_0x5c5f4f=this[_0x4ad433(0x39b)]['get'](I[_0x4ad433(0x215)])[_0x4ad433(0x24b)]())==null?void 0x0:_0x5c5f4f[0x0],_0x22ebb6=this[_0x4ad433(0x288)]['getCurrentUnitForType'](a[_0x4ad433(0x307)][_0x4ad433(0x267)])[_0x4ad433(0x186)]();_0x17f6f6&&_0x22ebb6&&this[_0x4ad433(0x2e4)](_0x22ebb6[_0x4ad433(0x300)](),_0x17f6f6);}['_toggleOffline'](){this['_online']=!0x1;}};ve=it([y(0x2,a['Inject'](a[_0x114f12(0x203)])),y(0x3,a['Inject'](Ce)),y(0x4,a[_0x114f12(0x2fe)](u[_0x114f12(0x1fd)])),y(0x5,a[_0x114f12(0x182)]),y(0x6,a['ICommandService']),y(0x7,a[_0x114f12(0x2fe)](I[_0x114f12(0x343)]))],ve);var ct=Object[_0x114f12(0x358)],lt=(_0x2da158,_0x531416,_0x128d25,_0x14f710)=>{for(var _0xecd3c4=_0x14f710>0x1?void 0x0:_0x14f710?ct(_0x531416,_0x128d25):_0x531416,_0x525027=_0x2da158['length']-0x1,_0x122bfb;_0x525027>=0x0;_0x525027--)(_0x122bfb=_0x2da158[_0x525027])&&(_0xecd3c4=_0x122bfb(_0xecd3c4)||_0xecd3c4);return _0xecd3c4;},ie=(_0x4e10da,_0x296921)=>(_0x593600,_0x42156c)=>_0x296921(_0x593600,_0x42156c,_0x4e10da);let x=class extends a[_0x114f12(0x1de)]{constructor(_0x5992f1,_0x5a3545,_0x19b70a){const _0x76b368=_0x114f12;super(),h(this,_0x76b368(0x298),new Map()),h(this,_0x76b368(0x249),new d[(_0x76b368(0x214))]()),(this[_0x76b368(0x288)]=_0x5992f1,this[_0x76b368(0x39b)]=_0x5a3545,this[_0x76b368(0x1f5)]=_0x19b70a,this[_0x76b368(0x1f3)]());}[_0x114f12(0x2bc)](){const _0x53ae7a=_0x114f12;super[_0x53ae7a(0x2bc)](),this[_0x53ae7a(0x249)][_0x53ae7a(0x34f)](),this[_0x53ae7a(0x298)]['forEach'](_0x575108=>_0x575108[_0x53ae7a(0x2bc)]());}[_0x114f12(0x289)](_0x2fcfcd){const _0x4c8f71=_0x114f12;return this[_0x4c8f71(0x298)][_0x4c8f71(0x3bc)](_0x2fcfcd)?this['_entities'][_0x4c8f71(0x221)](_0x2fcfcd)['cursorInfo$']:this[_0x4c8f71(0x249)][_0x4c8f71(0x3bb)](d[_0x4c8f71(0x1ff)](_0x703621=>_0x703621[_0x4c8f71(0x26c)]===_0x2fcfcd),d[_0x4c8f71(0x167)](_0x25c465=>_0x25c465[_0x4c8f71(0x2ae)]));}[_0x114f12(0x1f3)](){const _0x34f202=_0x114f12;this['_univerInstanceService'][_0x34f202(0x333)](a[_0x34f202(0x307)]['UNIVER_SHEET'])[_0x34f202(0x3bb)](d['takeUntil'](this[_0x34f202(0x350)]))['subscribe'](async _0x13cb50=>{const _0x56cba7=_0x34f202,_0x47297f=_0x13cb50[_0x56cba7(0x1f1)](),_0x81071d=await this[_0x56cba7(0x204)](_0x47297f);this[_0x56cba7(0x249)][_0x56cba7(0x157)](_0x81071d),this[_0x56cba7(0x298)][_0x56cba7(0x2a3)](_0x47297f,_0x81071d);}),this[_0x34f202(0x288)][_0x34f202(0x333)](a[_0x34f202(0x307)][_0x34f202(0x240)])['pipe'](d[_0x34f202(0x23f)](this[_0x34f202(0x350)]))[_0x34f202(0x3bb)](d['filter'](_0xd24151=>!_0xd24151['getUnitId']()[_0x34f202(0x148)]('__')))[_0x34f202(0x2d5)](async _0x72a6a0=>{const _0x2754c1=_0x34f202,_0x58605b=_0x72a6a0[_0x2754c1(0x1f1)](),_0x2b32a0=await this[_0x2754c1(0x311)](_0x58605b);this[_0x2754c1(0x249)][_0x2754c1(0x157)](_0x2b32a0),this['_entities'][_0x2754c1(0x2a3)](_0x58605b,_0x2b32a0);}),d['merge'](this[_0x34f202(0x288)][_0x34f202(0x365)](a[_0x34f202(0x307)][_0x34f202(0x240)]),this[_0x34f202(0x288)][_0x34f202(0x365)](a[_0x34f202(0x307)][_0x34f202(0x267)]))[_0x34f202(0x3bb)](d[_0x34f202(0x23f)](this[_0x34f202(0x350)]))[_0x34f202(0x2d5)](_0x4e5ac1=>{const _0x2f5ffd=_0x34f202,_0x1f40c7=_0x4e5ac1[_0x2f5ffd(0x1f1)](),_0x1a0c33=this['_entities'][_0x2f5ffd(0x221)](_0x1f40c7);_0x1a0c33&&(_0x1a0c33[_0x2f5ffd(0x2bc)](),this[_0x2f5ffd(0x298)]['delete'](_0x1f40c7));});}async[_0x114f12(0x204)](_0x21ee7b){const _0x3969cd=_0x114f12,_0x416364=await this['_collabSessionService'][_0x3969cd(0x396)](_0x21ee7b),_0x451aea=this[_0x3969cd(0x39b)][_0x3969cd(0x325)](ve,_0x21ee7b,_0x416364);return _0x451aea[_0x3969cd(0x345)](),_0x451aea;}async[_0x114f12(0x311)](_0x560dd1){const _0x24f440=_0x114f12,_0x1d6053=await this[_0x24f440(0x1f5)][_0x24f440(0x396)](_0x560dd1),_0x153339=this[_0x24f440(0x39b)][_0x24f440(0x325)](Se,_0x560dd1,_0x1d6053);return _0x153339['init'](),_0x153339;}};x=lt([ie(0x0,a[_0x114f12(0x182)]),ie(0x1,a[_0x114f12(0x2fe)](a['Injector'])),ie(0x2,a['Inject'](u[_0x114f12(0x33c)]))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _t(_0x164df3,_0x1f6af4){const _0x58cd6b=_0x114f12;let {radius:_0x4329be,width:_0x40f98b,height:_0x15d4b5}=_0x1f6af4;_0x4329be=_0x4329be!=null?_0x4329be:0x0,_0x40f98b=_0x40f98b!=null?_0x40f98b:0x1e,_0x15d4b5=_0x15d4b5!=null?_0x15d4b5:0x1e;let _0x463ccc=0x0,_0x4ba3a3=0x0,_0xe69071=0x0;_0x463ccc=_0x4ba3a3=_0xe69071=Math[_0x58cd6b(0x216)](_0x4329be,_0x40f98b/0x2,_0x15d4b5/0x2),_0x164df3['beginPath'](),_0x164df3[_0x58cd6b(0x248)](_0x463ccc,0x0),_0x164df3['lineTo'](_0x40f98b-_0x4ba3a3,0x0),_0x164df3[_0x58cd6b(0x2d4)](_0x40f98b-_0x4ba3a3,_0x4ba3a3,_0x4ba3a3,Math['PI']*0x3/0x2,0x0,!0x1),_0x164df3['lineTo'](_0x40f98b,_0x15d4b5-_0xe69071),_0x164df3[_0x58cd6b(0x2d4)](_0x40f98b-_0xe69071,_0x15d4b5-_0xe69071,_0xe69071,0x0,Math['PI']/0x2,!0x1),_0x164df3['lineTo'](0x0,_0x15d4b5),_0x164df3[_0x58cd6b(0x193)](0x0,_0x463ccc),_0x164df3[_0x58cd6b(0x2d4)](_0x463ccc,_0x463ccc,_0x463ccc,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x164df3[_0x58cd6b(0x27d)](),_0x1f6af4[_0x58cd6b(0x2a9)]&&(_0x164df3[_0x58cd6b(0x278)](),_0x164df3['fillStyle']=_0x1f6af4[_0x58cd6b(0x2a9)],_0x1f6af4[_0x58cd6b(0x1e1)]==='evenodd'?_0x164df3['fill']('evenodd'):_0x164df3['fill'](),_0x164df3[_0x58cd6b(0x16e)]());}class te extends p[_0x114f12(0x14f)]{constructor(_0x182dc2,_0x10b4c5){const _0x4f3576=_0x114f12;super(_0x182dc2,_0x10b4c5),h(this,'color'),h(this,'text'),(this[_0x4f3576(0x3a9)]=_0x10b4c5==null?void 0x0:_0x10b4c5['color'],this[_0x4f3576(0x243)]=_0x10b4c5==null?void 0x0:_0x10b4c5[_0x4f3576(0x243)]);}static[_0x114f12(0x294)](_0x166e81,_0x40cc49){const _0x361b72=_0x114f12,{text:_0x21cb72,color:_0x1efc29}=_0x40cc49;_0x166e81[_0x361b72(0x278)](),_0x166e81[_0x361b72(0x165)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x208ac0=_0x166e81[_0x361b72(0x31a)](_0x21cb72)[_0x361b72(0x3ac)],_0x2643b4=Math[_0x361b72(0x216)](_0x208ac0+0x2*re,De);_t(_0x166e81,{'height':K,'radius':0x4,'width':_0x2643b4,'fill':_0x1efc29}),_0x166e81['fillStyle']=_0x361b72(0x277);const _0x370d42=re,_0x10611a=K-ht,_0x74c6a4=De-0x2*re;if(_0x208ac0>_0x74c6a4){let _0x34dc96='',_0x5d31ca=0x0;for(const _0x3a866a of _0x21cb72){const _0x56e124=_0x166e81[_0x361b72(0x31a)](_0x3a866a)[_0x361b72(0x3ac)];if(_0x5d31ca+_0x56e124<=_0x74c6a4-_0x166e81['measureText'](_0x361b72(0x3b1))[_0x361b72(0x3ac)])_0x34dc96+=_0x3a866a,_0x5d31ca+=_0x56e124;else{_0x34dc96+=_0x361b72(0x3b1);break;}}_0x166e81['fillText'](_0x34dc96,_0x370d42,_0x10611a);}else _0x166e81[_0x361b72(0x190)](_0x21cb72,_0x370d42,_0x10611a);_0x166e81[_0x361b72(0x16e)]();}[_0x114f12(0x3a4)](_0x5c2c13){const _0x91a74a=_0x114f12;te[_0x91a74a(0x294)](_0x5c2c13,this);}}const oe=_0x114f12(0x1c9),ut=_0x114f12(0x173),dt=_0x114f12(0x30b),B=0x6,ft=1.5,ae=0x4,St=1.5,vt=_0x114f12(0x1c6);class Ue{constructor(_0x256bcd,_0x9dfc6f,_0x459d26,_0x52bc2f){const _0x3f2ed7=_0x114f12;h(this,'_shapes',[]),h(this,_0x3f2ed7(0x206),null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,'_hideTimer',null),h(this,'_eventUnsubscribe',null),(this[_0x3f2ed7(0x2e0)]=_0x256bcd,this[_0x3f2ed7(0x378)]=_0x9dfc6f,this[_0x3f2ed7(0x33a)]=_0x459d26,this[_0x3f2ed7(0x25a)]=_0x52bc2f,this[_0x3f2ed7(0x25d)]());}set[_0x114f12(0x264)](_0x50f056){const _0x3eb8e7=_0x114f12;_0x50f056?(this['_anchorDot']&&this[_0x3eb8e7(0x1ea)][_0x3eb8e7(0x147)](),this[_0x3eb8e7(0x235)]&&this[_0x3eb8e7(0x235)]['show']()):(this[_0x3eb8e7(0x1ea)]&&this['_anchorDot'][_0x3eb8e7(0x187)](),this['_textBubble']&&this[_0x3eb8e7(0x235)]['hide']());}[_0x114f12(0x2bc)](){const _0x3b96be=_0x114f12;for(const _0x461d3b of this['_shapes'])_0x461d3b[_0x3b96be(0x2bc)]();this[_0x3b96be(0x235)]&&this[_0x3b96be(0x235)]['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x3b96be(0x2bc)](),this[_0x3b96be(0x206)]&&this[_0x3b96be(0x206)][_0x3b96be(0x2bc)](),this['_eventUnsubscribe']&&this[_0x3b96be(0x2c9)]();}[_0x114f12(0x25d)](){const _0x1dd08f=_0x114f12;var _0x72891b;const {_docSkeleton:_0x389667,_document:_0x5f3ed1}=this,{color:_0x4fe577,name:_0x2bdaae,ranges:_0x1571d7}=this[_0x1dd08f(0x2e0)],_0x2e0048=_0x5f3ed1[_0x1dd08f(0x39d)](),{docsLeft:_0x13685f,docsTop:_0x42cf56}=_0x2e0048,_0x390ea8=new b['NodePositionConvertToCursor'](_0x2e0048,_0x389667);for(const {startOffset:_0x4597d6,endOffset:_0x120535,rangeType:_0x3445c7,segmentId:_0x536483,segmentPage:_0x2049f4,collapsed:_0x556a76,isActive:_0x5b8ef9}of _0x1571d7){const _0x3e367c=_0x389667[_0x1dd08f(0x3ba)](_0x4597d6,!0x0,_0x536483,_0x2049f4);let _0x32a893=_0x389667[_0x1dd08f(0x3ba)](_0x120535,!0x0,_0x536483,_0x2049f4);if(_0x32a893==null&&(_0x32a893=_0x389667[_0x1dd08f(0x3ba)](_0x120535-0x1,!0x1,_0x536483,_0x2049f4)),_0x5b8ef9){const {contentBoxPointGroup:_0x390fb4}=_0x390ea8[_0x1dd08f(0x3b2)](_0x32a893,_0x32a893);if(_0x390fb4[_0x1dd08f(0x200)]===0x0)continue;this['_drawAnchor'](_0x4fe577,_0x390fb4,_0x13685f,_0x42cf56,_0x2bdaae),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x3e367c&&_0x32a893){if(_0x3445c7===a[_0x1dd08f(0x2ab)]['RECT']){const _0x268a56=new b['NodePositionConvertToRectRange'](_0x2e0048,_0x389667),{pointGroup:_0x30691e}=(_0x72891b=_0x268a56['getRangePointData'](_0x3e367c,_0x32a893))!=null?_0x72891b:{};if(_0x30691e==null||_0x30691e[_0x1dd08f(0x200)]===0x0)continue;this[_0x1dd08f(0x18f)](_0x4fe577,_0x30691e,_0x13685f,_0x42cf56);}else{if(!_0x556a76){const {borderBoxPointGroup:_0x3e110c}=_0x390ea8[_0x1dd08f(0x3b2)](_0x3e367c,_0x32a893);if(_0x3e110c['length']===0x0)continue;this['_drawTextRange'](_0x4fe577,_0x3e110c,_0x13685f,_0x42cf56);}}}}}[_0x114f12(0x19a)](_0x27d2e1,_0x5a21ce,_0x32c868,_0x295ab0,_0x2c0e9b){const _0x1278ef=_0x114f12,_0x53c8f2=this[_0x1278ef(0x284)](_0x5a21ce),{left:_0x52922f,top:_0x32ae0b,height:_0x304c10}=_0x53c8f2,_0x362fd7=this['_getScale'](),_0x7960c5=St/_0x362fd7,_0x5db83a=new p['Rect'](oe+a[_0x1278ef(0x39e)][_0x1278ef(0x1b9)](B),{'left':_0x52922f+_0x32c868-_0x7960c5,'top':_0x32ae0b+_0x295ab0,'height':_0x304c10,'width':ft,'fill':_0x27d2e1||p['getColor'](a[_0x1278ef(0x1dd)][_0x1278ef(0x237)],0x0),'strokeWidth':_0x7960c5,'stroke':vt,'evented':!0x0});this['_anchor']=_0x5db83a,this[_0x1278ef(0x378)][_0x1278ef(0x32b)](_0x5db83a,b['TEXT_RANGE_LAYER_INDEX']);const _0x86200a=new p[(_0x1278ef(0x2a5))](oe+a[_0x1278ef(0x39e)][_0x1278ef(0x1b9)](B),{'left':_0x52922f+_0x32c868-_0x7960c5,'top':_0x32ae0b+_0x295ab0-ae/0x2,'height':ae,'width':ae,'fill':_0x27d2e1||p[_0x1278ef(0x385)](a[_0x1278ef(0x1dd)][_0x1278ef(0x237)],0x0),'strokeWidth':0x0,'stroke':_0x27d2e1||p['getColor'](a['COLORS'][_0x1278ef(0x237)],0x0),'evented':!0x1});this['_anchorDot']=_0x86200a,this['_scene']['addObject'](_0x86200a,b[_0x1278ef(0x2da)]);const _0x517b31=new te(oe+a['Tools'][_0x1278ef(0x1b9)](B),{'left':_0x52922f+_0x32c868-_0x7960c5,'top':_0x32ae0b+_0x295ab0-K,'text':_0x2c0e9b,'color':_0x27d2e1});this['_textBubble']=_0x517b31,this[_0x1278ef(0x378)][_0x1278ef(0x32b)](_0x517b31,b[_0x1278ef(0x2da)]),this[_0x1278ef(0x264)]=!0x1;}[_0x114f12(0x2d3)](){const _0x4276d5=_0x114f12,_0x219c19=this[_0x4276d5(0x206)][_0x4276d5(0x1b1)][_0x4276d5(0x291)](()=>{this['_hover']=!0x0;}),_0x20139e=this[_0x4276d5(0x206)]['onPointerLeave$'][_0x4276d5(0x291)](()=>{const _0xd71a7b=_0x4276d5;this[_0xd71a7b(0x250)]&&clearTimeout(this[_0xd71a7b(0x250)]),this[_0xd71a7b(0x250)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x254a8b=_0x4276d5;_0x219c19[_0x254a8b(0x384)](),_0x20139e[_0x254a8b(0x384)]();};}[_0x114f12(0x31e)](_0x18098a,_0x47163f,_0x39361e,_0x28df47){const _0x324d29=_0x114f12,_0xd4be8f=new a[(_0x324d29(0x2e1))](_0x18098a)[_0x324d29(0x280)](0.2)[_0x324d29(0x238)](),_0x2ecce8=new p['RegularPolygon'](ut+a[_0x324d29(0x39e)]['generateRandomId'](B),{'pointsGroup':_0x47163f,'fill':_0xd4be8f||p['getColor'](a[_0x324d29(0x1dd)][_0x324d29(0x237)],0.2),'left':_0x39361e,'top':_0x28df47,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x324d29(0x32e)](_0x2ecce8),this['_scene']['addObject'](_0x2ecce8,b[_0x324d29(0x2da)]);}[_0x114f12(0x18f)](_0x6a4865,_0x51cc70,_0x30c626,_0x2617b2){const _0x690d51=_0x114f12,_0x4aaeea=new a['ColorKit'](_0x6a4865)[_0x690d51(0x280)](0.2)['toRgbString'](),_0x5ab06e=new p[(_0x690d51(0x338))](dt+a[_0x690d51(0x39e)][_0x690d51(0x1b9)](B),{'pointsGroup':_0x51cc70,'fill':_0x4aaeea||p[_0x690d51(0x385)](a[_0x690d51(0x1dd)][_0x690d51(0x237)],0.2),'left':_0x30c626,'top':_0x2617b2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x5ab06e),this[_0x690d51(0x378)][_0x690d51(0x32b)](_0x5ab06e,b[_0x690d51(0x2da)]);}[_0x114f12(0x284)](_0x125376){const _0x5dda90=_0x125376[0x0],_0x10dfaf=_0x5dda90[0x0],_0x30b566=_0x5dda90[0x2],{x:_0x564dd9,y:_0x5b84bf}=_0x10dfaf,{x:_0x39d7c8,y:_0x405e3b}=_0x30b566;return{'left':_0x564dd9,'top':_0x5b84bf,'width':_0x39d7c8-_0x564dd9,'height':_0x405e3b-_0x5b84bf};}[_0x114f12(0x152)](){const _0x458a6f=_0x114f12,{scaleX:_0xaf13dd,scaleY:_0x382390}=this[_0x458a6f(0x378)][_0x458a6f(0x2b4)]();return Math['max'](_0xaf13dd,_0x382390);}}var gt=Object[_0x114f12(0x358)],It=(_0x9a48ac,_0x17d577,_0x503e18,_0x558920)=>{const _0x10ce9b=_0x114f12;for(var _0x590982=_0x558920>0x1?void 0x0:_0x558920?gt(_0x17d577,_0x503e18):_0x17d577,_0x210623=_0x9a48ac[_0x10ce9b(0x200)]-0x1,_0x1593dd;_0x210623>=0x0;_0x210623--)(_0x1593dd=_0x9a48ac[_0x210623])&&(_0x590982=_0x1593dd(_0x590982)||_0x590982);return _0x590982;},X=(_0x5c10b8,_0x37e240)=>(_0x5e4f0b,_0x2d0858)=>_0x37e240(_0x5e4f0b,_0x2d0858,_0x5c10b8);let ge=class extends a[_0x114f12(0x1de)]{constructor(_0x3b4d2a,_0x1ce08e,_0x4cdcd8,_0x5d8da2,_0x213a90){const _0x3da0de=_0x114f12;super(),h(this,_0x3da0de(0x1e6),[]),h(this,'_cursors',[]),(this[_0x3da0de(0x1d3)]=_0x3b4d2a,this[_0x3da0de(0x1f8)]=_0x1ce08e,this[_0x3da0de(0x391)]=_0x4cdcd8,this[_0x3da0de(0x395)]=_0x5d8da2,this[_0x3da0de(0x3aa)]=_0x213a90,this[_0x3da0de(0x1f3)]());}[_0x114f12(0x1f3)](){const _0x53f57b=_0x114f12,_0x28bdae=this[_0x53f57b(0x1d3)][_0x53f57b(0x163)],_0x64cf51=this['_docSkeletonManagerService'];this[_0x53f57b(0x19c)](d[_0x53f57b(0x326)]([this[_0x53f57b(0x391)]['getCollabCursors$'](_0x28bdae),this[_0x53f57b(0x3aa)][_0x53f57b(0x364)]])[_0x53f57b(0x3bb)]($[_0x53f57b(0x210)](([_0x296a59,_0x262e1d])=>({'skeleton':_0x64cf51['getSkeleton'](),'cursors':[..._0x296a59[_0x53f57b(0x3a7)]()][_0x53f57b(0x236)](_0x1fd9bf=>({..._0x1fd9bf,'color':_0x262e1d[_0x1fd9bf[_0x53f57b(0x3a9)]]}))})))[_0x53f57b(0x2d5)](_0x5efef0=>{const _0x46eb50=_0x53f57b;if(this[_0x46eb50(0x27f)](),_0x5efef0){const {skeleton:_0x713223,cursors:_0x167a3a}=_0x5efef0;this[_0x46eb50(0x35f)](_0x713223,_0x167a3a);}})),this[_0x53f57b(0x376)](),this[_0x53f57b(0x1e2)]();}[_0x114f12(0x35f)](_0x21705c,_0xa52c94){const _0x1681d1=_0x114f12,{scene:_0x1cf146,mainComponent:_0x2ec710}=this[_0x1681d1(0x1d3)],_0x3c3e0b=_0xa52c94[_0x1681d1(0x210)](_0x3ce460=>new Ue(_0x3ce460,_0x1cf146,_0x21705c,_0x2ec710));this[_0x1681d1(0x1e6)]=_0x3c3e0b,this[_0x1681d1(0x212)]=_0xa52c94;}[_0x114f12(0x205)](){const _0xaa6672=_0x114f12;this[_0xaa6672(0x27f)]();const {scene:_0x2d4ca3,mainComponent:_0x378845}=this[_0xaa6672(0x1d3)],_0x67db8d=this[_0xaa6672(0x1f8)][_0xaa6672(0x20f)](),_0x5db824=this[_0xaa6672(0x212)]['map'](_0x5162f8=>new Ue(_0x5162f8,_0x2d4ca3,_0x67db8d,_0x378845));this[_0xaa6672(0x1e6)]=_0x5db824;}['_removeCollabCursors'](){const _0x139614=_0x114f12;this['_cursorShapes'][_0x139614(0x341)](_0x20101e=>_0x20101e[_0x139614(0x2bc)]()),this[_0x139614(0x1e6)]=[];}[_0x114f12(0x1e2)](){const _0x274720=_0x114f12,_0x25ea12=[b[_0x274720(0x2ac)]['id']];this['disposeWithMe'](this[_0x274720(0x395)]['onCommandExecuted'](_0x24ca7a=>{const _0x489aa4=_0x274720;_0x25ea12[_0x489aa4(0x398)](_0x24ca7a['id'])&&_0x24ca7a[_0x489aa4(0x1e4)][_0x489aa4(0x163)]===this['_context']['unitId']&&this[_0x489aa4(0x205)]();}));}['_initResize'](){const _0x57f59b=_0x114f12;this[_0x57f59b(0x19c)](a[_0x57f59b(0x272)](this[_0x57f59b(0x1d3)][_0x57f59b(0x211)][_0x57f59b(0x3bd)])[_0x57f59b(0x3bb)]($[_0x57f59b(0x1ff)](_0x55b4c8=>_0x55b4c8['type']===p[_0x57f59b(0x27b)][_0x57f59b(0x38d)]),$[_0x57f59b(0x303)](0x10))[_0x57f59b(0x2d5)](()=>{const _0x4e71fa=_0x57f59b;this[_0x4e71fa(0x205)]();}));}};ge=It([X(0x1,a[_0x114f12(0x2fe)](Y[_0x114f12(0x2d8)])),X(0x2,a['Inject'](x)),X(0x3,a['ICommandService']),X(0x4,a[_0x114f12(0x2fe)](a[_0x114f12(0x196)]))],ge);const mt=0x1,Ct=1.5;class ye extends p['Shape']{constructor(_0x31abe6,_0x434cbb){const _0x5622b4=_0x114f12;super(_0x31abe6,_0x434cbb),h(this,_0x5622b4(0x26f)),h(this,_0x5622b4(0x183),!0x1),h(this,'_range'),h(this,_0x5622b4(0x356),''),h(this,'_labelPosition',_0x5622b4(0x1d8)),h(this,_0x5622b4(0x2cf)),(_0x434cbb&&this[_0x5622b4(0x2bf)](_0x434cbb),this['onPointerEnter$'][_0x5622b4(0x291)](()=>this[_0x5622b4(0x2bf)]({'hovered':!0x0})),this[_0x5622b4(0x178)][_0x5622b4(0x291)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x114f12(0x2bf)](_0x19d4e4){const _0x2769c0=_0x114f12;var _0x13707c,_0x266e14,_0x3e475b,_0x3633b7,_0x2f70a0,_0x26152c;this[_0x2769c0(0x26f)]=(_0x13707c=_0x19d4e4[_0x2769c0(0x3a9)])!=null?_0x13707c:this[_0x2769c0(0x26f)],this[_0x2769c0(0x183)]=(_0x266e14=_0x19d4e4[_0x2769c0(0x1f0)])!=null?_0x266e14:this[_0x2769c0(0x183)],this[_0x2769c0(0x331)]=(_0x3e475b=_0x19d4e4[_0x2769c0(0x1e8)])!=null?_0x3e475b:this[_0x2769c0(0x331)],this[_0x2769c0(0x356)]=(_0x3633b7=_0x19d4e4[_0x2769c0(0x17a)])!=null?_0x3633b7:this[_0x2769c0(0x356)],this[_0x2769c0(0x37b)]=(_0x2f70a0=_0x19d4e4[_0x2769c0(0x1f6)])!=null?_0x2f70a0:this[_0x2769c0(0x37b)],this['_backgroundColor']=(_0x26152c=_0x19d4e4[_0x2769c0(0x282)])!=null?_0x26152c:this[_0x2769c0(0x2cf)],this[_0x2769c0(0x17c)]({'width':_0x19d4e4[_0x2769c0(0x3ac)],'height':_0x19d4e4[_0x2769c0(0x256)]});}[_0x114f12(0x28b)](_0x49022a){const _0x4a5b0f=_0x114f12,{row:_0x22cb75,column:_0x4785c5}=_0x49022a;if(_0x22cb75>=this['_range'][_0x4a5b0f(0x1d1)]&&_0x22cb75<=this[_0x4a5b0f(0x331)][_0x4a5b0f(0x36b)]&&_0x4785c5>=this[_0x4a5b0f(0x331)][_0x4a5b0f(0x273)]&&_0x4785c5<=this[_0x4a5b0f(0x331)][_0x4a5b0f(0x263)]){this[_0x4a5b0f(0x2bf)]({'hovered':!0x0});return;}this[_0x4a5b0f(0x2bf)]({'hovered':!0x1});}[_0x114f12(0x2df)](_0x93e055){return!0x1;}[_0x114f12(0x3a4)](_0x1aea09){const _0x8726a9=_0x114f12;p[_0x8726a9(0x2a5)][_0x8726a9(0x294)](_0x1aea09,{'width':this[_0x8726a9(0x3ac)],'height':this[_0x8726a9(0x256)],'strokeWidth':Ct,'stroke':this[_0x8726a9(0x26f)],'evented':!0x1,'fill':this[_0x8726a9(0x2cf)]}),this[_0x8726a9(0x183)]&&(_0x1aea09[_0x8726a9(0x278)](),_0x1aea09['transform'](0x1,0x0,0x0,0x1,this[_0x8726a9(0x3ac)],this['_labelPosition']===_0x8726a9(0x1fb)?0x0:-0x14),te['drawWith'](_0x1aea09,{'text':this[_0x8726a9(0x356)],'color':this['_color']}),_0x1aea09[_0x8726a9(0x16e)]());}}var pt=Object['getOwnPropertyDescriptor'],bt=(_0x4ed15e,_0x56435a,_0x228757,_0x6caf1a)=>{for(var _0x418bab=_0x6caf1a>0x1?void 0x0:_0x6caf1a?pt(_0x56435a,_0x228757):_0x56435a,_0x390d01=_0x4ed15e['length']-0x1,_0x33dddc;_0x390d01>=0x0;_0x390d01--)(_0x33dddc=_0x4ed15e[_0x390d01])&&(_0x418bab=_0x33dddc(_0x418bab)||_0x418bab);return _0x418bab;},ce=(_0x30571a,_0xe89e03)=>(_0x4a9495,_0x24f212)=>_0xe89e03(_0x4a9495,_0x24f212,_0x30571a);const Et=0x1389;let Ie=class extends a['RxDisposable']{constructor(_0x4d265d,_0x43e5b7,_0x352ed7,_0x127d06){const _0x2e790a=_0x114f12;super(),h(this,'_cursors',new Set()),h(this,_0x2e790a(0x1df),null),(this['_context']=_0x4d265d,this['_sheetSkeletonManagerService']=_0x43e5b7,this[_0x2e790a(0x391)]=_0x352ed7,this['_themeService']=_0x127d06,this[_0x2e790a(0x1f3)]());}[_0x114f12(0x1f3)](){const _0xc051eb=_0x114f12;this[_0xc051eb(0x224)][_0xc051eb(0x368)]['pipe']($[_0xc051eb(0x23f)](this[_0xc051eb(0x350)]),$[_0xc051eb(0x167)](_0x5a7fb5=>{const _0x574ac4=_0xc051eb;if(_0x5a7fb5){const _0x34f76f=_0x5a7fb5[_0x574ac4(0x24f)];return d[_0x574ac4(0x326)](this[_0x574ac4(0x391)][_0x574ac4(0x289)](this[_0x574ac4(0x1d3)][_0x574ac4(0x163)]),this[_0x574ac4(0x3aa)][_0x574ac4(0x364)])['pipe']($[_0x574ac4(0x210)](([_0x210647,_0x16414d])=>{const _0x3a81bc=_0x574ac4,_0x5d6bea=new Map();return _0x210647[_0x3a81bc(0x341)]((_0x39a1ae,_0x3a5da5)=>{const _0x261a36=_0x3a81bc;if(_0x39a1ae[_0x261a36(0x335)]===_0x34f76f){const _0x13d35c={..._0x39a1ae};_0x13d35c[_0x261a36(0x3a9)]=_0x16414d[_0x39a1ae[_0x261a36(0x3a9)]],_0x5d6bea[_0x261a36(0x2a3)](_0x3a5da5,_0x13d35c);}}),{'skeleton':_0x5a7fb5,'cursors':_0x5d6bea};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0xc051eb(0x2d5)](({skeleton:_0x5c4389,cursors:_0x327baf})=>{const _0x3307c4=_0xc051eb;this[_0x3307c4(0x27f)](),_0x5c4389&&this[_0x3307c4(0x35f)](_0x5c4389,_0x327baf);}),this[_0xc051eb(0x224)][_0xc051eb(0x368)]['subscribe'](_0x564a13=>{const _0x11e796=_0xc051eb;if(_0x564a13==null)return;const {skeleton:_0x13877b}=_0x564a13,{scene:_0x319a68}=this[_0x11e796(0x1d3)];_0x319a68[_0x11e796(0x301)][_0x11e796(0x291)](a[_0x11e796(0x239)](_0xeab0d9=>{const _0x1d8c38=_0x11e796;var _0xc55134,_0x2d08de;const {offsetX:_0x521a8a,offsetY:_0x30ec86}=_0xeab0d9,{x:_0x341a14,y:_0x5345b3}=_0x319a68[_0x1d8c38(0x2d6)](p[_0x1d8c38(0x29c)][_0x1d8c38(0x207)]([_0x521a8a,_0x30ec86])),{scaleX:_0x322dc2,scaleY:_0xeb165}=_0x319a68[_0x1d8c38(0x2b4)](),_0x17f66d=_0x319a68[_0x1d8c38(0x35b)](p[_0x1d8c38(0x3a5)]['VIEW_MAIN']),_0x4bd44b=_0x319a68['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x1d8c38(0x207)]([_0x341a14,_0x5345b3]),_0x17f66d),_0x44c30a=_0x13877b['getCellPositionByOffset'](_0x521a8a,_0x30ec86,_0x322dc2,_0xeb165,_0x4bd44b);((_0xc55134=this['_lastPointer'])==null?void 0x0:_0xc55134[_0x1d8c38(0x387)])===_0x44c30a[_0x1d8c38(0x387)]&&((_0x2d08de=this[_0x1d8c38(0x1df)])==null?void 0x0:_0x2d08de[_0x1d8c38(0x296)])===_0x44c30a[_0x1d8c38(0x296)]||this['_cursors'][_0x1d8c38(0x341)](_0x580c39=>{const _0x446229=_0x1d8c38;_0x580c39[_0x446229(0x28b)](_0x44c30a);});},0x64));});}[_0x114f12(0x35f)](_0x54364a,_0x331b0e){const _0x5f46e8=_0x114f12;var _0xbbe5e9;const _0x1d207e=(_0xbbe5e9=this['_sheetSkeletonManagerService'][_0x5f46e8(0x144)]())==null?void 0x0:_0xbbe5e9[_0x5f46e8(0x354)];if(!_0x1d207e)return;const _0xe87abc=this['_getSheetObject']();if(!_0xe87abc)return;this[_0x5f46e8(0x212)][_0x5f46e8(0x341)](_0x339158=>{_0x339158['makeDirty']();});const {scene:_0x5517aa}=_0xe87abc,_0x22a2f4=Tt(Array[_0x5f46e8(0x366)](_0x331b0e[_0x5f46e8(0x3a7)]()))[_0x5f46e8(0x210)](_0x3c1f25=>{const _0x44497c=_0x5f46e8,{color:_0x492567,range:_0x98d2ee,name:_0x491b12,selection:_0x27d889,sheetID:_0x95967c}=_0x3c1f25,{startColumn:_0x295f2c,startRow:_0x1b8134,endColumn:_0x26edda,endRow:_0xbc45b6}=_0x98d2ee,_0x2624fb=G['getCoordByCell'](_0x1b8134,_0x295f2c,_0x5517aa,_0x1d207e),_0x696031=G['getCoordByCell'](_0xbc45b6,_0x26edda,_0x5517aa,_0x1d207e),{columnHeaderHeightAndMarginTop:_0x298384}=_0x1d207e,{startX:_0x19f92d,startY:_0x17220a}=_0x2624fb,{endX:_0x533e81,endY:_0x208e22}=_0x696031,_0x4750d=_0x533e81-_0x19f92d,_0x25c1cb=_0x208e22-_0x17220a,_0x2f2ab1={'labelPosition':_0x17220a-_0x298384>=K?_0x44497c(0x1d8):_0x44497c(0x1fb),'sheetID':_0x95967c,'range':_0x98d2ee,'color':_0x492567,'name':_0x491b12,'selection':_0x27d889,'left':_0x19f92d,'top':_0x17220a,'width':_0x4750d,'height':_0x25c1cb,'evented':!0x1,'zIndex':Et};return new ye(_0x491b12,_0x2f2ab1);});_0x5517aa['addObjects'](_0x22a2f4,mt),this['_cursors']=new Set(_0x22a2f4);}['_removeCollabCursors'](){const _0x1a4c8a=_0x114f12;var _0x2909e3;(_0x2909e3=this[_0x1a4c8a(0x212)])==null||_0x2909e3[_0x1a4c8a(0x341)](_0x38a9ef=>_0x38a9ef[_0x1a4c8a(0x2bc)]());}[_0x114f12(0x399)](){const _0x140732=_0x114f12;return G[_0x140732(0x19b)](this[_0x140732(0x1d3)][_0x140732(0x19e)],this[_0x140732(0x1d3)]);}};Ie=bt([ce(0x1,a[_0x114f12(0x2fe)](G[_0x114f12(0x271)])),ce(0x2,a[_0x114f12(0x2fe)](x)),ce(0x3,a[_0x114f12(0x2fe)](a[_0x114f12(0x196)]))],Ie);function Tt(_0x4723e2){const _0xdd8e57=_0x114f12,_0x4716b1=new Map();return _0x4723e2[_0xdd8e57(0x341)](_0x6d62e5=>{const _0x1fac12=_0xdd8e57;if(_0x4716b1[_0x1fac12(0x3bc)](_0x6d62e5[_0x1fac12(0x1f7)])){const _0x2479bd=_0x4716b1['get'](_0x6d62e5[_0x1fac12(0x1f7)]);_0x2479bd[_0x1fac12(0x17a)]+=',\x20'+_0x6d62e5['name'];}else _0x4716b1['set'](_0x6d62e5[_0x1fac12(0x1f7)],_0x6d62e5);}),Array[_0xdd8e57(0x366)](_0x4716b1[_0xdd8e57(0x3a7)]());}var E=function(){const _0x109e18=_0x114f12;return E=Object[_0x109e18(0x145)]||function(_0x338374){const _0x9370cb=_0x109e18;for(var _0x373ab0,_0x14c820=0x1,_0x13461e=arguments[_0x9370cb(0x200)];_0x14c820<_0x13461e;_0x14c820++){_0x373ab0=arguments[_0x14c820];for(var _0x47d1aa in _0x373ab0)Object[_0x9370cb(0x17f)]['hasOwnProperty'][_0x9370cb(0x169)](_0x373ab0,_0x47d1aa)&&(_0x338374[_0x47d1aa]=_0x373ab0[_0x47d1aa]);}return _0x338374;},E[_0x109e18(0x2f4)](this,arguments);},Rt=function(_0x316fd1,_0x57529d){const _0x214a82=_0x114f12;var _0x3ca419={};for(var _0x20b972 in _0x316fd1)Object['prototype'][_0x214a82(0x2e9)][_0x214a82(0x169)](_0x316fd1,_0x20b972)&&_0x57529d[_0x214a82(0x31b)](_0x20b972)<0x0&&(_0x3ca419[_0x20b972]=_0x316fd1[_0x20b972]);if(_0x316fd1!=null&&typeof Object[_0x214a82(0x2a2)]==_0x214a82(0x1c4)){for(var _0x4ec8fd=0x0,_0x20b972=Object[_0x214a82(0x2a2)](_0x316fd1);_0x4ec8fd<_0x20b972[_0x214a82(0x200)];_0x4ec8fd++)_0x57529d['indexOf'](_0x20b972[_0x4ec8fd])<0x0&&Object[_0x214a82(0x17f)]['propertyIsEnumerable'][_0x214a82(0x169)](_0x316fd1,_0x20b972[_0x4ec8fd])&&(_0x3ca419[_0x20b972[_0x4ec8fd]]=_0x316fd1[_0x20b972[_0x4ec8fd]]);}return _0x3ca419;},be=P['forwardRef'](function(_0x5e65cd,_0x1037b4){const _0x4ed9b5=_0x114f12;var _0x37cee4=_0x5e65cd[_0x4ed9b5(0x2f6)],_0x3f4f66=_0x5e65cd['id'],_0x454106=_0x5e65cd[_0x4ed9b5(0x1d9)],_0x4f4008=_0x5e65cd[_0x4ed9b5(0x1b2)],_0x230d5d=Rt(_0x5e65cd,['icon','id','className',_0x4ed9b5(0x1b2)]),_0x23e35b='univerjs-icon\x20univerjs-icon-'[_0x4ed9b5(0x261)](_0x3f4f66,'\x20')[_0x4ed9b5(0x261)](_0x454106||'')['trim'](),_0x252c8f=P[_0x4ed9b5(0x15c)]('_'['concat'](Ut()));return Ae(_0x37cee4,''['concat'](_0x3f4f66),{'defIds':_0x37cee4[_0x4ed9b5(0x1a9)],'idSuffix':_0x252c8f[_0x4ed9b5(0x2ad)]},E({'ref':_0x1037b4,'className':_0x23e35b},_0x230d5d),_0x4f4008);});function Ae(_0x5e0d00,_0x5c01ab,_0x841991,_0x57306d,_0x5a28ea){const _0xe198fd=_0x114f12;return P[_0xe198fd(0x390)](_0x5e0d00['tag'],E(E({'key':_0x5c01ab},Ot(_0x5e0d00,_0x841991,_0x5a28ea)),_0x57306d),(Dt(_0x5e0d00,_0x841991)[_0xe198fd(0x299)]||[])[_0xe198fd(0x210)](function(_0x5bb066,_0x245a38){const _0x5a5f57=_0xe198fd;return Ae(_0x5bb066,''[_0x5a5f57(0x261)](_0x5c01ab,'-')[_0x5a5f57(0x261)](_0x5e0d00[_0x5a5f57(0x189)],'-')[_0x5a5f57(0x261)](_0x245a38),_0x841991,void 0x0,_0x5a28ea);}));}function Ot(_0x429a89,_0x55dae7,_0x1076e4){const _0x1a77d9=_0x114f12;var _0x4cd222=E({},_0x429a89[_0x1a77d9(0x3af)]);_0x1076e4!=null&&_0x1076e4[_0x1a77d9(0x246)]&&_0x4cd222['fill']===_0x1a77d9(0x246)&&(_0x4cd222[_0x1a77d9(0x2a9)]=_0x1076e4[_0x1a77d9(0x246)]),_0x429a89[_0x1a77d9(0x189)]===_0x1a77d9(0x1a1)&&_0x4cd222['id']&&(_0x4cd222['id']=_0x4cd222['id']+_0x55dae7[_0x1a77d9(0x1ec)]),Object[_0x1a77d9(0x2e8)](_0x4cd222)[_0x1a77d9(0x341)](function(_0x2a39ec){const _0x2a788e=_0x1a77d9;var _0x152ffe=_0x2a39ec[0x0],_0x5c4231=_0x2a39ec[0x1];_0x152ffe===_0x2a788e(0x1a1)&&typeof _0x5c4231==_0x2a788e(0x330)&&(_0x4cd222[_0x152ffe]=_0x5c4231[_0x2a788e(0x26b)](/url\(#(.*)\)/,'url(#$1'[_0x2a788e(0x261)](_0x55dae7[_0x2a788e(0x1ec)],')')));});var _0x51d981=_0x55dae7[_0x1a77d9(0x1a9)];return!_0x51d981||_0x51d981[_0x1a77d9(0x200)]===0x0||(_0x429a89[_0x1a77d9(0x189)]===_0x1a77d9(0x166)&&_0x4cd222['xlink:href']&&(_0x4cd222[_0x1a77d9(0x162)]=_0x4cd222['xlink:href']+_0x55dae7[_0x1a77d9(0x1ec)]),Object['entries'](_0x4cd222)['forEach'](function(_0x45c037){const _0x4b48ea=_0x1a77d9;var _0x4f04ca=_0x45c037[0x0],_0x3d104c=_0x45c037[0x1];typeof _0x3d104c==_0x4b48ea(0x330)&&(_0x4cd222[_0x4f04ca]=_0x3d104c[_0x4b48ea(0x26b)](/url\(#(.*)\)/,'url(#$1'[_0x4b48ea(0x261)](_0x55dae7[_0x4b48ea(0x1ec)],')')));})),_0x4cd222;}function Dt(_0x4ee2e0,_0x374f4e){const _0x47fb0f=_0x114f12;var _0x1b7d23,_0x5ccf19=_0x374f4e[_0x47fb0f(0x1a9)];return!_0x5ccf19||_0x5ccf19[_0x47fb0f(0x200)]===0x0?_0x4ee2e0:_0x4ee2e0[_0x47fb0f(0x189)]===_0x47fb0f(0x292)&&(!((_0x1b7d23=_0x4ee2e0[_0x47fb0f(0x299)])===null||_0x1b7d23===void 0x0)&&_0x1b7d23['length'])?E(E({},_0x4ee2e0),{'children':_0x4ee2e0[_0x47fb0f(0x299)][_0x47fb0f(0x210)](function(_0x593081){const _0x5a3050=_0x47fb0f;return typeof _0x593081[_0x5a3050(0x3af)]['id']==_0x5a3050(0x330)&&_0x5ccf19&&_0x5ccf19['indexOf'](_0x593081[_0x5a3050(0x3af)]['id'])>-0x1?E(E({},_0x593081),{'attrs':E(E({},_0x593081[_0x5a3050(0x3af)]),{'id':_0x593081[_0x5a3050(0x3af)]['id']+_0x374f4e['idSuffix']})}):_0x593081;})}):_0x4ee2e0;}function Ut(){const _0x1f99ed=_0x114f12;return Math[_0x1f99ed(0x304)]()['toString'](0x24)['substring'](0x2,0x8);}function _0x46c8(){const _0x494540=['origin','editingUnit','_render','CommandType','CollaborationEvent','DataLoaderService','concat','IRemoteInstanceService','endColumn','_hover','clipPath','ISocketService','UNIVER_SHEET','clsx','univer-online-status-icon','_unitStatus','replace','unitID','_heartbeatTimer','#fff','_color','UnitStatus','SheetSkeletonManagerService','fromEventSubject','startColumn','split','handleInsertRangeMoveRight','collabStatus.conflict','#FFF','save','univer-flex\x20univer-items-center','LICENSE_DISTRO_REJECTED','TRANSFORM_CHANGE_OBSERVABLE_TYPE','collaboration.single-unit.warning','closePath','TEXT','_removeCollabCursors','setAlpha','IBeforeCloseService','backgroundColor','defineProperty','_getAnchorBounding','_transformUndoRedoStack','toDisposable','_collabCursorState$','_univerInstanceService','getCollabCursors$','_toggleOffline','onMouseMove','_getSessionTicket','SUBMIT_CHANGESET_TIMEOUT','_localeService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','displayName','subscribeEvent','defs','handleDeleteRangeMoveLeft','drawWith','_registerDependencies','row','div','_entities','children','none','OnLineSingle','Vector2','CollaborationSocketService','getUnhiddenWorksheets','transformStateCache','transformSelections','SetTextSelectionsOperation','getOwnPropertySymbols','set','_registerRenderDependencies','Rect','_collaborationUIEventService','_status$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','fill','SYNCED','DOC_RANGE_TYPE','SetDocZoomRatioOperation','current','cursorInfo$','_scheduleHeartbeat','event$','parse','getUniverSheetInstance','_cachedData','getAncestorScale','Plugin','Unknown\x20user','find','location','registerBeforeClose','eventID','CollaborationDataLoaderController','dispose','key','connectInjector','setShapeProps','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','result','FETCH_MISS','MessageType','OTHER_CLIENTS_EDITING','transformIMECache','@univerjs/network','InsertRowCommandId','_messageService','_eventUnsubscribe','_docClipboardService','collabStatus.notCollab','sessionTicket','_updateSubUnitFromURLParams','_createSocketURL','_backgroundColor','UNRECOGNIZED','_initDependencies','registerDependencies','_handleHover','arc','subscribe','getRelativeToViewportCoord','handleInsertRangeMoveDown','DocSkeletonManagerService','SOCKET_FAILED','TEXT_RANGE_LAYER_INDEX','_config','react/jsx-runtime','saveOfflineData','1em','triggerDblclick','_cursor','ColorKit','MoveRangeCommandId','entityInit$','_updateLocalCursor','[CollaborationDataLoaderController]','HTTPService','_removeClearOtherTimer','entries','hasOwnProperty','isEditing','APPLY_DUPLICATED','7176VLZJOP','WebSocketService','session.collaboration-timeout','translate(.97)','online','M0\x200H16V16H0z','handleInsertCol','_instanceService','apply','UniverCollaborationClientUIPlugin','icon','_unitOnClients','handleIRemoveCol','session.will-retry','RECT','mutations','add','forwardRef','Inject','1450039UePtlo','getSheetId','onPointerMove$','569907xkqiNe','throttleTime','random','/run/','PY_RUNTIME_SCRIPT_ERROR','UniverInstanceType','4348580jTUCAa','LOCAL_CACHE_INTERVAL','_imageIoService','collab-rect-range-','@univerjs-pro/collaboration','handleMoveRange','distinctUntilChanged','assignAColorForMemberID','APPLY_REJECT','_startDocCollabCursor','registerRenderModule','setItem','jiqing500','textRanges','@univerjs/sheets','CollaborationController','ICommandService','executeCommand','measureText','indexOf','RemoteUniscriptService','8186310DnRmiH','_drawTextRange','univer-online-status-title','_uiPartsService','ILocalStorageService','_initEvent','_collaborationController','actions','createInstance','combineLatest','offline','TOO_MANY_REQUESTS','_toggleOnline','getLocalCacheKey','addObject','InsertRangeMoveDownCommandId','redoState','push','LICENSE_MAX_UNITS_EXCEEDED','string','_range','getRenderById','getTypeOfUnitAdded$','DocStateChangeManagerService','sheetID','_notificationService','urlChange$','RegularPolygon','_renderManagerService','_docSkeleton','Tooltip','CollaborationSessionService','_saveTaskMap','_urlService','replaceState','OFFLINE','forEach','@univerjs/rpc','RefRangeService','sessionStatus$','init','_send','memberID','UNDEFINED','LICENSE_IMPORT_SIZE_EXCEEDED','INVALID_ARGUMENT','_getSaveTimeout','Failed','setParam','ONLINE','complete','dispose$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','APPLY_PERMISSION_DENIED','currentColor','skeleton','handleInsertRow','_name','exhaustSavingTask','getOwnPropertyDescriptor','BrowserCollaborationSocketService','collaboration-client-ui.config','getViewport','IConfigService','_syncEditingCollabCursorService','UPDATE_CURSOR','_updateCollabCursors','_localCacheService','isActive','application/json','DEFAULT_WS_SESSION_TICKET_URL','currentTheme$','getTypeOfUnitDisposed$','from','DeleteRangeMoveUpCommandId','currentSkeleton$','_ensureSubject','_roomMembers$','endRow','DocSelectionManagerService','off-line-single','doc.mutation.rich-text-editing','getCurrentRevOfUnit','undoState','NOT_FOUND','_transformService','OTHER_CLIENT_EDITING','NO_OTHER_CLIENTS_EDITING','CollaborationStatus','_initResize','_saveCache','_scene','_transformHistoryAndStateStack','mapTo','_labelPosition','ACTIVE_UNIT_EVENT_CHANNEL','syncEditingCollabCursor','4862925RpxsvA','unshift','focused$','_session','SetSelectionsOperation','UNAUTHENTICATED','unsubscribe','getColor','YUUMI_URL_COL_OUT_OF_RANGE','column','jsxs','SessionStatus','SNAPSHOT_HAS_BEEN_REMOVED','MUTATION','searchParams','resize','BehaviorSubject','JOIN_ROOM_FAILED','createElement','_collabCursorController','DeleteRangeMoveLeftCommandId','ranges','touchDependencies','_commandService','requireSession','getValue','includes','_getSheetObject','transformMutationsWithChangeset','_injector','WebURLService','getOffsetConfig','Tools','gold400','serializeRangeWithSheet','CollaborationStatusDisplay','collaboration-client.offline-data-not-saved','uni.network.url-service','_draw','SHEET_VIEWPORT_KEY','setConfig','values','_docTransformStateCacheService','color','_themeService','_handleEvent','width','contains','EffectRefRangId','attrs','Module','...','getRangePointData','_initEntityListener','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Warning','transformMutation','_beforeCloseService','isTransformMutationFailure','off-line-single_clip0_910_343','findNodePositionByCharIndex','pipe','has','onTransformChange$','WebBrowserSingleActiveUnitService','getMember','getCurrent','assign','_dataLoaderService','hide','startsWith','_setupSubUnitSync','url(#off-line-single_clip0_910_343)','onLocalMutation','delete','addHandlerCallback','getUndoRedoMutationParamsCache','Shape','CONNECTOR_DATA_TOO_LARGE','LICENSE_EXPORT_SIZE_EXCEEDED','_getScale','_revisionService','error','getConfig','IURLService','next','asObservable','replaceDocRanges','collaboration.closeRoom','subunit','useRef','collabStatus.synced','round','LocaleService','RemoveColCommandId','docStateChange$','xlink:href','unitId','saveTaskMap','font','use','switchMap','_logService','call','_handleHeartbeatEvent','shareReplay','@univerjs/engine-render','useDependency','restore','newValue','disableLocalCache','subUnitId','disposeUnit','collab-text-range-','data','4025BuVznD','SheetCollabCursorShape','getSheetBySheetId','onPointerLeave$','some','name','isArray','transformByState','activeSheet$','_initStatusListener','prototype','_assignedColors','then','IUniverInstanceService','_hovered','DocIMEInputManagerService','wsSessionTicketUrl','getActiveSheet','show','storage','tag','_handleLeaveEvent','AWAITING_WITH_PENDING','getCollabEntity$','_scheduleSaving','_selfUnitIDs','_drawRectRange','fillText','NOT_COLLAB','code','lineTo','roomMembers','onlineStatus','ThemeService','size','IMessageService','@univerjs/docs-ui','_drawAnchor','getSheetObject','disposeWithMe','@univerjs-pro/collaboration-client','unit','search','_memberService','mask','InsertColCommandId','_colorAssignService','@univerjs/docs','url(#on-line-single_clip0_910_349)','cursorInfo','onCommandExecuted','@univerjs/design','defIds','7716765dvkrPG','SNAPSHOT_INVALID_SNAPSHOT','history','rxjs','_updateURLWithCurrentState','YUUMI_UNABLE_LOAD_URL','loadOfflineData','onPointerEnter$','extend','ILocalCacheService','runRefRangeMutations','href','createIdentifier','body','COMPLETION_FINISHED','generateRandomId','_httpService','whenReady','pushState','red300','YUUMI_RATE_OVER_LIMIT','_disabled','ILogService','override','getUnitStatus$','isTransformMutationsWithChangesetSuccess','function','_doCreateSocket','rgba(255,\x20255,\x20255,\x200.01)','_id','ticket','collab-text-anchor-','runOnServer','roomMembers$','_localStorageService','invokeId','enableLocalCache','transformRemoteChangeset','_onCursorUpdate','startRow','with','_context','onlineStatusTitle','_handleJoinEvent','useCallback','pluginName','top','className','CollaborationUIEventId','_docSyncEditingCollabCursorService','updateOfflineData','COLORS','RxDisposable','_lastPointer','clearInterval','fillRule','_initCommandExecutedListener','@univerjs/drawing','params','Optional','_cursorShapes','_docTransformSelectionsService','range','YUUMI_SUBSCRIPTION_NOT_FOUND','_anchorDot','IRenderManagerService','idSuffix','clearTimeout','_refRangeService','getStateCache','hovered','getUnitId','IDocClipboardService','_init','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_collabSessionService','labelPosition','selection','_docSkeletonManagerService','APPLY_NON_SEQUENTIAL_REVISION','_docStateChangeManagerService','bottom','m1Prime','MemberService','runId','filter','length','deepClone','CONFLICT','Injector','_startSheetCollabCursor','_refreshCollabCursors','_anchor','FromArray','m2Prime','INTERNAL_ERROR','registerComponent','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','SetWorksheetActivateCommand','_onRefRangeChange','_configService','getSkeleton','map','engine','_cursors','DesktopCollaborationStatusDisplayController','Subject','SheetsSelectionsService','min','setStateCache','unload','_onCursorDelete','_online','DocCollaborationEntity','2vKSEOr','jsx','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','DependentOn','addClipboardHook','get','deserializeRangeWithSheet','verdancy600','_sheetSkeletonManagerService','_scheduleClearOtherTimer','ITransformService','handleIRemoveRow','on-line-single','ALREADY_EXISTS','RemoveRowCommandId','getDocRanges','reconnect','PERMISSION_DENIED','Disposable','_setupBeforeClosingHandler','path','getMemberID','svg','collabCursorState$','toString','_textBubble','flatMap','black','toRgbString','debounce','@univerjs/core','Rectangle','_cursorInfo$','stringify','getParam','takeUntil','UNIVER_DOC','fromEvent','Error','text','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','permission.title','colorChannel1','getMergeData','moveTo','_entityInit$','INotificationService','getCurrentSelections','getFocusedUnit','_initStatusComponent','debug','sheetId','_hideTimer','_colorIndex','USERS_LEAVE','_clearOtherTimers','APPLY_REVISION_CONFILICT','handleDeleteRangeMoveUp','height','rxjs/operators','addEventListener','source','_document'];_0x46c8=function(){return _0x494540;};return _0x46c8();}be['displayName']='UniverIcon';var Mt={'tag':_0x114f12(0x232),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x114f12(0x2de)},'children':[{'tag':'g','attrs':{'clipPath':_0x114f12(0x14a)},'children':[{'tag':_0x114f12(0x230),'attrs':{'stroke':_0x114f12(0x353),'d':_0x114f12(0x244),'strokeLinecap':_0x114f12(0x15e),'strokeLinejoin':_0x114f12(0x15e),'strokeWidth':1.2}}]},{'tag':_0x114f12(0x292),'attrs':{},'children':[{'tag':_0x114f12(0x265),'attrs':{'id':_0x114f12(0x3b9)},'children':[{'tag':_0x114f12(0x230),'attrs':{'fill':_0x114f12(0x26e),'d':_0x114f12(0x2f1)}}]}]}],'defIds':[_0x114f12(0x3b9)]},$e=P[_0x114f12(0x2fd)](function(_0x29b585,_0x805526){const _0x468134=_0x114f12;return P[_0x468134(0x390)](be,Object[_0x468134(0x145)]({},_0x29b585,{'id':_0x468134(0x36d),'ref':_0x805526,'icon':Mt}));});$e['displayName']='OffLineSingle';var Pt={'tag':_0x114f12(0x232),'attrs':{'fill':_0x114f12(0x29a),'viewBox':'0\x200\x2017\x2016','width':_0x114f12(0x2de),'height':_0x114f12(0x2de)},'children':[{'tag':'g','attrs':{'clipPath':_0x114f12(0x1a5)},'children':[{'tag':_0x114f12(0x230),'attrs':{'stroke':'currentColor','d':_0x114f12(0x2c0),'strokeLinecap':_0x114f12(0x15e),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x114f12(0x292),'attrs':{},'children':[{'tag':_0x114f12(0x265),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x114f12(0x2ef)}}]}]}],'defIds':['on-line-single_clip0_910_349']},xe=P[_0x114f12(0x2fd)](function(_0x486ecd,_0x1ba6b6){const _0xf2cf02=_0x114f12;return P['createElement'](be,Object[_0xf2cf02(0x145)]({},_0x486ecd,{'id':_0xf2cf02(0x228),'ref':_0x1ba6b6,'icon':Pt}));});xe[_0x114f12(0x290)]=_0x114f12(0x29b);const Nt=_0x114f12(0x269),wt=_0x114f12(0x31f),Lt='univer-online-status',yt='univer-online',At='univer-offline',H={'onlineStatusIcon':Nt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':yt,'offline':At};function $t(_0x3747c7){const _0x27cb65=_0x114f12;switch(_0x3747c7){case u[_0x27cb65(0x375)][_0x27cb65(0x340)]:return'collabStatus.offline';case u[_0x27cb65(0x375)][_0x27cb65(0x202)]:return _0x27cb65(0x276);case u[_0x27cb65(0x375)][_0x27cb65(0x2c2)]:return'collabStatus.fetchMiss';case u[_0x27cb65(0x375)][_0x27cb65(0x191)]:return _0x27cb65(0x2cb);case u[_0x27cb65(0x375)]['AWAITING']:case u['CollaborationStatus'][_0x27cb65(0x18b)]:return'collabStatus.syncing';case u[_0x27cb65(0x375)][_0x27cb65(0x2aa)]:case u[_0x27cb65(0x375)]['PENDING']:return _0x27cb65(0x15d);}}function je(_0x2552bc){const _0x35a029=_0x114f12,{status$:_0x3d8a7f}=_0x2552bc,_0x2dd9ed=R['useObservable'](_0x3d8a7f,u['CollaborationStatus']['NOT_COLLAB']),_0x2cacdf=R['useDependency'](a[_0x35a029(0x15f)]),_0x44d4c9=R[_0x35a029(0x16d)](u[_0x35a029(0x33c)]),_0x4e6986=_0x2dd9ed!==u[_0x35a029(0x375)][_0x35a029(0x340)],_0x8c8641=_0x2cacdf['t']($t(_0x2dd9ed)),_0x5b2bca=T[_0x35a029(0x268)](H[_0x35a029(0x195)],{[H[_0x35a029(0x2f0)]]:_0x4e6986,[H[_0x35a029(0x327)]]:!_0x4e6986}),_0x24ec38=_0x4e6986?w[_0x35a029(0x21d)](xe,{}):w[_0x35a029(0x21d)]($e,{}),_0x5952ff=P[_0x35a029(0x1d6)](()=>{const _0x113b69=_0x35a029;_0x4e6986||_0x44d4c9[_0x113b69(0x22c)]();},[_0x4e6986,_0x44d4c9]);function _0x122637(){const _0x5d185d=_0x35a029;return w[_0x5d185d(0x388)](_0x5d185d(0x297),{'className':T['clsx'](_0x5b2bca,_0x5d185d(0x279)),'onClick':_0x5952ff,'children':[w[_0x5d185d(0x21d)]('div',{'className':H['onlineStatusIcon'],'children':_0x24ec38}),w[_0x5d185d(0x21d)]('div',{'className':H[_0x5d185d(0x1d4)],'children':_0x8c8641})]});}return _0x4e6986?_0x122637():w['jsx'](T[_0x35a029(0x33b)],{'title':_0x2cacdf['t']('collab-client.tooltip.reconnect'),'children':_0x122637()});}var xt=Object['getOwnPropertyDescriptor'],jt=(_0x564b51,_0x1c8ff2,_0x2ef73a,_0x43e4e5)=>{const _0x368256=_0x114f12;for(var _0x1a39ec=_0x43e4e5>0x1?void 0x0:_0x43e4e5?xt(_0x1c8ff2,_0x2ef73a):_0x1c8ff2,_0x213f42=_0x564b51[_0x368256(0x200)]-0x1,_0x1981f9;_0x213f42>=0x0;_0x213f42--)(_0x1981f9=_0x564b51[_0x213f42])&&(_0x1a39ec=_0x1981f9(_0x1a39ec)||_0x1a39ec);return _0x1a39ec;},V=(_0x48c951,_0x284e38)=>(_0x31e3a7,_0x11113c)=>_0x284e38(_0x31e3a7,_0x11113c,_0x48c951);exports[_0x114f12(0x213)]=class extends a[_0x114f12(0x22e)]{constructor(_0x401046,_0x55d649,_0x328f5c,_0x22c1d2){const _0x362b24=_0x114f12;super(),h(this,'_status$',new d[(_0x362b24(0x38e))](u[_0x362b24(0x375)]['NOT_COLLAB'])),(this[_0x362b24(0x288)]=_0x401046,this[_0x362b24(0x39b)]=_0x55d649,this['_collaborationController']=_0x328f5c,this[_0x362b24(0x320)]=_0x22c1d2,this['_initStatusComponent'](),this[_0x362b24(0x17e)]());}[_0x114f12(0x17e)](){const _0x351b78=_0x114f12;this['disposeWithMe'](this[_0x351b78(0x288)][_0x351b78(0x380)][_0x351b78(0x3bb)](d[_0x351b78(0x167)](()=>{const _0x5ba2fc=_0x351b78,_0x56d9f9=this[_0x5ba2fc(0x288)][_0x5ba2fc(0x24c)]();return _0x56d9f9?this[_0x5ba2fc(0x323)][_0x5ba2fc(0x18c)](_0x56d9f9[_0x5ba2fc(0x1f1)]()):d['of'](null);}),d[_0x351b78(0x167)](_0x8f7b85=>_0x8f7b85?_0x8f7b85['status$']:d['of'](u[_0x351b78(0x375)][_0x351b78(0x191)])))[_0x351b78(0x2d5)](_0xe41370=>{const _0x49442c=_0x351b78;this[_0x49442c(0x2a7)][_0x49442c(0x157)](_0xe41370);}));}[_0x114f12(0x24d)](){const _0x198805=_0x114f12;this['disposeWithMe'](this[_0x198805(0x320)][_0x198805(0x20a)](R['BuiltInUIPart']['HEADER_MENU'],()=>R[_0x198805(0x2be)](kt({'status$':this[_0x198805(0x2a7)][_0x198805(0x158)]()}),this[_0x198805(0x39b)])));}},exports[_0x114f12(0x213)]=jt([V(0x0,a[_0x114f12(0x182)]),V(0x1,a[_0x114f12(0x2fe)](a['Injector'])),V(0x2,a['Inject'](u['CollaborationController'])),V(0x3,R['IUIPartsService'])],exports[_0x114f12(0x213)]);function kt(_0x39aa18){const {status$:_0xacad66}=_0x39aa18;return function(){const _0xafde04=_0x7083;return w[_0xafde04(0x21d)](je,{'status$':_0xacad66});};}var Bt=Object[_0x114f12(0x358)],Ht=(_0x412e1a,_0x109452,_0xa96071,_0x1414b4)=>{const _0x568e66=_0x114f12;for(var _0x57225f=_0x1414b4>0x1?void 0x0:_0x1414b4?Bt(_0x109452,_0xa96071):_0x109452,_0x369337=_0x412e1a[_0x568e66(0x200)]-0x1,_0x549253;_0x369337>=0x0;_0x369337--)(_0x549253=_0x412e1a[_0x369337])&&(_0x57225f=_0x549253(_0x57225f)||_0x57225f);return _0x57225f;},A=(_0x510e4f,_0xbff620)=>(_0x54d3c1,_0x1b95db)=>_0xbff620(_0x54d3c1,_0x1b95db,_0x510e4f);let z=class extends a[_0x114f12(0x22e)]{constructor(_0x1cb0d9,_0x4812ad,_0x449529,_0x5e13a2,_0xf6649d,_0xe6a5de){const _0x34efce=_0x114f12;super(),this['_beforeCloseService']=_0x1cb0d9,this[_0x34efce(0x360)]=_0x4812ad,this[_0x34efce(0x2a6)]=_0x449529,this[_0x34efce(0x2c8)]=_0x5e13a2,this[_0x34efce(0x336)]=_0xf6649d,this['_localeService']=_0xe6a5de,this['_setupBeforeClosingHandler'](),this[_0x34efce(0x322)]();}[_0x114f12(0x22f)](){const _0x3c6e92=_0x114f12;this[_0x3c6e92(0x19c)](this[_0x3c6e92(0x3b7)][_0x3c6e92(0x2b9)](()=>{const _0x2b6147=_0x3c6e92;if(this['_localCacheService'][_0x2b6147(0x164)]['size'])return this[_0x2b6147(0x28e)]['t'](_0x2b6147(0x3a2));}));}['_initEvent'](){const _0x3887c8=_0x114f12;this[_0x3887c8(0x19c)](this[_0x3887c8(0x2a6)][_0x3887c8(0x2b0)]['subscribe'](_0x278a87=>{const _0x4faa45=_0x3887c8;_0x278a87['id']===u[_0x4faa45(0x1da)][_0x4faa45(0x373)]&&this[_0x4faa45(0x2c8)][_0x4faa45(0x187)]({'type':T[_0x4faa45(0x2c3)][_0x4faa45(0x3b5)],'content':this[_0x4faa45(0x28e)]['t'](_0x4faa45(0x27c))}),_0x278a87['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x4faa45(0x2c8)][_0x4faa45(0x187)]({'type':T['MessageType'][_0x4faa45(0x3b5)],'content':this[_0x4faa45(0x28e)]['t'](_0x4faa45(0x15a))}),_0x278a87['id']===u[_0x4faa45(0x1da)][_0x4faa45(0x22d)]&&this[_0x4faa45(0x336)][_0x4faa45(0x187)]({'title':this[_0x4faa45(0x28e)]['t'](_0x4faa45(0x245)),'content':this[_0x4faa45(0x28e)]['t']('permission.content'),'type':_0x4faa45(0x154),'duration':0x0}),_0x278a87['id']===u[_0x4faa45(0x1da)]['CONFLICT']&&this[_0x4faa45(0x2c8)][_0x4faa45(0x187)]({'type':T[_0x4faa45(0x2c3)][_0x4faa45(0x242)],'content':this[_0x4faa45(0x28e)]['t'](_0x4faa45(0x15a))+'('+_0x278a87[_0x4faa45(0x174)]+')'}),_0x278a87['id']===u[_0x4faa45(0x1da)][_0x4faa45(0x38f)]&&this[_0x4faa45(0x2c8)][_0x4faa45(0x187)]({'type':T[_0x4faa45(0x2c3)]['Warning'],'content':this[_0x4faa45(0x28e)]['t'](_0x278a87[_0x4faa45(0x174)]||'')}),_0x278a87['id']===u[_0x4faa45(0x1da)]['SOCKET_FAILED_RETRY']&&this[_0x4faa45(0x2c8)][_0x4faa45(0x187)]({'type':T[_0x4faa45(0x2c3)][_0x4faa45(0x3b5)],'content':this[_0x4faa45(0x28e)]['t'](_0x4faa45(0x2f9))}),_0x278a87['id']===u['CollaborationUIEventId'][_0x4faa45(0x2d9)]&&this[_0x4faa45(0x2c8)][_0x4faa45(0x187)]({'type':T['MessageType']['Error'],'content':this[_0x4faa45(0x28e)]['t']('session.connection-failed')}),_0x278a87['id']===u[_0x4faa45(0x1da)][_0x4faa45(0x28d)]&&this[_0x4faa45(0x2c8)]['show']({'type':T[_0x4faa45(0x2c3)][_0x4faa45(0x242)],'content':this['_localeService']['t'](_0x4faa45(0x2ee))});}));}};z=Ht([A(0x0,R[_0x114f12(0x281)]),A(0x1,u[_0x114f12(0x1b3)]),A(0x2,a[_0x114f12(0x2fe)](u['CollaborationUIEventService'])),A(0x3,R[_0x114f12(0x198)]),A(0x4,R[_0x114f12(0x24a)]),A(0x5,a[_0x114f12(0x2fe)](a[_0x114f12(0x15f)]))],z);const Wt=_0x114f12(0x35a),Me={},Ee=a[_0x114f12(0x1b6)](_0x114f12(0x3a3));var Ft=Object['getOwnPropertyDescriptor'],Yt=(_0x56ff02,_0x42af98,_0x183b20,_0x222d2)=>{const _0x19988e=_0x114f12;for(var _0x7ebc2e=_0x222d2>0x1?void 0x0:_0x222d2?Ft(_0x42af98,_0x183b20):_0x42af98,_0x381ed0=_0x56ff02[_0x19988e(0x200)]-0x1,_0x50e24a;_0x381ed0>=0x0;_0x381ed0--)(_0x50e24a=_0x56ff02[_0x381ed0])&&(_0x7ebc2e=_0x50e24a(_0x7ebc2e)||_0x7ebc2e);return _0x7ebc2e;},W=(_0x221698,_0x37e1f8)=>(_0x1b5052,_0x508c1b)=>_0x37e1f8(_0x1b5052,_0x508c1b,_0x221698);exports[_0x114f12(0x2bb)]=class extends a[_0x114f12(0x1de)]{constructor(_0x5490c6,_0x313648,_0x456dcb,_0x2ca2bb,_0x57e9e1){const _0x316dbe=_0x114f12;super(),this[_0x316dbe(0x33e)]=_0x5490c6,this[_0x316dbe(0x168)]=_0x313648,this[_0x316dbe(0x395)]=_0x456dcb,this[_0x316dbe(0x146)]=_0x2ca2bb,_0x57e9e1?_0x57e9e1==null||_0x57e9e1[_0x316dbe(0x1bb)]()[_0x316dbe(0x181)](()=>this[_0x316dbe(0x1f3)]()):(this['_logService'][_0x316dbe(0x24e)](_0x316dbe(0x2e5),_0x316dbe(0x28f)),this[_0x316dbe(0x1f3)]());}async['_init'](){const _0x17f3ed=_0x114f12,_0x4195be=this[_0x17f3ed(0x33e)][_0x17f3ed(0x23e)](_0x17f3ed(0x19e)),_0x21f7e9=this['_urlService'][_0x17f3ed(0x23e)]('type'),_0x26f6dc=this[_0x17f3ed(0x33e)][_0x17f3ed(0x23e)](_0x17f3ed(0x15b));if(!_0x4195be||!_0x21f7e9){this[_0x17f3ed(0x168)]['debug'](_0x17f3ed(0x2e5),_0x17f3ed(0x3b4));return;}const _0x3f4210=await this['_dataLoaderService']['loadUnit'](_0x4195be,Number(_0x21f7e9),_0x26f6dc);_0x3f4210&&_0x3f4210 instanceof a['Workbook']&&this[_0x17f3ed(0x149)](_0x3f4210);}async['_setupSubUnitSync'](_0x1a2867){const _0x30128d=_0x114f12;await this[_0x30128d(0x2cd)](_0x1a2867),_0x1a2867[_0x30128d(0x17d)]['pipe'](d[_0x30128d(0x23f)](this[_0x30128d(0x350)]))[_0x30128d(0x2d5)](_0x41a564=>{_0x41a564&&this['_updateURLWithCurrentState'](_0x41a564);}),this[_0x30128d(0x33e)][_0x30128d(0x337)][_0x30128d(0x3bb)](d[_0x30128d(0x23f)](this[_0x30128d(0x350)]))[_0x30128d(0x2d5)](()=>this[_0x30128d(0x2cd)](_0x1a2867));}[_0x114f12(0x1ae)](_0x373145,_0x22bb6c=!0x1){const _0x2ec8f8=_0x114f12,_0xa0c38c=this[_0x2ec8f8(0x33e)][_0x2ec8f8(0x23e)](_0x2ec8f8(0x15b));_0x373145[_0x2ec8f8(0x300)]()!==_0xa0c38c&&this[_0x2ec8f8(0x33e)][_0x2ec8f8(0x34d)]('subunit',_0x373145[_0x2ec8f8(0x300)](),_0x22bb6c);}async[_0x114f12(0x2cd)](_0x48884d){const _0x1984bf=_0x114f12;var _0x5b3871;const _0x25c63f=this[_0x1984bf(0x33e)][_0x1984bf(0x23e)](_0x1984bf(0x15b));if(!_0x25c63f||!_0x48884d[_0x1984bf(0x177)](_0x25c63f)){const _0xe2a333=_0x48884d[_0x1984bf(0x29e)]()[0x0],_0x92e82d=_0x48884d[_0x1984bf(0x177)](_0xe2a333);if(!_0x92e82d)return;this[_0x1984bf(0x1ae)](_0x92e82d,!0x0),await this['_commandService']['executeCommand'](I[_0x1984bf(0x20c)]['id'],{'unitId':_0x48884d[_0x1984bf(0x1f1)](),'subUnitId':_0xe2a333});return;}((_0x5b3871=_0x48884d[_0x1984bf(0x186)]())==null?void 0x0:_0x5b3871[_0x1984bf(0x300)]())!==_0x25c63f&&await this[_0x1984bf(0x395)][_0x1984bf(0x319)](I['SetWorksheetActivateCommand']['id'],{'unitId':_0x48884d[_0x1984bf(0x1f1)](),'subUnitId':_0x25c63f});}},exports[_0x114f12(0x2bb)]=Yt([W(0x0,Ee),W(0x1,a[_0x114f12(0x1c0)]),W(0x2,a['ICommandService']),W(0x3,a[_0x114f12(0x2fe)](u[_0x114f12(0x260)])),W(0x4,a[_0x114f12(0x1e5)](Ke[_0x114f12(0x262)]))],exports[_0x114f12(0x2bb)]);var Xt=Object[_0x114f12(0x358)],Vt=(_0x1c46d4,_0x12bd7b,_0x46b193,_0x33e81e)=>{const _0x7f037b=_0x114f12;for(var _0x5d8176=_0x33e81e>0x1?void 0x0:_0x33e81e?Xt(_0x12bd7b,_0x46b193):_0x12bd7b,_0x3df14f=_0x1c46d4[_0x7f037b(0x200)]-0x1,_0x2186f1;_0x3df14f>=0x0;_0x3df14f--)(_0x2186f1=_0x1c46d4[_0x3df14f])&&(_0x5d8176=_0x2186f1(_0x5d8176)||_0x5d8176);return _0x5d8176;},le=(_0x162911,_0x571dd8)=>(_0x985011,_0x3ff724)=>_0x571dd8(_0x985011,_0x3ff724,_0x162911);let J=class{constructor(_0x3328bd,_0x24ce4f,_0x30301d){const _0x557c6c=_0x114f12;this[_0x557c6c(0x39b)]=_0x3328bd,this[_0x557c6c(0x372)]=_0x24ce4f,this['_renderManagerService']=_0x30301d;}['transformIMECache'](_0x3fc405){const _0x1bb0b9=_0x114f12;this[_0x1bb0b9(0x285)](_0x3fc405),this['_transformPreviousActiveRange'](_0x3fc405);}[_0x114f12(0x1cf)](_0xc59af8){const _0x3e1c3b=_0x114f12,{unitID:_0xe5426a}=_0xc59af8,_0x1d1dd6=this[_0x3e1c3b(0x339)][_0x3e1c3b(0x332)](_0xe5426a)[_0x3e1c3b(0x1d2)](b[_0x3e1c3b(0x184)]),{redoCache:_0x5cb61e}=_0x1d1dd6[_0x3e1c3b(0x14e)]();if(_0x5cb61e[_0x3e1c3b(0x200)]===0x0)return _0xc59af8;let _0x1a0be5=a[_0x3e1c3b(0x39e)][_0x3e1c3b(0x201)](_0xc59af8[_0x3e1c3b(0x2fb)][0x0]);for(let _0x284334=0x0;_0x284334<_0x5cb61e[_0x3e1c3b(0x200)];_0x284334++){const _0x537453={'id':_0x3e1c3b(0x36e),'params':{..._0x5cb61e[_0x284334]}},_0x226d61=this[_0x3e1c3b(0x372)][_0x3e1c3b(0x3b6)](_0x1a0be5,_0x537453,!0x1);if(m['isTransformMutationFailure'](_0x226d61))throw _0x226d61['error'];_0x1a0be5=_0x226d61[_0x3e1c3b(0x1fc)];}return{...a[_0x3e1c3b(0x39e)][_0x3e1c3b(0x201)](_0xc59af8),'mutations':[_0x1a0be5]};}[_0x114f12(0x285)](_0x183070){const _0x3b1826=_0x114f12,{unitID:_0x58b140}=_0x183070,_0x3e1cc5=this[_0x3b1826(0x339)][_0x3b1826(0x332)](_0x58b140)[_0x3b1826(0x1d2)](b['DocIMEInputManagerService']),{undoCache:_0x4bbc65,redoCache:_0x29a8de}=_0x3e1cc5[_0x3b1826(0x14e)]();if(_0x4bbc65['length']===0x0||_0x29a8de[_0x3b1826(0x200)]===0x0)return;const _0x353e31=[],_0x42548c=[];let _0x56d05d=a[_0x3b1826(0x39e)]['deepClone'](_0x183070[_0x3b1826(0x2fb)][0x0]),_0x194ab8=a[_0x3b1826(0x39e)][_0x3b1826(0x201)](_0x183070[_0x3b1826(0x2fb)][0x0]);for(let _0x599d7b=_0x4bbc65[_0x3b1826(0x200)]-0x1;_0x599d7b>=0x0;_0x599d7b--){const _0x377708={'id':_0x3b1826(0x36e),'params':{..._0x4bbc65[_0x599d7b]}},_0x1add4d={'id':_0x3b1826(0x36e),'params':{..._0x29a8de[_0x599d7b]}},_0xc6ea78=this[_0x3b1826(0x372)]['transformMutation'](_0x56d05d,_0x377708,!0x1),_0x19dbe2=this[_0x3b1826(0x372)][_0x3b1826(0x3b6)](_0x194ab8,_0x1add4d,!0x1);if(m[_0x3b1826(0x3b8)](_0xc6ea78))throw _0xc6ea78[_0x3b1826(0x154)];if(m[_0x3b1826(0x3b8)](_0x19dbe2))throw _0x19dbe2[_0x3b1826(0x154)];_0x353e31[_0x3b1826(0x37f)](_0xc6ea78['m2Prime'][_0x3b1826(0x1e4)]),_0x42548c[_0x3b1826(0x37f)](_0x19dbe2[_0x3b1826(0x208)][_0x3b1826(0x1e4)]),_0x56d05d=_0xc6ea78[_0x3b1826(0x1fc)],_0x194ab8=_0x19dbe2[_0x3b1826(0x1fc)];}_0x3e1cc5['setUndoRedoMutationParamsCache']({'undoCache':_0x353e31,'redoCache':_0x42548c});}['_transformPreviousActiveRange'](_0x8c4a8a){const _0x5dbc79=_0x114f12,{unitID:_0x119530}=_0x8c4a8a,_0x3fbfe4=this[_0x5dbc79(0x339)]['getRenderById'](_0x119530)[_0x5dbc79(0x1d2)](b['DocIMEInputManagerService']),_0x2a1f6f=_0x3fbfe4['getActiveRange']();if(_0x2a1f6f==null)return;const _0x2be449=[{'id':_0x5dbc79(0x36e),'params':{'unitId':_0x8c4a8a['unitID'],'actions':null,'textRanges':[_0x2a1f6f]}}],_0x406f37=this[_0x5dbc79(0x372)]['transformMutationsWithChangeset'](_0x8c4a8a,_0x2be449);if(!m[_0x5dbc79(0x1c3)](_0x406f37))throw _0x406f37[_0x5dbc79(0x154)];const _0xd12087=_0x406f37[_0x5dbc79(0x208)][0x0][_0x5dbc79(0x1e4)][_0x5dbc79(0x315)];Array['isArray'](_0xd12087)&&_0xd12087[_0x5dbc79(0x200)]&&_0x3fbfe4['setActiveRange'](_0xd12087[0x0]);}};J=Vt([le(0x0,a[_0x114f12(0x2fe)](a[_0x114f12(0x203)])),le(0x1,m[_0x114f12(0x226)]),le(0x2,p[_0x114f12(0x1eb)])],J);var Gt=Object[_0x114f12(0x358)],qt=(_0x3aa3c3,_0xa542a4,_0x5efdd2,_0x47e296)=>{const _0x52e217=_0x114f12;for(var _0x181bf1=_0x47e296>0x1?void 0x0:_0x47e296?Gt(_0xa542a4,_0x5efdd2):_0xa542a4,_0xc377b9=_0x3aa3c3[_0x52e217(0x200)]-0x1,_0x2b072a;_0xc377b9>=0x0;_0xc377b9--)(_0x2b072a=_0x3aa3c3[_0xc377b9])&&(_0x181bf1=_0x2b072a(_0x181bf1)||_0x181bf1);return _0x181bf1;},he=(_0x332006,_0x85343c)=>(_0x777d21,_0x15829b)=>_0x85343c(_0x777d21,_0x15829b,_0x332006);let Z=class{constructor(_0x44242c,_0x8536b2,_0x2be8e2){const _0x5bdc81=_0x114f12;this[_0x5bdc81(0x39b)]=_0x44242c,this[_0x5bdc81(0x372)]=_0x8536b2,this[_0x5bdc81(0x1fa)]=_0x2be8e2;}[_0x114f12(0x29f)](_0x3ca450){const _0x11c3c5=_0x114f12;this[_0x11c3c5(0x379)](_0x3ca450);}[_0x114f12(0x1cf)](_0x37ef3c){const _0x1ee4eb=_0x114f12,{unitID:_0x15bf5e}=_0x37ef3c,{collaboration:_0x1a22c9}=this['_docStateChangeManagerService'][_0x1ee4eb(0x1ef)](_0x15bf5e);if(_0x1a22c9['length']===0x0)return _0x37ef3c;let _0x2ea087=a[_0x1ee4eb(0x39e)]['deepClone'](_0x37ef3c[_0x1ee4eb(0x2fb)][0x0]);for(let _0x367c6f=0x0;_0x367c6f<_0x1a22c9[_0x1ee4eb(0x200)];_0x367c6f++){const _0x21633f={'id':_0x1ee4eb(0x36e),'params':{'unitId':_0x1a22c9[_0x367c6f][_0x1ee4eb(0x163)],..._0x1a22c9[_0x367c6f]['redoState']}},_0x5c28de=this[_0x1ee4eb(0x372)]['transformMutation'](_0x2ea087,_0x21633f,!0x1);if(m[_0x1ee4eb(0x3b8)](_0x5c28de))throw _0x5c28de[_0x1ee4eb(0x154)];_0x2ea087=_0x5c28de[_0x1ee4eb(0x1fc)];}return{...a[_0x1ee4eb(0x39e)]['deepClone'](_0x37ef3c),'mutations':[_0x2ea087]};}[_0x114f12(0x379)](_0x2b8750){const _0x2d273b=_0x114f12,{unitID:_0x5cbf16}=_0x2b8750,{history:_0x24c17c,collaboration:_0x218bf4}=this[_0x2d273b(0x1fa)][_0x2d273b(0x1ef)](_0x5cbf16);if(_0x24c17c[_0x2d273b(0x200)]===0x0&&_0x218bf4[_0x2d273b(0x200)]===0x0)return;const _0x2a9b38=[],_0x172b1b=[];let _0x290cae=a[_0x2d273b(0x39e)][_0x2d273b(0x201)](_0x2b8750[_0x2d273b(0x2fb)][0x0]),_0x606a6d=a[_0x2d273b(0x39e)][_0x2d273b(0x201)](_0x2b8750['mutations'][0x0]);for(let _0x367db7=_0x24c17c[_0x2d273b(0x200)]-0x1;_0x367db7>=0x0;_0x367db7--){const _0x4122a4={'id':_0x2d273b(0x36e),'params':{'unitId':_0x24c17c[_0x367db7][_0x2d273b(0x163)],..._0x24c17c[_0x367db7][_0x2d273b(0x370)]}},_0x5357db={'id':_0x2d273b(0x36e),'params':{'unitId':_0x24c17c[_0x367db7][_0x2d273b(0x163)],..._0x24c17c[_0x367db7][_0x2d273b(0x32d)]}},_0x38d9fb=this['_transformService'][_0x2d273b(0x3b6)](_0x290cae,_0x4122a4,!0x1),_0x961555=this[_0x2d273b(0x372)][_0x2d273b(0x3b6)](_0x606a6d,_0x5357db,!0x1);if(m[_0x2d273b(0x3b8)](_0x38d9fb))throw _0x38d9fb[_0x2d273b(0x154)];if(m[_0x2d273b(0x3b8)](_0x961555))throw _0x961555[_0x2d273b(0x154)];_0x2a9b38[_0x2d273b(0x37f)]({..._0x24c17c[_0x367db7],'undoState':_0x38d9fb[_0x2d273b(0x208)]['params'],'redoState':_0x961555['m2Prime'][_0x2d273b(0x1e4)]}),_0x290cae=_0x38d9fb['m1Prime'],_0x606a6d=_0x961555[_0x2d273b(0x1fc)];}_0x290cae=a[_0x2d273b(0x39e)][_0x2d273b(0x201)](_0x2b8750['mutations'][0x0]),_0x606a6d=a['Tools'][_0x2d273b(0x201)](_0x2b8750[_0x2d273b(0x2fb)][0x0]);for(let _0x25763a=_0x218bf4['length']-0x1;_0x25763a>=0x0;_0x25763a--){const _0x2d2d91={'id':_0x2d273b(0x36e),'params':{'unitId':_0x218bf4[_0x25763a][_0x2d273b(0x163)],..._0x218bf4[_0x25763a]['undoState']}},_0x202a4f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x218bf4[_0x25763a][_0x2d273b(0x163)],..._0x218bf4[_0x25763a]['redoState']}},_0x36cb2c=this['_transformService'][_0x2d273b(0x3b6)](_0x290cae,_0x2d2d91,!0x1),_0x5533cf=this['_transformService'][_0x2d273b(0x3b6)](_0x606a6d,_0x202a4f,!0x1);if(m['isTransformMutationFailure'](_0x36cb2c))throw _0x36cb2c[_0x2d273b(0x154)];if(m[_0x2d273b(0x3b8)](_0x5533cf))throw _0x5533cf[_0x2d273b(0x154)];_0x172b1b[_0x2d273b(0x37f)]({..._0x218bf4[_0x25763a],'undoState':_0x36cb2c[_0x2d273b(0x208)][_0x2d273b(0x1e4)],'redoState':_0x5533cf[_0x2d273b(0x208)][_0x2d273b(0x1e4)]}),_0x290cae=_0x36cb2c['m1Prime'],_0x606a6d=_0x5533cf[_0x2d273b(0x1fc)];}this['_docStateChangeManagerService'][_0x2d273b(0x217)](_0x5cbf16,{'history':_0x2a9b38,'collaboration':_0x172b1b});}};Z=qt([he(0x0,a[_0x114f12(0x2fe)](a[_0x114f12(0x203)])),he(0x1,m[_0x114f12(0x226)]),he(0x2,a[_0x114f12(0x2fe)](b['DocStateChangeManagerService']))],Z);var Kt=Object[_0x114f12(0x358)],zt=(_0x4fc443,_0x50dc53,_0x3cf530,_0x29a9b8)=>{const _0x585242=_0x114f12;for(var _0x36566c=_0x29a9b8>0x1?void 0x0:_0x29a9b8?Kt(_0x50dc53,_0x3cf530):_0x50dc53,_0x25e0f8=_0x4fc443[_0x585242(0x200)]-0x1,_0x47d0ea;_0x25e0f8>=0x0;_0x25e0f8--)(_0x47d0ea=_0x4fc443[_0x25e0f8])&&(_0x36566c=_0x47d0ea(_0x36566c)||_0x36566c);return _0x36566c;},Pe=(_0x6cb3c8,_0x28e9d6)=>(_0x58efee,_0x257c12)=>_0x28e9d6(_0x58efee,_0x257c12,_0x6cb3c8);let Q=class{constructor(_0x5a28c8,_0x5017ea){const _0x452689=_0x114f12;this[_0x452689(0x39b)]=_0x5a28c8,this[_0x452689(0x372)]=_0x5017ea;}[_0x114f12(0x2a0)](_0x19a661){const _0x408b1b=_0x114f12;var _0x4d664f;const _0x301bb1=this[_0x408b1b(0x39b)][_0x408b1b(0x221)](Y[_0x408b1b(0x36c)]),_0x4d564d=(_0x4d664f=_0x301bb1[_0x408b1b(0x22b)]())!=null?_0x4d664f:[];if(_0x4d564d[_0x408b1b(0x200)]===0x0)return;const _0x44744c=_0x19a661[_0x408b1b(0x26c)],_0x53f4e9=[{'id':_0x408b1b(0x36e),'params':{'unitId':_0x44744c,'actions':null,'textRanges':_0x4d564d}}],_0x9b8a3c=this[_0x408b1b(0x372)][_0x408b1b(0x39a)](_0x19a661,_0x53f4e9);if(!m['isTransformMutationsWithChangesetSuccess'](_0x9b8a3c))throw _0x9b8a3c[_0x408b1b(0x154)];const _0x4f5dcd=_0x9b8a3c['m2Prime'][0x0][_0x408b1b(0x1e4)][_0x408b1b(0x315)];Array[_0x408b1b(0x17b)](_0x4f5dcd)&&_0x4f5dcd[_0x408b1b(0x200)]&&_0x301bb1[_0x408b1b(0x159)](_0x4f5dcd,{'unitId':_0x44744c,'subUnitId':_0x44744c},!0x1);}};Q=zt([Pe(0x0,a[_0x114f12(0x2fe)](a[_0x114f12(0x203)])),Pe(0x1,m[_0x114f12(0x226)])],Q);var Jt=Object[_0x114f12(0x358)],Zt=(_0x58d617,_0x4cb44e,_0x19c351,_0x1202a5)=>{const _0x3e432d=_0x114f12;for(var _0x2f86f6=_0x1202a5>0x1?void 0x0:_0x1202a5?Jt(_0x4cb44e,_0x19c351):_0x4cb44e,_0x16b396=_0x58d617[_0x3e432d(0x200)]-0x1,_0x6c039d;_0x16b396>=0x0;_0x16b396--)(_0x6c039d=_0x58d617[_0x16b396])&&(_0x2f86f6=_0x6c039d(_0x2f86f6)||_0x2f86f6);return _0x2f86f6;},M=(_0x1f5a2f,_0x3fe033)=>(_0xcd5a41,_0x3cd63c)=>_0x3fe033(_0xcd5a41,_0x3cd63c,_0x1f5a2f);let ee=class extends a[_0x114f12(0x22e)]{constructor(_0xbcecc7,_0x2ef8ef,_0x5a5f47,_0x1db99c,_0x16f962,_0x456e89,_0x38c20a,_0x504b3a){const _0x9ddd9a=_0x114f12;super(),h(this,_0x9ddd9a(0x2a7),new d[(_0x9ddd9a(0x38e))](u[_0x9ddd9a(0x375)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0xbcecc7,this[_0x9ddd9a(0x323)]=_0x2ef8ef,this['_docTransformIMECacheService']=_0x5a5f47,this[_0x9ddd9a(0x3a8)]=_0x1db99c,this[_0x9ddd9a(0x1e7)]=_0x16f962,this['_docSyncEditingCollabCursorService']=_0x456e89,this[_0x9ddd9a(0x2c8)]=_0x38c20a,this['_localeService']=_0x504b3a,this[_0x9ddd9a(0x3b3)]());}[_0x114f12(0x3b3)](){const _0x42daee=_0x114f12;this[_0x42daee(0x19c)](this[_0x42daee(0x323)][_0x42daee(0x2e3)]['subscribe'](_0x4a3878=>{const _0x2155d1=_0x42daee,_0x4b9dc1=this[_0x2155d1(0x1fa)][_0x2155d1(0x161)][_0x2155d1(0x2d5)](_0x5bdeb8=>{const _0x14c995=_0x2155d1;if(_0x5bdeb8==null)return;const {unitId:_0x3b3ac2,redoState:_0x38275f,commandId:_0x4e95ef}=_0x5bdeb8;if(_0x3b3ac2!==_0x4a3878[_0x14c995(0x26c)])return;const _0x31de40={'id':_0x4e95ef,'type':a[_0x14c995(0x25e)][_0x14c995(0x38b)],'params':{'unitId':_0x3b3ac2,'actions':_0x38275f[_0x14c995(0x324)],'textRanges':null}};_0x4a3878[_0x14c995(0x14b)](_0x31de40);});if(_0x4a3878['disposeWithMe'](_0x4b9dc1),_0x4a3878 instanceof u[_0x2155d1(0x21b)]){const _0x52ce4f={'onTransformIME':_0x46d492=>this['_docTransformIMECacheService'][_0x2155d1(0x2c5)](_0x46d492),'onTransformState':_0x3223d6=>this[_0x2155d1(0x3a8)][_0x2155d1(0x29f)](_0x3223d6),'onTransformSelections':_0x24cc54=>this['_docTransformSelectionsService'][_0x2155d1(0x2a0)](_0x24cc54),'onSyncEditingCollabCursor':_0x27a175=>this[_0x2155d1(0x1db)][_0x2155d1(0x37d)](_0x27a175),'onTransformRemoteChangesetByIMECache':_0x1d7b80=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x1d7b80),'onTransformRemoteChangesetByStateCache':_0x36d419=>this[_0x2155d1(0x3a8)]['transformRemoteChangeset'](_0x36d419)};_0x4a3878[_0x2155d1(0x14d)](_0x52ce4f);}}));}};ee=Zt([M(0x0,a[_0x114f12(0x2fe)](b[_0x114f12(0x334)])),M(0x1,a[_0x114f12(0x2fe)](u[_0x114f12(0x317)])),M(0x2,a[_0x114f12(0x2fe)](J)),M(0x3,a[_0x114f12(0x2fe)](Z)),M(0x4,a[_0x114f12(0x2fe)](Q)),M(0x5,a[_0x114f12(0x2fe)](pe)),M(0x6,R[_0x114f12(0x198)]),M(0x7,a[_0x114f12(0x2fe)](a[_0x114f12(0x15f)]))],ee);var Qt=Object[_0x114f12(0x358)],es=(_0x12f4b0,_0x298ab8,_0x338b1c,_0xe573e7)=>{const _0x5b8b66=_0x114f12;for(var _0x3d6344=_0xe573e7>0x1?void 0x0:_0xe573e7?Qt(_0x298ab8,_0x338b1c):_0x298ab8,_0x23e7cf=_0x12f4b0[_0x5b8b66(0x200)]-0x1,_0x50a3b6;_0x23e7cf>=0x0;_0x23e7cf--)(_0x50a3b6=_0x12f4b0[_0x23e7cf])&&(_0x3d6344=_0x50a3b6(_0x3d6344)||_0x3d6344);return _0x3d6344;},_e=(_0xc927b,_0x343c27)=>(_0xf3a13a,_0xfc9d7c)=>_0x343c27(_0xf3a13a,_0xfc9d7c,_0xc927b);let me=class extends a[_0x114f12(0x22e)]{constructor(_0x312ccc,_0x3f86c4,_0x2bfbe0){const _0x2798eb=_0x114f12;super(),h(this,_0x2798eb(0x2b3),new Map()),h(this,_0x2798eb(0x33d),new Map()),h(this,_0x2798eb(0x1bf),!0x1),(this[_0x2798eb(0x20e)]=_0x312ccc,this[_0x2798eb(0x1cc)]=_0x3f86c4,this[_0x2798eb(0x153)]=_0x2bfbe0);}[_0x114f12(0x170)](){const _0xa91aee=_0x114f12;this[_0xa91aee(0x1bf)]=!0x0;}[_0x114f12(0x1ce)](){this['_disabled']=!0x1;}get[_0x114f12(0x164)](){const _0x15ecef=_0x114f12;return this[_0x15ecef(0x33d)];}['dispose'](){const _0x72d090=_0x114f12;this[_0x72d090(0x357)]()[_0x72d090(0x181)](()=>super['dispose']());}async[_0x114f12(0x1b0)](_0x185164){const _0xc86dc4=_0x114f12;return this['_disabled']?null:this[_0xc86dc4(0x1cc)]['getItem'](u[_0xc86dc4(0x32a)](_0x185164));}async[_0x114f12(0x2dd)](_0x5c893f,_0xe867dc){const _0x322e6d=_0x114f12;return!!this[_0x322e6d(0x1cc)]['setItem'](_0x5c893f,_0xe867dc);}[_0x114f12(0x1dc)](_0x39c4d3,_0x48831d,_0x26335f,_0x5cb869){const _0x15c135=_0x114f12,_0x373f64=this[_0x15c135(0x153)][_0x15c135(0x36f)](_0x39c4d3);this[_0x15c135(0x2b3)][_0x15c135(0x2a3)](_0x39c4d3,{'unitID':_0x39c4d3,'type':_0x48831d,'awaitingChangeset':_0x26335f,'mutations':_0x5cb869,'rev':_0x373f64}),this[_0x15c135(0x33d)][_0x15c135(0x3bc)](_0x39c4d3)||this['_scheduleSaving'](_0x39c4d3);}[_0x114f12(0x18d)](_0x2903bd){const _0x13eb7c=_0x114f12,_0x490e2d=this[_0x13eb7c(0x34b)]();_0x490e2d===0x0?this['_saveCache'](_0x2903bd):this[_0x13eb7c(0x33d)][_0x13eb7c(0x2a3)](_0x2903bd,setTimeout(()=>this['_saveCache'](_0x2903bd),_0x490e2d));}[_0x114f12(0x34b)](){const _0x29fafa=_0x114f12;var _0xbb903e;return(_0xbb903e=this[_0x29fafa(0x20e)][_0x29fafa(0x155)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0xbb903e:u[_0x29fafa(0x309)];}[_0x114f12(0x377)](_0x293315){const _0xa02aea=_0x114f12,_0xcaa169=this[_0xa02aea(0x33d)][_0xa02aea(0x221)](_0x293315);return _0xcaa169!==void 0x0&&window[_0xa02aea(0x1ed)](_0xcaa169),this[_0xa02aea(0x1cc)][_0xa02aea(0x313)](u['getLocalCacheKey'](_0x293315),this[_0xa02aea(0x2b3)][_0xa02aea(0x221)](_0x293315))[_0xa02aea(0x181)](()=>this['_saveTaskMap'][_0xa02aea(0x14c)](_0x293315));}async[_0x114f12(0x357)](){const _0x10ccbf=_0x114f12,_0xc15356=[];this['_saveTaskMap'][_0x10ccbf(0x341)]((_0x5e5f59,_0x45bf02)=>{const _0xb522c7=_0x10ccbf;window['clearTimeout'](_0x5e5f59),_0xc15356[_0xb522c7(0x32e)](this[_0xb522c7(0x377)](_0x45bf02)[_0xb522c7(0x181)](()=>{const _0xe64ba0=_0xb522c7;this[_0xe64ba0(0x33d)][_0xe64ba0(0x14c)](_0x45bf02);}));}),await Promise['all'](_0xc15356);}};me=es([_e(0x0,a[_0x114f12(0x35c)]),_e(0x1,a[_0x114f12(0x321)]),_e(0x2,a[_0x114f12(0x2fe)](m['RevisionService']))],me);class ke extends a[_0x114f12(0x1de)]{constructor(){const _0x45fe2d=_0x114f12;super(),h(this,_0x45fe2d(0x337)),this[_0x45fe2d(0x337)]=d[_0x45fe2d(0x241)](window,'popstate')['pipe'](d['takeUntil'](this['dispose$']),d[_0x45fe2d(0x16b)](0x1),d[_0x45fe2d(0x37a)](void 0x0));}['setParam'](_0x2f1ed6,_0x26f17c,_0x180c39=!0x1){const _0x240474=_0x114f12,_0xef2379=new URL(window[_0x240474(0x2b8)][_0x240474(0x1b5)]);_0xef2379[_0x240474(0x38c)][_0x240474(0x2a3)](_0x2f1ed6,_0x26f17c),_0x180c39?window['history'][_0x240474(0x33f)]('','',_0xef2379['toString']()):window[_0x240474(0x1ac)][_0x240474(0x1bc)]('','',_0xef2379['toString']());}['removeParam'](_0x4fe4d3,_0x2b4a71=!0x1){const _0x3ed495=_0x114f12,_0x2be980=new URL(window[_0x3ed495(0x2b8)][_0x3ed495(0x1b5)]);_0x2be980[_0x3ed495(0x38c)][_0x3ed495(0x14c)](_0x4fe4d3),_0x2b4a71?window[_0x3ed495(0x1ac)][_0x3ed495(0x33f)]('','',_0x2be980[_0x3ed495(0x234)]()):window[_0x3ed495(0x1ac)][_0x3ed495(0x1bc)]('','',_0x2be980[_0x3ed495(0x234)]());}['getParam'](_0x31a439){const _0x3bdd86=_0x114f12;var _0xbd96d2;return(_0xbd96d2=new URL(window[_0x3bdd86(0x2b8)][_0x3bdd86(0x1b5)])[_0x3bdd86(0x38c)]['get'](_0x31a439))!=null?_0xbd96d2:void 0x0;}}var ts=Object['defineProperty'],ss=Object[_0x114f12(0x358)],ns=(_0x43c8fd,_0x6ef037,_0x2efee5)=>_0x6ef037 in _0x43c8fd?ts(_0x43c8fd,_0x6ef037,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2efee5}):_0x43c8fd[_0x6ef037]=_0x2efee5,is=(_0x316fc7,_0x1ae230,_0x4798f6,_0x5e5224)=>{const _0x11f187=_0x114f12;for(var _0x3bdb61=_0x5e5224>0x1?void 0x0:_0x5e5224?ss(_0x1ae230,_0x4798f6):_0x1ae230,_0x2517ee=_0x316fc7[_0x11f187(0x200)]-0x1,_0x1a3287;_0x2517ee>=0x0;_0x2517ee--)(_0x1a3287=_0x316fc7[_0x2517ee])&&(_0x3bdb61=_0x1a3287(_0x3bdb61)||_0x3bdb61);return _0x3bdb61;},ue=(_0x2a60f9,_0x2dc070)=>(_0x466600,_0x5c0c14)=>_0x2dc070(_0x466600,_0x5c0c14,_0x2a60f9),rs=(_0x14c802,_0x508145,_0x196aaa)=>ns(_0x14c802,_0x508145+'',_0x196aaa);const os=_0x114f12(0x20b);exports[_0x114f12(0x2f5)]=class extends a[_0x114f12(0x2b5)]{constructor(_0x2f3b83=Me,_0x230611,_0x435f4f,_0x2fa9b5){const _0x6ec904=_0x114f12;super(),this['_config']=_0x2f3b83,this['_renderManagerService']=_0x230611,this[_0x6ec904(0x39b)]=_0x435f4f,this[_0x6ec904(0x20e)]=_0x2fa9b5;const {..._0x514c54}=a['merge']({},Me,this[_0x6ec904(0x2db)]);this['_configService'][_0x6ec904(0x3a6)](Wt,_0x514c54);}['onStarting'](){const _0x5d13c6=_0x114f12;this[_0x5d13c6(0x295)](),this[_0x5d13c6(0x2d1)]();}['onRendered'](){const _0x55f9ae=_0x114f12;this[_0x55f9ae(0x2a4)]();}[_0x114f12(0x295)](){const _0x3c7583=_0x114f12;var _0x1cb16c;const _0x3e0274=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q[_0x3c7583(0x266)],{'useClass':q[_0x3c7583(0x2ed)]}],[u[_0x3c7583(0x1b3)],{'useClass':me}],[exports[_0x3c7583(0x213)]],[ee],[z],[x],[fe],[exports['CollaborationDataLoaderController']]];a[_0x3c7583(0x2d2)](this[_0x3c7583(0x39b)],a['mergeOverrideWithDependencies'](_0x3e0274,(_0x1cb16c=this[_0x3c7583(0x2db)])==null?void 0x0:_0x1cb16c[_0x3c7583(0x1c1)]));}['_registerRenderDependencies'](){const _0xc5146e=_0x114f12;this['disposeWithMe'](this['_renderManagerService'][_0xc5146e(0x312)](a[_0xc5146e(0x307)][_0xc5146e(0x240)],[ge])),this[_0xc5146e(0x19c)](this[_0xc5146e(0x339)][_0xc5146e(0x312)](a[_0xc5146e(0x307)][_0xc5146e(0x267)],[Ie]));}[_0x114f12(0x2d1)](){const _0x18f162=_0x114f12;a[_0x18f162(0x394)](this[_0x18f162(0x39b)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x18f162(0x2bb)]]]);}},rs(exports['UniverCollaborationClientUIPlugin'],_0x114f12(0x1d7),os),exports[_0x114f12(0x2f5)]=is([a[_0x114f12(0x21f)](u['UniverCollaborationClientPlugin']),ue(0x1,p[_0x114f12(0x1eb)]),ue(0x2,a[_0x114f12(0x2fe)](a[_0x114f12(0x203)])),ue(0x3,a[_0x114f12(0x35c)])],exports['UniverCollaborationClientUIPlugin']);var as=Object['getOwnPropertyDescriptor'],cs=(_0x1172d1,_0x2faaf1,_0x5bdfbb,_0x12f643)=>{const _0x45bcfa=_0x114f12;for(var _0x49a601=_0x12f643>0x1?void 0x0:_0x12f643?as(_0x2faaf1,_0x5bdfbb):_0x2faaf1,_0x694917=_0x1172d1[_0x45bcfa(0x200)]-0x1,_0x4fcdce;_0x694917>=0x0;_0x694917--)(_0x4fcdce=_0x1172d1[_0x694917])&&(_0x49a601=_0x4fcdce(_0x49a601)||_0x49a601);return _0x49a601;},F=(_0x31ce5b,_0x5ef095)=>(_0x24e6a4,_0x3977bc)=>_0x5ef095(_0x24e6a4,_0x3977bc,_0x31ce5b);exports[_0x114f12(0x359)]=class extends u[_0x114f12(0x29d)]{constructor(_0x25a660,_0x4b49c6,_0x121105,_0x33add7,_0x3750af){super(_0x25a660,_0x4b49c6,_0x121105,_0x33add7,_0x3750af);}async['createSocket'](_0x29d7b4){const _0x2c2a58=_0x114f12,_0x7a5811=await this[_0x2c2a58(0x28c)](),_0x1aaec0=this[_0x2c2a58(0x2ce)](_0x29d7b4,_0x7a5811);return this[_0x2c2a58(0x1c5)](_0x1aaec0);}[_0x114f12(0x2ce)](_0x9415b7,_0x52ce41){const _0xcb0915=_0x114f12,_0x4bbbee=typeof window>'u'?new URL(_0x9415b7):new URL(_0x9415b7,window[_0xcb0915(0x2b8)][_0xcb0915(0x25b)]);_0x4bbbee['searchParams'][_0xcb0915(0x2a3)](_0xcb0915(0x2cc),_0x52ce41);const _0x4d5d91=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xcb0915(0x2b8)][_0xcb0915(0x19f)]);return _0x4d5d91['get'](_0xcb0915(0x1fe))&&_0x4bbbee[_0xcb0915(0x38c)][_0xcb0915(0x2a3)](_0xcb0915(0x1fe),_0x4d5d91[_0xcb0915(0x221)](_0xcb0915(0x1fe))),_0x4bbbee[_0xcb0915(0x234)]();}async[_0x114f12(0x28c)](){const _0x4ca19d=_0x114f12;var _0x3612ef,_0x452755,_0x1a4890;const _0xf6de2e=this[_0x4ca19d(0x20e)][_0x4ca19d(0x155)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x2d1da3=(_0x3612ef=_0xf6de2e==null?void 0x0:_0xf6de2e[_0x4ca19d(0x185)])!=null?_0x3612ef:u[_0x4ca19d(0x363)];return(_0x1a4890=(_0x452755=(await this[_0x4ca19d(0x1ba)][_0x4ca19d(0x221)](_0x2d1da3,{'headers':{'Content-Type':_0x4ca19d(0x362)}}))[_0x4ca19d(0x1b7)])==null?void 0x0:_0x452755[_0x4ca19d(0x1c8)])!=null?_0x1a4890:'';}},exports[_0x114f12(0x359)]=cs([F(0x0,a['Inject'](a[_0x114f12(0x203)])),F(0x1,a[_0x114f12(0x2fe)](q[_0x114f12(0x2e6)])),F(0x2,a[_0x114f12(0x35c)]),F(0x3,a[_0x114f12(0x1c0)]),F(0x4,m['ISnapshotServerService'])],exports[_0x114f12(0x359)]);const Ne=0x7530,we=_0x114f12(0x37c);class ls extends a['Disposable']{constructor(){const _0x320b03=_0x114f12;super(),h(this,_0x320b03(0x1c7),a[_0x320b03(0x1b9)]()),h(this,_0x320b03(0x18e),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x320b03(0x26d),null),h(this,_0x320b03(0x253),new Map()),h(this,_0x320b03(0x26a),new Map()),this['_init']();}[_0x114f12(0x2bc)](){const _0x11d08a=_0x114f12;super[_0x11d08a(0x2bc)](),this['_clearOtherTimers']['forEach']((_0x374cce,_0xde6d0c)=>this['_removeClearOtherTimer'](_0xde6d0c)),this[_0x11d08a(0x26d)]&&window[_0x11d08a(0x1e0)](this[_0x11d08a(0x26d)]);}[_0x114f12(0x1c2)](_0x57d2af){const _0x1b1c55=_0x114f12;return this[_0x1b1c55(0x369)](_0x57d2af)[_0x1b1c55(0x3bb)](d[_0x1b1c55(0x30e)]());}[_0x114f12(0x25c)](_0x540b0f){const _0x30cb10=_0x114f12;this[_0x30cb10(0x18e)][_0x30cb10(0x197)]===0x0&&this[_0x30cb10(0x2af)](),this[_0x30cb10(0x18e)]['add'](_0x540b0f),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x540b0f],'isForwarded':!0x1});}[_0x114f12(0x172)](_0x195510){const _0xfbb272=_0x114f12;this[_0xfbb272(0x18e)][_0xfbb272(0x14c)](_0x195510),this[_0xfbb272(0x18e)][_0xfbb272(0x197)]===0x0&&this[_0xfbb272(0x26d)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x114f12(0x1f3)](){const _0x141900=_0x114f12;this[_0x141900(0x19c)](a['toDisposable'](d[_0x141900(0x241)](window,_0x141900(0x188))['subscribe'](_0x537eff=>{const _0x4aaf35=_0x141900;if(_0x537eff[_0x4aaf35(0x2bd)]!==we||!_0x537eff[_0x4aaf35(0x16f)])return;const _0xfeffb8=JSON[_0x4aaf35(0x2b1)](_0x537eff['newValue']);this[_0x4aaf35(0x3ab)](_0xfeffb8);}))),window[_0x141900(0x258)](_0x141900(0x218),()=>this['_send']({'type':0x1,'memberID':this[_0x141900(0x1c7)],'unitIDs':Array[_0x141900(0x366)](this[_0x141900(0x18e)])}));}['_handleEvent'](_0x332049){const _0x5a5553=_0x114f12;switch(_0x332049['type']){case 0x0:this[_0x5a5553(0x1d5)](_0x332049);break;case 0x1:this[_0x5a5553(0x18a)](_0x332049);break;case 0x2:this['_handleHeartbeatEvent'](_0x332049);break;}}[_0x114f12(0x1d5)](_0xe025f4){const _0x5112b7=_0x114f12,{unitIDs:_0x37cebd,memberID:_0x26b0b2,isForwarded:_0x190cad}=_0xe025f4;_0x37cebd[_0x5112b7(0x341)](_0x27e2bd=>{const _0x91a38b=_0x5112b7;if(!_0x190cad&&this[_0x91a38b(0x2f7)][_0x91a38b(0x3bc)](_0x27e2bd)&&this['_ensureSubject'](_0x27e2bd)[_0x91a38b(0x157)](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0x91a38b(0x2f7)][_0x91a38b(0x3bc)](_0x27e2bd)||!this[_0x91a38b(0x2f7)][_0x91a38b(0x221)](_0x27e2bd)[_0x91a38b(0x3bc)](_0x26b0b2)){const _0x2c5c89=this['_unitOnClients'][_0x91a38b(0x221)](_0x27e2bd)||new Set();_0x2c5c89[_0x91a38b(0x2fc)](_0x26b0b2),this[_0x91a38b(0x2f7)][_0x91a38b(0x2a3)](_0x27e2bd,_0x2c5c89),this[_0x91a38b(0x225)](_0x26b0b2);}}),_0x190cad||this['_send']({'type':0x0,'memberID':this[_0x5112b7(0x1c7)],'unitIDs':[...this[_0x5112b7(0x18e)]],'isForwarded':!0x0});}[_0x114f12(0x225)](_0x393499){const _0x400715=_0x114f12;this['_removeClearOtherTimer'](_0x393499);const _0x739a4=window['setTimeout'](()=>{const _0x568e4f=_0x7083;this[_0x568e4f(0x2f7)][_0x568e4f(0x341)](_0x3244ea=>{const _0x2de51f=_0x568e4f;_0x3244ea[_0x2de51f(0x14c)](_0x393499);});},Ne*0x2);this[_0x400715(0x253)][_0x400715(0x2a3)](_0x393499,_0x739a4);}[_0x114f12(0x2e7)](_0x2a55a6){const _0x3076b0=_0x114f12;if(this['_clearOtherTimers'][_0x3076b0(0x3bc)](_0x2a55a6)){const _0x3c255f=this[_0x3076b0(0x253)][_0x3076b0(0x221)](_0x2a55a6);_0x3c255f&&window[_0x3076b0(0x1ed)](_0x3c255f),this[_0x3076b0(0x253)][_0x3076b0(0x2a3)](_0x2a55a6,null);}}[_0x114f12(0x18a)](_0xd388c5){const _0x3c9383=_0x114f12,{memberID:_0x225e96,unitIDs:_0xe77ebe}=_0xd388c5;_0xe77ebe['forEach'](_0x4156a5=>{const _0x90ccd2=_0x7083;var _0x2e158c;const _0x599569=this[_0x90ccd2(0x2f7)][_0x90ccd2(0x221)](_0x4156a5);_0x599569&&(_0x599569[_0x90ccd2(0x14c)](_0x225e96),(_0x2e158c=this[_0x90ccd2(0x369)](_0x4156a5))==null||_0x2e158c['next'](_0x599569[_0x90ccd2(0x197)]===0x0?u[_0x90ccd2(0x270)][_0x90ccd2(0x374)]:u[_0x90ccd2(0x270)][_0x90ccd2(0x2c4)]));}),this[_0x3c9383(0x2e7)](_0x225e96);}[_0x114f12(0x16a)](_0x3abb12){const _0x3d8c4f=_0x114f12;this[_0x3d8c4f(0x225)](_0x3abb12[_0x3d8c4f(0x347)]);}[_0x114f12(0x346)](_0x5e3761){const _0x4c57ed=_0x114f12;localStorage[_0x4c57ed(0x313)](we,JSON[_0x4c57ed(0x23d)](_0x5e3761));}[_0x114f12(0x2af)](){const _0x438af1=_0x114f12;this[_0x438af1(0x26d)]=window['setInterval'](()=>{const _0x4db9b5=_0x438af1;this[_0x4db9b5(0x346)]({'type':0x2,'memberID':this[_0x4db9b5(0x1c7)]});},Ne);}['_ensureSubject'](_0x535696){const _0x1024ad=_0x114f12;return this[_0x1024ad(0x26a)][_0x1024ad(0x3bc)](_0x535696)||this[_0x1024ad(0x26a)][_0x1024ad(0x2a3)](_0x535696,new d[(_0x1024ad(0x38e))](u[_0x1024ad(0x270)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x1024ad(0x26a)]['get'](_0x535696);}}var Be=(_0x4661d6=>(_0x4661d6[_0x4661d6[_0x114f12(0x348)]=0x0]=_0x114f12(0x348),_0x4661d6[_0x4661d6['OK']=0x1]='OK',_0x4661d6[_0x4661d6[_0x114f12(0x209)]=0x2]='INTERNAL_ERROR',_0x4661d6[_0x4661d6[_0x114f12(0x22d)]=0x3]=_0x114f12(0x22d),_0x4661d6[_0x4661d6[_0x114f12(0x371)]=0x4]='NOT_FOUND',_0x4661d6[_0x4661d6[_0x114f12(0x383)]=0x5]=_0x114f12(0x383),_0x4661d6[_0x4661d6[_0x114f12(0x229)]=0x6]=_0x114f12(0x229),_0x4661d6[_0x4661d6[_0x114f12(0x34a)]=0x7]=_0x114f12(0x34a),_0x4661d6[_0x4661d6[_0x114f12(0x328)]=0x8]=_0x114f12(0x328),_0x4661d6[_0x4661d6[_0x114f12(0x1b8)]=0x9]=_0x114f12(0x1b8),_0x4661d6[_0x4661d6['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x4661d6[_0x4661d6[_0x114f12(0x1ab)]=0x1771]=_0x114f12(0x1ab),_0x4661d6[_0x4661d6[_0x114f12(0x38a)]=0x1772]=_0x114f12(0x38a),_0x4661d6[_0x4661d6['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x4661d6[_0x4661d6[_0x114f12(0x310)]=0x1b59]=_0x114f12(0x310),_0x4661d6[_0x4661d6[_0x114f12(0x1f9)]=0x1b5a]=_0x114f12(0x1f9),_0x4661d6[_0x4661d6['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x114f12(0x254),_0x4661d6[_0x4661d6['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x114f12(0x352),_0x4661d6[_0x4661d6[_0x114f12(0x2eb)]=0x1b5d]=_0x114f12(0x2eb),_0x4661d6[_0x4661d6['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x114f12(0x150),_0x4661d6[_0x4661d6[_0x114f12(0x32f)]=0x2329]=_0x114f12(0x32f),_0x4661d6[_0x4661d6['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x114f12(0x1f4),_0x4661d6[_0x4661d6[_0x114f12(0x349)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4661d6[_0x4661d6['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x114f12(0x151),_0x4661d6[_0x4661d6[_0x114f12(0x27a)]=0x232d]=_0x114f12(0x27a),_0x4661d6[_0x4661d6[_0x114f12(0x1af)]=0x2711]=_0x114f12(0x1af),_0x4661d6[_0x4661d6[_0x114f12(0x386)]=0x2712]=_0x114f12(0x386),_0x4661d6[_0x4661d6[_0x114f12(0x1be)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4661d6[_0x4661d6[_0x114f12(0x1e9)]=0x2714]=_0x114f12(0x1e9),_0x4661d6[_0x4661d6[_0x114f12(0x306)]=0x2af9]=_0x114f12(0x306),_0x4661d6[_0x4661d6['UNRECOGNIZED']=-0x1]=_0x114f12(0x2d0),_0x4661d6))(Be||{}),hs=Object[_0x114f12(0x358)],_s=(_0x1cfb87,_0x429500,_0x3a3173,_0x4c7056)=>{const _0x2dbd9c=_0x114f12;for(var _0x43f0db=_0x4c7056>0x1?void 0x0:_0x4c7056?hs(_0x429500,_0x3a3173):_0x429500,_0x158932=_0x1cfb87[_0x2dbd9c(0x200)]-0x1,_0x34d172;_0x158932>=0x0;_0x158932--)(_0x34d172=_0x1cfb87[_0x158932])&&(_0x43f0db=_0x34d172(_0x43f0db)||_0x43f0db);return _0x43f0db;},de=(_0x2a2186,_0x59f525)=>(_0x4b16b6,_0x3c07ca)=>_0x59f525(_0x4b16b6,_0x3c07ca,_0x2a2186);exports[_0x114f12(0x31c)]=class extends a[_0x114f12(0x22e)]{constructor(_0x5a122d,_0x3d1649,_0x1e1e1b){const _0x594029=_0x114f12;super(),this[_0x594029(0x2f3)]=_0x5a122d,this[_0x594029(0x1ba)]=_0x3d1649,this[_0x594029(0x20e)]=_0x1e1e1b;}async[_0x114f12(0x1ca)](_0x339625,_0xa1634e,_0x4dd825,..._0x24e598){const _0x58cecf=_0x114f12;var _0x26f382,_0x26a86b,_0x1055e6,_0xa280b0;const _0x5e783d=this['_instanceService']['getFocusedUnit']();if(!_0x5e783d)throw new Error(_0x58cecf(0x351));const _0xd50c25=((_0x26f382=this[_0x58cecf(0x20e)][_0x58cecf(0x155)](u[_0x58cecf(0x21e)]))!=null?_0x26f382:u[_0x58cecf(0x2a8)])+'/'+_0x339625+_0x58cecf(0x305)+_0xa1634e,_0x46363a=new URL(window[_0x58cecf(0x2b8)][_0x58cecf(0x1b5)]),_0x541175={'scriptId':_0x339625,'runId':(_0x26a86b=_0x46363a[_0x58cecf(0x38c)][_0x58cecf(0x221)](_0x58cecf(0x1fe)))!=null?_0x26a86b:'','function':_0xa1634e,'unitId':_0x5e783d['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x24e598),'invokeId':(_0x1055e6=_0x4dd825[_0x58cecf(0x1cd)])!=null?_0x1055e6:'','executionId':(_0xa280b0=_0x4dd825['executionId'])!=null?_0xa280b0:''};try{const _0x222134=await this[_0x58cecf(0x1ba)]['post'](_0xd50c25,{'body':_0x541175});return _0x222134[_0x58cecf(0x1b7)][_0x58cecf(0x154)]&&_0x222134[_0x58cecf(0x1b7)][_0x58cecf(0x154)][_0x58cecf(0x192)]!==Be['OK']?_0x58cecf(0x34c):_0x222134[_0x58cecf(0x1b7)][_0x58cecf(0x2c1)];}catch{return'Failed';}}},exports[_0x114f12(0x31c)]=_s([de(0x0,a[_0x114f12(0x182)]),de(0x1,a[_0x114f12(0x2fe)](q[_0x114f12(0x2e6)])),de(0x2,a[_0x114f12(0x35c)])],exports[_0x114f12(0x31c)]),exports[_0x114f12(0x3a1)]=je,exports[_0x114f12(0x156)]=Ee,exports[_0x114f12(0x176)]=ye,exports[_0x114f12(0x142)]=ls,exports[_0x114f12(0x39c)]=ke;
|
|
1
|
+
'use strict';const _0x23fb60=_0x9264;(function(_0x3052c4,_0x43c889){const _0x4eae8a=_0x9264,_0xcd9ed1=_0x3052c4();while(!![]){try{const _0x293bbd=parseInt(_0x4eae8a(0x40d))/0x1*(parseInt(_0x4eae8a(0x339))/0x2)+parseInt(_0x4eae8a(0x383))/0x3+-parseInt(_0x4eae8a(0x1d0))/0x4*(parseInt(_0x4eae8a(0x3da))/0x5)+parseInt(_0x4eae8a(0x36b))/0x6+parseInt(_0x4eae8a(0x3c9))/0x7*(parseInt(_0x4eae8a(0x232))/0x8)+-parseInt(_0x4eae8a(0x3ff))/0x9*(-parseInt(_0x4eae8a(0x320))/0xa)+parseInt(_0x4eae8a(0x3ec))/0xb*(-parseInt(_0x4eae8a(0x35f))/0xc);if(_0x293bbd===_0x43c889)break;else _0xcd9ed1['push'](_0xcd9ed1['shift']());}catch(_0x398c73){_0xcd9ed1['push'](_0xcd9ed1['shift']());}}}(_0x3aac,0x9b930));var Ve=Object['defineProperty'],Ge=(_0x54c27d,_0x4084a1,_0x37f1ba)=>_0x4084a1 in _0x54c27d?Ve(_0x54c27d,_0x4084a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37f1ba}):_0x54c27d[_0x4084a1]=_0x37f1ba,h=(_0x49e76a,_0x3ff3de,_0x46d0e3)=>Ge(_0x49e76a,typeof _0x3ff3de!=_0x23fb60(0x235)?_0x3ff3de+'':_0x3ff3de,_0x46d0e3);Object[_0x23fb60(0x1dd)](exports,Symbol[_0x23fb60(0x366)],{'value':_0x23fb60(0x2d3)});const u=require(_0x23fb60(0x386)),a=require(_0x23fb60(0x391)),p=require(_0x23fb60(0x3d4)),q=require(_0x23fb60(0x34f)),b=require(_0x23fb60(0x359)),qe=require(_0x23fb60(0x1fd)),d=require(_0x23fb60(0x37e)),Y=require('@univerjs/docs'),m=require(_0x23fb60(0x2c0)),Te=require(_0x23fb60(0x229)),I=require(_0x23fb60(0x1ce)),$=require(_0x23fb60(0x304)),G=require(_0x23fb60(0x42b)),w=require(_0x23fb60(0x1bf)),R=require(_0x23fb60(0x28c)),T=require(_0x23fb60(0x278)),P=require(_0x23fb60(0x2a1)),Ke=require(_0x23fb60(0x224));var ze=Object['getOwnPropertyDescriptor'],Je=(_0x3a0e7b,_0x541da4,_0x43ea3d,_0x55d3eb)=>{for(var _0xe38c1a=_0x55d3eb>0x1?void 0x0:_0x55d3eb?ze(_0x541da4,_0x43ea3d):_0x541da4,_0x235482=_0x3a0e7b['length']-0x1,_0x1113c5;_0x235482>=0x0;_0x235482--)(_0x1113c5=_0x3a0e7b[_0x235482])&&(_0xe38c1a=_0x1113c5(_0xe38c1a)||_0xe38c1a);return _0xe38c1a;},Re=(_0x2f2ed0,_0x468368)=>(_0x15de94,_0x3c77e7)=>_0x468368(_0x15de94,_0x3c77e7,_0x2f2ed0);let fe=class extends a[_0x23fb60(0x2e3)]{constructor(_0x375d69,_0xb746fb){const _0x399cc2=_0x23fb60;super(),this[_0x399cc2(0x2aa)]=_0x375d69,this[_0x399cc2(0x42e)]=_0xb746fb,this[_0x399cc2(0x238)]();}[_0x23fb60(0x238)](){const _0x386dcb=_0x23fb60,_0x25a980=this;this[_0x386dcb(0x384)](this[_0x386dcb(0x2aa)][_0x386dcb(0x2a3)]({'onBeforePasteImage':async _0x2db659=>{const _0x387100=_0x386dcb,_0x547f71=await _0x25a980['_imageIoService']['saveImage'](_0x2db659);return _0x547f71?{'source':_0x547f71[_0x387100(0x3ed)],'imageSourceType':_0x547f71[_0x387100(0x1e3)]}:null;}}));}};fe=Je([Re(0x0,b[_0x23fb60(0x1d4)]),Re(0x1,qe[_0x23fb60(0x334)])],fe);const Oe=[_0x23fb60(0x2a6),_0x23fb60(0x2d6),_0x23fb60(0x438),_0x23fb60(0x3c8),'blue400',_0x23fb60(0x344)];class Ce extends a[_0x23fb60(0x325)]{constructor(){const _0x5cb72c=_0x23fb60;super(...arguments),h(this,_0x5cb72c(0x3eb),new Map()),h(this,_0x5cb72c(0x246),0x0);}[_0x23fb60(0x2fb)](_0x2513b8){const _0x47b878=_0x23fb60;if(this[_0x47b878(0x3eb)][_0x47b878(0x234)](_0x2513b8))return this[_0x47b878(0x3eb)][_0x47b878(0x300)](_0x2513b8);const _0x5237a7=Oe[this[_0x47b878(0x246)]];return this[_0x47b878(0x246)]=(this[_0x47b878(0x246)]+0x1)%Oe[_0x47b878(0x2c5)],this[_0x47b878(0x3eb)][_0x47b878(0x3b8)](_0x2513b8,_0x5237a7),_0x5237a7;}}function Le(_0x473912){let _0x90b4c3='';for(const _0x1ebf99 of _0x473912){const {startOffset:_0x2f7ef5,endOffset:_0x2ae815,isActive:_0x3168c2,rangeType:_0x56c2f3,segmentId:_0x484c6b,segmentPage:_0x16139b}=_0x1ebf99;_0x90b4c3['length']&&(_0x90b4c3+=','),_0x90b4c3+=_0x2f7ef5+':'+_0x2ae815+':'+(_0x3168c2?'1':'0')+':'+_0x56c2f3+':'+_0x484c6b+':'+_0x16139b;}return _0x90b4c3;}function Ze(_0x2bf56b){const _0x1d5870=_0x23fb60,_0x2568e3=_0x2bf56b[_0x1d5870(0x25d)](','),_0x468fb5=[];for(const _0x581950 of _0x2568e3){const [_0x5cf854,_0x542a21,_0x5165e5,_0x1bb8f5,_0x222274,_0x1894fe]=_0x581950[_0x1d5870(0x25d)](':');_0x468fb5[_0x1d5870(0x43b)]({'startOffset':Number(_0x5cf854),'endOffset':Number(_0x542a21),'collapsed':_0x5cf854===_0x542a21,'isActive':_0x5165e5==='1','rangeType':_0x1bb8f5===a[_0x1d5870(0x35e)][_0x1d5870(0x258)]?a['DOC_RANGE_TYPE'][_0x1d5870(0x258)]:a[_0x1d5870(0x35e)]['RECT'],'segmentId':typeof _0x222274==_0x1d5870(0x1e9)?String(_0x222274):'','segmentPage':Number(_0x1894fe!=null?_0x1894fe:-0x1)});}return _0x468fb5[_0x1d5870(0x288)](_0xbd005d=>_0xbd005d[_0x1d5870(0x370)])||(_0x468fb5[0x0][_0x1d5870(0x370)]=!0x0),_0x468fb5;}class pe extends a[_0x23fb60(0x2e3)]{constructor(){const _0x4b0034=_0x23fb60;super(...arguments),h(this,_0x4b0034(0x40c),new d[(_0x4b0034(0x273))](null)),h(this,_0x4b0034(0x34a),this[_0x4b0034(0x40c)][_0x4b0034(0x337)]());}['syncEditingCollabCursor'](_0xa878f3){const _0x4dd47e=_0x23fb60,{unitID:_0x2346d0,memberID:_0x34369b,textRanges:_0x475f42}=_0xa878f3,_0x195f26=Le(_0x475f42);if(_0x195f26==='')return;const _0x565a38={'unitID':_0x2346d0,'memberID':_0x34369b,'selection':_0x195f26};this[_0x4dd47e(0x40c)]['next'](_0x565a38);}}var Qe=Object[_0x23fb60(0x3f3)],et=(_0x56d0b9,_0x23380c,_0xfc57d,_0x4564e2)=>{const _0x593f79=_0x23fb60;for(var _0x27070a=_0x4564e2>0x1?void 0x0:_0x4564e2?Qe(_0x23380c,_0xfc57d):_0x23380c,_0x226fff=_0x56d0b9[_0x593f79(0x2c5)]-0x1,_0x2c4b3c;_0x226fff>=0x0;_0x226fff--)(_0x2c4b3c=_0x56d0b9[_0x226fff])&&(_0x27070a=_0x2c4b3c(_0x27070a)||_0x27070a);return _0x27070a;},N=(_0x4cfab5,_0x401336)=>(_0x3c3f6c,_0x4b80ba)=>_0x401336(_0x3c3f6c,_0x4b80ba,_0x4cfab5);const tt=0x12c,st=0x64;let Se=class extends a[_0x23fb60(0x2e3)]{constructor(_0x177c75,_0x3116c4,_0x2ed6e0,_0xbe19f0,_0x5cf072,_0x75e938,_0x3f3052,_0x330393,_0x1d2cea){const _0x5c646a=_0x23fb60;super(),h(this,_0x5c646a(0x2be),!0x1),h(this,_0x5c646a(0x238),!0x1),h(this,_0x5c646a(0x227),new d[(_0x5c646a(0x273))](new Map())),h(this,'cursorInfo$',this[_0x5c646a(0x227)][_0x5c646a(0x337)]()),h(this,'_roomMembers$',new d[(_0x5c646a(0x273))]([])),h(this,_0x5c646a(0x2a2),this[_0x5c646a(0x373)][_0x5c646a(0x237)](d[_0x5c646a(0x239)](tt))),h(this,_0x5c646a(0x37d),a[_0x5c646a(0x230)](_0x36e10b=>{const _0x528f22=_0x5c646a,_0xbf6785={'eventID':m[_0x528f22(0x271)][_0x528f22(0x365)],'data':{'unitID':this['unitID'],'memberID':this[_0x528f22(0x43c)]['getMemberID'](),'selection':Le(_0x36e10b)}};this[_0x528f22(0x43c)][_0x528f22(0x329)](_0xbf6785,this['unitID']);},st)),(this['unitID']=_0x177c75,this['_session']=_0x3116c4,this['_injector']=_0x2ed6e0,this[_0x5c646a(0x427)]=_0xbe19f0,this[_0x5c646a(0x2c7)]=_0x5cf072,this[_0x5c646a(0x3b2)]=_0x75e938,this[_0x5c646a(0x24c)]=_0x3f3052,this[_0x5c646a(0x208)]=_0x330393,this[_0x5c646a(0x3f0)]=_0x1d2cea);}get[_0x23fb60(0x364)](){const _0x1931c9=_0x23fb60;return this[_0x1931c9(0x227)][_0x1931c9(0x385)]();}get[_0x23fb60(0x3e5)](){const _0x27b4fa=_0x23fb60;return this[_0x27b4fa(0x373)][_0x27b4fa(0x385)]();}[_0x23fb60(0x1f7)](){const _0x120dad=_0x23fb60;super[_0x120dad(0x1f7)](),this[_0x120dad(0x227)]['next'](new Map()),this[_0x120dad(0x227)][_0x120dad(0x3e6)](),this[_0x120dad(0x373)][_0x120dad(0x1da)]([]),this[_0x120dad(0x373)][_0x120dad(0x3e6)]();}[_0x23fb60(0x3a2)](){const _0xf49cd8=_0x23fb60;this[_0xf49cd8(0x238)]||(this[_0xf49cd8(0x238)]=!0x0,this[_0xf49cd8(0x43c)][_0xf49cd8(0x2dd)][_0xf49cd8(0x237)](d['takeUntil'](this[_0xf49cd8(0x220)]))['subscribe'](_0x918c98=>{const _0x107ee8=_0xf49cd8;_0x918c98===u[_0x107ee8(0x34b)][_0x107ee8(0x380)]?this[_0x107ee8(0x433)]():this['_toggleOffline']();}),this[_0xf49cd8(0x43c)][_0xf49cd8(0x1cf)][_0xf49cd8(0x237)](d[_0xf49cd8(0x2de)](this['dispose$']))[_0xf49cd8(0x285)](_0x556359=>{const _0x19ce3d=_0xf49cd8,_0x3fcfbe=_0x556359[_0x19ce3d(0x21b)];_0x3fcfbe===m[_0x19ce3d(0x271)][_0x19ce3d(0x365)]&&this[_0x19ce3d(0x20f)](_0x556359),_0x3fcfbe===m[_0x19ce3d(0x271)][_0x19ce3d(0x3f5)]&&this[_0x19ce3d(0x205)](_0x556359);}),this['disposeWithMe'](this[_0xf49cd8(0x3f0)]['onCommandExecuted'](_0x278c08=>{const _0x55c384=_0xf49cd8,_0x3ff030=_0x278c08[_0x55c384(0x2a5)];_0x3ff030!=null&&this[_0x55c384(0x2be)]&&_0x278c08['id']===Y[_0x55c384(0x25a)]['id']&&_0x3ff030['unitId']===this[_0x55c384(0x37c)]&&_0x3ff030[_0x55c384(0x421)]===!0x1&&_0x3ff030[_0x55c384(0x25e)][_0x55c384(0x2c5)]>0x0&&this[_0x55c384(0x37d)](_0x3ff030[_0x55c384(0x25e)]);})),this[_0xf49cd8(0x3b2)]['collabCursorState$']['pipe'](d['takeUntil'](this[_0xf49cd8(0x220)]))['subscribe'](_0x5b1d6b=>{const _0x2a9d7d=_0xf49cd8;if((_0x5b1d6b==null?void 0x0:_0x5b1d6b['unitID'])!==this[_0x2a9d7d(0x37c)])return;const _0x3fe5f4={'eventID':m[_0x2a9d7d(0x271)][_0x2a9d7d(0x365)],'data':_0x5b1d6b};this[_0x2a9d7d(0x20f)](_0x3fe5f4);}),this[_0xf49cd8(0x384)](this[_0xf49cd8(0x3f0)][_0xf49cd8(0x286)](_0x8d76d2=>{const _0x12f832=_0xf49cd8;if(_0x8d76d2[_0x12f832(0x2a5)]==null)return;const _0x378497=_0x8d76d2[_0x12f832(0x2a5)];if(_0x8d76d2['id']!==Y[_0x12f832(0x3f6)]['id']||_0x378497[_0x12f832(0x206)]!==this[_0x12f832(0x37c)])return;const _0x57a42e={'id':_0x12f832(0x397),'params':_0x378497},_0x3d8cd6=this[_0x12f832(0x364)];for(const [_0x2d93c5,_0x5d78f0]of _0x3d8cd6){const _0x1868e8={'id':_0x12f832(0x397),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5d78f0[_0x12f832(0x25e)]}},_0x85e778=this[_0x12f832(0x24c)][_0x12f832(0x1cc)](_0x57a42e,_0x1868e8,!0x1);if(m['isTransformMutationFailure'](_0x85e778))throw _0x85e778['error'];_0x3d8cd6['set'](_0x2d93c5,{..._0x5d78f0,'ranges':_0x85e778[_0x12f832(0x312)][_0x12f832(0x2a5)][_0x12f832(0x38a)]});}queueMicrotask(()=>{const _0x3de990=_0x12f832;this[_0x3de990(0x227)][_0x3de990(0x1da)](_0x3d8cd6);});})));}[_0x23fb60(0x20f)](_0xd6c52c){const _0x406841=_0x23fb60;var _0x54b5b4,_0x450e82;const {memberID:_0x1cb616,selection:_0x54bab9}=_0xd6c52c[_0x406841(0x2d8)],_0x128088=Ze(_0x54bab9),_0x38b57f=(_0x450e82=(_0x54b5b4=this[_0x406841(0x2c7)]['getMember'](this[_0x406841(0x37c)],_0x1cb616))==null?void 0x0:_0x54b5b4[_0x406841(0x409)])!=null?_0x450e82:'Unknown\x20user',_0x5b7c02={'color':this[_0x406841(0x427)][_0x406841(0x2fb)](_0x1cb616),'name':_0x38b57f,'ranges':_0x128088},_0x2c8415=this['cursorInfo'];_0x2c8415[_0x406841(0x3b8)](_0x1cb616,_0x5b7c02),this[_0x406841(0x227)]['next'](_0x2c8415);}[_0x23fb60(0x205)](_0x9110c6){const _0x5e31af=_0x23fb60,{memberID:_0x4db0d8}=_0x9110c6[_0x5e31af(0x2d8)],_0x2e72f1=this[_0x5e31af(0x364)];_0x2e72f1[_0x5e31af(0x242)](_0x4db0d8),this[_0x5e31af(0x227)][_0x5e31af(0x1da)](_0x2e72f1);}[_0x23fb60(0x433)](){const _0x5cca15=_0x23fb60;var _0x32e43a;if(this['_online']=!0x0,((_0x32e43a=this['_univerInstanceService'][_0x5cca15(0x2ba)]())==null?void 0x0:_0x32e43a[_0x5cca15(0x236)]())!==this[_0x5cca15(0x37c)])return;const _0x3d212c=this[_0x5cca15(0x348)][_0x5cca15(0x300)](Y[_0x5cca15(0x415)])[_0x5cca15(0x1f6)]();Array['isArray'](_0x3d212c)&&_0x3d212c['length']>0x0&&this[_0x5cca15(0x37d)](_0x3d212c);}['_toggleOffline'](){const _0x36e37d=_0x23fb60;this[_0x36e37d(0x2be)]=!0x1;}};Se=et([N(0x2,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),N(0x3,a[_0x23fb60(0x203)](Ce)),N(0x4,a[_0x23fb60(0x203)](u[_0x23fb60(0x375)])),N(0x5,a[_0x23fb60(0x203)](pe)),N(0x6,m[_0x23fb60(0x22e)]),N(0x7,a[_0x23fb60(0x322)]),N(0x8,a['ICommandService'])],Se);var nt=Object[_0x23fb60(0x3f3)],it=(_0x299e9c,_0x255be4,_0x5c6cd0,_0x304388)=>{const _0x49717c=_0x23fb60;for(var _0x3b9a2e=_0x304388>0x1?void 0x0:_0x304388?nt(_0x255be4,_0x5c6cd0):_0x255be4,_0x1660e5=_0x299e9c[_0x49717c(0x2c5)]-0x1,_0x9a905b;_0x1660e5>=0x0;_0x1660e5--)(_0x9a905b=_0x299e9c[_0x1660e5])&&(_0x3b9a2e=_0x9a905b(_0x3b9a2e)||_0x3b9a2e);return _0x3b9a2e;},y=(_0x50c20e,_0x246a0c)=>(_0xe12aae,_0x4260d3)=>_0x246a0c(_0xe12aae,_0x4260d3,_0x50c20e);const rt=0x12c,ot=0x64,at=()=>{let _0x502db4=[],_0x110180=!0x1;return _0x57a65c=>{const _0x47a08d=_0x9264;_0x502db4[_0x47a08d(0x43b)](_0x57a65c),_0x110180||(_0x110180=!0x0,setTimeout(()=>{const _0x1af34d=_0x47a08d;_0x502db4[_0x1af34d(0x3d2)](_0x2872d6=>_0x2872d6()),_0x502db4=[],_0x110180=!0x1;}));};};let ve=class extends a[_0x23fb60(0x2e3)]{constructor(_0x439de8,_0x31e6b8,_0x41dd92,_0x14c886,_0x25f7e1,_0xdf4b39,_0x3f3ba2,_0x42177d){const _0x4ba782=_0x23fb60;super(),h(this,_0x4ba782(0x2be),!0x1),h(this,_0x4ba782(0x238),!0x1),h(this,_0x4ba782(0x227),new d[(_0x4ba782(0x273))](new Map())),h(this,'cursorInfo$',this[_0x4ba782(0x227)]['asObservable']()),h(this,_0x4ba782(0x373),new d[(_0x4ba782(0x273))]([])),h(this,_0x4ba782(0x2a2),this['_roomMembers$'][_0x4ba782(0x237)](d['debounceTime'](rt))),h(this,_0x4ba782(0x37d),a[_0x4ba782(0x230)]((_0x463fce,_0x22ab2f)=>{const _0x43e754=_0x4ba782,_0x55e759={'eventID':m[_0x43e754(0x271)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x43e754(0x37c)],'memberID':this['_session'][_0x43e754(0x269)](),'selection':Te['serializeRangeWithSheet'](_0x463fce,_0x22ab2f['range'])}};this[_0x43e754(0x43c)][_0x43e754(0x329)](_0x55e759,this[_0x43e754(0x37c)]);},ot)),(this['unitID']=_0x439de8,this[_0x4ba782(0x43c)]=_0x31e6b8,this[_0x4ba782(0x348)]=_0x41dd92,this['_colorAssignService']=_0x14c886,this[_0x4ba782(0x2c7)]=_0x25f7e1,this[_0x4ba782(0x208)]=_0xdf4b39,this[_0x4ba782(0x3f0)]=_0x3f3ba2,this[_0x4ba782(0x353)]=_0x42177d);}get[_0x23fb60(0x364)](){const _0x188ec7=_0x23fb60;return this[_0x188ec7(0x227)][_0x188ec7(0x385)]();}get[_0x23fb60(0x3e5)](){const _0x556e71=_0x23fb60;return this[_0x556e71(0x373)][_0x556e71(0x385)]();}[_0x23fb60(0x1f7)](){const _0x1c1318=_0x23fb60;super[_0x1c1318(0x1f7)](),this[_0x1c1318(0x227)]['next'](new Map()),this[_0x1c1318(0x227)][_0x1c1318(0x3e6)](),this[_0x1c1318(0x373)]['next']([]),this['_roomMembers$']['complete']();}['init'](){const _0x224efe=_0x23fb60;this['_init']||(this[_0x224efe(0x238)]=!0x0,this['_session']['sessionStatus$'][_0x224efe(0x237)](d['takeUntil'](this['dispose$']))[_0x224efe(0x285)](_0x484785=>{const _0x241b97=_0x224efe;_0x484785===u[_0x241b97(0x34b)]['ONLINE']?this['_toggleOnline']():this[_0x241b97(0x2f6)]();}),this[_0x224efe(0x43c)][_0x224efe(0x1cf)][_0x224efe(0x237)](d[_0x224efe(0x2de)](this['dispose$']))[_0x224efe(0x285)](_0x2df4ce=>{const _0x187894=_0x224efe,_0x4c6e96=_0x2df4ce[_0x187894(0x21b)];_0x4c6e96===m['CollaborationEvent'][_0x187894(0x365)]&&this[_0x187894(0x20f)](_0x2df4ce),_0x4c6e96===m[_0x187894(0x271)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x2df4ce);}),this[_0x224efe(0x1fb)](),this[_0x224efe(0x384)](this['_commandService'][_0x224efe(0x286)](_0x254e9=>{const _0x33824d=_0x224efe;if(this['_online']&&_0x254e9['id']===I['SetSelectionsOperation']['id']&&_0x254e9['params'][_0x33824d(0x206)]===this['unitID']){const _0x4e78ba=_0x254e9[_0x33824d(0x2a5)];this[_0x33824d(0x37d)](_0x4e78ba[_0x33824d(0x34e)],_0x4e78ba['selections'][0x0]);}})));}['_onCursorUpdate'](_0x23ad6c){const _0x2e8328=_0x23fb60;var _0x368190,_0x17c0d0;const {memberID:_0x1045f0,selection:_0x4b33dc}=_0x23ad6c[_0x2e8328(0x2d8)],{sheetName:_0xedca2e,range:_0x336093}=Te[_0x2e8328(0x3cf)](_0x4b33dc),_0x1a9f1f={'name':(_0x17c0d0=(_0x368190=this['_memberService'][_0x2e8328(0x2b7)](this[_0x2e8328(0x37c)],_0x1045f0))==null?void 0x0:_0x368190[_0x2e8328(0x409)])!=null?_0x17c0d0:_0x2e8328(0x22a),'range':this[_0x2e8328(0x2cc)](_0xedca2e,_0x336093),'sheetID':_0xedca2e,'color':this['_colorAssignService'][_0x2e8328(0x2fb)](_0x1045f0),'selection':_0x4b33dc},_0x5cda1a=this[_0x2e8328(0x364)];_0x5cda1a[_0x2e8328(0x3b8)](_0x1045f0,_0x1a9f1f),this['_cursorInfo$'][_0x2e8328(0x1da)](_0x5cda1a);}[_0x23fb60(0x205)](_0x516f30){const _0x4eab9b=_0x23fb60,{memberID:_0x34a635}=_0x516f30[_0x4eab9b(0x2d8)],_0x1465a3=this[_0x4eab9b(0x364)];_0x1465a3[_0x4eab9b(0x242)](_0x34a635),this[_0x4eab9b(0x227)][_0x4eab9b(0x1da)](_0x1465a3);}[_0x23fb60(0x2cc)](_0x9766a3,_0x5ac862){const _0x4149c5=_0x23fb60;var _0x4a39d1,_0x170269;const _0x72be5=(_0x170269=(_0x4a39d1=this[_0x4149c5(0x208)]['getUniverSheetInstance'](this[_0x4149c5(0x37c)]))==null?void 0x0:_0x4a39d1[_0x4149c5(0x33f)](_0x9766a3))==null?void 0x0:_0x170269[_0x4149c5(0x306)]();return(_0x72be5==null?void 0x0:_0x72be5[_0x4149c5(0x21e)](_0x180770=>a['Rectangle'][_0x4149c5(0x3bc)](_0x180770,_0x5ac862)))||_0x5ac862;}['_onRefRangeChange'](){const _0x12f389=_0x23fb60,_0x1eb2dc=new a[(_0x12f389(0x394))](),_0x50546d=at(),_0x14c975=()=>{const _0x3c998b=_0x12f389;_0x1eb2dc[_0x3c998b(0x1f7)]();const _0x26a7b3=(_0x413b9f,_0x4d342,_0x21b90b,_0x3cee93)=>{const _0x24b1ae=_0x3c998b;let _0x3214b8=[];switch(_0x413b9f['id']){case I[_0x24b1ae(0x2e5)][_0x24b1ae(0x3e3)]:{_0x3214b8=I[_0x24b1ae(0x293)](_0x413b9f,_0x3cee93);break;}case I[_0x24b1ae(0x2e5)][_0x24b1ae(0x402)]:{_0x3214b8=I[_0x24b1ae(0x36a)](_0x413b9f,_0x3cee93);break;}case I[_0x24b1ae(0x2e5)][_0x24b1ae(0x287)]:{_0x3214b8=I[_0x24b1ae(0x2c3)](_0x413b9f,_0x3cee93);break;}case I['EffectRefRangId'][_0x24b1ae(0x3ef)]:{_0x3214b8=I['handleInsertRangeMoveDown'](_0x413b9f,_0x3cee93);break;}case I[_0x24b1ae(0x2e5)][_0x24b1ae(0x363)]:{_0x3214b8=I['handleInsertRangeMoveRight'](_0x413b9f,_0x3cee93);break;}case I[_0x24b1ae(0x2e5)][_0x24b1ae(0x201)]:{_0x3214b8=I[_0x24b1ae(0x28f)](_0x413b9f,_0x3cee93);break;}case I['EffectRefRangId'][_0x24b1ae(0x403)]:{_0x3214b8=I[_0x24b1ae(0x388)](_0x413b9f,_0x3cee93);break;}case I[_0x24b1ae(0x2e5)][_0x24b1ae(0x2b1)]:{_0x3214b8=I[_0x24b1ae(0x23f)](_0x413b9f,_0x3cee93);break;}case I[_0x24b1ae(0x2e5)]['RemoveRowCommandId']:{_0x3214b8=I[_0x24b1ae(0x378)](_0x413b9f,_0x3cee93);break;}}const _0x9e0319=I['runRefRangeMutations'](_0x3214b8,_0x3cee93),_0x4d237f=this[_0x24b1ae(0x364)][_0x24b1ae(0x300)](_0x4d342);if(_0x4d237f&&_0x9e0319){const _0x392b0f={..._0x4d237f,'range':_0x9e0319};this['cursorInfo'][_0x24b1ae(0x3b8)](_0x4d342,_0x392b0f),_0x50546d(()=>{const _0x15ed1c=_0x24b1ae,_0x28195f=this['_refRangeService'][_0x15ed1c(0x3ad)](_0x9e0319,_0x4e0ab0=>(_0x28195f[_0x15ed1c(0x1f7)](),_0x26a7b3(_0x4e0ab0,_0x4d342,_0x21b90b,_0x9e0319)));_0x1eb2dc[_0x15ed1c(0x316)](_0x28195f);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x3c998b(0x3d2)]((_0xc4a537,_0x4aeaba)=>{const _0x3bd57e=_0x3c998b,{range:_0x10c5ec,sheetID:_0x55f1ef}=_0xc4a537,_0x8cfbbd=this[_0x3bd57e(0x353)][_0x3bd57e(0x3ad)](_0x10c5ec,_0x3df2f3=>(_0x8cfbbd[_0x3bd57e(0x1f7)](),_0x26a7b3(_0x3df2f3,_0x4aeaba,_0x55f1ef,_0x10c5ec)));_0x1eb2dc['add'](_0x8cfbbd);});};this[_0x12f389(0x384)](a[_0x12f389(0x276)](this[_0x12f389(0x227)][_0x12f389(0x285)](()=>{_0x14c975();})));}[_0x23fb60(0x433)](){const _0x10fd89=_0x23fb60;var _0x590608,_0x5325cc;if(this[_0x10fd89(0x2be)]=!0x0,((_0x590608=this['_univerInstanceService'][_0x10fd89(0x2ba)]())==null?void 0x0:_0x590608[_0x10fd89(0x236)]())!==this['unitID'])return;const _0x4e7535=(_0x5325cc=this['_injector'][_0x10fd89(0x300)](I['SheetsSelectionsService'])[_0x10fd89(0x22d)]())==null?void 0x0:_0x5325cc[0x0],_0x156066=this[_0x10fd89(0x208)]['getCurrentUnitForType'](a[_0x10fd89(0x3aa)]['UNIVER_SHEET'])[_0x10fd89(0x3bb)]();_0x4e7535&&_0x156066&&this[_0x10fd89(0x37d)](_0x156066[_0x10fd89(0x2ec)](),_0x4e7535);}[_0x23fb60(0x2f6)](){this['_online']=!0x1;}};ve=it([y(0x2,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),y(0x3,a[_0x23fb60(0x203)](Ce)),y(0x4,a[_0x23fb60(0x203)](u[_0x23fb60(0x375)])),y(0x5,a[_0x23fb60(0x322)]),y(0x6,a[_0x23fb60(0x1c7)]),y(0x7,a['Inject'](I['RefRangeService']))],ve);var ct=Object[_0x23fb60(0x3f3)],lt=(_0x4fe30d,_0x5ca8f5,_0x39b756,_0x1a835f)=>{const _0x4d990e=_0x23fb60;for(var _0x46a98a=_0x1a835f>0x1?void 0x0:_0x1a835f?ct(_0x5ca8f5,_0x39b756):_0x5ca8f5,_0x5a01cb=_0x4fe30d[_0x4d990e(0x2c5)]-0x1,_0x4987b6;_0x5a01cb>=0x0;_0x5a01cb--)(_0x4987b6=_0x4fe30d[_0x5a01cb])&&(_0x46a98a=_0x4987b6(_0x46a98a)||_0x46a98a);return _0x46a98a;},ie=(_0x445c0d,_0x336151)=>(_0x553b08,_0xb5dbcf)=>_0x336151(_0x553b08,_0xb5dbcf,_0x445c0d);let x=class extends a[_0x23fb60(0x2e3)]{constructor(_0x10dd40,_0xdb6f00,_0x546a0d){const _0x262ec4=_0x23fb60;super(),h(this,_0x262ec4(0x2ad),new Map()),h(this,_0x262ec4(0x330),new d[(_0x262ec4(0x27c))]()),(this[_0x262ec4(0x208)]=_0x10dd40,this[_0x262ec4(0x348)]=_0xdb6f00,this[_0x262ec4(0x3f8)]=_0x546a0d,this[_0x262ec4(0x238)]());}[_0x23fb60(0x1f7)](){const _0x57ebb4=_0x23fb60;super['dispose'](),this[_0x57ebb4(0x330)][_0x57ebb4(0x3e6)](),this[_0x57ebb4(0x2ad)][_0x57ebb4(0x3d2)](_0x55beed=>_0x55beed['dispose']());}[_0x23fb60(0x308)](_0x911149){const _0x106952=_0x23fb60;return this[_0x106952(0x2ad)][_0x106952(0x234)](_0x911149)?this['_entities'][_0x106952(0x300)](_0x911149)[_0x106952(0x253)]:this[_0x106952(0x330)][_0x106952(0x237)](d[_0x106952(0x326)](_0x52eef5=>_0x52eef5[_0x106952(0x37c)]===_0x911149),d[_0x106952(0x3de)](_0x3b60ac=>_0x3b60ac[_0x106952(0x253)]));}[_0x23fb60(0x238)](){const _0xc57bdb=_0x23fb60;this[_0xc57bdb(0x208)][_0xc57bdb(0x284)](a['UniverInstanceType'][_0xc57bdb(0x20c)])[_0xc57bdb(0x237)](d['takeUntil'](this['dispose$']))[_0xc57bdb(0x285)](async _0x505ceb=>{const _0x3c50eb=_0xc57bdb,_0x4bda72=_0x505ceb[_0x3c50eb(0x236)](),_0x2c3490=await this[_0x3c50eb(0x1ea)](_0x4bda72);this[_0x3c50eb(0x330)]['next'](_0x2c3490),this[_0x3c50eb(0x2ad)][_0x3c50eb(0x3b8)](_0x4bda72,_0x2c3490);}),this['_univerInstanceService'][_0xc57bdb(0x284)](a[_0xc57bdb(0x3aa)][_0xc57bdb(0x1f4)])[_0xc57bdb(0x237)](d[_0xc57bdb(0x2de)](this[_0xc57bdb(0x220)]))[_0xc57bdb(0x237)](d[_0xc57bdb(0x326)](_0x3a82ce=>!_0x3a82ce[_0xc57bdb(0x236)]()[_0xc57bdb(0x1e1)]('__')))['subscribe'](async _0x32350d=>{const _0x332d08=_0xc57bdb,_0x17942a=_0x32350d[_0x332d08(0x236)](),_0x41643b=await this[_0x332d08(0x434)](_0x17942a);this[_0x332d08(0x330)]['next'](_0x41643b),this[_0x332d08(0x2ad)][_0x332d08(0x3b8)](_0x17942a,_0x41643b);}),d['merge'](this[_0xc57bdb(0x208)][_0xc57bdb(0x3a1)](a[_0xc57bdb(0x3aa)]['UNIVER_DOC']),this[_0xc57bdb(0x208)][_0xc57bdb(0x3a1)](a['UniverInstanceType'][_0xc57bdb(0x20c)]))[_0xc57bdb(0x237)](d[_0xc57bdb(0x2de)](this[_0xc57bdb(0x220)]))[_0xc57bdb(0x285)](_0x3d5987=>{const _0x5e83c5=_0xc57bdb,_0x307624=_0x3d5987[_0x5e83c5(0x236)](),_0x3716fb=this[_0x5e83c5(0x2ad)][_0x5e83c5(0x300)](_0x307624);_0x3716fb&&(_0x3716fb[_0x5e83c5(0x1f7)](),this['_entities'][_0x5e83c5(0x242)](_0x307624));});}async['_startSheetCollabCursor'](_0x17912b){const _0x55d2ab=_0x23fb60,_0x5428a2=await this[_0x55d2ab(0x3f8)][_0x55d2ab(0x1c2)](_0x17912b),_0x98126f=this[_0x55d2ab(0x348)][_0x55d2ab(0x297)](ve,_0x17912b,_0x5428a2);return _0x98126f['init'](),_0x98126f;}async[_0x23fb60(0x434)](_0x5aae05){const _0x9a7175=_0x23fb60,_0x2f2346=await this['_collabSessionService']['requireSession'](_0x5aae05),_0x4e6718=this[_0x9a7175(0x348)]['createInstance'](Se,_0x5aae05,_0x2f2346);return _0x4e6718[_0x9a7175(0x3a2)](),_0x4e6718;}};x=lt([ie(0x0,a[_0x23fb60(0x322)]),ie(0x1,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),ie(0x2,a[_0x23fb60(0x203)](u['CollaborationSessionService']))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _t(_0x1908e3,_0x22db4a){const _0x3333bb=_0x23fb60;let {radius:_0x2aa4c1,width:_0x136b14,height:_0x577539}=_0x22db4a;_0x2aa4c1=_0x2aa4c1!=null?_0x2aa4c1:0x0,_0x136b14=_0x136b14!=null?_0x136b14:0x1e,_0x577539=_0x577539!=null?_0x577539:0x1e;let _0x3e4b27=0x0,_0x22d59c=0x0,_0x4b4c57=0x0;_0x3e4b27=_0x22d59c=_0x4b4c57=Math[_0x3333bb(0x3ab)](_0x2aa4c1,_0x136b14/0x2,_0x577539/0x2),_0x1908e3[_0x3333bb(0x347)](),_0x1908e3[_0x3333bb(0x23b)](_0x3e4b27,0x0),_0x1908e3[_0x3333bb(0x291)](_0x136b14-_0x22d59c,0x0),_0x1908e3[_0x3333bb(0x374)](_0x136b14-_0x22d59c,_0x22d59c,_0x22d59c,Math['PI']*0x3/0x2,0x0,!0x1),_0x1908e3[_0x3333bb(0x291)](_0x136b14,_0x577539-_0x4b4c57),_0x1908e3[_0x3333bb(0x374)](_0x136b14-_0x4b4c57,_0x577539-_0x4b4c57,_0x4b4c57,0x0,Math['PI']/0x2,!0x1),_0x1908e3[_0x3333bb(0x291)](0x0,_0x577539),_0x1908e3[_0x3333bb(0x291)](0x0,_0x3e4b27),_0x1908e3[_0x3333bb(0x374)](_0x3e4b27,_0x3e4b27,_0x3e4b27,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1908e3[_0x3333bb(0x361)](),_0x22db4a['fill']&&(_0x1908e3[_0x3333bb(0x442)](),_0x1908e3['fillStyle']=_0x22db4a[_0x3333bb(0x398)],_0x22db4a[_0x3333bb(0x431)]===_0x3333bb(0x1e4)?_0x1908e3[_0x3333bb(0x398)](_0x3333bb(0x1e4)):_0x1908e3[_0x3333bb(0x398)](),_0x1908e3[_0x3333bb(0x255)]());}class te extends p[_0x23fb60(0x377)]{constructor(_0x4644d4,_0x11f578){const _0x5ecb3d=_0x23fb60;super(_0x4644d4,_0x11f578),h(this,_0x5ecb3d(0x38b)),h(this,_0x5ecb3d(0x3f2)),(this[_0x5ecb3d(0x38b)]=_0x11f578==null?void 0x0:_0x11f578[_0x5ecb3d(0x38b)],this['text']=_0x11f578==null?void 0x0:_0x11f578[_0x5ecb3d(0x3f2)]);}static['drawWith'](_0x112d95,_0x563825){const _0x3a48a5=_0x23fb60,{text:_0x165bf5,color:_0x285ba9}=_0x563825;_0x112d95[_0x3a48a5(0x442)](),_0x112d95[_0x3a48a5(0x1e5)]=_0x3a48a5(0x1eb);const _0x536ae7=_0x112d95[_0x3a48a5(0x3ee)](_0x165bf5)['width'],_0x5cd2d5=Math[_0x3a48a5(0x3ab)](_0x536ae7+0x2*re,De);_t(_0x112d95,{'height':K,'radius':0x4,'width':_0x5cd2d5,'fill':_0x285ba9}),_0x112d95[_0x3a48a5(0x406)]=_0x3a48a5(0x323);const _0x134f13=re,_0x57acfe=K-ht,_0x43efef=De-0x2*re;if(_0x536ae7>_0x43efef){let _0x60215e='',_0x3582db=0x0;for(const _0x374624 of _0x165bf5){const _0x53eff6=_0x112d95[_0x3a48a5(0x3ee)](_0x374624)['width'];if(_0x3582db+_0x53eff6<=_0x43efef-_0x112d95[_0x3a48a5(0x3ee)](_0x3a48a5(0x2e9))[_0x3a48a5(0x233)])_0x60215e+=_0x374624,_0x3582db+=_0x53eff6;else{_0x60215e+=_0x3a48a5(0x2e9);break;}}_0x112d95[_0x3a48a5(0x3a8)](_0x60215e,_0x134f13,_0x57acfe);}else _0x112d95['fillText'](_0x165bf5,_0x134f13,_0x57acfe);_0x112d95['restore']();}[_0x23fb60(0x32a)](_0x2dcf58){const _0x2fbb98=_0x23fb60;te[_0x2fbb98(0x1d7)](_0x2dcf58,this);}}const oe='collab-text-anchor-',ut=_0x23fb60(0x1db),dt=_0x23fb60(0x26f),B=0x6,ft=1.5,ae=0x4,St=1.5,vt='rgba(255,\x20255,\x20255,\x200.01)';class Ue{constructor(_0x205d79,_0xc07fd9,_0x58b443,_0xe39765){const _0x128c64=_0x23fb60;h(this,'_shapes',[]),h(this,_0x128c64(0x2c1),null),h(this,_0x128c64(0x295),null),h(this,_0x128c64(0x27f),null),h(this,'_hideTimer',null),h(this,_0x128c64(0x41f),null),(this['_cursor']=_0x205d79,this[_0x128c64(0x3c2)]=_0xc07fd9,this[_0x128c64(0x31b)]=_0x58b443,this[_0x128c64(0x221)]=_0xe39765,this['_render']());}set[_0x23fb60(0x298)](_0x28899e){const _0x134020=_0x23fb60;_0x28899e?(this[_0x134020(0x27f)]&&this['_anchorDot'][_0x134020(0x411)](),this[_0x134020(0x295)]&&this['_textBubble'][_0x134020(0x24f)]()):(this[_0x134020(0x27f)]&&this[_0x134020(0x27f)][_0x134020(0x24f)](),this[_0x134020(0x295)]&&this[_0x134020(0x295)]['hide']());}[_0x23fb60(0x1f7)](){const _0x17a9e4=_0x23fb60;for(const _0x424888 of this[_0x17a9e4(0x1c4)])_0x424888['dispose']();this['_textBubble']&&this[_0x17a9e4(0x295)][_0x17a9e4(0x1f7)](),this[_0x17a9e4(0x27f)]&&this[_0x17a9e4(0x27f)][_0x17a9e4(0x1f7)](),this['_anchor']&&this[_0x17a9e4(0x2c1)][_0x17a9e4(0x1f7)](),this[_0x17a9e4(0x41f)]&&this[_0x17a9e4(0x41f)]();}[_0x23fb60(0x25f)](){const _0x566043=_0x23fb60;var _0x5f2858;const {_docSkeleton:_0x1b8bb1,_document:_0x495a29}=this,{color:_0x5b43cc,name:_0x3d1eaa,ranges:_0x294c73}=this[_0x566043(0x43a)],_0x4e14d3=_0x495a29[_0x566043(0x226)](),{docsLeft:_0x5806e9,docsTop:_0x75ceee}=_0x4e14d3,_0x1eb756=new b[(_0x566043(0x23d))](_0x4e14d3,_0x1b8bb1);for(const {startOffset:_0x4543c1,endOffset:_0x22a8b1,rangeType:_0x207afb,segmentId:_0x3806fd,segmentPage:_0x3654be,collapsed:_0x34154b,isActive:_0x186931}of _0x294c73){const _0xc5fcda=_0x1b8bb1[_0x566043(0x43f)](_0x4543c1,!0x0,_0x3806fd,_0x3654be);let _0x45b2f4=_0x1b8bb1[_0x566043(0x43f)](_0x22a8b1,!0x0,_0x3806fd,_0x3654be);if(_0x45b2f4==null&&(_0x45b2f4=_0x1b8bb1[_0x566043(0x43f)](_0x22a8b1-0x1,!0x1,_0x3806fd,_0x3654be)),_0x186931){const {contentBoxPointGroup:_0xde624e}=_0x1eb756[_0x566043(0x3f9)](_0x45b2f4,_0x45b2f4);if(_0xde624e[_0x566043(0x2c5)]===0x0)continue;this['_drawAnchor'](_0x5b43cc,_0xde624e,_0x5806e9,_0x75ceee,_0x3d1eaa),this[_0x566043(0x41f)]=this[_0x566043(0x3d0)]();}if(_0xc5fcda&&_0x45b2f4){if(_0x207afb===a[_0x566043(0x35e)][_0x566043(0x305)]){const _0x2defe7=new b[(_0x566043(0x3fe))](_0x4e14d3,_0x1b8bb1),{pointGroup:_0x24b9fc}=(_0x5f2858=_0x2defe7['getRangePointData'](_0xc5fcda,_0x45b2f4))!=null?_0x5f2858:{};if(_0x24b9fc==null||_0x24b9fc[_0x566043(0x2c5)]===0x0)continue;this[_0x566043(0x21f)](_0x5b43cc,_0x24b9fc,_0x5806e9,_0x75ceee);}else{if(!_0x34154b){const {borderBoxPointGroup:_0x1e2977}=_0x1eb756[_0x566043(0x3f9)](_0xc5fcda,_0x45b2f4);if(_0x1e2977[_0x566043(0x2c5)]===0x0)continue;this[_0x566043(0x249)](_0x5b43cc,_0x1e2977,_0x5806e9,_0x75ceee);}}}}}[_0x23fb60(0x23e)](_0x1c8cbc,_0x71ac57,_0x5ce855,_0x56321d,_0x55f0bd){const _0x1bf486=_0x23fb60,_0x424a7e=this['_getAnchorBounding'](_0x71ac57),{left:_0x3d1555,top:_0x52edda,height:_0x16eeea}=_0x424a7e,_0x48f1df=this[_0x1bf486(0x213)](),_0x5d6b1c=St/_0x48f1df,_0x28570b=new p[(_0x1bf486(0x307))](oe+a[_0x1bf486(0x1df)]['generateRandomId'](B),{'left':_0x3d1555+_0x5ce855-_0x5d6b1c,'top':_0x52edda+_0x56321d,'height':_0x16eeea,'width':ft,'fill':_0x1c8cbc||p[_0x1bf486(0x2df)](a[_0x1bf486(0x396)][_0x1bf486(0x3db)],0x0),'strokeWidth':_0x5d6b1c,'stroke':vt,'evented':!0x0});this[_0x1bf486(0x2c1)]=_0x28570b,this['_scene']['addObject'](_0x28570b,b['TEXT_RANGE_LAYER_INDEX']);const _0x33dd33=new p['Rect'](oe+a[_0x1bf486(0x1df)][_0x1bf486(0x2fa)](B),{'left':_0x3d1555+_0x5ce855-_0x5d6b1c,'top':_0x52edda+_0x56321d-ae/0x2,'height':ae,'width':ae,'fill':_0x1c8cbc||p[_0x1bf486(0x2df)](a[_0x1bf486(0x396)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x1c8cbc||p[_0x1bf486(0x2df)](a[_0x1bf486(0x396)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x33dd33,this['_scene'][_0x1bf486(0x1ec)](_0x33dd33,b[_0x1bf486(0x254)]);const _0x17e062=new te(oe+a[_0x1bf486(0x1df)][_0x1bf486(0x2fa)](B),{'left':_0x3d1555+_0x5ce855-_0x5d6b1c,'top':_0x52edda+_0x56321d-K,'text':_0x55f0bd,'color':_0x1c8cbc});this[_0x1bf486(0x295)]=_0x17e062,this['_scene'][_0x1bf486(0x1ec)](_0x17e062,b['TEXT_RANGE_LAYER_INDEX']),this[_0x1bf486(0x298)]=!0x1;}['_handleHover'](){const _0x43d5c=_0x23fb60,_0x4666ab=this[_0x43d5c(0x2c1)][_0x43d5c(0x410)][_0x43d5c(0x2d0)](()=>{const _0x12824b=_0x43d5c;this[_0x12824b(0x298)]=!0x0;}),_0x42f8a0=this[_0x43d5c(0x2c1)][_0x43d5c(0x343)]['subscribeEvent'](()=>{const _0x38fd9a=_0x43d5c;this[_0x38fd9a(0x244)]&&clearTimeout(this[_0x38fd9a(0x244)]),this['_hideTimer']=setTimeout(()=>{const _0x464b62=_0x38fd9a;this[_0x464b62(0x298)]=!0x1;},0x7d0);});return()=>{const _0x12c6e5=_0x43d5c;_0x4666ab[_0x12c6e5(0x382)](),_0x42f8a0[_0x12c6e5(0x382)]();};}['_drawTextRange'](_0x2b2d5,_0x43def2,_0x2c8e1d,_0x470fd1){const _0x5c02c6=_0x23fb60,_0x6a02c0=new a['ColorKit'](_0x2b2d5)[_0x5c02c6(0x31c)](0.2)['toRgbString'](),_0x24aafc=new p['RegularPolygon'](ut+a[_0x5c02c6(0x1df)]['generateRandomId'](B),{'pointsGroup':_0x43def2,'fill':_0x6a02c0||p[_0x5c02c6(0x2df)](a[_0x5c02c6(0x396)][_0x5c02c6(0x3db)],0.2),'left':_0x2c8e1d,'top':_0x470fd1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5c02c6(0x1c4)]['push'](_0x24aafc),this['_scene'][_0x5c02c6(0x1ec)](_0x24aafc,b['TEXT_RANGE_LAYER_INDEX']);}[_0x23fb60(0x21f)](_0x5a2687,_0x13c0ad,_0x58c2a2,_0x19b1ab){const _0x684880=_0x23fb60,_0x5c56fe=new a['ColorKit'](_0x5a2687)[_0x684880(0x31c)](0.2)[_0x684880(0x36e)](),_0x4e0475=new p[(_0x684880(0x3d3))](dt+a['Tools'][_0x684880(0x2fa)](B),{'pointsGroup':_0x13c0ad,'fill':_0x5c56fe||p[_0x684880(0x2df)](a[_0x684880(0x396)][_0x684880(0x3db)],0.2),'left':_0x58c2a2,'top':_0x19b1ab,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x684880(0x1c4)][_0x684880(0x43b)](_0x4e0475),this[_0x684880(0x3c2)]['addObject'](_0x4e0475,b[_0x684880(0x254)]);}[_0x23fb60(0x20a)](_0x182f14){const _0x103d59=_0x182f14[0x0],_0x2ffeb7=_0x103d59[0x0],_0x4719e5=_0x103d59[0x2],{x:_0x498a0d,y:_0xcdb7dd}=_0x2ffeb7,{x:_0xcff41f,y:_0x46618e}=_0x4719e5;return{'left':_0x498a0d,'top':_0xcdb7dd,'width':_0xcff41f-_0x498a0d,'height':_0x46618e-_0xcdb7dd};}['_getScale'](){const _0x401265=_0x23fb60,{scaleX:_0x51ec2f,scaleY:_0x42626a}=this[_0x401265(0x3c2)][_0x401265(0x2d5)]();return Math[_0x401265(0x275)](_0x51ec2f,_0x42626a);}}var gt=Object['getOwnPropertyDescriptor'],It=(_0x174a49,_0x1b4055,_0x4db7f0,_0x2ecce3)=>{const _0x5109ae=_0x23fb60;for(var _0x1d4e3a=_0x2ecce3>0x1?void 0x0:_0x2ecce3?gt(_0x1b4055,_0x4db7f0):_0x1b4055,_0x158274=_0x174a49[_0x5109ae(0x2c5)]-0x1,_0x50d3db;_0x158274>=0x0;_0x158274--)(_0x50d3db=_0x174a49[_0x158274])&&(_0x1d4e3a=_0x50d3db(_0x1d4e3a)||_0x1d4e3a);return _0x1d4e3a;},X=(_0x4779b3,_0x55ae4c)=>(_0x5cdda7,_0x16d9c8)=>_0x55ae4c(_0x5cdda7,_0x16d9c8,_0x4779b3);let ge=class extends a['RxDisposable']{constructor(_0x5e23ea,_0xe4faab,_0x13653b,_0x194e28,_0x4b119e){const _0xabf49d=_0x23fb60;super(),h(this,_0xabf49d(0x217),[]),h(this,_0xabf49d(0x1bd),[]),(this['_context']=_0x5e23ea,this[_0xabf49d(0x3e1)]=_0xe4faab,this[_0xabf49d(0x33d)]=_0x13653b,this[_0xabf49d(0x3f0)]=_0x194e28,this[_0xabf49d(0x3e7)]=_0x4b119e,this[_0xabf49d(0x238)]());}[_0x23fb60(0x238)](){const _0x4c26a3=_0x23fb60,_0x4ba2e9=this[_0x4c26a3(0x42a)][_0x4c26a3(0x206)],_0x278fcf=this[_0x4c26a3(0x3e1)];this['disposeWithMe'](d[_0x4c26a3(0x2e0)]([this[_0x4c26a3(0x33d)][_0x4c26a3(0x308)](_0x4ba2e9),this['_themeService'][_0x4c26a3(0x3bf)]])[_0x4c26a3(0x237)]($['map'](([_0x51875e,_0x2f9e40])=>({'skeleton':_0x278fcf['getSkeleton'](),'cursors':[..._0x51875e[_0x4c26a3(0x362)]()][_0x4c26a3(0x3b6)](_0xccb237=>({..._0xccb237,'color':_0x2f9e40[_0xccb237[_0x4c26a3(0x38b)]]}))})))[_0x4c26a3(0x285)](_0x3d52a6=>{const _0x27cc23=_0x4c26a3;if(this['_removeCollabCursors'](),_0x3d52a6){const {skeleton:_0x35afd5,cursors:_0x37315a}=_0x3d52a6;this[_0x27cc23(0x3b0)](_0x35afd5,_0x37315a);}})),this['_initResize'](),this[_0x4c26a3(0x41a)]();}[_0x23fb60(0x3b0)](_0x5c45e4,_0x81dd9e){const _0xd911db=_0x23fb60,{scene:_0x26017a,mainComponent:_0x16ae96}=this[_0xd911db(0x42a)],_0x4837d6=_0x81dd9e[_0xd911db(0x3d1)](_0x3193b3=>new Ue(_0x3193b3,_0x26017a,_0x5c45e4,_0x16ae96));this[_0xd911db(0x217)]=_0x4837d6,this[_0xd911db(0x1bd)]=_0x81dd9e;}[_0x23fb60(0x1bc)](){const _0x426031=_0x23fb60;this['_removeCollabCursors']();const {scene:_0x5f3ae4,mainComponent:_0x2b61e0}=this[_0x426031(0x42a)],_0x141063=this['_docSkeletonManagerService']['getSkeleton'](),_0x5d822d=this['_cursors'][_0x426031(0x3d1)](_0x101943=>new Ue(_0x101943,_0x5f3ae4,_0x141063,_0x2b61e0));this['_cursorShapes']=_0x5d822d;}[_0x23fb60(0x245)](){const _0x4d43fa=_0x23fb60;this['_cursorShapes'][_0x4d43fa(0x3d2)](_0x19c04a=>_0x19c04a['dispose']()),this[_0x4d43fa(0x217)]=[];}['_initCommandExecutedListener'](){const _0x24e239=_0x23fb60,_0x271f8c=[b['SetDocZoomRatioOperation']['id']];this[_0x24e239(0x384)](this[_0x24e239(0x3f0)][_0x24e239(0x286)](_0x63e257=>{const _0x3054a5=_0x24e239;_0x271f8c[_0x3054a5(0x1e0)](_0x63e257['id'])&&_0x63e257['params']['unitId']===this[_0x3054a5(0x42a)][_0x3054a5(0x206)]&&this[_0x3054a5(0x1bc)]();}));}['_initResize'](){const _0x298933=_0x23fb60;this[_0x298933(0x384)](a['fromEventSubject'](this[_0x298933(0x42a)][_0x298933(0x40b)][_0x298933(0x261)])[_0x298933(0x237)]($[_0x298933(0x326)](_0x2a5111=>_0x2a5111['type']===p[_0x298933(0x27d)][_0x298933(0x36d)]),$[_0x298933(0x418)](0x10))[_0x298933(0x285)](()=>{const _0x286ef7=_0x298933;this[_0x286ef7(0x1bc)]();}));}};ge=It([X(0x1,a[_0x23fb60(0x203)](Y[_0x23fb60(0x2ae)])),X(0x2,a[_0x23fb60(0x203)](x)),X(0x3,a[_0x23fb60(0x1c7)]),X(0x4,a[_0x23fb60(0x203)](a[_0x23fb60(0x33a)]))],ge);const mt=0x1,Ct=1.5;class ye extends p[_0x23fb60(0x377)]{constructor(_0xc37059,_0x368d63){const _0x4d66fa=_0x23fb60;super(_0xc37059,_0x368d63),h(this,'_color'),h(this,_0x4d66fa(0x3ba),!0x1),h(this,_0x4d66fa(0x318)),h(this,_0x4d66fa(0x324),''),h(this,_0x4d66fa(0x1f3),'top'),h(this,'_backgroundColor'),(_0x368d63&&this[_0x4d66fa(0x38d)](_0x368d63),this[_0x4d66fa(0x410)][_0x4d66fa(0x2d0)](()=>this[_0x4d66fa(0x38d)]({'hovered':!0x0})),this[_0x4d66fa(0x343)]['subscribeEvent'](()=>this[_0x4d66fa(0x38d)]({'hovered':!0x1})));}[_0x23fb60(0x38d)](_0x30fe9d){const _0x4cf210=_0x23fb60;var _0x48adcf,_0x8be38b,_0x4ef47f,_0x149211,_0x4dd613,_0x4e38fa;this['_color']=(_0x48adcf=_0x30fe9d[_0x4cf210(0x38b)])!=null?_0x48adcf:this[_0x4cf210(0x1d3)],this[_0x4cf210(0x3ba)]=(_0x8be38b=_0x30fe9d[_0x4cf210(0x2da)])!=null?_0x8be38b:this['_hovered'],this[_0x4cf210(0x318)]=(_0x4ef47f=_0x30fe9d['range'])!=null?_0x4ef47f:this[_0x4cf210(0x318)],this[_0x4cf210(0x324)]=(_0x149211=_0x30fe9d['name'])!=null?_0x149211:this[_0x4cf210(0x324)],this[_0x4cf210(0x1f3)]=(_0x4dd613=_0x30fe9d[_0x4cf210(0x2b5)])!=null?_0x4dd613:this['_labelPosition'],this[_0x4cf210(0x3a0)]=(_0x4e38fa=_0x30fe9d[_0x4cf210(0x20e)])!=null?_0x4e38fa:this[_0x4cf210(0x3a0)],this[_0x4cf210(0x301)]({'width':_0x30fe9d[_0x4cf210(0x233)],'height':_0x30fe9d[_0x4cf210(0x3e2)]});}[_0x23fb60(0x289)](_0x135602){const _0x454e8f=_0x23fb60,{row:_0x40b368,column:_0x2cf3e7}=_0x135602;if(_0x40b368>=this[_0x454e8f(0x318)][_0x454e8f(0x29e)]&&_0x40b368<=this[_0x454e8f(0x318)][_0x454e8f(0x1dc)]&&_0x2cf3e7>=this[_0x454e8f(0x318)]['startColumn']&&_0x2cf3e7<=this['_range'][_0x454e8f(0x1e6)]){this[_0x454e8f(0x38d)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x23fb60(0x1c5)](_0x2833a3){return!0x1;}[_0x23fb60(0x32a)](_0xa66a64){const _0x10c5c0=_0x23fb60;p['Rect'][_0x10c5c0(0x1d7)](_0xa66a64,{'width':this['width'],'height':this[_0x10c5c0(0x3e2)],'strokeWidth':Ct,'stroke':this[_0x10c5c0(0x1d3)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0xa66a64[_0x10c5c0(0x442)](),_0xa66a64[_0x10c5c0(0x432)](0x1,0x0,0x0,0x1,this[_0x10c5c0(0x233)],this[_0x10c5c0(0x1f3)]===_0x10c5c0(0x3c5)?0x0:-0x14),te['drawWith'](_0xa66a64,{'text':this[_0x10c5c0(0x324)],'color':this[_0x10c5c0(0x1d3)]}),_0xa66a64['restore']());}}var pt=Object[_0x23fb60(0x3f3)],bt=(_0x42a53d,_0x4fe2a5,_0x51aa09,_0x44f96f)=>{const _0x186ff1=_0x23fb60;for(var _0xb906fb=_0x44f96f>0x1?void 0x0:_0x44f96f?pt(_0x4fe2a5,_0x51aa09):_0x4fe2a5,_0x4b6629=_0x42a53d[_0x186ff1(0x2c5)]-0x1,_0x48c08a;_0x4b6629>=0x0;_0x4b6629--)(_0x48c08a=_0x42a53d[_0x4b6629])&&(_0xb906fb=_0x48c08a(_0xb906fb)||_0xb906fb);return _0xb906fb;},ce=(_0x1129de,_0x4e5e88)=>(_0x1ca243,_0x2ab5a7)=>_0x4e5e88(_0x1ca243,_0x2ab5a7,_0x1129de);const Et=0x1389;let Ie=class extends a[_0x23fb60(0x2e3)]{constructor(_0xdf4782,_0x4f8e20,_0x1bdcdd,_0x3466bc){const _0x46ecf0=_0x23fb60;super(),h(this,'_cursors',new Set()),h(this,_0x46ecf0(0x222),null),(this[_0x46ecf0(0x42a)]=_0xdf4782,this[_0x46ecf0(0x2d1)]=_0x4f8e20,this[_0x46ecf0(0x33d)]=_0x1bdcdd,this['_themeService']=_0x3466bc,this[_0x46ecf0(0x238)]());}[_0x23fb60(0x238)](){const _0x3260bc=_0x23fb60;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3260bc(0x237)]($[_0x3260bc(0x2de)](this[_0x3260bc(0x220)]),$[_0x3260bc(0x3de)](_0x2996f9=>{const _0x38f579=_0x3260bc;if(_0x2996f9){const _0x26f295=_0x2996f9[_0x38f579(0x2f4)];return d[_0x38f579(0x2e0)](this[_0x38f579(0x33d)][_0x38f579(0x308)](this[_0x38f579(0x42a)][_0x38f579(0x206)]),this['_themeService'][_0x38f579(0x3bf)])[_0x38f579(0x237)]($['map'](([_0x2b249e,_0x285517])=>{const _0x1e2eac=_0x38f579,_0x3c08a3=new Map();return _0x2b249e[_0x1e2eac(0x3d2)]((_0x3f2246,_0x149491)=>{const _0x3e4c66=_0x1e2eac;if(_0x3f2246[_0x3e4c66(0x2a9)]===_0x26f295){const _0x403444={..._0x3f2246};_0x403444[_0x3e4c66(0x38b)]=_0x285517[_0x3f2246[_0x3e4c66(0x38b)]],_0x3c08a3[_0x3e4c66(0x3b8)](_0x149491,_0x403444);}}),{'skeleton':_0x2996f9,'cursors':_0x3c08a3};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3260bc(0x285)](({skeleton:_0xf54014,cursors:_0x3e5883})=>{const _0x350b1e=_0x3260bc;this[_0x350b1e(0x245)](),_0xf54014&&this[_0x350b1e(0x3b0)](_0xf54014,_0x3e5883);}),this[_0x3260bc(0x2d1)][_0x3260bc(0x303)][_0x3260bc(0x285)](_0x42e25b=>{const _0x1e6246=_0x3260bc;if(_0x42e25b==null)return;const {skeleton:_0x4b95d3}=_0x42e25b,{scene:_0xd7ba3b}=this['_context'];_0xd7ba3b['onPointerMove$'][_0x1e6246(0x2d0)](a[_0x1e6246(0x230)](_0x30a16d=>{const _0x3e23e1=_0x1e6246;var _0x3c5136,_0x2d6240;const {offsetX:_0x12a2f3,offsetY:_0x1ae6bf}=_0x30a16d,{x:_0x5c6fbc,y:_0x49c86e}=_0xd7ba3b[_0x3e23e1(0x2ed)](p[_0x3e23e1(0x42d)][_0x3e23e1(0x272)]([_0x12a2f3,_0x1ae6bf])),{scaleX:_0x1ff06e,scaleY:_0x15728b}=_0xd7ba3b[_0x3e23e1(0x2d5)](),_0x411423=_0xd7ba3b[_0x3e23e1(0x3f7)](p[_0x3e23e1(0x279)][_0x3e23e1(0x1cb)]),_0x17ce5f=_0xd7ba3b[_0x3e23e1(0x268)](p[_0x3e23e1(0x42d)][_0x3e23e1(0x272)]([_0x5c6fbc,_0x49c86e]),_0x411423),_0x26cee5=_0x4b95d3[_0x3e23e1(0x2ac)](_0x12a2f3,_0x1ae6bf,_0x1ff06e,_0x15728b,_0x17ce5f);((_0x3c5136=this['_lastPointer'])==null?void 0x0:_0x3c5136[_0x3e23e1(0x420)])===_0x26cee5[_0x3e23e1(0x420)]&&((_0x2d6240=this[_0x3e23e1(0x222)])==null?void 0x0:_0x2d6240[_0x3e23e1(0x327)])===_0x26cee5[_0x3e23e1(0x327)]||this[_0x3e23e1(0x1bd)][_0x3e23e1(0x3d2)](_0x1570d7=>{const _0x2089b8=_0x3e23e1;_0x1570d7[_0x2089b8(0x289)](_0x26cee5);});},0x64));});}[_0x23fb60(0x3b0)](_0x567177,_0x2f3c11){const _0x1e0f24=_0x23fb60;var _0x50d5a7;const _0x2b4a21=(_0x50d5a7=this[_0x1e0f24(0x2d1)][_0x1e0f24(0x26e)]())==null?void 0x0:_0x50d5a7['skeleton'];if(!_0x2b4a21)return;const _0x22f574=this[_0x1e0f24(0x367)]();if(!_0x22f574)return;this['_cursors'][_0x1e0f24(0x3d2)](_0x207dc2=>{const _0x26c193=_0x1e0f24;_0x207dc2[_0x26c193(0x214)]();});const {scene:_0x103097}=_0x22f574,_0x6b2437=Tt(Array[_0x1e0f24(0x3f1)](_0x2f3c11[_0x1e0f24(0x362)]()))['map'](_0x3def3f=>{const _0x4ceb2e=_0x1e0f24,{color:_0xf6ad93,range:_0x3949c2,name:_0x2a1d5b,selection:_0x541b9f,sheetID:_0x3e232a}=_0x3def3f,{startColumn:_0x582f57,startRow:_0x2dbeb4,endColumn:_0x172b1a,endRow:_0x167147}=_0x3949c2,_0x1f9e00=G[_0x4ceb2e(0x2f8)](_0x2dbeb4,_0x582f57,_0x103097,_0x2b4a21),_0x13cda8=G[_0x4ceb2e(0x2f8)](_0x167147,_0x172b1a,_0x103097,_0x2b4a21),{columnHeaderHeightAndMarginTop:_0x123386}=_0x2b4a21,{startX:_0x187c7b,startY:_0x877133}=_0x1f9e00,{endX:_0x2e2345,endY:_0x1edc6a}=_0x13cda8,_0x350b07=_0x2e2345-_0x187c7b,_0x2f2d7c=_0x1edc6a-_0x877133,_0x5d7222={'labelPosition':_0x877133-_0x123386>=K?_0x4ceb2e(0x29d):'bottom','sheetID':_0x3e232a,'range':_0x3949c2,'color':_0xf6ad93,'name':_0x2a1d5b,'selection':_0x541b9f,'left':_0x187c7b,'top':_0x877133,'width':_0x350b07,'height':_0x2f2d7c,'evented':!0x1,'zIndex':Et};return new ye(_0x2a1d5b,_0x5d7222);});_0x103097[_0x1e0f24(0x1ee)](_0x6b2437,mt),this['_cursors']=new Set(_0x6b2437);}['_removeCollabCursors'](){const _0x4e6340=_0x23fb60;var _0xaf83cf;(_0xaf83cf=this[_0x4e6340(0x1bd)])==null||_0xaf83cf[_0x4e6340(0x3d2)](_0x9a7d2b=>_0x9a7d2b[_0x4e6340(0x1f7)]());}['_getSheetObject'](){const _0x29a7f7=_0x23fb60;return G[_0x29a7f7(0x296)](this[_0x29a7f7(0x42a)]['unit'],this[_0x29a7f7(0x42a)]);}};Ie=bt([ce(0x1,a['Inject'](G[_0x23fb60(0x3ae)])),ce(0x2,a[_0x23fb60(0x203)](x)),ce(0x3,a[_0x23fb60(0x203)](a[_0x23fb60(0x33a)]))],Ie);function Tt(_0x57b5cb){const _0x22973b=_0x23fb60,_0x29870a=new Map();return _0x57b5cb[_0x22973b(0x3d2)](_0x35753a=>{const _0x423b7a=_0x22973b;if(_0x29870a[_0x423b7a(0x234)](_0x35753a[_0x423b7a(0x2f0)])){const _0x17b477=_0x29870a[_0x423b7a(0x300)](_0x35753a['selection']);_0x17b477[_0x423b7a(0x409)]+=',\x20'+_0x35753a['name'];}else _0x29870a[_0x423b7a(0x3b8)](_0x35753a[_0x423b7a(0x2f0)],_0x35753a);}),Array[_0x22973b(0x3f1)](_0x29870a['values']());}var E=function(){const _0x8cc496=_0x23fb60;return E=Object['assign']||function(_0x3ff653){const _0xa9f41a=_0x9264;for(var _0xc4ba32,_0x5126de=0x1,_0x59381a=arguments[_0xa9f41a(0x2c5)];_0x5126de<_0x59381a;_0x5126de++){_0xc4ba32=arguments[_0x5126de];for(var _0x480033 in _0xc4ba32)Object[_0xa9f41a(0x2a7)][_0xa9f41a(0x24a)][_0xa9f41a(0x2ef)](_0xc4ba32,_0x480033)&&(_0x3ff653[_0x480033]=_0xc4ba32[_0x480033]);}return _0x3ff653;},E[_0x8cc496(0x414)](this,arguments);},Rt=function(_0x5e07f4,_0x31917d){const _0x18015f=_0x23fb60;var _0x5d476d={};for(var _0x3ce47 in _0x5e07f4)Object[_0x18015f(0x2a7)]['hasOwnProperty'][_0x18015f(0x2ef)](_0x5e07f4,_0x3ce47)&&_0x31917d[_0x18015f(0x243)](_0x3ce47)<0x0&&(_0x5d476d[_0x3ce47]=_0x5e07f4[_0x3ce47]);if(_0x5e07f4!=null&&typeof Object[_0x18015f(0x352)]==_0x18015f(0x3fd)){for(var _0x2012d1=0x0,_0x3ce47=Object[_0x18015f(0x352)](_0x5e07f4);_0x2012d1<_0x3ce47[_0x18015f(0x2c5)];_0x2012d1++)_0x31917d[_0x18015f(0x243)](_0x3ce47[_0x2012d1])<0x0&&Object[_0x18015f(0x2a7)]['propertyIsEnumerable'][_0x18015f(0x2ef)](_0x5e07f4,_0x3ce47[_0x2012d1])&&(_0x5d476d[_0x3ce47[_0x2012d1]]=_0x5e07f4[_0x3ce47[_0x2012d1]]);}return _0x5d476d;},be=P['forwardRef'](function(_0x2a3d8b,_0x7ad2a9){const _0x2e937e=_0x23fb60;var _0x15baa1=_0x2a3d8b[_0x2e937e(0x1f0)],_0x4ea556=_0x2a3d8b['id'],_0x27bd3f=_0x2a3d8b[_0x2e937e(0x225)],_0x10f146=_0x2a3d8b[_0x2e937e(0x333)],_0x5f3e2c=Rt(_0x2a3d8b,[_0x2e937e(0x1f0),'id',_0x2e937e(0x225),_0x2e937e(0x333)]),_0x4d1e58='univerjs-icon\x20univerjs-icon-'[_0x2e937e(0x42c)](_0x4ea556,'\x20')['concat'](_0x27bd3f||'')[_0x2e937e(0x360)](),_0x16f08b=P[_0x2e937e(0x407)]('_'[_0x2e937e(0x42c)](Ut()));return Ae(_0x15baa1,''[_0x2e937e(0x42c)](_0x4ea556),{'defIds':_0x15baa1['defIds'],'idSuffix':_0x16f08b[_0x2e937e(0x247)]},E({'ref':_0x7ad2a9,'className':_0x4d1e58},_0x5f3e2c),_0x10f146);});function Ae(_0x3a7c43,_0x2a280f,_0x251060,_0x5cdd99,_0x4dcec1){const _0x2a07ba=_0x23fb60;return P[_0x2a07ba(0x32b)](_0x3a7c43['tag'],E(E({'key':_0x2a280f},Ot(_0x3a7c43,_0x251060,_0x4dcec1)),_0x5cdd99),(Dt(_0x3a7c43,_0x251060)[_0x2a07ba(0x2c6)]||[])[_0x2a07ba(0x3d1)](function(_0x31daef,_0x577fbc){const _0x1af931=_0x2a07ba;return Ae(_0x31daef,''[_0x1af931(0x42c)](_0x2a280f,'-')[_0x1af931(0x42c)](_0x3a7c43['tag'],'-')[_0x1af931(0x42c)](_0x577fbc),_0x251060,void 0x0,_0x4dcec1);}));}function Ot(_0xe3753e,_0x3820b8,_0x4b8eeb){const _0x1fb15b=_0x23fb60;var _0x153006=E({},_0xe3753e[_0x1fb15b(0x263)]);_0x4b8eeb!=null&&_0x4b8eeb[_0x1fb15b(0x2b8)]&&_0x153006[_0x1fb15b(0x398)]==='colorChannel1'&&(_0x153006['fill']=_0x4b8eeb['colorChannel1']),_0xe3753e['tag']===_0x1fb15b(0x2f5)&&_0x153006['id']&&(_0x153006['id']=_0x153006['id']+_0x3820b8[_0x1fb15b(0x24e)]),Object[_0x1fb15b(0x30c)](_0x153006)[_0x1fb15b(0x3d2)](function(_0x262bc0){const _0x4f1fb8=_0x1fb15b;var _0x22a1df=_0x262bc0[0x0],_0x195db5=_0x262bc0[0x1];_0x22a1df===_0x4f1fb8(0x2f5)&&typeof _0x195db5==_0x4f1fb8(0x1e9)&&(_0x153006[_0x22a1df]=_0x195db5[_0x4f1fb8(0x439)](/url\(#(.*)\)/,_0x4f1fb8(0x1e2)[_0x4f1fb8(0x42c)](_0x3820b8['idSuffix'],')')));});var _0x1a264f=_0x3820b8[_0x1fb15b(0x27b)];return!_0x1a264f||_0x1a264f[_0x1fb15b(0x2c5)]===0x0||(_0xe3753e[_0x1fb15b(0x34c)]==='use'&&_0x153006[_0x1fb15b(0x3a6)]&&(_0x153006['xlink:href']=_0x153006[_0x1fb15b(0x3a6)]+_0x3820b8[_0x1fb15b(0x24e)]),Object['entries'](_0x153006)[_0x1fb15b(0x3d2)](function(_0x3f30d7){const _0x33de7b=_0x1fb15b;var _0x387204=_0x3f30d7[0x0],_0x33368d=_0x3f30d7[0x1];typeof _0x33368d=='string'&&(_0x153006[_0x387204]=_0x33368d[_0x33de7b(0x439)](/url\(#(.*)\)/,_0x33de7b(0x1e2)[_0x33de7b(0x42c)](_0x3820b8['idSuffix'],')')));})),_0x153006;}function Dt(_0x42da8c,_0x59c4e0){const _0x3549a3=_0x23fb60;var _0x13491f,_0x9b9bcc=_0x59c4e0['defIds'];return!_0x9b9bcc||_0x9b9bcc[_0x3549a3(0x2c5)]===0x0?_0x42da8c:_0x42da8c['tag']===_0x3549a3(0x1c3)&&(!((_0x13491f=_0x42da8c[_0x3549a3(0x2c6)])===null||_0x13491f===void 0x0)&&_0x13491f['length'])?E(E({},_0x42da8c),{'children':_0x42da8c[_0x3549a3(0x2c6)]['map'](function(_0x4be83f){const _0x575f5f=_0x3549a3;return typeof _0x4be83f['attrs']['id']==_0x575f5f(0x1e9)&&_0x9b9bcc&&_0x9b9bcc[_0x575f5f(0x243)](_0x4be83f[_0x575f5f(0x263)]['id'])>-0x1?E(E({},_0x4be83f),{'attrs':E(E({},_0x4be83f['attrs']),{'id':_0x4be83f[_0x575f5f(0x263)]['id']+_0x59c4e0[_0x575f5f(0x24e)]})}):_0x4be83f;})}):_0x42da8c;}function Ut(){const _0x5e8091=_0x23fb60;return Math['random']()[_0x5e8091(0x2b4)](0x24)['substring'](0x2,0x8);}be[_0x23fb60(0x1ca)]=_0x23fb60(0x204);var Mt={'tag':'svg','attrs':{'fill':_0x23fb60(0x2e2),'viewBox':_0x23fb60(0x309),'width':_0x23fb60(0x30f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x23fb60(0x2a4),'attrs':{'stroke':_0x23fb60(0x264),'d':_0x23fb60(0x212),'strokeLinecap':_0x23fb60(0x317),'strokeLinejoin':_0x23fb60(0x317),'strokeWidth':1.2}}]},{'tag':_0x23fb60(0x1c3),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x23fb60(0x1be)},'children':[{'tag':_0x23fb60(0x2a4),'attrs':{'fill':_0x23fb60(0x437),'d':_0x23fb60(0x1f2)}}]}]}],'defIds':['off-line-single_clip0_910_343']},$e=P['forwardRef'](function(_0x2d810f,_0x4b99f7){const _0x4f1d33=_0x23fb60;return P[_0x4f1d33(0x32b)](be,Object[_0x4f1d33(0x3dd)]({},_0x2d810f,{'id':'off-line-single','ref':_0x4b99f7,'icon':Mt}));});$e[_0x23fb60(0x1ca)]=_0x23fb60(0x21c);var Pt={'tag':'svg','attrs':{'fill':_0x23fb60(0x2e2),'viewBox':_0x23fb60(0x435),'width':'1em','height':_0x23fb60(0x30f)},'children':[{'tag':'g','attrs':{'clipPath':_0x23fb60(0x2db)},'children':[{'tag':_0x23fb60(0x2a4),'attrs':{'stroke':_0x23fb60(0x264),'d':_0x23fb60(0x2dc),'strokeLinecap':_0x23fb60(0x317),'strokeLinejoin':_0x23fb60(0x317),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x23fb60(0x3d9),'attrs':{'id':_0x23fb60(0x207)},'children':[{'tag':_0x23fb60(0x2a4),'attrs':{'fill':_0x23fb60(0x437),'d':'M0\x200H16V16H0z','transform':_0x23fb60(0x1de)}}]}]}],'defIds':['on-line-single_clip0_910_349']},xe=P[_0x23fb60(0x2f9)](function(_0x4dc57e,_0x357c73){const _0x5b8f30=_0x23fb60;return P['createElement'](be,Object[_0x5b8f30(0x3dd)]({},_0x4dc57e,{'id':'on-line-single','ref':_0x357c73,'icon':Pt}));});xe[_0x23fb60(0x1ca)]=_0x23fb60(0x354);const Nt=_0x23fb60(0x1d5),wt=_0x23fb60(0x1f1),Lt=_0x23fb60(0x3a3),yt='univer-online',At=_0x23fb60(0x3cb),H={'onlineStatusIcon':Nt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':yt,'offline':At};function $t(_0x4880ef){const _0x45c323=_0x23fb60;switch(_0x4880ef){case u[_0x45c323(0x2bb)][_0x45c323(0x35b)]:return _0x45c323(0x422);case u[_0x45c323(0x2bb)]['CONFLICT']:return'collabStatus.conflict';case u[_0x45c323(0x2bb)][_0x45c323(0x3b7)]:return _0x45c323(0x381);case u['CollaborationStatus'][_0x45c323(0x32e)]:return _0x45c323(0x340);case u['CollaborationStatus']['AWAITING']:case u[_0x45c323(0x2bb)][_0x45c323(0x216)]:return _0x45c323(0x3ca);case u[_0x45c323(0x2bb)][_0x45c323(0x27a)]:case u['CollaborationStatus'][_0x45c323(0x39e)]:return _0x45c323(0x41b);}}function je(_0xf5e352){const _0x1781bf=_0x23fb60,{status$:_0x8c018d}=_0xf5e352,_0xb18987=R['useObservable'](_0x8c018d,u['CollaborationStatus'][_0x1781bf(0x32e)]),_0x3726cd=R['useDependency'](a[_0x1781bf(0x328)]),_0x532372=R[_0x1781bf(0x369)](u[_0x1781bf(0x387)]),_0x30e538=_0xb18987!==u[_0x1781bf(0x2bb)][_0x1781bf(0x35b)],_0x43637c=_0x3726cd['t']($t(_0xb18987)),_0x5d6792=T[_0x1781bf(0x219)](H['onlineStatus'],{[H[_0x1781bf(0x2fd)]]:_0x30e538,[H[_0x1781bf(0x210)]]:!_0x30e538}),_0x1a0131=_0x30e538?w[_0x1781bf(0x2ff)](xe,{}):w[_0x1781bf(0x2ff)]($e,{}),_0x468c23=P[_0x1781bf(0x2e4)](()=>{const _0x1cd9e7=_0x1781bf;_0x30e538||_0x532372[_0x1cd9e7(0x25b)]();},[_0x30e538,_0x532372]);function _0x17a90e(){const _0x316646=_0x1781bf;return w['jsxs'](_0x316646(0x2af),{'className':T[_0x316646(0x219)](_0x5d6792,'univer-flex\x20univer-items-center'),'onClick':_0x468c23,'children':[w[_0x316646(0x2ff)](_0x316646(0x2af),{'className':H[_0x316646(0x265)],'children':_0x1a0131}),w[_0x316646(0x2ff)](_0x316646(0x2af),{'className':H['onlineStatusTitle'],'children':_0x43637c})]});}return _0x30e538?_0x17a90e():w[_0x1781bf(0x2ff)](T[_0x1781bf(0x3e0)],{'title':_0x3726cd['t'](_0x1781bf(0x39f)),'children':_0x17a90e()});}var xt=Object['getOwnPropertyDescriptor'],jt=(_0x2e098d,_0x5f4daa,_0x3f56be,_0x4f8678)=>{const _0x5888dc=_0x23fb60;for(var _0x3d0051=_0x4f8678>0x1?void 0x0:_0x4f8678?xt(_0x5f4daa,_0x3f56be):_0x5f4daa,_0x4d59c1=_0x2e098d[_0x5888dc(0x2c5)]-0x1,_0x443f35;_0x4d59c1>=0x0;_0x4d59c1--)(_0x443f35=_0x2e098d[_0x4d59c1])&&(_0x3d0051=_0x443f35(_0x3d0051)||_0x3d0051);return _0x3d0051;},V=(_0x3632ab,_0x59ad4b)=>(_0x39ed63,_0x420850)=>_0x59ad4b(_0x39ed63,_0x420850,_0x3632ab);exports[_0x23fb60(0x36c)]=class extends a[_0x23fb60(0x325)]{constructor(_0x141d65,_0x14db06,_0x12f7a3,_0x120d6a){const _0x400ff3=_0x23fb60;super(),h(this,_0x400ff3(0x357),new d[(_0x400ff3(0x273))](u[_0x400ff3(0x2bb)][_0x400ff3(0x32e)])),(this[_0x400ff3(0x208)]=_0x141d65,this[_0x400ff3(0x348)]=_0x14db06,this['_collaborationController']=_0x12f7a3,this['_uiPartsService']=_0x120d6a,this['_initStatusComponent'](),this[_0x400ff3(0x22b)]());}[_0x23fb60(0x22b)](){const _0x1c964b=_0x23fb60;this[_0x1c964b(0x384)](this['_univerInstanceService']['focused$'][_0x1c964b(0x237)](d[_0x1c964b(0x3de)](()=>{const _0x29e01b=_0x1c964b,_0x2208dd=this[_0x29e01b(0x208)][_0x29e01b(0x2ba)]();return _0x2208dd?this[_0x29e01b(0x3d7)]['getCollabEntity$'](_0x2208dd[_0x29e01b(0x236)]()):d['of'](null);}),d[_0x1c964b(0x3de)](_0x163186=>_0x163186?_0x163186[_0x1c964b(0x38f)]:d['of'](u[_0x1c964b(0x2bb)][_0x1c964b(0x32e)])))[_0x1c964b(0x285)](_0x214a00=>{const _0x2598bb=_0x1c964b;this[_0x2598bb(0x357)][_0x2598bb(0x1da)](_0x214a00);}));}[_0x23fb60(0x36f)](){const _0x24a31c=_0x23fb60;this[_0x24a31c(0x384)](this['_uiPartsService'][_0x24a31c(0x25c)](R['BuiltInUIPart']['HEADER_MENU'],()=>R['connectInjector'](kt({'status$':this[_0x24a31c(0x357)][_0x24a31c(0x337)]()}),this['_injector'])));}},exports[_0x23fb60(0x36c)]=jt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),V(0x2,a[_0x23fb60(0x203)](u[_0x23fb60(0x314)])),V(0x3,R[_0x23fb60(0x3ce)])],exports[_0x23fb60(0x36c)]);function kt(_0x2777bb){const {status$:_0x8a1fb5}=_0x2777bb;return function(){return w['jsx'](je,{'status$':_0x8a1fb5});};}var Bt=Object['getOwnPropertyDescriptor'],Ht=(_0x3402e3,_0x1c38a0,_0x1e5838,_0x557ca5)=>{for(var _0x236a61=_0x557ca5>0x1?void 0x0:_0x557ca5?Bt(_0x1c38a0,_0x1e5838):_0x1c38a0,_0xeb165d=_0x3402e3['length']-0x1,_0x1595b4;_0xeb165d>=0x0;_0xeb165d--)(_0x1595b4=_0x3402e3[_0xeb165d])&&(_0x236a61=_0x1595b4(_0x236a61)||_0x236a61);return _0x236a61;},A=(_0x4621a9,_0x2f1912)=>(_0x2d2e28,_0x32a55a)=>_0x2f1912(_0x2d2e28,_0x32a55a,_0x4621a9);let z=class extends a[_0x23fb60(0x325)]{constructor(_0x178cb2,_0x34792b,_0x46ccd9,_0x97d0e4,_0x1532e5,_0x38c63d){const _0x12fb5c=_0x23fb60;super(),this[_0x12fb5c(0x2a0)]=_0x178cb2,this[_0x12fb5c(0x399)]=_0x34792b,this['_collaborationUIEventService']=_0x46ccd9,this[_0x12fb5c(0x42f)]=_0x97d0e4,this[_0x12fb5c(0x2e8)]=_0x1532e5,this[_0x12fb5c(0x413)]=_0x38c63d,this[_0x12fb5c(0x2fc)](),this[_0x12fb5c(0x3e8)]();}['_setupBeforeClosingHandler'](){const _0x582647=_0x23fb60;this[_0x582647(0x384)](this[_0x582647(0x2a0)][_0x582647(0x3fc)](()=>{const _0x112ca6=_0x582647;if(this['_localCacheService'][_0x112ca6(0x2cd)][_0x112ca6(0x376)])return this['_localeService']['t'](_0x112ca6(0x349));}));}[_0x23fb60(0x3e8)](){const _0x455165=_0x23fb60;this[_0x455165(0x384)](this[_0x455165(0x2c4)]['event$'][_0x455165(0x285)](_0x1aa39c=>{const _0xfa20ee=_0x455165;_0x1aa39c['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0xfa20ee(0x42f)][_0xfa20ee(0x24f)]({'type':T[_0xfa20ee(0x29c)][_0xfa20ee(0x3b1)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x1aa39c['id']===u[_0xfa20ee(0x2f7)][_0xfa20ee(0x40a)]&&this['_messageService'][_0xfa20ee(0x24f)]({'type':T[_0xfa20ee(0x29c)][_0xfa20ee(0x3b1)],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x1aa39c['id']===u[_0xfa20ee(0x2f7)]['PERMISSION_DENIED']&&this[_0xfa20ee(0x2e8)][_0xfa20ee(0x24f)]({'title':this[_0xfa20ee(0x413)]['t'](_0xfa20ee(0x1c0)),'content':this['_localeService']['t']('permission.content'),'type':_0xfa20ee(0x311),'duration':0x0}),_0x1aa39c['id']===u['CollaborationUIEventId']['CONFLICT']&&this[_0xfa20ee(0x42f)][_0xfa20ee(0x24f)]({'type':T['MessageType'][_0xfa20ee(0x3be)],'content':this[_0xfa20ee(0x413)]['t'](_0xfa20ee(0x321))+'('+_0x1aa39c[_0xfa20ee(0x2d8)]+')'}),_0x1aa39c['id']===u[_0xfa20ee(0x2f7)][_0xfa20ee(0x1c8)]&&this[_0xfa20ee(0x42f)]['show']({'type':T[_0xfa20ee(0x29c)]['Warning'],'content':this[_0xfa20ee(0x413)]['t'](_0x1aa39c[_0xfa20ee(0x2d8)]||'')}),_0x1aa39c['id']===u[_0xfa20ee(0x2f7)][_0xfa20ee(0x252)]&&this[_0xfa20ee(0x42f)][_0xfa20ee(0x24f)]({'type':T[_0xfa20ee(0x29c)]['Warning'],'content':this[_0xfa20ee(0x413)]['t'](_0xfa20ee(0x400))}),_0x1aa39c['id']===u[_0xfa20ee(0x2f7)][_0xfa20ee(0x3c0)]&&this[_0xfa20ee(0x42f)][_0xfa20ee(0x24f)]({'type':T[_0xfa20ee(0x29c)]['Error'],'content':this['_localeService']['t'](_0xfa20ee(0x283))}),_0x1aa39c['id']===u['CollaborationUIEventId'][_0xfa20ee(0x1fc)]&&this[_0xfa20ee(0x42f)][_0xfa20ee(0x24f)]({'type':T[_0xfa20ee(0x29c)][_0xfa20ee(0x3be)],'content':this[_0xfa20ee(0x413)]['t'](_0xfa20ee(0x350))});}));}};z=Ht([A(0x0,R[_0x23fb60(0x3a7)]),A(0x1,u[_0x23fb60(0x2ea)]),A(0x2,a[_0x23fb60(0x203)](u[_0x23fb60(0x1f8)])),A(0x3,R[_0x23fb60(0x315)]),A(0x4,R[_0x23fb60(0x33b)]),A(0x5,a[_0x23fb60(0x203)](a['LocaleService']))],z);const Wt=_0x23fb60(0x313),Me={},Ee=a[_0x23fb60(0x32c)](_0x23fb60(0x23c));var Ft=Object[_0x23fb60(0x3f3)],Yt=(_0x5ebaee,_0x1816ae,_0x5b9c98,_0x3826bc)=>{const _0x25f7f9=_0x23fb60;for(var _0xb96773=_0x3826bc>0x1?void 0x0:_0x3826bc?Ft(_0x1816ae,_0x5b9c98):_0x1816ae,_0x104282=_0x5ebaee[_0x25f7f9(0x2c5)]-0x1,_0x3e8283;_0x104282>=0x0;_0x104282--)(_0x3e8283=_0x5ebaee[_0x104282])&&(_0xb96773=_0x3e8283(_0xb96773)||_0xb96773);return _0xb96773;},W=(_0x16e1c9,_0xe9a5a1)=>(_0x3f88f2,_0x294bda)=>_0xe9a5a1(_0x3f88f2,_0x294bda,_0x16e1c9);exports['CollaborationDataLoaderController']=class extends a[_0x23fb60(0x2e3)]{constructor(_0x715e9c,_0x20dfcd,_0x5ae400,_0xf9c8fb,_0x170490){const _0x5d170b=_0x23fb60;super(),this['_urlService']=_0x715e9c,this[_0x5d170b(0x2f3)]=_0x20dfcd,this['_commandService']=_0x5ae400,this[_0x5d170b(0x3df)]=_0xf9c8fb,_0x170490?_0x170490==null||_0x170490[_0x5d170b(0x31f)]()['then'](()=>this['_init']()):(this[_0x5d170b(0x2f3)][_0x5d170b(0x267)](_0x5d170b(0x2d4),_0x5d170b(0x1fa)),this['_init']());}async[_0x23fb60(0x238)](){const _0x13db4d=_0x23fb60,_0x139200=this[_0x13db4d(0x1f5)][_0x13db4d(0x2bf)](_0x13db4d(0x408)),_0xf400c3=this[_0x13db4d(0x1f5)][_0x13db4d(0x2bf)](_0x13db4d(0x3cc)),_0x23380e=this[_0x13db4d(0x1f5)]['getParam'](_0x13db4d(0x2bc));if(!_0x139200||!_0xf400c3){this[_0x13db4d(0x2f3)][_0x13db4d(0x267)](_0x13db4d(0x2d4),_0x13db4d(0x425));return;}const _0x4eeb5f=await this['_dataLoaderService'][_0x13db4d(0x3c6)](_0x139200,Number(_0xf400c3),_0x23380e);_0x4eeb5f&&_0x4eeb5f instanceof a['Workbook']&&this[_0x13db4d(0x1fe)](_0x4eeb5f);}async['_setupSubUnitSync'](_0x47736c){const _0x2cac82=_0x23fb60;await this[_0x2cac82(0x299)](_0x47736c),_0x47736c[_0x2cac82(0x257)]['pipe'](d['takeUntil'](this[_0x2cac82(0x220)]))[_0x2cac82(0x285)](_0x1edc61=>{const _0x2cc2b5=_0x2cac82;_0x1edc61&&this[_0x2cc2b5(0x423)](_0x1edc61);}),this[_0x2cac82(0x1f5)]['urlChange$']['pipe'](d[_0x2cac82(0x2de)](this[_0x2cac82(0x220)]))[_0x2cac82(0x285)](()=>this[_0x2cac82(0x299)](_0x47736c));}['_updateURLWithCurrentState'](_0x38b62a,_0xdf62b8=!0x1){const _0x15e830=_0x23fb60,_0x50e3da=this[_0x15e830(0x1f5)]['getParam']('subunit');_0x38b62a[_0x15e830(0x2ec)]()!==_0x50e3da&&this[_0x15e830(0x1f5)][_0x15e830(0x202)](_0x15e830(0x2bc),_0x38b62a['getSheetId'](),_0xdf62b8);}async[_0x23fb60(0x299)](_0x3cf229){const _0x435b67=_0x23fb60;var _0xa44871;const _0x2041e8=this['_urlService'][_0x435b67(0x2bf)](_0x435b67(0x2bc));if(!_0x2041e8||!_0x3cf229[_0x435b67(0x33f)](_0x2041e8)){const _0x278ae2=_0x3cf229[_0x435b67(0x417)]()[0x0],_0x5cf7e9=_0x3cf229['getSheetBySheetId'](_0x278ae2);if(!_0x5cf7e9)return;this['_updateURLWithCurrentState'](_0x5cf7e9,!0x0),await this[_0x435b67(0x3f0)][_0x435b67(0x3f4)](I[_0x435b67(0x41e)]['id'],{'unitId':_0x3cf229[_0x435b67(0x236)](),'subUnitId':_0x278ae2});return;}((_0xa44871=_0x3cf229[_0x435b67(0x3bb)]())==null?void 0x0:_0xa44871[_0x435b67(0x2ec)]())!==_0x2041e8&&await this['_commandService'][_0x435b67(0x3f4)](I[_0x435b67(0x41e)]['id'],{'unitId':_0x3cf229[_0x435b67(0x236)](),'subUnitId':_0x2041e8});}},exports[_0x23fb60(0x2e1)]=Yt([W(0x0,Ee),W(0x1,a[_0x23fb60(0x426)]),W(0x2,a['ICommandService']),W(0x3,a['Inject'](u['DataLoaderService'])),W(0x4,a['Optional'](Ke[_0x23fb60(0x368)]))],exports[_0x23fb60(0x2e1)]);var Xt=Object[_0x23fb60(0x3f3)],Vt=(_0x556727,_0x3ced85,_0x3c660a,_0x257b56)=>{const _0xc06f24=_0x23fb60;for(var _0x824c3b=_0x257b56>0x1?void 0x0:_0x257b56?Xt(_0x3ced85,_0x3c660a):_0x3ced85,_0x17b349=_0x556727[_0xc06f24(0x2c5)]-0x1,_0x2ac83e;_0x17b349>=0x0;_0x17b349--)(_0x2ac83e=_0x556727[_0x17b349])&&(_0x824c3b=_0x2ac83e(_0x824c3b)||_0x824c3b);return _0x824c3b;},le=(_0xf830ba,_0x407781)=>(_0x501adf,_0x57db5e)=>_0x407781(_0x501adf,_0x57db5e,_0xf830ba);let J=class{constructor(_0x5b1d6d,_0x1b7e80,_0x402c71){const _0x2707e2=_0x23fb60;this[_0x2707e2(0x348)]=_0x5b1d6d,this[_0x2707e2(0x24c)]=_0x1b7e80,this[_0x2707e2(0x2f1)]=_0x402c71;}[_0x23fb60(0x356)](_0xa38737){const _0x9934cf=_0x23fb60;this[_0x9934cf(0x30a)](_0xa38737),this[_0x9934cf(0x43e)](_0xa38737);}['transformRemoteChangeset'](_0x1967c0){const _0x3f1cf3=_0x23fb60,{unitID:_0x5b68c1}=_0x1967c0,_0x4f6091=this[_0x3f1cf3(0x2f1)]['getRenderById'](_0x5b68c1)[_0x3f1cf3(0x335)](b['DocIMEInputManagerService']),{redoCache:_0x55e726}=_0x4f6091[_0x3f1cf3(0x35c)]();if(_0x55e726[_0x3f1cf3(0x2c5)]===0x0)return _0x1967c0;let _0x23daf3=a[_0x3f1cf3(0x1df)][_0x3f1cf3(0x20b)](_0x1967c0['mutations'][0x0]);for(let _0x31e637=0x0;_0x31e637<_0x55e726[_0x3f1cf3(0x2c5)];_0x31e637++){const _0xbf09c6={'id':'doc.mutation.rich-text-editing','params':{..._0x55e726[_0x31e637]}},_0x13f221=this['_transformService']['transformMutation'](_0x23daf3,_0xbf09c6,!0x1);if(m[_0x3f1cf3(0x346)](_0x13f221))throw _0x13f221[_0x3f1cf3(0x311)];_0x23daf3=_0x13f221['m1Prime'];}return{...a[_0x3f1cf3(0x1df)]['deepClone'](_0x1967c0),'mutations':[_0x23daf3]};}[_0x23fb60(0x30a)](_0xba926){const _0x43bdf3=_0x23fb60,{unitID:_0x3f24c5}=_0xba926,_0xd602c7=this['_renderManagerService'][_0x43bdf3(0x1e8)](_0x3f24c5)[_0x43bdf3(0x335)](b['DocIMEInputManagerService']),{undoCache:_0xc533be,redoCache:_0x14a445}=_0xd602c7['getUndoRedoMutationParamsCache']();if(_0xc533be[_0x43bdf3(0x2c5)]===0x0||_0x14a445[_0x43bdf3(0x2c5)]===0x0)return;const _0x168e1b=[],_0x231b24=[];let _0x1bee50=a['Tools'][_0x43bdf3(0x20b)](_0xba926[_0x43bdf3(0x2c8)][0x0]),_0x144548=a['Tools'][_0x43bdf3(0x20b)](_0xba926[_0x43bdf3(0x2c8)][0x0]);for(let _0x346a47=_0xc533be['length']-0x1;_0x346a47>=0x0;_0x346a47--){const _0x5f5bab={'id':_0x43bdf3(0x397),'params':{..._0xc533be[_0x346a47]}},_0x495e7b={'id':'doc.mutation.rich-text-editing','params':{..._0x14a445[_0x346a47]}},_0x373739=this['_transformService']['transformMutation'](_0x1bee50,_0x5f5bab,!0x1),_0xfa206b=this[_0x43bdf3(0x24c)][_0x43bdf3(0x1cc)](_0x144548,_0x495e7b,!0x1);if(m[_0x43bdf3(0x346)](_0x373739))throw _0x373739['error'];if(m[_0x43bdf3(0x346)](_0xfa206b))throw _0xfa206b[_0x43bdf3(0x311)];_0x168e1b[_0x43bdf3(0x294)](_0x373739[_0x43bdf3(0x312)]['params']),_0x231b24[_0x43bdf3(0x294)](_0xfa206b[_0x43bdf3(0x312)]['params']),_0x1bee50=_0x373739[_0x43bdf3(0x256)],_0x144548=_0xfa206b['m1Prime'];}_0xd602c7[_0x43bdf3(0x22c)]({'undoCache':_0x168e1b,'redoCache':_0x231b24});}[_0x23fb60(0x43e)](_0x1ad3a0){const _0x449e5e=_0x23fb60,{unitID:_0xd6111c}=_0x1ad3a0,_0x2d6f1c=this[_0x449e5e(0x2f1)][_0x449e5e(0x1e8)](_0xd6111c)[_0x449e5e(0x335)](b[_0x449e5e(0x2b6)]),_0x33d2c7=_0x2d6f1c[_0x449e5e(0x3c7)]();if(_0x33d2c7==null)return;const _0x525fde=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1ad3a0[_0x449e5e(0x37c)],'actions':null,'textRanges':[_0x33d2c7]}}],_0x9a1fd9=this[_0x449e5e(0x24c)][_0x449e5e(0x302)](_0x1ad3a0,_0x525fde);if(!m[_0x449e5e(0x26c)](_0x9a1fd9))throw _0x9a1fd9[_0x449e5e(0x311)];const _0x465473=_0x9a1fd9[_0x449e5e(0x312)][0x0]['params'][_0x449e5e(0x38a)];Array['isArray'](_0x465473)&&_0x465473['length']&&_0x2d6f1c[_0x449e5e(0x259)](_0x465473[0x0]);}};J=Vt([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x23fb60(0x22e)]),le(0x2,p['IRenderManagerService'])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x57e869,_0x5d8e10,_0x16d6db,_0x26b45b)=>{const _0x4040cd=_0x23fb60;for(var _0x4bf949=_0x26b45b>0x1?void 0x0:_0x26b45b?Gt(_0x5d8e10,_0x16d6db):_0x5d8e10,_0x458f46=_0x57e869[_0x4040cd(0x2c5)]-0x1,_0x1afe67;_0x458f46>=0x0;_0x458f46--)(_0x1afe67=_0x57e869[_0x458f46])&&(_0x4bf949=_0x1afe67(_0x4bf949)||_0x4bf949);return _0x4bf949;},he=(_0x2a0f45,_0x45ed62)=>(_0x173f66,_0x4f52fc)=>_0x45ed62(_0x173f66,_0x4f52fc,_0x2a0f45);let Z=class{constructor(_0x5bbe31,_0x237f21,_0x56bdad){const _0x3f01fb=_0x23fb60;this[_0x3f01fb(0x348)]=_0x5bbe31,this[_0x3f01fb(0x24c)]=_0x237f21,this[_0x3f01fb(0x419)]=_0x56bdad;}[_0x23fb60(0x274)](_0x2d09a6){const _0x59faed=_0x23fb60;this[_0x59faed(0x2f2)](_0x2d09a6);}[_0x23fb60(0x290)](_0x3b21f6){const _0x19a9aa=_0x23fb60,{unitID:_0x400d80}=_0x3b21f6,{collaboration:_0x153bf7}=this['_docStateChangeManagerService'][_0x19a9aa(0x2c2)](_0x400d80);if(_0x153bf7['length']===0x0)return _0x3b21f6;let _0x53274e=a[_0x19a9aa(0x1df)]['deepClone'](_0x3b21f6[_0x19a9aa(0x2c8)][0x0]);for(let _0x3af50b=0x0;_0x3af50b<_0x153bf7[_0x19a9aa(0x2c5)];_0x3af50b++){const _0x2ffe24={'id':_0x19a9aa(0x397),'params':{'unitId':_0x153bf7[_0x3af50b][_0x19a9aa(0x206)],..._0x153bf7[_0x3af50b][_0x19a9aa(0x338)]}},_0x218f59=this[_0x19a9aa(0x24c)]['transformMutation'](_0x53274e,_0x2ffe24,!0x1);if(m['isTransformMutationFailure'](_0x218f59))throw _0x218f59[_0x19a9aa(0x311)];_0x53274e=_0x218f59['m1Prime'];}return{...a[_0x19a9aa(0x1df)][_0x19a9aa(0x20b)](_0x3b21f6),'mutations':[_0x53274e]};}[_0x23fb60(0x2f2)](_0xf3d8e4){const _0x1dc712=_0x23fb60,{unitID:_0x470877}=_0xf3d8e4,{history:_0x34130a,collaboration:_0x259ff2}=this['_docStateChangeManagerService'][_0x1dc712(0x2c2)](_0x470877);if(_0x34130a[_0x1dc712(0x2c5)]===0x0&&_0x259ff2[_0x1dc712(0x2c5)]===0x0)return;const _0x53bd97=[],_0x32685e=[];let _0x309be4=a[_0x1dc712(0x1df)]['deepClone'](_0xf3d8e4['mutations'][0x0]),_0xe5dc19=a['Tools'][_0x1dc712(0x20b)](_0xf3d8e4[_0x1dc712(0x2c8)][0x0]);for(let _0x399587=_0x34130a['length']-0x1;_0x399587>=0x0;_0x399587--){const _0x5df52c={'id':_0x1dc712(0x397),'params':{'unitId':_0x34130a[_0x399587][_0x1dc712(0x206)],..._0x34130a[_0x399587]['undoState']}},_0x2f278a={'id':_0x1dc712(0x397),'params':{'unitId':_0x34130a[_0x399587][_0x1dc712(0x206)],..._0x34130a[_0x399587][_0x1dc712(0x338)]}},_0x40a818=this[_0x1dc712(0x24c)][_0x1dc712(0x1cc)](_0x309be4,_0x5df52c,!0x1),_0x19b313=this[_0x1dc712(0x24c)][_0x1dc712(0x1cc)](_0xe5dc19,_0x2f278a,!0x1);if(m[_0x1dc712(0x346)](_0x40a818))throw _0x40a818[_0x1dc712(0x311)];if(m[_0x1dc712(0x346)](_0x19b313))throw _0x19b313[_0x1dc712(0x311)];_0x53bd97['unshift']({..._0x34130a[_0x399587],'undoState':_0x40a818[_0x1dc712(0x312)][_0x1dc712(0x2a5)],'redoState':_0x19b313[_0x1dc712(0x312)][_0x1dc712(0x2a5)]}),_0x309be4=_0x40a818[_0x1dc712(0x256)],_0xe5dc19=_0x19b313[_0x1dc712(0x256)];}_0x309be4=a['Tools'][_0x1dc712(0x20b)](_0xf3d8e4[_0x1dc712(0x2c8)][0x0]),_0xe5dc19=a[_0x1dc712(0x1df)][_0x1dc712(0x20b)](_0xf3d8e4[_0x1dc712(0x2c8)][0x0]);for(let _0x3e48bc=_0x259ff2[_0x1dc712(0x2c5)]-0x1;_0x3e48bc>=0x0;_0x3e48bc--){const _0x539059={'id':_0x1dc712(0x397),'params':{'unitId':_0x259ff2[_0x3e48bc][_0x1dc712(0x206)],..._0x259ff2[_0x3e48bc][_0x1dc712(0x424)]}},_0x10ad09={'id':_0x1dc712(0x397),'params':{'unitId':_0x259ff2[_0x3e48bc]['unitId'],..._0x259ff2[_0x3e48bc][_0x1dc712(0x338)]}},_0x22faeb=this[_0x1dc712(0x24c)]['transformMutation'](_0x309be4,_0x539059,!0x1),_0x5a5988=this[_0x1dc712(0x24c)][_0x1dc712(0x1cc)](_0xe5dc19,_0x10ad09,!0x1);if(m[_0x1dc712(0x346)](_0x22faeb))throw _0x22faeb[_0x1dc712(0x311)];if(m[_0x1dc712(0x346)](_0x5a5988))throw _0x5a5988[_0x1dc712(0x311)];_0x32685e[_0x1dc712(0x294)]({..._0x259ff2[_0x3e48bc],'undoState':_0x22faeb['m2Prime'][_0x1dc712(0x2a5)],'redoState':_0x5a5988[_0x1dc712(0x312)][_0x1dc712(0x2a5)]}),_0x309be4=_0x22faeb['m1Prime'],_0xe5dc19=_0x5a5988[_0x1dc712(0x256)];}this[_0x1dc712(0x419)]['setStateCache'](_0x470877,{'history':_0x53bd97,'collaboration':_0x32685e});}};Z=qt([he(0x0,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),he(0x1,m[_0x23fb60(0x22e)]),he(0x2,a[_0x23fb60(0x203)](b[_0x23fb60(0x1ff)]))],Z);var Kt=Object[_0x23fb60(0x3f3)],zt=(_0x11d9c0,_0x2187ba,_0x57dfd1,_0x4024bc)=>{const _0x15f6ca=_0x23fb60;for(var _0x4bba10=_0x4024bc>0x1?void 0x0:_0x4024bc?Kt(_0x2187ba,_0x57dfd1):_0x2187ba,_0x593646=_0x11d9c0[_0x15f6ca(0x2c5)]-0x1,_0x2cf1aa;_0x593646>=0x0;_0x593646--)(_0x2cf1aa=_0x11d9c0[_0x593646])&&(_0x4bba10=_0x2cf1aa(_0x4bba10)||_0x4bba10);return _0x4bba10;},Pe=(_0x422659,_0x1fc043)=>(_0x1ee3a5,_0x3657e7)=>_0x1fc043(_0x1ee3a5,_0x3657e7,_0x422659);function _0x9264(_0x1827cd,_0x307b59){const _0x3aac70=_0x3aac();return _0x9264=function(_0x926406,_0x27b302){_0x926406=_0x926406-0x1bc;let _0x162b10=_0x3aac70[_0x926406];return _0x162b10;},_0x9264(_0x1827cd,_0x307b59);}let Q=class{constructor(_0x1434c9,_0x500b44){const _0x1be5ad=_0x23fb60;this[_0x1be5ad(0x348)]=_0x1434c9,this[_0x1be5ad(0x24c)]=_0x500b44;}['transformSelections'](_0x4dda6f){const _0x2d63fa=_0x23fb60;var _0x40947c;const _0x4ddf2a=this[_0x2d63fa(0x348)]['get'](Y['DocSelectionManagerService']),_0x406e0=(_0x40947c=_0x4ddf2a[_0x2d63fa(0x1f6)]())!=null?_0x40947c:[];if(_0x406e0[_0x2d63fa(0x2c5)]===0x0)return;const _0x3c2a82=_0x4dda6f[_0x2d63fa(0x37c)],_0x81e2=[{'id':_0x2d63fa(0x397),'params':{'unitId':_0x3c2a82,'actions':null,'textRanges':_0x406e0}}],_0x4e34b9=this[_0x2d63fa(0x24c)]['transformMutationsWithChangeset'](_0x4dda6f,_0x81e2);if(!m[_0x2d63fa(0x26c)](_0x4e34b9))throw _0x4e34b9[_0x2d63fa(0x311)];const _0x224da8=_0x4e34b9[_0x2d63fa(0x312)][0x0][_0x2d63fa(0x2a5)][_0x2d63fa(0x38a)];Array[_0x2d63fa(0x3b3)](_0x224da8)&&_0x224da8[_0x2d63fa(0x2c5)]&&_0x4ddf2a[_0x2d63fa(0x2c9)](_0x224da8,{'unitId':_0x3c2a82,'subUnitId':_0x3c2a82},!0x1);}};Q=zt([Pe(0x0,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),Pe(0x1,m[_0x23fb60(0x22e)])],Q);function _0x3aac(){const _0x4d9971=['isTransformMutationFailure','beginPath','_injector','collaboration-client.offline-data-not-saved','collabCursorState$','SessionStatus','tag','WebBrowserSingleActiveUnitService','subUnitId','@univerjs/network','session.collaboration-timeout','YUUMI_UNABLE_LOAD_URL','getOwnPropertySymbols','_refRangeService','OnLineSingle','disableLocalCache','transformIMECache','_status$','origin','@univerjs/docs-ui','LICENSE_DISTRO_REJECTED','OFFLINE','getUndoRedoMutationParamsCache','entityInit$','DOC_RANGE_TYPE','192wXnRjJ','trim','closePath','values','InsertRangeMoveRightCommandId','cursorInfo','UPDATE_CURSOR','toStringTag','_getSheetObject','IRemoteInstanceService','useDependency','handleDeleteRangeMoveUp','2671446bYgxbx','DesktopCollaborationStatusDisplayController','resize','toRgbString','_initStatusComponent','isActive','UNDEFINED','CollaborationSocketService','_roomMembers$','arc','MemberService','size','Shape','handleIRemoveRow','disposeUnit','UniverCollaborationClientPlugin','stringify','unitID','_updateLocalCursor','rxjs','_saveCache','ONLINE','collabStatus.fetchMiss','unsubscribe','3343110qzmELx','disposeWithMe','getValue','@univerjs-pro/collaboration-client','CollaborationSessionService','handleMoveRange','ALREADY_EXISTS','textRanges','color','_handleJoinEvent','setShapeProps','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','status$','_ensureSubject','@univerjs/core','LICENSE_MAX_UNITS_EXCEEDED','APPLY_PERMISSION_DENIED','DisposableCollection','_scheduleClearOtherTimer','COLORS','doc.mutation.rich-text-editing','fill','_localCacheService','IConfigService','memberID','syncEditingCollabCursor','NO_OTHER_CLIENTS_EDITING','PENDING','collab-client.tooltip.reconnect','_backgroundColor','getTypeOfUnitDisposed$','init','univer-online-status','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','RevisionService','xlink:href','IBeforeCloseService','fillText','CommandType','UniverInstanceType','min','_configService','registerRefRange','SheetSkeletonManagerService','docStateChange$','_updateCollabCursors','Warning','_syncEditingCollabCursorService','isArray','_handleHeartbeatEvent','APPLY_REVISION_CONFILICT','flatMap','FETCH_MISS','set','BrowserCollaborationSocketService','_hovered','getActiveSheet','contains','_id','Error','currentTheme$','SOCKET_FAILED','onRendered','_scene','NOT_FOUND','_instanceService','bottom','loadUnit','getActiveRange','red300','3184377QPQpod','collabStatus.syncing','univer-offline','type','_docSyncEditingCollabCursorService','IUIPartsService','deserializeRangeWithSheet','_handleHover','map','forEach','RegularPolygon','@univerjs/engine-render','_docTransformSelectionsService','_registerRenderDependencies','_collaborationController','ticket','clipPath','291265OpACCN','black','invokeId','assign','switchMap','_dataLoaderService','Tooltip','_docSkeletonManagerService','height','DeleteRangeMoveLeftCommandId','_cachedData','roomMembers','complete','_themeService','_initEvent','application/json','CHANGESET_REVISION_CONFILICT','_assignedColors','1845580yryzvc','source','measureText','InsertRangeMoveDownCommandId','_commandService','from','text','getOwnPropertyDescriptor','executeCommand','USERS_LEAVE','RichTextEditingMutation','getViewport','_collabSessionService','getRangePointData','HTTPService','merge','registerBeforeClose','function','NodePositionConvertToRectRange','42741wkXcGj','session.will-retry','setInterval','DeleteRangeMoveUpCommandId','MoveRangeCommandId','_getSaveTimeout','APPLY_REJECT','fillStyle','useRef','unit','name','CLOSE_ROOM','engine','_collabCursorState$','123GlDvMD','getLocalCacheKey','UNAUTHENTICATED','onPointerEnter$','hide','UniverCollaborationClientUIPlugin','_localeService','apply','DocSelectionManagerService','_unitOnClients','getUnhiddenWorksheets','throttleTime','_docStateChangeManagerService','_initCommandExecutedListener','collabStatus.synced','href','getUnitStatus$','SetWorksheetActivateCommand','_eventUnsubscribe','column','isEditing','collabStatus.offline','_updateURLWithCurrentState','undoState','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','ILogService','_colorAssignService','saveOfflineData','_initDependencies','_context','@univerjs/sheets-ui','concat','Vector2','_imageIoService','_messageService','_scheduleHeartbeat','fillRule','transform','_toggleOnline','_startDocCollabCursor','0\x200\x2017\x2016','CONNECTOR_DATA_TOO_LARGE','#fff','verdancy600','replace','_cursor','push','_session','pluginName','_transformPreviousActiveRange','findNodePositionByCharIndex','searchParams','actions','save','_refreshCollabCursors','_cursors','off-line-single_clip0_910_343','react/jsx-runtime','permission.title','key','requireSession','defs','_shapes','triggerDblclick','_registerDependencies','ICommandService','JOIN_ROOM_FAILED','history','displayName','VIEW_MAIN','transformMutation','ISocketService','@univerjs/sheets','event$','48oWCrbo','Failed','_clearOtherTimers','_color','IDocClipboardService','univer-online-status-icon','DEFAULT_WS_SESSION_TICKET_URL','drawWith','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','all','next','collab-text-range-','endRow','defineProperty','translate(.97)','Tools','includes','startsWith','url(#$1','imageSourceType','evenodd','font','endColumn','clearInterval','getRenderById','string','_startSheetCollabCursor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','addObject','SNAPSHOT_HAS_BEEN_REMOVED','addObjects','_heartbeatTimer','icon','univer-online-status-title','M0\x200H16V16H0z','_labelPosition','UNIVER_DOC','_urlService','getDocRanges','dispose','CollaborationUIEventService','_docTransformStateCacheService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_onRefRangeChange','SUBMIT_CHANGESET_TIMEOUT','@univerjs/drawing','_setupSubUnitSync','DocStateChangeManagerService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','InsertRowCommandId','setParam','Inject','UniverIcon','_onCursorDelete','unitId','on-line-single_clip0_910_349','_univerInstanceService','RemoteUniscriptService','_getAnchorBounding','deepClone','UNIVER_SHEET','_disabled','backgroundColor','_onCursorUpdate','offline','editingUnit','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','_getScale','makeDirty','/run/','AWAITING_WITH_PENDING','_cursorShapes','registerRenderModule','clsx','body','eventID','OffLineSingle','setItem','find','_drawRectRange','dispose$','_document','_lastPointer','loadOfflineData','@univerjs/rpc','className','getOffsetConfig','_cursorInfo$','parse','@univerjs/engine-formula','Unknown\x20user','_initStatusListener','setUndoRedoMutationParamsCache','getCurrentSelections','ITransformService','post','debounce','_revisionService','16miaJLP','width','has','symbol','getUnitId','pipe','_init','debounceTime','location','moveTo','uni.network.url-service','NodePositionConvertToCursor','_drawAnchor','handleIRemoveCol','override','registerDependencies','delete','indexOf','_hideTimer','_removeCollabCursors','_colorIndex','current','_selfUnitIDs','_drawTextRange','hasOwnProperty','ISnapshotServerService','_transformService','removeParam','idSuffix','show','WebSocketService','APPLY_NON_SEQUENTIAL_REVISION','SOCKET_FAILED_RETRY','cursorInfo$','TEXT_RANGE_LAYER_INDEX','restore','m1Prime','activeSheet$','TEXT','setActiveRange','SetTextSelectionsOperation','reconnect','registerComponent','split','ranges','_render','LICENSE_EXPORT_SIZE_EXCEEDED','onTransformChange$','PERMISSION_DENIED','attrs','currentColor','onlineStatusIcon','newValue','debug','getVpScrollXYInfoByPosToVp','getMemberID','exhaustSavingTask','INTERNAL_ERROR','isTransformMutationsWithChangesetSuccess','Injector','getCurrent','collab-rect-range-','unload','CollaborationEvent','FromArray','BehaviorSubject','transformStateCache','max','toDisposable','ACTIVE_UNIT_EVENT_CHANNEL','@univerjs/design','SHEET_VIEWPORT_KEY','SYNCED','defIds','Subject','TRANSFORM_CHANGE_OBSERVABLE_TYPE','INVALID_ARGUMENT','_anchorDot','TOO_MANY_REQUESTS','LOCAL_CACHE_INTERVAL_KEY','setConfig','session.connection-failed','getTypeOfUnitAdded$','subscribe','onCommandExecuted','InsertColCommandId','some','onMouseMove','urlChange$','ENSURE_SNAPSHOT_EXECUTION','@univerjs/ui','_docTransformIMECacheService','setTimeout','handleInsertRow','transformRemoteChangeset','lineTo','LICENSE_IMPORT_SIZE_EXCEEDED','handleDeleteRangeMoveLeft','unshift','_textBubble','getSheetObject','createInstance','_hover','_updateSubUnitFromURLParams','_httpService','getCurrentRevOfUnit','MessageType','top','startRow','distinctUntilChanged','_beforeCloseService','react','roomMembers$','addClipboardHook','path','params','purple300','prototype','_localStorageService','sheetID','_docClipboardService','IURLService','getCellPositionByOffset','_entities','DocSkeletonManagerService','div','transformSelections','RemoveColCommandId','_handleLeaveEvent','mapTo','toString','labelPosition','DocIMEInputManagerService','getMember','colorChannel1','MUTATION','getFocusedUnit','CollaborationStatus','subunit','CollaborationStatusDisplay','_online','getParam','@univerjs-pro/collaboration','_anchor','getStateCache','handleInsertCol','_collaborationUIEventService','length','children','_memberService','mutations','replaceDocRanges','getConfig','touchDependencies','_getMergeRange','saveTaskMap','fromEvent','OTHER_CLIENTS_EDITING','subscribeEvent','_sheetSkeletonManagerService','UNRECOGNIZED','Module','[CollaborationDataLoaderController]','getAncestorScale','jiqing500','then','data','runId','hovered','url(#on-line-single_clip0_910_349)','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','sessionStatus$','takeUntil','getColor','combineLatest','CollaborationDataLoaderController','none','RxDisposable','useCallback','EffectRefRangId','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_removeClearOtherTimer','_notificationService','...','ILocalCacheService','mergeOverrideWithDependencies','getSheetId','getRelativeToViewportCoord','sessionTicket','call','selection','_renderManagerService','_transformHistoryAndStateStack','_logService','sheetId','mask','_toggleOffline','CollaborationUIEventId','getCoordByCell','forwardRef','generateRandomId','assignAColorForMemberID','_setupBeforeClosingHandler','online','YUUMI_URL_COL_OUT_OF_RANGE','jsx','get','transformByState','transformMutationsWithChangeset','currentSkeleton$','rxjs/operators','RECT','getMergeData','Rect','getCollabCursors$','0\x200\x2016\x2016','_transformUndoRedoStack','executionId','entries','addEventListener','_send','1em','YUUMI_SUBSCRIPTION_NOT_FOUND','error','m2Prime','collaboration-client-ui.config','CollaborationController','IMessageService','add','round','_range','Plugin','_config','_docSkeleton','setAlpha','pushState','search','whenReady','940UpSokA','collaboration.closeRoom','IUniverInstanceService','#FFF','_name','Disposable','filter','row','LocaleService','send','_draw','createElement','createIdentifier','clearTimeout','NOT_COLLAB','PY_RUNTIME_SCRIPT_ERROR','_entityInit$','_unitStatus','_saveTaskMap','extend','IImageIoService','with','wsSessionTicketUrl','asObservable','redoState','17966xblQnB','ThemeService','INotificationService','UnitStatus','_collabCursorController','onStarting','getSheetBySheetId','collabStatus.notCollab','COMPLETION_FINISHED','SNAPSHOT_INVALID_SNAPSHOT','onPointerLeave$','gold400','onLocalMutation'];_0x3aac=function(){return _0x4d9971;};return _0x3aac();}var Jt=Object[_0x23fb60(0x3f3)],Zt=(_0x2de6f8,_0x10e150,_0x192e13,_0x1e2695)=>{for(var _0x14fa94=_0x1e2695>0x1?void 0x0:_0x1e2695?Jt(_0x10e150,_0x192e13):_0x10e150,_0x47e900=_0x2de6f8['length']-0x1,_0x48be4a;_0x47e900>=0x0;_0x47e900--)(_0x48be4a=_0x2de6f8[_0x47e900])&&(_0x14fa94=_0x48be4a(_0x14fa94)||_0x14fa94);return _0x14fa94;},M=(_0x5e8b86,_0x4d4b97)=>(_0x4277b7,_0x3aa321)=>_0x4d4b97(_0x4277b7,_0x3aa321,_0x5e8b86);let ee=class extends a[_0x23fb60(0x325)]{constructor(_0x207fb8,_0x2db46e,_0x3bfb4a,_0x54e1da,_0x1e8d1e,_0x116e0b,_0x26411c,_0x9d4225){const _0x40f52d=_0x23fb60;super(),h(this,_0x40f52d(0x357),new d['BehaviorSubject'](u[_0x40f52d(0x2bb)][_0x40f52d(0x32e)])),(this[_0x40f52d(0x419)]=_0x207fb8,this[_0x40f52d(0x3d7)]=_0x2db46e,this[_0x40f52d(0x28d)]=_0x3bfb4a,this[_0x40f52d(0x1f9)]=_0x54e1da,this[_0x40f52d(0x3d5)]=_0x1e8d1e,this[_0x40f52d(0x3cd)]=_0x116e0b,this[_0x40f52d(0x42f)]=_0x26411c,this[_0x40f52d(0x413)]=_0x9d4225,this['_initEntityListener']());}['_initEntityListener'](){const _0x3c3f0b=_0x23fb60;this[_0x3c3f0b(0x384)](this[_0x3c3f0b(0x3d7)][_0x3c3f0b(0x35d)][_0x3c3f0b(0x285)](_0x47d438=>{const _0x21c836=_0x3c3f0b,_0x30c25e=this[_0x21c836(0x419)][_0x21c836(0x3af)]['subscribe'](_0x354f78=>{const _0x180972=_0x21c836;if(_0x354f78==null)return;const {unitId:_0x123742,redoState:_0x35a9a9,commandId:_0x23f46d}=_0x354f78;if(_0x123742!==_0x47d438[_0x180972(0x37c)])return;const _0x47b94f={'id':_0x23f46d,'type':a[_0x180972(0x3a9)][_0x180972(0x2b9)],'params':{'unitId':_0x123742,'actions':_0x35a9a9[_0x180972(0x441)],'textRanges':null}};_0x47d438[_0x180972(0x345)](_0x47b94f);});if(_0x47d438[_0x21c836(0x384)](_0x30c25e),_0x47d438 instanceof u['DocCollaborationEntity']){const _0x4ffba3={'onTransformIME':_0x4a637d=>this[_0x21c836(0x28d)][_0x21c836(0x356)](_0x4a637d),'onTransformState':_0x40b9e3=>this[_0x21c836(0x1f9)][_0x21c836(0x274)](_0x40b9e3),'onTransformSelections':_0x43a42f=>this[_0x21c836(0x3d5)][_0x21c836(0x2b0)](_0x43a42f),'onSyncEditingCollabCursor':_0x2aac38=>this[_0x21c836(0x3cd)][_0x21c836(0x39c)](_0x2aac38),'onTransformRemoteChangesetByIMECache':_0x6b779=>this[_0x21c836(0x28d)][_0x21c836(0x290)](_0x6b779),'onTransformRemoteChangesetByStateCache':_0x349a6d=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x349a6d)};_0x47d438['addHandlerCallback'](_0x4ffba3);}}));}};ee=Zt([M(0x0,a[_0x23fb60(0x203)](b[_0x23fb60(0x1ff)])),M(0x1,a[_0x23fb60(0x203)](u[_0x23fb60(0x314)])),M(0x2,a['Inject'](J)),M(0x3,a[_0x23fb60(0x203)](Z)),M(0x4,a[_0x23fb60(0x203)](Q)),M(0x5,a[_0x23fb60(0x203)](pe)),M(0x6,R[_0x23fb60(0x315)]),M(0x7,a['Inject'](a[_0x23fb60(0x328)]))],ee);var Qt=Object[_0x23fb60(0x3f3)],es=(_0x4953dd,_0x4ba9fc,_0x5dfec4,_0x2a1ab6)=>{const _0x46b75f=_0x23fb60;for(var _0x37537b=_0x2a1ab6>0x1?void 0x0:_0x2a1ab6?Qt(_0x4ba9fc,_0x5dfec4):_0x4ba9fc,_0x534a1=_0x4953dd[_0x46b75f(0x2c5)]-0x1,_0x457500;_0x534a1>=0x0;_0x534a1--)(_0x457500=_0x4953dd[_0x534a1])&&(_0x37537b=_0x457500(_0x37537b)||_0x37537b);return _0x37537b;},_e=(_0x43a47f,_0x1f38dc)=>(_0x53a8da,_0x484c67)=>_0x1f38dc(_0x53a8da,_0x484c67,_0x43a47f);let me=class extends a['Disposable']{constructor(_0x13a476,_0xbd2e4a,_0x10beac){const _0x222da9=_0x23fb60;super(),h(this,_0x222da9(0x3e4),new Map()),h(this,_0x222da9(0x332),new Map()),h(this,'_disabled',!0x1),(this[_0x222da9(0x3ac)]=_0x13a476,this[_0x222da9(0x2a8)]=_0xbd2e4a,this[_0x222da9(0x231)]=_0x10beac);}[_0x23fb60(0x355)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x1b43e6=_0x23fb60;this[_0x1b43e6(0x20d)]=!0x1;}get[_0x23fb60(0x2cd)](){const _0x589454=_0x23fb60;return this[_0x589454(0x332)];}[_0x23fb60(0x1f7)](){const _0x38fecd=_0x23fb60;this[_0x38fecd(0x26a)]()['then'](()=>super['dispose']());}async[_0x23fb60(0x223)](_0x455d0b){const _0x302a71=_0x23fb60;return this[_0x302a71(0x20d)]?null:this['_localStorageService']['getItem'](u[_0x302a71(0x40e)](_0x455d0b));}async[_0x23fb60(0x428)](_0x260737,_0x569f99){const _0x190250=_0x23fb60;return!!this[_0x190250(0x2a8)][_0x190250(0x21d)](_0x260737,_0x569f99);}['updateOfflineData'](_0x424cf0,_0x1b8529,_0x897e,_0xe92f3f){const _0x30ab58=_0x23fb60,_0x519c5b=this['_revisionService'][_0x30ab58(0x29b)](_0x424cf0);this[_0x30ab58(0x3e4)][_0x30ab58(0x3b8)](_0x424cf0,{'unitID':_0x424cf0,'type':_0x1b8529,'awaitingChangeset':_0x897e,'mutations':_0xe92f3f,'rev':_0x519c5b}),this[_0x30ab58(0x332)][_0x30ab58(0x234)](_0x424cf0)||this['_scheduleSaving'](_0x424cf0);}['_scheduleSaving'](_0x3181c1){const _0x50ed14=_0x23fb60,_0x3b74d9=this[_0x50ed14(0x404)]();_0x3b74d9===0x0?this['_saveCache'](_0x3181c1):this['_saveTaskMap'][_0x50ed14(0x3b8)](_0x3181c1,setTimeout(()=>this['_saveCache'](_0x3181c1),_0x3b74d9));}[_0x23fb60(0x404)](){const _0x6ccd31=_0x23fb60;var _0x1b2dc2;return(_0x1b2dc2=this[_0x6ccd31(0x3ac)]['getConfig'](u[_0x6ccd31(0x281)]))!=null?_0x1b2dc2:u['LOCAL_CACHE_INTERVAL'];}[_0x23fb60(0x37f)](_0x441cb8){const _0x21e7b7=_0x23fb60,_0xf281fd=this[_0x21e7b7(0x332)][_0x21e7b7(0x300)](_0x441cb8);return _0xf281fd!==void 0x0&&window[_0x21e7b7(0x32d)](_0xf281fd),this[_0x21e7b7(0x2a8)][_0x21e7b7(0x21d)](u[_0x21e7b7(0x40e)](_0x441cb8),this['_cachedData'][_0x21e7b7(0x300)](_0x441cb8))[_0x21e7b7(0x2d7)](()=>this['_saveTaskMap'][_0x21e7b7(0x242)](_0x441cb8));}async[_0x23fb60(0x26a)](){const _0x52e0db=_0x23fb60,_0xde6849=[];this[_0x52e0db(0x332)]['forEach']((_0x11fbb6,_0x246184)=>{const _0x2367e5=_0x52e0db;window[_0x2367e5(0x32d)](_0x11fbb6),_0xde6849[_0x2367e5(0x43b)](this[_0x2367e5(0x37f)](_0x246184)[_0x2367e5(0x2d7)](()=>{const _0x210e21=_0x2367e5;this[_0x210e21(0x332)][_0x210e21(0x242)](_0x246184);}));}),await Promise[_0x52e0db(0x1d9)](_0xde6849);}};me=es([_e(0x0,a[_0x23fb60(0x39a)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x23fb60(0x203)](m[_0x23fb60(0x3a5)]))],me);class ke extends a[_0x23fb60(0x2e3)]{constructor(){const _0x3cb6c1=_0x23fb60;super(),h(this,'urlChange$'),this[_0x3cb6c1(0x28a)]=d[_0x3cb6c1(0x2ce)](window,'popstate')[_0x3cb6c1(0x237)](d[_0x3cb6c1(0x2de)](this[_0x3cb6c1(0x220)]),d['shareReplay'](0x1),d[_0x3cb6c1(0x2b3)](void 0x0));}[_0x23fb60(0x202)](_0xcb6cbf,_0x136566,_0x1d7e7b=!0x1){const _0xe7815d=_0x23fb60,_0x50d0a7=new URL(window['location'][_0xe7815d(0x41c)]);_0x50d0a7[_0xe7815d(0x440)][_0xe7815d(0x3b8)](_0xcb6cbf,_0x136566),_0x1d7e7b?window[_0xe7815d(0x1c9)]['replaceState']('','',_0x50d0a7[_0xe7815d(0x2b4)]()):window[_0xe7815d(0x1c9)]['pushState']('','',_0x50d0a7[_0xe7815d(0x2b4)]());}[_0x23fb60(0x24d)](_0x20bb95,_0x44ac8d=!0x1){const _0x2baab6=_0x23fb60,_0x3f33de=new URL(window[_0x2baab6(0x23a)][_0x2baab6(0x41c)]);_0x3f33de['searchParams'][_0x2baab6(0x242)](_0x20bb95),_0x44ac8d?window[_0x2baab6(0x1c9)]['replaceState']('','',_0x3f33de[_0x2baab6(0x2b4)]()):window[_0x2baab6(0x1c9)][_0x2baab6(0x31d)]('','',_0x3f33de[_0x2baab6(0x2b4)]());}[_0x23fb60(0x2bf)](_0x1c48ec){const _0x1ad33d=_0x23fb60;var _0x22613c;return(_0x22613c=new URL(window[_0x1ad33d(0x23a)][_0x1ad33d(0x41c)])['searchParams'][_0x1ad33d(0x300)](_0x1c48ec))!=null?_0x22613c:void 0x0;}}var ts=Object[_0x23fb60(0x1dd)],ss=Object[_0x23fb60(0x3f3)],ns=(_0x44fd50,_0x80e8af,_0x24d5e2)=>_0x80e8af in _0x44fd50?ts(_0x44fd50,_0x80e8af,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24d5e2}):_0x44fd50[_0x80e8af]=_0x24d5e2,is=(_0x1db908,_0x4fb135,_0x313431,_0x2a9c3d)=>{const _0x17357b=_0x23fb60;for(var _0x17ac67=_0x2a9c3d>0x1?void 0x0:_0x2a9c3d?ss(_0x4fb135,_0x313431):_0x4fb135,_0x536a5e=_0x1db908[_0x17357b(0x2c5)]-0x1,_0x38fc8f;_0x536a5e>=0x0;_0x536a5e--)(_0x38fc8f=_0x1db908[_0x536a5e])&&(_0x17ac67=_0x38fc8f(_0x17ac67)||_0x17ac67);return _0x17ac67;},ue=(_0x38fb65,_0x20ccb1)=>(_0x33a8f9,_0x58a644)=>_0x20ccb1(_0x33a8f9,_0x58a644,_0x38fb65),rs=(_0x38b924,_0x3d101f,_0x1bbf0a)=>ns(_0x38b924,_0x3d101f+'',_0x1bbf0a);const os=_0x23fb60(0x2e6);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x23fb60(0x319)]{constructor(_0x3c5dfe=Me,_0x4c61c1,_0x5a071e,_0x4a9a9f){const _0xa82ed3=_0x23fb60;super(),this['_config']=_0x3c5dfe,this[_0xa82ed3(0x2f1)]=_0x4c61c1,this[_0xa82ed3(0x348)]=_0x5a071e,this[_0xa82ed3(0x3ac)]=_0x4a9a9f;const {..._0x51998f}=a[_0xa82ed3(0x3fb)]({},Me,this['_config']);this['_configService'][_0xa82ed3(0x282)](Wt,_0x51998f);}[_0x23fb60(0x33e)](){const _0x247cda=_0x23fb60;this['_registerDependencies'](),this[_0x247cda(0x429)]();}[_0x23fb60(0x3c1)](){const _0x5a72b2=_0x23fb60;this[_0x5a72b2(0x3d6)]();}[_0x23fb60(0x1c6)](){const _0x3a4144=_0x23fb60;var _0x5e0b2;const _0x15d7e0=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q[_0x3a4144(0x1cd)],{'useClass':q[_0x3a4144(0x250)]}],[u[_0x3a4144(0x2ea)],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports[_0x3a4144(0x2e1)]]];a[_0x3a4144(0x241)](this['_injector'],a[_0x3a4144(0x2eb)](_0x15d7e0,(_0x5e0b2=this[_0x3a4144(0x31a)])==null?void 0x0:_0x5e0b2[_0x3a4144(0x240)]));}[_0x23fb60(0x3d6)](){const _0x34cc5e=_0x23fb60;this[_0x34cc5e(0x384)](this[_0x34cc5e(0x2f1)][_0x34cc5e(0x218)](a['UniverInstanceType']['UNIVER_DOC'],[ge])),this[_0x34cc5e(0x384)](this[_0x34cc5e(0x2f1)][_0x34cc5e(0x218)](a[_0x34cc5e(0x3aa)][_0x34cc5e(0x20c)],[Ie]));}[_0x23fb60(0x429)](){const _0x9cfcb4=_0x23fb60;a[_0x9cfcb4(0x2cb)](this[_0x9cfcb4(0x348)],[[x],[exports[_0x9cfcb4(0x36c)]],[ee],[z],[exports[_0x9cfcb4(0x2e1)]]]);}},rs(exports[_0x23fb60(0x412)],_0x23fb60(0x43d),os),exports[_0x23fb60(0x412)]=is([a['DependentOn'](u[_0x23fb60(0x37a)]),ue(0x1,p['IRenderManagerService']),ue(0x2,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),ue(0x3,a[_0x23fb60(0x39a)])],exports[_0x23fb60(0x412)]);var as=Object[_0x23fb60(0x3f3)],cs=(_0x4197dc,_0x252ade,_0x38b503,_0xf6ac48)=>{for(var _0x250025=_0xf6ac48>0x1?void 0x0:_0xf6ac48?as(_0x252ade,_0x38b503):_0x252ade,_0x4d9d54=_0x4197dc['length']-0x1,_0x169865;_0x4d9d54>=0x0;_0x4d9d54--)(_0x169865=_0x4197dc[_0x4d9d54])&&(_0x250025=_0x169865(_0x250025)||_0x250025);return _0x250025;},F=(_0x5b297c,_0x289866)=>(_0x318b83,_0x12a7ac)=>_0x289866(_0x318b83,_0x12a7ac,_0x5b297c);exports[_0x23fb60(0x3b9)]=class extends u[_0x23fb60(0x372)]{constructor(_0x22fd4f,_0x34d4bb,_0x2595dc,_0x33d4a5,_0x324843){super(_0x22fd4f,_0x34d4bb,_0x2595dc,_0x33d4a5,_0x324843);}async['createSocket'](_0x35fe50){const _0x3d3633=await this['_getSessionTicket'](),_0x49483b=this['_createSocketURL'](_0x35fe50,_0x3d3633);return this['_doCreateSocket'](_0x49483b);}['_createSocketURL'](_0x1a40af,_0x142204){const _0x1b5b87=_0x23fb60,_0x34f3c1=typeof window>'u'?new URL(_0x1a40af):new URL(_0x1a40af,window['location'][_0x1b5b87(0x358)]);_0x34f3c1[_0x1b5b87(0x440)][_0x1b5b87(0x3b8)](_0x1b5b87(0x2ee),_0x142204);const _0x45261b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1b5b87(0x31e)]);return _0x45261b['get']('runId')&&_0x34f3c1[_0x1b5b87(0x440)][_0x1b5b87(0x3b8)]('runId',_0x45261b['get']('runId')),_0x34f3c1[_0x1b5b87(0x2b4)]();}async['_getSessionTicket'](){const _0x157f7e=_0x23fb60;var _0x5cdd7b,_0xae66bc,_0x8bcccc;const _0x502d36=this[_0x157f7e(0x3ac)][_0x157f7e(0x2ca)](u[_0x157f7e(0x1d8)]),_0x5bfefb=(_0x5cdd7b=_0x502d36==null?void 0x0:_0x502d36[_0x157f7e(0x336)])!=null?_0x5cdd7b:u[_0x157f7e(0x1d6)];return(_0x8bcccc=(_0xae66bc=(await this[_0x157f7e(0x29a)][_0x157f7e(0x300)](_0x5bfefb,{'headers':{'Content-Type':_0x157f7e(0x3e9)}}))['body'])==null?void 0x0:_0xae66bc[_0x157f7e(0x3d8)])!=null?_0x8bcccc:'';}},exports[_0x23fb60(0x3b9)]=cs([F(0x0,a['Inject'](a[_0x23fb60(0x26d)])),F(0x1,a[_0x23fb60(0x203)](q['HTTPService'])),F(0x2,a[_0x23fb60(0x39a)]),F(0x3,a[_0x23fb60(0x426)]),F(0x4,m[_0x23fb60(0x24b)])],exports[_0x23fb60(0x3b9)]);const Ne=0x7530,we=_0x23fb60(0x277);class ls extends a[_0x23fb60(0x325)]{constructor(){const _0x8fec3d=_0x23fb60;super(),h(this,_0x8fec3d(0x3bd),a[_0x8fec3d(0x2fa)]()),h(this,_0x8fec3d(0x248),new Set()),h(this,_0x8fec3d(0x416),new Map()),h(this,_0x8fec3d(0x1ef),null),h(this,_0x8fec3d(0x1d2),new Map()),h(this,_0x8fec3d(0x331),new Map()),this[_0x8fec3d(0x238)]();}[_0x23fb60(0x1f7)](){const _0x588285=_0x23fb60;super[_0x588285(0x1f7)](),this['_clearOtherTimers'][_0x588285(0x3d2)]((_0x566396,_0x255f5b)=>this[_0x588285(0x2e7)](_0x255f5b)),this['_heartbeatTimer']&&window[_0x588285(0x1e7)](this[_0x588285(0x1ef)]);}[_0x23fb60(0x41d)](_0x5bf2ea){const _0x894aa4=_0x23fb60;return this[_0x894aa4(0x390)](_0x5bf2ea)[_0x894aa4(0x237)](d[_0x894aa4(0x29f)]());}[_0x23fb60(0x211)](_0x5f4a53){const _0x58c82a=_0x23fb60;this[_0x58c82a(0x248)][_0x58c82a(0x376)]===0x0&&this[_0x58c82a(0x430)](),this[_0x58c82a(0x248)]['add'](_0x5f4a53),this['_send']({'type':0x0,'memberID':this[_0x58c82a(0x3bd)],'unitIDs':[_0x5f4a53],'isForwarded':!0x1});}[_0x23fb60(0x379)](_0x3ab51a){const _0x31fdd0=_0x23fb60;this[_0x31fdd0(0x248)][_0x31fdd0(0x242)](_0x3ab51a),this[_0x31fdd0(0x248)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x31fdd0(0x1e7)](this['_heartbeatTimer']);}[_0x23fb60(0x238)](){const _0x18d8c2=_0x23fb60;this[_0x18d8c2(0x384)](a['toDisposable'](d['fromEvent'](window,'storage')['subscribe'](_0x18d730=>{const _0x5128b3=_0x18d8c2;if(_0x18d730[_0x5128b3(0x1c1)]!==we||!_0x18d730[_0x5128b3(0x266)])return;const _0x46c324=JSON[_0x5128b3(0x228)](_0x18d730[_0x5128b3(0x266)]);this['_handleEvent'](_0x46c324);}))),window[_0x18d8c2(0x30d)](_0x18d8c2(0x270),()=>this[_0x18d8c2(0x30e)]({'type':0x1,'memberID':this[_0x18d8c2(0x3bd)],'unitIDs':Array[_0x18d8c2(0x3f1)](this[_0x18d8c2(0x248)])}));}['_handleEvent'](_0x59eb09){const _0x517603=_0x23fb60;switch(_0x59eb09['type']){case 0x0:this['_handleJoinEvent'](_0x59eb09);break;case 0x1:this[_0x517603(0x2b2)](_0x59eb09);break;case 0x2:this[_0x517603(0x3b4)](_0x59eb09);break;}}[_0x23fb60(0x38c)](_0x478321){const _0x46c1da=_0x23fb60,{unitIDs:_0x32994b,memberID:_0x40d942,isForwarded:_0x3c6b24}=_0x478321;_0x32994b[_0x46c1da(0x3d2)](_0x23d75e=>{const _0x3a17e7=_0x46c1da;if(!_0x3c6b24&&this[_0x3a17e7(0x416)]['has'](_0x23d75e)&&this[_0x3a17e7(0x390)](_0x23d75e)[_0x3a17e7(0x1da)](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0x3a17e7(0x416)][_0x3a17e7(0x234)](_0x23d75e)||!this[_0x3a17e7(0x416)][_0x3a17e7(0x300)](_0x23d75e)[_0x3a17e7(0x234)](_0x40d942)){const _0x159f94=this[_0x3a17e7(0x416)][_0x3a17e7(0x300)](_0x23d75e)||new Set();_0x159f94[_0x3a17e7(0x316)](_0x40d942),this[_0x3a17e7(0x416)]['set'](_0x23d75e,_0x159f94),this[_0x3a17e7(0x395)](_0x40d942);}}),_0x3c6b24||this['_send']({'type':0x0,'memberID':this[_0x46c1da(0x3bd)],'unitIDs':[...this[_0x46c1da(0x248)]],'isForwarded':!0x0});}[_0x23fb60(0x395)](_0x24efbc){const _0xcc9d86=_0x23fb60;this[_0xcc9d86(0x2e7)](_0x24efbc);const _0x211f3f=window[_0xcc9d86(0x28e)](()=>{const _0x238b3b=_0xcc9d86;this[_0x238b3b(0x416)][_0x238b3b(0x3d2)](_0x4186aa=>{_0x4186aa['delete'](_0x24efbc);});},Ne*0x2);this[_0xcc9d86(0x1d2)][_0xcc9d86(0x3b8)](_0x24efbc,_0x211f3f);}[_0x23fb60(0x2e7)](_0x4b3055){const _0x1d3627=_0x23fb60;if(this[_0x1d3627(0x1d2)][_0x1d3627(0x234)](_0x4b3055)){const _0x3ca1a0=this[_0x1d3627(0x1d2)][_0x1d3627(0x300)](_0x4b3055);_0x3ca1a0&&window[_0x1d3627(0x32d)](_0x3ca1a0),this[_0x1d3627(0x1d2)][_0x1d3627(0x3b8)](_0x4b3055,null);}}['_handleLeaveEvent'](_0x58ca2a){const _0x551a95=_0x23fb60,{memberID:_0x3022a0,unitIDs:_0x24f00e}=_0x58ca2a;_0x24f00e[_0x551a95(0x3d2)](_0x185f54=>{const _0x2205b5=_0x551a95;var _0x13060a;const _0x5435bf=this[_0x2205b5(0x416)]['get'](_0x185f54);_0x5435bf&&(_0x5435bf[_0x2205b5(0x242)](_0x3022a0),(_0x13060a=this[_0x2205b5(0x390)](_0x185f54))==null||_0x13060a[_0x2205b5(0x1da)](_0x5435bf[_0x2205b5(0x376)]===0x0?u[_0x2205b5(0x33c)][_0x2205b5(0x39d)]:u[_0x2205b5(0x33c)][_0x2205b5(0x2cf)]));}),this[_0x551a95(0x2e7)](_0x3022a0);}['_handleHeartbeatEvent'](_0x3a8aed){const _0x1592d5=_0x23fb60;this[_0x1592d5(0x395)](_0x3a8aed[_0x1592d5(0x39b)]);}[_0x23fb60(0x30e)](_0x50acb4){const _0x167cd5=_0x23fb60;localStorage[_0x167cd5(0x21d)](we,JSON[_0x167cd5(0x37b)](_0x50acb4));}[_0x23fb60(0x430)](){const _0x18cd0c=_0x23fb60;this['_heartbeatTimer']=window[_0x18cd0c(0x401)](()=>{const _0xc6cb82=_0x18cd0c;this['_send']({'type':0x2,'memberID':this[_0xc6cb82(0x3bd)]});},Ne);}[_0x23fb60(0x390)](_0x34e4a3){const _0x5ed654=_0x23fb60;return this[_0x5ed654(0x331)]['has'](_0x34e4a3)||this[_0x5ed654(0x331)][_0x5ed654(0x3b8)](_0x34e4a3,new d['BehaviorSubject'](u[_0x5ed654(0x33c)][_0x5ed654(0x39d)])),this['_unitStatus']['get'](_0x34e4a3);}}var Be=(_0x2999ec=>(_0x2999ec[_0x2999ec[_0x23fb60(0x371)]=0x0]=_0x23fb60(0x371),_0x2999ec[_0x2999ec['OK']=0x1]='OK',_0x2999ec[_0x2999ec[_0x23fb60(0x26b)]=0x2]=_0x23fb60(0x26b),_0x2999ec[_0x2999ec['PERMISSION_DENIED']=0x3]=_0x23fb60(0x262),_0x2999ec[_0x2999ec[_0x23fb60(0x3c3)]=0x4]=_0x23fb60(0x3c3),_0x2999ec[_0x2999ec['UNAUTHENTICATED']=0x5]=_0x23fb60(0x40f),_0x2999ec[_0x2999ec['ALREADY_EXISTS']=0x6]=_0x23fb60(0x389),_0x2999ec[_0x2999ec[_0x23fb60(0x27e)]=0x7]=_0x23fb60(0x27e),_0x2999ec[_0x2999ec[_0x23fb60(0x280)]=0x8]=_0x23fb60(0x280),_0x2999ec[_0x2999ec[_0x23fb60(0x341)]=0x9]='COMPLETION_FINISHED',_0x2999ec[_0x2999ec[_0x23fb60(0x3ea)]=0x1389]=_0x23fb60(0x3ea),_0x2999ec[_0x2999ec[_0x23fb60(0x342)]=0x1771]=_0x23fb60(0x342),_0x2999ec[_0x2999ec[_0x23fb60(0x1ed)]=0x1772]=_0x23fb60(0x1ed),_0x2999ec[_0x2999ec[_0x23fb60(0x28b)]=0x1773]=_0x23fb60(0x28b),_0x2999ec[_0x2999ec[_0x23fb60(0x405)]=0x1b59]=_0x23fb60(0x405),_0x2999ec[_0x2999ec[_0x23fb60(0x251)]=0x1b5a]=_0x23fb60(0x251),_0x2999ec[_0x2999ec['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x23fb60(0x3b5),_0x2999ec[_0x2999ec[_0x23fb60(0x393)]=0x1b5c]=_0x23fb60(0x393),_0x2999ec[_0x2999ec['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x2999ec[_0x2999ec[_0x23fb60(0x436)]=0x1f41]=_0x23fb60(0x436),_0x2999ec[_0x2999ec[_0x23fb60(0x392)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2999ec[_0x2999ec[_0x23fb60(0x38e)]=0x232a]=_0x23fb60(0x38e),_0x2999ec[_0x2999ec[_0x23fb60(0x292)]=0x232b]=_0x23fb60(0x292),_0x2999ec[_0x2999ec[_0x23fb60(0x260)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2999ec[_0x2999ec['LICENSE_DISTRO_REJECTED']=0x232d]=_0x23fb60(0x35a),_0x2999ec[_0x2999ec[_0x23fb60(0x351)]=0x2711]=_0x23fb60(0x351),_0x2999ec[_0x2999ec[_0x23fb60(0x2fe)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2999ec[_0x2999ec['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x2999ec[_0x2999ec['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x23fb60(0x310),_0x2999ec[_0x2999ec['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x23fb60(0x32f),_0x2999ec[_0x2999ec[_0x23fb60(0x2d2)]=-0x1]=_0x23fb60(0x2d2),_0x2999ec))(Be||{}),hs=Object[_0x23fb60(0x3f3)],_s=(_0x4e9ee3,_0xa0dc14,_0x2013c7,_0x45f8b3)=>{const _0x5b10bf=_0x23fb60;for(var _0xbc0875=_0x45f8b3>0x1?void 0x0:_0x45f8b3?hs(_0xa0dc14,_0x2013c7):_0xa0dc14,_0x1a8e34=_0x4e9ee3[_0x5b10bf(0x2c5)]-0x1,_0x100490;_0x1a8e34>=0x0;_0x1a8e34--)(_0x100490=_0x4e9ee3[_0x1a8e34])&&(_0xbc0875=_0x100490(_0xbc0875)||_0xbc0875);return _0xbc0875;},de=(_0x16dd05,_0x51d0fd)=>(_0x28f120,_0x2fc40b)=>_0x51d0fd(_0x28f120,_0x2fc40b,_0x16dd05);exports[_0x23fb60(0x209)]=class extends a['Disposable']{constructor(_0x3e72af,_0x21b3f4,_0xc39890){const _0x16e100=_0x23fb60;super(),this[_0x16e100(0x3c4)]=_0x3e72af,this[_0x16e100(0x29a)]=_0x21b3f4,this[_0x16e100(0x3ac)]=_0xc39890;}async['runOnServer'](_0x5bc6e0,_0x59608b,_0x54b079,..._0x10c6fd){const _0x21199f=_0x23fb60;var _0x2b1eff,_0x188f71,_0x76d63a,_0x27134f;const _0x5b9a88=this[_0x21199f(0x3c4)][_0x21199f(0x2ba)]();if(!_0x5b9a88)throw new Error(_0x21199f(0x200));const _0x14af03=((_0x2b1eff=this[_0x21199f(0x3ac)][_0x21199f(0x2ca)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x2b1eff:u[_0x21199f(0x3a4)])+'/'+_0x5bc6e0+_0x21199f(0x215)+_0x59608b,_0x3a506c=new URL(window[_0x21199f(0x23a)][_0x21199f(0x41c)]),_0x5a6084={'scriptId':_0x5bc6e0,'runId':(_0x188f71=_0x3a506c[_0x21199f(0x440)]['get'](_0x21199f(0x2d9)))!=null?_0x188f71:'','function':_0x59608b,'unitId':_0x5b9a88[_0x21199f(0x236)](),'argsOfFunction':JSON[_0x21199f(0x37b)](_0x10c6fd),'invokeId':(_0x76d63a=_0x54b079[_0x21199f(0x3dc)])!=null?_0x76d63a:'','executionId':(_0x27134f=_0x54b079[_0x21199f(0x30b)])!=null?_0x27134f:''};try{const _0x3c4707=await this[_0x21199f(0x29a)][_0x21199f(0x22f)](_0x14af03,{'body':_0x5a6084});return _0x3c4707[_0x21199f(0x21a)]['error']&&_0x3c4707['body'][_0x21199f(0x311)]['code']!==Be['OK']?_0x21199f(0x1d1):_0x3c4707[_0x21199f(0x21a)]['result'];}catch{return'Failed';}}},exports[_0x23fb60(0x209)]=_s([de(0x0,a[_0x23fb60(0x322)]),de(0x1,a[_0x23fb60(0x203)](q[_0x23fb60(0x3fa)])),de(0x2,a[_0x23fb60(0x39a)])],exports[_0x23fb60(0x209)]),exports[_0x23fb60(0x2bd)]=je,exports[_0x23fb60(0x2ab)]=Ee,exports['SheetCollabCursorShape']=ye,exports[_0x23fb60(0x34d)]=ls,exports['WebURLService']=ke;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x428f39=_0x21d0;function _0x1fc2(){const _0x549344=['20821332agRXFl','Local\x20file','4214781mWkvxB','719889AYJZxi','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','7640hphCRD','77vgnivL','Collaboration\x20Conflict','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','116340SxUabm','Click\x20to\x20Reconnect','Syncing...','224epLCoG','exports','Syncing\x20server\x20data...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Synced','8Gtwudn','1770uVUqMR','Edit\x20conflicts','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','19756gbyjou','18lBrEvS','2069641aFmshY'];_0x1fc2=function(){return _0x549344;};return _0x1fc2();}(function(_0xe3f7da,_0x2d6451){const _0x5dfc7b=_0x21d0,_0x585f23=_0xe3f7da();while(!![]){try{const _0x47f53c=-parseInt(_0x5dfc7b(0x135))/0x1*(-parseInt(_0x5dfc7b(0x128))/0x2)+parseInt(_0x5dfc7b(0x131))/0x3+-parseInt(_0x5dfc7b(0x13c))/0x4*(parseInt(_0x5dfc7b(0x139))/0x5)+parseInt(_0x5dfc7b(0x12c))/0x6*(-parseInt(_0x5dfc7b(0x12d))/0x7)+parseInt(_0x5dfc7b(0x127))/0x8*(-parseInt(_0x5dfc7b(0x130))/0x9)+parseInt(_0x5dfc7b(0x134))/0xa*(parseInt(_0x5dfc7b(0x12b))/0xb)+parseInt(_0x5dfc7b(0x12e))/0xc;if(_0x47f53c===_0x2d6451)break;else _0x585f23['push'](_0x585f23['shift']());}catch(_0x198baa){_0x585f23['push'](_0x585f23['shift']());}}}(_0x1fc2,0xb8d41));function _0x21d0(_0x3fd27c,_0x1aa602){const _0x1fc2a5=_0x1fc2();return _0x21d0=function(_0x21d0a2,_0x2be09c){_0x21d0a2=_0x21d0a2-0x127;let _0x5c693d=_0x1fc2a5[_0x21d0a2];return _0x5c693d;},_0x21d0(_0x3fd27c,_0x1aa602);}const e={'collab-client':{'tooltip':{'reconnect':_0x428f39(0x13a)}},'collabStatus':{'fetchMiss':_0x428f39(0x13e),'conflict':_0x428f39(0x129),'notCollab':_0x428f39(0x12f),'synced':_0x428f39(0x140),'syncing':_0x428f39(0x13b),'offline':_0x428f39(0x12a)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x428f39(0x138),'room-full':_0x428f39(0x133),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x428f39(0x136),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':'Authentication\x20Error','content':_0x428f39(0x132)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x428f39(0x137)},'auth':{'needGotoLoginAlert':_0x428f39(0x13f)}};module[_0x428f39(0x13d)]=e;
|