@univerjs-pro/collaboration-client-ui 0.6.3 → 0.6.4-nightly.202503101606
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 +17 -17
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x453c74=_0x4d82;(function(_0x1ec224,_0x1c2221){const _0x2d2780=_0x4d82,_0x22ff87=_0x1ec224();while(!![]){try{const _0x1cfdc7=-parseInt(_0x2d2780(0x136))/0x1*(parseInt(_0x2d2780(0x126))/0x2)+-parseInt(_0x2d2780(0x133))/0x3+parseInt(_0x2d2780(0x12b))/0x4*(parseInt(_0x2d2780(0x131))/0x5)+-parseInt(_0x2d2780(0x12c))/0x6*(parseInt(_0x2d2780(0x128))/0x7)+-parseInt(_0x2d2780(0x132))/0x8+-parseInt(_0x2d2780(0x12f))/0x9+parseInt(_0x2d2780(0x125))/0xa*(parseInt(_0x2d2780(0x127))/0xb);if(_0x1cfdc7===_0x1c2221)break;else _0x22ff87['push'](_0x22ff87['shift']());}catch(_0x3b4917){_0x22ff87['push'](_0x22ff87['shift']());}}}(_0x174f,0x32883));function _0x4d82(_0x190b58,_0x4590c3){const _0x174f77=_0x174f();return _0x4d82=function(_0x4d8230,_0x2fabcf){_0x4d8230=_0x4d8230-0x125;let _0x1da3de=_0x174f77[_0x4d8230];return _0x1da3de;},_0x4d82(_0x190b58,_0x4590c3);}const t=require(_0x453c74(0x129)),e=require(_0x453c74(0x12a));class c extends e[_0x453c74(0x135)]{[_0x453c74(0x130)](_0x228c9f,_0x597fb9,..._0x4e0205){const _0x2b9e40=_0x453c74;return this[_0x2b9e40(0x134)][_0x2b9e40(0x12e)](t['RemoteUniscriptService'])['runOnServer'](_0x228c9f,_0x597fb9,{},..._0x4e0205);}}e['FUniver'][_0x453c74(0x12d)](c);function _0x174f(){const _0x51fa89=['_injector','FUniver','197626HxwKwy','12579050icSNGG','2euOmQk','11lJohdm','2242177zdjGfx','@univerjs-pro/collaboration-client-ui','@univerjs/core/facade','4eZNOmV','6ZPWAhR','extend','get','2195100qsYRBJ','runOnServer','758825hgXWPd','1810776WTsTdk','643521myqbOI'];_0x174f=function(){return _0x51fa89;};return _0x174f();}
|
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 _0x458e3c=_0x2db8;(function(_0x5867ca,_0x2e1e28){const _0x290055=_0x2db8,_0xa76754=_0x5867ca();while(!![]){try{const _0x83e841=parseInt(_0x290055(0x27f))/0x1*(parseInt(_0x290055(0x13f))/0x2)+parseInt(_0x290055(0x190))/0x3+-parseInt(_0x290055(0x25f))/0x4*(parseInt(_0x290055(0x26b))/0x5)+-parseInt(_0x290055(0x17a))/0x6*(-parseInt(_0x290055(0x186))/0x7)+parseInt(_0x290055(0x2e0))/0x8+parseInt(_0x290055(0x162))/0x9*(parseInt(_0x290055(0x2d5))/0xa)+parseInt(_0x290055(0x11c))/0xb*(-parseInt(_0x290055(0x1d6))/0xc);if(_0x83e841===_0x2e1e28)break;else _0xa76754['push'](_0xa76754['shift']());}catch(_0x28a88a){_0xa76754['push'](_0xa76754['shift']());}}}(_0x3269,0xc4c35));var Ve=Object['defineProperty'],Ge=(_0x62d362,_0x1ec187,_0x3e0c5b)=>_0x1ec187 in _0x62d362?Ve(_0x62d362,_0x1ec187,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e0c5b}):_0x62d362[_0x1ec187]=_0x3e0c5b,h=(_0x4cd36e,_0x48aebf,_0x5bd0fd)=>Ge(_0x4cd36e,typeof _0x48aebf!=_0x458e3c(0x369)?_0x48aebf+'':_0x48aebf,_0x5bd0fd);Object[_0x458e3c(0x178)](exports,Symbol['toStringTag'],{'value':_0x458e3c(0x1a1)});const u=require(_0x458e3c(0x1ac)),a=require(_0x458e3c(0x2df)),p=require(_0x458e3c(0x2d3)),q=require(_0x458e3c(0x202)),b=require('@univerjs/docs-ui'),qe=require(_0x458e3c(0x339)),d=require(_0x458e3c(0x18b)),Y=require(_0x458e3c(0x1b9)),m=require(_0x458e3c(0x2c8)),Te=require(_0x458e3c(0x22c)),I=require(_0x458e3c(0x334)),$=require(_0x458e3c(0x29d)),G=require(_0x458e3c(0x2f6)),w=require('react/jsx-runtime'),R=require(_0x458e3c(0x1a5)),T=require(_0x458e3c(0x301)),P=require(_0x458e3c(0x35c)),Ke=require(_0x458e3c(0x314));var ze=Object[_0x458e3c(0x133)],Je=(_0x5b21d7,_0x580331,_0x4fb1b2,_0x28a1b6)=>{for(var _0x53a7c4=_0x28a1b6>0x1?void 0x0:_0x28a1b6?ze(_0x580331,_0x4fb1b2):_0x580331,_0x1c7884=_0x5b21d7['length']-0x1,_0x18b3bb;_0x1c7884>=0x0;_0x1c7884--)(_0x18b3bb=_0x5b21d7[_0x1c7884])&&(_0x53a7c4=_0x18b3bb(_0x53a7c4)||_0x53a7c4);return _0x53a7c4;},Re=(_0x149490,_0x94228e)=>(_0x4f0993,_0x598418)=>_0x94228e(_0x4f0993,_0x598418,_0x149490);let fe=class extends a[_0x458e3c(0x161)]{constructor(_0x4b5e90,_0x22a25a){const _0x47209e=_0x458e3c;super(),this[_0x47209e(0x1bb)]=_0x4b5e90,this[_0x47209e(0x243)]=_0x22a25a,this[_0x47209e(0x329)]();}[_0x458e3c(0x329)](){const _0x10fd76=_0x458e3c,_0x489b0a=this;this['disposeWithMe'](this['_docClipboardService'][_0x10fd76(0x257)]({'onBeforePasteImage':async _0xa1e2c1=>{const _0x4e892b=_0x10fd76,_0x3478f5=await _0x489b0a[_0x4e892b(0x243)][_0x4e892b(0x12b)](_0xa1e2c1);return _0x3478f5?{'source':_0x3478f5[_0x4e892b(0x315)],'imageSourceType':_0x3478f5['imageSourceType']}:null;}}));}};fe=Je([Re(0x0,b[_0x458e3c(0x32e)]),Re(0x1,qe[_0x458e3c(0x1d9)])],fe);const Oe=[_0x458e3c(0x2db),'jiqing500',_0x458e3c(0x181),_0x458e3c(0x139),'blue400',_0x458e3c(0x16d)];class Ce extends a[_0x458e3c(0x34c)]{constructor(){const _0x54bc41=_0x458e3c;super(...arguments),h(this,_0x54bc41(0x259),new Map()),h(this,_0x54bc41(0x283),0x0);}['assignAColorForMemberID'](_0x55abb0){const _0x196a75=_0x458e3c;if(this['_assignedColors'][_0x196a75(0x31f)](_0x55abb0))return this[_0x196a75(0x259)]['get'](_0x55abb0);const _0x4e66fa=Oe[this[_0x196a75(0x283)]];return this[_0x196a75(0x283)]=(this[_0x196a75(0x283)]+0x1)%Oe[_0x196a75(0x24f)],this[_0x196a75(0x259)][_0x196a75(0x22f)](_0x55abb0,_0x4e66fa),_0x4e66fa;}}function Le(_0x2ba6fc){const _0x2cde0d=_0x458e3c;let _0x12bd10='';for(const _0x5f0d94 of _0x2ba6fc){const {startOffset:_0x29b923,endOffset:_0x5f5a07,isActive:_0x5653b5,rangeType:_0x31f76f,segmentId:_0x8ad853,segmentPage:_0x58769c}=_0x5f0d94;_0x12bd10[_0x2cde0d(0x24f)]&&(_0x12bd10+=','),_0x12bd10+=_0x29b923+':'+_0x5f5a07+':'+(_0x5653b5?'1':'0')+':'+_0x31f76f+':'+_0x8ad853+':'+_0x58769c;}return _0x12bd10;}function Ze(_0x10d1ac){const _0x226e8f=_0x458e3c,_0x5275d8=_0x10d1ac[_0x226e8f(0x168)](','),_0x12206f=[];for(const _0x47a0e6 of _0x5275d8){const [_0x4b0b81,_0x248d76,_0x6ce232,_0x4281bb,_0x497aed,_0x121599]=_0x47a0e6[_0x226e8f(0x168)](':');_0x12206f[_0x226e8f(0x1de)]({'startOffset':Number(_0x4b0b81),'endOffset':Number(_0x248d76),'collapsed':_0x4b0b81===_0x248d76,'isActive':_0x6ce232==='1','rangeType':_0x4281bb===a[_0x226e8f(0x260)][_0x226e8f(0x269)]?a[_0x226e8f(0x260)][_0x226e8f(0x269)]:a[_0x226e8f(0x260)][_0x226e8f(0x1dd)],'segmentId':typeof _0x497aed==_0x226e8f(0x10a)?String(_0x497aed):'','segmentPage':Number(_0x121599!=null?_0x121599:-0x1)});}return _0x12206f[_0x226e8f(0x1dc)](_0x39d2fc=>_0x39d2fc['isActive'])||(_0x12206f[0x0]['isActive']=!0x0),_0x12206f;}class pe extends a['RxDisposable']{constructor(){const _0x5f5434=_0x458e3c;super(...arguments),h(this,_0x5f5434(0x317),new d[(_0x5f5434(0x333))](null)),h(this,_0x5f5434(0x327),this[_0x5f5434(0x317)][_0x5f5434(0x312)]());}[_0x458e3c(0x13e)](_0x21589d){const _0x15e518=_0x458e3c,{unitID:_0x195c9b,memberID:_0x53f451,textRanges:_0x10e780}=_0x21589d,_0x379aca=Le(_0x10e780);if(_0x379aca==='')return;const _0x2673d0={'unitID':_0x195c9b,'memberID':_0x53f451,'selection':_0x379aca};this['_collabCursorState$'][_0x15e518(0x275)](_0x2673d0);}}var Qe=Object[_0x458e3c(0x133)],et=(_0xee535b,_0x2dc882,_0x56d5b8,_0x31335f)=>{for(var _0x26ca01=_0x31335f>0x1?void 0x0:_0x31335f?Qe(_0x2dc882,_0x56d5b8):_0x2dc882,_0x5eb071=_0xee535b['length']-0x1,_0x41c835;_0x5eb071>=0x0;_0x5eb071--)(_0x41c835=_0xee535b[_0x5eb071])&&(_0x26ca01=_0x41c835(_0x26ca01)||_0x26ca01);return _0x26ca01;},N=(_0x3485d5,_0x442799)=>(_0x5f5a6b,_0xdf1938)=>_0x442799(_0x5f5a6b,_0xdf1938,_0x3485d5);const tt=0x12c,st=0x64;let Se=class extends a[_0x458e3c(0x161)]{constructor(_0x207c7e,_0x1a81b1,_0x38acd7,_0x26e56a,_0x5a6980,_0x41ca83,_0x34e2cf,_0x30280e,_0x3c5abf){const _0x280617=_0x458e3c;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x280617(0x23e),new d[(_0x280617(0x333))](new Map())),h(this,'cursorInfo$',this[_0x280617(0x23e)][_0x280617(0x312)]()),h(this,_0x280617(0x287),new d[(_0x280617(0x333))]([])),h(this,_0x280617(0x1ee),this[_0x280617(0x287)][_0x280617(0x2c6)](d[_0x280617(0x1c2)](tt))),h(this,_0x280617(0x182),a[_0x280617(0x2c5)](_0xf55246=>{const _0x27f0eb=_0x280617,_0x2f25c3={'eventID':m[_0x27f0eb(0x149)][_0x27f0eb(0x325)],'data':{'unitID':this[_0x27f0eb(0x2cc)],'memberID':this[_0x27f0eb(0x30b)]['getMemberID'](),'selection':Le(_0xf55246)}};this['_session'][_0x27f0eb(0x1e9)](_0x2f25c3,this[_0x27f0eb(0x2cc)]);},st)),(this[_0x280617(0x2cc)]=_0x207c7e,this[_0x280617(0x30b)]=_0x1a81b1,this[_0x280617(0x15f)]=_0x38acd7,this[_0x280617(0x16e)]=_0x26e56a,this[_0x280617(0x1a4)]=_0x5a6980,this['_syncEditingCollabCursorService']=_0x41ca83,this['_transformService']=_0x34e2cf,this['_univerInstanceService']=_0x30280e,this[_0x280617(0x346)]=_0x3c5abf);}get[_0x458e3c(0x164)](){const _0x29b42d=_0x458e3c;return this[_0x29b42d(0x23e)][_0x29b42d(0x208)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x458e3c(0x36a)](){const _0x1447ed=_0x458e3c;super['dispose'](),this[_0x1447ed(0x23e)][_0x1447ed(0x275)](new Map()),this[_0x1447ed(0x23e)][_0x1447ed(0x262)](),this[_0x1447ed(0x287)][_0x1447ed(0x275)]([]),this[_0x1447ed(0x287)]['complete']();}[_0x458e3c(0x248)](){const _0x3d9e37=_0x458e3c;this['_init']||(this['_init']=!0x0,this[_0x3d9e37(0x30b)][_0x3d9e37(0xf6)][_0x3d9e37(0x2c6)](d[_0x3d9e37(0x291)](this['dispose$']))[_0x3d9e37(0x1d1)](_0x5cd26a=>{const _0x344b10=_0x3d9e37;_0x5cd26a===u[_0x344b10(0x146)]['ONLINE']?this[_0x344b10(0x27c)]():this[_0x344b10(0x2eb)]();}),this[_0x3d9e37(0x30b)]['event$'][_0x3d9e37(0x2c6)](d['takeUntil'](this['dispose$']))[_0x3d9e37(0x1d1)](_0xa120e6=>{const _0x54af82=_0x3d9e37,_0x442229=_0xa120e6[_0x54af82(0x32c)];_0x442229===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x54af82(0x318)](_0xa120e6),_0x442229===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x54af82(0x27b)](_0xa120e6);}),this[_0x3d9e37(0x16f)](this[_0x3d9e37(0x346)][_0x3d9e37(0x2f8)](_0x26c8ca=>{const _0x329378=_0x3d9e37,_0x35f34c=_0x26c8ca[_0x329378(0x156)];_0x35f34c!=null&&this['_online']&&_0x26c8ca['id']===Y[_0x329378(0x26f)]['id']&&_0x35f34c[_0x329378(0x2d7)]===this[_0x329378(0x2cc)]&&_0x35f34c[_0x329378(0x2e7)]===!0x1&&_0x35f34c[_0x329378(0x302)][_0x329378(0x24f)]>0x0&&this[_0x329378(0x182)](_0x35f34c[_0x329378(0x302)]);})),this['_syncEditingCollabCursorService'][_0x3d9e37(0x327)][_0x3d9e37(0x2c6)](d[_0x3d9e37(0x291)](this['dispose$']))[_0x3d9e37(0x1d1)](_0x64a18c=>{const _0x4da197=_0x3d9e37;if((_0x64a18c==null?void 0x0:_0x64a18c[_0x4da197(0x2cc)])!==this['unitID'])return;const _0x323189={'eventID':m[_0x4da197(0x149)][_0x4da197(0x325)],'data':_0x64a18c};this['_onCursorUpdate'](_0x323189);}),this[_0x3d9e37(0x16f)](this['_commandService'][_0x3d9e37(0x2f8)](_0x28c3f3=>{const _0x2d97c5=_0x3d9e37;if(_0x28c3f3[_0x2d97c5(0x156)]==null)return;const _0x2e3f8d=_0x28c3f3[_0x2d97c5(0x156)];if(_0x28c3f3['id']!==Y[_0x2d97c5(0x2c1)]['id']||_0x2e3f8d[_0x2d97c5(0x2d7)]!==this['unitID'])return;const _0x481e95={'id':_0x2d97c5(0x17f),'params':_0x2e3f8d},_0xfc965c=this[_0x2d97c5(0x164)];for(const [_0x171840,_0x238c34]of _0xfc965c){const _0x14b0c8={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2d97c5(0x2cc)],'actions':null,'textRanges':_0x238c34[_0x2d97c5(0x302)]}},_0x49852c=this['_transformService'][_0x2d97c5(0x29a)](_0x481e95,_0x14b0c8,!0x1);if(m[_0x2d97c5(0x1ef)](_0x49852c))throw _0x49852c['error'];_0xfc965c[_0x2d97c5(0x22f)](_0x171840,{..._0x238c34,'ranges':_0x49852c[_0x2d97c5(0x1cb)][_0x2d97c5(0x156)][_0x2d97c5(0x11f)]});}queueMicrotask(()=>{const _0x489d29=_0x2d97c5;this[_0x489d29(0x23e)][_0x489d29(0x275)](_0xfc965c);});})));}['_onCursorUpdate'](_0x1f0c7b){const _0x37ef41=_0x458e3c;var _0x7073a4,_0x5e6b45;const {memberID:_0x1de3fd,selection:_0xd444f6}=_0x1f0c7b['data'],_0x8595a=Ze(_0xd444f6),_0x436f39=(_0x5e6b45=(_0x7073a4=this[_0x37ef41(0x1a4)][_0x37ef41(0x279)](this[_0x37ef41(0x2cc)],_0x1de3fd))==null?void 0x0:_0x7073a4[_0x37ef41(0x1af)])!=null?_0x5e6b45:_0x37ef41(0x159),_0x4968a4={'color':this['_colorAssignService'][_0x37ef41(0x2c0)](_0x1de3fd),'name':_0x436f39,'ranges':_0x8595a},_0x827f32=this[_0x37ef41(0x164)];_0x827f32['set'](_0x1de3fd,_0x4968a4),this[_0x37ef41(0x23e)][_0x37ef41(0x275)](_0x827f32);}[_0x458e3c(0x27b)](_0x2918b8){const _0xeed1d7=_0x458e3c,{memberID:_0x460c54}=_0x2918b8[_0xeed1d7(0x16a)],_0x47205c=this['cursorInfo'];_0x47205c[_0xeed1d7(0x115)](_0x460c54),this[_0xeed1d7(0x23e)][_0xeed1d7(0x275)](_0x47205c);}['_toggleOnline'](){const _0x16a59c=_0x458e3c;var _0x35f12c;if(this[_0x16a59c(0x24d)]=!0x0,((_0x35f12c=this[_0x16a59c(0x2c7)]['getFocusedUnit']())==null?void 0x0:_0x35f12c[_0x16a59c(0x191)]())!==this[_0x16a59c(0x2cc)])return;const _0x17db33=this[_0x16a59c(0x15f)][_0x16a59c(0x102)](Y[_0x16a59c(0x266)])[_0x16a59c(0x1e4)]();Array[_0x16a59c(0x236)](_0x17db33)&&_0x17db33['length']>0x0&&this[_0x16a59c(0x182)](_0x17db33);}[_0x458e3c(0x2eb)](){const _0x1a7f06=_0x458e3c;this[_0x1a7f06(0x24d)]=!0x1;}};Se=et([N(0x2,a[_0x458e3c(0x33d)](a[_0x458e3c(0x25e)])),N(0x3,a[_0x458e3c(0x33d)](Ce)),N(0x4,a[_0x458e3c(0x33d)](u['MemberService'])),N(0x5,a[_0x458e3c(0x33d)](pe)),N(0x6,m[_0x458e3c(0x187)]),N(0x7,a['IUniverInstanceService']),N(0x8,a[_0x458e3c(0x2be)])],Se);var nt=Object[_0x458e3c(0x133)],it=(_0x1d4e40,_0x415662,_0x446fc3,_0xd43b56)=>{for(var _0x2eaf1e=_0xd43b56>0x1?void 0x0:_0xd43b56?nt(_0x415662,_0x446fc3):_0x415662,_0x5ec49b=_0x1d4e40['length']-0x1,_0x2a25e5;_0x5ec49b>=0x0;_0x5ec49b--)(_0x2a25e5=_0x1d4e40[_0x5ec49b])&&(_0x2eaf1e=_0x2a25e5(_0x2eaf1e)||_0x2eaf1e);return _0x2eaf1e;},y=(_0x36fd89,_0x31bd28)=>(_0x412560,_0x47e46f)=>_0x31bd28(_0x412560,_0x47e46f,_0x36fd89);const rt=0x12c,ot=0x64,at=()=>{let _0x2f770a=[],_0x3d8004=!0x1;return _0x45e764=>{const _0x330f90=_0x2db8;_0x2f770a[_0x330f90(0x1de)](_0x45e764),_0x3d8004||(_0x3d8004=!0x0,setTimeout(()=>{const _0x3fbea6=_0x330f90;_0x2f770a[_0x3fbea6(0x176)](_0x174e15=>_0x174e15()),_0x2f770a=[],_0x3d8004=!0x1;}));};};let ve=class extends a[_0x458e3c(0x161)]{constructor(_0x10fc6e,_0x5d706e,_0x41c9db,_0x548c8d,_0x43255a,_0x2c48c0,_0x340fa8,_0x28cc5c){const _0x50af7e=_0x458e3c;super(),h(this,_0x50af7e(0x24d),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,_0x50af7e(0x104),this[_0x50af7e(0x23e)]['asObservable']()),h(this,_0x50af7e(0x287),new d['BehaviorSubject']([])),h(this,_0x50af7e(0x1ee),this[_0x50af7e(0x287)]['pipe'](d[_0x50af7e(0x1c2)](rt))),h(this,'_updateLocalCursor',a[_0x50af7e(0x2c5)]((_0x3851f6,_0x3322f6)=>{const _0x570702=_0x50af7e,_0x31a817={'eventID':m['CollaborationEvent'][_0x570702(0x325)],'data':{'unitID':this[_0x570702(0x2cc)],'memberID':this['_session'][_0x570702(0x2f9)](),'selection':Te[_0x570702(0x348)](_0x3851f6,_0x3322f6[_0x570702(0x33f)])}};this[_0x570702(0x30b)][_0x570702(0x1e9)](_0x31a817,this[_0x570702(0x2cc)]);},ot)),(this[_0x50af7e(0x2cc)]=_0x10fc6e,this[_0x50af7e(0x30b)]=_0x5d706e,this[_0x50af7e(0x15f)]=_0x41c9db,this[_0x50af7e(0x16e)]=_0x548c8d,this[_0x50af7e(0x1a4)]=_0x43255a,this[_0x50af7e(0x2c7)]=_0x2c48c0,this[_0x50af7e(0x346)]=_0x340fa8,this[_0x50af7e(0x127)]=_0x28cc5c);}get[_0x458e3c(0x164)](){const _0x18abd7=_0x458e3c;return this[_0x18abd7(0x23e)][_0x18abd7(0x208)]();}get[_0x458e3c(0x232)](){const _0x3f7dde=_0x458e3c;return this[_0x3f7dde(0x287)]['getValue']();}[_0x458e3c(0x36a)](){const _0x396a89=_0x458e3c;super[_0x396a89(0x36a)](),this[_0x396a89(0x23e)]['next'](new Map()),this[_0x396a89(0x23e)]['complete'](),this[_0x396a89(0x287)][_0x396a89(0x275)]([]),this[_0x396a89(0x287)]['complete']();}[_0x458e3c(0x248)](){const _0x590ae1=_0x458e3c;this[_0x590ae1(0x329)]||(this['_init']=!0x0,this[_0x590ae1(0x30b)]['sessionStatus$'][_0x590ae1(0x2c6)](d[_0x590ae1(0x291)](this[_0x590ae1(0x278)]))[_0x590ae1(0x1d1)](_0x32556a=>{const _0x1d4e7c=_0x590ae1;_0x32556a===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x1d4e7c(0x2eb)]();}),this[_0x590ae1(0x30b)][_0x590ae1(0x234)][_0x590ae1(0x2c6)](d[_0x590ae1(0x291)](this['dispose$']))[_0x590ae1(0x1d1)](_0x1b5973=>{const _0xa6da92=_0x590ae1,_0x548996=_0x1b5973['eventID'];_0x548996===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0xa6da92(0x318)](_0x1b5973),_0x548996===m['CollaborationEvent']['USERS_LEAVE']&&this[_0xa6da92(0x27b)](_0x1b5973);}),this['_onRefRangeChange'](),this[_0x590ae1(0x16f)](this[_0x590ae1(0x346)]['onCommandExecuted'](_0x5351a5=>{const _0x491904=_0x590ae1;if(this['_online']&&_0x5351a5['id']===I[_0x491904(0x203)]['id']&&_0x5351a5[_0x491904(0x156)][_0x491904(0x2d7)]===this['unitID']){const _0x39be7e=_0x5351a5[_0x491904(0x156)];this[_0x491904(0x182)](_0x39be7e[_0x491904(0x10b)],_0x39be7e[_0x491904(0x119)][0x0]);}})));}['_onCursorUpdate'](_0xeb6b33){const _0x1869af=_0x458e3c;var _0x450f06,_0x38f99f;const {memberID:_0x360793,selection:_0x52bc15}=_0xeb6b33[_0x1869af(0x16a)],{sheetName:_0x5dfedb,range:_0x40a0c1}=Te['deserializeRangeWithSheet'](_0x52bc15),_0x4ab6e9={'name':(_0x38f99f=(_0x450f06=this[_0x1869af(0x1a4)][_0x1869af(0x279)](this[_0x1869af(0x2cc)],_0x360793))==null?void 0x0:_0x450f06[_0x1869af(0x1af)])!=null?_0x38f99f:_0x1869af(0x159),'range':this[_0x1869af(0x2e5)](_0x5dfedb,_0x40a0c1),'sheetID':_0x5dfedb,'color':this[_0x1869af(0x16e)][_0x1869af(0x2c0)](_0x360793),'selection':_0x52bc15},_0x35ef21=this['cursorInfo'];_0x35ef21[_0x1869af(0x22f)](_0x360793,_0x4ab6e9),this[_0x1869af(0x23e)][_0x1869af(0x275)](_0x35ef21);}[_0x458e3c(0x27b)](_0x16aec8){const _0x349d25=_0x458e3c,{memberID:_0x59d592}=_0x16aec8[_0x349d25(0x16a)],_0x233bf7=this['cursorInfo'];_0x233bf7[_0x349d25(0x115)](_0x59d592),this[_0x349d25(0x23e)][_0x349d25(0x275)](_0x233bf7);}[_0x458e3c(0x2e5)](_0x2600c0,_0x13d96e){const _0x3cb1cb=_0x458e3c;var _0x245c01,_0xc028ad;const _0x28a09e=(_0xc028ad=(_0x245c01=this[_0x3cb1cb(0x2c7)][_0x3cb1cb(0x27d)](this['unitID']))==null?void 0x0:_0x245c01[_0x3cb1cb(0x2de)](_0x2600c0))==null?void 0x0:_0xc028ad[_0x3cb1cb(0x30e)]();return(_0x28a09e==null?void 0x0:_0x28a09e[_0x3cb1cb(0x352)](_0x25e691=>a['Rectangle'][_0x3cb1cb(0x1f3)](_0x25e691,_0x13d96e)))||_0x13d96e;}[_0x458e3c(0x135)](){const _0x113a37=_0x458e3c,_0x5912b8=new a[(_0x113a37(0x24a))](),_0x3af6cc=at(),_0xd00ca5=()=>{const _0x287094=_0x113a37;_0x5912b8[_0x287094(0x36a)]();const _0x2dbfd3=(_0x5002a6,_0x29b83f,_0x32c958,_0x48e049)=>{const _0x569d7d=_0x287094;let _0x7805f5=[];switch(_0x5002a6['id']){case I[_0x569d7d(0x2ed)][_0x569d7d(0x2aa)]:{_0x7805f5=I[_0x569d7d(0x309)](_0x5002a6,_0x48e049);break;}case I[_0x569d7d(0x2ed)]['DeleteRangeMoveUpCommandId']:{_0x7805f5=I[_0x569d7d(0x217)](_0x5002a6,_0x48e049);break;}case I[_0x569d7d(0x2ed)][_0x569d7d(0x276)]:{_0x7805f5=I[_0x569d7d(0x1db)](_0x5002a6,_0x48e049);break;}case I['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x7805f5=I[_0x569d7d(0x177)](_0x5002a6,_0x48e049);break;}case I[_0x569d7d(0x2ed)][_0x569d7d(0x21a)]:{_0x7805f5=I['handleInsertRangeMoveRight'](_0x5002a6,_0x48e049);break;}case I[_0x569d7d(0x2ed)][_0x569d7d(0x1b8)]:{_0x7805f5=I[_0x569d7d(0x141)](_0x5002a6,_0x48e049);break;}case I[_0x569d7d(0x2ed)][_0x569d7d(0x160)]:{_0x7805f5=I[_0x569d7d(0x1b4)](_0x5002a6,_0x48e049);break;}case I[_0x569d7d(0x2ed)]['RemoveColCommandId']:{_0x7805f5=I[_0x569d7d(0x216)](_0x5002a6,_0x48e049);break;}case I[_0x569d7d(0x2ed)][_0x569d7d(0x2f4)]:{_0x7805f5=I['handleIRemoveRow'](_0x5002a6,_0x48e049);break;}}const _0x332f61=I[_0x569d7d(0x1fa)](_0x7805f5,_0x48e049),_0x3821bc=this[_0x569d7d(0x164)][_0x569d7d(0x102)](_0x29b83f);if(_0x3821bc&&_0x332f61){const _0x523baf={..._0x3821bc,'range':_0x332f61};this[_0x569d7d(0x164)][_0x569d7d(0x22f)](_0x29b83f,_0x523baf),_0x3af6cc(()=>{const _0x4a054f=_0x569d7d,_0x4df3ac=this['_refRangeService']['registerRefRange'](_0x332f61,_0x376777=>(_0x4df3ac[_0x4a054f(0x36a)](),_0x2dbfd3(_0x376777,_0x29b83f,_0x32c958,_0x332f61)));_0x5912b8[_0x4a054f(0x1b2)](_0x4df3ac);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x323a6f,_0x2ff57b)=>{const _0x21198d=_0x287094,{range:_0x17b4da,sheetID:_0x368074}=_0x323a6f,_0x559e38=this[_0x21198d(0x127)]['registerRefRange'](_0x17b4da,_0x15e2d4=>(_0x559e38['dispose'](),_0x2dbfd3(_0x15e2d4,_0x2ff57b,_0x368074,_0x17b4da)));_0x5912b8[_0x21198d(0x1b2)](_0x559e38);});};this[_0x113a37(0x16f)](a[_0x113a37(0x288)](this['_cursorInfo$'][_0x113a37(0x1d1)](()=>{_0xd00ca5();})));}[_0x458e3c(0x27c)](){const _0x46dde3=_0x458e3c;var _0xf777cd,_0x2c3c3e;if(this['_online']=!0x0,((_0xf777cd=this['_univerInstanceService'][_0x46dde3(0x2e6)]())==null?void 0x0:_0xf777cd['getUnitId']())!==this[_0x46dde3(0x2cc)])return;const _0x541405=(_0x2c3c3e=this[_0x46dde3(0x15f)][_0x46dde3(0x102)](I[_0x46dde3(0x2cb)])['getCurrentSelections']())==null?void 0x0:_0x2c3c3e[0x0],_0x29faea=this[_0x46dde3(0x2c7)][_0x46dde3(0x33e)](a[_0x46dde3(0x25d)][_0x46dde3(0x1ca)])[_0x46dde3(0x10f)]();_0x541405&&_0x29faea&&this[_0x46dde3(0x182)](_0x29faea[_0x46dde3(0x297)](),_0x541405);}[_0x458e3c(0x2eb)](){const _0x38dbcc=_0x458e3c;this[_0x38dbcc(0x24d)]=!0x1;}};ve=it([y(0x2,a[_0x458e3c(0x33d)](a[_0x458e3c(0x25e)])),y(0x3,a[_0x458e3c(0x33d)](Ce)),y(0x4,a[_0x458e3c(0x33d)](u[_0x458e3c(0x205)])),y(0x5,a[_0x458e3c(0x121)]),y(0x6,a[_0x458e3c(0x2be)]),y(0x7,a['Inject'](I['RefRangeService']))],ve);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x41b111,_0x2ae1e6,_0x6761f4,_0x133b88)=>{for(var _0x31f317=_0x133b88>0x1?void 0x0:_0x133b88?ct(_0x2ae1e6,_0x6761f4):_0x2ae1e6,_0x42cdc0=_0x41b111['length']-0x1,_0x4f145d;_0x42cdc0>=0x0;_0x42cdc0--)(_0x4f145d=_0x41b111[_0x42cdc0])&&(_0x31f317=_0x4f145d(_0x31f317)||_0x31f317);return _0x31f317;},ie=(_0x2092f1,_0x2e2589)=>(_0x330d54,_0x2710e2)=>_0x2e2589(_0x330d54,_0x2710e2,_0x2092f1);let x=class extends a[_0x458e3c(0x161)]{constructor(_0x158e8a,_0x3f24f0,_0x8ec393){const _0x2a505f=_0x458e3c;super(),h(this,_0x2a505f(0x148),new Map()),h(this,_0x2a505f(0x340),new d[(_0x2a505f(0x2bf))]()),(this[_0x2a505f(0x2c7)]=_0x158e8a,this['_injector']=_0x3f24f0,this[_0x2a505f(0x244)]=_0x8ec393,this[_0x2a505f(0x329)]());}[_0x458e3c(0x36a)](){const _0x5f0bd0=_0x458e3c;super[_0x5f0bd0(0x36a)](),this[_0x5f0bd0(0x340)][_0x5f0bd0(0x262)](),this['_entities']['forEach'](_0x2de06f=>_0x2de06f[_0x5f0bd0(0x36a)]());}[_0x458e3c(0x144)](_0x293036){const _0x559a57=_0x458e3c;return this['_entities']['has'](_0x293036)?this[_0x559a57(0x148)][_0x559a57(0x102)](_0x293036)['cursorInfo$']:this[_0x559a57(0x340)]['pipe'](d[_0x559a57(0x270)](_0x5b7620=>_0x5b7620[_0x559a57(0x2cc)]===_0x293036),d[_0x559a57(0x2e2)](_0xa791d3=>_0xa791d3[_0x559a57(0x104)]));}[_0x458e3c(0x329)](){const _0x45b8b8=_0x458e3c;this[_0x45b8b8(0x2c7)][_0x45b8b8(0x280)](a[_0x45b8b8(0x25d)]['UNIVER_SHEET'])[_0x45b8b8(0x2c6)](d[_0x45b8b8(0x291)](this[_0x45b8b8(0x278)]))[_0x45b8b8(0x1d1)](async _0x3bcec6=>{const _0x469266=_0x45b8b8,_0x1e40af=_0x3bcec6[_0x469266(0x191)](),_0x590ed7=await this[_0x469266(0x31a)](_0x1e40af);this[_0x469266(0x340)][_0x469266(0x275)](_0x590ed7),this[_0x469266(0x148)][_0x469266(0x22f)](_0x1e40af,_0x590ed7);}),this[_0x45b8b8(0x2c7)][_0x45b8b8(0x280)](a[_0x45b8b8(0x25d)][_0x45b8b8(0x18f)])[_0x45b8b8(0x2c6)](d['takeUntil'](this[_0x45b8b8(0x278)]))[_0x45b8b8(0x2c6)](d[_0x45b8b8(0x270)](_0x59d88e=>!_0x59d88e['getUnitId']()[_0x45b8b8(0x1d5)]('__')))[_0x45b8b8(0x1d1)](async _0x2fa79b=>{const _0x109b75=_0x45b8b8,_0x3feaff=_0x2fa79b['getUnitId'](),_0x277bc4=await this[_0x109b75(0x214)](_0x3feaff);this[_0x109b75(0x340)]['next'](_0x277bc4),this[_0x109b75(0x148)][_0x109b75(0x22f)](_0x3feaff,_0x277bc4);}),d[_0x45b8b8(0x2f7)](this[_0x45b8b8(0x2c7)]['getTypeOfUnitDisposed$'](a[_0x45b8b8(0x25d)][_0x45b8b8(0x18f)]),this[_0x45b8b8(0x2c7)][_0x45b8b8(0x201)](a[_0x45b8b8(0x25d)][_0x45b8b8(0x1ca)]))[_0x45b8b8(0x2c6)](d[_0x45b8b8(0x291)](this[_0x45b8b8(0x278)]))['subscribe'](_0x1d8310=>{const _0x2d72c2=_0x45b8b8,_0x3ca00b=_0x1d8310[_0x2d72c2(0x191)](),_0x59cc72=this[_0x2d72c2(0x148)][_0x2d72c2(0x102)](_0x3ca00b);_0x59cc72&&(_0x59cc72['dispose'](),this[_0x2d72c2(0x148)][_0x2d72c2(0x115)](_0x3ca00b));});}async[_0x458e3c(0x31a)](_0x1f91ce){const _0x265c8b=_0x458e3c,_0x25e256=await this[_0x265c8b(0x244)][_0x265c8b(0x1cf)](_0x1f91ce),_0x2253a1=this[_0x265c8b(0x15f)][_0x265c8b(0x183)](ve,_0x1f91ce,_0x25e256);return _0x2253a1[_0x265c8b(0x248)](),_0x2253a1;}async[_0x458e3c(0x214)](_0x3cedb0){const _0x540b44=_0x458e3c,_0x4c2fb9=await this['_collabSessionService'][_0x540b44(0x1cf)](_0x3cedb0),_0x276cbe=this[_0x540b44(0x15f)][_0x540b44(0x183)](Se,_0x3cedb0,_0x4c2fb9);return _0x276cbe[_0x540b44(0x248)](),_0x276cbe;}};x=lt([ie(0x0,a[_0x458e3c(0x121)]),ie(0x1,a[_0x458e3c(0x33d)](a[_0x458e3c(0x25e)])),ie(0x2,a[_0x458e3c(0x33d)](u['CollaborationSessionService']))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _0x3269(){const _0x5e1a02=['UnitStatus','_anchorDot','_revisionService','_disabled','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','YUUMI_SUBSCRIPTION_NOT_FOUND','addClipboardHook','fillText','_assignedColors','registerDependencies','undoState','AWAITING_WITH_PENDING','UniverInstanceType','Injector','80248MltUot','DOC_RANGE_TYPE','Error','complete','_initEntityListener','href','_saveCache','DocSelectionManagerService','_status$','getColor','TEXT','getVpScrollXYInfoByPosToVp','220ZQyFtT','connectInjector','search','url(#off-line-single_clip0_910_343)','SetTextSelectionsOperation','filter','CollaborationDataLoaderController','univer-online-status','then','collaboration.closeRoom','next','InsertColCommandId','error','dispose$','getMember','memberID','_onCursorDelete','_toggleOnline','getUniverSheetInstance','LICENSE_DISTRO_REJECTED','1tQSxAM','getTypeOfUnitAdded$','runId','ILocalStorageService','_colorIndex','loadUnit','_docTransformSelectionsService','saveTaskMap','_roomMembers$','toDisposable','/run/','throttleTime','_scheduleHeartbeat','endColumn','IBeforeCloseService','getOwnPropertySymbols','call','_hideTimer','takeUntil','sessionTicket','session.collaboration-timeout','APPLY_REJECT','onlineStatusIcon','_localCacheService','getSheetId','_drawRectRange','closePath','transformMutation','origin','_drawAnchor','rxjs/operators','OffLineSingle','_docTransformIMECacheService','DEFAULT_WS_SESSION_TICKET_URL','_localStorageService','urlChange$','AWAITING','redoState','addObjects','indexOf','0\x200\x2017\x2016','_handleHeartbeatEvent','_hovered','DeleteRangeMoveLeftCommandId','executeCommand','backgroundColor','_registerDependencies','UNAUTHENTICATED','hasOwnProperty','colorChannel1','_labelPosition','PERMISSION_DENIED','COLORS','getCellPositionByOffset','_getSessionTicket','DocStateChangeManagerService','Rect','getUndoRedoMutationParamsCache','path','column','CommandType','assign','toString','ICommandService','Subject','assignAColorForMemberID','RichTextEditingMutation','translate(.97)','CLOSE_ROOM','_anchor','debounce','pipe','_univerInstanceService','@univerjs-pro/collaboration','CONFLICT','getAncestorScale','SheetsSelectionsService','unitID','_draw','onPointerEnter$','resize','UniverCollaborationClientUIPlugin','COMPLETION_FINISHED','_themeService','@univerjs/engine-render','_handleEvent','8133630NUfCWe','focused$','unitId','mutations','getConfig','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','purple300','OTHER_CLIENT_EDITING','replaceDocRanges','getSheetBySheetId','@univerjs/core','518688EkzaUQ','OFFLINE','switchMap','setInterval','CHANGESET_REVISION_CONFILICT','_getMergeRange','getFocusedUnit','isEditing','getRenderById','displayName','CONNECTOR_DATA_TOO_LARGE','_toggleOffline','_handleHover','EffectRefRangId','fillStyle','ILogService','_unitOnClients','executionId','children','collabStatus.conflict','RemoveRowCommandId','_eventUnsubscribe','@univerjs/sheets-ui','merge','onCommandExecuted','getMemberID','SheetSkeletonManagerService','Warning','_configService','mergeOverrideWithDependencies','_getSaveTimeout','#FFF','Tools','@univerjs/design','ranges','_shapes','_handleJoinEvent','IConfigService','useCallback','height','VIEW_MAIN','handleDeleteRangeMoveLeft','currentTheme$','_session','setAlpha','debug','getMergeData','SetWorksheetActivateCommand','endRow','_scheduleClearOtherTimer','asObservable','ALREADY_EXISTS','@univerjs/rpc','source','map','_collabCursorState$','_onCursorUpdate','subscribeEvent','_startSheetCollabCursor','current','WebBrowserSingleActiveUnitService','setParam','createSocket','has','collabStatus.syncing','_updateURLWithCurrentState','_id','forwardRef','transformStateCache','UPDATE_CURSOR','SHEET_VIEWPORT_KEY','collabCursorState$','currentSkeleton$','_init','_initStatusListener','MUTATION','eventID','loadOfflineData','IDocClipboardService','getCurrentRevOfUnit','_registerRenderDependencies','_uiPartsService','_initDependencies','BehaviorSubject','@univerjs/sheets','IURLService','YUUMI_RATE_OVER_LIMIT','labelPosition','on-line-single','@univerjs/drawing','INTERNAL_ERROR','session.connection-failed','SNAPSHOT_INVALID_SNAPSHOT','Inject','getCurrentUnitForType','range','_entityInit$','INotificationService','UNRECOGNIZED','ILocalCacheService','_removeCollabCursors','_setupBeforeClosingHandler','_commandService','function','serializeRangeWithSheet','BuiltInUIPart','engine','_collabCursorController','Disposable','_httpService','PENDING','INVALID_ARGUMENT','1em','useRef','find','off-line-single_clip0_910_343','_logService','APPLY_REVISION_CONFILICT','measureText','FromArray','onRendered','CollaborationSessionService','url(#$1','jsxs','react','setItem','with','font','pluginName','registerRenderModule','_sheetSkeletonManagerService','DocIMEInputManagerService','color','activeSheet$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','unshift','_removeClearOtherTimer','symbol','dispose','UNDEFINED','_getAnchorBounding','_clearOtherTimers','_docSkeleton','sessionStatus$','#fff','_scheduleSaving','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','[CollaborationDataLoaderController]','defs','size','collab-rect-range-','unload','concat','onMouseMove','collab-text-range-','get','LICENSE_IMPORT_SIZE_EXCEEDED','cursorInfo$','_render','_config','flatMap','pushState','touchDependencies','string','subUnitId','evenodd','url(#on-line-single_clip0_910_349)','lineTo','getActiveSheet','DependentOn','getOffsetConfig','fill','attrs','_cursor','delete','_notificationService','sheetId','DesktopCollaborationStatusDisplayController','selections','text','CollaborationStatus','22cfhmzL','override','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','textRanges','substring','IUniverInstanceService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','univer-online-status-icon','arc','defIds','width','_refRangeService','_collaborationUIEventService','Vector2','updateOfflineData','saveImage','NOT_COLLAB','ENSURE_SNAPSHOT_EXECUTION','JOIN_ROOM_FAILED','mapTo','docStateChange$','_messageService','onlineStatusTitle','getOwnPropertyDescriptor','FETCH_MISS','_onRefRangeChange','restore','m1Prime','getLocalCacheKey','red300','Shape','_cursors','IRenderManagerService','storage','syncEditingCollabCursor','1379662uxHihA','Failed','handleInsertRow','getParam','black','getCollabCursors$','registerComponent','SessionStatus','Workbook','_entities','CollaborationEvent','hide','SNAPSHOT_HAS_BEEN_REMOVED','saveOfflineData','_initStatusComponent','LOCAL_CACHE_INTERVAL_KEY','subunit','_transformHistoryAndStateStack','includes','unsubscribe','sheetID','PY_RUNTIME_SCRIPT_ERROR','useDependency','params','collaboration-client.offline-data-not-saved','none','Unknown\x20user','RegularPolygon','newValue','show','M0\x200H16V16H0z','type','_injector','MoveRangeCommandId','RxDisposable','9dLimXm','transformRemoteChangeset','cursorInfo','combineLatest','svg','Plugin','split','_setupSubUnitSync','data','_handleLeaveEvent','_initEvent','gold400','_colorAssignService','disposeWithMe','apply','_cursorShapes','min','generateRandomId','BrowserCollaborationSocketService','enableLocalCache','forEach','handleInsertRangeMoveDown','defineProperty','moveTo','95496bRPuwJ','hovered','deepClone','bottom','round','doc.mutation.rich-text-editing','_send','verdancy600','_updateLocalCursor','createInstance','getUnitStatus$','distinctUntilChanged','595lUUSCB','ITransformService','IMessageService','LICENSE_MAX_UNITS_EXCEEDED','searchParams','rxjs','NO_OTHER_CLIENTS_EDITING','fromEvent','TRANSFORM_CHANGE_OBSERVABLE_TYPE','UNIVER_DOC','4700529IHcdZN','getUnitId','_docTransformStateCacheService','_urlService','setUndoRedoMutationParamsCache','makeDirty','setShapeProps','selection','TEXT_RANGE_LAYER_INDEX','_createSocketURL','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getRangePointData','OnLineSingle','CollaborationUIEventId','off-line-single','clipPath','entityInit$','Module','_scene','clearInterval','_memberService','@univerjs/ui','clsx','post','Optional','_transformUndoRedoStack','_collaborationController','ACTIVE_UNIT_EVENT_CHANNEL','@univerjs-pro/collaboration-client','LocaleService','collabStatus.notCollab','name','DocSkeletonManagerService','_refreshCollabCursors','add','_color','handleMoveRange','RevisionService','TOO_MANY_REQUESTS','DataLoaderService','InsertRowCommandId','@univerjs/docs','HEADER_MENU','_docClipboardService','_transformService','editingUnit','LICENSE_EXPORT_SIZE_EXCEEDED','idSuffix','application/json','transform','debounceTime','actions','_drawTextRange','values','onlineStatus','_updateSubUnitFromURLParams','_instanceService','_context','UNIVER_SHEET','m2Prime','transformIMECache','save','_hover','requireSession','from','subscribe','row','collaboration-client-ui.config','_docStateChangeManagerService','startsWith','16794384Fnodpz','reconnect','univer-online','IImageIoService','NOT_FOUND','handleInsertCol','some','RECT','push','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','jsx','getCoordByCell','NodePositionConvertToRectRange','permission.content','getDocRanges','_backgroundColor','_textBubble','use','mask','send','YUUMI_UNABLE_LOAD_URL','_heartbeatTimer','findNodePositionByCharIndex','getCollabEntity$','roomMembers$','isTransformMutationFailure','max','_lastPointer','toRgbString','contains','getViewport','...','_name','HTTPService','currentColor','_cachedData','runRefRangeMutations','WebURLService','replaceState','CollaborationController','getCurrent','_initCommandExecutedListener','_ensureSubject','getTypeOfUnitDisposed$','@univerjs/network','SetSelectionsOperation','univerjs-icon\x20univerjs-icon-','MemberService','MessageType','rgba(255,\x20255,\x20255,\x200.01)','getValue','_initResize','univer-flex\x20univer-items-center','addEventListener','APPLY_NON_SEQUENTIAL_REVISION','div','drawWith','_dataLoaderService','clearTimeout','on-line-single_clip0_910_349','_saveTaskMap','CollaborationStatusDisplay','_startDocCollabCursor','_renderManagerService','handleIRemoveCol','handleDeleteRangeMoveUp','all','_getScale','InsertRangeMoveRightCommandId','skeleton','stringify','location','transformSelections','createElement','fromEventSubject','SUBMIT_CHANGESET_TIMEOUT','getStateCache','prototype','transformMutationsWithChangeset','_updateCollabCursors','collab-client.tooltip.reconnect','_selfUnitIDs','setTimeout','addObject','_range','OTHER_CLIENTS_EDITING','@univerjs/engine-formula','getSkeleton','history','set','[RemoteUniscriptService]:\x20no\x20focused\x20unit','onStarting','roomMembers','onPointerLeave$','event$','_localeService','isArray','random','exhaustSavingTask','RemoteUniscriptService','className','_document','isTransformMutationsWithChangesetSuccess','_beforeCloseService','_cursorInfo$','_getSheetObject','tag','_unitStatus','beginPath','_imageIoService','_collabSessionService','icon','replace','WebSocketService','init','disposeUnit','DisposableCollection','NodePositionConvertToCursor','top','_online','body','length','YUUMI_URL_COL_OUT_OF_RANGE'];_0x3269=function(){return _0x5e1a02;};return _0x3269();}function _t(_0x58fbd3,_0x32c3bb){const _0x59e22a=_0x458e3c;let {radius:_0x2fc811,width:_0x13febe,height:_0x5d7394}=_0x32c3bb;_0x2fc811=_0x2fc811!=null?_0x2fc811:0x0,_0x13febe=_0x13febe!=null?_0x13febe:0x1e,_0x5d7394=_0x5d7394!=null?_0x5d7394:0x1e;let _0xb169ea=0x0,_0x5bfee5=0x0,_0x37ee34=0x0;_0xb169ea=_0x5bfee5=_0x37ee34=Math['min'](_0x2fc811,_0x13febe/0x2,_0x5d7394/0x2),_0x58fbd3[_0x59e22a(0x242)](),_0x58fbd3[_0x59e22a(0x179)](_0xb169ea,0x0),_0x58fbd3[_0x59e22a(0x10e)](_0x13febe-_0x5bfee5,0x0),_0x58fbd3[_0x59e22a(0x124)](_0x13febe-_0x5bfee5,_0x5bfee5,_0x5bfee5,Math['PI']*0x3/0x2,0x0,!0x1),_0x58fbd3['lineTo'](_0x13febe,_0x5d7394-_0x37ee34),_0x58fbd3[_0x59e22a(0x124)](_0x13febe-_0x37ee34,_0x5d7394-_0x37ee34,_0x37ee34,0x0,Math['PI']/0x2,!0x1),_0x58fbd3[_0x59e22a(0x10e)](0x0,_0x5d7394),_0x58fbd3[_0x59e22a(0x10e)](0x0,_0xb169ea),_0x58fbd3[_0x59e22a(0x124)](_0xb169ea,_0xb169ea,_0xb169ea,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x58fbd3[_0x59e22a(0x299)](),_0x32c3bb[_0x59e22a(0x112)]&&(_0x58fbd3[_0x59e22a(0x1cd)](),_0x58fbd3[_0x59e22a(0x2ee)]=_0x32c3bb['fill'],_0x32c3bb['fillRule']===_0x59e22a(0x10c)?_0x58fbd3[_0x59e22a(0x112)](_0x59e22a(0x10c)):_0x58fbd3[_0x59e22a(0x112)](),_0x58fbd3[_0x59e22a(0x136)]());}class te extends p[_0x458e3c(0x13a)]{constructor(_0x5ee085,_0x379821){const _0x555de4=_0x458e3c;super(_0x5ee085,_0x379821),h(this,_0x555de4(0x364)),h(this,_0x555de4(0x11a)),(this[_0x555de4(0x364)]=_0x379821==null?void 0x0:_0x379821[_0x555de4(0x364)],this[_0x555de4(0x11a)]=_0x379821==null?void 0x0:_0x379821[_0x555de4(0x11a)]);}static['drawWith'](_0x2e1482,_0x597799){const _0x4e84d4=_0x458e3c,{text:_0x4c8787,color:_0x3fb656}=_0x597799;_0x2e1482['save'](),_0x2e1482[_0x4e84d4(0x35f)]=_0x4e84d4(0x1df);const _0x36b9b7=_0x2e1482[_0x4e84d4(0x356)](_0x4c8787)[_0x4e84d4(0x126)],_0x28a3cb=Math[_0x4e84d4(0x172)](_0x36b9b7+0x2*re,De);_t(_0x2e1482,{'height':K,'radius':0x4,'width':_0x28a3cb,'fill':_0x3fb656}),_0x2e1482[_0x4e84d4(0x2ee)]=_0x4e84d4(0x2ff);const _0x3a8e8c=re,_0x3f6e16=K-ht,_0x23d331=De-0x2*re;if(_0x36b9b7>_0x23d331){let _0x5680de='',_0x3198d4=0x0;for(const _0x5df8ff of _0x4c8787){const _0x45f316=_0x2e1482[_0x4e84d4(0x356)](_0x5df8ff)[_0x4e84d4(0x126)];if(_0x3198d4+_0x45f316<=_0x23d331-_0x2e1482[_0x4e84d4(0x356)]('...')[_0x4e84d4(0x126)])_0x5680de+=_0x5df8ff,_0x3198d4+=_0x45f316;else{_0x5680de+=_0x4e84d4(0x1f5);break;}}_0x2e1482[_0x4e84d4(0x258)](_0x5680de,_0x3a8e8c,_0x3f6e16);}else _0x2e1482[_0x4e84d4(0x258)](_0x4c8787,_0x3a8e8c,_0x3f6e16);_0x2e1482[_0x4e84d4(0x136)]();}[_0x458e3c(0x2cd)](_0x513232){const _0x392f47=_0x458e3c;te[_0x392f47(0x20e)](_0x513232,this);}}const oe='collab-text-anchor-',ut=_0x458e3c(0x101),dt=_0x458e3c(0xfd),B=0x6,ft=1.5,ae=0x4,St=1.5,vt=_0x458e3c(0x207);class Ue{constructor(_0x21def4,_0x118946,_0x464e97,_0x1b3f30){const _0x59adfe=_0x458e3c;h(this,_0x59adfe(0x303),[]),h(this,_0x59adfe(0x2c4),null),h(this,_0x59adfe(0x1e6),null),h(this,_0x59adfe(0x252),null),h(this,_0x59adfe(0x290),null),h(this,_0x59adfe(0x2f5),null),(this[_0x59adfe(0x114)]=_0x21def4,this[_0x59adfe(0x1a2)]=_0x118946,this[_0x59adfe(0xf5)]=_0x464e97,this[_0x59adfe(0x23b)]=_0x1b3f30,this[_0x59adfe(0x105)]());}set['_hover'](_0x2dfb73){const _0x5b28ba=_0x458e3c;_0x2dfb73?(this['_anchorDot']&&this[_0x5b28ba(0x252)][_0x5b28ba(0x14a)](),this[_0x5b28ba(0x1e6)]&&this[_0x5b28ba(0x1e6)][_0x5b28ba(0x15c)]()):(this[_0x5b28ba(0x252)]&&this[_0x5b28ba(0x252)]['show'](),this[_0x5b28ba(0x1e6)]&&this[_0x5b28ba(0x1e6)][_0x5b28ba(0x14a)]());}[_0x458e3c(0x36a)](){const _0x46c266=_0x458e3c;for(const _0x4b271f of this[_0x46c266(0x303)])_0x4b271f[_0x46c266(0x36a)]();this[_0x46c266(0x1e6)]&&this[_0x46c266(0x1e6)][_0x46c266(0x36a)](),this[_0x46c266(0x252)]&&this[_0x46c266(0x252)][_0x46c266(0x36a)](),this[_0x46c266(0x2c4)]&&this[_0x46c266(0x2c4)][_0x46c266(0x36a)](),this[_0x46c266(0x2f5)]&&this['_eventUnsubscribe']();}[_0x458e3c(0x105)](){const _0x56453c=_0x458e3c;var _0x3a5d4c;const {_docSkeleton:_0x47e096,_document:_0x513133}=this,{color:_0x2ac9bb,name:_0x273f0a,ranges:_0x230822}=this[_0x56453c(0x114)],_0x3d372c=_0x513133[_0x56453c(0x111)](),{docsLeft:_0x349209,docsTop:_0x3c9724}=_0x3d372c,_0x5d42a0=new b[(_0x56453c(0x24b))](_0x3d372c,_0x47e096);for(const {startOffset:_0x4f0e93,endOffset:_0x4a5bce,rangeType:_0x507516,segmentId:_0x36651f,segmentPage:_0x941214,collapsed:_0x2327b8,isActive:_0x53a53b}of _0x230822){const _0x3e569d=_0x47e096[_0x56453c(0x1ec)](_0x4f0e93,!0x0,_0x36651f,_0x941214);let _0x3a656f=_0x47e096[_0x56453c(0x1ec)](_0x4a5bce,!0x0,_0x36651f,_0x941214);if(_0x3a656f==null&&(_0x3a656f=_0x47e096[_0x56453c(0x1ec)](_0x4a5bce-0x1,!0x1,_0x36651f,_0x941214)),_0x53a53b){const {contentBoxPointGroup:_0x10bf77}=_0x5d42a0[_0x56453c(0x19b)](_0x3a656f,_0x3a656f);if(_0x10bf77[_0x56453c(0x24f)]===0x0)continue;this[_0x56453c(0x29c)](_0x2ac9bb,_0x10bf77,_0x349209,_0x3c9724,_0x273f0a),this[_0x56453c(0x2f5)]=this[_0x56453c(0x2ec)]();}if(_0x3e569d&&_0x3a656f){if(_0x507516===a[_0x56453c(0x260)]['RECT']){const _0x11ad3e=new b[(_0x56453c(0x1e2))](_0x3d372c,_0x47e096),{pointGroup:_0x35bd04}=(_0x3a5d4c=_0x11ad3e[_0x56453c(0x19b)](_0x3e569d,_0x3a656f))!=null?_0x3a5d4c:{};if(_0x35bd04==null||_0x35bd04['length']===0x0)continue;this[_0x56453c(0x298)](_0x2ac9bb,_0x35bd04,_0x349209,_0x3c9724);}else{if(!_0x2327b8){const {borderBoxPointGroup:_0x719964}=_0x5d42a0[_0x56453c(0x19b)](_0x3e569d,_0x3a656f);if(_0x719964['length']===0x0)continue;this[_0x56453c(0x1c4)](_0x2ac9bb,_0x719964,_0x349209,_0x3c9724);}}}}}[_0x458e3c(0x29c)](_0x305966,_0x45ed67,_0x3632fa,_0x12fbba,_0x12a599){const _0x6ebb2e=_0x458e3c,_0x41ba80=this[_0x6ebb2e(0xf3)](_0x45ed67),{left:_0x5ae6bb,top:_0x43c68c,height:_0x562439}=_0x41ba80,_0x3016f7=this[_0x6ebb2e(0x219)](),_0x2c7a3a=St/_0x3016f7,_0x4032a0=new p[(_0x6ebb2e(0x2b7))](oe+a[_0x6ebb2e(0x300)][_0x6ebb2e(0x173)](B),{'left':_0x5ae6bb+_0x3632fa-_0x2c7a3a,'top':_0x43c68c+_0x12fbba,'height':_0x562439,'width':ft,'fill':_0x305966||p['getColor'](a[_0x6ebb2e(0x2b3)][_0x6ebb2e(0x143)],0x0),'strokeWidth':_0x2c7a3a,'stroke':vt,'evented':!0x0});this[_0x6ebb2e(0x2c4)]=_0x4032a0,this[_0x6ebb2e(0x1a2)][_0x6ebb2e(0x229)](_0x4032a0,b[_0x6ebb2e(0x198)]);const _0x51479c=new p[(_0x6ebb2e(0x2b7))](oe+a[_0x6ebb2e(0x300)][_0x6ebb2e(0x173)](B),{'left':_0x5ae6bb+_0x3632fa-_0x2c7a3a,'top':_0x43c68c+_0x12fbba-ae/0x2,'height':ae,'width':ae,'fill':_0x305966||p[_0x6ebb2e(0x268)](a[_0x6ebb2e(0x2b3)][_0x6ebb2e(0x143)],0x0),'strokeWidth':0x0,'stroke':_0x305966||p[_0x6ebb2e(0x268)](a['COLORS'][_0x6ebb2e(0x143)],0x0),'evented':!0x1});this[_0x6ebb2e(0x252)]=_0x51479c,this[_0x6ebb2e(0x1a2)][_0x6ebb2e(0x229)](_0x51479c,b['TEXT_RANGE_LAYER_INDEX']);const _0x3f132f=new te(oe+a[_0x6ebb2e(0x300)][_0x6ebb2e(0x173)](B),{'left':_0x5ae6bb+_0x3632fa-_0x2c7a3a,'top':_0x43c68c+_0x12fbba-K,'text':_0x12a599,'color':_0x305966});this[_0x6ebb2e(0x1e6)]=_0x3f132f,this[_0x6ebb2e(0x1a2)][_0x6ebb2e(0x229)](_0x3f132f,b[_0x6ebb2e(0x198)]),this[_0x6ebb2e(0x1ce)]=!0x1;}[_0x458e3c(0x2ec)](){const _0x29cb79=_0x458e3c,_0x433840=this['_anchor'][_0x29cb79(0x2ce)][_0x29cb79(0x319)](()=>{const _0x20bccf=_0x29cb79;this[_0x20bccf(0x1ce)]=!0x0;}),_0xc733c7=this[_0x29cb79(0x2c4)][_0x29cb79(0x233)][_0x29cb79(0x319)](()=>{const _0x505f9d=_0x29cb79;this[_0x505f9d(0x290)]&&clearTimeout(this[_0x505f9d(0x290)]),this['_hideTimer']=setTimeout(()=>{const _0x8f801b=_0x505f9d;this[_0x8f801b(0x1ce)]=!0x1;},0x7d0);});return()=>{const _0x29e107=_0x29cb79;_0x433840['unsubscribe'](),_0xc733c7[_0x29e107(0x152)]();};}[_0x458e3c(0x1c4)](_0xc368c1,_0x19aa3e,_0x4f1835,_0x1df8e5){const _0x370252=_0x458e3c,_0x5bab02=new a['ColorKit'](_0xc368c1)[_0x370252(0x30c)](0.2)['toRgbString'](),_0x463d4b=new p[(_0x370252(0x15a))](ut+a[_0x370252(0x300)]['generateRandomId'](B),{'pointsGroup':_0x19aa3e,'fill':_0x5bab02||p['getColor'](a[_0x370252(0x2b3)][_0x370252(0x143)],0.2),'left':_0x4f1835,'top':_0x1df8e5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x370252(0x303)][_0x370252(0x1de)](_0x463d4b),this[_0x370252(0x1a2)][_0x370252(0x229)](_0x463d4b,b[_0x370252(0x198)]);}[_0x458e3c(0x298)](_0x8b7bb9,_0x167ce8,_0x5bd207,_0x35a9ae){const _0x1712ce=_0x458e3c,_0x323058=new a['ColorKit'](_0x8b7bb9)['setAlpha'](0.2)[_0x1712ce(0x1f2)](),_0x22cf1c=new p[(_0x1712ce(0x15a))](dt+a[_0x1712ce(0x300)][_0x1712ce(0x173)](B),{'pointsGroup':_0x167ce8,'fill':_0x323058||p[_0x1712ce(0x268)](a['COLORS'][_0x1712ce(0x143)],0.2),'left':_0x5bd207,'top':_0x35a9ae,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1712ce(0x303)][_0x1712ce(0x1de)](_0x22cf1c),this[_0x1712ce(0x1a2)][_0x1712ce(0x229)](_0x22cf1c,b[_0x1712ce(0x198)]);}['_getAnchorBounding'](_0xdebfbf){const _0x26e474=_0xdebfbf[0x0],_0x48ace1=_0x26e474[0x0],_0x305273=_0x26e474[0x2],{x:_0x361483,y:_0x48f2b3}=_0x48ace1,{x:_0x16ea59,y:_0x4d152d}=_0x305273;return{'left':_0x361483,'top':_0x48f2b3,'width':_0x16ea59-_0x361483,'height':_0x4d152d-_0x48f2b3};}['_getScale'](){const _0x4cb4f4=_0x458e3c,{scaleX:_0x400dde,scaleY:_0xa2d700}=this[_0x4cb4f4(0x1a2)][_0x4cb4f4(0x2ca)]();return Math[_0x4cb4f4(0x1f0)](_0x400dde,_0xa2d700);}}var gt=Object[_0x458e3c(0x133)],It=(_0x3711cc,_0x14f098,_0xe37349,_0x2e7986)=>{const _0x2c4f3e=_0x458e3c;for(var _0x1a6400=_0x2e7986>0x1?void 0x0:_0x2e7986?gt(_0x14f098,_0xe37349):_0x14f098,_0x5c479c=_0x3711cc[_0x2c4f3e(0x24f)]-0x1,_0x45d238;_0x5c479c>=0x0;_0x5c479c--)(_0x45d238=_0x3711cc[_0x5c479c])&&(_0x1a6400=_0x45d238(_0x1a6400)||_0x1a6400);return _0x1a6400;},X=(_0x19374b,_0x35ee20)=>(_0x2aaf21,_0x3efdcf)=>_0x35ee20(_0x2aaf21,_0x3efdcf,_0x19374b);let ge=class extends a[_0x458e3c(0x161)]{constructor(_0x3ab351,_0x47583f,_0x2a8c0d,_0x3d0452,_0x34a19a){const _0x23bd41=_0x458e3c;super(),h(this,'_cursorShapes',[]),h(this,'_cursors',[]),(this[_0x23bd41(0x1c9)]=_0x3ab351,this['_docSkeletonManagerService']=_0x47583f,this[_0x23bd41(0x34b)]=_0x2a8c0d,this[_0x23bd41(0x346)]=_0x3d0452,this[_0x23bd41(0x2d2)]=_0x34a19a,this[_0x23bd41(0x329)]());}['_init'](){const _0x10dce7=_0x458e3c,_0x536ed8=this['_context'][_0x10dce7(0x2d7)],_0x49a644=this['_docSkeletonManagerService'];this[_0x10dce7(0x16f)](d[_0x10dce7(0x165)]([this['_collabCursorController'][_0x10dce7(0x144)](_0x536ed8),this[_0x10dce7(0x2d2)]['currentTheme$']])[_0x10dce7(0x2c6)]($[_0x10dce7(0x316)](([_0x3a8c66,_0x667b8])=>({'skeleton':_0x49a644[_0x10dce7(0x22d)](),'cursors':[..._0x3a8c66[_0x10dce7(0x1c5)]()][_0x10dce7(0x107)](_0x39cac4=>({..._0x39cac4,'color':_0x667b8[_0x39cac4['color']]}))})))[_0x10dce7(0x1d1)](_0x26e226=>{const _0x54bfeb=_0x10dce7;if(this[_0x54bfeb(0x344)](),_0x26e226){const {skeleton:_0xb1dbba,cursors:_0x1dc986}=_0x26e226;this[_0x54bfeb(0x225)](_0xb1dbba,_0x1dc986);}})),this[_0x10dce7(0x209)](),this[_0x10dce7(0x1ff)]();}[_0x458e3c(0x225)](_0x3363f6,_0x4d5c33){const _0x512486=_0x458e3c,{scene:_0x2b6fed,mainComponent:_0x3268eb}=this[_0x512486(0x1c9)],_0xc87c94=_0x4d5c33['map'](_0x6a53e2=>new Ue(_0x6a53e2,_0x2b6fed,_0x3363f6,_0x3268eb));this['_cursorShapes']=_0xc87c94,this[_0x512486(0x13b)]=_0x4d5c33;}[_0x458e3c(0x1b1)](){const _0x26f0f8=_0x458e3c;this[_0x26f0f8(0x344)]();const {scene:_0x57df05,mainComponent:_0x41a0ce}=this[_0x26f0f8(0x1c9)],_0x38dfe8=this['_docSkeletonManagerService'][_0x26f0f8(0x22d)](),_0x286cc3=this['_cursors'][_0x26f0f8(0x316)](_0x4caa7e=>new Ue(_0x4caa7e,_0x57df05,_0x38dfe8,_0x41a0ce));this[_0x26f0f8(0x171)]=_0x286cc3;}[_0x458e3c(0x344)](){const _0x27e3d4=_0x458e3c;this['_cursorShapes'][_0x27e3d4(0x176)](_0x471dd1=>_0x471dd1[_0x27e3d4(0x36a)]()),this[_0x27e3d4(0x171)]=[];}[_0x458e3c(0x1ff)](){const _0x286a82=_0x458e3c,_0xfc6238=[b['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0x286a82(0x346)][_0x286a82(0x2f8)](_0x439ad2=>{const _0x4f6f26=_0x286a82;_0xfc6238[_0x4f6f26(0x151)](_0x439ad2['id'])&&_0x439ad2[_0x4f6f26(0x156)][_0x4f6f26(0x2d7)]===this[_0x4f6f26(0x1c9)][_0x4f6f26(0x2d7)]&&this[_0x4f6f26(0x1b1)]();}));}['_initResize'](){const _0x150527=_0x458e3c;this[_0x150527(0x16f)](a[_0x150527(0x220)](this[_0x150527(0x1c9)][_0x150527(0x34a)]['onTransformChange$'])[_0x150527(0x2c6)]($['filter'](_0x3ad978=>_0x3ad978['type']===p[_0x150527(0x18e)][_0x150527(0x2cf)]),$[_0x150527(0x28a)](0x10))['subscribe'](()=>{const _0x99bb9f=_0x150527;this[_0x99bb9f(0x1b1)]();}));}};ge=It([X(0x1,a[_0x458e3c(0x33d)](Y[_0x458e3c(0x1b0)])),X(0x2,a[_0x458e3c(0x33d)](x)),X(0x3,a['ICommandService']),X(0x4,a[_0x458e3c(0x33d)](a['ThemeService']))],ge);const mt=0x1,Ct=1.5;class ye extends p[_0x458e3c(0x13a)]{constructor(_0x129b38,_0x4551f3){const _0x3e511d=_0x458e3c;super(_0x129b38,_0x4551f3),h(this,'_color'),h(this,_0x3e511d(0x2a9),!0x1),h(this,_0x3e511d(0x22a)),h(this,_0x3e511d(0x1f6),''),h(this,'_labelPosition',_0x3e511d(0x24c)),h(this,_0x3e511d(0x1e5)),(_0x4551f3&&this[_0x3e511d(0x196)](_0x4551f3),this[_0x3e511d(0x2ce)][_0x3e511d(0x319)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x3e511d(0x319)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x458e3c(0x196)](_0x4bc738){const _0xa96f83=_0x458e3c;var _0xf6c41b,_0x390ea3,_0x582e4b,_0x11e955,_0x25df1b,_0x892dca;this[_0xa96f83(0x1b3)]=(_0xf6c41b=_0x4bc738[_0xa96f83(0x364)])!=null?_0xf6c41b:this[_0xa96f83(0x1b3)],this[_0xa96f83(0x2a9)]=(_0x390ea3=_0x4bc738[_0xa96f83(0x17b)])!=null?_0x390ea3:this[_0xa96f83(0x2a9)],this[_0xa96f83(0x22a)]=(_0x582e4b=_0x4bc738[_0xa96f83(0x33f)])!=null?_0x582e4b:this[_0xa96f83(0x22a)],this[_0xa96f83(0x1f6)]=(_0x11e955=_0x4bc738[_0xa96f83(0x1af)])!=null?_0x11e955:this[_0xa96f83(0x1f6)],this[_0xa96f83(0x2b1)]=(_0x25df1b=_0x4bc738[_0xa96f83(0x337)])!=null?_0x25df1b:this[_0xa96f83(0x2b1)],this['_backgroundColor']=(_0x892dca=_0x4bc738[_0xa96f83(0x2ac)])!=null?_0x892dca:this[_0xa96f83(0x1e5)],this['transformByState']({'width':_0x4bc738[_0xa96f83(0x126)],'height':_0x4bc738[_0xa96f83(0x307)]});}['onMouseMove'](_0x389e66){const _0x3c6be5=_0x458e3c,{row:_0x575d90,column:_0x4efde4}=_0x389e66;if(_0x575d90>=this[_0x3c6be5(0x22a)]['startRow']&&_0x575d90<=this['_range'][_0x3c6be5(0x310)]&&_0x4efde4>=this[_0x3c6be5(0x22a)]['startColumn']&&_0x4efde4<=this[_0x3c6be5(0x22a)][_0x3c6be5(0x28c)]){this[_0x3c6be5(0x196)]({'hovered':!0x0});return;}this[_0x3c6be5(0x196)]({'hovered':!0x1});}['triggerDblclick'](_0x48acf2){return!0x1;}['_draw'](_0x469a89){const _0x31d08f=_0x458e3c;p['Rect'][_0x31d08f(0x20e)](_0x469a89,{'width':this[_0x31d08f(0x126)],'height':this[_0x31d08f(0x307)],'strokeWidth':Ct,'stroke':this[_0x31d08f(0x1b3)],'evented':!0x1,'fill':this[_0x31d08f(0x1e5)]}),this['_hovered']&&(_0x469a89[_0x31d08f(0x1cd)](),_0x469a89[_0x31d08f(0x1c1)](0x1,0x0,0x0,0x1,this[_0x31d08f(0x126)],this[_0x31d08f(0x2b1)]===_0x31d08f(0x17d)?0x0:-0x14),te['drawWith'](_0x469a89,{'text':this['_name'],'color':this[_0x31d08f(0x1b3)]}),_0x469a89[_0x31d08f(0x136)]());}}var pt=Object['getOwnPropertyDescriptor'],bt=(_0x304350,_0x4b063e,_0x50919b,_0x121d40)=>{const _0x220e63=_0x458e3c;for(var _0xcbbbf9=_0x121d40>0x1?void 0x0:_0x121d40?pt(_0x4b063e,_0x50919b):_0x4b063e,_0x5b78d2=_0x304350[_0x220e63(0x24f)]-0x1,_0xb65a09;_0x5b78d2>=0x0;_0x5b78d2--)(_0xb65a09=_0x304350[_0x5b78d2])&&(_0xcbbbf9=_0xb65a09(_0xcbbbf9)||_0xcbbbf9);return _0xcbbbf9;},ce=(_0x4ee6b1,_0x36a6c6)=>(_0x5c4c27,_0x2559ca)=>_0x36a6c6(_0x5c4c27,_0x2559ca,_0x4ee6b1);const Et=0x1389;let Ie=class extends a[_0x458e3c(0x161)]{constructor(_0x36229f,_0x3e6046,_0x5003a2,_0x413ae2){const _0x51a6aa=_0x458e3c;super(),h(this,_0x51a6aa(0x13b),new Set()),h(this,_0x51a6aa(0x1f1),null),(this[_0x51a6aa(0x1c9)]=_0x36229f,this['_sheetSkeletonManagerService']=_0x3e6046,this[_0x51a6aa(0x34b)]=_0x5003a2,this['_themeService']=_0x413ae2,this[_0x51a6aa(0x329)]());}[_0x458e3c(0x329)](){const _0x18242f=_0x458e3c;this[_0x18242f(0x362)]['currentSkeleton$'][_0x18242f(0x2c6)]($[_0x18242f(0x291)](this[_0x18242f(0x278)]),$[_0x18242f(0x2e2)](_0x5f0688=>{const _0x543708=_0x18242f;if(_0x5f0688){const _0x4fdf71=_0x5f0688[_0x543708(0x117)];return d[_0x543708(0x165)](this['_collabCursorController']['getCollabCursors$'](this[_0x543708(0x1c9)][_0x543708(0x2d7)]),this[_0x543708(0x2d2)][_0x543708(0x30a)])['pipe']($[_0x543708(0x316)](([_0x18152a,_0x238758])=>{const _0x24954a=_0x543708,_0x4ba511=new Map();return _0x18152a[_0x24954a(0x176)]((_0x5fb3eb,_0x48b195)=>{const _0x3b76b6=_0x24954a;if(_0x5fb3eb[_0x3b76b6(0x153)]===_0x4fdf71){const _0x4ca09a={..._0x5fb3eb};_0x4ca09a[_0x3b76b6(0x364)]=_0x238758[_0x5fb3eb['color']],_0x4ba511['set'](_0x48b195,_0x4ca09a);}}),{'skeleton':_0x5f0688,'cursors':_0x4ba511};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5e9891,cursors:_0x5f0f52})=>{const _0x46e651=_0x18242f;this['_removeCollabCursors'](),_0x5e9891&&this[_0x46e651(0x225)](_0x5e9891,_0x5f0f52);}),this[_0x18242f(0x362)][_0x18242f(0x328)]['subscribe'](_0x4e5a87=>{const _0x32d6f9=_0x18242f;if(_0x4e5a87==null)return;const {skeleton:_0x1a2c00}=_0x4e5a87,{scene:_0x45dab9}=this[_0x32d6f9(0x1c9)];_0x45dab9['onPointerMove$'][_0x32d6f9(0x319)](a[_0x32d6f9(0x2c5)](_0x2bc6f1=>{const _0x5f1b6b=_0x32d6f9;var _0x428e31,_0x5a8820;const {offsetX:_0x3089d2,offsetY:_0x471a0d}=_0x2bc6f1,{x:_0x146325,y:_0x1bd470}=_0x45dab9['getRelativeToViewportCoord'](p[_0x5f1b6b(0x129)][_0x5f1b6b(0x357)]([_0x3089d2,_0x471a0d])),{scaleX:_0x243a8d,scaleY:_0x35c034}=_0x45dab9[_0x5f1b6b(0x2ca)](),_0x49be0e=_0x45dab9[_0x5f1b6b(0x1f4)](p[_0x5f1b6b(0x326)][_0x5f1b6b(0x308)]),_0x4d0023=_0x45dab9[_0x5f1b6b(0x26a)](p[_0x5f1b6b(0x129)][_0x5f1b6b(0x357)]([_0x146325,_0x1bd470]),_0x49be0e),_0x55c325=_0x1a2c00[_0x5f1b6b(0x2b4)](_0x3089d2,_0x471a0d,_0x243a8d,_0x35c034,_0x4d0023);((_0x428e31=this[_0x5f1b6b(0x1f1)])==null?void 0x0:_0x428e31[_0x5f1b6b(0x2ba)])===_0x55c325['column']&&((_0x5a8820=this[_0x5f1b6b(0x1f1)])==null?void 0x0:_0x5a8820[_0x5f1b6b(0x1d2)])===_0x55c325[_0x5f1b6b(0x1d2)]||this[_0x5f1b6b(0x13b)][_0x5f1b6b(0x176)](_0x5b99c7=>{const _0x2bfad8=_0x5f1b6b;_0x5b99c7[_0x2bfad8(0x100)](_0x55c325);});},0x64));});}[_0x458e3c(0x225)](_0x22d8b1,_0x32cb2c){const _0x3035d9=_0x458e3c;var _0x1301f2;const _0x29d676=(_0x1301f2=this[_0x3035d9(0x362)][_0x3035d9(0x1fe)]())==null?void 0x0:_0x1301f2[_0x3035d9(0x21b)];if(!_0x29d676)return;const _0x174b4b=this[_0x3035d9(0x23f)]();if(!_0x174b4b)return;this[_0x3035d9(0x13b)]['forEach'](_0x267900=>{const _0x22af54=_0x3035d9;_0x267900[_0x22af54(0x195)]();});const {scene:_0x4513f8}=_0x174b4b,_0x3f331c=Tt(Array[_0x3035d9(0x1d0)](_0x32cb2c['values']()))[_0x3035d9(0x316)](_0x5ceecf=>{const _0xe0b30f=_0x3035d9,{color:_0x1c5c06,range:_0x536506,name:_0x5c1be1,selection:_0x5cc87b,sheetID:_0x16d251}=_0x5ceecf,{startColumn:_0x5b6ee6,startRow:_0x59f36d,endColumn:_0x9242c2,endRow:_0x46151c}=_0x536506,_0x53017c=G[_0xe0b30f(0x1e1)](_0x59f36d,_0x5b6ee6,_0x4513f8,_0x29d676),_0x2d9430=G[_0xe0b30f(0x1e1)](_0x46151c,_0x9242c2,_0x4513f8,_0x29d676),{columnHeaderHeightAndMarginTop:_0x585a9b}=_0x29d676,{startX:_0x232d07,startY:_0x34d5ea}=_0x53017c,{endX:_0x3ac6fe,endY:_0x3d21bd}=_0x2d9430,_0x4b0bb1=_0x3ac6fe-_0x232d07,_0x4e7679=_0x3d21bd-_0x34d5ea,_0x358096={'labelPosition':_0x34d5ea-_0x585a9b>=K?'top':_0xe0b30f(0x17d),'sheetID':_0x16d251,'range':_0x536506,'color':_0x1c5c06,'name':_0x5c1be1,'selection':_0x5cc87b,'left':_0x232d07,'top':_0x34d5ea,'width':_0x4b0bb1,'height':_0x4e7679,'evented':!0x1,'zIndex':Et};return new ye(_0x5c1be1,_0x358096);});_0x4513f8[_0x3035d9(0x2a5)](_0x3f331c,mt),this[_0x3035d9(0x13b)]=new Set(_0x3f331c);}['_removeCollabCursors'](){const _0x383520=_0x458e3c;var _0x2146ec;(_0x2146ec=this[_0x383520(0x13b)])==null||_0x2146ec['forEach'](_0x1c266e=>_0x1c266e[_0x383520(0x36a)]());}[_0x458e3c(0x23f)](){return G['getSheetObject'](this['_context']['unit'],this['_context']);}};Ie=bt([ce(0x1,a[_0x458e3c(0x33d)](G[_0x458e3c(0x2fa)])),ce(0x2,a[_0x458e3c(0x33d)](x)),ce(0x3,a[_0x458e3c(0x33d)](a['ThemeService']))],Ie);function Tt(_0x569421){const _0x19bf74=_0x458e3c,_0x31c987=new Map();return _0x569421[_0x19bf74(0x176)](_0x1d6454=>{const _0x748644=_0x19bf74;if(_0x31c987['has'](_0x1d6454['selection'])){const _0x5c0635=_0x31c987[_0x748644(0x102)](_0x1d6454[_0x748644(0x197)]);_0x5c0635[_0x748644(0x1af)]+=',\x20'+_0x1d6454[_0x748644(0x1af)];}else _0x31c987[_0x748644(0x22f)](_0x1d6454[_0x748644(0x197)],_0x1d6454);}),Array[_0x19bf74(0x1d0)](_0x31c987[_0x19bf74(0x1c5)]());}var E=function(){const _0x5426ba=_0x458e3c;return E=Object[_0x5426ba(0x2bc)]||function(_0x14ddfe){const _0x4ce3da=_0x5426ba;for(var _0x47ca79,_0x721e38=0x1,_0x48fe9b=arguments[_0x4ce3da(0x24f)];_0x721e38<_0x48fe9b;_0x721e38++){_0x47ca79=arguments[_0x721e38];for(var _0x5b24ea in _0x47ca79)Object[_0x4ce3da(0x223)]['hasOwnProperty'][_0x4ce3da(0x28f)](_0x47ca79,_0x5b24ea)&&(_0x14ddfe[_0x5b24ea]=_0x47ca79[_0x5b24ea]);}return _0x14ddfe;},E[_0x5426ba(0x170)](this,arguments);},Rt=function(_0x29199c,_0x45f662){const _0x425ec9=_0x458e3c;var _0x3f55bb={};for(var _0x1553cc in _0x29199c)Object[_0x425ec9(0x223)][_0x425ec9(0x2af)][_0x425ec9(0x28f)](_0x29199c,_0x1553cc)&&_0x45f662[_0x425ec9(0x2a6)](_0x1553cc)<0x0&&(_0x3f55bb[_0x1553cc]=_0x29199c[_0x1553cc]);if(_0x29199c!=null&&typeof Object['getOwnPropertySymbols']==_0x425ec9(0x347)){for(var _0x347f51=0x0,_0x1553cc=Object[_0x425ec9(0x28e)](_0x29199c);_0x347f51<_0x1553cc['length'];_0x347f51++)_0x45f662[_0x425ec9(0x2a6)](_0x1553cc[_0x347f51])<0x0&&Object[_0x425ec9(0x223)]['propertyIsEnumerable'][_0x425ec9(0x28f)](_0x29199c,_0x1553cc[_0x347f51])&&(_0x3f55bb[_0x1553cc[_0x347f51]]=_0x29199c[_0x1553cc[_0x347f51]]);}return _0x3f55bb;},be=P[_0x458e3c(0x323)](function(_0x15f237,_0x32d922){const _0x39fd10=_0x458e3c;var _0x20435f=_0x15f237[_0x39fd10(0x245)],_0x316d21=_0x15f237['id'],_0x3e8be4=_0x15f237[_0x39fd10(0x23a)],_0x5c0ab0=_0x15f237['extend'],_0x485fa3=Rt(_0x15f237,[_0x39fd10(0x245),'id',_0x39fd10(0x23a),'extend']),_0x566270=_0x39fd10(0x204)['concat'](_0x316d21,'\x20')['concat'](_0x3e8be4||'')['trim'](),_0x454246=P[_0x39fd10(0x351)]('_'['concat'](Ut()));return Ae(_0x20435f,''[_0x39fd10(0xff)](_0x316d21),{'defIds':_0x20435f[_0x39fd10(0x125)],'idSuffix':_0x454246[_0x39fd10(0x31b)]},E({'ref':_0x32d922,'className':_0x566270},_0x485fa3),_0x5c0ab0);});function Ae(_0x36ae38,_0x3aad13,_0x24b218,_0x2b5745,_0xbcc55b){const _0x183324=_0x458e3c;return P[_0x183324(0x21f)](_0x36ae38[_0x183324(0x240)],E(E({'key':_0x3aad13},Ot(_0x36ae38,_0x24b218,_0xbcc55b)),_0x2b5745),(Dt(_0x36ae38,_0x24b218)[_0x183324(0x2f2)]||[])[_0x183324(0x316)](function(_0x363a6c,_0x57ea8a){const _0x4446a5=_0x183324;return Ae(_0x363a6c,''[_0x4446a5(0xff)](_0x3aad13,'-')['concat'](_0x36ae38['tag'],'-')[_0x4446a5(0xff)](_0x57ea8a),_0x24b218,void 0x0,_0xbcc55b);}));}function Ot(_0x7177d3,_0x2decdd,_0x2577b5){const _0xf823dd=_0x458e3c;var _0x1e2f7e=E({},_0x7177d3[_0xf823dd(0x113)]);_0x2577b5!=null&&_0x2577b5[_0xf823dd(0x2b0)]&&_0x1e2f7e[_0xf823dd(0x112)]===_0xf823dd(0x2b0)&&(_0x1e2f7e[_0xf823dd(0x112)]=_0x2577b5[_0xf823dd(0x2b0)]),_0x7177d3['tag']===_0xf823dd(0x1e8)&&_0x1e2f7e['id']&&(_0x1e2f7e['id']=_0x1e2f7e['id']+_0x2decdd[_0xf823dd(0x1bf)]),Object['entries'](_0x1e2f7e)[_0xf823dd(0x176)](function(_0x85bd27){const _0x2fe383=_0xf823dd;var _0x2e8461=_0x85bd27[0x0],_0x5a2be6=_0x85bd27[0x1];_0x2e8461===_0x2fe383(0x1e8)&&typeof _0x5a2be6==_0x2fe383(0x10a)&&(_0x1e2f7e[_0x2e8461]=_0x5a2be6[_0x2fe383(0x246)](/url\(#(.*)\)/,'url(#$1'[_0x2fe383(0xff)](_0x2decdd[_0x2fe383(0x1bf)],')')));});var _0x3ab05f=_0x2decdd['defIds'];return!_0x3ab05f||_0x3ab05f[_0xf823dd(0x24f)]===0x0||(_0x7177d3[_0xf823dd(0x240)]===_0xf823dd(0x1e7)&&_0x1e2f7e['xlink:href']&&(_0x1e2f7e['xlink:href']=_0x1e2f7e['xlink:href']+_0x2decdd[_0xf823dd(0x1bf)]),Object['entries'](_0x1e2f7e)[_0xf823dd(0x176)](function(_0x10a2a9){const _0x28d7dc=_0xf823dd;var _0x5a2915=_0x10a2a9[0x0],_0xf65b88=_0x10a2a9[0x1];typeof _0xf65b88==_0x28d7dc(0x10a)&&(_0x1e2f7e[_0x5a2915]=_0xf65b88[_0x28d7dc(0x246)](/url\(#(.*)\)/,_0x28d7dc(0x35a)[_0x28d7dc(0xff)](_0x2decdd['idSuffix'],')')));})),_0x1e2f7e;}function Dt(_0xe41a3e,_0x42d273){const _0xdb834e=_0x458e3c;var _0x36d54f,_0x1f6ee6=_0x42d273[_0xdb834e(0x125)];return!_0x1f6ee6||_0x1f6ee6[_0xdb834e(0x24f)]===0x0?_0xe41a3e:_0xe41a3e[_0xdb834e(0x240)]===_0xdb834e(0xfb)&&(!((_0x36d54f=_0xe41a3e[_0xdb834e(0x2f2)])===null||_0x36d54f===void 0x0)&&_0x36d54f['length'])?E(E({},_0xe41a3e),{'children':_0xe41a3e[_0xdb834e(0x2f2)][_0xdb834e(0x316)](function(_0x3f1a4a){const _0x450839=_0xdb834e;return typeof _0x3f1a4a[_0x450839(0x113)]['id']==_0x450839(0x10a)&&_0x1f6ee6&&_0x1f6ee6[_0x450839(0x2a6)](_0x3f1a4a['attrs']['id'])>-0x1?E(E({},_0x3f1a4a),{'attrs':E(E({},_0x3f1a4a['attrs']),{'id':_0x3f1a4a['attrs']['id']+_0x42d273[_0x450839(0x1bf)]})}):_0x3f1a4a;})}):_0xe41a3e;}function Ut(){const _0x12ffd0=_0x458e3c;return Math[_0x12ffd0(0x237)]()[_0x12ffd0(0x2bd)](0x24)[_0x12ffd0(0x120)](0x2,0x8);}be['displayName']='UniverIcon';var Mt={'tag':_0x458e3c(0x166),'attrs':{'fill':_0x458e3c(0x158),'viewBox':'0\x200\x2016\x2016','width':_0x458e3c(0x350),'height':_0x458e3c(0x350)},'children':[{'tag':'g','attrs':{'clipPath':_0x458e3c(0x26e)},'children':[{'tag':_0x458e3c(0x2b9),'attrs':{'stroke':_0x458e3c(0x1f8),'d':_0x458e3c(0x255),'strokeLinecap':_0x458e3c(0x17e),'strokeLinejoin':_0x458e3c(0x17e),'strokeWidth':1.2}}]},{'tag':_0x458e3c(0xfb),'attrs':{},'children':[{'tag':_0x458e3c(0x19f),'attrs':{'id':_0x458e3c(0x353)},'children':[{'tag':_0x458e3c(0x2b9),'attrs':{'fill':_0x458e3c(0xf7),'d':_0x458e3c(0x15d)}}]}]}],'defIds':[_0x458e3c(0x353)]},$e=P[_0x458e3c(0x323)](function(_0x19590a,_0x34afdf){const _0x1e8957=_0x458e3c;return P['createElement'](be,Object['assign']({},_0x19590a,{'id':_0x1e8957(0x19e),'ref':_0x34afdf,'icon':Mt}));});$e['displayName']=_0x458e3c(0x29e);var Pt={'tag':_0x458e3c(0x166),'attrs':{'fill':'none','viewBox':_0x458e3c(0x2a7),'width':_0x458e3c(0x350),'height':_0x458e3c(0x350)},'children':[{'tag':'g','attrs':{'clipPath':_0x458e3c(0x10d)},'children':[{'tag':'path','attrs':{'stroke':_0x458e3c(0x1f8),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x458e3c(0x17e),'strokeWidth':1.2}}]},{'tag':_0x458e3c(0xfb),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x458e3c(0x211)},'children':[{'tag':_0x458e3c(0x2b9),'attrs':{'fill':_0x458e3c(0xf7),'d':_0x458e3c(0x15d),'transform':_0x458e3c(0x2c2)}}]}]}],'defIds':['on-line-single_clip0_910_349']},xe=P['forwardRef'](function(_0x264356,_0x2014db){const _0x36006e=_0x458e3c;return P[_0x36006e(0x21f)](be,Object[_0x36006e(0x2bc)]({},_0x264356,{'id':_0x36006e(0x338),'ref':_0x2014db,'icon':Pt}));});xe[_0x458e3c(0x2e9)]=_0x458e3c(0x19c);const Nt=_0x458e3c(0x123),wt='univer-online-status-title',Lt=_0x458e3c(0x272),yt=_0x458e3c(0x1d8),At='univer-offline',H={'onlineStatusIcon':Nt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':yt,'offline':At};function _0x2db8(_0x3b4a65,_0x4edb3a){const _0x326915=_0x3269();return _0x2db8=function(_0x2db8fe,_0x21fc75){_0x2db8fe=_0x2db8fe-0xf3;let _0x252b47=_0x326915[_0x2db8fe];return _0x252b47;},_0x2db8(_0x3b4a65,_0x4edb3a);}function $t(_0x55ff12){const _0x29686b=_0x458e3c;switch(_0x55ff12){case u[_0x29686b(0x11b)][_0x29686b(0x2e1)]:return'collabStatus.offline';case u[_0x29686b(0x11b)][_0x29686b(0x2c9)]:return _0x29686b(0x2f3);case u[_0x29686b(0x11b)][_0x29686b(0x134)]:return'collabStatus.fetchMiss';case u['CollaborationStatus'][_0x29686b(0x12c)]:return _0x29686b(0x1ae);case u[_0x29686b(0x11b)][_0x29686b(0x2a3)]:case u[_0x29686b(0x11b)][_0x29686b(0x25c)]:return _0x29686b(0x320);case u['CollaborationStatus']['SYNCED']:case u[_0x29686b(0x11b)][_0x29686b(0x34e)]:return'collabStatus.synced';}}function je(_0x194678){const _0x14cb2a=_0x458e3c,{status$:_0x2f7e42}=_0x194678,_0x31990f=R['useObservable'](_0x2f7e42,u[_0x14cb2a(0x11b)][_0x14cb2a(0x12c)]),_0x599e42=R[_0x14cb2a(0x155)](a['LocaleService']),_0x547f74=R['useDependency'](u[_0x14cb2a(0x359)]),_0x1c7606=_0x31990f!==u[_0x14cb2a(0x11b)]['OFFLINE'],_0x53e4ef=_0x599e42['t']($t(_0x31990f)),_0xa7ac5a=T[_0x14cb2a(0x1a6)](H[_0x14cb2a(0x1c6)],{[H['online']]:_0x1c7606,[H['offline']]:!_0x1c7606}),_0xbd058e=_0x1c7606?w[_0x14cb2a(0x1e0)](xe,{}):w[_0x14cb2a(0x1e0)]($e,{}),_0x385134=P[_0x14cb2a(0x306)](()=>{const _0x49fe23=_0x14cb2a;_0x1c7606||_0x547f74[_0x49fe23(0x1d7)]();},[_0x1c7606,_0x547f74]);function _0x1b67ec(){const _0x4d94b6=_0x14cb2a;return w[_0x4d94b6(0x35b)](_0x4d94b6(0x20d),{'className':T[_0x4d94b6(0x1a6)](_0xa7ac5a,_0x4d94b6(0x20a)),'onClick':_0x385134,'children':[w[_0x4d94b6(0x1e0)](_0x4d94b6(0x20d),{'className':H[_0x4d94b6(0x295)],'children':_0xbd058e}),w['jsx'](_0x4d94b6(0x20d),{'className':H[_0x4d94b6(0x132)],'children':_0x53e4ef})]});}return _0x1c7606?_0x1b67ec():w['jsx'](T['Tooltip'],{'title':_0x599e42['t'](_0x14cb2a(0x226)),'children':_0x1b67ec()});}var xt=Object[_0x458e3c(0x133)],jt=(_0x3521fd,_0x3b732b,_0x3a5596,_0x539f1e)=>{const _0x4b6f10=_0x458e3c;for(var _0x3cfa36=_0x539f1e>0x1?void 0x0:_0x539f1e?xt(_0x3b732b,_0x3a5596):_0x3b732b,_0x17a07b=_0x3521fd[_0x4b6f10(0x24f)]-0x1,_0x320c89;_0x17a07b>=0x0;_0x17a07b--)(_0x320c89=_0x3521fd[_0x17a07b])&&(_0x3cfa36=_0x320c89(_0x3cfa36)||_0x3cfa36);return _0x3cfa36;},V=(_0x4c88c1,_0x23552c)=>(_0x3b7189,_0x3dda57)=>_0x23552c(_0x3b7189,_0x3dda57,_0x4c88c1);exports[_0x458e3c(0x118)]=class extends a['Disposable']{constructor(_0x8a4416,_0x3fde4b,_0x25a14a,_0xe383ee){const _0x100b6e=_0x458e3c;super(),h(this,_0x100b6e(0x267),new d[(_0x100b6e(0x333))](u['CollaborationStatus'][_0x100b6e(0x12c)])),(this[_0x100b6e(0x2c7)]=_0x8a4416,this[_0x100b6e(0x15f)]=_0x3fde4b,this[_0x100b6e(0x1aa)]=_0x25a14a,this[_0x100b6e(0x331)]=_0xe383ee,this['_initStatusComponent'](),this[_0x100b6e(0x32a)]());}[_0x458e3c(0x32a)](){const _0x152d50=_0x458e3c;this[_0x152d50(0x16f)](this['_univerInstanceService'][_0x152d50(0x2d6)][_0x152d50(0x2c6)](d[_0x152d50(0x2e2)](()=>{const _0x2263ff=_0x152d50,_0x543e2c=this['_univerInstanceService'][_0x2263ff(0x2e6)]();return _0x543e2c?this[_0x2263ff(0x1aa)][_0x2263ff(0x1ed)](_0x543e2c['getUnitId']()):d['of'](null);}),d['switchMap'](_0xaf506a=>_0xaf506a?_0xaf506a['status$']:d['of'](u[_0x152d50(0x11b)]['NOT_COLLAB'])))[_0x152d50(0x1d1)](_0x5a5090=>{const _0x4698e1=_0x152d50;this['_status$'][_0x4698e1(0x275)](_0x5a5090);}));}[_0x458e3c(0x14d)](){const _0x43ddc6=_0x458e3c;this[_0x43ddc6(0x16f)](this[_0x43ddc6(0x331)][_0x43ddc6(0x145)](R[_0x43ddc6(0x349)][_0x43ddc6(0x1ba)],()=>R[_0x43ddc6(0x26c)](kt({'status$':this[_0x43ddc6(0x267)][_0x43ddc6(0x312)]()}),this[_0x43ddc6(0x15f)])));}},exports[_0x458e3c(0x118)]=jt([V(0x0,a[_0x458e3c(0x121)]),V(0x1,a[_0x458e3c(0x33d)](a[_0x458e3c(0x25e)])),V(0x2,a[_0x458e3c(0x33d)](u[_0x458e3c(0x1fd)])),V(0x3,R['IUIPartsService'])],exports[_0x458e3c(0x118)]);function kt(_0x492d4d){const {status$:_0x328a6d}=_0x492d4d;return function(){const _0x150099=_0x2db8;return w[_0x150099(0x1e0)](je,{'status$':_0x328a6d});};}var Bt=Object[_0x458e3c(0x133)],Ht=(_0x28c60e,_0xcbca56,_0x496235,_0x3ff9cf)=>{const _0x488b55=_0x458e3c;for(var _0x52d4a8=_0x3ff9cf>0x1?void 0x0:_0x3ff9cf?Bt(_0xcbca56,_0x496235):_0xcbca56,_0x40d6c5=_0x28c60e[_0x488b55(0x24f)]-0x1,_0x57e0e4;_0x40d6c5>=0x0;_0x40d6c5--)(_0x57e0e4=_0x28c60e[_0x40d6c5])&&(_0x52d4a8=_0x57e0e4(_0x52d4a8)||_0x52d4a8);return _0x52d4a8;},A=(_0x21b8c1,_0x3b73f6)=>(_0x5d6751,_0x4d0368)=>_0x3b73f6(_0x5d6751,_0x4d0368,_0x21b8c1);let z=class extends a[_0x458e3c(0x34c)]{constructor(_0x3ee014,_0x584e72,_0x649b58,_0x514872,_0x3fd207,_0x5a61c2){const _0x5932e0=_0x458e3c;super(),this['_beforeCloseService']=_0x3ee014,this[_0x5932e0(0x296)]=_0x584e72,this[_0x5932e0(0x128)]=_0x649b58,this[_0x5932e0(0x131)]=_0x514872,this[_0x5932e0(0x116)]=_0x3fd207,this[_0x5932e0(0x235)]=_0x5a61c2,this[_0x5932e0(0x345)](),this[_0x5932e0(0x16c)]();}[_0x458e3c(0x345)](){const _0x14e196=_0x458e3c;this['disposeWithMe'](this[_0x14e196(0x23d)]['registerBeforeClose'](()=>{const _0x51cc4a=_0x14e196;if(this[_0x51cc4a(0x296)][_0x51cc4a(0x286)]['size'])return this['_localeService']['t'](_0x51cc4a(0x157));}));}[_0x458e3c(0x16c)](){const _0x13e585=_0x458e3c;this[_0x13e585(0x16f)](this[_0x13e585(0x128)]['event$'][_0x13e585(0x1d1)](_0x241415=>{const _0xcb3d5f=_0x13e585;_0x241415['id']===u[_0xcb3d5f(0x19d)][_0xcb3d5f(0x2dc)]&&this[_0xcb3d5f(0x131)][_0xcb3d5f(0x15c)]({'type':T[_0xcb3d5f(0x206)]['Warning'],'content':this[_0xcb3d5f(0x235)]['t']('collaboration.single-unit.warning')}),_0x241415['id']===u[_0xcb3d5f(0x19d)][_0xcb3d5f(0x2c3)]&&this[_0xcb3d5f(0x131)]['show']({'type':T[_0xcb3d5f(0x206)][_0xcb3d5f(0x2fb)],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x241415['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0xcb3d5f(0x116)][_0xcb3d5f(0x15c)]({'title':this[_0xcb3d5f(0x235)]['t']('permission.title'),'content':this[_0xcb3d5f(0x235)]['t'](_0xcb3d5f(0x1e3)),'type':_0xcb3d5f(0x277),'duration':0x0}),_0x241415['id']===u['CollaborationUIEventId'][_0xcb3d5f(0x2c9)]&&this['_messageService'][_0xcb3d5f(0x15c)]({'type':T[_0xcb3d5f(0x206)][_0xcb3d5f(0x261)],'content':this[_0xcb3d5f(0x235)]['t'](_0xcb3d5f(0x274))+'('+_0x241415[_0xcb3d5f(0x16a)]+')'}),_0x241415['id']===u['CollaborationUIEventId'][_0xcb3d5f(0x12e)]&&this['_messageService']['show']({'type':T[_0xcb3d5f(0x206)][_0xcb3d5f(0x2fb)],'content':this[_0xcb3d5f(0x235)]['t'](_0x241415[_0xcb3d5f(0x16a)]||'')}),_0x241415['id']===u[_0xcb3d5f(0x19d)]['SOCKET_FAILED_RETRY']&&this['_messageService'][_0xcb3d5f(0x15c)]({'type':T['MessageType'][_0xcb3d5f(0x2fb)],'content':this[_0xcb3d5f(0x235)]['t']('session.will-retry')}),_0x241415['id']===u[_0xcb3d5f(0x19d)]['SOCKET_FAILED']&&this['_messageService']['show']({'type':T[_0xcb3d5f(0x206)][_0xcb3d5f(0x261)],'content':this['_localeService']['t'](_0xcb3d5f(0x33b))}),_0x241415['id']===u[_0xcb3d5f(0x19d)][_0xcb3d5f(0x221)]&&this[_0xcb3d5f(0x131)][_0xcb3d5f(0x15c)]({'type':T[_0xcb3d5f(0x206)]['Error'],'content':this[_0xcb3d5f(0x235)]['t'](_0xcb3d5f(0x293))});}));}};z=Ht([A(0x0,R[_0x458e3c(0x28d)]),A(0x1,u[_0x458e3c(0x343)]),A(0x2,a['Inject'](u['CollaborationUIEventService'])),A(0x3,R[_0x458e3c(0x188)]),A(0x4,R[_0x458e3c(0x341)]),A(0x5,a['Inject'](a[_0x458e3c(0x1ad)]))],z);const Wt=_0x458e3c(0x1d3),Me={},Ee=a['createIdentifier']('uni.network.url-service');var Ft=Object[_0x458e3c(0x133)],Yt=(_0x538629,_0xc925ea,_0xa68c36,_0x386389)=>{for(var _0x4c7d17=_0x386389>0x1?void 0x0:_0x386389?Ft(_0xc925ea,_0xa68c36):_0xc925ea,_0x32f62f=_0x538629['length']-0x1,_0x28887a;_0x32f62f>=0x0;_0x32f62f--)(_0x28887a=_0x538629[_0x32f62f])&&(_0x4c7d17=_0x28887a(_0x4c7d17)||_0x4c7d17);return _0x4c7d17;},W=(_0x17c2d4,_0x53200a)=>(_0x3f5cee,_0xa5d5b8)=>_0x53200a(_0x3f5cee,_0xa5d5b8,_0x17c2d4);exports[_0x458e3c(0x271)]=class extends a[_0x458e3c(0x161)]{constructor(_0x258b0f,_0x3c7367,_0x346907,_0x4350c1,_0x5042d9){const _0x34f343=_0x458e3c;super(),this['_urlService']=_0x258b0f,this['_logService']=_0x3c7367,this[_0x34f343(0x346)]=_0x346907,this[_0x34f343(0x20f)]=_0x4350c1,_0x5042d9?_0x5042d9==null||_0x5042d9['whenReady']()[_0x34f343(0x273)](()=>this['_init']()):(this[_0x34f343(0x354)][_0x34f343(0x30d)](_0x34f343(0xfa),_0x34f343(0x366)),this[_0x34f343(0x329)]());}async[_0x458e3c(0x329)](){const _0x1a0fd2=_0x458e3c,_0xd873e9=this[_0x1a0fd2(0x193)][_0x1a0fd2(0x142)]('unit'),_0x6ab3fc=this[_0x1a0fd2(0x193)][_0x1a0fd2(0x142)](_0x1a0fd2(0x15e)),_0x132613=this[_0x1a0fd2(0x193)][_0x1a0fd2(0x142)](_0x1a0fd2(0x14f));if(!_0xd873e9||!_0x6ab3fc){this[_0x1a0fd2(0x354)][_0x1a0fd2(0x30d)](_0x1a0fd2(0xfa),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x5868ea=await this[_0x1a0fd2(0x20f)][_0x1a0fd2(0x284)](_0xd873e9,Number(_0x6ab3fc),_0x132613);_0x5868ea&&_0x5868ea instanceof a[_0x1a0fd2(0x147)]&&this[_0x1a0fd2(0x169)](_0x5868ea);}async['_setupSubUnitSync'](_0x2f6292){const _0x55e57f=_0x458e3c;await this[_0x55e57f(0x1c7)](_0x2f6292),_0x2f6292[_0x55e57f(0x365)][_0x55e57f(0x2c6)](d[_0x55e57f(0x291)](this['dispose$']))['subscribe'](_0x1f6450=>{const _0x51ad9=_0x55e57f;_0x1f6450&&this[_0x51ad9(0x321)](_0x1f6450);}),this['_urlService'][_0x55e57f(0x2a2)][_0x55e57f(0x2c6)](d[_0x55e57f(0x291)](this[_0x55e57f(0x278)]))[_0x55e57f(0x1d1)](()=>this[_0x55e57f(0x1c7)](_0x2f6292));}[_0x458e3c(0x321)](_0xbbd4e8,_0x5a7fff=!0x1){const _0x50ee5e=_0x458e3c,_0x36ec2b=this[_0x50ee5e(0x193)]['getParam'](_0x50ee5e(0x14f));_0xbbd4e8['getSheetId']()!==_0x36ec2b&&this[_0x50ee5e(0x193)][_0x50ee5e(0x31d)](_0x50ee5e(0x14f),_0xbbd4e8['getSheetId'](),_0x5a7fff);}async['_updateSubUnitFromURLParams'](_0x461a28){const _0x24c87a=_0x458e3c;var _0x9857d5;const _0x48cbc7=this[_0x24c87a(0x193)][_0x24c87a(0x142)](_0x24c87a(0x14f));if(!_0x48cbc7||!_0x461a28[_0x24c87a(0x2de)](_0x48cbc7)){const _0x3e20bb=_0x461a28['getUnhiddenWorksheets']()[0x0],_0x14e210=_0x461a28[_0x24c87a(0x2de)](_0x3e20bb);if(!_0x14e210)return;this['_updateURLWithCurrentState'](_0x14e210,!0x0),await this[_0x24c87a(0x346)]['executeCommand'](I[_0x24c87a(0x30f)]['id'],{'unitId':_0x461a28[_0x24c87a(0x191)](),'subUnitId':_0x3e20bb});return;}((_0x9857d5=_0x461a28[_0x24c87a(0x10f)]())==null?void 0x0:_0x9857d5['getSheetId']())!==_0x48cbc7&&await this[_0x24c87a(0x346)][_0x24c87a(0x2ab)](I[_0x24c87a(0x30f)]['id'],{'unitId':_0x461a28[_0x24c87a(0x191)](),'subUnitId':_0x48cbc7});}},exports['CollaborationDataLoaderController']=Yt([W(0x0,Ee),W(0x1,a['ILogService']),W(0x2,a[_0x458e3c(0x2be)]),W(0x3,a['Inject'](u[_0x458e3c(0x1b7)])),W(0x4,a[_0x458e3c(0x1a8)](Ke['IRemoteInstanceService']))],exports[_0x458e3c(0x271)]);var Xt=Object[_0x458e3c(0x133)],Vt=(_0x51da1f,_0x44f1d7,_0x128bdd,_0x1bb3ff)=>{const _0x1ab932=_0x458e3c;for(var _0x563bb6=_0x1bb3ff>0x1?void 0x0:_0x1bb3ff?Xt(_0x44f1d7,_0x128bdd):_0x44f1d7,_0x24c0f7=_0x51da1f[_0x1ab932(0x24f)]-0x1,_0x196adc;_0x24c0f7>=0x0;_0x24c0f7--)(_0x196adc=_0x51da1f[_0x24c0f7])&&(_0x563bb6=_0x196adc(_0x563bb6)||_0x563bb6);return _0x563bb6;},le=(_0x3e53d5,_0x1fbc3e)=>(_0x1ab5b0,_0x89d461)=>_0x1fbc3e(_0x1ab5b0,_0x89d461,_0x3e53d5);let J=class{constructor(_0x494d9c,_0x45f206,_0x50f2b4){const _0x742af2=_0x458e3c;this['_injector']=_0x494d9c,this[_0x742af2(0x1bc)]=_0x45f206,this['_renderManagerService']=_0x50f2b4;}['transformIMECache'](_0x560b86){const _0x104201=_0x458e3c;this[_0x104201(0x1a9)](_0x560b86),this['_transformPreviousActiveRange'](_0x560b86);}[_0x458e3c(0x163)](_0x428bb1){const _0x55793f=_0x458e3c,{unitID:_0x3ee401}=_0x428bb1,_0x311e24=this[_0x55793f(0x215)]['getRenderById'](_0x3ee401)['with'](b[_0x55793f(0x363)]),{redoCache:_0x404dfe}=_0x311e24[_0x55793f(0x2b8)]();if(_0x404dfe[_0x55793f(0x24f)]===0x0)return _0x428bb1;let _0x2c8a95=a[_0x55793f(0x300)]['deepClone'](_0x428bb1[_0x55793f(0x2d8)][0x0]);for(let _0x384616=0x0;_0x384616<_0x404dfe[_0x55793f(0x24f)];_0x384616++){const _0x24296d={'id':'doc.mutation.rich-text-editing','params':{..._0x404dfe[_0x384616]}},_0x449da0=this[_0x55793f(0x1bc)]['transformMutation'](_0x2c8a95,_0x24296d,!0x1);if(m[_0x55793f(0x1ef)](_0x449da0))throw _0x449da0['error'];_0x2c8a95=_0x449da0[_0x55793f(0x137)];}return{...a[_0x55793f(0x300)][_0x55793f(0x17c)](_0x428bb1),'mutations':[_0x2c8a95]};}[_0x458e3c(0x1a9)](_0x565680){const _0xd27650=_0x458e3c,{unitID:_0x195744}=_0x565680,_0x59d3ff=this[_0xd27650(0x215)]['getRenderById'](_0x195744)['with'](b['DocIMEInputManagerService']),{undoCache:_0x1f67a8,redoCache:_0x1751ff}=_0x59d3ff['getUndoRedoMutationParamsCache']();if(_0x1f67a8['length']===0x0||_0x1751ff[_0xd27650(0x24f)]===0x0)return;const _0x5a9c69=[],_0x3a72af=[];let _0x3a9846=a[_0xd27650(0x300)][_0xd27650(0x17c)](_0x565680['mutations'][0x0]),_0x42033c=a[_0xd27650(0x300)][_0xd27650(0x17c)](_0x565680['mutations'][0x0]);for(let _0x1d3916=_0x1f67a8['length']-0x1;_0x1d3916>=0x0;_0x1d3916--){const _0x55f59a={'id':_0xd27650(0x17f),'params':{..._0x1f67a8[_0x1d3916]}},_0x28e2d4={'id':_0xd27650(0x17f),'params':{..._0x1751ff[_0x1d3916]}},_0x1ba2c0=this['_transformService']['transformMutation'](_0x3a9846,_0x55f59a,!0x1),_0x221b1b=this[_0xd27650(0x1bc)]['transformMutation'](_0x42033c,_0x28e2d4,!0x1);if(m['isTransformMutationFailure'](_0x1ba2c0))throw _0x1ba2c0[_0xd27650(0x277)];if(m[_0xd27650(0x1ef)](_0x221b1b))throw _0x221b1b[_0xd27650(0x277)];_0x5a9c69['unshift'](_0x1ba2c0[_0xd27650(0x1cb)][_0xd27650(0x156)]),_0x3a72af[_0xd27650(0x367)](_0x221b1b[_0xd27650(0x1cb)][_0xd27650(0x156)]),_0x3a9846=_0x1ba2c0['m1Prime'],_0x42033c=_0x221b1b[_0xd27650(0x137)];}_0x59d3ff[_0xd27650(0x194)]({'undoCache':_0x5a9c69,'redoCache':_0x3a72af});}['_transformPreviousActiveRange'](_0x38d1be){const _0x49a8c1=_0x458e3c,{unitID:_0x445bd8}=_0x38d1be,_0x5edcc7=this['_renderManagerService'][_0x49a8c1(0x2e8)](_0x445bd8)[_0x49a8c1(0x35e)](b[_0x49a8c1(0x363)]),_0x10cc0d=_0x5edcc7['getActiveRange']();if(_0x10cc0d==null)return;const _0x54b036=[{'id':_0x49a8c1(0x17f),'params':{'unitId':_0x38d1be[_0x49a8c1(0x2cc)],'actions':null,'textRanges':[_0x10cc0d]}}],_0x2b1c0f=this[_0x49a8c1(0x1bc)][_0x49a8c1(0x224)](_0x38d1be,_0x54b036);if(!m[_0x49a8c1(0x23c)](_0x2b1c0f))throw _0x2b1c0f[_0x49a8c1(0x277)];const _0x325fbe=_0x2b1c0f[_0x49a8c1(0x1cb)][0x0][_0x49a8c1(0x156)][_0x49a8c1(0x11f)];Array['isArray'](_0x325fbe)&&_0x325fbe[_0x49a8c1(0x24f)]&&_0x5edcc7['setActiveRange'](_0x325fbe[0x0]);}};J=Vt([le(0x0,a[_0x458e3c(0x33d)](a[_0x458e3c(0x25e)])),le(0x1,m['ITransformService']),le(0x2,p[_0x458e3c(0x13c)])],J);var Gt=Object[_0x458e3c(0x133)],qt=(_0x1dda65,_0x15dc91,_0x544563,_0x4cc101)=>{const _0x18cdf0=_0x458e3c;for(var _0x8ec835=_0x4cc101>0x1?void 0x0:_0x4cc101?Gt(_0x15dc91,_0x544563):_0x15dc91,_0x1a1580=_0x1dda65[_0x18cdf0(0x24f)]-0x1,_0x551533;_0x1a1580>=0x0;_0x1a1580--)(_0x551533=_0x1dda65[_0x1a1580])&&(_0x8ec835=_0x551533(_0x8ec835)||_0x8ec835);return _0x8ec835;},he=(_0x5486aa,_0x53bbe8)=>(_0x10894b,_0x4c734d)=>_0x53bbe8(_0x10894b,_0x4c734d,_0x5486aa);let Z=class{constructor(_0x45218f,_0x1fa576,_0x508f07){const _0x43ae61=_0x458e3c;this[_0x43ae61(0x15f)]=_0x45218f,this[_0x43ae61(0x1bc)]=_0x1fa576,this['_docStateChangeManagerService']=_0x508f07;}[_0x458e3c(0x324)](_0x428c4f){const _0x25295f=_0x458e3c;this[_0x25295f(0x150)](_0x428c4f);}[_0x458e3c(0x163)](_0x18fede){const _0x312120=_0x458e3c,{unitID:_0x500ad7}=_0x18fede,{collaboration:_0x26f9c6}=this[_0x312120(0x1d4)]['getStateCache'](_0x500ad7);if(_0x26f9c6[_0x312120(0x24f)]===0x0)return _0x18fede;let _0x8c8114=a[_0x312120(0x300)][_0x312120(0x17c)](_0x18fede[_0x312120(0x2d8)][0x0]);for(let _0x148e7f=0x0;_0x148e7f<_0x26f9c6[_0x312120(0x24f)];_0x148e7f++){const _0x3f54b6={'id':_0x312120(0x17f),'params':{'unitId':_0x26f9c6[_0x148e7f][_0x312120(0x2d7)],..._0x26f9c6[_0x148e7f][_0x312120(0x2a4)]}},_0x561c38=this[_0x312120(0x1bc)][_0x312120(0x29a)](_0x8c8114,_0x3f54b6,!0x1);if(m[_0x312120(0x1ef)](_0x561c38))throw _0x561c38[_0x312120(0x277)];_0x8c8114=_0x561c38[_0x312120(0x137)];}return{...a['Tools'][_0x312120(0x17c)](_0x18fede),'mutations':[_0x8c8114]};}[_0x458e3c(0x150)](_0x5e5b0f){const _0x52fd1d=_0x458e3c,{unitID:_0x120cc3}=_0x5e5b0f,{history:_0x11c3c4,collaboration:_0x521fec}=this['_docStateChangeManagerService'][_0x52fd1d(0x222)](_0x120cc3);if(_0x11c3c4['length']===0x0&&_0x521fec[_0x52fd1d(0x24f)]===0x0)return;const _0x3002d7=[],_0x1bc918=[];let _0x2e24c6=a[_0x52fd1d(0x300)][_0x52fd1d(0x17c)](_0x5e5b0f['mutations'][0x0]),_0x46db22=a[_0x52fd1d(0x300)]['deepClone'](_0x5e5b0f[_0x52fd1d(0x2d8)][0x0]);for(let _0xe66bc7=_0x11c3c4[_0x52fd1d(0x24f)]-0x1;_0xe66bc7>=0x0;_0xe66bc7--){const _0x130601={'id':_0x52fd1d(0x17f),'params':{'unitId':_0x11c3c4[_0xe66bc7][_0x52fd1d(0x2d7)],..._0x11c3c4[_0xe66bc7][_0x52fd1d(0x25b)]}},_0x51be17={'id':_0x52fd1d(0x17f),'params':{'unitId':_0x11c3c4[_0xe66bc7][_0x52fd1d(0x2d7)],..._0x11c3c4[_0xe66bc7][_0x52fd1d(0x2a4)]}},_0x1054c4=this['_transformService'][_0x52fd1d(0x29a)](_0x2e24c6,_0x130601,!0x1),_0x525aec=this[_0x52fd1d(0x1bc)][_0x52fd1d(0x29a)](_0x46db22,_0x51be17,!0x1);if(m[_0x52fd1d(0x1ef)](_0x1054c4))throw _0x1054c4[_0x52fd1d(0x277)];if(m[_0x52fd1d(0x1ef)](_0x525aec))throw _0x525aec[_0x52fd1d(0x277)];_0x3002d7[_0x52fd1d(0x367)]({..._0x11c3c4[_0xe66bc7],'undoState':_0x1054c4['m2Prime']['params'],'redoState':_0x525aec[_0x52fd1d(0x1cb)][_0x52fd1d(0x156)]}),_0x2e24c6=_0x1054c4[_0x52fd1d(0x137)],_0x46db22=_0x525aec[_0x52fd1d(0x137)];}_0x2e24c6=a[_0x52fd1d(0x300)][_0x52fd1d(0x17c)](_0x5e5b0f[_0x52fd1d(0x2d8)][0x0]),_0x46db22=a[_0x52fd1d(0x300)][_0x52fd1d(0x17c)](_0x5e5b0f[_0x52fd1d(0x2d8)][0x0]);for(let _0x5334a4=_0x521fec[_0x52fd1d(0x24f)]-0x1;_0x5334a4>=0x0;_0x5334a4--){const _0x696ce6={'id':_0x52fd1d(0x17f),'params':{'unitId':_0x521fec[_0x5334a4]['unitId'],..._0x521fec[_0x5334a4][_0x52fd1d(0x25b)]}},_0x1fb2a0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x521fec[_0x5334a4][_0x52fd1d(0x2d7)],..._0x521fec[_0x5334a4][_0x52fd1d(0x2a4)]}},_0x2c3f5c=this['_transformService']['transformMutation'](_0x2e24c6,_0x696ce6,!0x1),_0x418342=this[_0x52fd1d(0x1bc)]['transformMutation'](_0x46db22,_0x1fb2a0,!0x1);if(m[_0x52fd1d(0x1ef)](_0x2c3f5c))throw _0x2c3f5c[_0x52fd1d(0x277)];if(m[_0x52fd1d(0x1ef)](_0x418342))throw _0x418342['error'];_0x1bc918[_0x52fd1d(0x367)]({..._0x521fec[_0x5334a4],'undoState':_0x2c3f5c['m2Prime'][_0x52fd1d(0x156)],'redoState':_0x418342[_0x52fd1d(0x1cb)][_0x52fd1d(0x156)]}),_0x2e24c6=_0x2c3f5c['m1Prime'],_0x46db22=_0x418342[_0x52fd1d(0x137)];}this['_docStateChangeManagerService']['setStateCache'](_0x120cc3,{'history':_0x3002d7,'collaboration':_0x1bc918});}};Z=qt([he(0x0,a['Inject'](a['Injector'])),he(0x1,m['ITransformService']),he(0x2,a[_0x458e3c(0x33d)](b[_0x458e3c(0x2b6)]))],Z);var Kt=Object[_0x458e3c(0x133)],zt=(_0x13e6ff,_0x5ccf1d,_0x175056,_0x446eef)=>{const _0x574737=_0x458e3c;for(var _0x2a782f=_0x446eef>0x1?void 0x0:_0x446eef?Kt(_0x5ccf1d,_0x175056):_0x5ccf1d,_0x213e79=_0x13e6ff[_0x574737(0x24f)]-0x1,_0x369ddb;_0x213e79>=0x0;_0x213e79--)(_0x369ddb=_0x13e6ff[_0x213e79])&&(_0x2a782f=_0x369ddb(_0x2a782f)||_0x2a782f);return _0x2a782f;},Pe=(_0x374560,_0x5e935e)=>(_0x5ae9c9,_0x48c85a)=>_0x5e935e(_0x5ae9c9,_0x48c85a,_0x374560);let Q=class{constructor(_0x1806b5,_0x54fabf){const _0x38e0e5=_0x458e3c;this['_injector']=_0x1806b5,this[_0x38e0e5(0x1bc)]=_0x54fabf;}[_0x458e3c(0x21e)](_0x4e8911){const _0x461cdc=_0x458e3c;var _0x34684f;const _0x2a1693=this[_0x461cdc(0x15f)][_0x461cdc(0x102)](Y[_0x461cdc(0x266)]),_0x44a22a=(_0x34684f=_0x2a1693[_0x461cdc(0x1e4)]())!=null?_0x34684f:[];if(_0x44a22a[_0x461cdc(0x24f)]===0x0)return;const _0x5a0bbd=_0x4e8911[_0x461cdc(0x2cc)],_0x52fb27=[{'id':_0x461cdc(0x17f),'params':{'unitId':_0x5a0bbd,'actions':null,'textRanges':_0x44a22a}}],_0x4f21a7=this[_0x461cdc(0x1bc)]['transformMutationsWithChangeset'](_0x4e8911,_0x52fb27);if(!m[_0x461cdc(0x23c)](_0x4f21a7))throw _0x4f21a7[_0x461cdc(0x277)];const _0x18936c=_0x4f21a7['m2Prime'][0x0][_0x461cdc(0x156)]['textRanges'];Array['isArray'](_0x18936c)&&_0x18936c[_0x461cdc(0x24f)]&&_0x2a1693[_0x461cdc(0x2dd)](_0x18936c,{'unitId':_0x5a0bbd,'subUnitId':_0x5a0bbd},!0x1);}};Q=zt([Pe(0x0,a[_0x458e3c(0x33d)](a['Injector'])),Pe(0x1,m[_0x458e3c(0x187)])],Q);var Jt=Object['getOwnPropertyDescriptor'],Zt=(_0x5965fb,_0x56508a,_0x26afc5,_0x2cc003)=>{const _0x1cfebb=_0x458e3c;for(var _0x3f7043=_0x2cc003>0x1?void 0x0:_0x2cc003?Jt(_0x56508a,_0x26afc5):_0x56508a,_0x3a5e1e=_0x5965fb[_0x1cfebb(0x24f)]-0x1,_0x2d3801;_0x3a5e1e>=0x0;_0x3a5e1e--)(_0x2d3801=_0x5965fb[_0x3a5e1e])&&(_0x3f7043=_0x2d3801(_0x3f7043)||_0x3f7043);return _0x3f7043;},M=(_0x5292c5,_0x3b5da4)=>(_0xfa5e05,_0x418666)=>_0x3b5da4(_0xfa5e05,_0x418666,_0x5292c5);let ee=class extends a[_0x458e3c(0x34c)]{constructor(_0x54a090,_0x335324,_0x528fa1,_0x548d79,_0x4d7c4b,_0x1171a7,_0x73e18a,_0x36a2d4){const _0x589286=_0x458e3c;super(),h(this,_0x589286(0x267),new d['BehaviorSubject'](u[_0x589286(0x11b)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x54a090,this[_0x589286(0x1aa)]=_0x335324,this[_0x589286(0x29f)]=_0x528fa1,this[_0x589286(0x192)]=_0x548d79,this[_0x589286(0x285)]=_0x4d7c4b,this['_docSyncEditingCollabCursorService']=_0x1171a7,this[_0x589286(0x131)]=_0x73e18a,this[_0x589286(0x235)]=_0x36a2d4,this[_0x589286(0x263)]());}[_0x458e3c(0x263)](){const _0x4dd8a4=_0x458e3c;this[_0x4dd8a4(0x16f)](this[_0x4dd8a4(0x1aa)][_0x4dd8a4(0x1a0)][_0x4dd8a4(0x1d1)](_0x29f82e=>{const _0x17d1f1=_0x4dd8a4,_0x40e9c7=this[_0x17d1f1(0x1d4)][_0x17d1f1(0x130)]['subscribe'](_0x68556b=>{const _0x5cd9eb=_0x17d1f1;if(_0x68556b==null)return;const {unitId:_0x8f14a6,redoState:_0x2dcd48,commandId:_0x13731a}=_0x68556b;if(_0x8f14a6!==_0x29f82e[_0x5cd9eb(0x2cc)])return;const _0x4151c5={'id':_0x13731a,'type':a[_0x5cd9eb(0x2bb)][_0x5cd9eb(0x32b)],'params':{'unitId':_0x8f14a6,'actions':_0x2dcd48[_0x5cd9eb(0x1c3)],'textRanges':null}};_0x29f82e['onLocalMutation'](_0x4151c5);});if(_0x29f82e[_0x17d1f1(0x16f)](_0x40e9c7),_0x29f82e instanceof u['DocCollaborationEntity']){const _0x35214c={'onTransformIME':_0x519265=>this[_0x17d1f1(0x29f)][_0x17d1f1(0x1cc)](_0x519265),'onTransformState':_0x34a032=>this[_0x17d1f1(0x192)][_0x17d1f1(0x324)](_0x34a032),'onTransformSelections':_0xc26a21=>this[_0x17d1f1(0x285)][_0x17d1f1(0x21e)](_0xc26a21),'onSyncEditingCollabCursor':_0x6fce79=>this['_docSyncEditingCollabCursorService'][_0x17d1f1(0x13e)](_0x6fce79),'onTransformRemoteChangesetByIMECache':_0x2b45aa=>this[_0x17d1f1(0x29f)][_0x17d1f1(0x163)](_0x2b45aa),'onTransformRemoteChangesetByStateCache':_0xca076a=>this[_0x17d1f1(0x192)][_0x17d1f1(0x163)](_0xca076a)};_0x29f82e['addHandlerCallback'](_0x35214c);}}));}};ee=Zt([M(0x0,a[_0x458e3c(0x33d)](b['DocStateChangeManagerService'])),M(0x1,a[_0x458e3c(0x33d)](u[_0x458e3c(0x1fd)])),M(0x2,a['Inject'](J)),M(0x3,a[_0x458e3c(0x33d)](Z)),M(0x4,a[_0x458e3c(0x33d)](Q)),M(0x5,a['Inject'](pe)),M(0x6,R[_0x458e3c(0x188)]),M(0x7,a[_0x458e3c(0x33d)](a['LocaleService']))],ee);var Qt=Object[_0x458e3c(0x133)],es=(_0x7f1c6c,_0xd2f9c7,_0x1c229c,_0x2ba53f)=>{const _0x44a086=_0x458e3c;for(var _0x3a9861=_0x2ba53f>0x1?void 0x0:_0x2ba53f?Qt(_0xd2f9c7,_0x1c229c):_0xd2f9c7,_0x36ca22=_0x7f1c6c[_0x44a086(0x24f)]-0x1,_0x57a193;_0x36ca22>=0x0;_0x36ca22--)(_0x57a193=_0x7f1c6c[_0x36ca22])&&(_0x3a9861=_0x57a193(_0x3a9861)||_0x3a9861);return _0x3a9861;},_e=(_0x18ed7c,_0x56ac00)=>(_0x2ce4dd,_0x5bcfbb)=>_0x56ac00(_0x2ce4dd,_0x5bcfbb,_0x18ed7c);let me=class extends a['Disposable']{constructor(_0x5baf22,_0x208e2b,_0x2db6c5){const _0x3d00f2=_0x458e3c;super(),h(this,_0x3d00f2(0x1f9),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x3d00f2(0x254),!0x1),(this['_configService']=_0x5baf22,this[_0x3d00f2(0x2a1)]=_0x208e2b,this[_0x3d00f2(0x253)]=_0x2db6c5);}['disableLocalCache'](){const _0x206e52=_0x458e3c;this[_0x206e52(0x254)]=!0x0;}[_0x458e3c(0x175)](){const _0x55e4b3=_0x458e3c;this[_0x55e4b3(0x254)]=!0x1;}get[_0x458e3c(0x286)](){const _0x469d27=_0x458e3c;return this[_0x469d27(0x212)];}[_0x458e3c(0x36a)](){const _0x456a22=_0x458e3c;this[_0x456a22(0x238)]()[_0x456a22(0x273)](()=>super['dispose']());}async[_0x458e3c(0x32d)](_0x36865c){return this['_disabled']?null:this['_localStorageService']['getItem'](u['getLocalCacheKey'](_0x36865c));}async[_0x458e3c(0x14c)](_0x578e62,_0x27892f){const _0x1938e6=_0x458e3c;return!!this['_localStorageService'][_0x1938e6(0x35d)](_0x578e62,_0x27892f);}[_0x458e3c(0x12a)](_0xd6de5d,_0x5b75bd,_0x1524f7,_0x1aaf3f){const _0x27353a=_0x458e3c,_0xbddbe0=this[_0x27353a(0x253)][_0x27353a(0x32f)](_0xd6de5d);this[_0x27353a(0x1f9)][_0x27353a(0x22f)](_0xd6de5d,{'unitID':_0xd6de5d,'type':_0x5b75bd,'awaitingChangeset':_0x1524f7,'mutations':_0x1aaf3f,'rev':_0xbddbe0}),this[_0x27353a(0x212)][_0x27353a(0x31f)](_0xd6de5d)||this[_0x27353a(0xf8)](_0xd6de5d);}[_0x458e3c(0xf8)](_0x2cc605){const _0x22adae=_0x458e3c,_0x388167=this[_0x22adae(0x2fe)]();_0x388167===0x0?this['_saveCache'](_0x2cc605):this['_saveTaskMap'][_0x22adae(0x22f)](_0x2cc605,setTimeout(()=>this[_0x22adae(0x265)](_0x2cc605),_0x388167));}[_0x458e3c(0x2fe)](){const _0x62e8c8=_0x458e3c;var _0xa8a02;return(_0xa8a02=this['_configService']['getConfig'](u[_0x62e8c8(0x14e)]))!=null?_0xa8a02:u['LOCAL_CACHE_INTERVAL'];}[_0x458e3c(0x265)](_0x3a250a){const _0x32b086=_0x458e3c,_0x7083f8=this[_0x32b086(0x212)][_0x32b086(0x102)](_0x3a250a);return _0x7083f8!==void 0x0&&window[_0x32b086(0x210)](_0x7083f8),this[_0x32b086(0x2a1)][_0x32b086(0x35d)](u[_0x32b086(0x138)](_0x3a250a),this[_0x32b086(0x1f9)][_0x32b086(0x102)](_0x3a250a))[_0x32b086(0x273)](()=>this[_0x32b086(0x212)]['delete'](_0x3a250a));}async[_0x458e3c(0x238)](){const _0x402c40=_0x458e3c,_0x97a43f=[];this['_saveTaskMap'][_0x402c40(0x176)]((_0x258d71,_0x3f715a)=>{const _0x51e5bc=_0x402c40;window[_0x51e5bc(0x210)](_0x258d71),_0x97a43f[_0x51e5bc(0x1de)](this[_0x51e5bc(0x265)](_0x3f715a)[_0x51e5bc(0x273)](()=>{const _0x59caee=_0x51e5bc;this[_0x59caee(0x212)]['delete'](_0x3f715a);}));}),await Promise[_0x402c40(0x218)](_0x97a43f);}};me=es([_e(0x0,a[_0x458e3c(0x305)]),_e(0x1,a[_0x458e3c(0x282)]),_e(0x2,a[_0x458e3c(0x33d)](m[_0x458e3c(0x1b5)]))],me);class ke extends a['RxDisposable']{constructor(){const _0x58d735=_0x458e3c;super(),h(this,'urlChange$'),this['urlChange$']=d[_0x58d735(0x18d)](window,'popstate')[_0x58d735(0x2c6)](d['takeUntil'](this['dispose$']),d['shareReplay'](0x1),d[_0x58d735(0x12f)](void 0x0));}[_0x458e3c(0x31d)](_0x833e8c,_0x4d6019,_0x1ff5b2=!0x1){const _0x2781e=_0x458e3c,_0x117ca8=new URL(window[_0x2781e(0x21d)]['href']);_0x117ca8[_0x2781e(0x18a)]['set'](_0x833e8c,_0x4d6019),_0x1ff5b2?window[_0x2781e(0x22e)][_0x2781e(0x1fc)]('','',_0x117ca8[_0x2781e(0x2bd)]()):window['history']['pushState']('','',_0x117ca8['toString']());}['removeParam'](_0x3ad19e,_0x492e45=!0x1){const _0x1c31c0=_0x458e3c,_0x4faf45=new URL(window[_0x1c31c0(0x21d)][_0x1c31c0(0x264)]);_0x4faf45[_0x1c31c0(0x18a)][_0x1c31c0(0x115)](_0x3ad19e),_0x492e45?window[_0x1c31c0(0x22e)]['replaceState']('','',_0x4faf45[_0x1c31c0(0x2bd)]()):window['history'][_0x1c31c0(0x108)]('','',_0x4faf45[_0x1c31c0(0x2bd)]());}[_0x458e3c(0x142)](_0x596bf3){const _0x39be83=_0x458e3c;var _0x58f750;return(_0x58f750=new URL(window[_0x39be83(0x21d)][_0x39be83(0x264)])[_0x39be83(0x18a)][_0x39be83(0x102)](_0x596bf3))!=null?_0x58f750:void 0x0;}}var ts=Object[_0x458e3c(0x178)],ss=Object['getOwnPropertyDescriptor'],ns=(_0x23f28f,_0x3823b3,_0x1f9b91)=>_0x3823b3 in _0x23f28f?ts(_0x23f28f,_0x3823b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f9b91}):_0x23f28f[_0x3823b3]=_0x1f9b91,is=(_0x359fad,_0x17a3d4,_0x37eff2,_0x14010d)=>{const _0x338e4b=_0x458e3c;for(var _0x20d05c=_0x14010d>0x1?void 0x0:_0x14010d?ss(_0x17a3d4,_0x37eff2):_0x17a3d4,_0x40d051=_0x359fad[_0x338e4b(0x24f)]-0x1,_0x5ccf02;_0x40d051>=0x0;_0x40d051--)(_0x5ccf02=_0x359fad[_0x40d051])&&(_0x20d05c=_0x5ccf02(_0x20d05c)||_0x20d05c);return _0x20d05c;},ue=(_0x57ae30,_0x3d1af5)=>(_0x719bd7,_0x2fadcf)=>_0x3d1af5(_0x719bd7,_0x2fadcf,_0x57ae30),rs=(_0xeed5de,_0x15977f,_0x23aa1f)=>ns(_0xeed5de,_0x15977f+'',_0x23aa1f);const os=_0x458e3c(0x122);exports[_0x458e3c(0x2d0)]=class extends a[_0x458e3c(0x167)]{constructor(_0x1fa56f=Me,_0x4aa213,_0x32847d,_0x260bd7){const _0x1ef4c4=_0x458e3c;super(),this['_config']=_0x1fa56f,this[_0x1ef4c4(0x215)]=_0x4aa213,this[_0x1ef4c4(0x15f)]=_0x32847d,this['_configService']=_0x260bd7;const {..._0x49231}=a['merge']({},Me,this[_0x1ef4c4(0x106)]);this[_0x1ef4c4(0x2fc)]['setConfig'](Wt,_0x49231);}[_0x458e3c(0x231)](){const _0x1f443a=_0x458e3c;this[_0x1f443a(0x2ad)](),this['_initDependencies']();}[_0x458e3c(0x358)](){this['_registerRenderDependencies']();}[_0x458e3c(0x2ad)](){const _0x9780a1=_0x458e3c;var _0x45bb63;const _0x5286f2=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q['ISocketService'],{'useClass':q[_0x9780a1(0x247)]}],[u[_0x9780a1(0x343)],{'useClass':me}],[exports[_0x9780a1(0x118)]],[ee],[z],[x],[fe],[exports[_0x9780a1(0x271)]]];a[_0x9780a1(0x25a)](this[_0x9780a1(0x15f)],a[_0x9780a1(0x2fd)](_0x5286f2,(_0x45bb63=this['_config'])==null?void 0x0:_0x45bb63[_0x9780a1(0x11d)]));}[_0x458e3c(0x330)](){const _0x2f724c=_0x458e3c;this[_0x2f724c(0x16f)](this[_0x2f724c(0x215)]['registerRenderModule'](a['UniverInstanceType'][_0x2f724c(0x18f)],[ge])),this['disposeWithMe'](this[_0x2f724c(0x215)][_0x2f724c(0x361)](a['UniverInstanceType'][_0x2f724c(0x1ca)],[Ie]));}[_0x458e3c(0x332)](){const _0x249371=_0x458e3c;a[_0x249371(0x109)](this[_0x249371(0x15f)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x249371(0x271)]]]);}},rs(exports[_0x458e3c(0x2d0)],_0x458e3c(0x360),os),exports['UniverCollaborationClientUIPlugin']=is([a[_0x458e3c(0x110)](u['UniverCollaborationClientPlugin']),ue(0x1,p[_0x458e3c(0x13c)]),ue(0x2,a[_0x458e3c(0x33d)](a[_0x458e3c(0x25e)])),ue(0x3,a[_0x458e3c(0x305)])],exports[_0x458e3c(0x2d0)]);var as=Object[_0x458e3c(0x133)],cs=(_0xec2872,_0x526280,_0x3fe9c0,_0x46334b)=>{const _0x54b171=_0x458e3c;for(var _0x4239aa=_0x46334b>0x1?void 0x0:_0x46334b?as(_0x526280,_0x3fe9c0):_0x526280,_0x1ec5f8=_0xec2872[_0x54b171(0x24f)]-0x1,_0x2aa2c8;_0x1ec5f8>=0x0;_0x1ec5f8--)(_0x2aa2c8=_0xec2872[_0x1ec5f8])&&(_0x4239aa=_0x2aa2c8(_0x4239aa)||_0x4239aa);return _0x4239aa;},F=(_0x229c22,_0x1254be)=>(_0x2306af,_0x452341)=>_0x1254be(_0x2306af,_0x452341,_0x229c22);exports['BrowserCollaborationSocketService']=class extends u['CollaborationSocketService']{constructor(_0xf0f746,_0x5bf818,_0x37231a,_0x335d77,_0x5b56c0){super(_0xf0f746,_0x5bf818,_0x37231a,_0x335d77,_0x5b56c0);}async[_0x458e3c(0x31e)](_0x84e7a7){const _0x376096=_0x458e3c,_0x1a4b53=await this[_0x376096(0x2b5)](),_0x136dfe=this[_0x376096(0x199)](_0x84e7a7,_0x1a4b53);return this['_doCreateSocket'](_0x136dfe);}[_0x458e3c(0x199)](_0x4bc043,_0x42bb28){const _0x31ccb8=_0x458e3c,_0x1b81f1=typeof window>'u'?new URL(_0x4bc043):new URL(_0x4bc043,window[_0x31ccb8(0x21d)][_0x31ccb8(0x29b)]);_0x1b81f1[_0x31ccb8(0x18a)][_0x31ccb8(0x22f)](_0x31ccb8(0x292),_0x42bb28);const _0x4726b5=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x31ccb8(0x21d)][_0x31ccb8(0x26d)]);return _0x4726b5[_0x31ccb8(0x102)](_0x31ccb8(0x281))&&_0x1b81f1[_0x31ccb8(0x18a)][_0x31ccb8(0x22f)](_0x31ccb8(0x281),_0x4726b5[_0x31ccb8(0x102)](_0x31ccb8(0x281))),_0x1b81f1['toString']();}async[_0x458e3c(0x2b5)](){const _0x5baa1e=_0x458e3c;var _0x8063f5,_0xfd9f87,_0x55b307;const _0x402f03=this['_configService']['getConfig'](u[_0x5baa1e(0x2da)]),_0x59e923=(_0x8063f5=_0x402f03==null?void 0x0:_0x402f03['wsSessionTicketUrl'])!=null?_0x8063f5:u[_0x5baa1e(0x2a0)];return(_0x55b307=(_0xfd9f87=(await this[_0x5baa1e(0x34d)][_0x5baa1e(0x102)](_0x59e923,{'headers':{'Content-Type':_0x5baa1e(0x1c0)}}))['body'])==null?void 0x0:_0xfd9f87['ticket'])!=null?_0x55b307:'';}},exports[_0x458e3c(0x174)]=cs([F(0x0,a['Inject'](a[_0x458e3c(0x25e)])),F(0x1,a['Inject'](q[_0x458e3c(0x1f7)])),F(0x2,a['IConfigService']),F(0x3,a[_0x458e3c(0x2ef)]),F(0x4,m['ISnapshotServerService'])],exports[_0x458e3c(0x174)]);const Ne=0x7530,we=_0x458e3c(0x1ab);class ls extends a['Disposable']{constructor(){const _0x31c2a4=_0x458e3c;super(),h(this,_0x31c2a4(0x322),a['generateRandomId']()),h(this,'_selfUnitIDs',new Set()),h(this,_0x31c2a4(0x2f0),new Map()),h(this,_0x31c2a4(0x1eb),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x31c2a4(0x241),new Map()),this[_0x31c2a4(0x329)]();}['dispose'](){const _0x5b5e8e=_0x458e3c;super['dispose'](),this[_0x5b5e8e(0xf4)][_0x5b5e8e(0x176)]((_0x4fe52c,_0x21ef1c)=>this[_0x5b5e8e(0x368)](_0x21ef1c)),this['_heartbeatTimer']&&window[_0x5b5e8e(0x1a3)](this[_0x5b5e8e(0x1eb)]);}[_0x458e3c(0x184)](_0x1b10e1){const _0xd7e31c=_0x458e3c;return this[_0xd7e31c(0x200)](_0x1b10e1)[_0xd7e31c(0x2c6)](d[_0xd7e31c(0x185)]());}[_0x458e3c(0x1bd)](_0x1c698d){const _0x15da1c=_0x458e3c;this[_0x15da1c(0x227)][_0x15da1c(0xfc)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x15da1c(0x1b2)](_0x1c698d),this[_0x15da1c(0x180)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x1c698d],'isForwarded':!0x1});}[_0x458e3c(0x249)](_0xfb6824){const _0x4932bd=_0x458e3c;this['_selfUnitIDs']['delete'](_0xfb6824),this[_0x4932bd(0x227)]['size']===0x0&&this[_0x4932bd(0x1eb)]&&window[_0x4932bd(0x1a3)](this['_heartbeatTimer']);}['_init'](){const _0x1a8024=_0x458e3c;this[_0x1a8024(0x16f)](a[_0x1a8024(0x288)](d[_0x1a8024(0x18d)](window,_0x1a8024(0x13d))[_0x1a8024(0x1d1)](_0x58022e=>{const _0x235547=_0x1a8024;if(_0x58022e['key']!==we||!_0x58022e[_0x235547(0x15b)])return;const _0x17b10f=JSON['parse'](_0x58022e['newValue']);this[_0x235547(0x2d4)](_0x17b10f);}))),window[_0x1a8024(0x20b)](_0x1a8024(0xfe),()=>this[_0x1a8024(0x180)]({'type':0x1,'memberID':this[_0x1a8024(0x322)],'unitIDs':Array[_0x1a8024(0x1d0)](this[_0x1a8024(0x227)])}));}[_0x458e3c(0x2d4)](_0x31fe8a){const _0x11cb5f=_0x458e3c;switch(_0x31fe8a['type']){case 0x0:this[_0x11cb5f(0x304)](_0x31fe8a);break;case 0x1:this['_handleLeaveEvent'](_0x31fe8a);break;case 0x2:this[_0x11cb5f(0x2a8)](_0x31fe8a);break;}}[_0x458e3c(0x304)](_0x10720d){const _0x43d1f0=_0x458e3c,{unitIDs:_0x3a2679,memberID:_0x9e2804,isForwarded:_0x5c2851}=_0x10720d;_0x3a2679['forEach'](_0x2ec4f7=>{const _0x5c593d=_0x2db8;if(!_0x5c2851&&this[_0x5c593d(0x2f0)][_0x5c593d(0x31f)](_0x2ec4f7)&&this[_0x5c593d(0x200)](_0x2ec4f7)[_0x5c593d(0x275)](u[_0x5c593d(0x251)][_0x5c593d(0x22b)]),!this[_0x5c593d(0x2f0)][_0x5c593d(0x31f)](_0x2ec4f7)||!this['_unitOnClients'][_0x5c593d(0x102)](_0x2ec4f7)['has'](_0x9e2804)){const _0x46dbbf=this[_0x5c593d(0x2f0)]['get'](_0x2ec4f7)||new Set();_0x46dbbf[_0x5c593d(0x1b2)](_0x9e2804),this[_0x5c593d(0x2f0)][_0x5c593d(0x22f)](_0x2ec4f7,_0x46dbbf),this[_0x5c593d(0x311)](_0x9e2804);}}),_0x5c2851||this[_0x43d1f0(0x180)]({'type':0x0,'memberID':this[_0x43d1f0(0x322)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4d8b8d){const _0x32b840=_0x458e3c;this['_removeClearOtherTimer'](_0x4d8b8d);const _0x2b5cbd=window[_0x32b840(0x228)](()=>{const _0x31956f=_0x32b840;this[_0x31956f(0x2f0)]['forEach'](_0x851bdc=>{const _0x19cb4a=_0x31956f;_0x851bdc[_0x19cb4a(0x115)](_0x4d8b8d);});},Ne*0x2);this[_0x32b840(0xf4)]['set'](_0x4d8b8d,_0x2b5cbd);}[_0x458e3c(0x368)](_0x1ec514){const _0xea9df3=_0x458e3c;if(this['_clearOtherTimers'][_0xea9df3(0x31f)](_0x1ec514)){const _0x223179=this['_clearOtherTimers'][_0xea9df3(0x102)](_0x1ec514);_0x223179&&window[_0xea9df3(0x210)](_0x223179),this[_0xea9df3(0xf4)][_0xea9df3(0x22f)](_0x1ec514,null);}}[_0x458e3c(0x16b)](_0x74eef9){const _0x274a54=_0x458e3c,{memberID:_0x2b0bb7,unitIDs:_0x333730}=_0x74eef9;_0x333730[_0x274a54(0x176)](_0xe446d4=>{const _0x2ebfef=_0x274a54;var _0x1205da;const _0x41bead=this['_unitOnClients'][_0x2ebfef(0x102)](_0xe446d4);_0x41bead&&(_0x41bead[_0x2ebfef(0x115)](_0x2b0bb7),(_0x1205da=this[_0x2ebfef(0x200)](_0xe446d4))==null||_0x1205da['next'](_0x41bead[_0x2ebfef(0xfc)]===0x0?u['UnitStatus'][_0x2ebfef(0x18c)]:u[_0x2ebfef(0x251)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x2b0bb7);}[_0x458e3c(0x2a8)](_0x3712a5){const _0x1dc03b=_0x458e3c;this[_0x1dc03b(0x311)](_0x3712a5[_0x1dc03b(0x27a)]);}[_0x458e3c(0x180)](_0x597437){const _0x3490bf=_0x458e3c;localStorage[_0x3490bf(0x35d)](we,JSON[_0x3490bf(0x21c)](_0x597437));}[_0x458e3c(0x28b)](){const _0x139db8=_0x458e3c;this[_0x139db8(0x1eb)]=window[_0x139db8(0x2e3)](()=>{const _0x529e2f=_0x139db8;this[_0x529e2f(0x180)]({'type':0x2,'memberID':this[_0x529e2f(0x322)]});},Ne);}[_0x458e3c(0x200)](_0x52a652){const _0x580396=_0x458e3c;return this[_0x580396(0x241)][_0x580396(0x31f)](_0x52a652)||this[_0x580396(0x241)]['set'](_0x52a652,new d[(_0x580396(0x333))](u[_0x580396(0x251)][_0x580396(0x18c)])),this[_0x580396(0x241)]['get'](_0x52a652);}}var Be=(_0x114024=>(_0x114024[_0x114024[_0x458e3c(0x36b)]=0x0]=_0x458e3c(0x36b),_0x114024[_0x114024['OK']=0x1]='OK',_0x114024[_0x114024[_0x458e3c(0x33a)]=0x2]='INTERNAL_ERROR',_0x114024[_0x114024[_0x458e3c(0x2b2)]=0x3]='PERMISSION_DENIED',_0x114024[_0x114024[_0x458e3c(0x1da)]=0x4]=_0x458e3c(0x1da),_0x114024[_0x114024[_0x458e3c(0x2ae)]=0x5]=_0x458e3c(0x2ae),_0x114024[_0x114024[_0x458e3c(0x313)]=0x6]=_0x458e3c(0x313),_0x114024[_0x114024['INVALID_ARGUMENT']=0x7]=_0x458e3c(0x34f),_0x114024[_0x114024[_0x458e3c(0x1b6)]=0x8]=_0x458e3c(0x1b6),_0x114024[_0x114024[_0x458e3c(0x2d1)]=0x9]=_0x458e3c(0x2d1),_0x114024[_0x114024[_0x458e3c(0x2e4)]=0x1389]=_0x458e3c(0x2e4),_0x114024[_0x114024[_0x458e3c(0x33c)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x114024[_0x114024[_0x458e3c(0x14b)]=0x1772]=_0x458e3c(0x14b),_0x114024[_0x114024['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x458e3c(0x12d),_0x114024[_0x114024[_0x458e3c(0x294)]=0x1b59]=_0x458e3c(0x294),_0x114024[_0x114024['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x458e3c(0x20c),_0x114024[_0x114024[_0x458e3c(0x355)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x114024[_0x114024['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x114024[_0x114024['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x114024[_0x114024[_0x458e3c(0x2ea)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x114024[_0x114024[_0x458e3c(0x189)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x114024[_0x114024[_0x458e3c(0x19a)]=0x232a]=_0x458e3c(0x19a),_0x114024[_0x114024[_0x458e3c(0x103)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x114024[_0x114024[_0x458e3c(0x1be)]=0x232c]=_0x458e3c(0x1be),_0x114024[_0x114024[_0x458e3c(0x27e)]=0x232d]=_0x458e3c(0x27e),_0x114024[_0x114024[_0x458e3c(0x1ea)]=0x2711]=_0x458e3c(0x1ea),_0x114024[_0x114024['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x458e3c(0x250),_0x114024[_0x114024[_0x458e3c(0x336)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x114024[_0x114024[_0x458e3c(0x256)]=0x2714]=_0x458e3c(0x256),_0x114024[_0x114024['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x458e3c(0x154),_0x114024[_0x114024[_0x458e3c(0x342)]=-0x1]=_0x458e3c(0x342),_0x114024))(Be||{}),hs=Object['getOwnPropertyDescriptor'],_s=(_0x1a9d0b,_0x1a3a79,_0x369fe8,_0x33b6cb)=>{const _0x140c93=_0x458e3c;for(var _0x3899e1=_0x33b6cb>0x1?void 0x0:_0x33b6cb?hs(_0x1a3a79,_0x369fe8):_0x1a3a79,_0x188a00=_0x1a9d0b[_0x140c93(0x24f)]-0x1,_0x5bcae9;_0x188a00>=0x0;_0x188a00--)(_0x5bcae9=_0x1a9d0b[_0x188a00])&&(_0x3899e1=_0x5bcae9(_0x3899e1)||_0x3899e1);return _0x3899e1;},de=(_0x470476,_0x5acd47)=>(_0x3d1cde,_0xc50df)=>_0x5acd47(_0x3d1cde,_0xc50df,_0x470476);exports[_0x458e3c(0x239)]=class extends a['Disposable']{constructor(_0xe56018,_0x13e3ce,_0x9f7912){const _0x14f147=_0x458e3c;super(),this[_0x14f147(0x1c8)]=_0xe56018,this[_0x14f147(0x34d)]=_0x13e3ce,this['_configService']=_0x9f7912;}async['runOnServer'](_0x12ae6d,_0x5752e4,_0x3292f3,..._0x5e8441){const _0x1b2861=_0x458e3c;var _0x536d1d,_0x3ab917,_0x5c95db,_0x4013bd;const _0x102f8e=this[_0x1b2861(0x1c8)][_0x1b2861(0x2e6)]();if(!_0x102f8e)throw new Error(_0x1b2861(0x230));const _0x491351=((_0x536d1d=this[_0x1b2861(0x2fc)][_0x1b2861(0x2d9)](u[_0x1b2861(0xf9)]))!=null?_0x536d1d:u[_0x1b2861(0x11e)])+'/'+_0x12ae6d+_0x1b2861(0x289)+_0x5752e4,_0x2b2127=new URL(window[_0x1b2861(0x21d)][_0x1b2861(0x264)]),_0x1369b2={'scriptId':_0x12ae6d,'runId':(_0x3ab917=_0x2b2127[_0x1b2861(0x18a)][_0x1b2861(0x102)](_0x1b2861(0x281)))!=null?_0x3ab917:'','function':_0x5752e4,'unitId':_0x102f8e[_0x1b2861(0x191)](),'argsOfFunction':JSON[_0x1b2861(0x21c)](_0x5e8441),'invokeId':(_0x5c95db=_0x3292f3['invokeId'])!=null?_0x5c95db:'','executionId':(_0x4013bd=_0x3292f3[_0x1b2861(0x2f1)])!=null?_0x4013bd:''};try{const _0x34faa4=await this[_0x1b2861(0x34d)][_0x1b2861(0x1a7)](_0x491351,{'body':_0x1369b2});return _0x34faa4[_0x1b2861(0x24e)]['error']&&_0x34faa4[_0x1b2861(0x24e)][_0x1b2861(0x277)]['code']!==Be['OK']?_0x1b2861(0x140):_0x34faa4[_0x1b2861(0x24e)]['result'];}catch{return _0x1b2861(0x140);}}},exports[_0x458e3c(0x239)]=_s([de(0x0,a['IUniverInstanceService']),de(0x1,a['Inject'](q[_0x458e3c(0x1f7)])),de(0x2,a['IConfigService'])],exports[_0x458e3c(0x239)]),exports[_0x458e3c(0x213)]=je,exports[_0x458e3c(0x335)]=Ee,exports['SheetCollabCursorShape']=ye,exports[_0x458e3c(0x31c)]=ls,exports[_0x458e3c(0x1fb)]=ke;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1c619d=_0x5a0f;function _0x5a0f(_0x5ced74,_0x1eb2aa){const _0x18d2f1=_0x18d2();return _0x5a0f=function(_0x5a0f2d,_0x57a883){_0x5a0f2d=_0x5a0f2d-0x1c8;let _0x4ed198=_0x18d2f1[_0x5a0f2d];return _0x4ed198;},_0x5a0f(_0x5ced74,_0x1eb2aa);}function _0x18d2(){const _0xee3481=['15rPdimi','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','12JfriNH','117275PPUZUg','3752PMYlnw','5624uTBDti','3622644ChXvKe','Click\x20to\x20Reconnect','Collaboration\x20Conflict','1584840gnOQQq','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','22zTgkOW','1901220gzCQEP','Authentication\x20Error','401768EFJtpZ','1487315KlJNpW','Local\x20file','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Syncing\x20server\x20data...','Synced'];_0x18d2=function(){return _0xee3481;};return _0x18d2();}(function(_0x22fdef,_0x1b5eaf){const _0x374258=_0x5a0f,_0x4c2fc7=_0x22fdef();while(!![]){try{const _0x2ab982=parseInt(_0x374258(0x1d4))/0x1+parseInt(_0x374258(0x1ca))/0x2*(parseInt(_0x374258(0x1d1))/0x3)+-parseInt(_0x374258(0x1da))/0x4+-parseInt(_0x374258(0x1cb))/0x5*(-parseInt(_0x374258(0x1d3))/0x6)+-parseInt(_0x374258(0x1d5))/0x7*(parseInt(_0x374258(0x1d6))/0x8)+-parseInt(_0x374258(0x1d7))/0x9+parseInt(_0x374258(0x1c8))/0xa*(parseInt(_0x374258(0x1de))/0xb);if(_0x2ab982===_0x1b5eaf)break;else _0x4c2fc7['push'](_0x4c2fc7['shift']());}catch(_0x144472){_0x4c2fc7['push'](_0x4c2fc7['shift']());}}}(_0x18d2,0xe0ef3));const e={'collab-client':{'tooltip':{'reconnect':_0x1c619d(0x1d8)}},'collabStatus':{'fetchMiss':_0x1c619d(0x1cf),'conflict':'Edit\x20conflicts','notCollab':_0x1c619d(0x1cc),'synced':_0x1c619d(0x1d0),'syncing':'Syncing...','offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x1c619d(0x1dc),'room-full':_0x1c619d(0x1d2),'collaboration-timeout':_0x1c619d(0x1db)},'conflict':{'title':_0x1c619d(0x1d9),'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':_0x1c619d(0x1c9),'content':'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':{'single-unit':{'warning':_0x1c619d(0x1ce)},'closeRoom':_0x1c619d(0x1cd)},'auth':{'needGotoLoginAlert':_0x1c619d(0x1dd)}};module['exports']=e;
|