@univerjs-pro/sheets-shape 0.21.0 → 0.21.1

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/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x48476a,_0x35deb4){const _0xce9e41=_0x235e,_0x389037=_0x48476a();while(!![]){try{const _0x4cdb77=-parseInt(_0xce9e41(0x14a))/0x1*(parseInt(_0xce9e41(0x15e))/0x2)+-parseInt(_0xce9e41(0x14d))/0x3+-parseInt(_0xce9e41(0x15c))/0x4+parseInt(_0xce9e41(0x137))/0x5+-parseInt(_0xce9e41(0x185))/0x6+-parseInt(_0xce9e41(0x13d))/0x7+parseInt(_0xce9e41(0x131))/0x8;if(_0x4cdb77===_0x35deb4)break;else _0x389037['push'](_0x389037['shift']());}catch(_0x274fad){_0x389037['push'](_0x389037['shift']());}}}(_0x2b34,0xdd95e),function(_0x4b243b,_0x10a2a4){const _0x42853c=_0x235e;typeof exports==_0x42853c(0x15b)&&typeof module<'u'?_0x10a2a4(exports,require(`@univerjs-pro/engine-shape`),require(`@univerjs/core/facade`),require(`@univerjs-pro/sheets-shape`),require(`@univerjs/core`),require(`@univerjs/drawing`),require(`@univerjs/sheets`),require(`@univerjs/sheets-drawing`),require(`@univerjs/sheets/facade`)):typeof define=='function'&&define[_0x42853c(0x147)]?define(['exports',_0x42853c(0x197),_0x42853c(0x11f),_0x42853c(0x18e),_0x42853c(0x1c3),_0x42853c(0x125),_0x42853c(0x1c2),_0x42853c(0x14f),'@univerjs/sheets/facade'],_0x10a2a4):(_0x4b243b=typeof globalThis<'u'?globalThis:_0x4b243b||self,_0x10a2a4(_0x4b243b[_0x42853c(0x17f)]={},_0x4b243b[_0x42853c(0x194)],_0x4b243b['UniverCoreFacade'],_0x4b243b[_0x42853c(0x1af)],_0x4b243b[_0x42853c(0x1a3)],_0x4b243b['UniverDrawing'],_0x4b243b[_0x42853c(0x19d)],_0x4b243b[_0x42853c(0x18d)],_0x4b243b[_0x42853c(0x18f)]));}(this,function(_0x208236,_0x5dff78,_0x53d2ae,_0xc460f5,_0x3351eb,_0x22a508,_0x4e3cb0,_0x227392,_0x2f54cd){const _0x167ded=_0x235e;Object[_0x167ded(0x122)](_0x208236,Symbol[_0x167ded(0x169)],{'value':_0x167ded(0x158)});var _0x16332f=class extends _0x53d2ae['FEnum']{get[_0x167ded(0x120)](){return _0x5dff78['ShapeTypeEnum'];}get[_0x167ded(0x176)](){const _0x454c34=_0x167ded;return _0x5dff78[_0x454c34(0x176)];}get[_0x167ded(0x146)](){const _0x1a35e1=_0x167ded;return _0x5dff78[_0x1a35e1(0x146)];}get[_0x167ded(0x129)](){return _0x5dff78['ShapeLineTypeEnum'];}get[_0x167ded(0x121)](){const _0x573038=_0x167ded;return _0x5dff78[_0x573038(0x121)];}get['ShapeLineCapEnum'](){const _0x195dc7=_0x167ded;return _0x5dff78[_0x195dc7(0x1b1)];}get[_0x167ded(0x12a)](){return _0x5dff78['ShapeLineJoinEnum'];}get[_0x167ded(0x19f)](){return _0x5dff78['ShapeArrowTypeEnum'];}get[_0x167ded(0x145)](){const _0x5c9fc3=_0x167ded;return _0x5dff78[_0x5c9fc3(0x145)];}};_0x53d2ae[_0x167ded(0x18b)][_0x167ded(0x17d)](_0x16332f);function _0x29c213(_0x927837){'@babel/helpers - typeof';const _0x5a25ed=_0x167ded;return _0x29c213=typeof Symbol==_0x5a25ed(0x163)&&typeof Symbol['iterator']==_0x5a25ed(0x14c)?function(_0x36ed09){return typeof _0x36ed09;}:function(_0x4d2a1a){const _0x360e56=_0x5a25ed;return _0x4d2a1a&&typeof Symbol==_0x360e56(0x163)&&_0x4d2a1a['constructor']===Symbol&&_0x4d2a1a!==Symbol['prototype']?_0x360e56(0x14c):typeof _0x4d2a1a;},_0x29c213(_0x927837);}function _0x262f80(_0x5a944f,_0x857a2a){const _0x2a6361=_0x167ded;if(_0x29c213(_0x5a944f)!='object'||!_0x5a944f)return _0x5a944f;var _0x42998e=_0x5a944f[Symbol[_0x2a6361(0x130)]];if(_0x42998e!==void 0x0){var _0x2a5f50=_0x42998e[_0x2a6361(0x138)](_0x5a944f,_0x857a2a||_0x2a6361(0x183));if(_0x29c213(_0x2a5f50)!=_0x2a6361(0x15b))return _0x2a5f50;throw TypeError(_0x2a6361(0x1b6));}return(_0x857a2a===_0x2a6361(0x181)?String:Number)(_0x5a944f);}function _0x2a09c0(_0x245f8e){const _0x2dfca5=_0x167ded;var _0x422c0f=_0x262f80(_0x245f8e,'string');return _0x29c213(_0x422c0f)==_0x2dfca5(0x14c)?_0x422c0f:_0x422c0f+'';}function _0x10890f(_0x1846d3,_0x12d749,_0x36d717){return(_0x12d749=_0x2a09c0(_0x12d749))in _0x1846d3?Object['defineProperty'](_0x1846d3,_0x12d749,{'value':_0x36d717,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1846d3[_0x12d749]=_0x36d717,_0x1846d3;}var _0x29e023=class{constructor(_0x419c90,_0xf34cbe,_0x3bacf7,_0xa7e0ac){const _0x160c24=_0x167ded;_0x10890f(this,_0x160c24(0x1c6),void 0x0),_0x10890f(this,_0x160c24(0x16b),void 0x0),_0x10890f(this,_0x160c24(0x12c),void 0x0),_0x10890f(this,'x',0x0),_0x10890f(this,'y',0x0),_0x10890f(this,_0x160c24(0x170),_0xc460f5['DEFAULT_SHAPE_WIDTH']),_0x10890f(this,_0x160c24(0x184),_0xc460f5['DEFAULT_SHAPE_HEIGHT']),_0x10890f(this,_0x160c24(0x180),void 0x0),_0x10890f(this,_0x160c24(0x140),{}),_0x10890f(this,_0x160c24(0x14e),void 0x0),this[_0x160c24(0x1c6)]=_0x419c90,this[_0x160c24(0x16b)]=_0xf34cbe,this[_0x160c24(0x12c)]=_0x3bacf7||(0x0,_0x3351eb['generateRandomId'])(),this[_0x160c24(0x14e)]=_0xa7e0ac;}[_0x167ded(0x1b0)](_0x4e93e3,_0x252c1e,_0x4123f0,_0x42a19c){const _0xe30b93=_0x167ded;let _0x281c43=this[_0xe30b93(0x14e)]['get'](_0x4e3cb0[_0xe30b93(0x139)])[_0xe30b93(0x174)](this[_0xe30b93(0x1c6)],this[_0xe30b93(0x16b)]);if(!_0x281c43)throw Error(_0xe30b93(0x14b)+this[_0xe30b93(0x1c6)]+'\x20and\x20subUnitId\x20'+this['subUnitId']+_0xe30b93(0x1c7));let {transform:_0x340aae}=(0x0,_0x4e3cb0['convertPositionCellToSheetOverGrid'])(this[_0xe30b93(0x1c6)],this[_0xe30b93(0x16b)],{'row':_0x4e93e3,'column':_0x252c1e,'rowOffset':_0x4123f0,'columnOffset':_0x42a19c},0x1,0x1,_0x281c43);return this['x']=_0x340aae[_0xe30b93(0x1b2)],this['y']=_0x340aae['top'],this;}[_0x167ded(0x124)](_0x22eceb,_0x3835fd){return this['x']=_0x22eceb,this['y']=_0x3835fd,this;}[_0x167ded(0x159)](_0x5072e2){return this['shapeType']=_0x5072e2,this;}[_0x167ded(0x149)](_0xa0d88e,_0x24d91b){const _0x21e1aa=_0x167ded;return this[_0x21e1aa(0x140)][_0x21e1aa(0x132)]||(this[_0x21e1aa(0x140)]['fill']={}),this['shapeData'][_0x21e1aa(0x132)][_0x21e1aa(0x1ba)]=_0x5dff78[_0x21e1aa(0x176)][_0x21e1aa(0x152)],_0xa0d88e!==void 0x0&&(this[_0x21e1aa(0x140)]['fill'][_0x21e1aa(0x1c0)]=_0xa0d88e),_0x24d91b!==void 0x0&&(this['shapeData'][_0x21e1aa(0x132)][_0x21e1aa(0x191)]=_0x24d91b),this;}[_0x167ded(0x1b8)](_0x156f85,_0x24b96c,_0x492578){const _0x4f9f2f=_0x167ded;if(_0x24b96c===void 0x0||_0x24b96c[_0x4f9f2f(0x182)]===0x0)throw Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');return this[_0x4f9f2f(0x140)][_0x4f9f2f(0x132)]||(this['shapeData'][_0x4f9f2f(0x132)]={}),this[_0x4f9f2f(0x140)][_0x4f9f2f(0x132)][_0x4f9f2f(0x171)]=_0x24b96c,this['shapeData'][_0x4f9f2f(0x132)][_0x4f9f2f(0x1ba)]=_0x5dff78[_0x4f9f2f(0x176)][_0x4f9f2f(0x1ad)],this[_0x4f9f2f(0x140)]['fill'][_0x4f9f2f(0x168)]=_0x156f85,_0x492578!==void 0x0&&(this[_0x4f9f2f(0x140)]['fill'][_0x4f9f2f(0x1bc)]=_0x492578),this;}[_0x167ded(0x17b)](){const _0x2ef4b5=_0x167ded;return this['shapeData'][_0x2ef4b5(0x132)]={'fillType':_0x5dff78[_0x2ef4b5(0x176)][_0x2ef4b5(0x12f)]},this;}['setStrokeColor'](_0x566c26){const _0x462757=_0x167ded;return this[_0x462757(0x140)][_0x462757(0x1bd)]||(this[_0x462757(0x140)][_0x462757(0x1bd)]={}),this[_0x462757(0x140)]['stroke'][_0x462757(0x1c0)]=_0x566c26,this;}[_0x167ded(0x199)](_0x5af2f5){const _0xf99c4a=_0x167ded;return this['shapeData'][_0xf99c4a(0x1bd)]||(this[_0xf99c4a(0x140)][_0xf99c4a(0x1bd)]={}),this['shapeData'][_0xf99c4a(0x1bd)]['width']=_0x5af2f5,this;}[_0x167ded(0x126)](_0x29d02a){const _0x5d8524=_0x167ded;return this['shapeData'][_0x5d8524(0x1bd)]||(this[_0x5d8524(0x140)][_0x5d8524(0x1bd)]={}),this[_0x5d8524(0x140)][_0x5d8524(0x1bd)]['dashType']=_0x29d02a,this;}[_0x167ded(0x155)](_0x1577e8){const _0x1a0f39=_0x167ded;return this['shapeData'][_0x1a0f39(0x1bd)]||(this[_0x1a0f39(0x140)][_0x1a0f39(0x1bd)]={}),this[_0x1a0f39(0x140)][_0x1a0f39(0x1bd)][_0x1a0f39(0x157)]=_0x1577e8,this;}[_0x167ded(0x19e)](_0x1cef0b){const _0x3241a4=_0x167ded;return this[_0x3241a4(0x140)][_0x3241a4(0x1bd)]||(this['shapeData'][_0x3241a4(0x1bd)]={}),this[_0x3241a4(0x140)][_0x3241a4(0x1bd)][_0x3241a4(0x143)]=_0x1cef0b,this;}[_0x167ded(0x1b3)](_0x273888){const _0x1b75d2=_0x167ded;return this[_0x1b75d2(0x140)][_0x1b75d2(0x1bd)]||(this[_0x1b75d2(0x140)][_0x1b75d2(0x1bd)]={}),this[_0x1b75d2(0x140)][_0x1b75d2(0x1bd)][_0x1b75d2(0x191)]=_0x273888,this;}[_0x167ded(0x160)](_0x11bcd1){const _0x4c4976=_0x167ded;return this[_0x4c4976(0x140)][_0x4c4976(0x1bd)]||(this[_0x4c4976(0x140)][_0x4c4976(0x1bd)]={}),this[_0x4c4976(0x140)][_0x4c4976(0x1bd)][_0x4c4976(0x13f)]=_0x11bcd1,this;}[_0x167ded(0x19c)](_0x4a73fe){return this['width']=_0x4a73fe,this;}['setHeight'](_0x34769b){const _0x347a7e=_0x167ded;return this[_0x347a7e(0x184)]=_0x34769b,this;}[_0x167ded(0x18a)](){const _0xb4bb93=_0x167ded;let _0x582779=this[_0xb4bb93(0x14e)][_0xb4bb93(0x17e)](_0xc460f5[_0xb4bb93(0x1a2)])[_0xb4bb93(0x189)](this[_0xb4bb93(0x1c6)],this['subUnitId'],this[_0xb4bb93(0x12c)]);return _0x582779?(0x0,_0x5dff78[_0xb4bb93(0x134)])(_0x582779[_0xb4bb93(0x133)]()):this['shapeType']?(0x0,_0x5dff78[_0xb4bb93(0x134)])(this['shapeType']):!0x1;}[_0x167ded(0x13b)](){const _0x459da4=_0x167ded;let _0x24ea72=this[_0x459da4(0x14e)][_0x459da4(0x17e)](_0xc460f5[_0x459da4(0x1a2)])['getShapeModel'](this[_0x459da4(0x1c6)],this['subUnitId'],this[_0x459da4(0x12c)]);if(!_0x24ea72)return[];let _0x35c384=this[_0x459da4(0x14e)][_0x459da4(0x17e)](_0x22a508['IDrawingManagerService'])['getDrawingByParam']({'unitId':this[_0x459da4(0x1c6)],'subUnitId':this[_0x459da4(0x16b)],'drawingId':this[_0x459da4(0x12c)]});if(!(_0x35c384!=null&&_0x35c384[_0x459da4(0x15a)]))return[];let {width:_0x4225d7=0x0,height:_0x87f1c3=0x0}=_0x35c384[_0x459da4(0x15a)];return _0x24ea72[_0x459da4(0x1a7)]({'width':_0x4225d7,'height':_0x87f1c3}),_0x24ea72[_0x459da4(0x179)]();}['getAdjustPoints'](){const _0x116faa=_0x167ded;let _0x2e0472=this[_0x116faa(0x14e)]['get'](_0xc460f5[_0x116faa(0x1a2)])[_0x116faa(0x189)](this['unitId'],this[_0x116faa(0x16b)],this[_0x116faa(0x12c)]);if(!_0x2e0472)return[];let _0x18e827=this[_0x116faa(0x14e)][_0x116faa(0x17e)](_0x22a508[_0x116faa(0x193)])['getDrawingByParam']({'unitId':this[_0x116faa(0x1c6)],'subUnitId':this[_0x116faa(0x16b)],'drawingId':this[_0x116faa(0x12c)]});if(!(_0x18e827!=null&&_0x18e827['transform']))return[];let {width:_0x3b3963=0x0,height:_0x35f7cf=0x0}=_0x18e827[_0x116faa(0x15a)];return _0x2e0472[_0x116faa(0x1a7)]({'width':_0x3b3963,'height':_0x35f7cf}),_0x2e0472[_0x116faa(0x175)]();}['getConnectorLinePoints'](){const _0x32dbe5=_0x167ded;let _0x5bb775=this[_0x32dbe5(0x14e)][_0x32dbe5(0x17e)](_0xc460f5[_0x32dbe5(0x1a2)])[_0x32dbe5(0x189)](this[_0x32dbe5(0x1c6)],this[_0x32dbe5(0x16b)],this[_0x32dbe5(0x12c)]);if(!_0x5bb775||!(0x0,_0x5dff78[_0x32dbe5(0x134)])(_0x5bb775[_0x32dbe5(0x133)]()))return[];let _0x182731=this[_0x32dbe5(0x14e)][_0x32dbe5(0x17e)](_0x22a508['IDrawingManagerService'])[_0x32dbe5(0x1a8)]({'unitId':this[_0x32dbe5(0x1c6)],'subUnitId':this['subUnitId'],'drawingId':this[_0x32dbe5(0x12c)]});if(!(_0x182731!=null&&_0x182731['transform']))return[];let {width:_0x1fbe93=0x0,height:_0x2bb5e2=0x0}=_0x182731['transform'];return _0x5bb775['updateContext']({'width':_0x1fbe93,'height':_0x2bb5e2}),_0x5bb775[_0x32dbe5(0x142)]();}[_0x167ded(0x164)](){const _0x11bcd2=_0x167ded;var _0x22bc3b;let _0x511949=this[_0x11bcd2(0x14e)][_0x11bcd2(0x17e)](_0xc460f5['SheetsShapeService'])[_0x11bcd2(0x189)](this[_0x11bcd2(0x1c6)],this[_0x11bcd2(0x16b)],this['drawId']);return _0x511949?(_0x22bc3b=_0x511949['getStartConnectInfo']())==null?null:_0x22bc3b:null;}['getEndConnectInfo'](){const _0x71787=_0x167ded;var _0xf5eafc;let _0x4bd50d=this[_0x71787(0x14e)][_0x71787(0x17e)](_0xc460f5[_0x71787(0x1a2)])[_0x71787(0x189)](this[_0x71787(0x1c6)],this[_0x71787(0x16b)],this[_0x71787(0x12c)]);return _0x4bd50d?(_0xf5eafc=_0x4bd50d[_0x71787(0x13e)]())==null?null:_0xf5eafc:null;}[_0x167ded(0x19a)](){const _0x15d468=_0x167ded;var _0x3018dc,_0x5600c2;if(!this[_0x15d468(0x180)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x5bb696=this['_injector'][_0x15d468(0x17e)](_0x4e3cb0[_0x15d468(0x139)])['ensureSkeleton'](this[_0x15d468(0x1c6)],this['subUnitId']);if(!_0x5bb696)throw Error(_0x15d468(0x14b)+this[_0x15d468(0x1c6)]+'\x20and\x20subUnitId\x20'+this['subUnitId']+_0x15d468(0x1c7));let {transform:_0x5b80d0}=(0x0,_0x4e3cb0[_0x15d468(0x148)])(this[_0x15d468(0x1c6)],this[_0x15d468(0x16b)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5bb696);this['x']=this['x']>0x0?this['x']:_0x5b80d0['left'],this['y']=this['y']>0x0?this['y']:_0x5b80d0[_0x15d468(0x16f)];}return this['width']=(_0x3018dc=this[_0x15d468(0x170)])==null?_0xc460f5[_0x15d468(0x1a1)]:_0x3018dc,this['height']=(_0x5600c2=this['height'])==null?_0xc460f5[_0x15d468(0x178)]:_0x5600c2,{'unitId':this['unitId'],'subUnitId':this['subUnitId'],'shapeId':this[_0x15d468(0x12c)],'shapeType':this[_0x15d468(0x180)],'shapeData':Object[_0x15d468(0x196)](this['shapeData'])[_0x15d468(0x182)]>0x0?this[_0x15d468(0x140)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x15d468(0x170)],'height':this['height']};}[_0x167ded(0x195)](){const _0x3e6344=_0x167ded;return this[_0x3e6344(0x12c)];}['getShapeType'](){const _0x3d6053=_0x167ded;return this[_0x3d6053(0x180)];}[_0x167ded(0x15f)](){const _0x2cdc7e=_0x167ded;return this[_0x2cdc7e(0x140)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x167ded(0x123)](){const _0x593c82=_0x167ded;return{'width':this[_0x593c82(0x170)],'height':this[_0x593c82(0x184)]};}},_0xfc88d5=class extends _0x29e023{constructor(_0x3d610b,_0x5cb6ec,_0x54291b,_0x1529b4){const _0x33c4ae=_0x167ded;super(_0x3d610b,_0x5cb6ec,_0x54291b,_0x1529b4),_0x10890f(this,_0x33c4ae(0x140),{});}[_0x167ded(0x159)](_0x4862df){const _0x4a2d12=_0x167ded;if(!(0x0,_0x5dff78['isConnectorShape'])(_0x4862df))throw Error(_0x4a2d12(0x1be)+_0x4862df+_0x4a2d12(0x1a5));return super[_0x4a2d12(0x159)](_0x4862df),this;}[_0x167ded(0x1aa)](_0x565df1){const _0x2e287c=_0x167ded;var _0x3db107,_0x4544a2;return(_0x3db107=this[_0x2e287c(0x140)])!=null&&_0x3db107['ln']||(this['shapeData']['ln']={}),!((_0x4544a2=this['shapeData'])==null||(_0x4544a2=_0x4544a2['ln'])==null)&&_0x4544a2['startArrow']||(this[_0x2e287c(0x140)]['ln'][_0x2e287c(0x1c5)]={}),this[_0x2e287c(0x140)]['ln']['startArrow']['type']=_0x565df1,this;}[_0x167ded(0x161)](_0xdaf849){const _0x1eada9=_0x167ded;var _0x2ae372,_0xa5259a;return(_0x2ae372=this['shapeData'])!=null&&_0x2ae372['ln']||(this[_0x1eada9(0x140)]['ln']={}),!((_0xa5259a=this[_0x1eada9(0x140)])==null||(_0xa5259a=_0xa5259a['ln'])==null)&&_0xa5259a[_0x1eada9(0x16a)]||(this['shapeData']['ln'][_0x1eada9(0x16a)]={}),this[_0x1eada9(0x140)]['ln']['endArrow'][_0x1eada9(0x16e)]=_0xdaf849,this;}[_0x167ded(0x1c4)](_0x19cba8){const _0x1392d8=_0x167ded;var _0x248f14,_0x2555cc;return(_0x248f14=this[_0x1392d8(0x140)])!=null&&_0x248f14['ln']||(this[_0x1392d8(0x140)]['ln']={}),!((_0x2555cc=this[_0x1392d8(0x140)])==null||(_0x2555cc=_0x2555cc['ln'])==null)&&_0x2555cc[_0x1392d8(0x1c5)]||(this[_0x1392d8(0x140)]['ln'][_0x1392d8(0x1c5)]={}),this['shapeData']['ln'][_0x1392d8(0x1c5)][_0x1392d8(0x16d)]=_0x19cba8,this;}['setEndArrowSize'](_0x6d5f89){const _0x2edb1f=_0x167ded;var _0x2c2b04,_0x489b90;return(_0x2c2b04=this[_0x2edb1f(0x140)])!=null&&_0x2c2b04['ln']||(this[_0x2edb1f(0x140)]['ln']={}),!((_0x489b90=this[_0x2edb1f(0x140)])==null||(_0x489b90=_0x489b90['ln'])==null)&&_0x489b90[_0x2edb1f(0x16a)]||(this[_0x2edb1f(0x140)]['ln'][_0x2edb1f(0x16a)]={}),this['shapeData']['ln']['endArrow'][_0x2edb1f(0x16d)]=_0x6d5f89,this;}[_0x167ded(0x19a)](){const _0x1ad06d=_0x167ded;return super[_0x1ad06d(0x19a)]();}[_0x167ded(0x13e)](){const _0x247872=_0x167ded;var _0xb05517;return((_0xb05517=this['shapeData'])==null||(_0xb05517=_0xb05517[_0x247872(0x1a6)])==null?void 0x0:_0xb05517['to'])||null;}[_0x167ded(0x164)](){const _0x3d988e=_0x167ded;var _0x4437a1;return((_0x4437a1=this[_0x3d988e(0x140)])==null||(_0x4437a1=_0x4437a1[_0x3d988e(0x1a6)])==null?void 0x0:_0x4437a1[_0x3d988e(0x198)])||null;}};function _0x33c0e0(_0x409512,_0x114bd3,_0x238d58,_0x81d767,_0x372315,_0x5b1988){const _0x2a6dc1=_0x167ded;let _0x4fdef8=_0x372315[_0x2a6dc1(0x189)](_0x409512,_0x114bd3,_0x238d58);if(!_0x4fdef8)return null;let _0x33db59=_0x5b1988[_0x2a6dc1(0x1a8)]({'unitId':_0x409512,'subUnitId':_0x114bd3,'drawingId':_0x238d58});if(!(_0x33db59!=null&&_0x33db59['transform']))return null;let {left:_0x2d2836=0x0,top:_0x73da21=0x0,width:_0x4e530a=0x0,height:_0x4beb91=0x0,flipX:_0x4e863d=!0x1,flipY:_0x12679f=!0x1,angle:_0x2fbfd2}=_0x33db59['transform'];_0x4fdef8[_0x2a6dc1(0x1a7)]({'width':_0x4e530a,'height':_0x4beb91});let _0x579e63=_0x4fdef8[_0x2a6dc1(0x179)]()[_0x2a6dc1(0x192)](_0x42e648=>_0x42e648[_0x2a6dc1(0x177)]===_0x81d767);if(!_0x579e63)return null;let _0xbb2abf=_0x4e863d?_0x4e530a-_0x579e63['x']:_0x579e63['x'],_0xf123c=_0x12679f?_0x4beb91-_0x579e63['y']:_0x579e63['y'];if(_0x2fbfd2&&_0x2fbfd2!==0x0){let _0x138f23=_0x2fbfd2*Math['PI']/0xb4,_0x385542=Math[_0x2a6dc1(0x127)](_0x138f23),_0x57c38d=Math[_0x2a6dc1(0x165)](_0x138f23),_0x195293=_0x4e530a/0x2,_0x378d53=_0x4beb91/0x2,_0x35daa9=_0xbb2abf-_0x195293,_0x190c7e=_0xf123c-_0x378d53;_0xbb2abf=_0x195293+_0x35daa9*_0x385542-_0x190c7e*_0x57c38d,_0xf123c=_0x378d53+_0x35daa9*_0x57c38d+_0x190c7e*_0x385542;}_0xbb2abf+=_0x2d2836,_0xf123c+=_0x73da21;let _0x19479d=_0x579e63[_0x2a6dc1(0x153)]/0xea60;_0x4e863d&&(_0x19479d=0xb4-_0x19479d),_0x12679f&&(_0x19479d=-_0x19479d),_0x19479d+=_0x2fbfd2||0x0,_0x19479d=(_0x19479d%0x168+0x168)%0x168;let _0x482ea8=(0x0,_0x5dff78[_0x2a6dc1(0x188)])({'left':_0x2d2836,'top':_0x73da21,'width':_0x4e530a,'height':_0x4beb91},_0x2fbfd2||0x0);return{'point':{'x':_0xbb2abf,'y':_0xf123c},'angle':_0x19479d,'bounds':_0x482ea8};}function _0xbb3f91(_0x2035b7,_0xe77b2a){const _0x116ea5=_0x167ded;let _0x2ec3ac=_0xe77b2a['x']-_0x2035b7['x'],_0x4cdd1d=_0xe77b2a['y']-_0x2035b7['y'];return Math[_0x116ea5(0x18c)](_0x2ec3ac)>=Math[_0x116ea5(0x18c)](_0x4cdd1d)?_0x2ec3ac>=0x0?0xb4:0x0:_0x4cdd1d>=0x0?0x10e:0x5a;}function _0x25dec5(_0x569855,_0x3b2f78,_0x922369,_0x2d37a1,_0x25ffa8,_0x5b7ae8,_0x798fad){const _0x570af2=_0x167ded;let _0x132c38=_0x5b7ae8[_0x570af2(0x189)](_0x569855,_0x3b2f78,_0x922369);if(!_0x132c38)return null;let _0x406ab3=_0x798fad[_0x570af2(0x1a8)]({'unitId':_0x569855,'subUnitId':_0x3b2f78,'drawingId':_0x922369});if(!(_0x406ab3!=null&&_0x406ab3['transform']))return null;let {left:_0x355110=0x0,top:_0x238c19=0x0,width:_0xd8e959=0x0,height:_0x2fabda=0x0,flipX:_0x55ffad=!0x1,flipY:_0x18d7ea=!0x1}=_0x406ab3[_0x570af2(0x15a)];_0x132c38[_0x570af2(0x1a7)]({'width':_0xd8e959,'height':_0x2fabda});let _0x3d433d=_0x132c38[_0x570af2(0x142)]();if(_0x3d433d[_0x570af2(0x182)]<0x2)return null;let _0x4520a2=_0x2d37a1?_0x3d433d[0x0]:_0x3d433d[_0x3d433d[_0x570af2(0x182)]-0x1],_0x17bdf1=new _0x5dff78[(_0x570af2(0x11e))]({'left':_0x355110,'top':_0x238c19,'width':_0xd8e959,'height':_0x2fabda,'flipX':_0x55ffad,'flipY':_0x18d7ea})['localToWorld'](_0x4520a2);return{'point':_0x17bdf1,'angle':_0xbb3f91(_0x25ffa8[_0x570af2(0x141)],_0x17bdf1),'bounds':{'left':_0x17bdf1['x'],'top':_0x17bdf1['y'],'width':0x0,'height':0x0}};}var _0x19d2f4=class extends _0x2f54cd['FWorksheet']{async[_0x167ded(0x16c)](_0x385fe3){const _0x2888fb=_0x167ded;let {unitId:_0xdbb4a3,subUnitId:_0x524120,shapeId:_0x16b608,shapeType:_0x4e8d0a,shapeData:_0x2c082a,x:_0x53bafb,y:_0x339d15,width:_0x3d9234,height:_0x31cb78}=_0x385fe3;return this['_commandService']['executeCommand'](_0xc460f5[_0x2888fb(0x17c)]['id'],{'unitId':_0xdbb4a3,'subUnitId':_0x524120,'shapeId':_0x16b608,'shapeType':_0x4e8d0a,'shapeData':_0x2c082a,'position':{'x':_0x53bafb,'y':_0x339d15},'width':_0x3d9234,'height':_0x31cb78});}async['updateShape'](_0x12d556){const _0x3a9389=_0x167ded;let {unitId:_0x1ba77c,subUnitId:_0x104883,shapeId:_0x1e0a33,shapeType:_0x2ffdfb,shapeData:_0x1d3a37,x:_0x5dee32,y:_0x4da1fd,width:_0x42f4d5,height:_0x4b1555}=_0x12d556;return this[_0x3a9389(0x144)][_0x3a9389(0x1b7)](_0xc460f5[_0x3a9389(0x1b9)]['id'],{'unitId':_0x1ba77c,'subUnitId':_0x104883,'shapeId':_0x1e0a33,'shapeType':_0x2ffdfb,'shapeData':_0x1d3a37,'position':{'x':_0x5dee32,'y':_0x4da1fd},'width':_0x42f4d5,'height':_0x4b1555});}[_0x167ded(0x1ac)](_0x12fb9a){const _0x280069=_0x167ded;let _0x1b7d54=this[_0x280069(0x15d)]()[_0x280069(0x190)](),_0x55c1ca=this[_0x280069(0x19b)]();if(_0x12fb9a){let _0x1908fc=new _0x29e023(_0x1b7d54,_0x55c1ca,_0x12fb9a[_0x280069(0x12c)],this['_injector']);return this[_0x280069(0x167)](_0x1908fc,_0x1b7d54,_0x55c1ca,_0x12fb9a['drawId']),_0x1908fc;}return new _0x29e023(_0x1b7d54,_0x55c1ca,(0x0,_0x3351eb['generateRandomId'])(),this['_injector']);}['newConnector'](_0x5cf431){const _0x19ecc9=_0x167ded;let _0x39b429=this[_0x19ecc9(0x15d)]()[_0x19ecc9(0x190)](),_0x1230b4=this['getSheetId']();if(_0x5cf431){let _0x21176b=new _0xfc88d5(_0x39b429,_0x1230b4,_0x5cf431['drawId'],this[_0x19ecc9(0x14e)]);return this[_0x19ecc9(0x167)](_0x21176b,_0x39b429,_0x1230b4,_0x5cf431[_0x19ecc9(0x12c)]),_0x21176b;}return new _0xfc88d5(_0x39b429,_0x1230b4,(0x0,_0x3351eb['generateRandomId'])(),this[_0x19ecc9(0x14e)]);}[_0x167ded(0x187)](){const _0x4e2635=_0x167ded;let _0x2e69e4=this[_0x4e2635(0x14e)][_0x4e2635(0x17e)](_0x227392['ISheetDrawingService']),_0xb249af=this['getWorkbook']()[_0x4e2635(0x190)](),_0x1d76da=this['getSheetId'](),_0x1e09f4=_0x2e69e4[_0x4e2635(0x1a0)](_0xb249af,_0x1d76da);if(!_0x1e09f4)return[];let _0x2615ca=[];for(let [_0x2b741b,_0x36b0a0]of Object[_0x4e2635(0x1bf)](_0x1e09f4))if(_0x36b0a0&&_0x36b0a0[_0x4e2635(0x13a)]===_0x3351eb['DrawingTypeEnum']['DRAWING_SHAPE']){let _0x2468de=new _0x29e023(_0xb249af,_0x1d76da,_0x2b741b,this['_injector']);this['_preloadShapeProperties'](_0x2468de,_0xb249af,_0x1d76da,_0x2b741b),_0x2615ca[_0x4e2635(0x1c1)](_0x2468de);}return _0x2615ca;}['removeShape'](_0x137309){const _0x529a81=_0x167ded;let {unitId:_0x2908a2,subUnitId:_0x2816e9,drawId:_0x4768cd}=_0x137309;return this['_commandService'][_0x529a81(0x1b7)](_0x227392['RemoveSheetDrawingCommand']['id'],{'unitId':_0x2908a2,'drawings':[{'unitId':_0x2908a2,'subUnitId':_0x2816e9,'drawingId':_0x4768cd,'drawingType':_0x3351eb[_0x529a81(0x173)][_0x529a81(0x186)]}]});}async[_0x167ded(0x13c)](_0x5f3ce6){const _0x5ea503=_0x167ded;let {connector:_0x4bc47c,startTarget:_0x1884f7,endTarget:_0x465fff}=_0x5f3ce6;if(!_0x1884f7&&!_0x465fff)return!0x1;let _0x208fbf=this[_0x5ea503(0x15d)]()[_0x5ea503(0x190)](),_0x5d9c3c=this[_0x5ea503(0x19b)](),_0x1c7920=this['_injector'][_0x5ea503(0x17e)](_0xc460f5[_0x5ea503(0x1a2)]),_0x5cf067=this[_0x5ea503(0x14e)][_0x5ea503(0x17e)](_0x22a508[_0x5ea503(0x193)]),_0x9e6abb=_0x1c7920[_0x5ea503(0x189)](_0x208fbf,_0x5d9c3c,_0x4bc47c[_0x5ea503(0x12c)]);if(!_0x9e6abb)return!0x1;let _0x54f7b3=_0x9e6abb[_0x5ea503(0x133)](),_0x51165b=_0x9e6abb[_0x5ea503(0x1a9)](),_0x2f9e60={};for(let _0x588581 of _0x9e6abb[_0x5ea503(0x151)]()){let _0x12e3f9=_0x9e6abb[_0x5ea503(0x12e)](_0x588581);_0x12e3f9!==void 0x0&&(_0x2f9e60[_0x588581]=_0x12e3f9);}let {startInfo:_0x46a012,endInfo:_0xc17b77}=this[_0x5ea503(0x12b)](_0x208fbf,_0x5d9c3c,_0x4bc47c,_0x9e6abb,_0x1884f7,_0x465fff,_0x1c7920,_0x5cf067,_0x51165b);if(!_0x46a012||!_0xc17b77)return!0x1;let _0xc53b3d=(0x0,_0x5dff78[_0x5ea503(0x135)])((0x0,_0x5dff78[_0x5ea503(0x150)])(_0x46a012,_0xc17b77,_0x54f7b3),_0x54f7b3),_0x38c861={};return _0x1884f7?_0x38c861[_0x5ea503(0x198)]={'shapeId':_0x1884f7['shape'][_0x5ea503(0x12c)],'cxnIndex':_0x1884f7[_0x5ea503(0x136)]}:_0x51165b!=null&&_0x51165b[_0x5ea503(0x198)]&&(_0x38c861[_0x5ea503(0x198)]=_0x51165b[_0x5ea503(0x198)]),_0x465fff?_0x38c861['to']={'shapeId':_0x465fff[_0x5ea503(0x1ab)]['drawId'],'cxnIndex':_0x465fff[_0x5ea503(0x136)]}:_0x51165b!=null&&_0x51165b['to']&&(_0x38c861['to']=_0x51165b['to']),this[_0x5ea503(0x144)][_0x5ea503(0x1b7)](_0xc460f5[_0x5ea503(0x156)]['id'],{'unitId':_0x208fbf,'subUnitId':_0x5d9c3c,'connectorShapeId':_0x4bc47c[_0x5ea503(0x12c)],'width':_0xc53b3d[_0x5ea503(0x1ae)][_0x5ea503(0x170)],'height':_0xc53b3d[_0x5ea503(0x1ae)][_0x5ea503(0x184)],'left':_0xc53b3d[_0x5ea503(0x1ae)][_0x5ea503(0x1b2)],'top':_0xc53b3d[_0x5ea503(0x1ae)][_0x5ea503(0x16f)],'flipX':_0xc53b3d[_0x5ea503(0x1ae)][_0x5ea503(0x162)]||!0x1,'flipY':_0xc53b3d[_0x5ea503(0x1ae)][_0x5ea503(0x1b5)]||!0x1,'oldAdjustValues':_0x2f9e60,'newAdjustValues':_0xc53b3d[_0x5ea503(0x128)],'newLineType':_0xc53b3d[_0x5ea503(0x1b4)],'oldLineType':_0x54f7b3,'rotation':_0xc53b3d[_0x5ea503(0x17a)],'oldRelation':_0x51165b,'newRelation':_0x38c861});}[_0x167ded(0x167)](_0x57d350,_0x2da9ee,_0x5d2033,_0x1e078e){const _0x4bc8ea=_0x167ded;let _0x1353e1=this[_0x4bc8ea(0x14e)][_0x4bc8ea(0x17e)](_0x22a508[_0x4bc8ea(0x193)])[_0x4bc8ea(0x1a8)]({'unitId':_0x2da9ee,'subUnitId':_0x5d2033,'drawingId':_0x1e078e});if(_0x1353e1!=null&&_0x1353e1[_0x4bc8ea(0x15a)]){var _0x3d2cda,_0x233f0b,_0x5485f4,_0x4e66af;_0x57d350['x']=(_0x3d2cda=_0x1353e1['transform'][_0x4bc8ea(0x1b2)])==null?0x0:_0x3d2cda,_0x57d350['y']=(_0x233f0b=_0x1353e1[_0x4bc8ea(0x15a)][_0x4bc8ea(0x16f)])==null?0x0:_0x233f0b,_0x57d350['width']=(_0x5485f4=_0x1353e1[_0x4bc8ea(0x15a)][_0x4bc8ea(0x170)])==null?_0x57d350[_0x4bc8ea(0x170)]:_0x5485f4,_0x57d350[_0x4bc8ea(0x184)]=(_0x4e66af=_0x1353e1[_0x4bc8ea(0x15a)][_0x4bc8ea(0x184)])==null?_0x57d350[_0x4bc8ea(0x184)]:_0x4e66af;}let _0xc5a7fc=this[_0x4bc8ea(0x14e)]['get'](_0xc460f5[_0x4bc8ea(0x1a2)])[_0x4bc8ea(0x189)](_0x2da9ee,_0x5d2033,_0x1e078e);if(_0xc5a7fc){_0x57d350[_0x4bc8ea(0x180)]=_0xc5a7fc[_0x4bc8ea(0x133)]();let _0x31b350=_0xc5a7fc['getShapeData']();_0x31b350&&(_0x57d350[_0x4bc8ea(0x140)]=JSON[_0x4bc8ea(0x166)](JSON['stringify'](_0x31b350)));}}[_0x167ded(0x12b)](_0x32bf28,_0x31772a,_0x2f3e4c,_0x1c41a4,_0x2dd270,_0x7fae4a,_0x193d44,_0x5a4faa,_0x20e1ed){const _0x486671=_0x167ded;let _0x2720ba=null,_0x3674ec=null;return _0x2dd270&&(_0x2720ba=_0x33c0e0(_0x32bf28,_0x31772a,_0x2dd270[_0x486671(0x1ab)][_0x486671(0x12c)],_0x2dd270['connectionSiteIndex'],_0x193d44,_0x5a4faa)),_0x7fae4a&&(_0x3674ec=_0x33c0e0(_0x32bf28,_0x31772a,_0x7fae4a[_0x486671(0x1ab)][_0x486671(0x12c)],_0x7fae4a[_0x486671(0x136)],_0x193d44,_0x5a4faa)),_0x2720ba||(_0x2720ba=this['_resolveExistingOrFreeEndpoint'](_0x32bf28,_0x31772a,_0x2f3e4c['drawId'],!0x0,_0x3674ec,_0x20e1ed==null?void 0x0:_0x20e1ed[_0x486671(0x198)],_0x193d44,_0x5a4faa)),_0x3674ec||(_0x3674ec=this[_0x486671(0x12d)](_0x32bf28,_0x31772a,_0x2f3e4c[_0x486671(0x12c)],!0x1,_0x2720ba,_0x20e1ed==null?void 0x0:_0x20e1ed['to'],_0x193d44,_0x5a4faa)),{'startInfo':_0x2720ba,'endInfo':_0x3674ec};}[_0x167ded(0x12d)](_0x1f65a0,_0x4ca8be,_0x2d1266,_0x40c751,_0x2dbf3c,_0x24372f,_0x3cdcce,_0x4a3230){const _0x53dd7d=_0x167ded;if(_0x24372f){let _0x333d5c=_0x33c0e0(_0x1f65a0,_0x4ca8be,_0x24372f[_0x53dd7d(0x172)],_0x24372f[_0x53dd7d(0x154)],_0x3cdcce,_0x4a3230);if(_0x333d5c)return _0x333d5c;}return _0x2dbf3c?_0x25dec5(_0x1f65a0,_0x4ca8be,_0x2d1266,_0x40c751,_0x2dbf3c,_0x3cdcce,_0x4a3230):null;}};_0x2f54cd['FWorksheet'][_0x167ded(0x17d)](_0x19d2f4),_0x208236[_0x167ded(0x1a4)]=_0xfc88d5,_0x208236[_0x167ded(0x1bb)]=_0x29e023;}));function _0x235e(_0x174732,_0x394492){_0x174732=_0x174732-0x11e;const _0x2b34af=_0x2b34();let _0x235e2c=_0x2b34af[_0x174732];return _0x235e2c;}function _0x2b34(){const _0x58f660=['setPosition','ShapeLineCapEnum','left','setStrokeOpacity','lineType','flipY','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','executeCommand','setShapeGradientFill','SetShapeDrawingDataCommand','fillType','FShape','gradientAngle','stroke','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','entries','color','push','@univerjs/sheets','@univerjs/core','setStartArrowSize','startArrow','unitId','\x20not\x20found','ConnectorCoordinateTransform','@univerjs/core/facade','ShapeTypeEnum','ShapeLineDashEnum','defineProperty','getSize','setAbsolutePosition','@univerjs/drawing','setStrokeLineDashType','cos','adjustValues','ShapeLineTypeEnum','ShapeLineJoinEnum','_resolveEndpoints','drawId','_resolveExistingOrFreeEndpoint','getAdjustValueByName','NoFill','toPrimitive','36879104CzCwoh','fill','getShapeType','isConnectorShape','computeConnectorRouteLayout','connectionSiteIndex','7694660esxWkz','call','SheetSkeletonService','drawingType','getConnectionSites','connectShapes','3748738IPVnfp','getEndConnectInfo','lineStrokeType','shapeData','point','getConnectorLinePoints','capType','_commandService','ShapeArrowSizeEnum','ShapeGradientTypeEnum','amd','convertPositionCellToSheetOverGrid','setShapeSolidFill','385706jzemvn','Skeleton\x20for\x20unitId\x20','symbol','3919980bLSmxD','_injector','@univerjs/sheets-drawing','routeConnectorLineShape','getAdjustNames','SolidFill','ang','cxnIndex','setStrokeLineJoinType','UpdateConnectorRelationCommand','lineJoinType','Module','setShapeType','transform','object','4744780kczEyB','getWorkbook','6giTBfK','getShapeData','setStrokeLineType','setEndArrowType','flipX','function','getStartConnectInfo','sin','parse','_preloadShapeProperties','gradientType','toStringTag','endArrow','subUnitId','insertShape','size','type','top','width','gradientStops','shapeId','DrawingTypeEnum','ensureSkeleton','getDrawingPoints','ShapeFillEnum','index','DEFAULT_SHAPE_HEIGHT','getConnectionSiteList','rotation','setNoneFill','InsertShapeCommand','extend','get','UniverProSheetsShapeFacade','shapeType','string','length','default','height','6334194hNySkY','DRAWING_SHAPE','getShapes','getBasicShapeRotateBound','getShapeModel','isLineShape','FEnum','abs','UniverSheetsDrawing','@univerjs-pro/sheets-shape','UniverSheetsFacade','getUnitId','opacity','find','IDrawingManagerService','UniverProEngineShape','getShapeId','keys','@univerjs-pro/engine-shape','from','setStrokeWidth','build','getSheetId','setWidth','UniverSheets','setStrokeLineCapType','ShapeArrowTypeEnum','getDrawingData','DEFAULT_SHAPE_WIDTH','SheetsShapeService','UniverCore','FConnectorShape',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','relation','updateContext','getDrawingByParam','getShapeRelation','setStartArrowType','shape','newShape','GradientFill','worldRect','UniverProSheetsShape'];_0x2b34=function(){return _0x58f660;};return _0x2b34();}
1
+ function _0x5978(_0x32f4dc,_0x52d470){_0x32f4dc=_0x32f4dc-0x154;const _0x1b3310=_0x1b33();let _0x59787c=_0x1b3310[_0x32f4dc];return _0x59787c;}function _0x1b33(){const _0x28c098=['extend','fillType','ensureSkeleton','4757451kTRQPN','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','connectShapes','FWorksheet','FShape','setStartArrowSize','ConnectorCoordinateTransform','ang','UniverSheetsFacade','drawingType','type','setHeight','shapeData','amd','UniverCore','lineJoinType','UniverProSheetsShapeFacade','subUnitId','getAdjustNames','SetShapeDrawingDataCommand','UpdateConnectorRelationCommand','newShape','getShapeData','getDrawingPoints','_resolveEndpoints','capType','color','unitId','setStrokeColor','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','object','getConnectionSiteList','updateShape','ShapeTypeEnum','_resolveExistingOrFreeEndpoint','setStrokeLineJoinType','rotation','shape','4745788WJxWDC','setShapeType','get','shapeType','setEndArrowType','setAbsolutePosition','22831288ZCxlxy','index','setPosition','ShapeArrowSizeEnum','ShapeLineDashEnum','isConnectorShape','left','opacity','@univerjs-pro/engine-shape','UniverCoreFacade','lineStrokeType','getSheetId','ShapeLineTypeEnum','@univerjs/sheets','\x20not\x20found','generateRandomId','IDrawingManagerService','call','getShapeRelation','iterator','SheetsShapeService','DrawingTypeEnum','\x20and\x20subUnitId\x20','getConnectorLinePoints','relation','ShapeLineJoinEnum','defineProperty','cos','keys','computeConnectorRouteLayout','dashType','size','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getShapeType','NoFill','2967530eBVoiW','constructor','@univerjs/sheets-drawing','setShapeSolidFill','getShapeModel','setShapeGradientFill','DRAWING_SHAPE','32982vZzJCJ','FEnum','_injector','getStartConnectInfo','Skeleton\x20for\x20unitId\x20','_commandService','ShapeArrowTypeEnum','push','toStringTag','DEFAULT_SHAPE_WIDTH','default','drawId','top','height','updateContext','getUnitId','build','startArrow','ShapeFillEnum','flipX','getShapes','connectionSiteIndex','115ZlLeNJ','removeShape','SheetSkeletonService','endArrow','executeCommand','abs','_preloadShapeProperties','FConnectorShape','GradientFill','function','getShapeId','setWidth','worldRect','from','prototype','string','width','setNoneFill','DEFAULT_SHAPE_HEIGHT','ShapeGradientTypeEnum','symbol','getBasicShapeRotateBound','1337063lJMqRC','setStrokeOpacity','RemoveSheetDrawingCommand','getDrawingByParam','setStrokeLineCapType','gradientAngle','setStartArrowType','4872448CjfemR','Module','ShapeLineCapEnum','transform','newConnector','setStrokeWidth','insertShape','fill','getDrawingData','getEndConnectInfo','getConnectionSites','find','@univerjs-pro/sheets-shape','ISheetDrawingService','getWorkbook','setEndArrowSize','length','stroke','InsertShapeCommand','setStrokeLineType','sin'];_0x1b33=function(){return _0x28c098;};return _0x1b33();}(function(_0x3dc5af,_0x12180a){const _0x10a58b=_0x5978,_0x2d1d08=_0x3dc5af();while(!![]){try{const _0xf1fa07=-parseInt(_0x10a58b(0x1a7))/0x1+parseInt(_0x10a58b(0x174))/0x2+-parseInt(_0x10a58b(0x1c6))/0x3+-parseInt(_0x10a58b(0x1ec))/0x4+-parseInt(_0x10a58b(0x191))/0x5*(parseInt(_0x10a58b(0x17b))/0x6)+parseInt(_0x10a58b(0x1ae))/0x7+parseInt(_0x10a58b(0x1f2))/0x8;if(_0xf1fa07===_0x12180a)break;else _0x2d1d08['push'](_0x2d1d08['shift']());}catch(_0x25ceae){_0x2d1d08['push'](_0x2d1d08['shift']());}}}(_0x1b33,0xc2d1e),function(_0xba63c2,_0x13474e){const _0x163a3e=_0x5978;typeof exports==_0x163a3e(0x1e4)&&typeof module<'u'?_0x13474e(exports,require(`@univerjs-pro/engine-shape`),require(`@univerjs/core/facade`),require(`@univerjs-pro/sheets-shape`),require(`@univerjs/core`),require(`@univerjs/drawing`),require(`@univerjs/sheets`),require(`@univerjs/sheets-drawing`),require(`@univerjs/sheets/facade`)):typeof define==_0x163a3e(0x19a)&&define[_0x163a3e(0x1d3)]?define(['exports',_0x163a3e(0x159),'@univerjs/core/facade',_0x163a3e(0x1ba),'@univerjs/core','@univerjs/drawing',_0x163a3e(0x15e),_0x163a3e(0x176),'@univerjs/sheets/facade'],_0x13474e):(_0xba63c2=typeof globalThis<'u'?globalThis:_0xba63c2||self,_0x13474e(_0xba63c2[_0x163a3e(0x1d6)]={},_0xba63c2['UniverProEngineShape'],_0xba63c2[_0x163a3e(0x15a)],_0xba63c2['UniverProSheetsShape'],_0xba63c2[_0x163a3e(0x1d4)],_0xba63c2['UniverDrawing'],_0xba63c2['UniverSheets'],_0xba63c2['UniverSheetsDrawing'],_0xba63c2[_0x163a3e(0x1ce)]));}(this,function(_0x5f2704,_0x173714,_0x4fc65a,_0x279c60,_0x571994,_0x5117f2,_0x324a21,_0x2c65ab,_0x1c505a){const _0x361240=_0x5978;Object[_0x361240(0x16b)](_0x5f2704,Symbol[_0x361240(0x183)],{'value':_0x361240(0x1af)});var _0x216648=class extends _0x4fc65a[_0x361240(0x17c)]{get[_0x361240(0x1e7)](){const _0x2327b7=_0x361240;return _0x173714[_0x2327b7(0x1e7)];}get[_0x361240(0x18d)](){const _0x8c7de7=_0x361240;return _0x173714[_0x8c7de7(0x18d)];}get[_0x361240(0x1a4)](){const _0x41c40f=_0x361240;return _0x173714[_0x41c40f(0x1a4)];}get['ShapeLineTypeEnum'](){const _0x13ddb1=_0x361240;return _0x173714[_0x13ddb1(0x15d)];}get[_0x361240(0x155)](){return _0x173714['ShapeLineDashEnum'];}get[_0x361240(0x1b0)](){const _0x539b93=_0x361240;return _0x173714[_0x539b93(0x1b0)];}get['ShapeLineJoinEnum'](){const _0x4b1d80=_0x361240;return _0x173714[_0x4b1d80(0x16a)];}get[_0x361240(0x181)](){return _0x173714['ShapeArrowTypeEnum'];}get[_0x361240(0x154)](){const _0x252210=_0x361240;return _0x173714[_0x252210(0x154)];}};_0x4fc65a[_0x361240(0x17c)][_0x361240(0x1c3)](_0x216648);function _0x2f3ab4(_0x369f30){'@babel/helpers - typeof';const _0x8238de=_0x361240;return _0x2f3ab4=typeof Symbol==_0x8238de(0x19a)&&typeof Symbol[_0x8238de(0x164)]==_0x8238de(0x1a5)?function(_0x54e3d4){return typeof _0x54e3d4;}:function(_0x15b741){const _0x2ecfef=_0x8238de;return _0x15b741&&typeof Symbol==_0x2ecfef(0x19a)&&_0x15b741[_0x2ecfef(0x175)]===Symbol&&_0x15b741!==Symbol[_0x2ecfef(0x19f)]?_0x2ecfef(0x1a5):typeof _0x15b741;},_0x2f3ab4(_0x369f30);}function _0xb218d0(_0x39c4f1,_0x327b5e){const _0x40018d=_0x361240;if(_0x2f3ab4(_0x39c4f1)!='object'||!_0x39c4f1)return _0x39c4f1;var _0x33cdd8=_0x39c4f1[Symbol['toPrimitive']];if(_0x33cdd8!==void 0x0){var _0x71f165=_0x33cdd8[_0x40018d(0x162)](_0x39c4f1,_0x327b5e||_0x40018d(0x185));if(_0x2f3ab4(_0x71f165)!='object')return _0x71f165;throw TypeError(_0x40018d(0x171));}return(_0x327b5e===_0x40018d(0x1a0)?String:Number)(_0x39c4f1);}function _0x32402c(_0x2ed57f){var _0x4f6fe5=_0xb218d0(_0x2ed57f,'string');return _0x2f3ab4(_0x4f6fe5)=='symbol'?_0x4f6fe5:_0x4f6fe5+'';}function _0x275360(_0x24f937,_0x9f6ede,_0x4e8bcf){const _0xb93e2f=_0x361240;return(_0x9f6ede=_0x32402c(_0x9f6ede))in _0x24f937?Object[_0xb93e2f(0x16b)](_0x24f937,_0x9f6ede,{'value':_0x4e8bcf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x24f937[_0x9f6ede]=_0x4e8bcf,_0x24f937;}var _0x23a355=class{constructor(_0x522021,_0x308c7f,_0x5a6fd,_0x5b4ff3){const _0xccc729=_0x361240;_0x275360(this,_0xccc729(0x1e1),void 0x0),_0x275360(this,'subUnitId',void 0x0),_0x275360(this,'drawId',void 0x0),_0x275360(this,'x',0x0),_0x275360(this,'y',0x0),_0x275360(this,'width',_0x279c60[_0xccc729(0x184)]),_0x275360(this,_0xccc729(0x188),_0x279c60[_0xccc729(0x1a3)]),_0x275360(this,_0xccc729(0x1ef),void 0x0),_0x275360(this,_0xccc729(0x1d2),{}),_0x275360(this,_0xccc729(0x17d),void 0x0),this[_0xccc729(0x1e1)]=_0x522021,this['subUnitId']=_0x308c7f,this[_0xccc729(0x186)]=_0x5a6fd||(0x0,_0x571994['generateRandomId'])(),this['_injector']=_0x5b4ff3;}[_0x361240(0x1f4)](_0x225385,_0x95e390,_0x40ad9d,_0x173b1){const _0x3a1a45=_0x361240;let _0x3261e4=this[_0x3a1a45(0x17d)][_0x3a1a45(0x1ee)](_0x324a21[_0x3a1a45(0x193)])[_0x3a1a45(0x1c5)](this[_0x3a1a45(0x1e1)],this[_0x3a1a45(0x1d7)]);if(!_0x3261e4)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x3a1a45(0x1e1)]+_0x3a1a45(0x167)+this[_0x3a1a45(0x1d7)]+_0x3a1a45(0x15f));let {transform:_0x2ae197}=(0x0,_0x324a21['convertPositionCellToSheetOverGrid'])(this[_0x3a1a45(0x1e1)],this['subUnitId'],{'row':_0x225385,'column':_0x95e390,'rowOffset':_0x40ad9d,'columnOffset':_0x173b1},0x1,0x1,_0x3261e4);return this['x']=_0x2ae197[_0x3a1a45(0x157)],this['y']=_0x2ae197['top'],this;}[_0x361240(0x1f1)](_0x24a299,_0x4aadc2){return this['x']=_0x24a299,this['y']=_0x4aadc2,this;}['setShapeType'](_0xf2a72e){return this['shapeType']=_0xf2a72e,this;}[_0x361240(0x177)](_0x52afcb,_0x3ddf03){const _0x483354=_0x361240;return this['shapeData'][_0x483354(0x1b5)]||(this['shapeData'][_0x483354(0x1b5)]={}),this[_0x483354(0x1d2)][_0x483354(0x1b5)][_0x483354(0x1c4)]=_0x173714[_0x483354(0x18d)]['SolidFill'],_0x52afcb!==void 0x0&&(this[_0x483354(0x1d2)][_0x483354(0x1b5)][_0x483354(0x1e0)]=_0x52afcb),_0x3ddf03!==void 0x0&&(this[_0x483354(0x1d2)][_0x483354(0x1b5)][_0x483354(0x158)]=_0x3ddf03),this;}[_0x361240(0x179)](_0x3816dc,_0x44b37c,_0x4073fa){const _0x47d67e=_0x361240;if(_0x44b37c===void 0x0||_0x44b37c[_0x47d67e(0x1be)]===0x0)throw Error(_0x47d67e(0x1e3));return this[_0x47d67e(0x1d2)][_0x47d67e(0x1b5)]||(this[_0x47d67e(0x1d2)]['fill']={}),this[_0x47d67e(0x1d2)][_0x47d67e(0x1b5)]['gradientStops']=_0x44b37c,this[_0x47d67e(0x1d2)][_0x47d67e(0x1b5)][_0x47d67e(0x1c4)]=_0x173714[_0x47d67e(0x18d)][_0x47d67e(0x199)],this['shapeData'][_0x47d67e(0x1b5)]['gradientType']=_0x3816dc,_0x4073fa!==void 0x0&&(this[_0x47d67e(0x1d2)][_0x47d67e(0x1b5)][_0x47d67e(0x1ac)]=_0x4073fa),this;}[_0x361240(0x1a2)](){const _0x2b5525=_0x361240;return this[_0x2b5525(0x1d2)]['fill']={'fillType':_0x173714[_0x2b5525(0x18d)][_0x2b5525(0x173)]},this;}[_0x361240(0x1e2)](_0x29e5bc){const _0x36de54=_0x361240;return this[_0x36de54(0x1d2)]['stroke']||(this['shapeData'][_0x36de54(0x1bf)]={}),this[_0x36de54(0x1d2)][_0x36de54(0x1bf)][_0x36de54(0x1e0)]=_0x29e5bc,this;}[_0x361240(0x1b3)](_0x590168){const _0x308c9c=_0x361240;return this[_0x308c9c(0x1d2)][_0x308c9c(0x1bf)]||(this['shapeData'][_0x308c9c(0x1bf)]={}),this['shapeData'][_0x308c9c(0x1bf)][_0x308c9c(0x1a1)]=_0x590168,this;}['setStrokeLineDashType'](_0x3ef92f){const _0x20be55=_0x361240;return this[_0x20be55(0x1d2)][_0x20be55(0x1bf)]||(this[_0x20be55(0x1d2)][_0x20be55(0x1bf)]={}),this[_0x20be55(0x1d2)]['stroke'][_0x20be55(0x16f)]=_0x3ef92f,this;}[_0x361240(0x1e9)](_0x5a1de4){const _0x59ecc3=_0x361240;return this['shapeData']['stroke']||(this['shapeData'][_0x59ecc3(0x1bf)]={}),this[_0x59ecc3(0x1d2)][_0x59ecc3(0x1bf)][_0x59ecc3(0x1d5)]=_0x5a1de4,this;}[_0x361240(0x1ab)](_0x1f4fbb){const _0x2efc4c=_0x361240;return this[_0x2efc4c(0x1d2)]['stroke']||(this[_0x2efc4c(0x1d2)][_0x2efc4c(0x1bf)]={}),this[_0x2efc4c(0x1d2)]['stroke'][_0x2efc4c(0x1df)]=_0x1f4fbb,this;}[_0x361240(0x1a8)](_0x4a4ff1){const _0x6b44ba=_0x361240;return this[_0x6b44ba(0x1d2)][_0x6b44ba(0x1bf)]||(this[_0x6b44ba(0x1d2)][_0x6b44ba(0x1bf)]={}),this[_0x6b44ba(0x1d2)][_0x6b44ba(0x1bf)][_0x6b44ba(0x158)]=_0x4a4ff1,this;}[_0x361240(0x1c1)](_0x101b20){const _0x51c98e=_0x361240;return this[_0x51c98e(0x1d2)][_0x51c98e(0x1bf)]||(this[_0x51c98e(0x1d2)][_0x51c98e(0x1bf)]={}),this[_0x51c98e(0x1d2)][_0x51c98e(0x1bf)][_0x51c98e(0x15b)]=_0x101b20,this;}[_0x361240(0x19c)](_0x1e0043){const _0x2bd905=_0x361240;return this[_0x2bd905(0x1a1)]=_0x1e0043,this;}[_0x361240(0x1d1)](_0x14e593){const _0x5267b4=_0x361240;return this[_0x5267b4(0x188)]=_0x14e593,this;}['isLineShape'](){const _0x1881a6=_0x361240;let _0x447632=this[_0x1881a6(0x17d)][_0x1881a6(0x1ee)](_0x279c60[_0x1881a6(0x165)])[_0x1881a6(0x178)](this['unitId'],this[_0x1881a6(0x1d7)],this[_0x1881a6(0x186)]);return _0x447632?(0x0,_0x173714[_0x1881a6(0x156)])(_0x447632[_0x1881a6(0x172)]()):this[_0x1881a6(0x1ef)]?(0x0,_0x173714[_0x1881a6(0x156)])(this[_0x1881a6(0x1ef)]):!0x1;}[_0x361240(0x1b8)](){const _0x48369a=_0x361240;let _0x59d4ba=this['_injector'][_0x48369a(0x1ee)](_0x279c60[_0x48369a(0x165)])[_0x48369a(0x178)](this['unitId'],this['subUnitId'],this['drawId']);if(!_0x59d4ba)return[];let _0x493d18=this['_injector'][_0x48369a(0x1ee)](_0x5117f2[_0x48369a(0x161)])['getDrawingByParam']({'unitId':this[_0x48369a(0x1e1)],'subUnitId':this[_0x48369a(0x1d7)],'drawingId':this[_0x48369a(0x186)]});if(!(_0x493d18!=null&&_0x493d18[_0x48369a(0x1b1)]))return[];let {width:_0xa6fb17=0x0,height:_0x45216c=0x0}=_0x493d18[_0x48369a(0x1b1)];return _0x59d4ba['updateContext']({'width':_0xa6fb17,'height':_0x45216c}),_0x59d4ba[_0x48369a(0x1e5)]();}['getAdjustPoints'](){const _0x554800=_0x361240;let _0x5f2e5d=this[_0x554800(0x17d)]['get'](_0x279c60['SheetsShapeService'])['getShapeModel'](this[_0x554800(0x1e1)],this[_0x554800(0x1d7)],this[_0x554800(0x186)]);if(!_0x5f2e5d)return[];let _0x1e509b=this[_0x554800(0x17d)]['get'](_0x5117f2[_0x554800(0x161)])[_0x554800(0x1aa)]({'unitId':this[_0x554800(0x1e1)],'subUnitId':this[_0x554800(0x1d7)],'drawingId':this[_0x554800(0x186)]});if(!(_0x1e509b!=null&&_0x1e509b['transform']))return[];let {width:_0x3e250d=0x0,height:_0x462c37=0x0}=_0x1e509b[_0x554800(0x1b1)];return _0x5f2e5d[_0x554800(0x189)]({'width':_0x3e250d,'height':_0x462c37}),_0x5f2e5d[_0x554800(0x1dd)]();}[_0x361240(0x168)](){const _0x198b2a=_0x361240;let _0x57e083=this[_0x198b2a(0x17d)]['get'](_0x279c60[_0x198b2a(0x165)])[_0x198b2a(0x178)](this[_0x198b2a(0x1e1)],this[_0x198b2a(0x1d7)],this['drawId']);if(!_0x57e083||!(0x0,_0x173714[_0x198b2a(0x156)])(_0x57e083[_0x198b2a(0x172)]()))return[];let _0x2da7b6=this['_injector']['get'](_0x5117f2[_0x198b2a(0x161)])[_0x198b2a(0x1aa)]({'unitId':this[_0x198b2a(0x1e1)],'subUnitId':this[_0x198b2a(0x1d7)],'drawingId':this[_0x198b2a(0x186)]});if(!(_0x2da7b6!=null&&_0x2da7b6[_0x198b2a(0x1b1)]))return[];let {width:_0x420082=0x0,height:_0x689021=0x0}=_0x2da7b6['transform'];return _0x57e083[_0x198b2a(0x189)]({'width':_0x420082,'height':_0x689021}),_0x57e083[_0x198b2a(0x168)]();}[_0x361240(0x17e)](){const _0x586e14=_0x361240;var _0x12395c;let _0x47bdf5=this[_0x586e14(0x17d)][_0x586e14(0x1ee)](_0x279c60[_0x586e14(0x165)])['getShapeModel'](this[_0x586e14(0x1e1)],this['subUnitId'],this[_0x586e14(0x186)]);return _0x47bdf5?(_0x12395c=_0x47bdf5[_0x586e14(0x17e)]())==null?null:_0x12395c:null;}[_0x361240(0x1b7)](){const _0x289375=_0x361240;var _0x5695b5;let _0x1f13c1=this[_0x289375(0x17d)][_0x289375(0x1ee)](_0x279c60[_0x289375(0x165)])[_0x289375(0x178)](this['unitId'],this[_0x289375(0x1d7)],this[_0x289375(0x186)]);return _0x1f13c1?(_0x5695b5=_0x1f13c1[_0x289375(0x1b7)]())==null?null:_0x5695b5:null;}[_0x361240(0x18b)](){const _0x2ec04c=_0x361240;var _0x5f4058,_0x21f0e6;if(!this['shapeType'])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x470fe0=this[_0x2ec04c(0x17d)][_0x2ec04c(0x1ee)](_0x324a21[_0x2ec04c(0x193)])['ensureSkeleton'](this['unitId'],this[_0x2ec04c(0x1d7)]);if(!_0x470fe0)throw Error(_0x2ec04c(0x17f)+this[_0x2ec04c(0x1e1)]+'\x20and\x20subUnitId\x20'+this[_0x2ec04c(0x1d7)]+_0x2ec04c(0x15f));let {transform:_0x3bd6cf}=(0x0,_0x324a21['convertPositionCellToSheetOverGrid'])(this[_0x2ec04c(0x1e1)],this[_0x2ec04c(0x1d7)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x470fe0);this['x']=this['x']>0x0?this['x']:_0x3bd6cf['left'],this['y']=this['y']>0x0?this['y']:_0x3bd6cf[_0x2ec04c(0x187)];}return this[_0x2ec04c(0x1a1)]=(_0x5f4058=this['width'])==null?_0x279c60[_0x2ec04c(0x184)]:_0x5f4058,this['height']=(_0x21f0e6=this['height'])==null?_0x279c60[_0x2ec04c(0x1a3)]:_0x21f0e6,{'unitId':this[_0x2ec04c(0x1e1)],'subUnitId':this['subUnitId'],'shapeId':this[_0x2ec04c(0x186)],'shapeType':this[_0x2ec04c(0x1ef)],'shapeData':Object[_0x2ec04c(0x16d)](this['shapeData'])[_0x2ec04c(0x1be)]>0x0?this[_0x2ec04c(0x1d2)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x2ec04c(0x188)]};}[_0x361240(0x19b)](){return this['drawId'];}[_0x361240(0x172)](){const _0x2d5aef=_0x361240;return this[_0x2d5aef(0x1ef)];}[_0x361240(0x1dc)](){const _0x3fb1ef=_0x361240;return this[_0x3fb1ef(0x1d2)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0x3d8132=_0x361240;return{'width':this[_0x3d8132(0x1a1)],'height':this[_0x3d8132(0x188)]};}},_0x425c06=class extends _0x23a355{constructor(_0x43c8b3,_0x32c6ff,_0x44395f,_0x43cc09){const _0x2fa220=_0x361240;super(_0x43c8b3,_0x32c6ff,_0x44395f,_0x43cc09),_0x275360(this,_0x2fa220(0x1d2),{});}[_0x361240(0x1ed)](_0x3990bb){const _0x114494=_0x361240;if(!(0x0,_0x173714[_0x114494(0x156)])(_0x3990bb))throw Error(_0x114494(0x1c7)+_0x3990bb+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super[_0x114494(0x1ed)](_0x3990bb),this;}[_0x361240(0x1ad)](_0x382d26){const _0x662c69=_0x361240;var _0x28a623,_0x27ba35;return(_0x28a623=this['shapeData'])!=null&&_0x28a623['ln']||(this[_0x662c69(0x1d2)]['ln']={}),!((_0x27ba35=this['shapeData'])==null||(_0x27ba35=_0x27ba35['ln'])==null)&&_0x27ba35[_0x662c69(0x18c)]||(this[_0x662c69(0x1d2)]['ln'][_0x662c69(0x18c)]={}),this[_0x662c69(0x1d2)]['ln'][_0x662c69(0x18c)][_0x662c69(0x1d0)]=_0x382d26,this;}[_0x361240(0x1f0)](_0x1ebfa3){const _0x22c3eb=_0x361240;var _0x3f78e8,_0x183049;return(_0x3f78e8=this[_0x22c3eb(0x1d2)])!=null&&_0x3f78e8['ln']||(this[_0x22c3eb(0x1d2)]['ln']={}),!((_0x183049=this[_0x22c3eb(0x1d2)])==null||(_0x183049=_0x183049['ln'])==null)&&_0x183049[_0x22c3eb(0x194)]||(this[_0x22c3eb(0x1d2)]['ln'][_0x22c3eb(0x194)]={}),this[_0x22c3eb(0x1d2)]['ln']['endArrow'][_0x22c3eb(0x1d0)]=_0x1ebfa3,this;}[_0x361240(0x1cb)](_0xe5288b){const _0x38084b=_0x361240;var _0x1952af,_0x235af0;return(_0x1952af=this['shapeData'])!=null&&_0x1952af['ln']||(this['shapeData']['ln']={}),!((_0x235af0=this[_0x38084b(0x1d2)])==null||(_0x235af0=_0x235af0['ln'])==null)&&_0x235af0[_0x38084b(0x18c)]||(this[_0x38084b(0x1d2)]['ln'][_0x38084b(0x18c)]={}),this[_0x38084b(0x1d2)]['ln'][_0x38084b(0x18c)][_0x38084b(0x170)]=_0xe5288b,this;}[_0x361240(0x1bd)](_0x1066c0){const _0xc04129=_0x361240;var _0x1f8c20,_0x185226;return(_0x1f8c20=this[_0xc04129(0x1d2)])!=null&&_0x1f8c20['ln']||(this[_0xc04129(0x1d2)]['ln']={}),!((_0x185226=this[_0xc04129(0x1d2)])==null||(_0x185226=_0x185226['ln'])==null)&&_0x185226[_0xc04129(0x194)]||(this[_0xc04129(0x1d2)]['ln'][_0xc04129(0x194)]={}),this[_0xc04129(0x1d2)]['ln'][_0xc04129(0x194)][_0xc04129(0x170)]=_0x1066c0,this;}[_0x361240(0x18b)](){const _0x1c599c=_0x361240;return super[_0x1c599c(0x18b)]();}[_0x361240(0x1b7)](){const _0x14a5f6=_0x361240;var _0x1c60e2;return((_0x1c60e2=this[_0x14a5f6(0x1d2)])==null||(_0x1c60e2=_0x1c60e2[_0x14a5f6(0x169)])==null?void 0x0:_0x1c60e2['to'])||null;}['getStartConnectInfo'](){const _0x52d7b9=_0x361240;var _0x5317ff;return((_0x5317ff=this['shapeData'])==null||(_0x5317ff=_0x5317ff[_0x52d7b9(0x169)])==null?void 0x0:_0x5317ff[_0x52d7b9(0x19e)])||null;}};function _0x3f83a7(_0x1a29b2,_0x175a2d,_0x1bc5ae,_0x2b5929,_0x3dfdfb,_0x236ebc){const _0x4ed57f=_0x361240;let _0x444cbe=_0x3dfdfb[_0x4ed57f(0x178)](_0x1a29b2,_0x175a2d,_0x1bc5ae);if(!_0x444cbe)return null;let _0x252fb8=_0x236ebc[_0x4ed57f(0x1aa)]({'unitId':_0x1a29b2,'subUnitId':_0x175a2d,'drawingId':_0x1bc5ae});if(!(_0x252fb8!=null&&_0x252fb8['transform']))return null;let {left:_0x63435=0x0,top:_0x5215a8=0x0,width:_0x229a94=0x0,height:_0x466ac2=0x0,flipX:_0x4eb2b3=!0x1,flipY:_0x217222=!0x1,angle:_0x59a884}=_0x252fb8[_0x4ed57f(0x1b1)];_0x444cbe[_0x4ed57f(0x189)]({'width':_0x229a94,'height':_0x466ac2});let _0x17d939=_0x444cbe['getConnectionSiteList']()[_0x4ed57f(0x1b9)](_0x49a721=>_0x49a721[_0x4ed57f(0x1f3)]===_0x2b5929);if(!_0x17d939)return null;let _0x3e29f0=_0x4eb2b3?_0x229a94-_0x17d939['x']:_0x17d939['x'],_0x1281d5=_0x217222?_0x466ac2-_0x17d939['y']:_0x17d939['y'];if(_0x59a884&&_0x59a884!==0x0){let _0x1dd0d0=_0x59a884*Math['PI']/0xb4,_0x406ce6=Math[_0x4ed57f(0x16c)](_0x1dd0d0),_0x25344c=Math[_0x4ed57f(0x1c2)](_0x1dd0d0),_0x3032a6=_0x229a94/0x2,_0x1a97c7=_0x466ac2/0x2,_0x5a75b0=_0x3e29f0-_0x3032a6,_0x1039b2=_0x1281d5-_0x1a97c7;_0x3e29f0=_0x3032a6+_0x5a75b0*_0x406ce6-_0x1039b2*_0x25344c,_0x1281d5=_0x1a97c7+_0x5a75b0*_0x25344c+_0x1039b2*_0x406ce6;}_0x3e29f0+=_0x63435,_0x1281d5+=_0x5215a8;let _0x48acfa=_0x17d939[_0x4ed57f(0x1cd)]/0xea60;_0x4eb2b3&&(_0x48acfa=0xb4-_0x48acfa),_0x217222&&(_0x48acfa=-_0x48acfa),_0x48acfa+=_0x59a884||0x0,_0x48acfa=(_0x48acfa%0x168+0x168)%0x168;let _0xbc5ccc=(0x0,_0x173714[_0x4ed57f(0x1a6)])({'left':_0x63435,'top':_0x5215a8,'width':_0x229a94,'height':_0x466ac2},_0x59a884||0x0);return{'point':{'x':_0x3e29f0,'y':_0x1281d5},'angle':_0x48acfa,'bounds':_0xbc5ccc};}function _0x4aed4b(_0x163b8c,_0x53eb96){const _0x589288=_0x361240;let _0x52f1ad=_0x53eb96['x']-_0x163b8c['x'],_0x15e1ea=_0x53eb96['y']-_0x163b8c['y'];return Math[_0x589288(0x196)](_0x52f1ad)>=Math[_0x589288(0x196)](_0x15e1ea)?_0x52f1ad>=0x0?0xb4:0x0:_0x15e1ea>=0x0?0x10e:0x5a;}function _0x1958e0(_0x3108e0,_0x123b56,_0x16cebc,_0x3d899a,_0x56a3a9,_0x391bfb,_0x23bc49){const _0x9a046e=_0x361240;let _0x4b947f=_0x391bfb['getShapeModel'](_0x3108e0,_0x123b56,_0x16cebc);if(!_0x4b947f)return null;let _0x15ef76=_0x23bc49[_0x9a046e(0x1aa)]({'unitId':_0x3108e0,'subUnitId':_0x123b56,'drawingId':_0x16cebc});if(!(_0x15ef76!=null&&_0x15ef76[_0x9a046e(0x1b1)]))return null;let {left:_0x4c9fa7=0x0,top:_0xa911c9=0x0,width:_0xadfef2=0x0,height:_0x50288c=0x0,flipX:_0x5ebf34=!0x1,flipY:_0x5b40dd=!0x1}=_0x15ef76[_0x9a046e(0x1b1)];_0x4b947f['updateContext']({'width':_0xadfef2,'height':_0x50288c});let _0x5a43c5=_0x4b947f[_0x9a046e(0x168)]();if(_0x5a43c5[_0x9a046e(0x1be)]<0x2)return null;let _0x4b1b08=_0x3d899a?_0x5a43c5[0x0]:_0x5a43c5[_0x5a43c5['length']-0x1],_0x104555=new _0x173714[(_0x9a046e(0x1cc))]({'left':_0x4c9fa7,'top':_0xa911c9,'width':_0xadfef2,'height':_0x50288c,'flipX':_0x5ebf34,'flipY':_0x5b40dd})['localToWorld'](_0x4b1b08);return{'point':_0x104555,'angle':_0x4aed4b(_0x56a3a9['point'],_0x104555),'bounds':{'left':_0x104555['x'],'top':_0x104555['y'],'width':0x0,'height':0x0}};}var _0x6471f7=class extends _0x1c505a[_0x361240(0x1c9)]{async[_0x361240(0x1b4)](_0x48c05d){const _0x373e31=_0x361240;let {unitId:_0x26e9f5,subUnitId:_0xf6c3c8,shapeId:_0x37e8a0,shapeType:_0x1914b2,shapeData:_0x3c91de,x:_0x2a7ce9,y:_0x344ae0,width:_0x44d946,height:_0x72b756}=_0x48c05d;return this[_0x373e31(0x180)][_0x373e31(0x195)](_0x279c60[_0x373e31(0x1c0)]['id'],{'unitId':_0x26e9f5,'subUnitId':_0xf6c3c8,'shapeId':_0x37e8a0,'shapeType':_0x1914b2,'shapeData':_0x3c91de,'position':{'x':_0x2a7ce9,'y':_0x344ae0},'width':_0x44d946,'height':_0x72b756});}async[_0x361240(0x1e6)](_0x410a4e){const _0x4df628=_0x361240;let {unitId:_0x34a1a4,subUnitId:_0x189b6c,shapeId:_0x2ad9f8,shapeType:_0x20a3a4,shapeData:_0x276d16,x:_0x48d157,y:_0x3d5350,width:_0x3f3b78,height:_0x283b7f}=_0x410a4e;return this[_0x4df628(0x180)][_0x4df628(0x195)](_0x279c60[_0x4df628(0x1d9)]['id'],{'unitId':_0x34a1a4,'subUnitId':_0x189b6c,'shapeId':_0x2ad9f8,'shapeType':_0x20a3a4,'shapeData':_0x276d16,'position':{'x':_0x48d157,'y':_0x3d5350},'width':_0x3f3b78,'height':_0x283b7f});}[_0x361240(0x1db)](_0x3a36a8){const _0x2f4ece=_0x361240;let _0x5f2b2f=this[_0x2f4ece(0x1bc)]()[_0x2f4ece(0x18a)](),_0x29aa3b=this['getSheetId']();if(_0x3a36a8){let _0x440080=new _0x23a355(_0x5f2b2f,_0x29aa3b,_0x3a36a8[_0x2f4ece(0x186)],this[_0x2f4ece(0x17d)]);return this[_0x2f4ece(0x197)](_0x440080,_0x5f2b2f,_0x29aa3b,_0x3a36a8[_0x2f4ece(0x186)]),_0x440080;}return new _0x23a355(_0x5f2b2f,_0x29aa3b,(0x0,_0x571994[_0x2f4ece(0x160)])(),this[_0x2f4ece(0x17d)]);}[_0x361240(0x1b2)](_0x1464cd){const _0x3881e4=_0x361240;let _0x485545=this[_0x3881e4(0x1bc)]()['getUnitId'](),_0xe607d=this[_0x3881e4(0x15c)]();if(_0x1464cd){let _0x2a8f76=new _0x425c06(_0x485545,_0xe607d,_0x1464cd['drawId'],this[_0x3881e4(0x17d)]);return this[_0x3881e4(0x197)](_0x2a8f76,_0x485545,_0xe607d,_0x1464cd[_0x3881e4(0x186)]),_0x2a8f76;}return new _0x425c06(_0x485545,_0xe607d,(0x0,_0x571994[_0x3881e4(0x160)])(),this[_0x3881e4(0x17d)]);}[_0x361240(0x18f)](){const _0x257a75=_0x361240;let _0x10c224=this[_0x257a75(0x17d)]['get'](_0x2c65ab[_0x257a75(0x1bb)]),_0x2b56fc=this[_0x257a75(0x1bc)]()['getUnitId'](),_0xfced69=this['getSheetId'](),_0x484bf8=_0x10c224[_0x257a75(0x1b6)](_0x2b56fc,_0xfced69);if(!_0x484bf8)return[];let _0x4cb526=[];for(let [_0x2f9f14,_0xcce892]of Object['entries'](_0x484bf8))if(_0xcce892&&_0xcce892[_0x257a75(0x1cf)]===_0x571994['DrawingTypeEnum'][_0x257a75(0x17a)]){let _0x1ea63d=new _0x23a355(_0x2b56fc,_0xfced69,_0x2f9f14,this[_0x257a75(0x17d)]);this[_0x257a75(0x197)](_0x1ea63d,_0x2b56fc,_0xfced69,_0x2f9f14),_0x4cb526[_0x257a75(0x182)](_0x1ea63d);}return _0x4cb526;}[_0x361240(0x192)](_0x7e6807){const _0x2b6c4f=_0x361240;let {unitId:_0x225749,subUnitId:_0x60c843,drawId:_0x2afa78}=_0x7e6807;return this['_commandService'][_0x2b6c4f(0x195)](_0x2c65ab[_0x2b6c4f(0x1a9)]['id'],{'unitId':_0x225749,'drawings':[{'unitId':_0x225749,'subUnitId':_0x60c843,'drawingId':_0x2afa78,'drawingType':_0x571994[_0x2b6c4f(0x166)][_0x2b6c4f(0x17a)]}]});}async[_0x361240(0x1c8)](_0x54de58){const _0x17e10a=_0x361240;let {connector:_0x36fb3b,startTarget:_0x489216,endTarget:_0x20a926}=_0x54de58;if(!_0x489216&&!_0x20a926)return!0x1;let _0x384dc9=this[_0x17e10a(0x1bc)]()[_0x17e10a(0x18a)](),_0x2cbd0e=this[_0x17e10a(0x15c)](),_0x8a7ad=this['_injector'][_0x17e10a(0x1ee)](_0x279c60['SheetsShapeService']),_0x28c8fc=this[_0x17e10a(0x17d)]['get'](_0x5117f2[_0x17e10a(0x161)]),_0x10ae2c=_0x8a7ad[_0x17e10a(0x178)](_0x384dc9,_0x2cbd0e,_0x36fb3b[_0x17e10a(0x186)]);if(!_0x10ae2c)return!0x1;let _0x298427=_0x10ae2c[_0x17e10a(0x172)](),_0x286d24=_0x10ae2c[_0x17e10a(0x163)](),_0x48388d={};for(let _0x59ffc1 of _0x10ae2c[_0x17e10a(0x1d8)]()){let _0xa6402e=_0x10ae2c['getAdjustValueByName'](_0x59ffc1);_0xa6402e!==void 0x0&&(_0x48388d[_0x59ffc1]=_0xa6402e);}let {startInfo:_0x2f6cb5,endInfo:_0x512497}=this[_0x17e10a(0x1de)](_0x384dc9,_0x2cbd0e,_0x36fb3b,_0x10ae2c,_0x489216,_0x20a926,_0x8a7ad,_0x28c8fc,_0x286d24);if(!_0x2f6cb5||!_0x512497)return!0x1;let _0x278637=(0x0,_0x173714[_0x17e10a(0x16e)])((0x0,_0x173714['routeConnectorLineShape'])(_0x2f6cb5,_0x512497,_0x298427),_0x298427),_0x5655f9={};return _0x489216?_0x5655f9[_0x17e10a(0x19e)]={'shapeId':_0x489216['shape'][_0x17e10a(0x186)],'cxnIndex':_0x489216[_0x17e10a(0x190)]}:_0x286d24!=null&&_0x286d24['from']&&(_0x5655f9['from']=_0x286d24[_0x17e10a(0x19e)]),_0x20a926?_0x5655f9['to']={'shapeId':_0x20a926[_0x17e10a(0x1eb)][_0x17e10a(0x186)],'cxnIndex':_0x20a926[_0x17e10a(0x190)]}:_0x286d24!=null&&_0x286d24['to']&&(_0x5655f9['to']=_0x286d24['to']),this[_0x17e10a(0x180)][_0x17e10a(0x195)](_0x279c60[_0x17e10a(0x1da)]['id'],{'unitId':_0x384dc9,'subUnitId':_0x2cbd0e,'connectorShapeId':_0x36fb3b[_0x17e10a(0x186)],'width':_0x278637[_0x17e10a(0x19d)][_0x17e10a(0x1a1)],'height':_0x278637[_0x17e10a(0x19d)]['height'],'left':_0x278637[_0x17e10a(0x19d)][_0x17e10a(0x157)],'top':_0x278637[_0x17e10a(0x19d)]['top'],'flipX':_0x278637[_0x17e10a(0x19d)][_0x17e10a(0x18e)]||!0x1,'flipY':_0x278637[_0x17e10a(0x19d)]['flipY']||!0x1,'oldAdjustValues':_0x48388d,'newAdjustValues':_0x278637['adjustValues'],'newLineType':_0x278637['lineType'],'oldLineType':_0x298427,'rotation':_0x278637[_0x17e10a(0x1ea)],'oldRelation':_0x286d24,'newRelation':_0x5655f9});}[_0x361240(0x197)](_0xdb6c21,_0x4e5d11,_0x5d3c6f,_0x53ae5a){const _0x536cf5=_0x361240;let _0x4dcfd4=this[_0x536cf5(0x17d)]['get'](_0x5117f2[_0x536cf5(0x161)])[_0x536cf5(0x1aa)]({'unitId':_0x4e5d11,'subUnitId':_0x5d3c6f,'drawingId':_0x53ae5a});if(_0x4dcfd4!=null&&_0x4dcfd4[_0x536cf5(0x1b1)]){var _0x259de4,_0x91630b,_0x340fa8,_0x56e716;_0xdb6c21['x']=(_0x259de4=_0x4dcfd4[_0x536cf5(0x1b1)][_0x536cf5(0x157)])==null?0x0:_0x259de4,_0xdb6c21['y']=(_0x91630b=_0x4dcfd4['transform'][_0x536cf5(0x187)])==null?0x0:_0x91630b,_0xdb6c21[_0x536cf5(0x1a1)]=(_0x340fa8=_0x4dcfd4['transform']['width'])==null?_0xdb6c21[_0x536cf5(0x1a1)]:_0x340fa8,_0xdb6c21[_0x536cf5(0x188)]=(_0x56e716=_0x4dcfd4['transform']['height'])==null?_0xdb6c21[_0x536cf5(0x188)]:_0x56e716;}let _0x27855b=this[_0x536cf5(0x17d)]['get'](_0x279c60['SheetsShapeService'])[_0x536cf5(0x178)](_0x4e5d11,_0x5d3c6f,_0x53ae5a);if(_0x27855b){_0xdb6c21[_0x536cf5(0x1ef)]=_0x27855b[_0x536cf5(0x172)]();let _0x1e5a18=_0x27855b[_0x536cf5(0x1dc)]();_0x1e5a18&&(_0xdb6c21[_0x536cf5(0x1d2)]=JSON['parse'](JSON['stringify'](_0x1e5a18)));}}[_0x361240(0x1de)](_0x5779ba,_0x5c9312,_0x21fceb,_0x4c9c6a,_0x4d9920,_0xae5604,_0x2ca330,_0x5260af,_0x3d0dec){const _0xbae736=_0x361240;let _0x47dbb8=null,_0x4d626d=null;return _0x4d9920&&(_0x47dbb8=_0x3f83a7(_0x5779ba,_0x5c9312,_0x4d9920[_0xbae736(0x1eb)][_0xbae736(0x186)],_0x4d9920['connectionSiteIndex'],_0x2ca330,_0x5260af)),_0xae5604&&(_0x4d626d=_0x3f83a7(_0x5779ba,_0x5c9312,_0xae5604[_0xbae736(0x1eb)][_0xbae736(0x186)],_0xae5604[_0xbae736(0x190)],_0x2ca330,_0x5260af)),_0x47dbb8||(_0x47dbb8=this[_0xbae736(0x1e8)](_0x5779ba,_0x5c9312,_0x21fceb[_0xbae736(0x186)],!0x0,_0x4d626d,_0x3d0dec==null?void 0x0:_0x3d0dec['from'],_0x2ca330,_0x5260af)),_0x4d626d||(_0x4d626d=this[_0xbae736(0x1e8)](_0x5779ba,_0x5c9312,_0x21fceb[_0xbae736(0x186)],!0x1,_0x47dbb8,_0x3d0dec==null?void 0x0:_0x3d0dec['to'],_0x2ca330,_0x5260af)),{'startInfo':_0x47dbb8,'endInfo':_0x4d626d};}[_0x361240(0x1e8)](_0x16e483,_0x4bd77d,_0x4e69ab,_0x2bccac,_0x37c5bd,_0x467b16,_0x3e623d,_0x1b882c){if(_0x467b16){let _0x4495f0=_0x3f83a7(_0x16e483,_0x4bd77d,_0x467b16['shapeId'],_0x467b16['cxnIndex'],_0x3e623d,_0x1b882c);if(_0x4495f0)return _0x4495f0;}return _0x37c5bd?_0x1958e0(_0x16e483,_0x4bd77d,_0x4e69ab,_0x2bccac,_0x37c5bd,_0x3e623d,_0x1b882c):null;}};_0x1c505a[_0x361240(0x1c9)][_0x361240(0x1c3)](_0x6471f7),_0x5f2704[_0x361240(0x198)]=_0x425c06,_0x5f2704[_0x361240(0x1ca)]=_0x23a355;}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xebba(_0x26b85c,_0x43f351){_0x26b85c=_0x26b85c-0x1ee;const _0x41b1f1=_0x41b1();let _0xebba17=_0x41b1f1[_0x26b85c];return _0xebba17;}function _0x41b1(){const _0x57128d=['isLineShape','30iNtBRX','DEFAULT_SHAPE_WIDTH','computeConnectorRouteLayout','push','removeShape','DependentOn','shapeData','addShape','@univerjs/sheets-drawing','UpdateLineShapeResizeCommand','borderEnabled','45530kRTdtz','disposeWithMe','ShapeModel','UniverLicensePlugin','_initCommandInterceptor','302292urAGBe','version','startX','isConnectorShape','getDrawingData','_deserializeShapeForUnit','position','redos','RemoveSheetDrawingCommand','string','_resourcesManagerService','UniverDrawing','assign','decorate','Disposable','@univerjs/drawing','5834iZDXrb','setConfig','iterator','getBatchAddOp','getDrawingByParam','rotation','ICommandService','keys','transformToDrawingPosition','shapeId','sheets-shape.config','forEach','getBasicShapeRotateBound','pushUndoRedo','IDrawingManagerService','onCommandExecute','ToggleSheetsShapeFlipCommand','IUndoRedoService','fill','UPDATE','object','SetSheetsShapeTextVerticalToggleCommand','add','adjustValues','touchDependencies','SheetSkeletonService','ISheetDrawingService','getBasicShapeRelation','undos','sheet.command.toggle-shape-flip','flipX','_injector','DrawingTypeEnum','cxnIndex','toStringTag','sheet.command.update-line-shape-resize','_ensureShapeModelManager','@univerjs/core','getShapeModel','_initCommands','sheet.command.update-shape-type','left','toJSON','_getConnectPointInfo','DEFAULT_SHAPE_HEIGHT','_linesIds','exports','1074896cfZePI','sin','SheetInterceptorService','interceptCommand','drawingType','getShapeType','dispose','ClearSheetDrawingTransformerOperation','stringify','CommandType','UniverSheets','find','_sheetInterceptorService','UpdateSheetsShapeDataMutation','sheet.command.update-connector-relation','getBatchUpdateOp','fromJSON','function','UniverSheetsDrawing','UniverProSheetsShape','InsertSheetDrawingCommand','registerPluginResource','getShapeData','filter','registerCommand','hasShape','getAdjustValueByName','52eHdypN','_shapes','prototype','UniverSheetsShapePlugin','get','getShapeRelation','COMMAND','MUTATION','angle','range','isFrom','parse','getStartConnectInfo','_config','sheet.mutation.update-shape-data','getBasicShapeType','_sheetsShapeService','IUniverInstanceService','clear','getEndConnectInfo','defineProperty','IResourceManagerService','SetDrawingApplyMutation','flipY','_shapeModelManagerMap','Plugin','DRAWING_SHAPE','cos','657960TpGLin','transform','UniverProEngineShape','setShapeType','UNIVER_SHEET','preUndos','length','params','insertShape','getOwnPropertyDescriptor','getCellIndexAndOffsetByPosition','width','109241sMILqf','rotateEnabled','_commandService','Injector','78722XvAZcY','symbol','amd','UniverInstanceType','sheet.command.set-shape-rotate','index','INSERT','_addLineRerouteUpdates','SetSheetDrawingCommand','relation','data','_initSnapshot','REMOVE','height','set','preRedos','lineShapeId','sequenceExecute','entries','UpdateSheetsShapeTypeCommand','toPrimitive','sheet.mutation.remove-shape','@univerjs-pro/license','sheet.mutation.insert-shape','getShapeTypeById','getLineShapeRelation','worldRect','setShapeData','7HIVwMD','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','ang','SHEET_SHAPE_PLUGIN','_drawingManagerService','packageName','sheet.command.insert-shape','getCellWithCoordByIndex','237YXIICe','call','top','_sheetSkeletonService','_configService','Inject','getSkeleton','getShapeTextData','DrawingApplyType','merge','RemoveSheetsShapeMutation','SetShapeDrawingDataCommand','transformToAxisAlignPosition','_disposed','resizeEnabled','_addLineFollowShapeUpdates','onStarting','constructor','generateRandomId','getSheetCommandTarget','_groupIds','delete','from','getConnectionSiteList'];_0x41b1=function(){return _0x57128d;};return _0x41b1();}(function(_0x155e59,_0x4f86e6){const _0x57a9e6=_0xebba,_0x394213=_0x155e59();while(!![]){try{const _0x72d575=parseInt(_0x57a9e6(0x266))/0x1+parseInt(_0x57a9e6(0x1f0))/0x2*(parseInt(_0x57a9e6(0x28a))/0x3)+parseInt(_0x57a9e6(0x23a))/0x4*(parseInt(_0x57a9e6(0x2ae))/0x5)+-parseInt(_0x57a9e6(0x256))/0x6+-parseInt(_0x57a9e6(0x282))/0x7*(parseInt(_0x57a9e6(0x21f))/0x8)+-parseInt(_0x57a9e6(0x2b3))/0x9+parseInt(_0x57a9e6(0x2a3))/0xa*(-parseInt(_0x57a9e6(0x262))/0xb);if(_0x72d575===_0x4f86e6)break;else _0x394213['push'](_0x394213['shift']());}catch(_0x8ec090){_0x394213['push'](_0x394213['shift']());}}}(_0x41b1,0x1d54c),function(_0x50fd73,_0x36f20d){const _0x76189d=_0xebba;typeof exports==_0x76189d(0x204)&&typeof module<'u'?_0x36f20d(exports,require(`@univerjs-pro/engine-shape`),require(`@univerjs/core`),require(`@univerjs/sheets`),require(`@univerjs/sheets-drawing`),require(`@univerjs-pro/license`),require(`@univerjs/drawing`)):typeof define==_0x76189d(0x230)&&define[_0x76189d(0x268)]?define([_0x76189d(0x21e),'@univerjs-pro/engine-shape',_0x76189d(0x215),'@univerjs/sheets',_0x76189d(0x2ab),_0x76189d(0x27c),_0x76189d(0x1ef)],_0x36f20d):(_0x50fd73=typeof globalThis<'u'?globalThis:_0x50fd73||self,_0x36f20d(_0x50fd73[_0x76189d(0x232)]={},_0x50fd73[_0x76189d(0x258)],_0x50fd73['UniverCore'],_0x50fd73[_0x76189d(0x229)],_0x50fd73[_0x76189d(0x231)],_0x50fd73['UniverProLicense'],_0x50fd73[_0x76189d(0x2be)]));}(this,function(_0x6e288a,_0x22ee1e,_0x7a6d65,_0x278c3b,_0x212172,_0x358c63,_0x4d9ae3){const _0x5d2578=_0xebba;Object['defineProperty'](_0x6e288a,Symbol[_0x5d2578(0x212)],{'value':'Module'});function _0x320430(_0x8bc711){'@babel/helpers - typeof';const _0x287bfd=_0x5d2578;return _0x320430=typeof Symbol==_0x287bfd(0x230)&&typeof Symbol[_0x287bfd(0x1f2)]==_0x287bfd(0x267)?function(_0x1251a3){return typeof _0x1251a3;}:function(_0x16f5c6){const _0x3201b6=_0x287bfd;return _0x16f5c6&&typeof Symbol==_0x3201b6(0x230)&&_0x16f5c6[_0x3201b6(0x29b)]===Symbol&&_0x16f5c6!==Symbol[_0x3201b6(0x23c)]?_0x3201b6(0x267):typeof _0x16f5c6;},_0x320430(_0x8bc711);}function _0x2d00f2(_0x1a8d25,_0x8ab599){const _0x46d998=_0x5d2578;if(_0x320430(_0x1a8d25)!=_0x46d998(0x204)||!_0x1a8d25)return _0x1a8d25;var _0x23e7d6=_0x1a8d25[Symbol[_0x46d998(0x27a)]];if(_0x23e7d6!==void 0x0){var _0x54f7aa=_0x23e7d6[_0x46d998(0x28b)](_0x1a8d25,_0x8ab599||'default');if(_0x320430(_0x54f7aa)!=_0x46d998(0x204))return _0x54f7aa;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x8ab599===_0x46d998(0x2bc)?String:Number)(_0x1a8d25);}function _0x3e25d9(_0x1c48d6){const _0x8e6f36=_0x5d2578;var _0x3c5d2f=_0x2d00f2(_0x1c48d6,_0x8e6f36(0x2bc));return _0x320430(_0x3c5d2f)==_0x8e6f36(0x267)?_0x3c5d2f:_0x3c5d2f+'';}function _0x3898df(_0x1d73bd,_0x5d4e44,_0x2a4f2b){const _0x147d92=_0x5d2578;return(_0x5d4e44=_0x3e25d9(_0x5d4e44))in _0x1d73bd?Object[_0x147d92(0x24e)](_0x1d73bd,_0x5d4e44,{'value':_0x2a4f2b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1d73bd[_0x5d4e44]=_0x2a4f2b,_0x1d73bd;}var _0x4ba18f=class extends _0x7a6d65[_0x5d2578(0x1ee)]{constructor(){const _0x4591cc=_0x5d2578;super(),_0x3898df(this,_0x4591cc(0x23b),new Map()),_0x3898df(this,_0x4591cc(0x21d),new Set()),_0x3898df(this,_0x4591cc(0x29e),new Set());}['addShape'](_0xea2614,_0x2ac5aa,_0x2498fc){const _0x2bba98=_0x5d2578;let _0x42621a=new _0x22ee1e[(_0x2bba98(0x2b0))](_0xea2614,_0x2ac5aa,_0x2498fc);return this[_0x2bba98(0x23b)]['set'](_0x2ac5aa,_0x42621a),(0x0,_0x22ee1e[_0x2bba98(0x2b6)])(_0xea2614)&&this[_0x2bba98(0x21d)][_0x2bba98(0x206)](_0x2ac5aa),_0x42621a;}[_0x5d2578(0x20b)](_0x3904a6){const _0x4fce65=_0x5d2578;let _0x26030e=[];for(let _0x53f9aa of this[_0x4fce65(0x21d)]){let _0x2d7352=this[_0x4fce65(0x23b)][_0x4fce65(0x23e)](_0x53f9aa);if(_0x2d7352){let _0x24015f=_0x2d7352[_0x4fce65(0x23f)]();if(_0x24015f){var _0x43c0f5,_0x223d6d;((_0x43c0f5=_0x24015f[_0x4fce65(0x2a0)])==null?void 0x0:_0x43c0f5['shapeId'])===_0x3904a6&&_0x26030e[_0x4fce65(0x2a6)]({..._0x24015f[_0x4fce65(0x2a0)],'lineShapeId':_0x53f9aa,'isFrom':!0x0}),((_0x223d6d=_0x24015f['to'])==null?void 0x0:_0x223d6d[_0x4fce65(0x1f9)])===_0x3904a6&&_0x26030e[_0x4fce65(0x2a6)]({..._0x24015f['to'],'lineShapeId':_0x53f9aa,'isFrom':!0x1});}}}return _0x26030e;}[_0x5d2578(0x27f)](_0x3876bd){const _0x571e78=_0x5d2578;let _0x355fe3=this['_shapes'][_0x571e78(0x23e)](_0x3876bd);if(_0x355fe3)return _0x355fe3[_0x571e78(0x23f)]();}['getShapeType'](_0xe72a7b){const _0x51cde5=_0x5d2578;let _0x44427e=this[_0x51cde5(0x23b)][_0x51cde5(0x23e)](_0xe72a7b);if(_0x44427e)return _0x44427e[_0x51cde5(0x224)]();}[_0x5d2578(0x238)](_0x41c38b){const _0x3fff98=_0x5d2578;return this[_0x3fff98(0x23b)]['has'](_0x41c38b);}[_0x5d2578(0x2a7)](_0x1343fc){const _0x5e49b7=_0x5d2578;let _0x46f954=this[_0x5e49b7(0x23b)][_0x5e49b7(0x23e)](_0x1343fc);_0x46f954&&((0x0,_0x22ee1e[_0x5e49b7(0x2b6)])(_0x46f954[_0x5e49b7(0x224)]())&&this[_0x5e49b7(0x21d)][_0x5e49b7(0x29f)](_0x1343fc),this['_shapes'][_0x5e49b7(0x29f)](_0x1343fc));}[_0x5d2578(0x21a)](){const _0x5c169c=_0x5d2578;let _0x2e55d8=[];return this[_0x5c169c(0x23b)]['forEach'](_0x437604=>{const _0x2894d7=_0x5c169c;_0x2e55d8[_0x2894d7(0x2a6)](_0x437604[_0x2894d7(0x21a)]());}),_0x2e55d8;}['fromJSON'](_0x3764b9){const _0x20f241=_0x5d2578;for(let _0x52eb69 of _0x3764b9){let {id:_0x596d22,shapeType:_0x252864}=_0x52eb69,_0x43003c=this[_0x20f241(0x2aa)](_0x252864,_0x596d22,_0x52eb69[_0x20f241(0x2a9)]);_0x43003c&&_0x43003c[_0x20f241(0x2a2)]()&&this[_0x20f241(0x21d)][_0x20f241(0x206)](_0x596d22);}}[_0x5d2578(0x225)](){const _0x34ff37=_0x5d2578;this[_0x34ff37(0x297)]||(this['_shapes'][_0x34ff37(0x1fb)](_0x5d69c4=>{const _0x5d59f6=_0x34ff37;_0x5d69c4[_0x5d59f6(0x225)]();}),this[_0x34ff37(0x23b)][_0x34ff37(0x24c)](),this[_0x34ff37(0x21d)]['clear'](),this['_groupIds'][_0x34ff37(0x24c)](),super[_0x34ff37(0x225)]());}};function _0x5446a5(_0x398172,_0x2578cb){return function(_0x2d63b2,_0x1f9b7e){_0x2578cb(_0x2d63b2,_0x1f9b7e,_0x398172);};}function _0x4d8c67(_0x13d9a4,_0x52aa97,_0x4b9b3f,_0x33233d){const _0x2a50f4=_0x5d2578;var _0x32d135=arguments['length'],_0x16d6ab=_0x32d135<0x3?_0x52aa97:_0x33233d===null?_0x33233d=Object[_0x2a50f4(0x25f)](_0x52aa97,_0x4b9b3f):_0x33233d,_0x54adef;if(typeof Reflect==_0x2a50f4(0x204)&&typeof Reflect[_0x2a50f4(0x2c0)]=='function')_0x16d6ab=Reflect['decorate'](_0x13d9a4,_0x52aa97,_0x4b9b3f,_0x33233d);else{for(var _0x4f6483=_0x13d9a4[_0x2a50f4(0x25c)]-0x1;_0x4f6483>=0x0;_0x4f6483--)(_0x54adef=_0x13d9a4[_0x4f6483])&&(_0x16d6ab=(_0x32d135<0x3?_0x54adef(_0x16d6ab):_0x32d135>0x3?_0x54adef(_0x52aa97,_0x4b9b3f,_0x16d6ab):_0x54adef(_0x52aa97,_0x4b9b3f))||_0x16d6ab);}return _0x32d135>0x3&&_0x16d6ab&&Object['defineProperty'](_0x52aa97,_0x4b9b3f,_0x16d6ab),_0x16d6ab;}let _0x27a1ba=class extends _0x7a6d65['Disposable']{constructor(_0x50ff71){const _0x839c40=_0x5d2578;super(),this[_0x839c40(0x2bd)]=_0x50ff71,_0x3898df(this,_0x839c40(0x252),new Map()),this[_0x839c40(0x271)]();}[_0x5d2578(0x214)](_0x1a2acf,_0x555c75){const _0x42149b=_0x5d2578;let _0x23a8ab=this['_shapeModelManagerMap'][_0x42149b(0x23e)](_0x1a2acf);_0x23a8ab||(_0x23a8ab=new Map(),this[_0x42149b(0x252)][_0x42149b(0x274)](_0x1a2acf,_0x23a8ab));let _0x435a1e=_0x23a8ab[_0x42149b(0x23e)](_0x555c75);return _0x435a1e||(_0x435a1e=new _0x4ba18f(),_0x23a8ab[_0x42149b(0x274)](_0x555c75,_0x435a1e)),_0x435a1e;}[_0x5d2578(0x25e)](_0x93c2d8,_0x51a7be,_0x289664,_0xedbb26,_0x12db9f){const _0x57dc16=_0x5d2578;this[_0x57dc16(0x214)](_0x93c2d8,_0x51a7be)[_0x57dc16(0x2aa)](_0x289664,_0xedbb26,_0x12db9f);}[_0x5d2578(0x2a7)](_0x3e2059,_0xe6ef4c,_0x1ef730){const _0x403c09=_0x5d2578;this[_0x403c09(0x214)](_0x3e2059,_0xe6ef4c)[_0x403c09(0x2a7)](_0x1ef730);}[_0x5d2578(0x249)](_0x42a374,_0x2ee01d,_0x3158dc){const _0x119706=_0x5d2578;return this[_0x119706(0x214)](_0x42a374,_0x2ee01d)['getShapeType'](_0x3158dc);}[_0x5d2578(0x224)](_0x581c67,_0x479ca2,_0xc93bdd){const _0x4bcb53=_0x5d2578;return this[_0x4bcb53(0x214)](_0x581c67,_0x479ca2)[_0x4bcb53(0x224)](_0xc93bdd);}[_0x5d2578(0x238)](_0x2c278d,_0xd4a501,_0x2d677f){const _0x2da3c2=_0x5d2578;return this['_ensureShapeModelManager'](_0x2c278d,_0xd4a501)[_0x2da3c2(0x238)](_0x2d677f);}[_0x5d2578(0x27e)](_0x44892e,_0x3026aa,_0x6de8a0){const _0x560c9a=_0x5d2578;return this[_0x560c9a(0x214)](_0x44892e,_0x3026aa)[_0x560c9a(0x224)](_0x6de8a0);}['getShapeDataById'](_0x4aff44,_0x3d99a4,_0x47cef3){const _0x18a1bc=_0x5d2578;let _0x12aa72=this['_ensureShapeModelManager'](_0x4aff44,_0x3d99a4);if(!_0x12aa72[_0x18a1bc(0x224)](_0x47cef3))return;let _0x105954=_0x12aa72[_0x18a1bc(0x23b)][_0x18a1bc(0x23e)](_0x47cef3);if(_0x105954)return _0x105954['getShapeData']();}[_0x5d2578(0x216)](_0x569be8,_0x19423c,_0x173788){const _0x20cdc3=_0x5d2578;return this['_ensureShapeModelManager'](_0x569be8,_0x19423c)[_0x20cdc3(0x23b)]['get'](_0x173788);}[_0x5d2578(0x20b)](_0x21829f,_0x51f0e0,_0xb4b771){const _0xa4eb64=_0x5d2578;return this[_0xa4eb64(0x214)](_0x21829f,_0x51f0e0)['getBasicShapeRelation'](_0xb4b771);}[_0x5d2578(0x27f)](_0x143f0c,_0x59840e,_0x38b685){const _0x5a46a9=_0x5d2578;let _0x16fa91=this[_0x5a46a9(0x214)](_0x143f0c,_0x59840e)['_shapes'][_0x5a46a9(0x23e)](_0x38b685);if(_0x16fa91)return _0x16fa91['getShapeRelation']();}[_0x5d2578(0x259)](){}['_serializeShapeForUnit'](_0x2dd156){const _0x2e172d=_0x5d2578;let _0x592289={},_0x10f2fb=this[_0x2e172d(0x252)]['get'](_0x2dd156);return _0x10f2fb&&_0x10f2fb[_0x2e172d(0x1fb)]((_0x3e726b,_0x4358ab)=>{const _0x551f4e=_0x2e172d;let _0x1fb461=_0x3e726b[_0x551f4e(0x21a)]();_0x1fb461[_0x551f4e(0x25c)]>0x0&&(_0x592289[_0x4358ab]=_0x1fb461);}),JSON[_0x2e172d(0x227)](_0x592289);}[_0x5d2578(0x2b8)](_0x50aff2,_0x310987){const _0x7c85f7=_0x5d2578;Object['keys'](_0x310987)[_0x7c85f7(0x1fb)](_0x2d66df=>{const _0x5c8029=_0x7c85f7;this[_0x5c8029(0x214)](_0x50aff2,_0x2d66df)[_0x5c8029(0x22f)](_0x310987[_0x2d66df]);});}[_0x5d2578(0x21a)](){const _0x3cfaee=_0x5d2578;let _0x2e6a67={};return this[_0x3cfaee(0x252)][_0x3cfaee(0x1fb)]((_0x419f39,_0x4f02c9)=>{const _0x2af814=_0x3cfaee;_0x2e6a67[_0x4f02c9]={},_0x419f39[_0x2af814(0x1fb)]((_0x44333a,_0x1334a0)=>{const _0x21f740=_0x2af814;_0x2e6a67[_0x4f02c9][_0x1334a0]=_0x44333a[_0x21f740(0x21a)]();});}),_0x2e6a67;}[_0x5d2578(0x22f)](_0x337816){const _0x275a81=_0x5d2578;Object[_0x275a81(0x1f7)](_0x337816)['forEach'](_0x43dce2=>{const _0x25d476=_0x275a81;let _0x1dfb95=_0x337816[_0x43dce2];Object[_0x25d476(0x1f7)](_0x1dfb95)[_0x25d476(0x1fb)](_0x4a0df3=>{const _0x13050f=_0x25d476;this[_0x13050f(0x214)](_0x43dce2,_0x4a0df3)['fromJSON'](_0x1dfb95[_0x4a0df3]);});});}[_0x5d2578(0x271)](){const _0x5119ad=_0x5d2578;this[_0x5119ad(0x2bd)][_0x5119ad(0x234)]({'pluginName':_0x5119ad(0x285),'businesses':[_0x7a6d65[_0x5119ad(0x269)][_0x5119ad(0x25a)]],'toJson':_0x5f264e=>this['_serializeShapeForUnit'](_0x5f264e),'parseJson':_0x286584=>JSON[_0x5119ad(0x245)](_0x286584),'onLoad':(_0x146957,_0x3de740)=>{const _0xe75547=_0x5119ad;this[_0xe75547(0x2b8)](_0x146957,_0x3de740);},'onUnLoad':_0x4e5a7c=>{const _0x4c5f71=_0x5119ad;let _0x1602bc=this['_shapeModelManagerMap'][_0x4c5f71(0x23e)](_0x4e5a7c);_0x1602bc&&(_0x1602bc[_0x4c5f71(0x1fb)](_0x389382=>{const _0xe79639=_0x4c5f71;_0x389382[_0xe79639(0x225)]();}),this[_0x4c5f71(0x252)][_0x4c5f71(0x29f)](_0x4e5a7c));}});}['dispose'](){const _0x5c3250=_0x5d2578;this[_0x5c3250(0x252)]['forEach'](_0x5c55a9=>{const _0x187769=_0x5c3250;_0x5c55a9[_0x187769(0x1fb)](_0x4db943=>{const _0x310190=_0x187769;_0x4db943[_0x310190(0x225)]();});});}};_0x27a1ba=_0x4d8c67([_0x5446a5(0x0,_0x7a6d65[_0x5d2578(0x24f)])],_0x27a1ba);let _0x3c212c={'id':_0x5d2578(0x27d),'type':_0x7a6d65[_0x5d2578(0x228)][_0x5d2578(0x241)],'handler':(_0xbab438,_0x5633fa)=>{const _0x4260ef=_0x5d2578;let {unitId:_0xfac23e,subUnitId:_0x99398b,shapeType:_0x12b66f,shapeId:_0x42fcd1,shapeData:_0x530cc5}=_0x5633fa;return _0xbab438[_0x4260ef(0x23e)](_0x27a1ba)[_0x4260ef(0x25e)](_0xfac23e,_0x99398b,_0x12b66f,_0x42fcd1,_0x530cc5),!0x0;}},_0x1717b7={'id':_0x5d2578(0x27b),'type':_0x7a6d65[_0x5d2578(0x228)][_0x5d2578(0x241)],'handler':(_0x29cdb4,_0x4fcbb9)=>{const _0x178322=_0x5d2578;let {unitId:_0x33c4c6,subUnitId:_0x1d68e6,shapeId:_0x576eb0}=_0x4fcbb9;return _0x29cdb4[_0x178322(0x23e)](_0x27a1ba)[_0x178322(0x2a7)](_0x33c4c6,_0x1d68e6,_0x576eb0),!0x0;}},_0x460413={'type':_0x7a6d65[_0x5d2578(0x228)]['COMMAND'],'id':_0x5d2578(0x288),'handler':(_0x3f0e92,_0xf6fb56)=>{const _0x2d7891=_0x5d2578;var _0x507d2e,_0x2d1f78;let _0x1c6711=(0x0,_0x278c3b['getSheetCommandTarget'])(_0x3f0e92[_0x2d7891(0x23e)](_0x7a6d65[_0x2d7891(0x24b)]),_0xf6fb56);if(!_0x1c6711)return!0x1;let _0x568652=_0x3f0e92[_0x2d7891(0x23e)](_0x278c3b[_0x2d7891(0x209)]),{unitId:_0x121860,subUnitId:_0x21c827}=_0x1c6711,_0x1a8e34=_0x568652['ensureSkeleton'](_0x121860,_0x21c827);if(!_0x1a8e34)return!0x1;let _0x8357dd=_0x3f0e92[_0x2d7891(0x23e)](_0x7a6d65['ICommandService']),_0x37ff80=_0x3f0e92['get'](_0x7a6d65[_0x2d7891(0x201)]),_0x2a0072=_0x3f0e92['get'](_0x278c3b[_0x2d7891(0x221)]),_0x46772e=_0x3f0e92[_0x2d7891(0x23e)](_0x212172[_0x2d7891(0x20a)]),{shapeType:_0x38ed11,shapeData:_0x4d671d}=_0xf6fb56,_0x237955=_0xf6fb56[_0x2d7891(0x1f9)]||(0x0,_0x7a6d65[_0x2d7891(0x29c)])(),_0x8fa8b6={'unitId':_0x121860,'subUnitId':_0x21c827,'shapeId':_0x237955,'shapeType':_0x38ed11,'shapeData':_0x4d671d},_0x4fc46d=_0xf6fb56[_0x2d7891(0x261)]||0xc8,_0x16cdcd=_0xf6fb56[_0x2d7891(0x273)]||0xc8,_0x4f89fd=0x0,_0x544cec=0x0,_0x23b9db={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x11d542={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0xf6fb56[_0x2d7891(0x2b9)]){let {x:_0x56210b,y:_0xa8be1c}=_0xf6fb56[_0x2d7891(0x2b9)];_0x4f89fd=_0x56210b,_0x544cec=_0xa8be1c,_0x23b9db=_0x1a8e34[_0x2d7891(0x260)](_0x56210b,_0xa8be1c),_0x11d542=_0x1a8e34[_0x2d7891(0x260)](_0x56210b+_0x4fc46d,_0xa8be1c+_0x16cdcd);}else{if(_0xf6fb56[_0x2d7891(0x243)]){let {startRow:_0x7dd2bf,startColumn:_0x2dfa61}=_0xf6fb56[_0x2d7891(0x243)];_0x23b9db={'row':_0x7dd2bf,'rowOffset':0xa,'column':_0x2dfa61,'columnOffset':0xa};let _0x1fb787=_0x1a8e34[_0x2d7891(0x289)](_0x7dd2bf,_0x2dfa61);_0x4f89fd=_0x1fb787[_0x2d7891(0x2b5)]+0xa,_0x544cec=_0x1fb787['startY']+0xa,_0x11d542=_0x1a8e34[_0x2d7891(0x260)](_0x4f89fd+_0x4fc46d,_0x544cec+_0x16cdcd);}}let _0x517ba5={'from':_0x23b9db,'to':_0x11d542},_0x2e1830={'unitId':_0x121860,'subUnitId':_0x21c827,'drawingId':_0x237955,'drawingType':_0x7a6d65[_0x2d7891(0x210)][_0x2d7891(0x254)],'sheetTransform':_0x517ba5,'transform':{'left':_0x4f89fd,'top':_0x544cec,'width':_0x4fc46d,'height':_0x16cdcd},'data':{'shapeType':_0x38ed11,'shapeData':_0x4d671d},'axisAlignSheetTransform':_0x517ba5,'allowTransform':!0x0};(0x0,_0x22ee1e['isConnectorShape'])(_0x38ed11)&&(_0x2e1830[_0x2d7891(0x270)][_0x2d7891(0x202)]=!0x1,_0x2e1830[_0x2d7891(0x270)][_0x2d7891(0x263)]=!0x1,_0x2e1830[_0x2d7891(0x270)]['resizeEnabled']=!0x1,_0x2e1830['data'][_0x2d7891(0x2ad)]=!0x1,_0x2e1830[_0x2d7891(0x257)][_0x2d7891(0x263)]=!0x1,_0x2e1830['transform'][_0x2d7891(0x298)]=!0x1,_0x2e1830[_0x2d7891(0x257)][_0x2d7891(0x2ad)]=!0x1);let {undo:_0x286a33,redo:_0x4b0b5c,objects:_0x17c90f}=_0x46772e[_0x2d7891(0x1f3)]([_0x2e1830]),_0x1696b4=_0x2a0072['onCommandExecute']({'id':_0x212172[_0x2d7891(0x233)]['id'],'params':{'unitId':_0x121860,'drawings':[_0x2e1830]}}),_0xc4c827=[...(_0x507d2e=_0x1696b4['preRedos'])==null?[]:_0x507d2e,{'id':_0x212172[_0x2d7891(0x250)]['id'],'params':{'unitId':_0x121860,'subUnitId':_0x21c827,'op':_0x4b0b5c,'objects':_0x17c90f,'type':_0x212172[_0x2d7891(0x292)][_0x2d7891(0x26c)]}},{'id':_0x212172[_0x2d7891(0x226)]['id'],'params':[_0x121860]},..._0x1696b4[_0x2d7891(0x2ba)],{'id':_0x3c212c['id'],'params':_0x8fa8b6}],_0x4e2ad6=[{'id':_0x1717b7['id'],'params':{'unitId':_0x121860,'subUnitId':_0x21c827,'shapeId':_0x237955}},...(_0x2d1f78=_0x1696b4['preUndos'])==null?[]:_0x2d1f78,{'id':_0x212172[_0x2d7891(0x250)]['id'],'params':{'unitId':_0x121860,'subUnitId':_0x21c827,'op':_0x286a33,'objects':_0x17c90f,'type':_0x212172[_0x2d7891(0x292)][_0x2d7891(0x272)]}},{'id':_0x212172[_0x2d7891(0x226)]['id'],'params':[_0x121860]},..._0x1696b4[_0x2d7891(0x20c)]];return(0x0,_0x7a6d65[_0x2d7891(0x277)])(_0xc4c827,_0x8357dd)?(_0x37ff80[_0x2d7891(0x1fd)]({'unitID':_0x121860,'undoMutations':_0x4e2ad6,'redoMutations':_0xc4c827}),!0x0):!0x1;}},_0x165383={'id':_0x5d2578(0x248),'type':_0x7a6d65[_0x5d2578(0x228)][_0x5d2578(0x241)],'handler':(_0x382a0e,_0x277507)=>{const _0x32608f=_0x5d2578;let {unitId:_0x27d0b6,subUnitId:_0x1140d1,shapeType:_0x1601aa,shapeId:_0x31c42c,shapeData:_0xcf261e}=_0x277507,_0x1b52a1=_0x382a0e['get'](_0x27a1ba)[_0x32608f(0x216)](_0x27d0b6,_0x1140d1,_0x31c42c);return _0x1b52a1&&(_0x1601aa!==void 0x0&&_0x1b52a1[_0x32608f(0x259)](_0x1601aa),_0xcf261e&&(_0x1b52a1==null||_0x1b52a1['setShapeData'](_0xcf261e,!0x0))),!0x0;}},_0x2dc8df={'type':_0x7a6d65['CommandType'][_0x5d2578(0x240)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x40592a,_0x5224b2)=>{const _0x4acfc7=_0x5d2578;var _0x27ac73,_0x283476;let _0x35ec92=(0x0,_0x278c3b['getSheetCommandTarget'])(_0x40592a['get'](_0x7a6d65['IUniverInstanceService']),_0x5224b2);if(!_0x35ec92)return!0x1;let _0x3817ba=_0x40592a[_0x4acfc7(0x23e)](_0x278c3b['SheetSkeletonService']),{unitId:_0x27b783,subUnitId:_0x4b86cf}=_0x35ec92,_0xea0cb6=_0x3817ba['ensureSkeleton'](_0x27b783,_0x4b86cf);if(!_0xea0cb6)return!0x1;let _0x4fc2a5=_0x40592a[_0x4acfc7(0x23e)](_0x27a1ba),{shapeId:_0x50104a,shapeType:_0x20946c,shapeData:_0x313708,position:_0x5948ff,width:_0x221a68,height:_0x217b6f}=_0x5224b2,_0x32251c=_0x4fc2a5[_0x4acfc7(0x216)](_0x27b783,_0x4b86cf,_0x50104a);if(!_0x32251c)return!0x1;let _0x10d9ee=_0x40592a['get'](_0x7a6d65[_0x4acfc7(0x1f6)]),_0x40cb58=_0x40592a[_0x4acfc7(0x23e)](_0x7a6d65[_0x4acfc7(0x201)]),_0x2fcc1a=_0x40592a['get'](_0x278c3b['SheetInterceptorService']),_0xa687c5=_0x40592a[_0x4acfc7(0x23e)](_0x212172['ISheetDrawingService']),_0x2c1322={'unitId':_0x27b783,'subUnitId':_0x4b86cf,'shapeId':_0x50104a,'shapeType':_0x20946c,'shapeData':_0x313708},_0x419bd5=_0x32251c[_0x4acfc7(0x224)](),_0x5cad4b=_0x32251c[_0x4acfc7(0x235)](),{x:_0x3cec9f,y:_0x128143}=_0x5948ff,_0x3357bb={'from':_0xea0cb6['getCellIndexAndOffsetByPosition'](_0x3cec9f,_0x128143),'to':_0xea0cb6[_0x4acfc7(0x260)](_0x3cec9f+_0x221a68,_0x128143+_0x217b6f)},_0x51b559={'unitId':_0x27b783,'subUnitId':_0x4b86cf,'drawingId':_0x50104a,'drawingType':_0x7a6d65['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x3357bb,'transform':{'left':_0x3cec9f,'top':_0x128143,'width':_0x221a68,'height':_0x217b6f},'data':{'shapeType':_0x20946c,'shapeData':_0x313708},'axisAlignSheetTransform':_0x3357bb,'allowTransform':!0x0};(0x0,_0x22ee1e[_0x4acfc7(0x2b6)])(_0x20946c)&&(_0x51b559[_0x4acfc7(0x270)][_0x4acfc7(0x202)]=!0x1,_0x51b559['data'][_0x4acfc7(0x263)]=!0x1,_0x51b559[_0x4acfc7(0x270)][_0x4acfc7(0x298)]=!0x1,_0x51b559[_0x4acfc7(0x270)][_0x4acfc7(0x2ad)]=!0x1,_0x51b559[_0x4acfc7(0x257)]['rotateEnabled']=!0x1,_0x51b559['transform'][_0x4acfc7(0x298)]=!0x1,_0x51b559[_0x4acfc7(0x257)][_0x4acfc7(0x2ad)]=!0x1);let {undo:_0x2a92a8,redo:_0x283aaf,objects:_0x72577c}=_0xa687c5[_0x4acfc7(0x22e)]([_0x51b559]),_0x840cfe=_0x2fcc1a[_0x4acfc7(0x1ff)]({'id':_0x212172[_0x4acfc7(0x26e)]['id'],'params':{'unitId':_0x27b783,'drawings':[_0x51b559]}}),_0x252780=[...(_0x27ac73=_0x840cfe['preRedos'])==null?[]:_0x27ac73,{'id':_0x212172[_0x4acfc7(0x250)]['id'],'params':{'unitId':_0x27b783,'subUnitId':_0x4b86cf,'op':_0x283aaf,'objects':_0x72577c,'type':_0x212172[_0x4acfc7(0x292)][_0x4acfc7(0x203)]}},{'id':_0x212172[_0x4acfc7(0x226)]['id'],'params':[_0x27b783]},..._0x840cfe[_0x4acfc7(0x2ba)],{'id':_0x165383['id'],'params':_0x2c1322}],_0xc46913=[...(_0x283476=_0x840cfe[_0x4acfc7(0x25b)])==null?[]:_0x283476,{'id':_0x212172['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x27b783,'subUnitId':_0x4b86cf,'op':_0x2a92a8,'objects':_0x72577c,'type':_0x212172['DrawingApplyType'][_0x4acfc7(0x203)]}},{'id':_0x212172[_0x4acfc7(0x226)]['id'],'params':[_0x27b783]},..._0x840cfe[_0x4acfc7(0x20c)],{'id':_0x165383['id'],'params':{'unitId':_0x27b783,'subUnitId':_0x4b86cf,'shapeType':_0x419bd5,'shapeId':_0x50104a,'shapeData':_0x5cad4b}}];return(0x0,_0x7a6d65[_0x4acfc7(0x277)])(_0x252780,_0x10d9ee)?(_0x40cb58[_0x4acfc7(0x1fd)]({'unitID':_0x27b783,'undoMutations':_0xc46913,'redoMutations':_0x252780}),!0x0):!0x1;}},_0x20707f={'type':_0x7a6d65[_0x5d2578(0x228)][_0x5d2578(0x240)],'id':_0x5d2578(0x20d),'handler':(_0x4a647d,_0x19ac1c)=>{const _0x3649b6=_0x5d2578;var _0x53ea18,_0x22557a;let _0x1cb2e1=(0x0,_0x278c3b[_0x3649b6(0x29d)])(_0x4a647d['get'](_0x7a6d65[_0x3649b6(0x24b)]),_0x19ac1c);if(!_0x1cb2e1)return!0x1;let _0x5b9c5c=_0x4a647d[_0x3649b6(0x23e)](_0x278c3b[_0x3649b6(0x209)]),{unitId:_0x126c3c,subUnitId:_0x12e021}=_0x1cb2e1,_0x5776b0=_0x5b9c5c[_0x3649b6(0x290)](_0x126c3c,_0x12e021);if(!_0x5776b0)return!0x1;let _0x52e95f=_0x4a647d[_0x3649b6(0x23e)](_0x212172[_0x3649b6(0x20a)]),{shapeId:_0x850b07,flipH:_0xab5bfe,flipV:_0x1c2d1f}=_0x19ac1c,_0x562b00=_0x52e95f[_0x3649b6(0x1f4)]({'unitId':_0x126c3c,'subUnitId':_0x12e021,'drawingId':_0x850b07});if(!_0x562b00)return!0x1;let _0x4e1ef6=_0x4a647d[_0x3649b6(0x23e)](_0x27a1ba)[_0x3649b6(0x216)](_0x126c3c,_0x12e021,_0x850b07);if(!_0x4e1ef6)return!0x1;let _0x5f38f4=_0x4a647d[_0x3649b6(0x23e)](_0x7a6d65['ICommandService']),_0x1ee705=_0x4a647d['get'](_0x7a6d65['IUndoRedoService']),_0xbf29d9=_0x4a647d['get'](_0x278c3b[_0x3649b6(0x221)]),_0x18ca4c={..._0x562b00[_0x3649b6(0x257)]};_0xab5bfe!==void 0x0&&(_0x18ca4c[_0x3649b6(0x20e)]=!_0x18ca4c[_0x3649b6(0x20e)]),_0x1c2d1f!==void 0x0&&(_0x18ca4c[_0x3649b6(0x251)]=!_0x18ca4c[_0x3649b6(0x251)]);let _0x291a91=(0x0,_0x212172[_0x3649b6(0x1f8)])(_0x18ca4c,_0x5776b0),_0xc8f1eb=(0x0,_0x212172[_0x3649b6(0x296)])(_0x18ca4c,_0x5776b0),_0xfb0749=_0x4e1ef6[_0x3649b6(0x224)](),_0x2dc190=_0x4e1ef6[_0x3649b6(0x235)](),_0x4374b1={'unitId':_0x126c3c,'subUnitId':_0x12e021,'drawingId':_0x850b07,'drawingType':_0x7a6d65[_0x3649b6(0x210)][_0x3649b6(0x254)],'sheetTransform':_0x291a91,'transform':_0x18ca4c,'data':{'shapeType':_0xfb0749,'shapeData':_0x2dc190},'axisAlignSheetTransform':_0xc8f1eb,'allowTransform':!0x0},{undo:_0x401454,redo:_0x28bb3f,objects:_0x2745e1}=_0x52e95f[_0x3649b6(0x22e)]([_0x4374b1]),_0x460af7=_0xbf29d9[_0x3649b6(0x1ff)]({'id':_0x212172['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x126c3c,'drawings':[_0x4374b1]}}),_0x29ea43=[...(_0x53ea18=_0x460af7[_0x3649b6(0x275)])==null?[]:_0x53ea18,{'id':_0x212172[_0x3649b6(0x250)]['id'],'params':{'unitId':_0x126c3c,'subUnitId':_0x12e021,'op':_0x28bb3f,'objects':_0x2745e1,'type':_0x212172[_0x3649b6(0x292)]['UPDATE']}},{'id':_0x212172[_0x3649b6(0x226)]['id'],'params':[_0x126c3c]},..._0x460af7[_0x3649b6(0x2ba)]],_0x353c3f=[...(_0x22557a=_0x460af7[_0x3649b6(0x25b)])==null?[]:_0x22557a,{'id':_0x212172[_0x3649b6(0x250)]['id'],'params':{'unitId':_0x126c3c,'subUnitId':_0x12e021,'op':_0x401454,'objects':_0x2745e1,'type':_0x212172[_0x3649b6(0x292)]['UPDATE']}},{'id':_0x212172[_0x3649b6(0x226)]['id'],'params':[_0x126c3c]},..._0x460af7[_0x3649b6(0x20c)]];if((0x0,_0x22ee1e[_0x3649b6(0x2b6)])(_0xfb0749)){let _0x57a8d3=_0x4e1ef6[_0x3649b6(0x23f)]();if(_0x57a8d3){let _0x4d173a={..._0x57a8d3};_0x4d173a[_0x3649b6(0x2a0)]=void 0x0,_0x4d173a['to']=void 0x0,_0x29ea43[_0x3649b6(0x2a6)]({'id':_0x165383['id'],'params':{'unitId':_0x126c3c,'subUnitId':_0x12e021,'shapeId':_0x850b07,'shapeType':_0xfb0749,'shapeData':{'relation':_0x4d173a}}}),_0x353c3f['push']({'id':_0x165383['id'],'params':{'unitId':_0x126c3c,'subUnitId':_0x12e021,'shapeId':_0x850b07,'shapeType':_0xfb0749,'shapeData':{'relation':_0x57a8d3}}});}}return(0x0,_0x7a6d65[_0x3649b6(0x277)])(_0x29ea43,_0x5f38f4)?(_0x1ee705[_0x3649b6(0x1fd)]({'unitID':_0x126c3c,'undoMutations':_0x353c3f,'redoMutations':_0x29ea43}),!0x0):!0x1;}},_0x1a7bbe={'type':_0x7a6d65[_0x5d2578(0x228)][_0x5d2578(0x240)],'id':_0x5d2578(0x26a),'handler':(_0x47287d,_0x38fa02)=>{const _0x35ffd1=_0x5d2578;var _0x4f5829,_0x5d7db4;let _0x1c8b44=(0x0,_0x278c3b[_0x35ffd1(0x29d)])(_0x47287d[_0x35ffd1(0x23e)](_0x7a6d65[_0x35ffd1(0x24b)]),_0x38fa02);if(!_0x1c8b44)return!0x1;let _0x5ee819=_0x47287d['get'](_0x278c3b['SheetSkeletonService']),{unitId:_0x5c4b3c,subUnitId:_0x9e2fd1}=_0x1c8b44,_0x584b44=_0x5ee819[_0x35ffd1(0x290)](_0x5c4b3c,_0x9e2fd1);if(!_0x584b44)return!0x1;let _0x21fc34=_0x47287d[_0x35ffd1(0x23e)](_0x212172['ISheetDrawingService']),{shapeId:_0x2097f8,rotate:_0x10abf3}=_0x38fa02,_0x32ade9=_0x21fc34[_0x35ffd1(0x1f4)]({'unitId':_0x5c4b3c,'subUnitId':_0x9e2fd1,'drawingId':_0x2097f8});if(!_0x32ade9)return!0x1;let _0x4bd649=_0x47287d['get'](_0x27a1ba)[_0x35ffd1(0x216)](_0x5c4b3c,_0x9e2fd1,_0x2097f8);if(!_0x4bd649)return!0x1;let _0x3d016d=_0x47287d[_0x35ffd1(0x23e)](_0x7a6d65[_0x35ffd1(0x1f6)]),_0x3eeddc=_0x47287d[_0x35ffd1(0x23e)](_0x7a6d65[_0x35ffd1(0x201)]),_0x3c154c=_0x47287d['get'](_0x278c3b[_0x35ffd1(0x221)]),_0x1eba5f={..._0x32ade9[_0x35ffd1(0x257)]};_0x10abf3!==void 0x0&&(_0x1eba5f[_0x35ffd1(0x242)]=(_0x1eba5f[_0x35ffd1(0x242)]||0x0)+_0x10abf3);let _0x3864b4=(0x0,_0x212172['transformToDrawingPosition'])(_0x1eba5f,_0x584b44),_0x4f0a16=(0x0,_0x212172['transformToAxisAlignPosition'])(_0x1eba5f,_0x584b44),_0x5b94f9=_0x4bd649['getShapeType'](),_0x54c34c=_0x4bd649[_0x35ffd1(0x235)](),_0x2cd550={'unitId':_0x5c4b3c,'subUnitId':_0x9e2fd1,'drawingId':_0x2097f8,'drawingType':_0x7a6d65[_0x35ffd1(0x210)][_0x35ffd1(0x254)],'sheetTransform':_0x3864b4,'transform':_0x1eba5f,'data':{'shapeType':_0x5b94f9,'shapeData':_0x54c34c},'axisAlignSheetTransform':_0x4f0a16,'allowTransform':!0x0},{undo:_0x5ad800,redo:_0x34d320,objects:_0x5126d7}=_0x21fc34[_0x35ffd1(0x22e)]([_0x2cd550]),_0x38fa19=_0x3c154c['onCommandExecute']({'id':_0x212172[_0x35ffd1(0x26e)]['id'],'params':{'unitId':_0x5c4b3c,'drawings':[_0x2cd550]}}),_0x19198a=[...(_0x4f5829=_0x38fa19['preRedos'])==null?[]:_0x4f5829,{'id':_0x212172['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5c4b3c,'subUnitId':_0x9e2fd1,'op':_0x34d320,'objects':_0x5126d7,'type':_0x212172[_0x35ffd1(0x292)][_0x35ffd1(0x203)]}},{'id':_0x212172[_0x35ffd1(0x226)]['id'],'params':[_0x5c4b3c]},..._0x38fa19['redos']],_0x386350=[...(_0x5d7db4=_0x38fa19['preUndos'])==null?[]:_0x5d7db4,{'id':_0x212172[_0x35ffd1(0x250)]['id'],'params':{'unitId':_0x5c4b3c,'subUnitId':_0x9e2fd1,'op':_0x5ad800,'objects':_0x5126d7,'type':_0x212172['DrawingApplyType'][_0x35ffd1(0x203)]}},{'id':_0x212172['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5c4b3c]},..._0x38fa19[_0x35ffd1(0x20c)]];return(0x0,_0x7a6d65[_0x35ffd1(0x277)])(_0x19198a,_0x3d016d)?(_0x3eeddc[_0x35ffd1(0x1fd)]({'unitID':_0x5c4b3c,'undoMutations':_0x386350,'redoMutations':_0x19198a}),!0x0):!0x1;}},_0x596b89={'type':_0x7a6d65[_0x5d2578(0x228)][_0x5d2578(0x240)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x4c997d,_0x1ddbc3)=>{const _0x2e176c=_0x5d2578;var _0xb25440;let _0x253f00=(0x0,_0x278c3b['getSheetCommandTarget'])(_0x4c997d[_0x2e176c(0x23e)](_0x7a6d65[_0x2e176c(0x24b)]),_0x1ddbc3);if(!_0x253f00)return!0x1;let {unitId:_0x2efc9b,subUnitId:_0xe1d42c}=_0x253f00,{shapeId:_0x1239e}=_0x1ddbc3,_0x1346c2=_0x4c997d['get'](_0x27a1ba)['getShapeModel'](_0x2efc9b,_0xe1d42c,_0x1239e);if(!_0x1346c2)return!0x1;let _0x59e444=_0x1346c2[_0x2e176c(0x291)](),_0x2c31de=(_0xb25440=_0x59e444==null?void 0x0:_0x59e444['isHorizontal'])==null?!0x0:_0xb25440,_0x59fbf=!_0x2c31de,_0x1b5430=_0x4c997d[_0x2e176c(0x23e)](_0x7a6d65[_0x2e176c(0x1f6)]),_0x19f091=_0x4c997d[_0x2e176c(0x23e)](_0x7a6d65[_0x2e176c(0x201)]),_0xc4b448={'unitId':_0x2efc9b,'subUnitId':_0xe1d42c,'shapeId':_0x1239e,'shapeData':{'shapeText':{'isHorizontal':_0x59fbf}}},_0x197ef7={'unitId':_0x2efc9b,'subUnitId':_0xe1d42c,'shapeId':_0x1239e,'shapeData':{'shapeText':{'isHorizontal':_0x2c31de}}},_0x3255ff=[{'id':_0x165383['id'],'params':_0xc4b448}],_0x35c3f8=[{'id':_0x165383['id'],'params':_0x197ef7}];return(0x0,_0x7a6d65[_0x2e176c(0x277)])(_0x3255ff,_0x1b5430)?(_0x19f091['pushUndoRedo']({'unitID':_0x2efc9b,'undoMutations':_0x35c3f8,'redoMutations':_0x3255ff}),!0x0):!0x1;}},_0x55fbf6={'type':_0x7a6d65[_0x5d2578(0x228)][_0x5d2578(0x240)],'id':_0x5d2578(0x22d),'handler':(_0x3711bb,_0x51d707)=>{const _0x17ee12=_0x5d2578;var _0x1cca36,_0x49771e,_0x420cb5,_0x2c0d0c;let _0xd2b4d3=(0x0,_0x278c3b['getSheetCommandTarget'])(_0x3711bb[_0x17ee12(0x23e)](_0x7a6d65[_0x17ee12(0x24b)]),_0x51d707);if(!_0xd2b4d3)return!0x1;let _0x3e5b86=_0x3711bb[_0x17ee12(0x23e)](_0x278c3b[_0x17ee12(0x209)]),{unitId:_0x25a339,subUnitId:_0x5e7a90}=_0xd2b4d3,_0x3903e9=_0x3e5b86[_0x17ee12(0x290)](_0x25a339,_0x5e7a90);if(!_0x3903e9)return!0x1;let _0x38eaea=_0x3711bb[_0x17ee12(0x23e)](_0x212172[_0x17ee12(0x20a)]),{connectorShapeId:_0x36f086,width:_0x1235ba,height:_0x23e529,left:_0x33309c,top:_0x43fb5b,flipX:_0x32af83,flipY:_0xeeba2,rotation:_0x2124ef,oldAdjustValues:_0x3b86ae,newAdjustValues:_0x19b25f,oldLineType:_0x58d503,newLineType:_0x1ce229,oldRelation:_0x2e0f43,newRelation:_0x24256b}=_0x51d707,_0x53d426=_0x38eaea[_0x17ee12(0x1f4)]({'unitId':_0x25a339,'subUnitId':_0x5e7a90,'drawingId':_0x36f086});if(!_0x53d426)return!0x1;let _0x46348a=_0x3711bb[_0x17ee12(0x23e)](_0x27a1ba)['getShapeModel'](_0x25a339,_0x5e7a90,_0x36f086);if(!_0x46348a)return!0x1;let _0x318b56=_0x3711bb['get'](_0x7a6d65[_0x17ee12(0x1f6)]),_0x10bc9a=_0x3711bb[_0x17ee12(0x23e)](_0x7a6d65['IUndoRedoService']),_0x348080=_0x3711bb['get'](_0x278c3b[_0x17ee12(0x221)]),_0x23658d={..._0x53d426[_0x17ee12(0x257)],'width':_0x1235ba,'height':_0x23e529,'left':_0x33309c,'top':_0x43fb5b,'flipX':_0x32af83,'flipY':_0xeeba2,'angle':(_0x1cca36=_0x2124ef==null?(_0x49771e=_0x53d426[_0x17ee12(0x257)])==null?void 0x0:_0x49771e[_0x17ee12(0x242)]:_0x2124ef)==null?0x0:_0x1cca36},_0x1cae66=(0x0,_0x212172[_0x17ee12(0x1f8)])(_0x23658d,_0x3903e9),_0x4c5d5f=(0x0,_0x212172[_0x17ee12(0x296)])(_0x23658d,_0x3903e9),_0x3a8e44=_0x46348a[_0x17ee12(0x224)](),_0x22704e=_0x46348a['getShapeData'](),_0x191eca={'unitId':_0x25a339,'subUnitId':_0x5e7a90,'drawingId':_0x36f086,'drawingType':_0x7a6d65[_0x17ee12(0x210)][_0x17ee12(0x254)],'sheetTransform':_0x1cae66,'transform':_0x23658d,'data':{'shapeType':_0x1ce229||_0x58d503||_0x3a8e44,'shapeData':{..._0x22704e,'adjustValues':_0x19b25f||_0x3b86ae||(_0x22704e==null?void 0x0:_0x22704e[_0x17ee12(0x207)]),'relation':_0x24256b||_0x2e0f43||(_0x22704e==null?void 0x0:_0x22704e[_0x17ee12(0x26f)])}},'axisAlignSheetTransform':_0x4c5d5f,'allowTransform':!0x0},{undo:_0x331433,redo:_0x481ac6,objects:_0x70e24d}=_0x38eaea[_0x17ee12(0x22e)]([_0x191eca]),_0x37053f=_0x348080[_0x17ee12(0x1ff)]({'id':_0x212172[_0x17ee12(0x26e)]['id'],'params':{'unitId':_0x25a339,'drawings':[_0x191eca]}}),_0x3a2570=[...(_0x420cb5=_0x37053f['preRedos'])==null?[]:_0x420cb5,{'id':_0x212172[_0x17ee12(0x250)]['id'],'params':{'unitId':_0x25a339,'subUnitId':_0x5e7a90,'op':_0x481ac6,'objects':_0x70e24d,'type':_0x212172[_0x17ee12(0x292)][_0x17ee12(0x203)]}},{'id':_0x212172[_0x17ee12(0x226)]['id'],'params':[_0x25a339]},..._0x37053f[_0x17ee12(0x2ba)],{'id':_0x165383['id'],'params':{'unitId':_0x25a339,'subUnitId':_0x5e7a90,'shapeId':_0x36f086,'shapeType':_0x1ce229,'shapeData':{'adjustValues':_0x19b25f,'relation':_0x24256b}}}],_0x402178=[...(_0x2c0d0c=_0x37053f[_0x17ee12(0x25b)])==null?[]:_0x2c0d0c,{'id':_0x212172[_0x17ee12(0x250)]['id'],'params':{'unitId':_0x25a339,'subUnitId':_0x5e7a90,'op':_0x331433,'objects':_0x70e24d,'type':_0x212172[_0x17ee12(0x292)][_0x17ee12(0x203)]}},{'id':_0x212172[_0x17ee12(0x226)]['id'],'params':[_0x25a339]},..._0x37053f[_0x17ee12(0x20c)],{'id':_0x165383['id'],'params':{'unitId':_0x25a339,'subUnitId':_0x5e7a90,'shapeId':_0x36f086,'shapeType':_0x3a8e44,'shapeData':{..._0x22704e,'adjustValues':_0x3b86ae||(_0x22704e==null?void 0x0:_0x22704e[_0x17ee12(0x207)]),'relation':_0x2e0f43||(_0x22704e==null?void 0x0:_0x22704e['relation'])}}}];return(0x0,_0x7a6d65[_0x17ee12(0x277)])(_0x3a2570,_0x318b56)?(_0x10bc9a[_0x17ee12(0x1fd)]({'unitID':_0x25a339,'undoMutations':_0x402178,'redoMutations':_0x3a2570}),!0x0):!0x1;}},_0x7289ab={'type':_0x7a6d65[_0x5d2578(0x228)]['COMMAND'],'id':_0x5d2578(0x213),'handler':(_0x57f947,_0x561423)=>{const _0x54557e=_0x5d2578;var _0x28bec9,_0x33e94a;let _0x1ff4a0=(0x0,_0x278c3b['getSheetCommandTarget'])(_0x57f947['get'](_0x7a6d65['IUniverInstanceService']),_0x561423);if(!_0x1ff4a0)return!0x1;let _0x173798=_0x57f947[_0x54557e(0x23e)](_0x278c3b[_0x54557e(0x209)]),{unitId:_0x302e7f,subUnitId:_0x37c5bc}=_0x1ff4a0,_0x4c76bb=_0x173798[_0x54557e(0x290)](_0x302e7f,_0x37c5bc);if(!_0x4c76bb)return!0x1;let _0x3343f4=_0x57f947[_0x54557e(0x23e)](_0x212172[_0x54557e(0x20a)]),{shapeId:_0x337c8b,width:_0xc65952,height:_0x24e573,left:_0x203c30,top:_0x21a8d0,flipX:_0x17154d,flipY:_0xe17c64,angle:_0xd3332b,oldAdjustValues:_0x4edc0f,newAdjustValues:_0x4b2719,oldLineType:_0x1a27b9,newLineType:_0xf337be}=_0x561423,_0x8e2643=_0x3343f4[_0x54557e(0x1f4)]({'unitId':_0x302e7f,'subUnitId':_0x37c5bc,'drawingId':_0x337c8b});if(!_0x8e2643)return!0x1;let _0x5d8f64=_0x57f947['get'](_0x27a1ba)[_0x54557e(0x216)](_0x302e7f,_0x37c5bc,_0x337c8b);if(!_0x5d8f64)return!0x1;let _0x1e8cf5=_0x57f947['get'](_0x7a6d65['ICommandService']),_0x32b2fb=_0x57f947[_0x54557e(0x23e)](_0x7a6d65[_0x54557e(0x201)]),_0x1b8487=_0x57f947[_0x54557e(0x23e)](_0x278c3b[_0x54557e(0x221)]),_0x417121={..._0x8e2643[_0x54557e(0x257)],'width':_0xc65952,'height':_0x24e573,'left':_0x203c30,'top':_0x21a8d0,'flipX':_0x17154d,'flipY':_0xe17c64,'angle':_0xd3332b},_0x4acfa0=(0x0,_0x212172['transformToDrawingPosition'])(_0x417121,_0x4c76bb),_0x2d4236=(0x0,_0x212172[_0x54557e(0x296)])(_0x417121,_0x4c76bb),_0x19c5bf=_0x5d8f64[_0x54557e(0x224)](),_0x187635=_0x5d8f64[_0x54557e(0x235)](),_0x1c295f={'unitId':_0x302e7f,'subUnitId':_0x37c5bc,'drawingId':_0x337c8b,'drawingType':_0x7a6d65[_0x54557e(0x210)][_0x54557e(0x254)],'sheetTransform':_0x4acfa0,'transform':_0x417121,'data':{'shapeType':_0xf337be||_0x1a27b9||_0x19c5bf,'shapeData':{..._0x187635,'adjustValues':_0x4b2719||_0x4edc0f||(_0x187635==null?void 0x0:_0x187635[_0x54557e(0x207)])}},'axisAlignSheetTransform':_0x2d4236,'allowTransform':!0x0},{undo:_0x4bafa5,redo:_0x434cb3,objects:_0x5e35a6}=_0x3343f4[_0x54557e(0x22e)]([_0x1c295f]),_0x554e02=_0x1b8487[_0x54557e(0x1ff)]({'id':_0x212172[_0x54557e(0x26e)]['id'],'params':{'unitId':_0x302e7f,'drawings':[_0x1c295f]}}),_0x1ac075=[...(_0x28bec9=_0x554e02[_0x54557e(0x275)])==null?[]:_0x28bec9,{'id':_0x212172[_0x54557e(0x250)]['id'],'params':{'unitId':_0x302e7f,'subUnitId':_0x37c5bc,'op':_0x434cb3,'objects':_0x5e35a6,'type':_0x212172[_0x54557e(0x292)][_0x54557e(0x203)]}},{'id':_0x212172[_0x54557e(0x226)]['id'],'params':[_0x302e7f]},..._0x554e02[_0x54557e(0x2ba)],{'id':_0x165383['id'],'params':{'unitId':_0x302e7f,'subUnitId':_0x37c5bc,'shapeId':_0x337c8b,'shapeType':_0xf337be,'shapeData':{'adjustValues':_0x4b2719}}}],_0x370a2d=[...(_0x33e94a=_0x554e02[_0x54557e(0x25b)])==null?[]:_0x33e94a,{'id':_0x212172[_0x54557e(0x250)]['id'],'params':{'unitId':_0x302e7f,'subUnitId':_0x37c5bc,'op':_0x4bafa5,'objects':_0x5e35a6,'type':_0x212172['DrawingApplyType'][_0x54557e(0x203)]}},{'id':_0x212172[_0x54557e(0x226)]['id'],'params':[_0x302e7f]},..._0x554e02['undos'],{'id':_0x165383['id'],'params':{'unitId':_0x302e7f,'subUnitId':_0x37c5bc,'shapeId':_0x337c8b,'shapeType':_0x19c5bf,'shapeData':{..._0x187635,'adjustValues':_0x4edc0f||(_0x187635==null?void 0x0:_0x187635['adjustValues'])}}}];return(0x0,_0x7a6d65['sequenceExecute'])(_0x1ac075,_0x1e8cf5)?(_0x32b2fb[_0x54557e(0x1fd)]({'unitID':_0x302e7f,'undoMutations':_0x370a2d,'redoMutations':_0x1ac075}),!0x0):!0x1;}},_0x2c7cbd={'id':'sheet.mutation.update-shape-type','type':_0x7a6d65[_0x5d2578(0x228)][_0x5d2578(0x241)],'handler':(_0x283b27,_0x5877bc)=>{const _0x129ed7=_0x5d2578;let {unitId:_0x2c7c9c,subUnitId:_0xfabea3,shapeType:_0x1b7b7a,shapeId:_0x1a56bd,shapeData:_0x2ced91}=_0x5877bc,_0x8ebd7a=_0x283b27[_0x129ed7(0x23e)](_0x27a1ba)[_0x129ed7(0x216)](_0x2c7c9c,_0xfabea3,_0x1a56bd);return _0x8ebd7a&&(_0x8ebd7a[_0x129ed7(0x259)](_0x1b7b7a),_0x2ced91&&(_0x8ebd7a==null||_0x8ebd7a[_0x129ed7(0x281)](_0x2ced91))),!0x0;}},_0x40c761={'id':_0x5d2578(0x218),'type':_0x7a6d65[_0x5d2578(0x228)]['COMMAND'],'handler':(_0x1656e8,_0x1ea831)=>{const _0x2e4e76=_0x5d2578;if(!_0x1ea831)return!0x1;let _0x5184c6=_0x1656e8['get'](_0x7a6d65['ICommandService']),_0x2118ba=_0x1656e8[_0x2e4e76(0x23e)](_0x27a1ba),_0x5dee23=_0x1656e8['get'](_0x7a6d65[_0x2e4e76(0x201)]),_0x51f9ff=[],_0x56c43c=[],{unitId:_0x5c9423,subUnitId:_0x37cc68,shapeId:_0x36f635,shapeType:_0x30a17a,shapeData:_0x19532c}=_0x1ea831,_0x43f303=_0x2118ba['getShapeModel'](_0x5c9423,_0x37cc68,_0x36f635);if(_0x43f303){let _0x4f9962=_0x43f303[_0x2e4e76(0x224)](),_0x29846c=Object[_0x2e4e76(0x2bf)]({},_0x43f303['getShapeData']()),_0x4df2fd={'unitId':_0x5c9423,'subUnitId':_0x37cc68,'shapeId':_0x36f635,'shapeType':_0x30a17a,'shapeData':_0x19532c},_0x410bbf={'unitId':_0x5c9423,'subUnitId':_0x37cc68,'shapeId':_0x36f635,'shapeType':_0x4f9962,'shapeData':_0x29846c};return _0x51f9ff[_0x2e4e76(0x2a6)]({'id':_0x2c7cbd['id'],'params':_0x4df2fd}),_0x56c43c[_0x2e4e76(0x2a6)]({'id':_0x2c7cbd['id'],'params':_0x410bbf}),_0x51f9ff['every'](_0x24442c=>_0x5184c6['syncExecuteCommand'](_0x24442c['id'],_0x24442c[_0x2e4e76(0x25d)]))&&_0x5dee23[_0x2e4e76(0x1fd)]({'unitID':_0x5c9423,'redoMutations':[..._0x51f9ff],'undoMutations':[..._0x56c43c]}),!0x0;}return!0x1;}};var _0x483df6='@univerjs-pro/sheets-shape',_0x3a3596='0.21.0';let _0x43772f=_0x5d2578(0x1fa);Symbol(_0x43772f);let _0xc604f={},_0x5f06e5=class extends _0x7a6d65[_0x5d2578(0x1ee)]{constructor(_0x30e443,_0x1a900b,_0x528e89,_0x2d50d2,_0x4d14a6){const _0x571b79=_0x5d2578;super(),this['_commandService']=_0x30e443,this[_0x571b79(0x22b)]=_0x1a900b,this[_0x571b79(0x28d)]=_0x528e89,this[_0x571b79(0x24a)]=_0x2d50d2,this[_0x571b79(0x286)]=_0x4d14a6,this['_initCommands'](),this[_0x571b79(0x2b2)]();}[_0x5d2578(0x217)](){const _0x5a8ace=_0x5d2578;[_0x460413,_0x2dc8df,_0x20707f,_0x1a7bbe,_0x596b89,_0x55fbf6,_0x7289ab,_0x3c212c,_0x1717b7,_0x2c7cbd,_0x165383][_0x5a8ace(0x1fb)](_0xd07bb3=>this[_0x5a8ace(0x2af)](this[_0x5a8ace(0x264)][_0x5a8ace(0x237)](_0xd07bb3)));}[_0x5d2578(0x2b2)](){const _0x2736ef=_0x5d2578;this['disposeWithMe'](this['_sheetInterceptorService'][_0x2736ef(0x222)]({'getMutations':_0x4a022d=>{const _0x444a2e=_0x2736ef;if(_0x4a022d['id']===_0x212172[_0x444a2e(0x2bb)]['id']){let {drawings:_0x47d753}=_0x4a022d[_0x444a2e(0x25d)],_0x49dbe0=_0x47d753['filter'](_0x391b8e=>_0x391b8e[_0x444a2e(0x223)]===_0x7a6d65[_0x444a2e(0x210)][_0x444a2e(0x254)]);if(_0x49dbe0[_0x444a2e(0x25c)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0xeb825d=[],_0x2f7b83=[];return _0x49dbe0[_0x444a2e(0x1fb)](_0x523883=>{const _0x597746=_0x444a2e;let {unitId:_0x5dc4d0,subUnitId:_0x33c58a,drawingId:_0x1a0363}=_0x523883,_0x3282a9=this['_sheetsShapeService'][_0x597746(0x216)](_0x5dc4d0,_0x33c58a,_0x1a0363);if(!_0x3282a9)throw TypeError(_0x597746(0x283)+_0x3282a9);_0xeb825d[_0x597746(0x2a6)]({'id':_0x1717b7['id'],'params':{'unitId':_0x5dc4d0,'subUnitId':_0x33c58a,'shapeId':_0x1a0363}}),_0x2f7b83[_0x597746(0x2a6)]({'id':_0x3c212c['id'],'params':{'unitId':_0x5dc4d0,'subUnitId':_0x33c58a,'shapeId':_0x1a0363,'shapeType':_0x3282a9[_0x597746(0x224)](),'shapeData':_0x3282a9[_0x597746(0x235)]()}});let _0x26e1ac=this[_0x597746(0x24a)]['getBasicShapeRelation'](_0x5dc4d0,_0x33c58a,_0x1a0363);if(_0x26e1ac)for(let _0x258655 of _0x26e1ac){let _0x1a3212=_0x258655[_0x597746(0x276)],_0x1a8b81=_0x258655[_0x597746(0x244)],_0xfa684=_0x1a8b81?{'from':void 0x0}:{'to':void 0x0},_0xdffa32=_0x1a8b81?{'from':{'shapeId':_0x258655[_0x597746(0x1f9)],'cxnIndex':_0x258655[_0x597746(0x211)]}}:{'to':{'shapeId':_0x258655['shapeId'],'cxnIndex':_0x258655[_0x597746(0x211)]}};_0xeb825d[_0x597746(0x2a6)]({'id':_0x165383['id'],'params':{'unitId':_0x5dc4d0,'subUnitId':_0x33c58a,'shapeId':_0x1a3212,'shapeData':{'relation':_0xfa684}}}),_0x2f7b83[_0x597746(0x2a6)]({'id':_0x165383['id'],'params':{'unitId':_0x5dc4d0,'subUnitId':_0x33c58a,'shapeId':_0x1a3212,'shapeData':{'relation':_0xdffa32}}});}}),{'preRedos':_0xeb825d,'redos':[],'preUndos':[],'undos':_0x2f7b83};}if(_0x4a022d['id']===_0x212172[_0x444a2e(0x26e)]['id']){let {drawings:_0x10d2fe}=_0x4a022d[_0x444a2e(0x25d)],_0x1ca620=_0x10d2fe[_0x444a2e(0x236)](_0x448ede=>_0x448ede[_0x444a2e(0x223)]===_0x7a6d65[_0x444a2e(0x210)]['DRAWING_SHAPE']);if(_0x1ca620[_0x444a2e(0x25c)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x57f556=[],_0x45e4c7=[];for(let _0x535c53 of _0x1ca620){let {unitId:_0x2e104f,subUnitId:_0x3d238b,drawingId:_0x5ed867,transform:_0x51534f}=_0x535c53;if(!_0x2e104f||!_0x3d238b||!_0x5ed867||!_0x51534f)continue;let _0x242f57=this['_sheetsShapeService'][_0x444a2e(0x216)](_0x2e104f,_0x3d238b,_0x5ed867);if(!_0x242f57)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x242f57);if((0x0,_0x22ee1e[_0x444a2e(0x2b6)])(_0x242f57['getShapeType']())){let _0x364f12=this[_0x444a2e(0x24a)][_0x444a2e(0x27f)](_0x2e104f,_0x3d238b,_0x5ed867);_0x364f12&&(_0x57f556['push']({'id':_0x165383['id'],'params':{'unitId':_0x2e104f,'subUnitId':_0x3d238b,'shapeId':_0x5ed867,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x45e4c7[_0x444a2e(0x2a6)]({'id':_0x165383['id'],'params':{'unitId':_0x2e104f,'subUnitId':_0x3d238b,'shapeId':_0x5ed867,'shapeData':{'relation':_0x364f12}}}));}else{let _0x2670b0=this[_0x444a2e(0x24a)][_0x444a2e(0x20b)](_0x2e104f,_0x3d238b,_0x5ed867);if(_0x2670b0&&_0x2670b0[_0x444a2e(0x25c)]>0x0)for(let _0x5969bc of _0x2670b0){let _0x2fc47a=_0x5969bc['lineShapeId'],_0x57bd41=_0x5969bc[_0x444a2e(0x244)],_0x2c7056=this[_0x444a2e(0x24a)][_0x444a2e(0x216)](_0x2e104f,_0x3d238b,_0x2fc47a);if(!_0x2c7056)continue;let _0x51c398=_0x2c7056[_0x444a2e(0x246)](),_0xa73205=_0x2c7056[_0x444a2e(0x24d)]();_0x51c398&&_0xa73205?this[_0x444a2e(0x26d)](_0x2e104f,_0x3d238b,_0x2fc47a,_0x2c7056,_0x51c398,_0xa73205,_0x57f556,_0x45e4c7,_0x5ed867,_0x51534f):this[_0x444a2e(0x299)](_0x2e104f,_0x3d238b,_0x2fc47a,_0x2c7056,_0x57bd41?_0x51c398:_0xa73205,_0x57bd41,_0x57f556,_0x45e4c7,_0x5ed867,_0x51534f);}}}return{'preRedos':[],'redos':_0x57f556,'preUndos':_0x45e4c7,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x5d2578(0x21b)](_0x5ca799,_0x31446e,_0x3d753a,_0x40a906,_0x438c5c){const _0x35da92=_0x5d2578;if(!_0x31446e||!_0x3d753a)return null;let {shapeId:_0xe3ba1,cxnIndex:_0x16a661}=_0x5ca799,_0x5ef66f=this['_sheetsShapeService']['getShapeModel'](_0x31446e,_0x3d753a,_0xe3ba1);if(!_0x5ef66f)return null;let _0x589080=this['_drawingManagerService'][_0x35da92(0x1f4)]({'unitId':_0x31446e,'subUnitId':_0x3d753a,'drawingId':_0xe3ba1});if(!(_0x589080!=null&&_0x589080[_0x35da92(0x257)]))return null;let {left:_0x350791=0x0,top:_0x4f262f=0x0,width:_0x3793d3=0x0,height:_0x5256fc=0x0,flipX:_0x508652=!0x1,flipY:_0xa8f8dd=!0x1,angle:_0x1be432}=_0x589080[_0x35da92(0x257)];if(_0x438c5c&&_0x40a906===_0xe3ba1){var _0x24249b,_0x525554,_0x47bfd6,_0x688fc5,_0x37b77f,_0x446d32,_0x1f755b;_0x350791=(_0x24249b=_0x438c5c[_0x35da92(0x219)])==null?_0x350791:_0x24249b,_0x4f262f=(_0x525554=_0x438c5c[_0x35da92(0x28c)])==null?_0x4f262f:_0x525554,_0x3793d3=(_0x47bfd6=_0x438c5c['width'])==null?_0x3793d3:_0x47bfd6,_0x5256fc=(_0x688fc5=_0x438c5c[_0x35da92(0x273)])==null?_0x5256fc:_0x688fc5,_0x508652=(_0x37b77f=_0x438c5c[_0x35da92(0x20e)])==null?_0x508652:_0x37b77f,_0xa8f8dd=(_0x446d32=_0x438c5c[_0x35da92(0x251)])==null?_0xa8f8dd:_0x446d32,_0x1be432=(_0x1f755b=_0x438c5c[_0x35da92(0x242)])==null?_0x1be432:_0x1f755b;}_0x5ef66f['updateContext']({'width':_0x3793d3,'height':_0x5256fc});let _0x263ba5=_0x5ef66f[_0x35da92(0x2a1)]()[_0x35da92(0x22a)](_0x38d7f4=>_0x38d7f4[_0x35da92(0x26b)]===_0x16a661);if(!_0x263ba5)return null;let _0x2beaac=_0x508652?_0x3793d3-_0x263ba5['x']:_0x263ba5['x'],_0x3ba08e=_0xa8f8dd?_0x5256fc-_0x263ba5['y']:_0x263ba5['y'];if(_0x1be432!==0x0&&_0x1be432!=null){let _0x180753=_0x1be432*Math['PI']/0xb4,_0x33a28d=Math[_0x35da92(0x255)](_0x180753),_0x17152f=Math[_0x35da92(0x220)](_0x180753),_0x5be043=_0x3793d3/0x2,_0x2c4888=_0x5256fc/0x2,_0x2e3315=_0x2beaac-_0x5be043,_0x5df1b7=_0x3ba08e-_0x2c4888;_0x2beaac=_0x5be043+_0x2e3315*_0x33a28d-_0x5df1b7*_0x17152f,_0x3ba08e=_0x2c4888+_0x2e3315*_0x17152f+_0x5df1b7*_0x33a28d;}_0x2beaac+=_0x350791,_0x3ba08e+=_0x4f262f;let _0x1001f0=_0x263ba5[_0x35da92(0x284)]/0xea60;_0x508652&&(_0x1001f0=0xb4-_0x1001f0),_0xa8f8dd&&(_0x1001f0=-_0x1001f0),_0x1001f0+=_0x1be432||0x0,_0x1001f0=(_0x1001f0%0x168+0x168)%0x168;let _0x2136a3=(0x0,_0x22ee1e[_0x35da92(0x1fc)])({'left':_0x350791,'top':_0x4f262f,'width':_0x3793d3,'height':_0x5256fc},_0x1be432||0x0);return{'point':{'x':_0x2beaac,'y':_0x3ba08e},'angle':_0x1001f0,'bounds':_0x2136a3};}['_addLineRerouteUpdates'](_0x58be20,_0x24ab2d,_0x53ebf5,_0x11548d,_0x5f00d1,_0x8454d6,_0x331db5,_0x433580,_0x589af8,_0x591206){const _0x12468f=_0x5d2578;let _0x1e8733=this['_sheetSkeletonService'][_0x12468f(0x290)](_0x58be20,_0x24ab2d);if(!_0x1e8733)return;let _0x5da572=_0x11548d['getShapeRelation'](),_0x137656=_0x11548d['getAdjustNames'](),_0x2dc1ea={},_0x174a48={};_0x137656['forEach'](_0x174e79=>{const _0x5eebe8=_0x12468f;let _0x573ec7=_0x11548d[_0x5eebe8(0x239)](_0x174e79);_0x174a48[_0x174e79]=_0x573ec7==null?0x0:_0x573ec7;});let _0x202fdd=this['_getConnectPointInfo'](_0x5f00d1,_0x58be20,_0x24ab2d,_0x589af8,_0x591206),_0x1bf7ee=this[_0x12468f(0x21b)](_0x8454d6,_0x58be20,_0x24ab2d,_0x589af8,_0x591206);if(_0x202fdd&&_0x1bf7ee){let _0x50e722=_0x11548d['getShapeType'](),_0x3c3dfd=(0x0,_0x22ee1e['routeConnectorLineShape'])(_0x202fdd,_0x1bf7ee,_0x50e722),_0x3eedd4=_0x50e722;if(_0x3c3dfd){let _0x4c9425=(0x0,_0x22ee1e[_0x12468f(0x2a5)])(_0x3c3dfd,_0x11548d[_0x12468f(0x224)]()),_0x639da1=this[_0x12468f(0x286)][_0x12468f(0x2b7)](_0x58be20,_0x24ab2d);if(_0x639da1&&_0x639da1[_0x53ebf5]){let _0x13ea69=_0x639da1[_0x53ebf5];_0x3eedd4=_0x4c9425['lineType'];for(let [_0x31a881,_0x4a6ea0]of Object[_0x12468f(0x278)](_0x4c9425['adjustValues']))_0x2dc1ea[_0x31a881]=_0x4a6ea0;let _0x1f1ad6={..._0x13ea69['transform'],'width':_0x4c9425['worldRect']['width'],'height':_0x4c9425[_0x12468f(0x280)][_0x12468f(0x273)],'left':_0x4c9425[_0x12468f(0x280)][_0x12468f(0x219)],'top':_0x4c9425[_0x12468f(0x280)][_0x12468f(0x28c)],'flipX':_0x4c9425['worldRect'][_0x12468f(0x20e)],'flipY':_0x4c9425[_0x12468f(0x280)][_0x12468f(0x251)],'angle':_0x4c9425[_0x12468f(0x1f5)]},_0x2dd635=(0x0,_0x212172[_0x12468f(0x1f8)])(_0x1f1ad6,_0x1e8733),_0x4eb001=(0x0,_0x212172['transformToAxisAlignPosition'])(_0x1f1ad6,_0x1e8733),_0x3627ba={'unitId':_0x58be20,'subUnitId':_0x24ab2d,'drawingType':_0x7a6d65[_0x12468f(0x210)][_0x12468f(0x254)],'drawingId':_0x53ebf5,'transform':_0x1f1ad6,'sheetTransform':_0x2dd635,'axisAlignSheetTransform':_0x4eb001},{unitId:_0x28f3a6,subUnitId:_0x1c2bdb,undo:_0x4297cf,redo:_0x413e66,objects:_0x453e9b}=this['_drawingManagerService']['getBatchUpdateOp']([_0x3627ba]);_0x331db5[_0x12468f(0x2a6)]({'id':_0x212172[_0x12468f(0x250)]['id'],'params':{'unitId':_0x28f3a6,'subUnitId':_0x1c2bdb,'op':_0x413e66,'objects':_0x453e9b,'type':_0x212172[_0x12468f(0x292)]['UPDATE']}}),_0x433580[_0x12468f(0x2a6)]({'id':_0x212172[_0x12468f(0x250)]['id'],'params':{'unitId':_0x28f3a6,'subUnitId':_0x1c2bdb,'op':_0x4297cf,'objects':_0x453e9b,'type':_0x212172[_0x12468f(0x292)]['UPDATE']}});}_0x11548d['removeLinePoints']();}_0x331db5[_0x12468f(0x2a6)]({'id':_0x165383['id'],'params':{'unitId':_0x58be20,'subUnitId':_0x24ab2d,'shapeId':_0x53ebf5,'shapeType':_0x3eedd4,'shapeData':{'adjustValues':_0x2dc1ea,'relation':_0x5da572}}}),_0x433580[_0x12468f(0x2a6)]({'id':_0x165383['id'],'params':{'unitId':_0x58be20,'subUnitId':_0x24ab2d,'shapeId':_0x53ebf5,'shapeType':_0x50e722,'shapeData':{'adjustValues':_0x174a48,'relation':_0x5da572}}});}}[_0x5d2578(0x299)](_0x2bdc0f,_0x3fa50e,_0x16e2eb,_0x20e44d,_0x99e830,_0x40d5a8,_0x53ebdc,_0x5c200c,_0x5801a5,_0x1cfbe4){const _0x2cf9fa=_0x5d2578;var _0x664e25;if(!_0x99e830)return;let _0x1d2d0c=this['_sheetSkeletonService'][_0x2cf9fa(0x290)](_0x2bdc0f,_0x3fa50e);if(!_0x1d2d0c)return;let _0x56bab1=(_0x664e25=this[_0x2cf9fa(0x286)][_0x2cf9fa(0x1f4)]({'unitId':_0x2bdc0f,'subUnitId':_0x3fa50e,'drawingId':_0x5801a5}))==null?void 0x0:_0x664e25[_0x2cf9fa(0x257)];if(!_0x56bab1)return;let _0x3f62c9=_0x56bab1[_0x2cf9fa(0x219)]!==_0x1cfbe4[_0x2cf9fa(0x219)]||_0x56bab1['top']!==_0x1cfbe4[_0x2cf9fa(0x28c)],_0x2391e4=_0x56bab1['width']!==_0x1cfbe4[_0x2cf9fa(0x261)]||_0x56bab1['height']!==_0x1cfbe4['height'],_0x241799=_0x56bab1[_0x2cf9fa(0x20e)]!==_0x1cfbe4[_0x2cf9fa(0x20e)]||_0x56bab1[_0x2cf9fa(0x251)]!==_0x1cfbe4[_0x2cf9fa(0x251)],_0x1131ab=_0x56bab1['angle']!==_0x1cfbe4['angle'];if(_0x3f62c9&&!_0x2391e4&&!_0x241799&&!_0x1131ab){var _0x263851,_0x3be41f,_0x4da62a,_0x190297;let _0x41d9bf=((_0x263851=_0x1cfbe4[_0x2cf9fa(0x219)])==null?0x0:_0x263851)-((_0x3be41f=_0x56bab1['left'])==null?0x0:_0x3be41f),_0x3ad9f0=((_0x4da62a=_0x1cfbe4[_0x2cf9fa(0x28c)])==null?0x0:_0x4da62a)-((_0x190297=_0x56bab1['top'])==null?0x0:_0x190297),_0x23e9a8=this['_drawingManagerService'][_0x2cf9fa(0x2b7)](_0x2bdc0f,_0x3fa50e);if(_0x23e9a8&&_0x23e9a8[_0x16e2eb]){var _0x3526da,_0x53e9c9,_0x4de94e,_0x2d4d13;let _0x33c78d=_0x23e9a8[_0x16e2eb],_0x3a2604={..._0x33c78d[_0x2cf9fa(0x257)],'left':((_0x3526da=(_0x53e9c9=_0x33c78d[_0x2cf9fa(0x257)])==null?void 0x0:_0x53e9c9['left'])==null?0x0:_0x3526da)+_0x41d9bf,'top':((_0x4de94e=(_0x2d4d13=_0x33c78d[_0x2cf9fa(0x257)])==null?void 0x0:_0x2d4d13[_0x2cf9fa(0x28c)])==null?0x0:_0x4de94e)+_0x3ad9f0},_0x4301b4=(0x0,_0x212172[_0x2cf9fa(0x1f8)])(_0x3a2604,_0x1d2d0c),_0x26e34e=(0x0,_0x212172['transformToAxisAlignPosition'])(_0x3a2604,_0x1d2d0c),_0x320bab={'unitId':_0x2bdc0f,'subUnitId':_0x3fa50e,'drawingType':_0x7a6d65['DrawingTypeEnum'][_0x2cf9fa(0x254)],'drawingId':_0x16e2eb,'transform':_0x3a2604,'sheetTransform':_0x4301b4,'axisAlignSheetTransform':_0x26e34e},{unitId:_0x2da8dd,subUnitId:_0x40801f,undo:_0xc4b9f9,redo:_0x1ba1d0,objects:_0xd60813}=this['_drawingManagerService'][_0x2cf9fa(0x22e)]([_0x320bab]);_0x53ebdc[_0x2cf9fa(0x2a6)]({'id':_0x212172[_0x2cf9fa(0x250)]['id'],'params':{'unitId':_0x2da8dd,'subUnitId':_0x40801f,'op':_0x1ba1d0,'objects':_0xd60813,'type':_0x212172[_0x2cf9fa(0x292)]['UPDATE']}}),_0x5c200c[_0x2cf9fa(0x2a6)]({'id':_0x212172[_0x2cf9fa(0x250)]['id'],'params':{'unitId':_0x2da8dd,'subUnitId':_0x40801f,'op':_0xc4b9f9,'objects':_0xd60813,'type':_0x212172[_0x2cf9fa(0x292)][_0x2cf9fa(0x203)]}});}}else{let _0x2063b5=_0x20e44d[_0x2cf9fa(0x246)](),_0xa72f94=_0x20e44d[_0x2cf9fa(0x24d)]();this['_addLineRerouteUpdates'](_0x2bdc0f,_0x3fa50e,_0x16e2eb,_0x20e44d,_0x2063b5,_0xa72f94,_0x53ebdc,_0x5c200c,_0x5801a5,_0x1cfbe4);}}};_0x5f06e5=_0x4d8c67([_0x5446a5(0x0,_0x7a6d65[_0x5d2578(0x1f6)]),_0x5446a5(0x1,(0x0,_0x7a6d65[_0x5d2578(0x28f)])(_0x278c3b['SheetInterceptorService'])),_0x5446a5(0x2,(0x0,_0x7a6d65[_0x5d2578(0x28f)])(_0x278c3b['SheetSkeletonService'])),_0x5446a5(0x3,(0x0,_0x7a6d65[_0x5d2578(0x28f)])(_0x27a1ba)),_0x5446a5(0x4,(0x0,_0x7a6d65[_0x5d2578(0x28f)])(_0x4d9ae3[_0x5d2578(0x1fe)]))],_0x5f06e5);let _0x111f0e=class extends _0x7a6d65[_0x5d2578(0x253)]{constructor(_0x5a497e=_0xc604f,_0x1a1717,_0x2ee044,_0x26d8f7){const _0x3bb023=_0x5d2578;super(),this['_config']=_0x5a497e,this[_0x3bb023(0x20f)]=_0x1a1717,this[_0x3bb023(0x264)]=_0x2ee044,this[_0x3bb023(0x28e)]=_0x26d8f7;let {..._0x346bbb}=(0x0,_0x7a6d65[_0x3bb023(0x293)])({},_0xc604f,this[_0x3bb023(0x247)]);this[_0x3bb023(0x28e)][_0x3bb023(0x1f1)](_0x43772f,_0x346bbb);}[_0x5d2578(0x29a)](){const _0x14b41f=_0x5d2578;let _0x1166f1=this[_0x14b41f(0x20f)];[[_0x4ba18f],[_0x27a1ba],[_0x5f06e5]][_0x14b41f(0x1fb)](_0x184821=>_0x1166f1['add'](_0x184821)),(0x0,_0x7a6d65[_0x14b41f(0x208)])(_0x1166f1,[[_0x27a1ba],[_0x5f06e5]]);}};_0x3898df(_0x111f0e,'type',_0x7a6d65[_0x5d2578(0x269)]['UNIVER_SHEET']),_0x3898df(_0x111f0e,'pluginName',_0x5d2578(0x285)),_0x3898df(_0x111f0e,_0x5d2578(0x287),_0x483df6),_0x3898df(_0x111f0e,_0x5d2578(0x2b4),_0x3a3596),_0x111f0e=_0x4d8c67([(0x0,_0x7a6d65[_0x5d2578(0x2a8)])(_0x358c63[_0x5d2578(0x2b1)]),_0x5446a5(0x1,(0x0,_0x7a6d65[_0x5d2578(0x28f)])(_0x7a6d65[_0x5d2578(0x265)])),_0x5446a5(0x2,_0x7a6d65['ICommandService']),_0x5446a5(0x3,_0x7a6d65['IConfigService'])],_0x111f0e),_0x6e288a[_0x5d2578(0x21c)]=0xc8,_0x6e288a[_0x5d2578(0x2a4)]=0xc8,_0x6e288a['InsertShapeCommand']=_0x460413,_0x6e288a['InsertSheetsShapeMutation']=_0x3c212c,_0x6e288a[_0x5d2578(0x294)]=_0x1717b7,_0x6e288a[_0x5d2578(0x295)]=_0x2dc8df,_0x6e288a['SetSheetsShapeRotateCommand']=_0x1a7bbe,_0x6e288a[_0x5d2578(0x205)]=_0x596b89,Object['defineProperty'](_0x6e288a,'SheetsShapeService',{'enumerable':!0x0,'get':function(){return _0x27a1ba;}}),_0x6e288a[_0x5d2578(0x200)]=_0x20707f,Object[_0x5d2578(0x24e)](_0x6e288a,_0x5d2578(0x23d),{'enumerable':!0x0,'get':function(){return _0x111f0e;}}),_0x6e288a['UpdateConnectorRelationCommand']=_0x55fbf6,_0x6e288a[_0x5d2578(0x2ac)]=_0x7289ab,_0x6e288a[_0x5d2578(0x22c)]=_0x165383,_0x6e288a[_0x5d2578(0x279)]=_0x40c761,_0x6e288a['UpdateSheetsShapeTypeMutation']=_0x2c7cbd;}));
1
+ (function(_0x10b5ab,_0x2854e8){const _0x4e9b62=_0x6f81,_0x14b6c9=_0x10b5ab();while(!![]){try{const _0x4847d1=-parseInt(_0x4e9b62(0x1aa))/0x1*(-parseInt(_0x4e9b62(0x1cf))/0x2)+parseInt(_0x4e9b62(0xfd))/0x3+-parseInt(_0x4e9b62(0x18b))/0x4*(-parseInt(_0x4e9b62(0x197))/0x5)+parseInt(_0x4e9b62(0x131))/0x6+parseInt(_0x4e9b62(0x154))/0x7+-parseInt(_0x4e9b62(0x1cb))/0x8*(-parseInt(_0x4e9b62(0x19a))/0x9)+-parseInt(_0x4e9b62(0x1b5))/0xa;if(_0x4847d1===_0x2854e8)break;else _0x14b6c9['push'](_0x14b6c9['shift']());}catch(_0xfd12a3){_0x14b6c9['push'](_0x14b6c9['shift']());}}}(_0x24b8,0xaed32),function(_0x7a53b7,_0x71d828){const _0xf63bdb=_0x6f81;typeof exports==_0xf63bdb(0x179)&&typeof module<'u'?_0x71d828(exports,require(`@univerjs-pro/engine-shape`),require(`@univerjs/core`),require(`@univerjs/sheets`),require(`@univerjs/sheets-drawing`),require(`@univerjs-pro/license`),require(`@univerjs/drawing`)):typeof define=='function'&&define[_0xf63bdb(0x1d1)]?define([_0xf63bdb(0x1a2),'@univerjs-pro/engine-shape',_0xf63bdb(0x175),'@univerjs/sheets','@univerjs/sheets-drawing','@univerjs-pro/license',_0xf63bdb(0xfb)],_0x71d828):(_0x7a53b7=typeof globalThis<'u'?globalThis:_0x7a53b7||self,_0x71d828(_0x7a53b7[_0xf63bdb(0x1bf)]={},_0x7a53b7['UniverProEngineShape'],_0x7a53b7[_0xf63bdb(0x1ca)],_0x7a53b7[_0xf63bdb(0x15c)],_0x7a53b7['UniverSheetsDrawing'],_0x7a53b7[_0xf63bdb(0x141)],_0x7a53b7[_0xf63bdb(0x128)]));}(this,function(_0x39839f,_0x3a29f1,_0x2db6fb,_0x1fd1e2,_0x3e9508,_0x50adf2,_0x267d49){const _0x4fd487=_0x6f81;Object[_0x4fd487(0x17d)](_0x39839f,Symbol[_0x4fd487(0x123)],{'value':_0x4fd487(0x168)});function _0x50ea50(_0x45381a){'@babel/helpers - typeof';const _0x2859cf=_0x4fd487;return _0x50ea50=typeof Symbol==_0x2859cf(0x192)&&typeof Symbol[_0x2859cf(0x11b)]==_0x2859cf(0x137)?function(_0x3c114d){return typeof _0x3c114d;}:function(_0x38a81b){const _0xdf37f4=_0x2859cf;return _0x38a81b&&typeof Symbol==_0xdf37f4(0x192)&&_0x38a81b[_0xdf37f4(0x1a8)]===Symbol&&_0x38a81b!==Symbol[_0xdf37f4(0x1c3)]?_0xdf37f4(0x137):typeof _0x38a81b;},_0x50ea50(_0x45381a);}function _0x26e765(_0x236463,_0x459a2d){const _0x426957=_0x4fd487;if(_0x50ea50(_0x236463)!=_0x426957(0x179)||!_0x236463)return _0x236463;var _0x147aeb=_0x236463[Symbol['toPrimitive']];if(_0x147aeb!==void 0x0){var _0xaefd90=_0x147aeb[_0x426957(0x107)](_0x236463,_0x459a2d||_0x426957(0x120));if(_0x50ea50(_0xaefd90)!=_0x426957(0x179))return _0xaefd90;throw TypeError(_0x426957(0x10c));}return(_0x459a2d===_0x426957(0x1c1)?String:Number)(_0x236463);}function _0x4040ba(_0x52f8f3){const _0x4b8346=_0x4fd487;var _0x276be6=_0x26e765(_0x52f8f3,_0x4b8346(0x1c1));return _0x50ea50(_0x276be6)==_0x4b8346(0x137)?_0x276be6:_0x276be6+'';}function _0x597d02(_0x573115,_0x2fd5cf,_0x58e0db){const _0x2b058c=_0x4fd487;return(_0x2fd5cf=_0x4040ba(_0x2fd5cf))in _0x573115?Object[_0x2b058c(0x17d)](_0x573115,_0x2fd5cf,{'value':_0x58e0db,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x573115[_0x2fd5cf]=_0x58e0db,_0x573115;}var _0x252752=class extends _0x2db6fb[_0x4fd487(0x133)]{constructor(){const _0x3fbf30=_0x4fd487;super(),_0x597d02(this,_0x3fbf30(0xfe),new Map()),_0x597d02(this,'_linesIds',new Set()),_0x597d02(this,_0x3fbf30(0x148),new Set());}[_0x4fd487(0x178)](_0x3c5e16,_0x83ba5b,_0x3c76d7){const _0x59ca3f=_0x4fd487;let _0x5e7a62=new _0x3a29f1[(_0x59ca3f(0x170))](_0x3c5e16,_0x83ba5b,_0x3c76d7);return this[_0x59ca3f(0xfe)][_0x59ca3f(0x115)](_0x83ba5b,_0x5e7a62),(0x0,_0x3a29f1[_0x59ca3f(0x1b2)])(_0x3c5e16)&&this[_0x59ca3f(0x17e)]['add'](_0x83ba5b),_0x5e7a62;}[_0x4fd487(0x151)](_0x2e5052){const _0x3b7f48=_0x4fd487;let _0x26f4a7=[];for(let _0x4b11d2 of this[_0x3b7f48(0x17e)]){let _0x40f7e3=this[_0x3b7f48(0xfe)][_0x3b7f48(0x150)](_0x4b11d2);if(_0x40f7e3){let _0x10595c=_0x40f7e3['getShapeRelation']();if(_0x10595c){var _0x29c55e,_0x1b487f;((_0x29c55e=_0x10595c[_0x3b7f48(0x12f)])==null?void 0x0:_0x29c55e[_0x3b7f48(0x12d)])===_0x2e5052&&_0x26f4a7[_0x3b7f48(0x1b4)]({..._0x10595c[_0x3b7f48(0x12f)],'lineShapeId':_0x4b11d2,'isFrom':!0x0}),((_0x1b487f=_0x10595c['to'])==null?void 0x0:_0x1b487f[_0x3b7f48(0x12d)])===_0x2e5052&&_0x26f4a7['push']({..._0x10595c['to'],'lineShapeId':_0x4b11d2,'isFrom':!0x1});}}}return _0x26f4a7;}[_0x4fd487(0x102)](_0x31baf8){const _0x39439b=_0x4fd487;let _0x19f57b=this[_0x39439b(0xfe)]['get'](_0x31baf8);if(_0x19f57b)return _0x19f57b[_0x39439b(0x146)]();}[_0x4fd487(0x109)](_0x5cc7bb){const _0x2ae89f=_0x4fd487;let _0x572a85=this[_0x2ae89f(0xfe)][_0x2ae89f(0x150)](_0x5cc7bb);if(_0x572a85)return _0x572a85[_0x2ae89f(0x109)]();}['hasShape'](_0x1983c0){const _0x17fc9a=_0x4fd487;return this['_shapes'][_0x17fc9a(0x10b)](_0x1983c0);}[_0x4fd487(0x16a)](_0x44c694){const _0x42d444=_0x4fd487;let _0x4fb243=this['_shapes'][_0x42d444(0x150)](_0x44c694);_0x4fb243&&((0x0,_0x3a29f1[_0x42d444(0x1b2)])(_0x4fb243[_0x42d444(0x109)]())&&this[_0x42d444(0x17e)][_0x42d444(0x122)](_0x44c694),this['_shapes'][_0x42d444(0x122)](_0x44c694));}['toJSON'](){const _0xbc2563=_0x4fd487;let _0x21c382=[];return this[_0xbc2563(0xfe)][_0xbc2563(0x124)](_0x164b3f=>{const _0x13a2af=_0xbc2563;_0x21c382['push'](_0x164b3f[_0x13a2af(0x126)]());}),_0x21c382;}[_0x4fd487(0x1c7)](_0x4914eb){const _0x37577a=_0x4fd487;for(let _0x2c825b of _0x4914eb){let {id:_0x3ad138,shapeType:_0x22788e}=_0x2c825b,_0x133825=this[_0x37577a(0x178)](_0x22788e,_0x3ad138,_0x2c825b['shapeData']);_0x133825&&_0x133825[_0x37577a(0x16c)]()&&this[_0x37577a(0x17e)][_0x37577a(0x190)](_0x3ad138);}}['dispose'](){const _0x410780=_0x4fd487;this[_0x410780(0x13f)]||(this[_0x410780(0xfe)][_0x410780(0x124)](_0x5deed6=>{const _0x464e5b=_0x410780;_0x5deed6[_0x464e5b(0x10f)]();}),this['_shapes']['clear'](),this['_linesIds'][_0x410780(0x19d)](),this[_0x410780(0x148)][_0x410780(0x19d)](),super['dispose']());}};function _0x4f0cb5(_0x3f4f4,_0xb4003c){return function(_0x2fbc4c,_0x28d603){_0xb4003c(_0x2fbc4c,_0x28d603,_0x3f4f4);};}function _0x5054ab(_0x199ee4,_0x5ec6f6,_0x226444,_0x49ed0d){const _0x5a31aa=_0x4fd487;var _0x2f1a61=arguments[_0x5a31aa(0x1cd)],_0x799314=_0x2f1a61<0x3?_0x5ec6f6:_0x49ed0d===null?_0x49ed0d=Object[_0x5a31aa(0x11c)](_0x5ec6f6,_0x226444):_0x49ed0d,_0x30b9b7;if(typeof Reflect==_0x5a31aa(0x179)&&typeof Reflect['decorate']=='function')_0x799314=Reflect[_0x5a31aa(0x13b)](_0x199ee4,_0x5ec6f6,_0x226444,_0x49ed0d);else{for(var _0x3c571a=_0x199ee4['length']-0x1;_0x3c571a>=0x0;_0x3c571a--)(_0x30b9b7=_0x199ee4[_0x3c571a])&&(_0x799314=(_0x2f1a61<0x3?_0x30b9b7(_0x799314):_0x2f1a61>0x3?_0x30b9b7(_0x5ec6f6,_0x226444,_0x799314):_0x30b9b7(_0x5ec6f6,_0x226444))||_0x799314);}return _0x2f1a61>0x3&&_0x799314&&Object[_0x5a31aa(0x17d)](_0x5ec6f6,_0x226444,_0x799314),_0x799314;}let _0x131fc0=class extends _0x2db6fb['Disposable']{constructor(_0x59d2f5){const _0x38e098=_0x4fd487;super(),this[_0x38e098(0x14a)]=_0x59d2f5,_0x597d02(this,_0x38e098(0x105),new Map()),this['_initSnapshot']();}[_0x4fd487(0x18a)](_0x26064b,_0x471c97){const _0x6712d0=_0x4fd487;let _0x389f1c=this[_0x6712d0(0x105)][_0x6712d0(0x150)](_0x26064b);_0x389f1c||(_0x389f1c=new Map(),this[_0x6712d0(0x105)]['set'](_0x26064b,_0x389f1c));let _0x45e2c6=_0x389f1c[_0x6712d0(0x150)](_0x471c97);return _0x45e2c6||(_0x45e2c6=new _0x252752(),_0x389f1c[_0x6712d0(0x115)](_0x471c97,_0x45e2c6)),_0x45e2c6;}[_0x4fd487(0x1c0)](_0x1903ee,_0x4c2302,_0x39275a,_0x2dff2a,_0x461265){const _0x35f58c=_0x4fd487;this[_0x35f58c(0x18a)](_0x1903ee,_0x4c2302)[_0x35f58c(0x178)](_0x39275a,_0x2dff2a,_0x461265);}[_0x4fd487(0x16a)](_0x4b84ed,_0x227611,_0x242f39){const _0x4044ae=_0x4fd487;this[_0x4044ae(0x18a)](_0x4b84ed,_0x227611)[_0x4044ae(0x16a)](_0x242f39);}['getBasicShapeType'](_0x4caae1,_0x323915,_0xa7b35c){const _0x3255ca=_0x4fd487;return this[_0x3255ca(0x18a)](_0x4caae1,_0x323915)[_0x3255ca(0x109)](_0xa7b35c);}[_0x4fd487(0x109)](_0x6e0af3,_0x54c6bf,_0x55ada5){const _0x53d260=_0x4fd487;return this[_0x53d260(0x18a)](_0x6e0af3,_0x54c6bf)['getShapeType'](_0x55ada5);}[_0x4fd487(0x11e)](_0x302585,_0x42841a,_0x4e95f2){const _0x32b380=_0x4fd487;return this[_0x32b380(0x18a)](_0x302585,_0x42841a)['hasShape'](_0x4e95f2);}[_0x4fd487(0x187)](_0x280ce2,_0x6cd18e,_0x272899){const _0x50c13c=_0x4fd487;return this[_0x50c13c(0x18a)](_0x280ce2,_0x6cd18e)['getShapeType'](_0x272899);}[_0x4fd487(0x1bb)](_0x440f31,_0xcef658,_0x26e685){const _0x48c22e=_0x4fd487;let _0x3c27ae=this[_0x48c22e(0x18a)](_0x440f31,_0xcef658);if(!_0x3c27ae[_0x48c22e(0x109)](_0x26e685))return;let _0x579956=_0x3c27ae['_shapes'][_0x48c22e(0x150)](_0x26e685);if(_0x579956)return _0x579956[_0x48c22e(0x11d)]();}[_0x4fd487(0x17b)](_0x42817f,_0x335e03,_0x5662b9){const _0x563a34=_0x4fd487;return this[_0x563a34(0x18a)](_0x42817f,_0x335e03)[_0x563a34(0xfe)][_0x563a34(0x150)](_0x5662b9);}[_0x4fd487(0x151)](_0xc12b58,_0x372a9c,_0x438437){const _0xb41fdf=_0x4fd487;return this[_0xb41fdf(0x18a)](_0xc12b58,_0x372a9c)['getBasicShapeRelation'](_0x438437);}['getLineShapeRelation'](_0x287ed5,_0x5c1570,_0x1c2784){const _0x453c12=_0x4fd487;let _0x2575e5=this['_ensureShapeModelManager'](_0x287ed5,_0x5c1570)[_0x453c12(0xfe)]['get'](_0x1c2784);if(_0x2575e5)return _0x2575e5[_0x453c12(0x146)]();}['setShapeType'](){}[_0x4fd487(0x117)](_0x19cb3e){const _0x597e48=_0x4fd487;let _0x5efd28={},_0x303473=this[_0x597e48(0x105)][_0x597e48(0x150)](_0x19cb3e);return _0x303473&&_0x303473[_0x597e48(0x124)]((_0x27a512,_0x5919d5)=>{const _0x7854e6=_0x597e48;let _0x45789f=_0x27a512[_0x7854e6(0x126)]();_0x45789f[_0x7854e6(0x1cd)]>0x0&&(_0x5efd28[_0x5919d5]=_0x45789f);}),JSON[_0x597e48(0x1c4)](_0x5efd28);}['_deserializeShapeForUnit'](_0x54ee22,_0x2eb2c0){const _0x174cf9=_0x4fd487;Object[_0x174cf9(0x158)](_0x2eb2c0)[_0x174cf9(0x124)](_0x58f25a=>{const _0x7eb8af=_0x174cf9;this['_ensureShapeModelManager'](_0x54ee22,_0x58f25a)[_0x7eb8af(0x1c7)](_0x2eb2c0[_0x58f25a]);});}[_0x4fd487(0x126)](){const _0x403bed=_0x4fd487;let _0x37389d={};return this[_0x403bed(0x105)]['forEach']((_0x48fc86,_0x5cf7b0)=>{_0x37389d[_0x5cf7b0]={},_0x48fc86['forEach']((_0x112d71,_0x48f8aa)=>{const _0x43b8b4=_0x6f81;_0x37389d[_0x5cf7b0][_0x48f8aa]=_0x112d71[_0x43b8b4(0x126)]();});}),_0x37389d;}['fromJSON'](_0x1daf4a){const _0x592a76=_0x4fd487;Object[_0x592a76(0x158)](_0x1daf4a)[_0x592a76(0x124)](_0x379377=>{const _0x5b9fe1=_0x592a76;let _0x4bc69a=_0x1daf4a[_0x379377];Object[_0x5b9fe1(0x158)](_0x4bc69a)[_0x5b9fe1(0x124)](_0x50cba8=>{const _0x11ab19=_0x5b9fe1;this[_0x11ab19(0x18a)](_0x379377,_0x50cba8)[_0x11ab19(0x1c7)](_0x4bc69a[_0x50cba8]);});});}['_initSnapshot'](){const _0x253951=_0x4fd487;this['_resourcesManagerService'][_0x253951(0x149)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x2db6fb[_0x253951(0x119)][_0x253951(0x188)]],'toJson':_0x33cf6a=>this[_0x253951(0x117)](_0x33cf6a),'parseJson':_0x21a29c=>JSON[_0x253951(0x166)](_0x21a29c),'onLoad':(_0x22bf52,_0x35d3fb)=>{this['_deserializeShapeForUnit'](_0x22bf52,_0x35d3fb);},'onUnLoad':_0x4a6e15=>{const _0x347ccd=_0x253951;let _0x189510=this[_0x347ccd(0x105)][_0x347ccd(0x150)](_0x4a6e15);_0x189510&&(_0x189510['forEach'](_0x420c16=>{const _0x79086e=_0x347ccd;_0x420c16[_0x79086e(0x10f)]();}),this[_0x347ccd(0x105)]['delete'](_0x4a6e15));}});}[_0x4fd487(0x10f)](){const _0x5ea44c=_0x4fd487;this[_0x5ea44c(0x105)]['forEach'](_0x4c9413=>{_0x4c9413['forEach'](_0x13f81c=>{const _0x46b796=_0x6f81;_0x13f81c[_0x46b796(0x10f)]();});});}};_0x131fc0=_0x5054ab([_0x4f0cb5(0x0,_0x2db6fb[_0x4fd487(0x1b3)])],_0x131fc0);let _0x9bfc83={'id':_0x4fd487(0x104),'type':_0x2db6fb[_0x4fd487(0x181)][_0x4fd487(0x1ce)],'handler':(_0x47c4f2,_0x4e5100)=>{const _0x69132f=_0x4fd487;let {unitId:_0x5552f3,subUnitId:_0x33c2d8,shapeType:_0x338f81,shapeId:_0x154311,shapeData:_0x4bfa8f}=_0x4e5100;return _0x47c4f2[_0x69132f(0x150)](_0x131fc0)[_0x69132f(0x1c0)](_0x5552f3,_0x33c2d8,_0x338f81,_0x154311,_0x4bfa8f),!0x0;}},_0x1d2aa9={'id':_0x4fd487(0x164),'type':_0x2db6fb[_0x4fd487(0x181)]['MUTATION'],'handler':(_0x918b1e,_0x91f00b)=>{const _0x570b92=_0x4fd487;let {unitId:_0x56aaeb,subUnitId:_0x174618,shapeId:_0x4986ce}=_0x91f00b;return _0x918b1e[_0x570b92(0x150)](_0x131fc0)[_0x570b92(0x16a)](_0x56aaeb,_0x174618,_0x4986ce),!0x0;}},_0x7cf846={'type':_0x2db6fb[_0x4fd487(0x181)][_0x4fd487(0x10d)],'id':_0x4fd487(0x1c6),'handler':(_0x9b4427,_0x165029)=>{const _0x51e68d=_0x4fd487;var _0x25c2cf,_0x35405a;let _0x2f2f0b=(0x0,_0x1fd1e2[_0x51e68d(0x129)])(_0x9b4427[_0x51e68d(0x150)](_0x2db6fb[_0x51e68d(0x12b)]),_0x165029);if(!_0x2f2f0b)return!0x1;let _0x93cb3=_0x9b4427['get'](_0x1fd1e2[_0x51e68d(0x1ad)]),{unitId:_0x3b6dbd,subUnitId:_0xc2b2fc}=_0x2f2f0b,_0x2d9537=_0x93cb3[_0x51e68d(0x185)](_0x3b6dbd,_0xc2b2fc);if(!_0x2d9537)return!0x1;let _0x49afb1=_0x9b4427['get'](_0x2db6fb['ICommandService']),_0x28e6ed=_0x9b4427[_0x51e68d(0x150)](_0x2db6fb[_0x51e68d(0x180)]),_0x38a59d=_0x9b4427[_0x51e68d(0x150)](_0x1fd1e2[_0x51e68d(0x14d)]),_0x93556=_0x9b4427['get'](_0x3e9508[_0x51e68d(0x114)]),{shapeType:_0x1de10c,shapeData:_0x62b41b}=_0x165029,_0x257604=_0x165029[_0x51e68d(0x12d)]||(0x0,_0x2db6fb[_0x51e68d(0x1a9)])(),_0x49d055={'unitId':_0x3b6dbd,'subUnitId':_0xc2b2fc,'shapeId':_0x257604,'shapeType':_0x1de10c,'shapeData':_0x62b41b},_0x849d1c=_0x165029[_0x51e68d(0x135)]||0xc8,_0x4547=_0x165029[_0x51e68d(0x14b)]||0xc8,_0x3f7219=0x0,_0x510f18=0x0,_0x20d9a0={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x222927={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x165029[_0x51e68d(0x160)]){let {x:_0x3c7a2a,y:_0x45c866}=_0x165029[_0x51e68d(0x160)];_0x3f7219=_0x3c7a2a,_0x510f18=_0x45c866,_0x20d9a0=_0x2d9537['getCellIndexAndOffsetByPosition'](_0x3c7a2a,_0x45c866),_0x222927=_0x2d9537['getCellIndexAndOffsetByPosition'](_0x3c7a2a+_0x849d1c,_0x45c866+_0x4547);}else{if(_0x165029[_0x51e68d(0x17f)]){let {startRow:_0x2b4681,startColumn:_0x39f780}=_0x165029[_0x51e68d(0x17f)];_0x20d9a0={'row':_0x2b4681,'rowOffset':0xa,'column':_0x39f780,'columnOffset':0xa};let _0x26d010=_0x2d9537[_0x51e68d(0x17a)](_0x2b4681,_0x39f780);_0x3f7219=_0x26d010[_0x51e68d(0x132)]+0xa,_0x510f18=_0x26d010[_0x51e68d(0x1bd)]+0xa,_0x222927=_0x2d9537[_0x51e68d(0x196)](_0x3f7219+_0x849d1c,_0x510f18+_0x4547);}}let _0x345dcf={'from':_0x20d9a0,'to':_0x222927},_0x9f4a54={'unitId':_0x3b6dbd,'subUnitId':_0xc2b2fc,'drawingId':_0x257604,'drawingType':_0x2db6fb['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x345dcf,'transform':{'left':_0x3f7219,'top':_0x510f18,'width':_0x849d1c,'height':_0x4547},'data':{'shapeType':_0x1de10c,'shapeData':_0x62b41b},'axisAlignSheetTransform':_0x345dcf,'allowTransform':!0x0};(0x0,_0x3a29f1[_0x51e68d(0x1b2)])(_0x1de10c)&&(_0x9f4a54['data'][_0x51e68d(0x1a0)]=!0x1,_0x9f4a54[_0x51e68d(0x1ab)][_0x51e68d(0x125)]=!0x1,_0x9f4a54[_0x51e68d(0x1ab)][_0x51e68d(0x167)]=!0x1,_0x9f4a54['data']['borderEnabled']=!0x1,_0x9f4a54['transform']['rotateEnabled']=!0x1,_0x9f4a54[_0x51e68d(0x162)][_0x51e68d(0x167)]=!0x1,_0x9f4a54[_0x51e68d(0x162)][_0x51e68d(0x16f)]=!0x1);let {undo:_0x36e106,redo:_0xcd97b0,objects:_0xb33a56}=_0x93556[_0x51e68d(0x174)]([_0x9f4a54]),_0x1ebe45=_0x38a59d['onCommandExecute']({'id':_0x3e9508[_0x51e68d(0x17c)]['id'],'params':{'unitId':_0x3b6dbd,'drawings':[_0x9f4a54]}}),_0x3a6364=[...(_0x25c2cf=_0x1ebe45[_0x51e68d(0x144)])==null?[]:_0x25c2cf,{'id':_0x3e9508['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3b6dbd,'subUnitId':_0xc2b2fc,'op':_0xcd97b0,'objects':_0xb33a56,'type':_0x3e9508[_0x51e68d(0x163)][_0x51e68d(0x18c)]}},{'id':_0x3e9508[_0x51e68d(0x16e)]['id'],'params':[_0x3b6dbd]},..._0x1ebe45[_0x51e68d(0x19c)],{'id':_0x9bfc83['id'],'params':_0x49d055}],_0x34e7cc=[{'id':_0x1d2aa9['id'],'params':{'unitId':_0x3b6dbd,'subUnitId':_0xc2b2fc,'shapeId':_0x257604}},...(_0x35405a=_0x1ebe45[_0x51e68d(0x173)])==null?[]:_0x35405a,{'id':_0x3e9508[_0x51e68d(0x19e)]['id'],'params':{'unitId':_0x3b6dbd,'subUnitId':_0xc2b2fc,'op':_0x36e106,'objects':_0xb33a56,'type':_0x3e9508['DrawingApplyType'][_0x51e68d(0x12c)]}},{'id':_0x3e9508[_0x51e68d(0x16e)]['id'],'params':[_0x3b6dbd]},..._0x1ebe45[_0x51e68d(0x1a5)]];return(0x0,_0x2db6fb['sequenceExecute'])(_0x3a6364,_0x49afb1)?(_0x28e6ed[_0x51e68d(0x1a4)]({'unitID':_0x3b6dbd,'undoMutations':_0x34e7cc,'redoMutations':_0x3a6364}),!0x0):!0x1;}},_0x205fa3={'id':_0x4fd487(0x19f),'type':_0x2db6fb['CommandType'][_0x4fd487(0x1ce)],'handler':(_0x24cccb,_0xb15e5a)=>{const _0x1e48fc=_0x4fd487;let {unitId:_0x1244ba,subUnitId:_0x52fa98,shapeType:_0x2b1961,shapeId:_0x17ebc6,shapeData:_0x49483d}=_0xb15e5a,_0x1747c3=_0x24cccb[_0x1e48fc(0x150)](_0x131fc0)[_0x1e48fc(0x17b)](_0x1244ba,_0x52fa98,_0x17ebc6);return _0x1747c3&&(_0x2b1961!==void 0x0&&_0x1747c3['setShapeType'](_0x2b1961),_0x49483d&&(_0x1747c3==null||_0x1747c3[_0x1e48fc(0x172)](_0x49483d,!0x0))),!0x0;}},_0x3e5803={'type':_0x2db6fb[_0x4fd487(0x181)][_0x4fd487(0x10d)],'id':_0x4fd487(0x153),'handler':(_0x15be63,_0x13b6d2)=>{const _0x3b30de=_0x4fd487;var _0x2e26ae,_0x437a5a;let _0x2c1ce1=(0x0,_0x1fd1e2[_0x3b30de(0x129)])(_0x15be63['get'](_0x2db6fb[_0x3b30de(0x12b)]),_0x13b6d2);if(!_0x2c1ce1)return!0x1;let _0x395e0b=_0x15be63['get'](_0x1fd1e2['SheetSkeletonService']),{unitId:_0x4a77b7,subUnitId:_0x486ddc}=_0x2c1ce1,_0x398588=_0x395e0b['ensureSkeleton'](_0x4a77b7,_0x486ddc);if(!_0x398588)return!0x1;let _0x184960=_0x15be63['get'](_0x131fc0),{shapeId:_0x14a499,shapeType:_0x2ae4b0,shapeData:_0x4c2fca,position:_0x20ea58,width:_0x21c227,height:_0xc3056}=_0x13b6d2,_0x172c64=_0x184960[_0x3b30de(0x17b)](_0x4a77b7,_0x486ddc,_0x14a499);if(!_0x172c64)return!0x1;let _0x19bda1=_0x15be63[_0x3b30de(0x150)](_0x2db6fb[_0x3b30de(0x16b)]),_0xf41c24=_0x15be63['get'](_0x2db6fb['IUndoRedoService']),_0x1468c9=_0x15be63[_0x3b30de(0x150)](_0x1fd1e2[_0x3b30de(0x14d)]),_0x110003=_0x15be63[_0x3b30de(0x150)](_0x3e9508[_0x3b30de(0x114)]),_0x7f83a5={'unitId':_0x4a77b7,'subUnitId':_0x486ddc,'shapeId':_0x14a499,'shapeType':_0x2ae4b0,'shapeData':_0x4c2fca},_0x1a875b=_0x172c64[_0x3b30de(0x109)](),_0x421a04=_0x172c64['getShapeData'](),{x:_0x36a667,y:_0x2c9ec1}=_0x20ea58,_0x7f354b={'from':_0x398588[_0x3b30de(0x196)](_0x36a667,_0x2c9ec1),'to':_0x398588['getCellIndexAndOffsetByPosition'](_0x36a667+_0x21c227,_0x2c9ec1+_0xc3056)},_0x4b32c9={'unitId':_0x4a77b7,'subUnitId':_0x486ddc,'drawingId':_0x14a499,'drawingType':_0x2db6fb['DrawingTypeEnum'][_0x3b30de(0x1ac)],'sheetTransform':_0x7f354b,'transform':{'left':_0x36a667,'top':_0x2c9ec1,'width':_0x21c227,'height':_0xc3056},'data':{'shapeType':_0x2ae4b0,'shapeData':_0x4c2fca},'axisAlignSheetTransform':_0x7f354b,'allowTransform':!0x0};(0x0,_0x3a29f1[_0x3b30de(0x1b2)])(_0x2ae4b0)&&(_0x4b32c9['data'][_0x3b30de(0x1a0)]=!0x1,_0x4b32c9[_0x3b30de(0x1ab)][_0x3b30de(0x125)]=!0x1,_0x4b32c9[_0x3b30de(0x1ab)][_0x3b30de(0x167)]=!0x1,_0x4b32c9[_0x3b30de(0x1ab)][_0x3b30de(0x16f)]=!0x1,_0x4b32c9['transform'][_0x3b30de(0x125)]=!0x1,_0x4b32c9['transform'][_0x3b30de(0x167)]=!0x1,_0x4b32c9[_0x3b30de(0x162)][_0x3b30de(0x16f)]=!0x1);let {undo:_0x4fccc3,redo:_0x39a5af,objects:_0x35e1d9}=_0x110003[_0x3b30de(0x19b)]([_0x4b32c9]),_0x346dba=_0x1468c9[_0x3b30de(0x18d)]({'id':_0x3e9508[_0x3b30de(0x189)]['id'],'params':{'unitId':_0x4a77b7,'drawings':[_0x4b32c9]}}),_0x34365d=[...(_0x2e26ae=_0x346dba[_0x3b30de(0x144)])==null?[]:_0x2e26ae,{'id':_0x3e9508['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4a77b7,'subUnitId':_0x486ddc,'op':_0x39a5af,'objects':_0x35e1d9,'type':_0x3e9508[_0x3b30de(0x163)][_0x3b30de(0x193)]}},{'id':_0x3e9508[_0x3b30de(0x16e)]['id'],'params':[_0x4a77b7]},..._0x346dba[_0x3b30de(0x19c)],{'id':_0x205fa3['id'],'params':_0x7f83a5}],_0x5e33fe=[...(_0x437a5a=_0x346dba['preUndos'])==null?[]:_0x437a5a,{'id':_0x3e9508['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4a77b7,'subUnitId':_0x486ddc,'op':_0x4fccc3,'objects':_0x35e1d9,'type':_0x3e9508[_0x3b30de(0x163)]['UPDATE']}},{'id':_0x3e9508[_0x3b30de(0x16e)]['id'],'params':[_0x4a77b7]},..._0x346dba[_0x3b30de(0x1a5)],{'id':_0x205fa3['id'],'params':{'unitId':_0x4a77b7,'subUnitId':_0x486ddc,'shapeType':_0x1a875b,'shapeId':_0x14a499,'shapeData':_0x421a04}}];return(0x0,_0x2db6fb['sequenceExecute'])(_0x34365d,_0x19bda1)?(_0xf41c24[_0x3b30de(0x1a4)]({'unitID':_0x4a77b7,'undoMutations':_0x5e33fe,'redoMutations':_0x34365d}),!0x0):!0x1;}},_0x180a09={'type':_0x2db6fb['CommandType'][_0x4fd487(0x10d)],'id':_0x4fd487(0x194),'handler':(_0x42a246,_0xba7e79)=>{const _0x40de75=_0x4fd487;var _0x4d675e,_0x4f79b9;let _0x2a91de=(0x0,_0x1fd1e2[_0x40de75(0x129)])(_0x42a246[_0x40de75(0x150)](_0x2db6fb[_0x40de75(0x12b)]),_0xba7e79);if(!_0x2a91de)return!0x1;let _0x570a8c=_0x42a246[_0x40de75(0x150)](_0x1fd1e2[_0x40de75(0x1ad)]),{unitId:_0x214308,subUnitId:_0x4976c0}=_0x2a91de,_0x33813a=_0x570a8c['getSkeleton'](_0x214308,_0x4976c0);if(!_0x33813a)return!0x1;let _0x3efd43=_0x42a246[_0x40de75(0x150)](_0x3e9508[_0x40de75(0x114)]),{shapeId:_0x170c54,flipH:_0x764189,flipV:_0x37040d}=_0xba7e79,_0x281e7d=_0x3efd43[_0x40de75(0x1d2)]({'unitId':_0x214308,'subUnitId':_0x4976c0,'drawingId':_0x170c54});if(!_0x281e7d)return!0x1;let _0x9766f3=_0x42a246[_0x40de75(0x150)](_0x131fc0)[_0x40de75(0x17b)](_0x214308,_0x4976c0,_0x170c54);if(!_0x9766f3)return!0x1;let _0x4d9129=_0x42a246['get'](_0x2db6fb[_0x40de75(0x16b)]),_0x448d0f=_0x42a246[_0x40de75(0x150)](_0x2db6fb[_0x40de75(0x180)]),_0x61e5e8=_0x42a246['get'](_0x1fd1e2[_0x40de75(0x14d)]),_0x388029={..._0x281e7d['transform']};_0x764189!==void 0x0&&(_0x388029[_0x40de75(0x15d)]=!_0x388029['flipX']),_0x37040d!==void 0x0&&(_0x388029['flipY']=!_0x388029[_0x40de75(0x155)]);let _0x4eea22=(0x0,_0x3e9508[_0x40de75(0x13c)])(_0x388029,_0x33813a),_0x1257cb=(0x0,_0x3e9508['transformToAxisAlignPosition'])(_0x388029,_0x33813a),_0x278526=_0x9766f3['getShapeType'](),_0x3840a3=_0x9766f3['getShapeData'](),_0x1b3caa={'unitId':_0x214308,'subUnitId':_0x4976c0,'drawingId':_0x170c54,'drawingType':_0x2db6fb[_0x40de75(0x1a3)][_0x40de75(0x1ac)],'sheetTransform':_0x4eea22,'transform':_0x388029,'data':{'shapeType':_0x278526,'shapeData':_0x3840a3},'axisAlignSheetTransform':_0x1257cb,'allowTransform':!0x0},{undo:_0x3fbe4b,redo:_0xdddf50,objects:_0x3ca7c5}=_0x3efd43['getBatchUpdateOp']([_0x1b3caa]),_0x50f8b3=_0x61e5e8[_0x40de75(0x18d)]({'id':_0x3e9508[_0x40de75(0x189)]['id'],'params':{'unitId':_0x214308,'drawings':[_0x1b3caa]}}),_0x10600a=[...(_0x4d675e=_0x50f8b3[_0x40de75(0x144)])==null?[]:_0x4d675e,{'id':_0x3e9508[_0x40de75(0x19e)]['id'],'params':{'unitId':_0x214308,'subUnitId':_0x4976c0,'op':_0xdddf50,'objects':_0x3ca7c5,'type':_0x3e9508[_0x40de75(0x163)][_0x40de75(0x193)]}},{'id':_0x3e9508['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x214308]},..._0x50f8b3['redos']],_0x594223=[...(_0x4f79b9=_0x50f8b3[_0x40de75(0x173)])==null?[]:_0x4f79b9,{'id':_0x3e9508[_0x40de75(0x19e)]['id'],'params':{'unitId':_0x214308,'subUnitId':_0x4976c0,'op':_0x3fbe4b,'objects':_0x3ca7c5,'type':_0x3e9508['DrawingApplyType']['UPDATE']}},{'id':_0x3e9508['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x214308]},..._0x50f8b3['undos']];if((0x0,_0x3a29f1[_0x40de75(0x1b2)])(_0x278526)){let _0xec6aa0=_0x9766f3['getShapeRelation']();if(_0xec6aa0){let _0x256b6d={..._0xec6aa0};_0x256b6d[_0x40de75(0x12f)]=void 0x0,_0x256b6d['to']=void 0x0,_0x10600a[_0x40de75(0x1b4)]({'id':_0x205fa3['id'],'params':{'unitId':_0x214308,'subUnitId':_0x4976c0,'shapeId':_0x170c54,'shapeType':_0x278526,'shapeData':{'relation':_0x256b6d}}}),_0x594223['push']({'id':_0x205fa3['id'],'params':{'unitId':_0x214308,'subUnitId':_0x4976c0,'shapeId':_0x170c54,'shapeType':_0x278526,'shapeData':{'relation':_0xec6aa0}}});}}return(0x0,_0x2db6fb[_0x40de75(0x1ae)])(_0x10600a,_0x4d9129)?(_0x448d0f[_0x40de75(0x1a4)]({'unitID':_0x214308,'undoMutations':_0x594223,'redoMutations':_0x10600a}),!0x0):!0x1;}},_0x23af98={'type':_0x2db6fb[_0x4fd487(0x181)][_0x4fd487(0x10d)],'id':'sheet.command.set-shape-rotate','handler':(_0x2c3b4b,_0x3f7f08)=>{const _0x3a9c43=_0x4fd487;var _0x59f394,_0x2e44d2;let _0x110c71=(0x0,_0x1fd1e2[_0x3a9c43(0x129)])(_0x2c3b4b['get'](_0x2db6fb[_0x3a9c43(0x12b)]),_0x3f7f08);if(!_0x110c71)return!0x1;let _0x286c20=_0x2c3b4b[_0x3a9c43(0x150)](_0x1fd1e2[_0x3a9c43(0x1ad)]),{unitId:_0xe27364,subUnitId:_0x38b953}=_0x110c71,_0x2bc2c5=_0x286c20[_0x3a9c43(0x15f)](_0xe27364,_0x38b953);if(!_0x2bc2c5)return!0x1;let _0x505e61=_0x2c3b4b[_0x3a9c43(0x150)](_0x3e9508[_0x3a9c43(0x114)]),{shapeId:_0x12e8dd,rotate:_0x7457a0}=_0x3f7f08,_0x72c7df=_0x505e61[_0x3a9c43(0x1d2)]({'unitId':_0xe27364,'subUnitId':_0x38b953,'drawingId':_0x12e8dd});if(!_0x72c7df)return!0x1;let _0x38828b=_0x2c3b4b['get'](_0x131fc0)[_0x3a9c43(0x17b)](_0xe27364,_0x38b953,_0x12e8dd);if(!_0x38828b)return!0x1;let _0x512c48=_0x2c3b4b[_0x3a9c43(0x150)](_0x2db6fb[_0x3a9c43(0x16b)]),_0x3147a1=_0x2c3b4b['get'](_0x2db6fb[_0x3a9c43(0x180)]),_0xf6fcb0=_0x2c3b4b['get'](_0x1fd1e2['SheetInterceptorService']),_0x2ad8c1={..._0x72c7df[_0x3a9c43(0x162)]};_0x7457a0!==void 0x0&&(_0x2ad8c1['angle']=(_0x2ad8c1['angle']||0x0)+_0x7457a0);let _0x59659e=(0x0,_0x3e9508['transformToDrawingPosition'])(_0x2ad8c1,_0x2bc2c5),_0x347565=(0x0,_0x3e9508['transformToAxisAlignPosition'])(_0x2ad8c1,_0x2bc2c5),_0x4dc50f=_0x38828b[_0x3a9c43(0x109)](),_0x5b4bf2=_0x38828b[_0x3a9c43(0x11d)](),_0x3c0010={'unitId':_0xe27364,'subUnitId':_0x38b953,'drawingId':_0x12e8dd,'drawingType':_0x2db6fb[_0x3a9c43(0x1a3)][_0x3a9c43(0x1ac)],'sheetTransform':_0x59659e,'transform':_0x2ad8c1,'data':{'shapeType':_0x4dc50f,'shapeData':_0x5b4bf2},'axisAlignSheetTransform':_0x347565,'allowTransform':!0x0},{undo:_0xad9f2e,redo:_0x118591,objects:_0x486564}=_0x505e61[_0x3a9c43(0x19b)]([_0x3c0010]),_0x13560f=_0xf6fcb0['onCommandExecute']({'id':_0x3e9508[_0x3a9c43(0x189)]['id'],'params':{'unitId':_0xe27364,'drawings':[_0x3c0010]}}),_0xae5dcf=[...(_0x59f394=_0x13560f[_0x3a9c43(0x144)])==null?[]:_0x59f394,{'id':_0x3e9508[_0x3a9c43(0x19e)]['id'],'params':{'unitId':_0xe27364,'subUnitId':_0x38b953,'op':_0x118591,'objects':_0x486564,'type':_0x3e9508['DrawingApplyType'][_0x3a9c43(0x193)]}},{'id':_0x3e9508[_0x3a9c43(0x16e)]['id'],'params':[_0xe27364]},..._0x13560f[_0x3a9c43(0x19c)]],_0x2a6faa=[...(_0x2e44d2=_0x13560f['preUndos'])==null?[]:_0x2e44d2,{'id':_0x3e9508[_0x3a9c43(0x19e)]['id'],'params':{'unitId':_0xe27364,'subUnitId':_0x38b953,'op':_0xad9f2e,'objects':_0x486564,'type':_0x3e9508[_0x3a9c43(0x163)][_0x3a9c43(0x193)]}},{'id':_0x3e9508[_0x3a9c43(0x16e)]['id'],'params':[_0xe27364]},..._0x13560f['undos']];return(0x0,_0x2db6fb[_0x3a9c43(0x1ae)])(_0xae5dcf,_0x512c48)?(_0x3147a1[_0x3a9c43(0x1a4)]({'unitID':_0xe27364,'undoMutations':_0x2a6faa,'redoMutations':_0xae5dcf}),!0x0):!0x1;}},_0xa79016={'type':_0x2db6fb['CommandType'][_0x4fd487(0x10d)],'id':_0x4fd487(0x1a1),'handler':(_0x2e003,_0xc89f96)=>{const _0x1eefd5=_0x4fd487;var _0x203602;let _0x3814bf=(0x0,_0x1fd1e2[_0x1eefd5(0x129)])(_0x2e003[_0x1eefd5(0x150)](_0x2db6fb[_0x1eefd5(0x12b)]),_0xc89f96);if(!_0x3814bf)return!0x1;let {unitId:_0x1466b8,subUnitId:_0x1763a0}=_0x3814bf,{shapeId:_0x7478b3}=_0xc89f96,_0x1ed84b=_0x2e003[_0x1eefd5(0x150)](_0x131fc0)['getShapeModel'](_0x1466b8,_0x1763a0,_0x7478b3);if(!_0x1ed84b)return!0x1;let _0x118d06=_0x1ed84b[_0x1eefd5(0x100)](),_0x4459f5=(_0x203602=_0x118d06==null?void 0x0:_0x118d06[_0x1eefd5(0x191)])==null?!0x0:_0x203602,_0xc1caec=!_0x4459f5,_0x3f044b=_0x2e003[_0x1eefd5(0x150)](_0x2db6fb[_0x1eefd5(0x16b)]),_0xc7af2a=_0x2e003[_0x1eefd5(0x150)](_0x2db6fb[_0x1eefd5(0x180)]),_0x324e60={'unitId':_0x1466b8,'subUnitId':_0x1763a0,'shapeId':_0x7478b3,'shapeData':{'shapeText':{'isHorizontal':_0xc1caec}}},_0x1664da={'unitId':_0x1466b8,'subUnitId':_0x1763a0,'shapeId':_0x7478b3,'shapeData':{'shapeText':{'isHorizontal':_0x4459f5}}},_0x1300f=[{'id':_0x205fa3['id'],'params':_0x324e60}],_0x3016ae=[{'id':_0x205fa3['id'],'params':_0x1664da}];return(0x0,_0x2db6fb[_0x1eefd5(0x1ae)])(_0x1300f,_0x3f044b)?(_0xc7af2a[_0x1eefd5(0x1a4)]({'unitID':_0x1466b8,'undoMutations':_0x3016ae,'redoMutations':_0x1300f}),!0x0):!0x1;}},_0x22d9dc={'type':_0x2db6fb['CommandType'][_0x4fd487(0x10d)],'id':'sheet.command.update-connector-relation','handler':(_0x2296f7,_0x5cbbd4)=>{const _0x25b8ec=_0x4fd487;var _0xa1589a,_0x13c2b4,_0x9ea7df,_0xc4df2e;let _0x5a8eb1=(0x0,_0x1fd1e2[_0x25b8ec(0x129)])(_0x2296f7['get'](_0x2db6fb[_0x25b8ec(0x12b)]),_0x5cbbd4);if(!_0x5a8eb1)return!0x1;let _0x3041c1=_0x2296f7[_0x25b8ec(0x150)](_0x1fd1e2[_0x25b8ec(0x1ad)]),{unitId:_0x53e330,subUnitId:_0x5592cf}=_0x5a8eb1,_0xa7566a=_0x3041c1[_0x25b8ec(0x15f)](_0x53e330,_0x5592cf);if(!_0xa7566a)return!0x1;let _0x4d4337=_0x2296f7[_0x25b8ec(0x150)](_0x3e9508['ISheetDrawingService']),{connectorShapeId:_0x46c599,width:_0x4b781f,height:_0xd87bc3,left:_0x48d9c4,top:_0x2366d6,flipX:_0x4a08e7,flipY:_0x493697,rotation:_0x401915,oldAdjustValues:_0x5d3bdd,newAdjustValues:_0x3108ad,oldLineType:_0x403068,newLineType:_0x27a576,oldRelation:_0x15dc14,newRelation:_0x2f4e58}=_0x5cbbd4,_0x313959=_0x4d4337['getDrawingByParam']({'unitId':_0x53e330,'subUnitId':_0x5592cf,'drawingId':_0x46c599});if(!_0x313959)return!0x1;let _0x1f1f0c=_0x2296f7[_0x25b8ec(0x150)](_0x131fc0)[_0x25b8ec(0x17b)](_0x53e330,_0x5592cf,_0x46c599);if(!_0x1f1f0c)return!0x1;let _0x28a7b4=_0x2296f7[_0x25b8ec(0x150)](_0x2db6fb[_0x25b8ec(0x16b)]),_0x5f4f72=_0x2296f7['get'](_0x2db6fb['IUndoRedoService']),_0x1e1a8d=_0x2296f7[_0x25b8ec(0x150)](_0x1fd1e2[_0x25b8ec(0x14d)]),_0x3a0f1d={..._0x313959[_0x25b8ec(0x162)],'width':_0x4b781f,'height':_0xd87bc3,'left':_0x48d9c4,'top':_0x2366d6,'flipX':_0x4a08e7,'flipY':_0x493697,'angle':(_0xa1589a=_0x401915==null?(_0x13c2b4=_0x313959['transform'])==null?void 0x0:_0x13c2b4[_0x25b8ec(0x1b9)]:_0x401915)==null?0x0:_0xa1589a},_0x5a3b81=(0x0,_0x3e9508['transformToDrawingPosition'])(_0x3a0f1d,_0xa7566a),_0x530476=(0x0,_0x3e9508[_0x25b8ec(0x152)])(_0x3a0f1d,_0xa7566a),_0x2320ba=_0x1f1f0c['getShapeType'](),_0x4d4eab=_0x1f1f0c[_0x25b8ec(0x11d)](),_0x1ceb97={'unitId':_0x53e330,'subUnitId':_0x5592cf,'drawingId':_0x46c599,'drawingType':_0x2db6fb[_0x25b8ec(0x1a3)][_0x25b8ec(0x1ac)],'sheetTransform':_0x5a3b81,'transform':_0x3a0f1d,'data':{'shapeType':_0x27a576||_0x403068||_0x2320ba,'shapeData':{..._0x4d4eab,'adjustValues':_0x3108ad||_0x5d3bdd||(_0x4d4eab==null?void 0x0:_0x4d4eab['adjustValues']),'relation':_0x2f4e58||_0x15dc14||(_0x4d4eab==null?void 0x0:_0x4d4eab['relation'])}},'axisAlignSheetTransform':_0x530476,'allowTransform':!0x0},{undo:_0x526fda,redo:_0x57fdc7,objects:_0x41942b}=_0x4d4337[_0x25b8ec(0x19b)]([_0x1ceb97]),_0x2291a6=_0x1e1a8d[_0x25b8ec(0x18d)]({'id':_0x3e9508[_0x25b8ec(0x189)]['id'],'params':{'unitId':_0x53e330,'drawings':[_0x1ceb97]}}),_0xe9adf0=[...(_0x9ea7df=_0x2291a6[_0x25b8ec(0x144)])==null?[]:_0x9ea7df,{'id':_0x3e9508['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x53e330,'subUnitId':_0x5592cf,'op':_0x57fdc7,'objects':_0x41942b,'type':_0x3e9508[_0x25b8ec(0x163)][_0x25b8ec(0x193)]}},{'id':_0x3e9508[_0x25b8ec(0x16e)]['id'],'params':[_0x53e330]},..._0x2291a6[_0x25b8ec(0x19c)],{'id':_0x205fa3['id'],'params':{'unitId':_0x53e330,'subUnitId':_0x5592cf,'shapeId':_0x46c599,'shapeType':_0x27a576,'shapeData':{'adjustValues':_0x3108ad,'relation':_0x2f4e58}}}],_0x3830a5=[...(_0xc4df2e=_0x2291a6[_0x25b8ec(0x173)])==null?[]:_0xc4df2e,{'id':_0x3e9508[_0x25b8ec(0x19e)]['id'],'params':{'unitId':_0x53e330,'subUnitId':_0x5592cf,'op':_0x526fda,'objects':_0x41942b,'type':_0x3e9508[_0x25b8ec(0x163)][_0x25b8ec(0x193)]}},{'id':_0x3e9508[_0x25b8ec(0x16e)]['id'],'params':[_0x53e330]},..._0x2291a6[_0x25b8ec(0x1a5)],{'id':_0x205fa3['id'],'params':{'unitId':_0x53e330,'subUnitId':_0x5592cf,'shapeId':_0x46c599,'shapeType':_0x2320ba,'shapeData':{..._0x4d4eab,'adjustValues':_0x5d3bdd||(_0x4d4eab==null?void 0x0:_0x4d4eab['adjustValues']),'relation':_0x15dc14||(_0x4d4eab==null?void 0x0:_0x4d4eab[_0x25b8ec(0xfc)])}}}];return(0x0,_0x2db6fb[_0x25b8ec(0x1ae)])(_0xe9adf0,_0x28a7b4)?(_0x5f4f72[_0x25b8ec(0x1a4)]({'unitID':_0x53e330,'undoMutations':_0x3830a5,'redoMutations':_0xe9adf0}),!0x0):!0x1;}},_0x5d2618={'type':_0x2db6fb[_0x4fd487(0x181)][_0x4fd487(0x10d)],'id':'sheet.command.update-line-shape-resize','handler':(_0x1f78b8,_0x224221)=>{const _0x4af89c=_0x4fd487;var _0x111da6,_0x4e9e86;let _0x476567=(0x0,_0x1fd1e2[_0x4af89c(0x129)])(_0x1f78b8[_0x4af89c(0x150)](_0x2db6fb['IUniverInstanceService']),_0x224221);if(!_0x476567)return!0x1;let _0x53943e=_0x1f78b8[_0x4af89c(0x150)](_0x1fd1e2[_0x4af89c(0x1ad)]),{unitId:_0x144932,subUnitId:_0x3d0c52}=_0x476567,_0x532c1e=_0x53943e[_0x4af89c(0x15f)](_0x144932,_0x3d0c52);if(!_0x532c1e)return!0x1;let _0x567651=_0x1f78b8[_0x4af89c(0x150)](_0x3e9508[_0x4af89c(0x114)]),{shapeId:_0x53be35,width:_0x335e9e,height:_0x55eb05,left:_0x536283,top:_0x43fad2,flipX:_0x262a63,flipY:_0x2326d1,angle:_0x2db952,oldAdjustValues:_0x483479,newAdjustValues:_0x477c5e,oldLineType:_0xbc2a93,newLineType:_0x5a5a75}=_0x224221,_0x36ecd7=_0x567651[_0x4af89c(0x1d2)]({'unitId':_0x144932,'subUnitId':_0x3d0c52,'drawingId':_0x53be35});if(!_0x36ecd7)return!0x1;let _0x567601=_0x1f78b8[_0x4af89c(0x150)](_0x131fc0)[_0x4af89c(0x17b)](_0x144932,_0x3d0c52,_0x53be35);if(!_0x567601)return!0x1;let _0x3d393b=_0x1f78b8['get'](_0x2db6fb[_0x4af89c(0x16b)]),_0x2bd9b3=_0x1f78b8[_0x4af89c(0x150)](_0x2db6fb['IUndoRedoService']),_0x333ede=_0x1f78b8[_0x4af89c(0x150)](_0x1fd1e2[_0x4af89c(0x14d)]),_0x1d4bbe={..._0x36ecd7['transform'],'width':_0x335e9e,'height':_0x55eb05,'left':_0x536283,'top':_0x43fad2,'flipX':_0x262a63,'flipY':_0x2326d1,'angle':_0x2db952},_0x22c330=(0x0,_0x3e9508[_0x4af89c(0x13c)])(_0x1d4bbe,_0x532c1e),_0x13e3b0=(0x0,_0x3e9508[_0x4af89c(0x152)])(_0x1d4bbe,_0x532c1e),_0x409e8f=_0x567601[_0x4af89c(0x109)](),_0x418311=_0x567601[_0x4af89c(0x11d)](),_0x1ec9ed={'unitId':_0x144932,'subUnitId':_0x3d0c52,'drawingId':_0x53be35,'drawingType':_0x2db6fb[_0x4af89c(0x1a3)][_0x4af89c(0x1ac)],'sheetTransform':_0x22c330,'transform':_0x1d4bbe,'data':{'shapeType':_0x5a5a75||_0xbc2a93||_0x409e8f,'shapeData':{..._0x418311,'adjustValues':_0x477c5e||_0x483479||(_0x418311==null?void 0x0:_0x418311[_0x4af89c(0x121)])}},'axisAlignSheetTransform':_0x13e3b0,'allowTransform':!0x0},{undo:_0x49add4,redo:_0x47fc63,objects:_0x50729c}=_0x567651[_0x4af89c(0x19b)]([_0x1ec9ed]),_0x643294=_0x333ede[_0x4af89c(0x18d)]({'id':_0x3e9508[_0x4af89c(0x189)]['id'],'params':{'unitId':_0x144932,'drawings':[_0x1ec9ed]}}),_0x137ca0=[...(_0x111da6=_0x643294[_0x4af89c(0x144)])==null?[]:_0x111da6,{'id':_0x3e9508['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x144932,'subUnitId':_0x3d0c52,'op':_0x47fc63,'objects':_0x50729c,'type':_0x3e9508[_0x4af89c(0x163)][_0x4af89c(0x193)]}},{'id':_0x3e9508[_0x4af89c(0x16e)]['id'],'params':[_0x144932]},..._0x643294[_0x4af89c(0x19c)],{'id':_0x205fa3['id'],'params':{'unitId':_0x144932,'subUnitId':_0x3d0c52,'shapeId':_0x53be35,'shapeType':_0x5a5a75,'shapeData':{'adjustValues':_0x477c5e}}}],_0x191229=[...(_0x4e9e86=_0x643294[_0x4af89c(0x173)])==null?[]:_0x4e9e86,{'id':_0x3e9508[_0x4af89c(0x19e)]['id'],'params':{'unitId':_0x144932,'subUnitId':_0x3d0c52,'op':_0x49add4,'objects':_0x50729c,'type':_0x3e9508['DrawingApplyType'][_0x4af89c(0x193)]}},{'id':_0x3e9508[_0x4af89c(0x16e)]['id'],'params':[_0x144932]},..._0x643294[_0x4af89c(0x1a5)],{'id':_0x205fa3['id'],'params':{'unitId':_0x144932,'subUnitId':_0x3d0c52,'shapeId':_0x53be35,'shapeType':_0x409e8f,'shapeData':{..._0x418311,'adjustValues':_0x483479||(_0x418311==null?void 0x0:_0x418311[_0x4af89c(0x121)])}}}];return(0x0,_0x2db6fb[_0x4af89c(0x1ae)])(_0x137ca0,_0x3d393b)?(_0x2bd9b3[_0x4af89c(0x1a4)]({'unitID':_0x144932,'undoMutations':_0x191229,'redoMutations':_0x137ca0}),!0x0):!0x1;}},_0x20bed2={'id':_0x4fd487(0x1b1),'type':_0x2db6fb['CommandType'][_0x4fd487(0x1ce)],'handler':(_0x38ecf0,_0x13b0b9)=>{const _0x33da9d=_0x4fd487;let {unitId:_0x1983a7,subUnitId:_0x50acfa,shapeType:_0x5ce45d,shapeId:_0x33a3bf,shapeData:_0x154221}=_0x13b0b9,_0xe7ced1=_0x38ecf0[_0x33da9d(0x150)](_0x131fc0)[_0x33da9d(0x17b)](_0x1983a7,_0x50acfa,_0x33a3bf);return _0xe7ced1&&(_0xe7ced1['setShapeType'](_0x5ce45d),_0x154221&&(_0xe7ced1==null||_0xe7ced1[_0x33da9d(0x172)](_0x154221))),!0x0;}},_0x3b525b={'id':'sheet.command.update-shape-type','type':_0x2db6fb['CommandType'][_0x4fd487(0x10d)],'handler':(_0x359673,_0xaea832)=>{const _0x3ef8a5=_0x4fd487;if(!_0xaea832)return!0x1;let _0x4b7e74=_0x359673['get'](_0x2db6fb['ICommandService']),_0x3f39a1=_0x359673[_0x3ef8a5(0x150)](_0x131fc0),_0x56f5db=_0x359673['get'](_0x2db6fb['IUndoRedoService']),_0x21f2b9=[],_0x41d6c9=[],{unitId:_0x4b0974,subUnitId:_0x2485aa,shapeId:_0x4b53cc,shapeType:_0x35fb57,shapeData:_0x5a8168}=_0xaea832,_0x5ec2b8=_0x3f39a1[_0x3ef8a5(0x17b)](_0x4b0974,_0x2485aa,_0x4b53cc);if(_0x5ec2b8){let _0x6bf0ab=_0x5ec2b8['getShapeType'](),_0x1a2322=Object[_0x3ef8a5(0x140)]({},_0x5ec2b8[_0x3ef8a5(0x11d)]()),_0x24fb7d={'unitId':_0x4b0974,'subUnitId':_0x2485aa,'shapeId':_0x4b53cc,'shapeType':_0x35fb57,'shapeData':_0x5a8168},_0x21bbca={'unitId':_0x4b0974,'subUnitId':_0x2485aa,'shapeId':_0x4b53cc,'shapeType':_0x6bf0ab,'shapeData':_0x1a2322};return _0x21f2b9[_0x3ef8a5(0x1b4)]({'id':_0x20bed2['id'],'params':_0x24fb7d}),_0x41d6c9[_0x3ef8a5(0x1b4)]({'id':_0x20bed2['id'],'params':_0x21bbca}),_0x21f2b9[_0x3ef8a5(0x1a7)](_0x10cfe2=>_0x4b7e74['syncExecuteCommand'](_0x10cfe2['id'],_0x10cfe2[_0x3ef8a5(0x14e)]))&&_0x56f5db[_0x3ef8a5(0x1a4)]({'unitID':_0x4b0974,'redoMutations':[..._0x21f2b9],'undoMutations':[..._0x41d6c9]}),!0x0;}return!0x1;}};var _0x40b936=_0x4fd487(0x127),_0xcb151e=_0x4fd487(0x18f);let _0x43747b=_0x4fd487(0x139);Symbol(_0x43747b);let _0x2d6944={},_0x4ac667=class extends _0x2db6fb['Disposable']{constructor(_0x586dc6,_0x59390b,_0x599d0a,_0x41dcc9,_0x463e5e){const _0x3bd142=_0x4fd487;super(),this[_0x3bd142(0x1a6)]=_0x586dc6,this[_0x3bd142(0x134)]=_0x59390b,this[_0x3bd142(0x1bc)]=_0x599d0a,this[_0x3bd142(0x186)]=_0x41dcc9,this[_0x3bd142(0x1ba)]=_0x463e5e,this[_0x3bd142(0x1c8)](),this['_initCommandInterceptor']();}[_0x4fd487(0x1c8)](){const _0x36efbf=_0x4fd487;[_0x7cf846,_0x3e5803,_0x180a09,_0x23af98,_0xa79016,_0x22d9dc,_0x5d2618,_0x9bfc83,_0x1d2aa9,_0x20bed2,_0x205fa3]['forEach'](_0x1f65c2=>this['disposeWithMe'](this[_0x36efbf(0x1a6)][_0x36efbf(0x199)](_0x1f65c2)));}[_0x4fd487(0x1b7)](){const _0x1d4e1a=_0x4fd487;this['disposeWithMe'](this[_0x1d4e1a(0x134)][_0x1d4e1a(0x1b0)]({'getMutations':_0x13867f=>{const _0x38786c=_0x1d4e1a;if(_0x13867f['id']===_0x3e9508['RemoveSheetDrawingCommand']['id']){let {drawings:_0x3d90c0}=_0x13867f[_0x38786c(0x14e)],_0x100f56=_0x3d90c0[_0x38786c(0x143)](_0x87db1a=>_0x87db1a[_0x38786c(0x14f)]===_0x2db6fb[_0x38786c(0x1a3)][_0x38786c(0x1ac)]);if(_0x100f56[_0x38786c(0x1cd)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x900132=[],_0x4e3c5f=[];return _0x100f56['forEach'](_0x552d5c=>{const _0x2524d6=_0x38786c;let {unitId:_0x38c553,subUnitId:_0x1dfd0e,drawingId:_0x3bbdb1}=_0x552d5c,_0x51d8a8=this[_0x2524d6(0x186)][_0x2524d6(0x17b)](_0x38c553,_0x1dfd0e,_0x3bbdb1);if(!_0x51d8a8)throw TypeError(_0x2524d6(0x15b)+_0x51d8a8);_0x900132[_0x2524d6(0x1b4)]({'id':_0x1d2aa9['id'],'params':{'unitId':_0x38c553,'subUnitId':_0x1dfd0e,'shapeId':_0x3bbdb1}}),_0x4e3c5f[_0x2524d6(0x1b4)]({'id':_0x9bfc83['id'],'params':{'unitId':_0x38c553,'subUnitId':_0x1dfd0e,'shapeId':_0x3bbdb1,'shapeType':_0x51d8a8['getShapeType'](),'shapeData':_0x51d8a8['getShapeData']()}});let _0x2dcf45=this[_0x2524d6(0x186)][_0x2524d6(0x151)](_0x38c553,_0x1dfd0e,_0x3bbdb1);if(_0x2dcf45)for(let _0x531474 of _0x2dcf45){let _0x40638d=_0x531474[_0x2524d6(0x1be)],_0x413117=_0x531474[_0x2524d6(0x1c5)],_0x1edfd0=_0x413117?{'from':void 0x0}:{'to':void 0x0},_0x43b6e0=_0x413117?{'from':{'shapeId':_0x531474[_0x2524d6(0x12d)],'cxnIndex':_0x531474[_0x2524d6(0x10a)]}}:{'to':{'shapeId':_0x531474[_0x2524d6(0x12d)],'cxnIndex':_0x531474['cxnIndex']}};_0x900132[_0x2524d6(0x1b4)]({'id':_0x205fa3['id'],'params':{'unitId':_0x38c553,'subUnitId':_0x1dfd0e,'shapeId':_0x40638d,'shapeData':{'relation':_0x1edfd0}}}),_0x4e3c5f[_0x2524d6(0x1b4)]({'id':_0x205fa3['id'],'params':{'unitId':_0x38c553,'subUnitId':_0x1dfd0e,'shapeId':_0x40638d,'shapeData':{'relation':_0x43b6e0}}});}}),{'preRedos':_0x900132,'redos':[],'preUndos':[],'undos':_0x4e3c5f};}if(_0x13867f['id']===_0x3e9508['SetSheetDrawingCommand']['id']){let {drawings:_0x3e25c4}=_0x13867f[_0x38786c(0x14e)],_0x55a58d=_0x3e25c4[_0x38786c(0x143)](_0x34f7fe=>_0x34f7fe[_0x38786c(0x14f)]===_0x2db6fb[_0x38786c(0x1a3)][_0x38786c(0x1ac)]);if(_0x55a58d[_0x38786c(0x1cd)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x29f4cd=[],_0x4445fc=[];for(let _0x2fceb7 of _0x55a58d){let {unitId:_0xbadeab,subUnitId:_0x34eeb5,drawingId:_0x2798ac,transform:_0x1d4a4d}=_0x2fceb7;if(!_0xbadeab||!_0x34eeb5||!_0x2798ac||!_0x1d4a4d)continue;let _0x55a244=this[_0x38786c(0x186)][_0x38786c(0x17b)](_0xbadeab,_0x34eeb5,_0x2798ac);if(!_0x55a244)throw TypeError(_0x38786c(0x15b)+_0x55a244);if((0x0,_0x3a29f1[_0x38786c(0x1b2)])(_0x55a244[_0x38786c(0x109)]())){let _0x377c05=this[_0x38786c(0x186)][_0x38786c(0x102)](_0xbadeab,_0x34eeb5,_0x2798ac);_0x377c05&&(_0x29f4cd[_0x38786c(0x1b4)]({'id':_0x205fa3['id'],'params':{'unitId':_0xbadeab,'subUnitId':_0x34eeb5,'shapeId':_0x2798ac,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4445fc[_0x38786c(0x1b4)]({'id':_0x205fa3['id'],'params':{'unitId':_0xbadeab,'subUnitId':_0x34eeb5,'shapeId':_0x2798ac,'shapeData':{'relation':_0x377c05}}}));}else{let _0x494b69=this['_sheetsShapeService'][_0x38786c(0x151)](_0xbadeab,_0x34eeb5,_0x2798ac);if(_0x494b69&&_0x494b69[_0x38786c(0x1cd)]>0x0)for(let _0x4f0efa of _0x494b69){let _0x231de7=_0x4f0efa[_0x38786c(0x1be)],_0x2ac49e=_0x4f0efa[_0x38786c(0x1c5)],_0x4c01a2=this[_0x38786c(0x186)][_0x38786c(0x17b)](_0xbadeab,_0x34eeb5,_0x231de7);if(!_0x4c01a2)continue;let _0x42f133=_0x4c01a2['getStartConnectInfo'](),_0x35f227=_0x4c01a2[_0x38786c(0x171)]();_0x42f133&&_0x35f227?this[_0x38786c(0x108)](_0xbadeab,_0x34eeb5,_0x231de7,_0x4c01a2,_0x42f133,_0x35f227,_0x29f4cd,_0x4445fc,_0x2798ac,_0x1d4a4d):this['_addLineFollowShapeUpdates'](_0xbadeab,_0x34eeb5,_0x231de7,_0x4c01a2,_0x2ac49e?_0x42f133:_0x35f227,_0x2ac49e,_0x29f4cd,_0x4445fc,_0x2798ac,_0x1d4a4d);}}}return{'preRedos':[],'redos':_0x29f4cd,'preUndos':_0x4445fc,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x4fd487(0x13a)](_0x7eb6eb,_0x10bd9c,_0x5d5ec7,_0x421426,_0x5c109d){const _0x290933=_0x4fd487;if(!_0x10bd9c||!_0x5d5ec7)return null;let {shapeId:_0x251e58,cxnIndex:_0x2d4e6f}=_0x7eb6eb,_0x26ae98=this[_0x290933(0x186)]['getShapeModel'](_0x10bd9c,_0x5d5ec7,_0x251e58);if(!_0x26ae98)return null;let _0x290df4=this[_0x290933(0x1ba)][_0x290933(0x1d2)]({'unitId':_0x10bd9c,'subUnitId':_0x5d5ec7,'drawingId':_0x251e58});if(!(_0x290df4!=null&&_0x290df4[_0x290933(0x162)]))return null;let {left:_0x2386d9=0x0,top:_0x8751b5=0x0,width:_0x4019b1=0x0,height:_0xac2992=0x0,flipX:_0x5bc2ca=!0x1,flipY:_0x3a4b2f=!0x1,angle:_0x256c85}=_0x290df4[_0x290933(0x162)];if(_0x5c109d&&_0x421426===_0x251e58){var _0x5b9f93,_0x319995,_0x9824c2,_0x37713d,_0x272f55,_0x3925f9,_0x3aa264;_0x2386d9=(_0x5b9f93=_0x5c109d[_0x290933(0x198)])==null?_0x2386d9:_0x5b9f93,_0x8751b5=(_0x319995=_0x5c109d[_0x290933(0x16d)])==null?_0x8751b5:_0x319995,_0x4019b1=(_0x9824c2=_0x5c109d[_0x290933(0x135)])==null?_0x4019b1:_0x9824c2,_0xac2992=(_0x37713d=_0x5c109d[_0x290933(0x14b)])==null?_0xac2992:_0x37713d,_0x5bc2ca=(_0x272f55=_0x5c109d[_0x290933(0x15d)])==null?_0x5bc2ca:_0x272f55,_0x3a4b2f=(_0x3925f9=_0x5c109d[_0x290933(0x155)])==null?_0x3a4b2f:_0x3925f9,_0x256c85=(_0x3aa264=_0x5c109d[_0x290933(0x1b9)])==null?_0x256c85:_0x3aa264;}_0x26ae98['updateContext']({'width':_0x4019b1,'height':_0xac2992});let _0x573d64=_0x26ae98[_0x290933(0x11a)]()[_0x290933(0x157)](_0xf3d5ff=>_0xf3d5ff[_0x290933(0x161)]===_0x2d4e6f);if(!_0x573d64)return null;let _0x22e63d=_0x5bc2ca?_0x4019b1-_0x573d64['x']:_0x573d64['x'],_0x5380e3=_0x3a4b2f?_0xac2992-_0x573d64['y']:_0x573d64['y'];if(_0x256c85!==0x0&&_0x256c85!=null){let _0x426caa=_0x256c85*Math['PI']/0xb4,_0x39ed46=Math[_0x290933(0x113)](_0x426caa),_0x214939=Math[_0x290933(0x136)](_0x426caa),_0x34c4fd=_0x4019b1/0x2,_0x30f30f=_0xac2992/0x2,_0x225887=_0x22e63d-_0x34c4fd,_0x770d8a=_0x5380e3-_0x30f30f;_0x22e63d=_0x34c4fd+_0x225887*_0x39ed46-_0x770d8a*_0x214939,_0x5380e3=_0x30f30f+_0x225887*_0x214939+_0x770d8a*_0x39ed46;}_0x22e63d+=_0x2386d9,_0x5380e3+=_0x8751b5;let _0x568eca=_0x573d64[_0x290933(0x142)]/0xea60;_0x5bc2ca&&(_0x568eca=0xb4-_0x568eca),_0x3a4b2f&&(_0x568eca=-_0x568eca),_0x568eca+=_0x256c85||0x0,_0x568eca=(_0x568eca%0x168+0x168)%0x168;let _0x59c822=(0x0,_0x3a29f1[_0x290933(0x14c)])({'left':_0x2386d9,'top':_0x8751b5,'width':_0x4019b1,'height':_0xac2992},_0x256c85||0x0);return{'point':{'x':_0x22e63d,'y':_0x5380e3},'angle':_0x568eca,'bounds':_0x59c822};}[_0x4fd487(0x108)](_0x28b47f,_0xe80587,_0x5e75a3,_0xb43ab8,_0x4b3bfe,_0x54287f,_0x4e3438,_0x3f38be,_0x18f684,_0x502327){const _0x1c64af=_0x4fd487;let _0x4dc729=this[_0x1c64af(0x1bc)][_0x1c64af(0x15f)](_0x28b47f,_0xe80587);if(!_0x4dc729)return;let _0x21fb70=_0xb43ab8[_0x1c64af(0x146)](),_0x4a2c43=_0xb43ab8[_0x1c64af(0x13d)](),_0x238a80={},_0x1bbe99={};_0x4a2c43[_0x1c64af(0x124)](_0x132e1f=>{let _0x56cc33=_0xb43ab8['getAdjustValueByName'](_0x132e1f);_0x1bbe99[_0x132e1f]=_0x56cc33==null?0x0:_0x56cc33;});let _0xebe19f=this[_0x1c64af(0x13a)](_0x4b3bfe,_0x28b47f,_0xe80587,_0x18f684,_0x502327),_0x15d6ab=this[_0x1c64af(0x13a)](_0x54287f,_0x28b47f,_0xe80587,_0x18f684,_0x502327);if(_0xebe19f&&_0x15d6ab){let _0x5f2ae7=_0xb43ab8[_0x1c64af(0x109)](),_0x195e4e=(0x0,_0x3a29f1[_0x1c64af(0x165)])(_0xebe19f,_0x15d6ab,_0x5f2ae7),_0x4bc37f=_0x5f2ae7;if(_0x195e4e){let _0x57bfde=(0x0,_0x3a29f1[_0x1c64af(0x110)])(_0x195e4e,_0xb43ab8[_0x1c64af(0x109)]()),_0x24c70f=this['_drawingManagerService'][_0x1c64af(0x12a)](_0x28b47f,_0xe80587);if(_0x24c70f&&_0x24c70f[_0x5e75a3]){let _0x10d8bd=_0x24c70f[_0x5e75a3];_0x4bc37f=_0x57bfde[_0x1c64af(0x11f)];for(let [_0x3edd94,_0x23e2a5]of Object[_0x1c64af(0x116)](_0x57bfde['adjustValues']))_0x238a80[_0x3edd94]=_0x23e2a5;let _0xe77a7b={..._0x10d8bd[_0x1c64af(0x162)],'width':_0x57bfde['worldRect'][_0x1c64af(0x135)],'height':_0x57bfde[_0x1c64af(0xff)][_0x1c64af(0x14b)],'left':_0x57bfde['worldRect'][_0x1c64af(0x198)],'top':_0x57bfde[_0x1c64af(0xff)][_0x1c64af(0x16d)],'flipX':_0x57bfde[_0x1c64af(0xff)]['flipX'],'flipY':_0x57bfde[_0x1c64af(0xff)][_0x1c64af(0x155)],'angle':_0x57bfde[_0x1c64af(0x118)]},_0x25f93b=(0x0,_0x3e9508[_0x1c64af(0x13c)])(_0xe77a7b,_0x4dc729),_0x3b3bd7=(0x0,_0x3e9508[_0x1c64af(0x152)])(_0xe77a7b,_0x4dc729),_0x9eec0a={'unitId':_0x28b47f,'subUnitId':_0xe80587,'drawingType':_0x2db6fb[_0x1c64af(0x1a3)]['DRAWING_SHAPE'],'drawingId':_0x5e75a3,'transform':_0xe77a7b,'sheetTransform':_0x25f93b,'axisAlignSheetTransform':_0x3b3bd7},{unitId:_0x37ff07,subUnitId:_0x1e74d7,undo:_0x4b91a5,redo:_0x3992aa,objects:_0x3397f5}=this[_0x1c64af(0x1ba)][_0x1c64af(0x19b)]([_0x9eec0a]);_0x4e3438[_0x1c64af(0x1b4)]({'id':_0x3e9508['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x37ff07,'subUnitId':_0x1e74d7,'op':_0x3992aa,'objects':_0x3397f5,'type':_0x3e9508['DrawingApplyType'][_0x1c64af(0x193)]}}),_0x3f38be[_0x1c64af(0x1b4)]({'id':_0x3e9508['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x37ff07,'subUnitId':_0x1e74d7,'op':_0x4b91a5,'objects':_0x3397f5,'type':_0x3e9508[_0x1c64af(0x163)]['UPDATE']}});}_0xb43ab8['removeLinePoints']();}_0x4e3438[_0x1c64af(0x1b4)]({'id':_0x205fa3['id'],'params':{'unitId':_0x28b47f,'subUnitId':_0xe80587,'shapeId':_0x5e75a3,'shapeType':_0x4bc37f,'shapeData':{'adjustValues':_0x238a80,'relation':_0x21fb70}}}),_0x3f38be[_0x1c64af(0x1b4)]({'id':_0x205fa3['id'],'params':{'unitId':_0x28b47f,'subUnitId':_0xe80587,'shapeId':_0x5e75a3,'shapeType':_0x5f2ae7,'shapeData':{'adjustValues':_0x1bbe99,'relation':_0x21fb70}}});}}[_0x4fd487(0x10e)](_0x1bc582,_0x3b3e75,_0x22cdb3,_0x8afd1c,_0xa5b2c3,_0x226f4e,_0x57bf0c,_0x96865d,_0x24a8b5,_0x7839ee){const _0x286148=_0x4fd487;var _0x4d594b;if(!_0xa5b2c3)return;let _0x43f56f=this[_0x286148(0x1bc)]['getSkeleton'](_0x1bc582,_0x3b3e75);if(!_0x43f56f)return;let _0x405b9f=(_0x4d594b=this[_0x286148(0x1ba)]['getDrawingByParam']({'unitId':_0x1bc582,'subUnitId':_0x3b3e75,'drawingId':_0x24a8b5}))==null?void 0x0:_0x4d594b[_0x286148(0x162)];if(!_0x405b9f)return;let _0x169bc7=_0x405b9f[_0x286148(0x198)]!==_0x7839ee['left']||_0x405b9f['top']!==_0x7839ee[_0x286148(0x16d)],_0x4710b6=_0x405b9f[_0x286148(0x135)]!==_0x7839ee[_0x286148(0x135)]||_0x405b9f[_0x286148(0x14b)]!==_0x7839ee[_0x286148(0x14b)],_0x43302d=_0x405b9f[_0x286148(0x15d)]!==_0x7839ee[_0x286148(0x15d)]||_0x405b9f[_0x286148(0x155)]!==_0x7839ee[_0x286148(0x155)],_0x3163f6=_0x405b9f[_0x286148(0x1b9)]!==_0x7839ee[_0x286148(0x1b9)];if(_0x169bc7&&!_0x4710b6&&!_0x43302d&&!_0x3163f6){var _0x33be92,_0x460de0,_0x47f2f0,_0x48d55b;let _0x1e6763=((_0x33be92=_0x7839ee[_0x286148(0x198)])==null?0x0:_0x33be92)-((_0x460de0=_0x405b9f[_0x286148(0x198)])==null?0x0:_0x460de0),_0x23e580=((_0x47f2f0=_0x7839ee[_0x286148(0x16d)])==null?0x0:_0x47f2f0)-((_0x48d55b=_0x405b9f[_0x286148(0x16d)])==null?0x0:_0x48d55b),_0x4608c4=this[_0x286148(0x1ba)][_0x286148(0x12a)](_0x1bc582,_0x3b3e75);if(_0x4608c4&&_0x4608c4[_0x22cdb3]){var _0xa6721d,_0x5fd553,_0x27ad7a,_0x1cbc65;let _0x59343=_0x4608c4[_0x22cdb3],_0x220399={..._0x59343[_0x286148(0x162)],'left':((_0xa6721d=(_0x5fd553=_0x59343[_0x286148(0x162)])==null?void 0x0:_0x5fd553['left'])==null?0x0:_0xa6721d)+_0x1e6763,'top':((_0x27ad7a=(_0x1cbc65=_0x59343[_0x286148(0x162)])==null?void 0x0:_0x1cbc65[_0x286148(0x16d)])==null?0x0:_0x27ad7a)+_0x23e580},_0x5ecacd=(0x0,_0x3e9508[_0x286148(0x13c)])(_0x220399,_0x43f56f),_0x38fb29=(0x0,_0x3e9508[_0x286148(0x152)])(_0x220399,_0x43f56f),_0x38ab13={'unitId':_0x1bc582,'subUnitId':_0x3b3e75,'drawingType':_0x2db6fb[_0x286148(0x1a3)][_0x286148(0x1ac)],'drawingId':_0x22cdb3,'transform':_0x220399,'sheetTransform':_0x5ecacd,'axisAlignSheetTransform':_0x38fb29},{unitId:_0x308169,subUnitId:_0x13bd76,undo:_0x38bad0,redo:_0x2fce99,objects:_0x2f0375}=this[_0x286148(0x1ba)]['getBatchUpdateOp']([_0x38ab13]);_0x57bf0c['push']({'id':_0x3e9508[_0x286148(0x19e)]['id'],'params':{'unitId':_0x308169,'subUnitId':_0x13bd76,'op':_0x2fce99,'objects':_0x2f0375,'type':_0x3e9508[_0x286148(0x163)][_0x286148(0x193)]}}),_0x96865d[_0x286148(0x1b4)]({'id':_0x3e9508['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x308169,'subUnitId':_0x13bd76,'op':_0x38bad0,'objects':_0x2f0375,'type':_0x3e9508[_0x286148(0x163)][_0x286148(0x193)]}});}}else{let _0x10b4ae=_0x8afd1c[_0x286148(0x156)](),_0x544908=_0x8afd1c[_0x286148(0x171)]();this[_0x286148(0x108)](_0x1bc582,_0x3b3e75,_0x22cdb3,_0x8afd1c,_0x10b4ae,_0x544908,_0x57bf0c,_0x96865d,_0x24a8b5,_0x7839ee);}}};_0x4ac667=_0x5054ab([_0x4f0cb5(0x0,_0x2db6fb[_0x4fd487(0x16b)]),_0x4f0cb5(0x1,(0x0,_0x2db6fb['Inject'])(_0x1fd1e2[_0x4fd487(0x14d)])),_0x4f0cb5(0x2,(0x0,_0x2db6fb[_0x4fd487(0x1cc)])(_0x1fd1e2[_0x4fd487(0x1ad)])),_0x4f0cb5(0x3,(0x0,_0x2db6fb[_0x4fd487(0x1cc)])(_0x131fc0)),_0x4f0cb5(0x4,(0x0,_0x2db6fb[_0x4fd487(0x1cc)])(_0x267d49['IDrawingManagerService']))],_0x4ac667);let _0x150634=class extends _0x2db6fb[_0x4fd487(0x169)]{constructor(_0x5e9ec5=_0x2d6944,_0x58154c,_0x2c292a,_0x1c362c){const _0x19b73e=_0x4fd487;super(),this[_0x19b73e(0x1c2)]=_0x5e9ec5,this[_0x19b73e(0x103)]=_0x58154c,this[_0x19b73e(0x1a6)]=_0x2c292a,this[_0x19b73e(0x18e)]=_0x1c362c;let {..._0x51338d}=(0x0,_0x2db6fb[_0x19b73e(0x195)])({},_0x2d6944,this[_0x19b73e(0x1c2)]);this['_configService'][_0x19b73e(0x176)](_0x43747b,_0x51338d);}[_0x4fd487(0x182)](){const _0x36909a=_0x4fd487;let _0x3127f8=this[_0x36909a(0x103)];[[_0x252752],[_0x131fc0],[_0x4ac667]][_0x36909a(0x124)](_0x3d123e=>_0x3127f8[_0x36909a(0x190)](_0x3d123e)),(0x0,_0x2db6fb[_0x36909a(0x1d0)])(_0x3127f8,[[_0x131fc0],[_0x4ac667]]);}};_0x597d02(_0x150634,_0x4fd487(0x145),_0x2db6fb[_0x4fd487(0x119)]['UNIVER_SHEET']),_0x597d02(_0x150634,'pluginName','SHEET_SHAPE_PLUGIN'),_0x597d02(_0x150634,_0x4fd487(0x1af),_0x40b936),_0x597d02(_0x150634,'version',_0xcb151e),_0x150634=_0x5054ab([(0x0,_0x2db6fb[_0x4fd487(0x1b8)])(_0x50adf2[_0x4fd487(0x111)]),_0x4f0cb5(0x1,(0x0,_0x2db6fb['Inject'])(_0x2db6fb[_0x4fd487(0x130)])),_0x4f0cb5(0x2,_0x2db6fb[_0x4fd487(0x16b)]),_0x4f0cb5(0x3,_0x2db6fb[_0x4fd487(0x106)])],_0x150634),_0x39839f[_0x4fd487(0x159)]=0xc8,_0x39839f[_0x4fd487(0x101)]=0xc8,_0x39839f[_0x4fd487(0x15e)]=_0x7cf846,_0x39839f[_0x4fd487(0x183)]=_0x9bfc83,_0x39839f[_0x4fd487(0x112)]=_0x1d2aa9,_0x39839f[_0x4fd487(0x15a)]=_0x3e5803,_0x39839f[_0x4fd487(0x1b6)]=_0x23af98,_0x39839f[_0x4fd487(0x12e)]=_0xa79016,Object[_0x4fd487(0x17d)](_0x39839f,_0x4fd487(0xfa),{'enumerable':!0x0,'get':function(){return _0x131fc0;}}),_0x39839f[_0x4fd487(0x177)]=_0x180a09,Object[_0x4fd487(0x17d)](_0x39839f,_0x4fd487(0x1c9),{'enumerable':!0x0,'get':function(){return _0x150634;}}),_0x39839f['UpdateConnectorRelationCommand']=_0x22d9dc,_0x39839f[_0x4fd487(0x184)]=_0x5d2618,_0x39839f[_0x4fd487(0x13e)]=_0x205fa3,_0x39839f[_0x4fd487(0x138)]=_0x3b525b,_0x39839f[_0x4fd487(0x147)]=_0x20bed2;}));function _0x6f81(_0x2c3326,_0x241025){_0x2c3326=_0x2c3326-0xfa;const _0x24b8a8=_0x24b8();let _0x6f8139=_0x24b8a8[_0x2c3326];return _0x6f8139;}function _0x24b8(){const _0x5b302f=['sheet.mutation.update-shape-type','isConnectorShape','IResourceManagerService','push','48852690vQcrFk','SetSheetsShapeRotateCommand','_initCommandInterceptor','DependentOn','angle','_drawingManagerService','getShapeDataById','_sheetSkeletonService','startY','lineShapeId','UniverProSheetsShape','insertShape','string','_config','prototype','stringify','isFrom','sheet.command.insert-shape','fromJSON','_initCommands','UniverSheetsShapePlugin','UniverCore','8kIbohB','Inject','length','MUTATION','1353940oQyGzJ','touchDependencies','amd','getDrawingByParam','SheetsShapeService','@univerjs/drawing','relation','3373488UgqDGI','_shapes','worldRect','getShapeTextData','DEFAULT_SHAPE_WIDTH','getLineShapeRelation','_injector','sheet.mutation.insert-shape','_shapeModelManagerMap','IConfigService','call','_addLineRerouteUpdates','getShapeType','cxnIndex','has','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','COMMAND','_addLineFollowShapeUpdates','dispose','computeConnectorRouteLayout','UniverLicensePlugin','RemoveSheetsShapeMutation','cos','ISheetDrawingService','set','entries','_serializeShapeForUnit','rotation','UniverInstanceType','getConnectionSiteList','iterator','getOwnPropertyDescriptor','getShapeData','hasShape','lineType','default','adjustValues','delete','toStringTag','forEach','rotateEnabled','toJSON','@univerjs-pro/sheets-shape','UniverDrawing','getSheetCommandTarget','getDrawingData','IUniverInstanceService','REMOVE','shapeId','SetSheetsShapeTextVerticalToggleCommand','from','Injector','4967022VGIxtu','startX','Disposable','_sheetInterceptorService','width','sin','symbol','UpdateSheetsShapeTypeCommand','sheets-shape.config','_getConnectPointInfo','decorate','transformToDrawingPosition','getAdjustNames','UpdateSheetsShapeDataMutation','_disposed','assign','UniverProLicense','ang','filter','preRedos','type','getShapeRelation','UpdateSheetsShapeTypeMutation','_groupIds','registerPluginResource','_resourcesManagerService','height','getBasicShapeRotateBound','SheetInterceptorService','params','drawingType','get','getBasicShapeRelation','transformToAxisAlignPosition','sheet.command.set-shape-drawing-data','6148331EvKLWR','flipY','getStartConnectInfo','find','keys','DEFAULT_SHAPE_HEIGHT','SetShapeDrawingDataCommand','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','UniverSheets','flipX','InsertShapeCommand','getSkeleton','position','index','transform','DrawingApplyType','sheet.mutation.remove-shape','routeConnectorLineShape','parse','resizeEnabled','Module','Plugin','removeShape','ICommandService','isLineShape','top','ClearSheetDrawingTransformerOperation','borderEnabled','ShapeModel','getEndConnectInfo','setShapeData','preUndos','getBatchAddOp','@univerjs/core','setConfig','ToggleSheetsShapeFlipCommand','addShape','object','getCellWithCoordByIndex','getShapeModel','InsertSheetDrawingCommand','defineProperty','_linesIds','range','IUndoRedoService','CommandType','onStarting','InsertSheetsShapeMutation','UpdateLineShapeResizeCommand','ensureSkeleton','_sheetsShapeService','getShapeTypeById','UNIVER_SHEET','SetSheetDrawingCommand','_ensureShapeModelManager','4364OMkHaj','INSERT','onCommandExecute','_configService','0.21.1','add','isHorizontal','function','UPDATE','sheet.command.toggle-shape-flip','merge','getCellIndexAndOffsetByPosition','5540jkTmgE','left','registerCommand','7963983zmHdjW','getBatchUpdateOp','redos','clear','SetDrawingApplyMutation','sheet.mutation.update-shape-data','fill','sheet.command.set-shape-text-vertical-toggle','exports','DrawingTypeEnum','pushUndoRedo','undos','_commandService','every','constructor','generateRandomId','1RySmQK','data','DRAWING_SHAPE','SheetSkeletonService','sequenceExecute','packageName','interceptCommand'];_0x24b8=function(){return _0x5b302f;};return _0x24b8();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-shape",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "private": false,
5
5
  "description": "shape for Univer.",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -63,17 +63,17 @@
63
63
  "npm": ">=8.0.0"
64
64
  },
65
65
  "dependencies": {
66
- "@univerjs-pro/license": "0.21.0",
67
- "@univerjs/core": "0.21.0",
68
- "@univerjs/drawing": "0.21.0",
69
- "@univerjs/sheets": "0.21.0",
70
- "@univerjs/sheets-drawing": "0.21.0",
71
- "@univerjs-pro/engine-shape": "0.21.0"
66
+ "@univerjs-pro/license": "0.21.1",
67
+ "@univerjs-pro/engine-shape": "0.21.1",
68
+ "@univerjs/core": "0.21.1",
69
+ "@univerjs/sheets": "0.21.1",
70
+ "@univerjs/drawing": "0.21.1",
71
+ "@univerjs/sheets-drawing": "0.21.1"
72
72
  },
73
73
  "devDependencies": {
74
74
  "typescript": "^6.0.3",
75
75
  "vitest": "^4.1.4",
76
- "@univerjs-infra/shared": "0.21.0"
76
+ "@univerjs-infra/shared": "0.21.1"
77
77
  },
78
78
  "scripts": {
79
79
  "test": "vitest run",