@univerjs-pro/sheets-shape 0.24.0 → 0.25.0

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/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x1a70bd=_0x2c14;(function(_0x544329,_0x2f5711){const _0x36358c=_0x2c14,_0x33f88a=_0x544329();while(!![]){try{const _0x1c6634=parseInt(_0x36358c(0x235))/0x1+-parseInt(_0x36358c(0x232))/0x2*(-parseInt(_0x36358c(0x1ea))/0x3)+parseInt(_0x36358c(0x1c7))/0x4+-parseInt(_0x36358c(0x1ce))/0x5+parseInt(_0x36358c(0x238))/0x6+-parseInt(_0x36358c(0x1d1))/0x7+parseInt(_0x36358c(0x200))/0x8*(-parseInt(_0x36358c(0x202))/0x9);if(_0x1c6634===_0x2f5711)break;else _0x33f88a['push'](_0x33f88a['shift']());}catch(_0xb764a){_0x33f88a['push'](_0x33f88a['shift']());}}}(_0x2fe9,0xcf9fe));import{ConnectorCoordinateTransform as _0x5dda88,ShapeArrowSizeEnum as _0x2d1f7a,ShapeArrowTypeEnum as _0x594270,ShapeFillEnum as _0x2d0686,ShapeGradientTypeEnum as _0x2104ac,ShapeLineCapEnum as _0x444bff,ShapeLineDashEnum as _0x3fe494,ShapeLineJoinEnum as _0xce6401,ShapeLineTypeEnum as _0x598361,ShapeTypeEnum as _0x2d11c6,computeConnectorRouteLayout as _0x5f27ec,getBasicShapeRotateBound as _0x1ccf79,isConnectorShape as _0x221386,routeConnectorLineShape as _0x4432fe}from'@univerjs-pro/engine-shape';import{FEnum as _0x2ce1d8}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x1c416b,DEFAULT_SHAPE_WIDTH as _0x5e2b87,InsertShapeCommand as _0x286adb,SetShapeDrawingDataCommand as _0x5ddcca,SheetsShapeService as _0x3fe959,UpdateConnectorRelationCommand as _0x4cacb3}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x7113b1,generateRandomId as _0xca9b09}from'@univerjs/core';import{IDrawingManagerService as _0x383207}from'@univerjs/drawing';import{SheetSkeletonService as _0x2114e5,convertPositionCellToSheetOverGrid as _0x37472c}from'@univerjs/sheets';import{ISheetDrawingService as _0x4b057e,RemoveSheetDrawingCommand as _0x324f42}from'@univerjs/sheets-drawing';import{FWorksheet as _0x26ae22}from'@univerjs/sheets/facade';var k=class extends _0x2ce1d8{get[_0x1a70bd(0x20a)](){return _0x2d11c6;}get['ShapeFillEnum'](){return _0x2d0686;}get[_0x1a70bd(0x20f)](){return _0x2104ac;}get[_0x1a70bd(0x217)](){return _0x598361;}get[_0x1a70bd(0x1dd)](){return _0x3fe494;}get[_0x1a70bd(0x1c3)](){return _0x444bff;}get['ShapeLineJoinEnum'](){return _0xce6401;}get[_0x1a70bd(0x1dc)](){return _0x594270;}get[_0x1a70bd(0x207)](){return _0x2d1f7a;}};_0x2ce1d8['extend'](k);function A(_0x496c12){'@babel/helpers - typeof';const _0x5749ee=_0x1a70bd;return A=typeof Symbol==_0x5749ee(0x1d9)&&typeof Symbol[_0x5749ee(0x23a)]=='symbol'?function(_0x403591){return typeof _0x403591;}:function(_0x294aa1){const _0x50f4cb=_0x5749ee;return _0x294aa1&&typeof Symbol=='function'&&_0x294aa1['constructor']===Symbol&&_0x294aa1!==Symbol[_0x50f4cb(0x208)]?'symbol':typeof _0x294aa1;},A(_0x496c12);}function j(_0x148c4b,_0x44f207){const _0xd99366=_0x1a70bd;if(A(_0x148c4b)!=_0xd99366(0x1de)||!_0x148c4b)return _0x148c4b;var _0x12590f=_0x148c4b[Symbol[_0xd99366(0x1c6)]];if(_0x12590f!==void 0x0){var _0xff4a3c=_0x12590f[_0xd99366(0x223)](_0x148c4b,_0x44f207||_0xd99366(0x1f5));if(A(_0xff4a3c)!=_0xd99366(0x1de))return _0xff4a3c;throw TypeError(_0xd99366(0x212));}return(_0x44f207===_0xd99366(0x209)?String:Number)(_0x148c4b);}function _0x2fe9(){const _0x4c1401=['colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','5223245DHEiuD','left','getDrawingByParam','2334164RCrZKi','_injector','fillType','getShapeData','worldRect','gradientAngle','type','index','function','getSize','height','ShapeArrowTypeEnum','ShapeLineDashEnum','object','cxnIndex','stroke','sin','shapeType','GradientFill','flipY','adjustValues','setShapeGradientFill','get','insertShape','setEndArrowSize','2307qQWTEB','setShapeSolidFill','newShape','drawId','from','setHeight','_preloadShapeProperties','setShapeType','setPosition','getWorkbook','getShapeType','default','build','getAdjustNames','getDrawingData','flipX','setStrokeLineCapType','color','ensureSkeleton','getUnitId','getConnectionSiteList','point','152IsgkRy','updateShape','256257BQcUwH','subUnitId','transform','stringify','extend','ShapeArrowSizeEnum','prototype','string','ShapeTypeEnum','localToWorld','setStartArrowType','DRAWING_SHAPE','getEndConnectInfo','ShapeGradientTypeEnum','gradientType','getShapeId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endArrow','setStartArrowSize','newConnector','SolidFill','ShapeLineTypeEnum','getShapeModel','capType','setEndArrowType','shapeData','setStrokeOpacity','_commandService','setStrokeLineDashType','getPosition','lineType','executeCommand','lineJoinType','call','unitId','setStrokeWidth','setStrokeColor','getDrawingPoints','_resolveEndpoints','fill','connectShapes','drawingType','setStrokeLineJoinType','getSheetId','getShapes','shape','ang','connectionSiteIndex','790smwZJH','length','gradientStops','688156ItyIpJ','_resolveExistingOrFreeEndpoint','opacity','1177728kIhpLC','\x20and\x20subUnitId\x20','iterator','push','keys','getStartConnectInfo','defineProperty','startArrow',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','rotation','abs','top','lineStrokeType','getConnectionSites','size','ShapeLineCapEnum','\x20not\x20found','getConnectorLinePoints','toPrimitive','6325276JTvXsN','relation','width','cos','updateContext','removeShape'];_0x2fe9=function(){return _0x4c1401;};return _0x2fe9();}function M(_0x4fb2c5){const _0x1112cb=_0x1a70bd;var _0x381cf9=j(_0x4fb2c5,_0x1112cb(0x209));return A(_0x381cf9)=='symbol'?_0x381cf9:_0x381cf9+'';}function N(_0x1b1cc8,_0x34fba4,_0x28d439){const _0x14fb2d=_0x1a70bd;return(_0x34fba4=M(_0x34fba4))in _0x1b1cc8?Object[_0x14fb2d(0x23e)](_0x1b1cc8,_0x34fba4,{'value':_0x28d439,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b1cc8[_0x34fba4]=_0x28d439,_0x1b1cc8;}var P=class{constructor(_0x11e990,_0x3d6b05,_0x22073f,_0x96e0c4){const _0x5c95a0=_0x1a70bd;N(this,'unitId',void 0x0),N(this,_0x5c95a0(0x203),void 0x0),N(this,_0x5c95a0(0x1ed),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x5c95a0(0x1c9),_0x5e2b87),N(this,_0x5c95a0(0x1db),_0x1c416b),N(this,_0x5c95a0(0x1e2),void 0x0),N(this,_0x5c95a0(0x21b),{}),N(this,_0x5c95a0(0x1d2),void 0x0),this[_0x5c95a0(0x224)]=_0x11e990,this[_0x5c95a0(0x203)]=_0x3d6b05,this[_0x5c95a0(0x1ed)]=_0x22073f||_0xca9b09(),this['_injector']=_0x96e0c4;}[_0x1a70bd(0x1f2)](_0x3ee561,_0x4c67c3,_0x2d4d45,_0x33faf4){const _0xbc1389=_0x1a70bd;let _0x3b3801=this[_0xbc1389(0x1d2)][_0xbc1389(0x1e7)](_0x2114e5)[_0xbc1389(0x1fc)](this[_0xbc1389(0x224)],this[_0xbc1389(0x203)]);if(!_0x3b3801)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0xbc1389(0x224)]+'\x20and\x20subUnitId\x20'+this[_0xbc1389(0x203)]+_0xbc1389(0x1c4));let {transform:_0x54f04e}=_0x37472c(this[_0xbc1389(0x224)],this['subUnitId'],{'row':_0x3ee561,'column':_0x4c67c3,'rowOffset':_0x2d4d45,'columnOffset':_0x33faf4},0x1,0x1,_0x3b3801);return this['x']=_0x54f04e[_0xbc1389(0x1cf)],this['y']=_0x54f04e['top'],this;}['setAbsolutePosition'](_0x3a3fb2,_0x5bebdb){return this['x']=_0x3a3fb2,this['y']=_0x5bebdb,this;}[_0x1a70bd(0x1f1)](_0x5bd157){const _0x421d32=_0x1a70bd;return this[_0x421d32(0x1e2)]=_0x5bd157,this;}[_0x1a70bd(0x1eb)](_0x216434,_0x39f04f){const _0xd91e55=_0x1a70bd;return this['shapeData'][_0xd91e55(0x229)]||(this['shapeData'][_0xd91e55(0x229)]={}),this[_0xd91e55(0x21b)][_0xd91e55(0x229)][_0xd91e55(0x1d3)]=_0x2d0686[_0xd91e55(0x216)],_0x216434!==void 0x0&&(this['shapeData']['fill'][_0xd91e55(0x1fb)]=_0x216434),_0x39f04f!==void 0x0&&(this[_0xd91e55(0x21b)][_0xd91e55(0x229)][_0xd91e55(0x237)]=_0x39f04f),this;}[_0x1a70bd(0x1e6)](_0x430f60,_0x52f9fc,_0x34a7bf){const _0x11d8c0=_0x1a70bd;if(_0x52f9fc===void 0x0||_0x52f9fc[_0x11d8c0(0x233)]===0x0)throw Error(_0x11d8c0(0x1cd));return this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)]||(this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)]={}),this['shapeData'][_0x11d8c0(0x229)][_0x11d8c0(0x234)]=_0x52f9fc,this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)][_0x11d8c0(0x1d3)]=_0x2d0686[_0x11d8c0(0x1e3)],this[_0x11d8c0(0x21b)]['fill'][_0x11d8c0(0x210)]=_0x430f60,_0x34a7bf!==void 0x0&&(this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)][_0x11d8c0(0x1d6)]=_0x34a7bf),this;}['setNoneFill'](){const _0x4df092=_0x1a70bd;return this[_0x4df092(0x21b)][_0x4df092(0x229)]={'fillType':_0x2d0686['NoFill']},this;}[_0x1a70bd(0x226)](_0x5eac72){const _0x359fb1=_0x1a70bd;return this[_0x359fb1(0x21b)][_0x359fb1(0x1e0)]||(this[_0x359fb1(0x21b)][_0x359fb1(0x1e0)]={}),this['shapeData'][_0x359fb1(0x1e0)][_0x359fb1(0x1fb)]=_0x5eac72,this;}[_0x1a70bd(0x225)](_0x994b82){const _0x5c04fb=_0x1a70bd;return this[_0x5c04fb(0x21b)]['stroke']||(this[_0x5c04fb(0x21b)][_0x5c04fb(0x1e0)]={}),this['shapeData'][_0x5c04fb(0x1e0)][_0x5c04fb(0x1c9)]=_0x994b82,this;}[_0x1a70bd(0x21e)](_0x8f9c37){const _0x420a55=_0x1a70bd;return this[_0x420a55(0x21b)][_0x420a55(0x1e0)]||(this[_0x420a55(0x21b)][_0x420a55(0x1e0)]={}),this[_0x420a55(0x21b)][_0x420a55(0x1e0)]['dashType']=_0x8f9c37,this;}[_0x1a70bd(0x22c)](_0x26425d){const _0x36d22a=_0x1a70bd;return this[_0x36d22a(0x21b)][_0x36d22a(0x1e0)]||(this[_0x36d22a(0x21b)]['stroke']={}),this[_0x36d22a(0x21b)][_0x36d22a(0x1e0)][_0x36d22a(0x222)]=_0x26425d,this;}[_0x1a70bd(0x1fa)](_0x31897f){const _0x14196c=_0x1a70bd;return this['shapeData'][_0x14196c(0x1e0)]||(this[_0x14196c(0x21b)][_0x14196c(0x1e0)]={}),this['shapeData'][_0x14196c(0x1e0)][_0x14196c(0x219)]=_0x31897f,this;}[_0x1a70bd(0x21c)](_0x332c31){const _0x636c9b=_0x1a70bd;return this[_0x636c9b(0x21b)][_0x636c9b(0x1e0)]||(this[_0x636c9b(0x21b)]['stroke']={}),this[_0x636c9b(0x21b)][_0x636c9b(0x1e0)][_0x636c9b(0x237)]=_0x332c31,this;}['setStrokeLineType'](_0x5c5167){const _0x180970=_0x1a70bd;return this[_0x180970(0x21b)][_0x180970(0x1e0)]||(this[_0x180970(0x21b)][_0x180970(0x1e0)]={}),this[_0x180970(0x21b)]['stroke'][_0x180970(0x244)]=_0x5c5167,this;}['setWidth'](_0x3e7dfb){const _0x35b133=_0x1a70bd;return this[_0x35b133(0x1c9)]=_0x3e7dfb,this;}[_0x1a70bd(0x1ef)](_0x395191){const _0x282712=_0x1a70bd;return this[_0x282712(0x1db)]=_0x395191,this;}['isLineShape'](){const _0x2c2021=_0x1a70bd;let _0xb714bb=this[_0x2c2021(0x1d2)][_0x2c2021(0x1e7)](_0x3fe959)['getShapeModel'](this[_0x2c2021(0x224)],this['subUnitId'],this['drawId']);return _0xb714bb?_0x221386(_0xb714bb[_0x2c2021(0x1f4)]()):this[_0x2c2021(0x1e2)]?_0x221386(this[_0x2c2021(0x1e2)]):!0x1;}[_0x1a70bd(0x1c1)](){const _0x574f1b=_0x1a70bd;let _0x4c8fc5=this[_0x574f1b(0x1d2)][_0x574f1b(0x1e7)](_0x3fe959)[_0x574f1b(0x218)](this['unitId'],this[_0x574f1b(0x203)],this[_0x574f1b(0x1ed)]);if(!_0x4c8fc5)return[];let _0x2903af=this[_0x574f1b(0x1d2)][_0x574f1b(0x1e7)](_0x383207)['getDrawingByParam']({'unitId':this[_0x574f1b(0x224)],'subUnitId':this[_0x574f1b(0x203)],'drawingId':this[_0x574f1b(0x1ed)]});if(!(_0x2903af!=null&&_0x2903af[_0x574f1b(0x204)]))return[];let {width:_0x2fe17b=0x0,height:_0x1c25b0=0x0}=_0x2903af['transform'];return _0x4c8fc5['updateContext']({'width':_0x2fe17b,'height':_0x1c25b0}),_0x4c8fc5[_0x574f1b(0x1fe)]();}['getAdjustPoints'](){const _0x586380=_0x1a70bd;let _0x4bcc3a=this[_0x586380(0x1d2)]['get'](_0x3fe959)['getShapeModel'](this[_0x586380(0x224)],this[_0x586380(0x203)],this[_0x586380(0x1ed)]);if(!_0x4bcc3a)return[];let _0xe362d7=this[_0x586380(0x1d2)]['get'](_0x383207)[_0x586380(0x1d0)]({'unitId':this[_0x586380(0x224)],'subUnitId':this[_0x586380(0x203)],'drawingId':this[_0x586380(0x1ed)]});if(!(_0xe362d7!=null&&_0xe362d7['transform']))return[];let {width:_0x1e8fd3=0x0,height:_0x1157b6=0x0}=_0xe362d7[_0x586380(0x204)];return _0x4bcc3a[_0x586380(0x1cb)]({'width':_0x1e8fd3,'height':_0x1157b6}),_0x4bcc3a[_0x586380(0x227)]();}[_0x1a70bd(0x1c5)](){const _0x5bd0b5=_0x1a70bd;let _0x33ae3b=this[_0x5bd0b5(0x1d2)][_0x5bd0b5(0x1e7)](_0x3fe959)[_0x5bd0b5(0x218)](this[_0x5bd0b5(0x224)],this[_0x5bd0b5(0x203)],this['drawId']);if(!_0x33ae3b||!_0x221386(_0x33ae3b['getShapeType']()))return[];let _0x1ddcf2=this[_0x5bd0b5(0x1d2)][_0x5bd0b5(0x1e7)](_0x383207)[_0x5bd0b5(0x1d0)]({'unitId':this['unitId'],'subUnitId':this[_0x5bd0b5(0x203)],'drawingId':this[_0x5bd0b5(0x1ed)]});if(!(_0x1ddcf2!=null&&_0x1ddcf2[_0x5bd0b5(0x204)]))return[];let {width:_0x30bca2=0x0,height:_0x58a3f2=0x0}=_0x1ddcf2['transform'];return _0x33ae3b[_0x5bd0b5(0x1cb)]({'width':_0x30bca2,'height':_0x58a3f2}),_0x33ae3b[_0x5bd0b5(0x1c5)]();}[_0x1a70bd(0x23d)](){const _0x18e13d=_0x1a70bd;var _0x32e30a;let _0x50d7ac=this['_injector']['get'](_0x3fe959)[_0x18e13d(0x218)](this[_0x18e13d(0x224)],this['subUnitId'],this['drawId']);return _0x50d7ac?(_0x32e30a=_0x50d7ac[_0x18e13d(0x23d)]())==null?null:_0x32e30a:null;}[_0x1a70bd(0x20e)](){const _0x1b3614=_0x1a70bd;var _0x3520fa;let _0x17bc49=this[_0x1b3614(0x1d2)]['get'](_0x3fe959)[_0x1b3614(0x218)](this[_0x1b3614(0x224)],this[_0x1b3614(0x203)],this['drawId']);return _0x17bc49?(_0x3520fa=_0x17bc49[_0x1b3614(0x20e)]())==null?null:_0x3520fa:null;}['build'](){const _0x390994=_0x1a70bd;var _0x582397,_0x2f7dbe;if(!this[_0x390994(0x1e2)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x46d0c6=this[_0x390994(0x1d2)][_0x390994(0x1e7)](_0x2114e5)[_0x390994(0x1fc)](this[_0x390994(0x224)],this[_0x390994(0x203)]);if(!_0x46d0c6)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x390994(0x224)]+_0x390994(0x239)+this[_0x390994(0x203)]+_0x390994(0x1c4));let {transform:_0x138872}=_0x37472c(this[_0x390994(0x224)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x46d0c6);this['x']=this['x']>0x0?this['x']:_0x138872[_0x390994(0x1cf)],this['y']=this['y']>0x0?this['y']:_0x138872[_0x390994(0x243)];}return this['width']=(_0x582397=this[_0x390994(0x1c9)])==null?_0x5e2b87:_0x582397,this['height']=(_0x2f7dbe=this[_0x390994(0x1db)])==null?_0x1c416b:_0x2f7dbe,{'unitId':this[_0x390994(0x224)],'subUnitId':this[_0x390994(0x203)],'shapeId':this[_0x390994(0x1ed)],'shapeType':this[_0x390994(0x1e2)],'shapeData':Object[_0x390994(0x23c)](this['shapeData'])['length']>0x0?this[_0x390994(0x21b)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x390994(0x1c9)],'height':this[_0x390994(0x1db)]};}[_0x1a70bd(0x211)](){const _0x2d04b3=_0x1a70bd;return this[_0x2d04b3(0x1ed)];}[_0x1a70bd(0x1f4)](){const _0x3d4cc9=_0x1a70bd;return this[_0x3d4cc9(0x1e2)];}[_0x1a70bd(0x1d4)](){const _0x5a5b71=_0x1a70bd;return this[_0x5a5b71(0x21b)];}[_0x1a70bd(0x21f)](){return{'x':this['x'],'y':this['y']};}[_0x1a70bd(0x1da)](){const _0x237137=_0x1a70bd;return{'width':this[_0x237137(0x1c9)],'height':this[_0x237137(0x1db)]};}},F=class extends P{constructor(_0x96539e,_0x799170,_0xff615f,_0x3d167a){const _0x4baaa8=_0x1a70bd;super(_0x96539e,_0x799170,_0xff615f,_0x3d167a),N(this,_0x4baaa8(0x21b),{});}[_0x1a70bd(0x1f1)](_0x53401f){const _0x2d10a5=_0x1a70bd;if(!_0x221386(_0x53401f))throw Error('Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20'+_0x53401f+_0x2d10a5(0x240));return super[_0x2d10a5(0x1f1)](_0x53401f),this;}[_0x1a70bd(0x20c)](_0x4063a5){const _0x2e5309=_0x1a70bd;var _0x43f810,_0x2301c6;return(_0x43f810=this[_0x2e5309(0x21b)])!=null&&_0x43f810['ln']||(this[_0x2e5309(0x21b)]['ln']={}),!((_0x2301c6=this[_0x2e5309(0x21b)])==null||(_0x2301c6=_0x2301c6['ln'])==null)&&_0x2301c6[_0x2e5309(0x23f)]||(this[_0x2e5309(0x21b)]['ln'][_0x2e5309(0x23f)]={}),this['shapeData']['ln'][_0x2e5309(0x23f)][_0x2e5309(0x1d7)]=_0x4063a5,this;}[_0x1a70bd(0x21a)](_0x44daec){const _0x387b1e=_0x1a70bd;var _0x203513,_0xf03a46;return(_0x203513=this[_0x387b1e(0x21b)])!=null&&_0x203513['ln']||(this[_0x387b1e(0x21b)]['ln']={}),!((_0xf03a46=this[_0x387b1e(0x21b)])==null||(_0xf03a46=_0xf03a46['ln'])==null)&&_0xf03a46['endArrow']||(this[_0x387b1e(0x21b)]['ln'][_0x387b1e(0x213)]={}),this[_0x387b1e(0x21b)]['ln'][_0x387b1e(0x213)][_0x387b1e(0x1d7)]=_0x44daec,this;}[_0x1a70bd(0x214)](_0x5eb6c9){const _0x485b63=_0x1a70bd;var _0x4e4065,_0x14bcc3;return(_0x4e4065=this[_0x485b63(0x21b)])!=null&&_0x4e4065['ln']||(this[_0x485b63(0x21b)]['ln']={}),!((_0x14bcc3=this[_0x485b63(0x21b)])==null||(_0x14bcc3=_0x14bcc3['ln'])==null)&&_0x14bcc3['startArrow']||(this[_0x485b63(0x21b)]['ln'][_0x485b63(0x23f)]={}),this['shapeData']['ln'][_0x485b63(0x23f)][_0x485b63(0x1c2)]=_0x5eb6c9,this;}[_0x1a70bd(0x1e9)](_0x976007){const _0xfb8c96=_0x1a70bd;var _0x50b1b1,_0x58ddbd;return(_0x50b1b1=this[_0xfb8c96(0x21b)])!=null&&_0x50b1b1['ln']||(this[_0xfb8c96(0x21b)]['ln']={}),!((_0x58ddbd=this[_0xfb8c96(0x21b)])==null||(_0x58ddbd=_0x58ddbd['ln'])==null)&&_0x58ddbd['endArrow']||(this[_0xfb8c96(0x21b)]['ln'][_0xfb8c96(0x213)]={}),this[_0xfb8c96(0x21b)]['ln'][_0xfb8c96(0x213)][_0xfb8c96(0x1c2)]=_0x976007,this;}['build'](){const _0x1f74be=_0x1a70bd;return super[_0x1f74be(0x1f6)]();}[_0x1a70bd(0x20e)](){const _0xb47b30=_0x1a70bd;var _0xdd1ada;return((_0xdd1ada=this['shapeData'])==null||(_0xdd1ada=_0xdd1ada[_0xb47b30(0x1c8)])==null?void 0x0:_0xdd1ada['to'])||null;}[_0x1a70bd(0x23d)](){const _0x1b7648=_0x1a70bd;var _0x5f72dc;return((_0x5f72dc=this[_0x1b7648(0x21b)])==null||(_0x5f72dc=_0x5f72dc[_0x1b7648(0x1c8)])==null?void 0x0:_0x5f72dc['from'])||null;}};function I(_0x13fb05,_0x39e15e,_0x5b92c7,_0x3f99fc,_0x5090f4,_0x2365ae){const _0x2ee033=_0x1a70bd;let _0x468a2b=_0x5090f4[_0x2ee033(0x218)](_0x13fb05,_0x39e15e,_0x5b92c7);if(!_0x468a2b)return null;let _0x258a02=_0x2365ae[_0x2ee033(0x1d0)]({'unitId':_0x13fb05,'subUnitId':_0x39e15e,'drawingId':_0x5b92c7});if(!(_0x258a02!=null&&_0x258a02[_0x2ee033(0x204)]))return null;let {left:_0x403edd=0x0,top:_0x43a0a6=0x0,width:_0x5bbf2b=0x0,height:_0x17281f=0x0,flipX:_0x5a9cec=!0x1,flipY:_0xf291c=!0x1,angle:_0xab7cfe}=_0x258a02['transform'];_0x468a2b[_0x2ee033(0x1cb)]({'width':_0x5bbf2b,'height':_0x17281f});let _0x3b4335=_0x468a2b[_0x2ee033(0x1fe)]()['find'](_0x26d285=>_0x26d285[_0x2ee033(0x1d8)]===_0x3f99fc);if(!_0x3b4335)return null;let _0x34b116=_0x5a9cec?_0x5bbf2b-_0x3b4335['x']:_0x3b4335['x'],_0x58e989=_0xf291c?_0x17281f-_0x3b4335['y']:_0x3b4335['y'];if(_0xab7cfe&&_0xab7cfe!==0x0){let _0x50b6f0=_0xab7cfe*Math['PI']/0xb4,_0x1d4d74=Math[_0x2ee033(0x1ca)](_0x50b6f0),_0x4be184=Math[_0x2ee033(0x1e1)](_0x50b6f0),_0x199304=_0x5bbf2b/0x2,_0x3188f5=_0x17281f/0x2,_0x12a69f=_0x34b116-_0x199304,_0x319a2f=_0x58e989-_0x3188f5;_0x34b116=_0x199304+_0x12a69f*_0x1d4d74-_0x319a2f*_0x4be184,_0x58e989=_0x3188f5+_0x12a69f*_0x4be184+_0x319a2f*_0x1d4d74;}_0x34b116+=_0x403edd,_0x58e989+=_0x43a0a6;let _0x393733=_0x3b4335[_0x2ee033(0x230)]/0xea60;_0x5a9cec&&(_0x393733=0xb4-_0x393733),_0xf291c&&(_0x393733=-_0x393733),_0x393733+=_0xab7cfe||0x0,_0x393733=(_0x393733%0x168+0x168)%0x168;let _0x3614f0=_0x1ccf79({'left':_0x403edd,'top':_0x43a0a6,'width':_0x5bbf2b,'height':_0x17281f},_0xab7cfe||0x0);return{'point':{'x':_0x34b116,'y':_0x58e989},'angle':_0x393733,'bounds':_0x3614f0};}function L(_0x408463,_0x2298b9){const _0x39ef1b=_0x1a70bd;let _0x509e5e=_0x2298b9['x']-_0x408463['x'],_0x30283f=_0x2298b9['y']-_0x408463['y'];return Math[_0x39ef1b(0x242)](_0x509e5e)>=Math[_0x39ef1b(0x242)](_0x30283f)?_0x509e5e>=0x0?0xb4:0x0:_0x30283f>=0x0?0x10e:0x5a;}function R(_0x3c7d22,_0x8eee2c,_0x1a489b,_0x12e955,_0x4a7462,_0x26668c,_0x1bb58c){const _0x39afa8=_0x1a70bd;let _0x43e341=_0x26668c[_0x39afa8(0x218)](_0x3c7d22,_0x8eee2c,_0x1a489b);if(!_0x43e341)return null;let _0x340a6e=_0x1bb58c[_0x39afa8(0x1d0)]({'unitId':_0x3c7d22,'subUnitId':_0x8eee2c,'drawingId':_0x1a489b});if(!(_0x340a6e!=null&&_0x340a6e[_0x39afa8(0x204)]))return null;let {left:_0x3001c8=0x0,top:_0x1071e2=0x0,width:_0x5f1041=0x0,height:_0x29d07f=0x0,flipX:_0x3d5d72=!0x1,flipY:_0x1c8e2a=!0x1}=_0x340a6e['transform'];_0x43e341['updateContext']({'width':_0x5f1041,'height':_0x29d07f});let _0x2a9092=_0x43e341[_0x39afa8(0x1c5)]();if(_0x2a9092[_0x39afa8(0x233)]<0x2)return null;let _0x8ead84=_0x12e955?_0x2a9092[0x0]:_0x2a9092[_0x2a9092[_0x39afa8(0x233)]-0x1],_0x3b78c6=new _0x5dda88({'left':_0x3001c8,'top':_0x1071e2,'width':_0x5f1041,'height':_0x29d07f,'flipX':_0x3d5d72,'flipY':_0x1c8e2a})[_0x39afa8(0x20b)](_0x8ead84);return{'point':_0x3b78c6,'angle':L(_0x4a7462[_0x39afa8(0x1ff)],_0x3b78c6),'bounds':{'left':_0x3b78c6['x'],'top':_0x3b78c6['y'],'width':0x0,'height':0x0}};}var z=class extends _0x26ae22{async[_0x1a70bd(0x1e8)](_0x20dcc5){const _0x167355=_0x1a70bd;let {unitId:_0x3744ab,subUnitId:_0xfa01b9,shapeId:_0x1b4eb0,shapeType:_0x4f892f,shapeData:_0x4db7f8,x:_0x23aa67,y:_0xabd2b4,width:_0x5c9ab0,height:_0x138ad5}=_0x20dcc5;return this[_0x167355(0x21d)]['executeCommand'](_0x286adb['id'],{'unitId':_0x3744ab,'subUnitId':_0xfa01b9,'shapeId':_0x1b4eb0,'shapeType':_0x4f892f,'shapeData':_0x4db7f8,'position':{'x':_0x23aa67,'y':_0xabd2b4},'width':_0x5c9ab0,'height':_0x138ad5});}async[_0x1a70bd(0x201)](_0xdbdefc){const _0x1def2d=_0x1a70bd;let {unitId:_0x2ef823,subUnitId:_0x5470dc,shapeId:_0x4457ad,shapeType:_0x126949,shapeData:_0x8a380f,x:_0x94e417,y:_0x4871c5,width:_0x4de276,height:_0x39b880}=_0xdbdefc;return this[_0x1def2d(0x21d)][_0x1def2d(0x221)](_0x5ddcca['id'],{'unitId':_0x2ef823,'subUnitId':_0x5470dc,'shapeId':_0x4457ad,'shapeType':_0x126949,'shapeData':_0x8a380f,'position':{'x':_0x94e417,'y':_0x4871c5},'width':_0x4de276,'height':_0x39b880});}[_0x1a70bd(0x1ec)](_0x55377d){const _0x2867b5=_0x1a70bd;let _0x3732a7=this[_0x2867b5(0x1f3)]()[_0x2867b5(0x1fd)](),_0x25dda3=this[_0x2867b5(0x22d)]();if(_0x55377d){let _0x2e942d=new P(_0x3732a7,_0x25dda3,_0x55377d[_0x2867b5(0x1ed)],this[_0x2867b5(0x1d2)]);return this[_0x2867b5(0x1f0)](_0x2e942d,_0x3732a7,_0x25dda3,_0x55377d['drawId']),_0x2e942d;}return new P(_0x3732a7,_0x25dda3,_0xca9b09(),this['_injector']);}[_0x1a70bd(0x215)](_0x15611a){const _0x250b03=_0x1a70bd;let _0x4b94bd=this[_0x250b03(0x1f3)]()['getUnitId'](),_0x2c8aed=this[_0x250b03(0x22d)]();if(_0x15611a){let _0x4d04fb=new F(_0x4b94bd,_0x2c8aed,_0x15611a['drawId'],this[_0x250b03(0x1d2)]);return this[_0x250b03(0x1f0)](_0x4d04fb,_0x4b94bd,_0x2c8aed,_0x15611a['drawId']),_0x4d04fb;}return new F(_0x4b94bd,_0x2c8aed,_0xca9b09(),this[_0x250b03(0x1d2)]);}[_0x1a70bd(0x22e)](){const _0x11b29f=_0x1a70bd;let _0x1510ac=this[_0x11b29f(0x1d2)][_0x11b29f(0x1e7)](_0x4b057e),_0x3262d6=this[_0x11b29f(0x1f3)]()[_0x11b29f(0x1fd)](),_0x34cefe=this[_0x11b29f(0x22d)](),_0x591ef9=_0x1510ac[_0x11b29f(0x1f8)](_0x3262d6,_0x34cefe);if(!_0x591ef9)return[];let _0x2dbb27=[];for(let [_0x2d99f4,_0x5602aa]of Object['entries'](_0x591ef9))if(_0x5602aa&&_0x5602aa[_0x11b29f(0x22b)]===_0x7113b1[_0x11b29f(0x20d)]){let _0x5b4721=new P(_0x3262d6,_0x34cefe,_0x2d99f4,this[_0x11b29f(0x1d2)]);this[_0x11b29f(0x1f0)](_0x5b4721,_0x3262d6,_0x34cefe,_0x2d99f4),_0x2dbb27[_0x11b29f(0x23b)](_0x5b4721);}return _0x2dbb27;}[_0x1a70bd(0x1cc)](_0x2a5808){const _0x3585fb=_0x1a70bd;let {unitId:_0x16ac09,subUnitId:_0x4d8785,drawId:_0x478aad}=_0x2a5808;return this[_0x3585fb(0x21d)][_0x3585fb(0x221)](_0x324f42['id'],{'unitId':_0x16ac09,'drawings':[{'unitId':_0x16ac09,'subUnitId':_0x4d8785,'drawingId':_0x478aad,'drawingType':_0x7113b1[_0x3585fb(0x20d)]}]});}async[_0x1a70bd(0x22a)](_0x19108b){const _0x263b7c=_0x1a70bd;let {connector:_0x14be9d,startTarget:_0x51dca8,endTarget:_0x34aea1}=_0x19108b;if(!_0x51dca8&&!_0x34aea1)return!0x1;let _0x29142d=this[_0x263b7c(0x1f3)]()[_0x263b7c(0x1fd)](),_0x291ffb=this[_0x263b7c(0x22d)](),_0x2407e4=this[_0x263b7c(0x1d2)][_0x263b7c(0x1e7)](_0x3fe959),_0xfbc104=this[_0x263b7c(0x1d2)][_0x263b7c(0x1e7)](_0x383207),_0x80f674=_0x2407e4['getShapeModel'](_0x29142d,_0x291ffb,_0x14be9d[_0x263b7c(0x1ed)]);if(!_0x80f674)return!0x1;let _0x3f5884=_0x80f674[_0x263b7c(0x1f4)](),_0x5f02c3=_0x80f674['getShapeRelation'](),_0x4e353b={};for(let _0x3272f9 of _0x80f674[_0x263b7c(0x1f7)]()){let _0x31e993=_0x80f674['getAdjustValueByName'](_0x3272f9);_0x31e993!==void 0x0&&(_0x4e353b[_0x3272f9]=_0x31e993);}let {startInfo:_0x3ba3f1,endInfo:_0x170999}=this[_0x263b7c(0x228)](_0x29142d,_0x291ffb,_0x14be9d,_0x80f674,_0x51dca8,_0x34aea1,_0x2407e4,_0xfbc104,_0x5f02c3);if(!_0x3ba3f1||!_0x170999)return!0x1;let _0x105ef6=_0x5f27ec(_0x4432fe(_0x3ba3f1,_0x170999,_0x3f5884),_0x3f5884),_0x1e5f69={};return _0x51dca8?_0x1e5f69['from']={'shapeId':_0x51dca8['shape'][_0x263b7c(0x1ed)],'cxnIndex':_0x51dca8['connectionSiteIndex']}:_0x5f02c3!=null&&_0x5f02c3[_0x263b7c(0x1ee)]&&(_0x1e5f69['from']=_0x5f02c3['from']),_0x34aea1?_0x1e5f69['to']={'shapeId':_0x34aea1[_0x263b7c(0x22f)]['drawId'],'cxnIndex':_0x34aea1[_0x263b7c(0x231)]}:_0x5f02c3!=null&&_0x5f02c3['to']&&(_0x1e5f69['to']=_0x5f02c3['to']),this[_0x263b7c(0x21d)]['executeCommand'](_0x4cacb3['id'],{'unitId':_0x29142d,'subUnitId':_0x291ffb,'connectorShapeId':_0x14be9d[_0x263b7c(0x1ed)],'width':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1c9)],'height':_0x105ef6[_0x263b7c(0x1d5)]['height'],'left':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1cf)],'top':_0x105ef6['worldRect']['top'],'flipX':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1f9)]||!0x1,'flipY':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1e4)]||!0x1,'oldAdjustValues':_0x4e353b,'newAdjustValues':_0x105ef6[_0x263b7c(0x1e5)],'newLineType':_0x105ef6[_0x263b7c(0x220)],'oldLineType':_0x3f5884,'rotation':_0x105ef6[_0x263b7c(0x241)],'oldRelation':_0x5f02c3,'newRelation':_0x1e5f69});}[_0x1a70bd(0x1f0)](_0x2cb91c,_0x572092,_0x2e143a,_0x45ec04){const _0xd2b492=_0x1a70bd;let _0x10bd8c=this[_0xd2b492(0x1d2)]['get'](_0x383207)[_0xd2b492(0x1d0)]({'unitId':_0x572092,'subUnitId':_0x2e143a,'drawingId':_0x45ec04});if(_0x10bd8c!=null&&_0x10bd8c[_0xd2b492(0x204)]){var _0x3d08aa,_0x2acd3c,_0x2490b1,_0x1dfdf2;_0x2cb91c['x']=(_0x3d08aa=_0x10bd8c['transform']['left'])==null?0x0:_0x3d08aa,_0x2cb91c['y']=(_0x2acd3c=_0x10bd8c['transform']['top'])==null?0x0:_0x2acd3c,_0x2cb91c[_0xd2b492(0x1c9)]=(_0x2490b1=_0x10bd8c[_0xd2b492(0x204)][_0xd2b492(0x1c9)])==null?_0x2cb91c['width']:_0x2490b1,_0x2cb91c[_0xd2b492(0x1db)]=(_0x1dfdf2=_0x10bd8c['transform']['height'])==null?_0x2cb91c[_0xd2b492(0x1db)]:_0x1dfdf2;}let _0x3ad149=this[_0xd2b492(0x1d2)][_0xd2b492(0x1e7)](_0x3fe959)[_0xd2b492(0x218)](_0x572092,_0x2e143a,_0x45ec04);if(_0x3ad149){_0x2cb91c[_0xd2b492(0x1e2)]=_0x3ad149[_0xd2b492(0x1f4)]();let _0x6936fb=_0x3ad149[_0xd2b492(0x1d4)]();_0x6936fb&&(_0x2cb91c[_0xd2b492(0x21b)]=JSON['parse'](JSON[_0xd2b492(0x205)](_0x6936fb)));}}['_resolveEndpoints'](_0xa5f090,_0x29583f,_0x3f01ae,_0x4676ec,_0x580e57,_0x558ac6,_0x2b21ae,_0x43d1b3,_0x341001){const _0x1753c8=_0x1a70bd;let _0x15e03d=null,_0x3f1b73=null;return _0x580e57&&(_0x15e03d=I(_0xa5f090,_0x29583f,_0x580e57[_0x1753c8(0x22f)][_0x1753c8(0x1ed)],_0x580e57[_0x1753c8(0x231)],_0x2b21ae,_0x43d1b3)),_0x558ac6&&(_0x3f1b73=I(_0xa5f090,_0x29583f,_0x558ac6['shape'][_0x1753c8(0x1ed)],_0x558ac6[_0x1753c8(0x231)],_0x2b21ae,_0x43d1b3)),_0x15e03d||(_0x15e03d=this[_0x1753c8(0x236)](_0xa5f090,_0x29583f,_0x3f01ae[_0x1753c8(0x1ed)],!0x0,_0x3f1b73,_0x341001==null?void 0x0:_0x341001[_0x1753c8(0x1ee)],_0x2b21ae,_0x43d1b3)),_0x3f1b73||(_0x3f1b73=this[_0x1753c8(0x236)](_0xa5f090,_0x29583f,_0x3f01ae['drawId'],!0x1,_0x15e03d,_0x341001==null?void 0x0:_0x341001['to'],_0x2b21ae,_0x43d1b3)),{'startInfo':_0x15e03d,'endInfo':_0x3f1b73};}[_0x1a70bd(0x236)](_0x39e1e9,_0x5e3334,_0x2c157b,_0x234abc,_0x2eac03,_0x3bf25c,_0x1a168f,_0x8d9eb5){const _0x3af242=_0x1a70bd;if(_0x3bf25c){let _0x299b72=I(_0x39e1e9,_0x5e3334,_0x3bf25c['shapeId'],_0x3bf25c[_0x3af242(0x1df)],_0x1a168f,_0x8d9eb5);if(_0x299b72)return _0x299b72;}return _0x2eac03?R(_0x39e1e9,_0x5e3334,_0x2c157b,_0x234abc,_0x2eac03,_0x1a168f,_0x8d9eb5):null;}};function _0x2c14(_0x8f1f09,_0x1b9adb){_0x8f1f09=_0x8f1f09-0x1c1;const _0x2fe922=_0x2fe9();let _0x2c1456=_0x2fe922[_0x8f1f09];return _0x2c1456;}_0x26ae22[_0x1a70bd(0x206)](z);export{F as FConnectorShape,P as FShape};
1
+ const _0x2073d0=_0x50e3;(function(_0x475033,_0x1bce5f){const _0x2284ed=_0x50e3,_0x49e1ef=_0x475033();while(!![]){try{const _0x3ab621=parseInt(_0x2284ed(0x17b))/0x1*(-parseInt(_0x2284ed(0x11f))/0x2)+-parseInt(_0x2284ed(0x10e))/0x3+-parseInt(_0x2284ed(0x14e))/0x4+-parseInt(_0x2284ed(0x137))/0x5*(-parseInt(_0x2284ed(0x16d))/0x6)+-parseInt(_0x2284ed(0x11a))/0x7*(-parseInt(_0x2284ed(0x145))/0x8)+parseInt(_0x2284ed(0x173))/0x9*(-parseInt(_0x2284ed(0x105))/0xa)+-parseInt(_0x2284ed(0x164))/0xb*(-parseInt(_0x2284ed(0x15b))/0xc);if(_0x3ab621===_0x1bce5f)break;else _0x49e1ef['push'](_0x49e1ef['shift']());}catch(_0x4ae1d6){_0x49e1ef['push'](_0x49e1ef['shift']());}}}(_0x3850,0x2ecc9));import{ConnectorCoordinateTransform as _0x3d6405,ShapeArrowSizeEnum as _0x5ad41c,ShapeArrowTypeEnum as _0x489d00,ShapeFillEnum as _0x3a3330,ShapeGradientTypeEnum as _0x528bbb,ShapeLineCapEnum as _0x5bde8f,ShapeLineDashEnum as _0x9c15d2,ShapeLineJoinEnum as _0x38c71a,ShapeLineTypeEnum as _0xd5ba2a,ShapeTypeEnum as _0x19ac2c,computeConnectorRouteLayout as _0x416057,getBasicShapeRotateBound as _0x2e4726,isConnectorShape as _0x41643b,routeConnectorLineShape as _0x232c7e}from'@univerjs-pro/engine-shape';import{FEnum as _0x285a81}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x54d06d,DEFAULT_SHAPE_WIDTH as _0x2bb6ff,InsertShapeCommand as _0x531a5c,SetShapeDrawingDataCommand as _0x4a74ed,SheetsShapeService as _0x20e1c9,UpdateConnectorRelationCommand as _0x127ca0}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x232e10,generateRandomId as _0x1e925e}from'@univerjs/core';import{IDrawingManagerService as _0x5859f8}from'@univerjs/drawing';import{SheetSkeletonService as _0x2a796e,convertPositionCellToSheetOverGrid as _0x3621c7}from'@univerjs/sheets';import{ISheetDrawingService as _0x286869,RemoveSheetDrawingCommand as _0x4ddd72}from'@univerjs/sheets-drawing';import{FWorksheet as _0x26843a}from'@univerjs/sheets/facade';var k=class extends _0x285a81{get[_0x2073d0(0x176)](){return _0x19ac2c;}get[_0x2073d0(0x100)](){return _0x3a3330;}get['ShapeGradientTypeEnum'](){return _0x528bbb;}get['ShapeLineTypeEnum'](){return _0xd5ba2a;}get[_0x2073d0(0x14b)](){return _0x9c15d2;}get[_0x2073d0(0x16c)](){return _0x5bde8f;}get[_0x2073d0(0x14a)](){return _0x38c71a;}get[_0x2073d0(0x172)](){return _0x489d00;}get[_0x2073d0(0xff)](){return _0x5ad41c;}};_0x285a81[_0x2073d0(0x179)](k);function A(_0x225554){'@babel/helpers - typeof';const _0x20d739=_0x2073d0;return A=typeof Symbol==_0x20d739(0x12b)&&typeof Symbol[_0x20d739(0x142)]==_0x20d739(0x16b)?function(_0x52afcc){return typeof _0x52afcc;}:function(_0x56b91b){const _0x1db4c9=_0x20d739;return _0x56b91b&&typeof Symbol==_0x1db4c9(0x12b)&&_0x56b91b[_0x1db4c9(0x12c)]===Symbol&&_0x56b91b!==Symbol[_0x1db4c9(0x119)]?_0x1db4c9(0x16b):typeof _0x56b91b;},A(_0x225554);}function j(_0x228039,_0x1741b4){const _0x3fa298=_0x2073d0;if(A(_0x228039)!=_0x3fa298(0xfd)||!_0x228039)return _0x228039;var _0x19a606=_0x228039[Symbol[_0x3fa298(0x132)]];if(_0x19a606!==void 0x0){var _0x1a93f6=_0x19a606[_0x3fa298(0x110)](_0x228039,_0x1741b4||_0x3fa298(0x12d));if(A(_0x1a93f6)!=_0x3fa298(0xfd))return _0x1a93f6;throw TypeError(_0x3fa298(0x174));}return(_0x1741b4===_0x3fa298(0x149)?String:Number)(_0x228039);}function M(_0x11b371){const _0x562743=_0x2073d0;var _0x16ade0=j(_0x11b371,_0x562743(0x149));return A(_0x16ade0)==_0x562743(0x16b)?_0x16ade0:_0x16ade0+'';}function N(_0x4e130c,_0x30f0b1,_0x3b46ce){const _0x2393fa=_0x2073d0;return(_0x30f0b1=M(_0x30f0b1))in _0x4e130c?Object[_0x2393fa(0x13f)](_0x4e130c,_0x30f0b1,{'value':_0x3b46ce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e130c[_0x30f0b1]=_0x3b46ce,_0x4e130c;}var P=class{constructor(_0x20e8ef,_0x34908c,_0x34c3c7,_0x15c43e){const _0x7cf93d=_0x2073d0;N(this,'unitId',void 0x0),N(this,_0x7cf93d(0x134),void 0x0),N(this,_0x7cf93d(0x124),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x7cf93d(0x128),_0x2bb6ff),N(this,'height',_0x54d06d),N(this,_0x7cf93d(0x108),void 0x0),N(this,'shapeData',{}),N(this,'_injector',void 0x0),this['unitId']=_0x20e8ef,this[_0x7cf93d(0x134)]=_0x34908c,this['drawId']=_0x34c3c7||_0x1e925e(),this['_injector']=_0x15c43e;}['setPosition'](_0x419b52,_0x1c0591,_0x5e8729,_0x4e7134){const _0x341e00=_0x2073d0;let _0x595d86=this['_injector'][_0x341e00(0x141)](_0x2a796e)[_0x341e00(0x150)](this[_0x341e00(0x13a)],this['subUnitId']);if(!_0x595d86)throw Error(_0x341e00(0x10c)+this[_0x341e00(0x13a)]+_0x341e00(0x11b)+this[_0x341e00(0x134)]+_0x341e00(0x118));let {transform:_0x1ad084}=_0x3621c7(this['unitId'],this[_0x341e00(0x134)],{'row':_0x419b52,'column':_0x1c0591,'rowOffset':_0x5e8729,'columnOffset':_0x4e7134},0x1,0x1,_0x595d86);return this['x']=_0x1ad084[_0x341e00(0x16f)],this['y']=_0x1ad084['top'],this;}[_0x2073d0(0x125)](_0x530858,_0x83146c){return this['x']=_0x530858,this['y']=_0x83146c,this;}[_0x2073d0(0x17a)](_0x3c453a){const _0x37eb18=_0x2073d0;return this[_0x37eb18(0x108)]=_0x3c453a,this;}[_0x2073d0(0x102)](_0x40337b,_0x1f0d70){const _0x42b5b9=_0x2073d0;return this['shapeData'][_0x42b5b9(0x14f)]||(this[_0x42b5b9(0x113)][_0x42b5b9(0x14f)]={}),this[_0x42b5b9(0x113)][_0x42b5b9(0x14f)][_0x42b5b9(0x117)]=_0x3a3330[_0x42b5b9(0x15f)],_0x40337b!==void 0x0&&(this['shapeData'][_0x42b5b9(0x14f)]['color']=_0x40337b),_0x1f0d70!==void 0x0&&(this[_0x42b5b9(0x113)]['fill'][_0x42b5b9(0x111)]=_0x1f0d70),this;}['setShapeGradientFill'](_0x20c8ed,_0x1c47bf,_0x54a4a5){const _0x136a73=_0x2073d0;if(_0x1c47bf===void 0x0||_0x1c47bf[_0x136a73(0x109)]===0x0)throw Error(_0x136a73(0x15d));return this[_0x136a73(0x113)][_0x136a73(0x14f)]||(this[_0x136a73(0x113)][_0x136a73(0x14f)]={}),this[_0x136a73(0x113)]['fill'][_0x136a73(0x103)]=_0x1c47bf,this[_0x136a73(0x113)]['fill']['fillType']=_0x3a3330['GradientFill'],this[_0x136a73(0x113)][_0x136a73(0x14f)][_0x136a73(0x133)]=_0x20c8ed,_0x54a4a5!==void 0x0&&(this['shapeData'][_0x136a73(0x14f)][_0x136a73(0x148)]=_0x54a4a5),this;}['setNoneFill'](){const _0x4d0f6a=_0x2073d0;return this[_0x4d0f6a(0x113)][_0x4d0f6a(0x14f)]={'fillType':_0x3a3330['NoFill']},this;}['setStrokeColor'](_0x2cf5c4){const _0x33a6da=_0x2073d0;return this['shapeData'][_0x33a6da(0x13d)]||(this['shapeData'][_0x33a6da(0x13d)]={}),this[_0x33a6da(0x113)]['stroke'][_0x33a6da(0x144)]=_0x2cf5c4,this;}[_0x2073d0(0x104)](_0x3edf8f){const _0x21cd92=_0x2073d0;return this[_0x21cd92(0x113)][_0x21cd92(0x13d)]||(this[_0x21cd92(0x113)][_0x21cd92(0x13d)]={}),this[_0x21cd92(0x113)]['stroke']['width']=_0x3edf8f,this;}[_0x2073d0(0x154)](_0xc8b615){const _0x141a2f=_0x2073d0;return this[_0x141a2f(0x113)][_0x141a2f(0x13d)]||(this['shapeData'][_0x141a2f(0x13d)]={}),this[_0x141a2f(0x113)][_0x141a2f(0x13d)][_0x141a2f(0x177)]=_0xc8b615,this;}[_0x2073d0(0x170)](_0x27009f){const _0x3eca22=_0x2073d0;return this[_0x3eca22(0x113)][_0x3eca22(0x13d)]||(this[_0x3eca22(0x113)][_0x3eca22(0x13d)]={}),this[_0x3eca22(0x113)][_0x3eca22(0x13d)][_0x3eca22(0x162)]=_0x27009f,this;}[_0x2073d0(0x175)](_0x120d8d){const _0x120387=_0x2073d0;return this[_0x120387(0x113)][_0x120387(0x13d)]||(this[_0x120387(0x113)][_0x120387(0x13d)]={}),this[_0x120387(0x113)][_0x120387(0x13d)][_0x120387(0x107)]=_0x120d8d,this;}[_0x2073d0(0x139)](_0x1ec9e1){const _0x21fd27=_0x2073d0;return this[_0x21fd27(0x113)][_0x21fd27(0x13d)]||(this[_0x21fd27(0x113)][_0x21fd27(0x13d)]={}),this['shapeData'][_0x21fd27(0x13d)][_0x21fd27(0x111)]=_0x1ec9e1,this;}[_0x2073d0(0x160)](_0x250605){const _0x243c75=_0x2073d0;return this[_0x243c75(0x113)]['stroke']||(this[_0x243c75(0x113)]['stroke']={}),this['shapeData'][_0x243c75(0x13d)]['lineStrokeType']=_0x250605,this;}[_0x2073d0(0x163)](_0x947657){const _0x2f31fd=_0x2073d0;return this[_0x2f31fd(0x128)]=_0x947657,this;}['setHeight'](_0x4617d3){const _0x17d03b=_0x2073d0;return this[_0x17d03b(0x152)]=_0x4617d3,this;}['isLineShape'](){const _0x3efe3b=_0x2073d0;let _0x15f071=this[_0x3efe3b(0x147)][_0x3efe3b(0x141)](_0x20e1c9)[_0x3efe3b(0x138)](this[_0x3efe3b(0x13a)],this[_0x3efe3b(0x134)],this[_0x3efe3b(0x124)]);return _0x15f071?_0x41643b(_0x15f071['getShapeType']()):this[_0x3efe3b(0x108)]?_0x41643b(this[_0x3efe3b(0x108)]):!0x1;}[_0x2073d0(0x10a)](){const _0x35cc6f=_0x2073d0;let _0x57d285=this[_0x35cc6f(0x147)][_0x35cc6f(0x141)](_0x20e1c9)['getShapeModel'](this['unitId'],this[_0x35cc6f(0x134)],this[_0x35cc6f(0x124)]);if(!_0x57d285)return[];let _0x21b566=this['_injector'][_0x35cc6f(0x141)](_0x5859f8)[_0x35cc6f(0x167)]({'unitId':this[_0x35cc6f(0x13a)],'subUnitId':this[_0x35cc6f(0x134)],'drawingId':this[_0x35cc6f(0x124)]});if(!(_0x21b566!=null&&_0x21b566[_0x35cc6f(0x126)]))return[];let {width:_0x499262=0x0,height:_0x84cab0=0x0}=_0x21b566[_0x35cc6f(0x126)];return _0x57d285['updateContext']({'width':_0x499262,'height':_0x84cab0}),_0x57d285[_0x35cc6f(0x17d)]();}['getAdjustPoints'](){const _0x366fcb=_0x2073d0;let _0x3a8d6e=this[_0x366fcb(0x147)][_0x366fcb(0x141)](_0x20e1c9)['getShapeModel'](this[_0x366fcb(0x13a)],this[_0x366fcb(0x134)],this[_0x366fcb(0x124)]);if(!_0x3a8d6e)return[];let _0x32d5e7=this[_0x366fcb(0x147)][_0x366fcb(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x366fcb(0x134)],'drawingId':this['drawId']});if(!(_0x32d5e7!=null&&_0x32d5e7[_0x366fcb(0x126)]))return[];let {width:_0x31ad76=0x0,height:_0x3ccd74=0x0}=_0x32d5e7[_0x366fcb(0x126)];return _0x3a8d6e[_0x366fcb(0x178)]({'width':_0x31ad76,'height':_0x3ccd74}),_0x3a8d6e[_0x366fcb(0x181)]();}[_0x2073d0(0x15c)](){const _0x35b28e=_0x2073d0;let _0x5707ab=this[_0x35b28e(0x147)]['get'](_0x20e1c9)[_0x35b28e(0x138)](this[_0x35b28e(0x13a)],this[_0x35b28e(0x134)],this[_0x35b28e(0x124)]);if(!_0x5707ab||!_0x41643b(_0x5707ab['getShapeType']()))return[];let _0x2cf68a=this[_0x35b28e(0x147)][_0x35b28e(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':this[_0x35b28e(0x13a)],'subUnitId':this[_0x35b28e(0x134)],'drawingId':this['drawId']});if(!(_0x2cf68a!=null&&_0x2cf68a[_0x35b28e(0x126)]))return[];let {width:_0x4d9961=0x0,height:_0x1d74ec=0x0}=_0x2cf68a[_0x35b28e(0x126)];return _0x5707ab['updateContext']({'width':_0x4d9961,'height':_0x1d74ec}),_0x5707ab[_0x35b28e(0x15c)]();}[_0x2073d0(0x13e)](){const _0x30fa57=_0x2073d0;var _0x3c1b13;let _0x2a172c=this['_injector'][_0x30fa57(0x141)](_0x20e1c9)[_0x30fa57(0x138)](this['unitId'],this[_0x30fa57(0x134)],this[_0x30fa57(0x124)]);return _0x2a172c?(_0x3c1b13=_0x2a172c[_0x30fa57(0x13e)]())==null?null:_0x3c1b13:null;}['getEndConnectInfo'](){const _0x2dce52=_0x2073d0;var _0x49a276;let _0x34e3a4=this[_0x2dce52(0x147)][_0x2dce52(0x141)](_0x20e1c9)[_0x2dce52(0x138)](this[_0x2dce52(0x13a)],this[_0x2dce52(0x134)],this[_0x2dce52(0x124)]);return _0x34e3a4?(_0x49a276=_0x34e3a4[_0x2dce52(0x12a)]())==null?null:_0x49a276:null;}['build'](){const _0x159906=_0x2073d0;var _0x39faed,_0x35fb85;if(!this['shapeType'])throw Error(_0x159906(0x112));if(this['x']===0x0||this['y']===0x0){let _0x5c04f9=this[_0x159906(0x147)][_0x159906(0x141)](_0x2a796e)[_0x159906(0x150)](this[_0x159906(0x13a)],this[_0x159906(0x134)]);if(!_0x5c04f9)throw Error(_0x159906(0x10c)+this[_0x159906(0x13a)]+_0x159906(0x11b)+this[_0x159906(0x134)]+_0x159906(0x118));let {transform:_0x23f34f}=_0x3621c7(this[_0x159906(0x13a)],this[_0x159906(0x134)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5c04f9);this['x']=this['x']>0x0?this['x']:_0x23f34f[_0x159906(0x16f)],this['y']=this['y']>0x0?this['y']:_0x23f34f['top'];}return this['width']=(_0x39faed=this[_0x159906(0x128)])==null?_0x2bb6ff:_0x39faed,this[_0x159906(0x152)]=(_0x35fb85=this[_0x159906(0x152)])==null?_0x54d06d:_0x35fb85,{'unitId':this[_0x159906(0x13a)],'subUnitId':this[_0x159906(0x134)],'shapeId':this[_0x159906(0x124)],'shapeType':this[_0x159906(0x108)],'shapeData':Object['keys'](this['shapeData'])[_0x159906(0x109)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x159906(0x128)],'height':this['height']};}[_0x2073d0(0x15e)](){const _0x36fd05=_0x2073d0;return this[_0x36fd05(0x124)];}[_0x2073d0(0x166)](){const _0xf3e0f=_0x2073d0;return this[_0xf3e0f(0x108)];}[_0x2073d0(0x13b)](){return this['shapeData'];}[_0x2073d0(0x13c)](){return{'x':this['x'],'y':this['y']};}[_0x2073d0(0x153)](){const _0x431f8e=_0x2073d0;return{'width':this[_0x431f8e(0x128)],'height':this[_0x431f8e(0x152)]};}},F=class extends P{constructor(_0x1d35e4,_0x32a7ff,_0xb91f31,_0x5c3633){const _0x300717=_0x2073d0;super(_0x1d35e4,_0x32a7ff,_0xb91f31,_0x5c3633),N(this,_0x300717(0x113),{});}[_0x2073d0(0x17a)](_0x3fc44b){const _0x11a330=_0x2073d0;if(!_0x41643b(_0x3fc44b))throw Error(_0x11a330(0x15a)+_0x3fc44b+_0x11a330(0x11d));return super[_0x11a330(0x17a)](_0x3fc44b),this;}[_0x2073d0(0x169)](_0x54b41b){const _0x492bc8=_0x2073d0;var _0x2a9c30,_0x2ba152;return(_0x2a9c30=this[_0x492bc8(0x113)])!=null&&_0x2a9c30['ln']||(this[_0x492bc8(0x113)]['ln']={}),!((_0x2ba152=this['shapeData'])==null||(_0x2ba152=_0x2ba152['ln'])==null)&&_0x2ba152[_0x492bc8(0x135)]||(this[_0x492bc8(0x113)]['ln'][_0x492bc8(0x135)]={}),this['shapeData']['ln'][_0x492bc8(0x135)][_0x492bc8(0x106)]=_0x54b41b,this;}[_0x2073d0(0x129)](_0x38835a){const _0x2a9fc6=_0x2073d0;var _0x59c056,_0x326b37;return(_0x59c056=this[_0x2a9fc6(0x113)])!=null&&_0x59c056['ln']||(this[_0x2a9fc6(0x113)]['ln']={}),!((_0x326b37=this[_0x2a9fc6(0x113)])==null||(_0x326b37=_0x326b37['ln'])==null)&&_0x326b37[_0x2a9fc6(0x16a)]||(this[_0x2a9fc6(0x113)]['ln'][_0x2a9fc6(0x16a)]={}),this[_0x2a9fc6(0x113)]['ln'][_0x2a9fc6(0x16a)][_0x2a9fc6(0x106)]=_0x38835a,this;}[_0x2073d0(0x151)](_0x51992a){const _0x25b33a=_0x2073d0;var _0x49a6a2,_0xee6c92;return(_0x49a6a2=this[_0x25b33a(0x113)])!=null&&_0x49a6a2['ln']||(this[_0x25b33a(0x113)]['ln']={}),!((_0xee6c92=this[_0x25b33a(0x113)])==null||(_0xee6c92=_0xee6c92['ln'])==null)&&_0xee6c92[_0x25b33a(0x135)]||(this['shapeData']['ln'][_0x25b33a(0x135)]={}),this[_0x25b33a(0x113)]['ln'][_0x25b33a(0x135)]['size']=_0x51992a,this;}[_0x2073d0(0x10f)](_0x428a18){const _0x1341d4=_0x2073d0;var _0x193612,_0x598518;return(_0x193612=this[_0x1341d4(0x113)])!=null&&_0x193612['ln']||(this[_0x1341d4(0x113)]['ln']={}),!((_0x598518=this['shapeData'])==null||(_0x598518=_0x598518['ln'])==null)&&_0x598518[_0x1341d4(0x16a)]||(this[_0x1341d4(0x113)]['ln'][_0x1341d4(0x16a)]={}),this['shapeData']['ln']['endArrow'][_0x1341d4(0x114)]=_0x428a18,this;}[_0x2073d0(0x123)](){return super['build']();}[_0x2073d0(0x12a)](){const _0x48a8cb=_0x2073d0;var _0x508e8f;return((_0x508e8f=this[_0x48a8cb(0x113)])==null||(_0x508e8f=_0x508e8f[_0x48a8cb(0x10d)])==null?void 0x0:_0x508e8f['to'])||null;}[_0x2073d0(0x13e)](){const _0x16f374=_0x2073d0;var _0x36e906;return((_0x36e906=this['shapeData'])==null||(_0x36e906=_0x36e906[_0x16f374(0x10d)])==null?void 0x0:_0x36e906[_0x16f374(0x140)])||null;}};function _0x50e3(_0x2fa40d,_0xfe81f8){_0x2fa40d=_0x2fa40d-0xfd;const _0x3850f=_0x3850();let _0x50e3fb=_0x3850f[_0x2fa40d];return _0x50e3fb;}function I(_0x1ea84a,_0x11c3bb,_0x4d5b2b,_0x144136,_0x1fbdfb,_0x42223b){const _0x4eb539=_0x2073d0;let _0x36eb6c=_0x1fbdfb[_0x4eb539(0x138)](_0x1ea84a,_0x11c3bb,_0x4d5b2b);if(!_0x36eb6c)return null;let _0x39c776=_0x42223b[_0x4eb539(0x167)]({'unitId':_0x1ea84a,'subUnitId':_0x11c3bb,'drawingId':_0x4d5b2b});if(!(_0x39c776!=null&&_0x39c776[_0x4eb539(0x126)]))return null;let {left:_0x1441a3=0x0,top:_0x3ba489=0x0,width:_0x3839cb=0x0,height:_0x139193=0x0,flipX:_0x15b9c8=!0x1,flipY:_0xd9d57e=!0x1,angle:_0x4040b5}=_0x39c776[_0x4eb539(0x126)];_0x36eb6c[_0x4eb539(0x178)]({'width':_0x3839cb,'height':_0x139193});let _0xb55f01=_0x36eb6c[_0x4eb539(0x17d)]()[_0x4eb539(0x168)](_0x38b637=>_0x38b637[_0x4eb539(0x155)]===_0x144136);if(!_0xb55f01)return null;let _0x580226=_0x15b9c8?_0x3839cb-_0xb55f01['x']:_0xb55f01['x'],_0x1d2d55=_0xd9d57e?_0x139193-_0xb55f01['y']:_0xb55f01['y'];if(_0x4040b5&&_0x4040b5!==0x0){let _0x76d71d=_0x4040b5*Math['PI']/0xb4,_0x4da6ba=Math['cos'](_0x76d71d),_0x4ac009=Math['sin'](_0x76d71d),_0x5ac38a=_0x3839cb/0x2,_0x58cf81=_0x139193/0x2,_0x49b4c3=_0x580226-_0x5ac38a,_0x303cea=_0x1d2d55-_0x58cf81;_0x580226=_0x5ac38a+_0x49b4c3*_0x4da6ba-_0x303cea*_0x4ac009,_0x1d2d55=_0x58cf81+_0x49b4c3*_0x4ac009+_0x303cea*_0x4da6ba;}_0x580226+=_0x1441a3,_0x1d2d55+=_0x3ba489;let _0xee3483=_0xb55f01[_0x4eb539(0x127)]/0xea60;_0x15b9c8&&(_0xee3483=0xb4-_0xee3483),_0xd9d57e&&(_0xee3483=-_0xee3483),_0xee3483+=_0x4040b5||0x0,_0xee3483=(_0xee3483%0x168+0x168)%0x168;let _0x97dd2a=_0x2e4726({'left':_0x1441a3,'top':_0x3ba489,'width':_0x3839cb,'height':_0x139193},_0x4040b5||0x0);return{'point':{'x':_0x580226,'y':_0x1d2d55},'angle':_0xee3483,'bounds':_0x97dd2a};}function L(_0xd9db51,_0x427b52){const _0x14836b=_0x2073d0;let _0x4f9a3e=_0x427b52['x']-_0xd9db51['x'],_0x2f3722=_0x427b52['y']-_0xd9db51['y'];return Math[_0x14836b(0x146)](_0x4f9a3e)>=Math[_0x14836b(0x146)](_0x2f3722)?_0x4f9a3e>=0x0?0xb4:0x0:_0x2f3722>=0x0?0x10e:0x5a;}function R(_0x1e624f,_0x1205be,_0x442b34,_0x2fa904,_0x2c28a0,_0x25401d,_0x1d5964){const _0x36f955=_0x2073d0;let _0x36fa44=_0x25401d[_0x36f955(0x138)](_0x1e624f,_0x1205be,_0x442b34);if(!_0x36fa44)return null;let _0x190196=_0x1d5964[_0x36f955(0x167)]({'unitId':_0x1e624f,'subUnitId':_0x1205be,'drawingId':_0x442b34});if(!(_0x190196!=null&&_0x190196['transform']))return null;let {left:_0x4df48d=0x0,top:_0x3d4101=0x0,width:_0x5362e1=0x0,height:_0x1e72f2=0x0,flipX:_0xf75ca4=!0x1,flipY:_0x47df41=!0x1}=_0x190196[_0x36f955(0x126)];_0x36fa44[_0x36f955(0x178)]({'width':_0x5362e1,'height':_0x1e72f2});let _0x37cecd=_0x36fa44[_0x36f955(0x15c)]();if(_0x37cecd['length']<0x2)return null;let _0x4e2914=_0x2fa904?_0x37cecd[0x0]:_0x37cecd[_0x37cecd[_0x36f955(0x109)]-0x1],_0x32ea50=new _0x3d6405({'left':_0x4df48d,'top':_0x3d4101,'width':_0x5362e1,'height':_0x1e72f2,'flipX':_0xf75ca4,'flipY':_0x47df41})[_0x36f955(0x122)](_0x4e2914);return{'point':_0x32ea50,'angle':L(_0x2c28a0[_0x36f955(0x11e)],_0x32ea50),'bounds':{'left':_0x32ea50['x'],'top':_0x32ea50['y'],'width':0x0,'height':0x0}};}var z=class extends _0x26843a{async[_0x2073d0(0x12f)](_0x228b61){const _0x18db8e=_0x2073d0;let {unitId:_0x59bb3b,subUnitId:_0x27dfbf,shapeId:_0x2b017d,shapeType:_0x3cb272,shapeData:_0x175002,x:_0x32eb35,y:_0x2339a1,width:_0x56517e,height:_0x2950ff}=_0x228b61;return this[_0x18db8e(0x17e)]['executeCommand'](_0x531a5c['id'],{'unitId':_0x59bb3b,'subUnitId':_0x27dfbf,'shapeId':_0x2b017d,'shapeType':_0x3cb272,'shapeData':_0x175002,'position':{'x':_0x32eb35,'y':_0x2339a1},'width':_0x56517e,'height':_0x2950ff});}async[_0x2073d0(0x182)](_0x2b95f0){const _0x32fbc6=_0x2073d0;let {unitId:_0x38909b,subUnitId:_0x29ed2d,shapeId:_0x596c6f,shapeType:_0x3ddeba,shapeData:_0x3b9f1a,x:_0x3c101d,y:_0x1bd4d0,width:_0x221812,height:_0x3a370f}=_0x2b95f0;return this[_0x32fbc6(0x17e)][_0x32fbc6(0x161)](_0x4a74ed['id'],{'unitId':_0x38909b,'subUnitId':_0x29ed2d,'shapeId':_0x596c6f,'shapeType':_0x3ddeba,'shapeData':_0x3b9f1a,'position':{'x':_0x3c101d,'y':_0x1bd4d0},'width':_0x221812,'height':_0x3a370f});}[_0x2073d0(0x183)](_0x566203){const _0x4aedf4=_0x2073d0;let _0x2a5338=this[_0x4aedf4(0x165)]()[_0x4aedf4(0x101)](),_0x11207a=this[_0x4aedf4(0x10b)]();if(_0x566203){let _0x4ec868=new P(_0x2a5338,_0x11207a,_0x566203[_0x4aedf4(0x124)],this[_0x4aedf4(0x147)]);return this[_0x4aedf4(0x17f)](_0x4ec868,_0x2a5338,_0x11207a,_0x566203[_0x4aedf4(0x124)]),_0x4ec868;}return new P(_0x2a5338,_0x11207a,_0x1e925e(),this['_injector']);}[_0x2073d0(0x157)](_0xe2e812){const _0x5d6944=_0x2073d0;let _0x4c2631=this['getWorkbook']()[_0x5d6944(0x101)](),_0x1abd34=this[_0x5d6944(0x10b)]();if(_0xe2e812){let _0x5b10f5=new F(_0x4c2631,_0x1abd34,_0xe2e812['drawId'],this[_0x5d6944(0x147)]);return this['_preloadShapeProperties'](_0x5b10f5,_0x4c2631,_0x1abd34,_0xe2e812['drawId']),_0x5b10f5;}return new F(_0x4c2631,_0x1abd34,_0x1e925e(),this[_0x5d6944(0x147)]);}[_0x2073d0(0x17c)](){const _0x785d49=_0x2073d0;let _0x5c6e7e=this[_0x785d49(0x147)]['get'](_0x286869),_0x1d58cc=this[_0x785d49(0x165)]()[_0x785d49(0x101)](),_0x4d67cf=this[_0x785d49(0x10b)](),_0x1e3770=_0x5c6e7e['getDrawingData'](_0x1d58cc,_0x4d67cf);if(!_0x1e3770)return[];let _0x12cb43=[];for(let [_0x30ca2b,_0x3f3b0a]of Object[_0x785d49(0x131)](_0x1e3770))if(_0x3f3b0a&&_0x3f3b0a[_0x785d49(0x12e)]===_0x232e10[_0x785d49(0x14c)]){let _0x2e8241=new P(_0x1d58cc,_0x4d67cf,_0x30ca2b,this[_0x785d49(0x147)]);this[_0x785d49(0x17f)](_0x2e8241,_0x1d58cc,_0x4d67cf,_0x30ca2b),_0x12cb43[_0x785d49(0x16e)](_0x2e8241);}return _0x12cb43;}['removeShape'](_0x3f88a9){const _0x36600d=_0x2073d0;let {unitId:_0x3abbdf,subUnitId:_0x593ca7,drawId:_0x5be6d6}=_0x3f88a9;return this['_commandService'][_0x36600d(0x161)](_0x4ddd72['id'],{'unitId':_0x3abbdf,'drawings':[{'unitId':_0x3abbdf,'subUnitId':_0x593ca7,'drawingId':_0x5be6d6,'drawingType':_0x232e10[_0x36600d(0x14c)]}]});}async[_0x2073d0(0x156)](_0xeddc22){const _0x6d5380=_0x2073d0;let {connector:_0x3d9e66,startTarget:_0x1dc056,endTarget:_0x315b47}=_0xeddc22;if(!_0x1dc056&&!_0x315b47)return!0x1;let _0x3930cc=this[_0x6d5380(0x165)]()['getUnitId'](),_0x223325=this[_0x6d5380(0x10b)](),_0x367dea=this[_0x6d5380(0x147)][_0x6d5380(0x141)](_0x20e1c9),_0x7afc88=this['_injector'][_0x6d5380(0x141)](_0x5859f8),_0x5c4874=_0x367dea[_0x6d5380(0x138)](_0x3930cc,_0x223325,_0x3d9e66[_0x6d5380(0x124)]);if(!_0x5c4874)return!0x1;let _0x27291a=_0x5c4874[_0x6d5380(0x166)](),_0x36828e=_0x5c4874[_0x6d5380(0x136)](),_0x59e299={};for(let _0xc305ff of _0x5c4874[_0x6d5380(0x143)]()){let _0x5d95c2=_0x5c4874['getAdjustValueByName'](_0xc305ff);_0x5d95c2!==void 0x0&&(_0x59e299[_0xc305ff]=_0x5d95c2);}let {startInfo:_0x20eb1d,endInfo:_0x233692}=this[_0x6d5380(0x115)](_0x3930cc,_0x223325,_0x3d9e66,_0x5c4874,_0x1dc056,_0x315b47,_0x367dea,_0x7afc88,_0x36828e);if(!_0x20eb1d||!_0x233692)return!0x1;let _0x1c4a0f=_0x416057(_0x232c7e(_0x20eb1d,_0x233692,_0x27291a),_0x27291a),_0x24922a={};return _0x1dc056?_0x24922a[_0x6d5380(0x140)]={'shapeId':_0x1dc056[_0x6d5380(0x159)][_0x6d5380(0x124)],'cxnIndex':_0x1dc056['connectionSiteIndex']}:_0x36828e!=null&&_0x36828e['from']&&(_0x24922a[_0x6d5380(0x140)]=_0x36828e[_0x6d5380(0x140)]),_0x315b47?_0x24922a['to']={'shapeId':_0x315b47[_0x6d5380(0x159)][_0x6d5380(0x124)],'cxnIndex':_0x315b47[_0x6d5380(0x180)]}:_0x36828e!=null&&_0x36828e['to']&&(_0x24922a['to']=_0x36828e['to']),this[_0x6d5380(0x17e)][_0x6d5380(0x161)](_0x127ca0['id'],{'unitId':_0x3930cc,'subUnitId':_0x223325,'connectorShapeId':_0x3d9e66[_0x6d5380(0x124)],'width':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x128)],'height':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x152)],'left':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x16f)],'top':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0xfe)],'flipX':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x120)]||!0x1,'flipY':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x158)]||!0x1,'oldAdjustValues':_0x59e299,'newAdjustValues':_0x1c4a0f[_0x6d5380(0x116)],'newLineType':_0x1c4a0f['lineType'],'oldLineType':_0x27291a,'rotation':_0x1c4a0f[_0x6d5380(0x130)],'oldRelation':_0x36828e,'newRelation':_0x24922a});}[_0x2073d0(0x17f)](_0x3083ef,_0x57decc,_0x3210b5,_0x1b0f56){const _0x21a500=_0x2073d0;let _0x35ed48=this['_injector'][_0x21a500(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':_0x57decc,'subUnitId':_0x3210b5,'drawingId':_0x1b0f56});if(_0x35ed48!=null&&_0x35ed48[_0x21a500(0x126)]){var _0x413edf,_0x45ee9e,_0x213229,_0x5028c6;_0x3083ef['x']=(_0x413edf=_0x35ed48['transform'][_0x21a500(0x16f)])==null?0x0:_0x413edf,_0x3083ef['y']=(_0x45ee9e=_0x35ed48['transform'][_0x21a500(0xfe)])==null?0x0:_0x45ee9e,_0x3083ef[_0x21a500(0x128)]=(_0x213229=_0x35ed48['transform'][_0x21a500(0x128)])==null?_0x3083ef[_0x21a500(0x128)]:_0x213229,_0x3083ef[_0x21a500(0x152)]=(_0x5028c6=_0x35ed48[_0x21a500(0x126)][_0x21a500(0x152)])==null?_0x3083ef['height']:_0x5028c6;}let _0x12bf2c=this[_0x21a500(0x147)][_0x21a500(0x141)](_0x20e1c9)['getShapeModel'](_0x57decc,_0x3210b5,_0x1b0f56);if(_0x12bf2c){_0x3083ef[_0x21a500(0x108)]=_0x12bf2c[_0x21a500(0x166)]();let _0x5687af=_0x12bf2c['getShapeData']();_0x5687af&&(_0x3083ef[_0x21a500(0x113)]=JSON[_0x21a500(0x11c)](JSON['stringify'](_0x5687af)));}}[_0x2073d0(0x115)](_0x55e377,_0x4aae02,_0x436652,_0x19dcaf,_0x206273,_0x118c77,_0x45dc5c,_0x1d9e8f,_0x302bd4){const _0x9785a7=_0x2073d0;let _0x175968=null,_0x5664f8=null;return _0x206273&&(_0x175968=I(_0x55e377,_0x4aae02,_0x206273[_0x9785a7(0x159)][_0x9785a7(0x124)],_0x206273[_0x9785a7(0x180)],_0x45dc5c,_0x1d9e8f)),_0x118c77&&(_0x5664f8=I(_0x55e377,_0x4aae02,_0x118c77[_0x9785a7(0x159)][_0x9785a7(0x124)],_0x118c77[_0x9785a7(0x180)],_0x45dc5c,_0x1d9e8f)),_0x175968||(_0x175968=this[_0x9785a7(0x121)](_0x55e377,_0x4aae02,_0x436652[_0x9785a7(0x124)],!0x0,_0x5664f8,_0x302bd4==null?void 0x0:_0x302bd4[_0x9785a7(0x140)],_0x45dc5c,_0x1d9e8f)),_0x5664f8||(_0x5664f8=this[_0x9785a7(0x121)](_0x55e377,_0x4aae02,_0x436652[_0x9785a7(0x124)],!0x1,_0x175968,_0x302bd4==null?void 0x0:_0x302bd4['to'],_0x45dc5c,_0x1d9e8f)),{'startInfo':_0x175968,'endInfo':_0x5664f8};}[_0x2073d0(0x121)](_0x5e9f48,_0x4925ef,_0x35aa68,_0x5ef675,_0x3219cb,_0x4d9b9d,_0x29390d,_0x1b85d4){const _0x25b2d1=_0x2073d0;if(_0x4d9b9d){let _0x2ae2d6=I(_0x5e9f48,_0x4925ef,_0x4d9b9d[_0x25b2d1(0x14d)],_0x4d9b9d['cxnIndex'],_0x29390d,_0x1b85d4);if(_0x2ae2d6)return _0x2ae2d6;}return _0x3219cb?R(_0x5e9f48,_0x4925ef,_0x35aa68,_0x5ef675,_0x3219cb,_0x29390d,_0x1b85d4):null;}};_0x26843a[_0x2073d0(0x179)](z);export{F as FConnectorShape,P as FShape};function _0x3850(){const _0x60091c=['setStrokeLineDashType','index','connectShapes','newConnector','flipY','shape','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','3228756lOJpLN','getConnectorLinePoints','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','getShapeId','SolidFill','setStrokeLineType','executeCommand','lineJoinType','setWidth','11UeeYoL','getWorkbook','getShapeType','getDrawingByParam','find','setStartArrowType','endArrow','symbol','ShapeLineCapEnum','1782786uUkxpp','push','left','setStrokeLineJoinType','worldRect','ShapeArrowTypeEnum','9fytaGN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','setStrokeLineCapType','ShapeTypeEnum','dashType','updateContext','extend','setShapeType','77XSsvdy','getShapes','getConnectionSiteList','_commandService','_preloadShapeProperties','connectionSiteIndex','getDrawingPoints','updateShape','newShape','object','top','ShapeArrowSizeEnum','ShapeFillEnum','getUnitId','setShapeSolidFill','gradientStops','setStrokeWidth','738590dvSfOH','type','capType','shapeType','length','getConnectionSites','getSheetId','Skeleton\x20for\x20unitId\x20','relation','183465pUxJxG','setEndArrowSize','call','opacity','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','shapeData','size','_resolveEndpoints','adjustValues','fillType','\x20not\x20found','prototype','35VsOQkz','\x20and\x20subUnitId\x20','parse',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','point','7370KmxsqD','flipX','_resolveExistingOrFreeEndpoint','localToWorld','build','drawId','setAbsolutePosition','transform','ang','width','setEndArrowType','getEndConnectInfo','function','constructor','default','drawingType','insertShape','rotation','entries','toPrimitive','gradientType','subUnitId','startArrow','getShapeRelation','5WEefPh','getShapeModel','setStrokeOpacity','unitId','getShapeData','getPosition','stroke','getStartConnectInfo','defineProperty','from','get','iterator','getAdjustNames','color','219368JxkeuE','abs','_injector','gradientAngle','string','ShapeLineJoinEnum','ShapeLineDashEnum','DRAWING_SHAPE','shapeId','371404pBcgRT','fill','ensureSkeleton','setStartArrowSize','height','getSize'];_0x3850=function(){return _0x60091c;};return _0x3850();}
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3a184f=_0x4815;(function(_0x4c5fbe,_0x335f9b){const _0x44b59b=_0x4815,_0x480c64=_0x4c5fbe();while(!![]){try{const _0x47e475=-parseInt(_0x44b59b(0x136))/0x1*(-parseInt(_0x44b59b(0x19b))/0x2)+parseInt(_0x44b59b(0x166))/0x3*(-parseInt(_0x44b59b(0x146))/0x4)+parseInt(_0x44b59b(0x156))/0x5+parseInt(_0x44b59b(0x148))/0x6*(parseInt(_0x44b59b(0x15a))/0x7)+parseInt(_0x44b59b(0x13b))/0x8+-parseInt(_0x44b59b(0x1a0))/0x9*(parseInt(_0x44b59b(0x121))/0xa)+-parseInt(_0x44b59b(0x177))/0xb;if(_0x47e475===_0x335f9b)break;else _0x480c64['push'](_0x480c64['shift']());}catch(_0x278da8){_0x480c64['push'](_0x480c64['shift']());}}}(_0x4d57,0x8d891));import{ShapeModel as _0x4e9e09,computeConnectorRouteLayout as _0x2856f6,getBasicShapeRotateBound as _0x5e7c0a,isConnectorShape as _0x711ab1,routeConnectorLineShape as _0x3ff60f}from'@univerjs-pro/engine-shape';import{CommandType as _0x353930,DependentOn as _0x8500a4,Disposable as _0x24c5b2,DrawingTypeEnum as _0x123f9a,ICommandService as _0x27fb22,IConfigService as _0x59fdba,IResourceManagerService as _0x3863ee,IUndoRedoService as _0x1e7ecc,IUniverInstanceService as _0x40f73c,Inject as _0x14913b,Injector as _0x378ab6,Plugin as _0x1916d8,UniverInstanceType as _0x5e7a6a,generateRandomId as _0x31fc7d,merge as _0x2fb6e3,sequenceExecute as _0x3f0ae0,touchDependencies as _0x47b815}from'@univerjs/core';import{SheetInterceptorService as _0x1d917b,SheetSkeletonService as _0x40d9b8,getSheetCommandTarget as _0x2792d1}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x2c533f,DrawingApplyType as _0x597b08,ISheetDrawingService as _0x39f882,InsertSheetDrawingCommand as _0x4d513b,RemoveSheetDrawingCommand as _0x3e5d52,SetDrawingApplyMutation as _0x25204a,SetSheetDrawingCommand as _0x1c5703,transformToAxisAlignPosition as _0x107177,transformToDrawingPosition as _0x5b629c}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x3c411b}from'@univerjs-pro/license';import{IDrawingManagerService as _0x2841a3}from'@univerjs/drawing';const I=0xc8,L=0xc8;function R(_0x1e7fb4){'@babel/helpers - typeof';const _0x1dc65c=_0x4815;return R=typeof Symbol==_0x1dc65c(0x14b)&&typeof Symbol['iterator']=='symbol'?function(_0x259273){return typeof _0x259273;}:function(_0x5975be){const _0x5e1df5=_0x1dc65c;return _0x5975be&&typeof Symbol==_0x5e1df5(0x14b)&&_0x5975be['constructor']===Symbol&&_0x5975be!==Symbol[_0x5e1df5(0x137)]?_0x5e1df5(0x18e):typeof _0x5975be;},R(_0x1e7fb4);}function _0x4d57(){const _0x30b844=['getShapeDataById','114tKPent','_shapes','sheet.command.set-shape-drawing-data','function','getOwnPropertyDescriptor','setShapeData','cos','redos','sheet.mutation.remove-shape','_initCommandInterceptor','removeShape','borderEnabled','preUndos','resizeEnabled','1122525BaXOhr','call','delete','interceptCommand','59941BbxQxG','sheet.command.update-shape-type','UPDATE','_shapeModelManagerMap','has','fill','0.24.0','transform','_sheetsShapeService','_configService','getCellIndexAndOffsetByPosition','set','9iWwLDh','_addLineFollowShapeUpdates','ang','pluginName','sheet.command.set-shape-rotate','_config','sheet.command.update-line-shape-resize','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','default','_sheetInterceptorService','MUTATION','find','string','getShapeType','isFrom','_deserializeShapeForUnit','sheet.command.update-connector-relation','247533hJKyDs','getBatchAddOp','width','from','_initCommands','COMMAND','addShape','range','getAdjustNames','_commandService','setShapeType','getShapeModel','preRedos','insertShape','result','getSkeleton','height','top','getShapeRelation','onCommandExecute','_linesIds','stringify','relation','symbol','getLineShapeRelation','shapeData','disposeWithMe','_getConnectPointInfo','adjustValues','object','undos','getDrawingData','_groupIds','getStartConnectInfo','pushUndoRedo','shapeId','140212tQiLAu','sheet.mutation.insert-shape','toJSON','onStarting','drawingType','18RtFnkr','UNIVER_SHEET','DRAWING_SHAPE','angle','startX','length','get','_sheetSkeletonService','startY','worldRect','SHEET_SHAPE_PLUGIN','getShapeData','flipY','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','index','every','keys','getEndConnectInfo','version','entries','_addLineRerouteUpdates','rotateEnabled','position','sheet.mutation.update-shape-type','sheets-shape.config','parse','277450PqOdZp','decorate','_serializeShapeForUnit','_drawingManagerService','filter','sheet.mutation.update-shape-data','lineShapeId','getConnectionSiteList','registerCommand','_initSnapshot','clear','flipX','updateContext','forEach','getDrawingByParam','data','left','REMOVE','ensureSkeleton','removeLinePoints','hasShape','9LTOxak','prototype','assign','sheet.command.set-shape-text-vertical-toggle','fromJSON','935096xqAFbO','add','getBatchUpdateOp','push','cxnIndex','isLineShape','getBasicShapeRelation','dispose','_ensureShapeModelManager','_resourcesManagerService','params','636428TKVyVa'];_0x4d57=function(){return _0x30b844;};return _0x4d57();}function z(_0x2e8319,_0x529466){const _0x5ef0f1=_0x4815;if(R(_0x2e8319)!=_0x5ef0f1(0x194)||!_0x2e8319)return _0x2e8319;var _0x3df257=_0x2e8319[Symbol['toPrimitive']];if(_0x3df257!==void 0x0){var _0x41d307=_0x3df257[_0x5ef0f1(0x157)](_0x2e8319,_0x529466||_0x5ef0f1(0x16e));if(R(_0x41d307)!=_0x5ef0f1(0x194))return _0x41d307;throw TypeError(_0x5ef0f1(0x114));}return(_0x529466===_0x5ef0f1(0x172)?String:Number)(_0x2e8319);}function B(_0x5c8fff){const _0x28fbbc=_0x4815;var _0x15854a=z(_0x5c8fff,'string');return R(_0x15854a)==_0x28fbbc(0x18e)?_0x15854a:_0x15854a+'';}function V(_0x2942cf,_0x33e74d,_0x1476c7){return(_0x33e74d=B(_0x33e74d))in _0x2942cf?Object['defineProperty'](_0x2942cf,_0x33e74d,{'value':_0x1476c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2942cf[_0x33e74d]=_0x1476c7,_0x2942cf;}var H=class extends _0x24c5b2{constructor(){const _0x3c3570=_0x4815;super(),V(this,_0x3c3570(0x149),new Map()),V(this,'_linesIds',new Set()),V(this,_0x3c3570(0x197),new Set());}[_0x3a184f(0x17d)](_0x4f7a34,_0x449575,_0x5e77a7){const _0x66d55c=_0x3a184f;let _0x43ef93=new _0x4e9e09(_0x4f7a34,_0x449575,_0x5e77a7);return this[_0x66d55c(0x149)]['set'](_0x449575,_0x43ef93),_0x711ab1(_0x4f7a34)&&this[_0x66d55c(0x18b)]['add'](_0x449575),_0x43ef93;}[_0x3a184f(0x141)](_0x46bf35){const _0xf60f99=_0x3a184f;let _0x3a8d3e=[];for(let _0x1a58e2 of this[_0xf60f99(0x18b)]){let _0x40bd67=this[_0xf60f99(0x149)][_0xf60f99(0x1a6)](_0x1a58e2);if(_0x40bd67){let _0x123670=_0x40bd67['getShapeRelation']();if(_0x123670){var _0x53808c,_0x3ce24d;((_0x53808c=_0x123670[_0xf60f99(0x17a)])==null?void 0x0:_0x53808c[_0xf60f99(0x19a)])===_0x46bf35&&_0x3a8d3e['push']({..._0x123670[_0xf60f99(0x17a)],'lineShapeId':_0x1a58e2,'isFrom':!0x0}),((_0x3ce24d=_0x123670['to'])==null?void 0x0:_0x3ce24d[_0xf60f99(0x19a)])===_0x46bf35&&_0x3a8d3e[_0xf60f99(0x13e)]({..._0x123670['to'],'lineShapeId':_0x1a58e2,'isFrom':!0x1});}}}return _0x3a8d3e;}[_0x3a184f(0x18f)](_0x29d7d0){const _0x5b86a3=_0x3a184f;let _0x3a8312=this[_0x5b86a3(0x149)][_0x5b86a3(0x1a6)](_0x29d7d0);if(_0x3a8312)return _0x3a8312[_0x5b86a3(0x189)]();}[_0x3a184f(0x173)](_0x2b36ee){const _0x7cdbf6=_0x3a184f;let _0x415bce=this['_shapes'][_0x7cdbf6(0x1a6)](_0x2b36ee);if(_0x415bce)return _0x415bce['getShapeType']();}[_0x3a184f(0x135)](_0x4cf9b8){const _0x392f7c=_0x3a184f;return this['_shapes'][_0x392f7c(0x15e)](_0x4cf9b8);}[_0x3a184f(0x152)](_0xdf5cce){const _0x5d1991=_0x3a184f;let _0x13dee7=this[_0x5d1991(0x149)][_0x5d1991(0x1a6)](_0xdf5cce);_0x13dee7&&(_0x711ab1(_0x13dee7[_0x5d1991(0x173)]())&&this[_0x5d1991(0x18b)][_0x5d1991(0x158)](_0xdf5cce),this['_shapes'][_0x5d1991(0x158)](_0xdf5cce));}[_0x3a184f(0x19d)](){const _0x4699fa=_0x3a184f;let _0x5af2b1=[];return this[_0x4699fa(0x149)][_0x4699fa(0x12e)](_0x23f705=>{const _0x223123=_0x4699fa;_0x5af2b1[_0x223123(0x13e)](_0x23f705[_0x223123(0x19d)]());}),_0x5af2b1;}[_0x3a184f(0x13a)](_0x5e09e0){const _0x3f974b=_0x3a184f;for(let _0x3ead05 of _0x5e09e0){let {id:_0x12b973,shapeType:_0x491f4a}=_0x3ead05,_0x54c329=this[_0x3f974b(0x17d)](_0x491f4a,_0x12b973,_0x3ead05[_0x3f974b(0x190)]);_0x54c329&&_0x54c329[_0x3f974b(0x140)]()&&this['_linesIds'][_0x3f974b(0x13c)](_0x12b973);}}['dispose'](){const _0x3f8112=_0x3a184f;this['_disposed']||(this[_0x3f8112(0x149)][_0x3f8112(0x12e)](_0x10a6dd=>{_0x10a6dd['dispose']();}),this[_0x3f8112(0x149)]['clear'](),this['_linesIds'][_0x3f8112(0x12b)](),this[_0x3f8112(0x197)][_0x3f8112(0x12b)](),super[_0x3f8112(0x142)]());}};function U(_0x127638,_0x17f8b5){return function(_0x409674,_0x212dc8){_0x17f8b5(_0x409674,_0x212dc8,_0x127638);};}function _0x4815(_0x1a46b5,_0x39276e){_0x1a46b5=_0x1a46b5-0x113;const _0x4d5784=_0x4d57();let _0x48152d=_0x4d5784[_0x1a46b5];return _0x48152d;}function W(_0x27f351,_0x43c426,_0x34c90d,_0x4cf620){const _0x3b370a=_0x3a184f;var _0x5a152c=arguments[_0x3b370a(0x1a5)],_0xfc864f=_0x5a152c<0x3?_0x43c426:_0x4cf620===null?_0x4cf620=Object[_0x3b370a(0x14c)](_0x43c426,_0x34c90d):_0x4cf620,_0x409ae4;if(typeof Reflect=='object'&&typeof Reflect[_0x3b370a(0x122)]=='function')_0xfc864f=Reflect[_0x3b370a(0x122)](_0x27f351,_0x43c426,_0x34c90d,_0x4cf620);else{for(var _0x3636e9=_0x27f351[_0x3b370a(0x1a5)]-0x1;_0x3636e9>=0x0;_0x3636e9--)(_0x409ae4=_0x27f351[_0x3636e9])&&(_0xfc864f=(_0x5a152c<0x3?_0x409ae4(_0xfc864f):_0x5a152c>0x3?_0x409ae4(_0x43c426,_0x34c90d,_0xfc864f):_0x409ae4(_0x43c426,_0x34c90d))||_0xfc864f);}return _0x5a152c>0x3&&_0xfc864f&&Object['defineProperty'](_0x43c426,_0x34c90d,_0xfc864f),_0xfc864f;}let G=class extends _0x24c5b2{constructor(_0x385135){const _0x13f710=_0x3a184f;super(),this[_0x13f710(0x144)]=_0x385135,V(this,_0x13f710(0x15d),new Map()),this[_0x13f710(0x12a)]();}[_0x3a184f(0x143)](_0x27e1ec,_0x5df65f){const _0x92faae=_0x3a184f;let _0x1c6e7b=this[_0x92faae(0x15d)][_0x92faae(0x1a6)](_0x27e1ec);_0x1c6e7b||(_0x1c6e7b=new Map(),this[_0x92faae(0x15d)][_0x92faae(0x165)](_0x27e1ec,_0x1c6e7b));let _0x175d70=_0x1c6e7b[_0x92faae(0x1a6)](_0x5df65f);return _0x175d70||(_0x175d70=new H(),_0x1c6e7b[_0x92faae(0x165)](_0x5df65f,_0x175d70)),_0x175d70;}['insertShape'](_0x1b1874,_0x3c7b21,_0x30081b,_0x5587a8,_0x446ade){const _0x5d2161=_0x3a184f;this[_0x5d2161(0x143)](_0x1b1874,_0x3c7b21)[_0x5d2161(0x17d)](_0x30081b,_0x5587a8,_0x446ade);}[_0x3a184f(0x152)](_0x49c350,_0x2ccc9a,_0x779b4c){const _0x19d6ce=_0x3a184f;this[_0x19d6ce(0x143)](_0x49c350,_0x2ccc9a)['removeShape'](_0x779b4c);}['getBasicShapeType'](_0x3cf4fa,_0x4c0c62,_0x28885e){const _0x262c11=_0x3a184f;return this['_ensureShapeModelManager'](_0x3cf4fa,_0x4c0c62)[_0x262c11(0x173)](_0x28885e);}['getShapeType'](_0x4e55f7,_0x3da808,_0x111c30){const _0x26022=_0x3a184f;return this['_ensureShapeModelManager'](_0x4e55f7,_0x3da808)[_0x26022(0x173)](_0x111c30);}[_0x3a184f(0x135)](_0x1203d7,_0x40aacb,_0xb1d3fb){const _0x51565f=_0x3a184f;return this[_0x51565f(0x143)](_0x1203d7,_0x40aacb)[_0x51565f(0x135)](_0xb1d3fb);}['getShapeTypeById'](_0x171db9,_0xc3a43c,_0x3b083e){const _0x28cfee=_0x3a184f;return this[_0x28cfee(0x143)](_0x171db9,_0xc3a43c)[_0x28cfee(0x173)](_0x3b083e);}[_0x3a184f(0x147)](_0x153cfa,_0x20f4b2,_0x421867){const _0x125959=_0x3a184f;let _0x10c282=this[_0x125959(0x143)](_0x153cfa,_0x20f4b2);if(!_0x10c282[_0x125959(0x173)](_0x421867))return;let _0x2df216=_0x10c282[_0x125959(0x149)]['get'](_0x421867);if(_0x2df216)return _0x2df216[_0x125959(0x1ab)]();}[_0x3a184f(0x182)](_0x51744c,_0x4dc035,_0x38b99d){const _0x29ada0=_0x3a184f;return this[_0x29ada0(0x143)](_0x51744c,_0x4dc035)[_0x29ada0(0x149)]['get'](_0x38b99d);}[_0x3a184f(0x141)](_0x14f7fd,_0x4a6ba9,_0x5819e5){const _0x4b07ad=_0x3a184f;return this[_0x4b07ad(0x143)](_0x14f7fd,_0x4a6ba9)[_0x4b07ad(0x141)](_0x5819e5);}[_0x3a184f(0x18f)](_0x3a1210,_0x34e9a8,_0x4b5beb){const _0x19009d=_0x3a184f;let _0x47bed3=this[_0x19009d(0x143)](_0x3a1210,_0x34e9a8)['_shapes'][_0x19009d(0x1a6)](_0x4b5beb);if(_0x47bed3)return _0x47bed3[_0x19009d(0x189)]();}[_0x3a184f(0x181)](){}[_0x3a184f(0x123)](_0x22f676){const _0x516cff=_0x3a184f;let _0x23938c={},_0x322aed=this[_0x516cff(0x15d)][_0x516cff(0x1a6)](_0x22f676);return _0x322aed&&_0x322aed[_0x516cff(0x12e)]((_0x205235,_0x41f3c1)=>{const _0x3061bc=_0x516cff;let _0x3841a2=_0x205235[_0x3061bc(0x19d)]();_0x3841a2[_0x3061bc(0x1a5)]>0x0&&(_0x23938c[_0x41f3c1]=_0x3841a2);}),JSON[_0x516cff(0x18c)](_0x23938c);}[_0x3a184f(0x175)](_0x3bd8b0,_0x26d7fe){const _0x494bc9=_0x3a184f;Object['keys'](_0x26d7fe)[_0x494bc9(0x12e)](_0xaf67e6=>{const _0x40abd8=_0x494bc9;this[_0x40abd8(0x143)](_0x3bd8b0,_0xaf67e6)[_0x40abd8(0x13a)](_0x26d7fe[_0xaf67e6]);});}[_0x3a184f(0x19d)](){const _0x572cf0=_0x3a184f;let _0xd89738={};return this[_0x572cf0(0x15d)][_0x572cf0(0x12e)]((_0x37c432,_0x14d89d)=>{const _0x521711=_0x572cf0;_0xd89738[_0x14d89d]={},_0x37c432[_0x521711(0x12e)]((_0x2d8d21,_0x448ec0)=>{const _0x183c38=_0x521711;_0xd89738[_0x14d89d][_0x448ec0]=_0x2d8d21[_0x183c38(0x19d)]();});}),_0xd89738;}[_0x3a184f(0x13a)](_0x1afe8e){const _0x27fbfc=_0x3a184f;Object['keys'](_0x1afe8e)[_0x27fbfc(0x12e)](_0x158725=>{const _0x21dcfc=_0x27fbfc;let _0x2843aa=_0x1afe8e[_0x158725];Object[_0x21dcfc(0x117)](_0x2843aa)[_0x21dcfc(0x12e)](_0x1d50ad=>{const _0x51dd46=_0x21dcfc;this[_0x51dd46(0x143)](_0x158725,_0x1d50ad)['fromJSON'](_0x2843aa[_0x1d50ad]);});});}[_0x3a184f(0x12a)](){const _0x5c6638=_0x3a184f;this[_0x5c6638(0x144)]['registerPluginResource']({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x5e7a6a[_0x5c6638(0x1a1)]],'toJson':_0x1e1564=>this[_0x5c6638(0x123)](_0x1e1564),'parseJson':_0x44a26c=>JSON[_0x5c6638(0x120)](_0x44a26c),'onLoad':(_0x11b444,_0x1843c2)=>{const _0x2e901b=_0x5c6638;this[_0x2e901b(0x175)](_0x11b444,_0x1843c2);},'onUnLoad':_0x510e16=>{const _0x513309=_0x5c6638;let _0x2377e0=this[_0x513309(0x15d)][_0x513309(0x1a6)](_0x510e16);_0x2377e0&&(_0x2377e0[_0x513309(0x12e)](_0x681535=>{const _0x1d124a=_0x513309;_0x681535[_0x1d124a(0x142)]();}),this[_0x513309(0x15d)][_0x513309(0x158)](_0x510e16));}});}[_0x3a184f(0x142)](){const _0x4b9303=_0x3a184f;this['_shapeModelManagerMap'][_0x4b9303(0x12e)](_0x3c8fb=>{const _0x51426b=_0x4b9303;_0x3c8fb[_0x51426b(0x12e)](_0xef9a54=>{_0xef9a54['dispose']();});});}};G=W([U(0x0,_0x3863ee)],G);const K={'id':_0x3a184f(0x19c),'type':_0x353930[_0x3a184f(0x170)],'handler':(_0x1f7f83,_0x38f528)=>{const _0x930aa8=_0x3a184f;let {unitId:_0x59b21f,subUnitId:_0x30485a,shapeType:_0xebd56a,shapeId:_0x1c564f,shapeData:_0x3f7b2a}=_0x38f528;return _0x1f7f83[_0x930aa8(0x1a6)](G)[_0x930aa8(0x184)](_0x59b21f,_0x30485a,_0xebd56a,_0x1c564f,_0x3f7b2a),!0x0;}},q={'id':_0x3a184f(0x150),'type':_0x353930[_0x3a184f(0x170)],'handler':(_0x570f20,_0x4670c2)=>{const _0x25ddcd=_0x3a184f;let {unitId:_0x2e338a,subUnitId:_0x4f81fe,shapeId:_0x1ab9b9}=_0x4670c2;return _0x570f20[_0x25ddcd(0x1a6)](G)[_0x25ddcd(0x152)](_0x2e338a,_0x4f81fe,_0x1ab9b9),!0x0;}},J={'type':_0x353930[_0x3a184f(0x17c)],'id':'sheet.command.insert-shape','handler':(_0x4d9f48,_0x55a69d)=>{const _0x337bf7=_0x3a184f;var _0x25c3a5,_0x13889c;let _0x217e1b=_0x2792d1(_0x4d9f48['get'](_0x40f73c),_0x55a69d);if(!_0x217e1b)return!0x1;let _0x1fbc28=_0x4d9f48['get'](_0x40d9b8),{unitId:_0x9d3603,subUnitId:_0x38bade}=_0x217e1b,_0x2acb1c=_0x1fbc28[_0x337bf7(0x133)](_0x9d3603,_0x38bade);if(!_0x2acb1c)return!0x1;let _0x103657=_0x4d9f48[_0x337bf7(0x1a6)](_0x27fb22),_0x140091=_0x4d9f48['get'](_0x1e7ecc),_0x5d2270=_0x4d9f48['get'](_0x1d917b),_0x25f9a6=_0x4d9f48['get'](_0x39f882),{shapeType:_0x2851c8,shapeData:_0x225859}=_0x55a69d,_0xbde33f=_0x55a69d['shapeId']||_0x31fc7d(),_0x3fae70={'unitId':_0x9d3603,'subUnitId':_0x38bade,'shapeId':_0xbde33f,'shapeType':_0x2851c8,'shapeData':_0x225859},_0x32c443=_0x55a69d[_0x337bf7(0x179)]||0xc8,_0x2f978e=_0x55a69d[_0x337bf7(0x187)]||0xc8,_0x11e4d8=0x0,_0x27fcda=0x0,_0x48058d={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x4708e2={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x55a69d[_0x337bf7(0x11d)]){let {x:_0x5b14bd,y:_0x38b9a5}=_0x55a69d['position'];_0x11e4d8=_0x5b14bd,_0x27fcda=_0x38b9a5,_0x48058d=_0x2acb1c[_0x337bf7(0x164)](_0x5b14bd,_0x38b9a5),_0x4708e2=_0x2acb1c[_0x337bf7(0x164)](_0x5b14bd+_0x32c443,_0x38b9a5+_0x2f978e);}else{if(_0x55a69d['range']){let {startRow:_0x2ab7e5,startColumn:_0x1646b1}=_0x55a69d[_0x337bf7(0x17e)];_0x48058d={'row':_0x2ab7e5,'rowOffset':0xa,'column':_0x1646b1,'columnOffset':0xa};let _0x1904e7=_0x2acb1c['getCellWithCoordByIndex'](_0x2ab7e5,_0x1646b1);_0x11e4d8=_0x1904e7[_0x337bf7(0x1a4)]+0xa,_0x27fcda=_0x1904e7[_0x337bf7(0x1a8)]+0xa,_0x4708e2=_0x2acb1c[_0x337bf7(0x164)](_0x11e4d8+_0x32c443,_0x27fcda+_0x2f978e);}}let _0x4875ca={'from':_0x48058d,'to':_0x4708e2},_0xd17438={'unitId':_0x9d3603,'subUnitId':_0x38bade,'drawingId':_0xbde33f,'drawingType':_0x123f9a['DRAWING_SHAPE'],'sheetTransform':_0x4875ca,'transform':{'left':_0x11e4d8,'top':_0x27fcda,'width':_0x32c443,'height':_0x2f978e},'data':{'shapeType':_0x2851c8,'shapeData':_0x225859},'axisAlignSheetTransform':_0x4875ca,'allowTransform':!0x0};_0x711ab1(_0x2851c8)&&(_0xd17438[_0x337bf7(0x130)][_0x337bf7(0x15f)]=!0x1,_0xd17438[_0x337bf7(0x130)][_0x337bf7(0x11c)]=!0x1,_0xd17438[_0x337bf7(0x130)]['resizeEnabled']=!0x1,_0xd17438[_0x337bf7(0x130)][_0x337bf7(0x153)]=!0x1,_0xd17438['transform'][_0x337bf7(0x11c)]=!0x1,_0xd17438[_0x337bf7(0x161)][_0x337bf7(0x155)]=!0x1,_0xd17438['transform']['borderEnabled']=!0x1);let {undo:_0x1a1b94,redo:_0x5881f3,objects:_0x37aab6}=_0x25f9a6[_0x337bf7(0x178)]([_0xd17438]),_0x5f2dcb=_0x5d2270['onCommandExecute']({'id':_0x4d513b['id'],'params':{'unitId':_0x9d3603,'drawings':[_0xd17438]}}),_0x356969=[...(_0x25c3a5=_0x5f2dcb['preRedos'])==null?[]:_0x25c3a5,{'id':_0x25204a['id'],'params':{'unitId':_0x9d3603,'subUnitId':_0x38bade,'op':_0x5881f3,'objects':_0x37aab6,'type':_0x597b08['INSERT']}},{'id':_0x2c533f['id'],'params':[_0x9d3603]},..._0x5f2dcb[_0x337bf7(0x14f)],{'id':K['id'],'params':_0x3fae70}],_0x1f83d0=[{'id':q['id'],'params':{'unitId':_0x9d3603,'subUnitId':_0x38bade,'shapeId':_0xbde33f}},...(_0x13889c=_0x5f2dcb[_0x337bf7(0x154)])==null?[]:_0x13889c,{'id':_0x25204a['id'],'params':{'unitId':_0x9d3603,'subUnitId':_0x38bade,'op':_0x1a1b94,'objects':_0x37aab6,'type':_0x597b08[_0x337bf7(0x132)]}},{'id':_0x2c533f['id'],'params':[_0x9d3603]},..._0x5f2dcb['undos']];return _0x3f0ae0(_0x356969,_0x103657)['result']?(_0x140091['pushUndoRedo']({'unitID':_0x9d3603,'undoMutations':_0x1f83d0,'redoMutations':_0x356969}),!0x0):!0x1;}},Y={'id':_0x3a184f(0x126),'type':_0x353930[_0x3a184f(0x170)],'handler':(_0x1f9c33,_0xcb5c53)=>{const _0x5900ce=_0x3a184f;let {unitId:_0x312c57,subUnitId:_0x51ce84,shapeType:_0x52111e,shapeId:_0x25efa6,shapeData:_0x31a303}=_0xcb5c53,_0x5482da=_0x1f9c33['get'](G)[_0x5900ce(0x182)](_0x312c57,_0x51ce84,_0x25efa6);return _0x5482da&&(_0x52111e!==void 0x0&&_0x5482da[_0x5900ce(0x181)](_0x52111e),_0x31a303&&(_0x5482da==null||_0x5482da[_0x5900ce(0x14d)](_0x31a303,!0x0))),!0x0;}},ee={'type':_0x353930['COMMAND'],'id':_0x3a184f(0x14a),'handler':(_0x151e36,_0x25658b)=>{const _0x1a61d3=_0x3a184f;var _0x51976a,_0x4c2027;let _0x2805f3=_0x2792d1(_0x151e36[_0x1a61d3(0x1a6)](_0x40f73c),_0x25658b);if(!_0x2805f3)return!0x1;let _0x2e9e6c=_0x151e36[_0x1a61d3(0x1a6)](_0x40d9b8),{unitId:_0x235eab,subUnitId:_0x5421e9}=_0x2805f3,_0x22ac00=_0x2e9e6c[_0x1a61d3(0x133)](_0x235eab,_0x5421e9);if(!_0x22ac00)return!0x1;let _0xf4bff4=_0x151e36[_0x1a61d3(0x1a6)](G),{shapeId:_0x457b63,shapeType:_0x2ce9ae,shapeData:_0x370c0a,position:_0x1f99fa,width:_0x3f5227,height:_0x3b7a9e}=_0x25658b,_0x19434f=_0xf4bff4[_0x1a61d3(0x182)](_0x235eab,_0x5421e9,_0x457b63);if(!_0x19434f)return!0x1;let _0x2c70f9=_0x151e36[_0x1a61d3(0x1a6)](_0x27fb22),_0x514c31=_0x151e36['get'](_0x1e7ecc),_0x40e896=_0x151e36[_0x1a61d3(0x1a6)](_0x1d917b),_0x3cd78e=_0x151e36[_0x1a61d3(0x1a6)](_0x39f882),_0x1f63c2={'unitId':_0x235eab,'subUnitId':_0x5421e9,'shapeId':_0x457b63,'shapeType':_0x2ce9ae,'shapeData':_0x370c0a},_0x4b983b=_0x19434f[_0x1a61d3(0x173)](),_0x2197ea=_0x19434f[_0x1a61d3(0x1ab)](),{x:_0x2edd4b,y:_0x57482a}=_0x1f99fa,_0xb8ff5a={'from':_0x22ac00[_0x1a61d3(0x164)](_0x2edd4b,_0x57482a),'to':_0x22ac00[_0x1a61d3(0x164)](_0x2edd4b+_0x3f5227,_0x57482a+_0x3b7a9e)},_0x2d6c9c={'unitId':_0x235eab,'subUnitId':_0x5421e9,'drawingId':_0x457b63,'drawingType':_0x123f9a[_0x1a61d3(0x1a2)],'sheetTransform':_0xb8ff5a,'transform':{'left':_0x2edd4b,'top':_0x57482a,'width':_0x3f5227,'height':_0x3b7a9e},'data':{'shapeType':_0x2ce9ae,'shapeData':_0x370c0a},'axisAlignSheetTransform':_0xb8ff5a,'allowTransform':!0x0};_0x711ab1(_0x2ce9ae)&&(_0x2d6c9c[_0x1a61d3(0x130)]['fill']=!0x1,_0x2d6c9c[_0x1a61d3(0x130)][_0x1a61d3(0x11c)]=!0x1,_0x2d6c9c['data'][_0x1a61d3(0x155)]=!0x1,_0x2d6c9c['data'][_0x1a61d3(0x153)]=!0x1,_0x2d6c9c['transform'][_0x1a61d3(0x11c)]=!0x1,_0x2d6c9c[_0x1a61d3(0x161)][_0x1a61d3(0x155)]=!0x1,_0x2d6c9c[_0x1a61d3(0x161)][_0x1a61d3(0x153)]=!0x1);let {undo:_0x26052b,redo:_0x29f6c9,objects:_0x95a0a6}=_0x3cd78e[_0x1a61d3(0x13d)]([_0x2d6c9c]),_0x1b65ac=_0x40e896[_0x1a61d3(0x18a)]({'id':_0x1c5703['id'],'params':{'unitId':_0x235eab,'drawings':[_0x2d6c9c]}}),_0x4f4cf8=[...(_0x51976a=_0x1b65ac[_0x1a61d3(0x183)])==null?[]:_0x51976a,{'id':_0x25204a['id'],'params':{'unitId':_0x235eab,'subUnitId':_0x5421e9,'op':_0x29f6c9,'objects':_0x95a0a6,'type':_0x597b08[_0x1a61d3(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x235eab]},..._0x1b65ac[_0x1a61d3(0x14f)],{'id':Y['id'],'params':_0x1f63c2}],_0x32108a=[...(_0x4c2027=_0x1b65ac['preUndos'])==null?[]:_0x4c2027,{'id':_0x25204a['id'],'params':{'unitId':_0x235eab,'subUnitId':_0x5421e9,'op':_0x26052b,'objects':_0x95a0a6,'type':_0x597b08[_0x1a61d3(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x235eab]},..._0x1b65ac[_0x1a61d3(0x195)],{'id':Y['id'],'params':{'unitId':_0x235eab,'subUnitId':_0x5421e9,'shapeType':_0x4b983b,'shapeId':_0x457b63,'shapeData':_0x2197ea}}];return _0x3f0ae0(_0x4f4cf8,_0x2c70f9)[_0x1a61d3(0x185)]?(_0x514c31[_0x1a61d3(0x199)]({'unitID':_0x235eab,'undoMutations':_0x32108a,'redoMutations':_0x4f4cf8}),!0x0):!0x1;}},te={'type':_0x353930['COMMAND'],'id':'sheet.command.toggle-shape-flip','handler':(_0x4aff08,_0x981567)=>{const _0x2d32ed=_0x3a184f;var _0x2f79c4,_0x1f2c46;let _0x2f2deb=_0x2792d1(_0x4aff08[_0x2d32ed(0x1a6)](_0x40f73c),_0x981567);if(!_0x2f2deb)return!0x1;let _0x6be591=_0x4aff08[_0x2d32ed(0x1a6)](_0x40d9b8),{unitId:_0x432a8a,subUnitId:_0x3b8801}=_0x2f2deb,_0x28355e=_0x6be591[_0x2d32ed(0x186)](_0x432a8a,_0x3b8801);if(!_0x28355e)return!0x1;let _0x320b3b=_0x4aff08[_0x2d32ed(0x1a6)](_0x39f882),{shapeId:_0x338df1,flipH:_0x303d53,flipV:_0x4bd4b6}=_0x981567,_0x329490=_0x320b3b[_0x2d32ed(0x12f)]({'unitId':_0x432a8a,'subUnitId':_0x3b8801,'drawingId':_0x338df1});if(!_0x329490)return!0x1;let _0x4eabe3=_0x4aff08[_0x2d32ed(0x1a6)](G)['getShapeModel'](_0x432a8a,_0x3b8801,_0x338df1);if(!_0x4eabe3)return!0x1;let _0x116ddf=_0x4aff08[_0x2d32ed(0x1a6)](_0x27fb22),_0x180d75=_0x4aff08[_0x2d32ed(0x1a6)](_0x1e7ecc),_0x3490df=_0x4aff08[_0x2d32ed(0x1a6)](_0x1d917b),_0x3addfd={..._0x329490['transform']};_0x303d53!==void 0x0&&(_0x3addfd[_0x2d32ed(0x12c)]=!_0x3addfd[_0x2d32ed(0x12c)]),_0x4bd4b6!==void 0x0&&(_0x3addfd['flipY']=!_0x3addfd[_0x2d32ed(0x113)]);let _0x103998=_0x5b629c(_0x3addfd,_0x28355e),_0xbba810=_0x107177(_0x3addfd,_0x28355e),_0x505e68=_0x4eabe3[_0x2d32ed(0x173)](),_0x2bfae2=_0x4eabe3['getShapeData'](),_0x38b526={'unitId':_0x432a8a,'subUnitId':_0x3b8801,'drawingId':_0x338df1,'drawingType':_0x123f9a[_0x2d32ed(0x1a2)],'sheetTransform':_0x103998,'transform':_0x3addfd,'data':{'shapeType':_0x505e68,'shapeData':_0x2bfae2},'axisAlignSheetTransform':_0xbba810,'allowTransform':!0x0},{undo:_0x4cf7db,redo:_0x34ab4d,objects:_0x2d722e}=_0x320b3b[_0x2d32ed(0x13d)]([_0x38b526]),_0x4e15a0=_0x3490df[_0x2d32ed(0x18a)]({'id':_0x1c5703['id'],'params':{'unitId':_0x432a8a,'drawings':[_0x38b526]}}),_0x1a0ed3=[...(_0x2f79c4=_0x4e15a0[_0x2d32ed(0x183)])==null?[]:_0x2f79c4,{'id':_0x25204a['id'],'params':{'unitId':_0x432a8a,'subUnitId':_0x3b8801,'op':_0x34ab4d,'objects':_0x2d722e,'type':_0x597b08[_0x2d32ed(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x432a8a]},..._0x4e15a0['redos']],_0x44db1d=[...(_0x1f2c46=_0x4e15a0[_0x2d32ed(0x154)])==null?[]:_0x1f2c46,{'id':_0x25204a['id'],'params':{'unitId':_0x432a8a,'subUnitId':_0x3b8801,'op':_0x4cf7db,'objects':_0x2d722e,'type':_0x597b08[_0x2d32ed(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x432a8a]},..._0x4e15a0[_0x2d32ed(0x195)]];if(_0x711ab1(_0x505e68)){let _0x3c3ac1=_0x4eabe3['getShapeRelation']();if(_0x3c3ac1){let _0xb465e5={..._0x3c3ac1};_0xb465e5['from']=void 0x0,_0xb465e5['to']=void 0x0,_0x1a0ed3['push']({'id':Y['id'],'params':{'unitId':_0x432a8a,'subUnitId':_0x3b8801,'shapeId':_0x338df1,'shapeType':_0x505e68,'shapeData':{'relation':_0xb465e5}}}),_0x44db1d[_0x2d32ed(0x13e)]({'id':Y['id'],'params':{'unitId':_0x432a8a,'subUnitId':_0x3b8801,'shapeId':_0x338df1,'shapeType':_0x505e68,'shapeData':{'relation':_0x3c3ac1}}});}}return _0x3f0ae0(_0x1a0ed3,_0x116ddf)[_0x2d32ed(0x185)]?(_0x180d75['pushUndoRedo']({'unitID':_0x432a8a,'undoMutations':_0x44db1d,'redoMutations':_0x1a0ed3}),!0x0):!0x1;}},X={'type':_0x353930['COMMAND'],'id':_0x3a184f(0x16a),'handler':(_0x4e5dc5,_0x53c907)=>{const _0x1fe8c5=_0x3a184f;var _0x4ec0ac,_0x523cd8;let _0x39bc04=_0x2792d1(_0x4e5dc5['get'](_0x40f73c),_0x53c907);if(!_0x39bc04)return!0x1;let _0x4918a6=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x40d9b8),{unitId:_0x18a8d4,subUnitId:_0x29f4f3}=_0x39bc04,_0x2286c3=_0x4918a6[_0x1fe8c5(0x186)](_0x18a8d4,_0x29f4f3);if(!_0x2286c3)return!0x1;let _0x286a03=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x39f882),{shapeId:_0x509d34,rotate:_0x973a5}=_0x53c907,_0x102d3f=_0x286a03[_0x1fe8c5(0x12f)]({'unitId':_0x18a8d4,'subUnitId':_0x29f4f3,'drawingId':_0x509d34});if(!_0x102d3f)return!0x1;let _0x55bfc4=_0x4e5dc5['get'](G)['getShapeModel'](_0x18a8d4,_0x29f4f3,_0x509d34);if(!_0x55bfc4)return!0x1;let _0x10f880=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x27fb22),_0x4505e2=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x1e7ecc),_0x3cfa04=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x1d917b),_0x1d353a={..._0x102d3f[_0x1fe8c5(0x161)]};_0x973a5!==void 0x0&&(_0x1d353a[_0x1fe8c5(0x1a3)]=(_0x1d353a[_0x1fe8c5(0x1a3)]||0x0)+_0x973a5);let _0x627fff=_0x5b629c(_0x1d353a,_0x2286c3),_0x204d2e=_0x107177(_0x1d353a,_0x2286c3),_0x5a7350=_0x55bfc4[_0x1fe8c5(0x173)](),_0x188caf=_0x55bfc4['getShapeData'](),_0x5b9db2={'unitId':_0x18a8d4,'subUnitId':_0x29f4f3,'drawingId':_0x509d34,'drawingType':_0x123f9a[_0x1fe8c5(0x1a2)],'sheetTransform':_0x627fff,'transform':_0x1d353a,'data':{'shapeType':_0x5a7350,'shapeData':_0x188caf},'axisAlignSheetTransform':_0x204d2e,'allowTransform':!0x0},{undo:_0x2bb91c,redo:_0x521643,objects:_0x4c131d}=_0x286a03['getBatchUpdateOp']([_0x5b9db2]),_0x3baa7f=_0x3cfa04['onCommandExecute']({'id':_0x1c5703['id'],'params':{'unitId':_0x18a8d4,'drawings':[_0x5b9db2]}}),_0x47b9a4=[...(_0x4ec0ac=_0x3baa7f[_0x1fe8c5(0x183)])==null?[]:_0x4ec0ac,{'id':_0x25204a['id'],'params':{'unitId':_0x18a8d4,'subUnitId':_0x29f4f3,'op':_0x521643,'objects':_0x4c131d,'type':_0x597b08[_0x1fe8c5(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x18a8d4]},..._0x3baa7f[_0x1fe8c5(0x14f)]],_0x4dec91=[...(_0x523cd8=_0x3baa7f[_0x1fe8c5(0x154)])==null?[]:_0x523cd8,{'id':_0x25204a['id'],'params':{'unitId':_0x18a8d4,'subUnitId':_0x29f4f3,'op':_0x2bb91c,'objects':_0x4c131d,'type':_0x597b08[_0x1fe8c5(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x18a8d4]},..._0x3baa7f[_0x1fe8c5(0x195)]];return _0x3f0ae0(_0x47b9a4,_0x10f880)[_0x1fe8c5(0x185)]?(_0x4505e2[_0x1fe8c5(0x199)]({'unitID':_0x18a8d4,'undoMutations':_0x4dec91,'redoMutations':_0x47b9a4}),!0x0):!0x1;}},Z={'type':_0x353930[_0x3a184f(0x17c)],'id':_0x3a184f(0x139),'handler':(_0x168738,_0x490206)=>{const _0xb78bb6=_0x3a184f;var _0x73a9d5;let _0x5ea308=_0x2792d1(_0x168738[_0xb78bb6(0x1a6)](_0x40f73c),_0x490206);if(!_0x5ea308)return!0x1;let {unitId:_0x599693,subUnitId:_0x4da870}=_0x5ea308,{shapeId:_0x397957}=_0x490206,_0x58f49b=_0x168738[_0xb78bb6(0x1a6)](G)[_0xb78bb6(0x182)](_0x599693,_0x4da870,_0x397957);if(!_0x58f49b)return!0x1;let _0x44c977=_0x58f49b['getShapeTextData'](),_0x206301=(_0x73a9d5=_0x44c977==null?void 0x0:_0x44c977['isHorizontal'])==null?!0x0:_0x73a9d5,_0x4fd1b5=!_0x206301,_0x2cc954=_0x168738[_0xb78bb6(0x1a6)](_0x27fb22),_0x49a0da=_0x168738['get'](_0x1e7ecc),_0x5e4d18={'unitId':_0x599693,'subUnitId':_0x4da870,'shapeId':_0x397957,'shapeData':{'shapeText':{'isHorizontal':_0x4fd1b5}}},_0xa334a3={'unitId':_0x599693,'subUnitId':_0x4da870,'shapeId':_0x397957,'shapeData':{'shapeText':{'isHorizontal':_0x206301}}},_0x5a7886=[{'id':Y['id'],'params':_0x5e4d18}],_0x30f133=[{'id':Y['id'],'params':_0xa334a3}];return _0x3f0ae0(_0x5a7886,_0x2cc954)[_0xb78bb6(0x185)]?(_0x49a0da[_0xb78bb6(0x199)]({'unitID':_0x599693,'undoMutations':_0x30f133,'redoMutations':_0x5a7886}),!0x0):!0x1;}},ne={'type':_0x353930[_0x3a184f(0x17c)],'id':_0x3a184f(0x176),'handler':(_0x136d52,_0x4fa08c)=>{const _0x321f1d=_0x3a184f;var _0x304ded,_0x4d0f55,_0x29d787,_0xe0de00;let _0x5994e9=_0x2792d1(_0x136d52[_0x321f1d(0x1a6)](_0x40f73c),_0x4fa08c);if(!_0x5994e9)return!0x1;let _0x28378b=_0x136d52[_0x321f1d(0x1a6)](_0x40d9b8),{unitId:_0x5299fc,subUnitId:_0x180441}=_0x5994e9,_0x4b666d=_0x28378b[_0x321f1d(0x186)](_0x5299fc,_0x180441);if(!_0x4b666d)return!0x1;let _0x1c1932=_0x136d52[_0x321f1d(0x1a6)](_0x39f882),{connectorShapeId:_0x31f485,width:_0x38b798,height:_0x5491b3,left:_0x276efb,top:_0xb142da,flipX:_0x286f52,flipY:_0x339b57,rotation:_0x1575ae,oldAdjustValues:_0x447e89,newAdjustValues:_0x2d0646,oldLineType:_0xcb1f6b,newLineType:_0x4af916,oldRelation:_0x4b530d,newRelation:_0x36827e}=_0x4fa08c,_0x3d89cf=_0x1c1932['getDrawingByParam']({'unitId':_0x5299fc,'subUnitId':_0x180441,'drawingId':_0x31f485});if(!_0x3d89cf)return!0x1;let _0x41ec22=_0x136d52[_0x321f1d(0x1a6)](G)[_0x321f1d(0x182)](_0x5299fc,_0x180441,_0x31f485);if(!_0x41ec22)return!0x1;let _0x4878f4=_0x136d52[_0x321f1d(0x1a6)](_0x27fb22),_0x117973=_0x136d52[_0x321f1d(0x1a6)](_0x1e7ecc),_0x296541=_0x136d52[_0x321f1d(0x1a6)](_0x1d917b),_0x41ec5b={..._0x3d89cf[_0x321f1d(0x161)],'width':_0x38b798,'height':_0x5491b3,'left':_0x276efb,'top':_0xb142da,'flipX':_0x286f52,'flipY':_0x339b57,'angle':(_0x304ded=_0x1575ae==null?(_0x4d0f55=_0x3d89cf[_0x321f1d(0x161)])==null?void 0x0:_0x4d0f55[_0x321f1d(0x1a3)]:_0x1575ae)==null?0x0:_0x304ded},_0x15e45f=_0x5b629c(_0x41ec5b,_0x4b666d),_0x55435e=_0x107177(_0x41ec5b,_0x4b666d),_0x5c91ee=_0x41ec22['getShapeType'](),_0x581454=_0x41ec22['getShapeData'](),_0x40258d={'unitId':_0x5299fc,'subUnitId':_0x180441,'drawingId':_0x31f485,'drawingType':_0x123f9a[_0x321f1d(0x1a2)],'sheetTransform':_0x15e45f,'transform':_0x41ec5b,'data':{'shapeType':_0x4af916||_0xcb1f6b||_0x5c91ee,'shapeData':{..._0x581454,'adjustValues':_0x2d0646||_0x447e89||(_0x581454==null?void 0x0:_0x581454[_0x321f1d(0x193)]),'relation':_0x36827e||_0x4b530d||(_0x581454==null?void 0x0:_0x581454[_0x321f1d(0x18d)])}},'axisAlignSheetTransform':_0x55435e,'allowTransform':!0x0},{undo:_0x185018,redo:_0x530d61,objects:_0x3404bb}=_0x1c1932['getBatchUpdateOp']([_0x40258d]),_0x51b02d=_0x296541[_0x321f1d(0x18a)]({'id':_0x1c5703['id'],'params':{'unitId':_0x5299fc,'drawings':[_0x40258d]}}),_0x5a4d12=[...(_0x29d787=_0x51b02d[_0x321f1d(0x183)])==null?[]:_0x29d787,{'id':_0x25204a['id'],'params':{'unitId':_0x5299fc,'subUnitId':_0x180441,'op':_0x530d61,'objects':_0x3404bb,'type':_0x597b08['UPDATE']}},{'id':_0x2c533f['id'],'params':[_0x5299fc]},..._0x51b02d['redos'],{'id':Y['id'],'params':{'unitId':_0x5299fc,'subUnitId':_0x180441,'shapeId':_0x31f485,'shapeType':_0x4af916,'shapeData':{'adjustValues':_0x2d0646,'relation':_0x36827e}}}],_0x1352ca=[...(_0xe0de00=_0x51b02d[_0x321f1d(0x154)])==null?[]:_0xe0de00,{'id':_0x25204a['id'],'params':{'unitId':_0x5299fc,'subUnitId':_0x180441,'op':_0x185018,'objects':_0x3404bb,'type':_0x597b08[_0x321f1d(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x5299fc]},..._0x51b02d[_0x321f1d(0x195)],{'id':Y['id'],'params':{'unitId':_0x5299fc,'subUnitId':_0x180441,'shapeId':_0x31f485,'shapeType':_0x5c91ee,'shapeData':{..._0x581454,'adjustValues':_0x447e89||(_0x581454==null?void 0x0:_0x581454['adjustValues']),'relation':_0x4b530d||(_0x581454==null?void 0x0:_0x581454['relation'])}}}];return _0x3f0ae0(_0x5a4d12,_0x4878f4)[_0x321f1d(0x185)]?(_0x117973['pushUndoRedo']({'unitID':_0x5299fc,'undoMutations':_0x1352ca,'redoMutations':_0x5a4d12}),!0x0):!0x1;}},re={'type':_0x353930[_0x3a184f(0x17c)],'id':_0x3a184f(0x16c),'handler':(_0x1f480f,_0x5cf9f3)=>{const _0x5b0bfb=_0x3a184f;var _0x360baf,_0x401fc7;let _0x3f8285=_0x2792d1(_0x1f480f[_0x5b0bfb(0x1a6)](_0x40f73c),_0x5cf9f3);if(!_0x3f8285)return!0x1;let _0x41aab2=_0x1f480f[_0x5b0bfb(0x1a6)](_0x40d9b8),{unitId:_0x4a9a9d,subUnitId:_0x1e6e8f}=_0x3f8285,_0x22b177=_0x41aab2[_0x5b0bfb(0x186)](_0x4a9a9d,_0x1e6e8f);if(!_0x22b177)return!0x1;let _0x46378e=_0x1f480f[_0x5b0bfb(0x1a6)](_0x39f882),{shapeId:_0x588867,width:_0x170a38,height:_0x58c15e,left:_0x51b87c,top:_0xd2d5ac,flipX:_0x53a31d,flipY:_0x5b438f,angle:_0x1ad7c7,oldAdjustValues:_0x2cb737,newAdjustValues:_0xc35bee,oldLineType:_0x27ce98,newLineType:_0x40aa5d}=_0x5cf9f3,_0x12ea4d=_0x46378e[_0x5b0bfb(0x12f)]({'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'drawingId':_0x588867});if(!_0x12ea4d)return!0x1;let _0x419033=_0x1f480f[_0x5b0bfb(0x1a6)](G)['getShapeModel'](_0x4a9a9d,_0x1e6e8f,_0x588867);if(!_0x419033)return!0x1;let _0xb3c4ce=_0x1f480f[_0x5b0bfb(0x1a6)](_0x27fb22),_0x458b4a=_0x1f480f['get'](_0x1e7ecc),_0x4eb71d=_0x1f480f['get'](_0x1d917b),_0xf1742e={..._0x12ea4d[_0x5b0bfb(0x161)],'width':_0x170a38,'height':_0x58c15e,'left':_0x51b87c,'top':_0xd2d5ac,'flipX':_0x53a31d,'flipY':_0x5b438f,'angle':_0x1ad7c7},_0x460217=_0x5b629c(_0xf1742e,_0x22b177),_0x1c74b7=_0x107177(_0xf1742e,_0x22b177),_0x12fff3=_0x419033[_0x5b0bfb(0x173)](),_0x663597=_0x419033[_0x5b0bfb(0x1ab)](),_0x3c5666={'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'drawingId':_0x588867,'drawingType':_0x123f9a[_0x5b0bfb(0x1a2)],'sheetTransform':_0x460217,'transform':_0xf1742e,'data':{'shapeType':_0x40aa5d||_0x27ce98||_0x12fff3,'shapeData':{..._0x663597,'adjustValues':_0xc35bee||_0x2cb737||(_0x663597==null?void 0x0:_0x663597[_0x5b0bfb(0x193)])}},'axisAlignSheetTransform':_0x1c74b7,'allowTransform':!0x0},{undo:_0x4b3064,redo:_0x3dbfd2,objects:_0x5dc28a}=_0x46378e[_0x5b0bfb(0x13d)]([_0x3c5666]),_0x34bf57=_0x4eb71d['onCommandExecute']({'id':_0x1c5703['id'],'params':{'unitId':_0x4a9a9d,'drawings':[_0x3c5666]}}),_0x31f6e7=[...(_0x360baf=_0x34bf57['preRedos'])==null?[]:_0x360baf,{'id':_0x25204a['id'],'params':{'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'op':_0x3dbfd2,'objects':_0x5dc28a,'type':_0x597b08['UPDATE']}},{'id':_0x2c533f['id'],'params':[_0x4a9a9d]},..._0x34bf57[_0x5b0bfb(0x14f)],{'id':Y['id'],'params':{'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'shapeId':_0x588867,'shapeType':_0x40aa5d,'shapeData':{'adjustValues':_0xc35bee}}}],_0x45fb49=[...(_0x401fc7=_0x34bf57[_0x5b0bfb(0x154)])==null?[]:_0x401fc7,{'id':_0x25204a['id'],'params':{'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'op':_0x4b3064,'objects':_0x5dc28a,'type':_0x597b08[_0x5b0bfb(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x4a9a9d]},..._0x34bf57['undos'],{'id':Y['id'],'params':{'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'shapeId':_0x588867,'shapeType':_0x12fff3,'shapeData':{..._0x663597,'adjustValues':_0x2cb737||(_0x663597==null?void 0x0:_0x663597[_0x5b0bfb(0x193)])}}}];return _0x3f0ae0(_0x31f6e7,_0xb3c4ce)[_0x5b0bfb(0x185)]?(_0x458b4a['pushUndoRedo']({'unitID':_0x4a9a9d,'undoMutations':_0x45fb49,'redoMutations':_0x31f6e7}),!0x0):!0x1;}},Q={'id':_0x3a184f(0x11e),'type':_0x353930[_0x3a184f(0x170)],'handler':(_0x1133a4,_0x2c5ac7)=>{const _0x27ae5a=_0x3a184f;let {unitId:_0x33308b,subUnitId:_0x8249b5,shapeType:_0x4978e8,shapeId:_0x215edd,shapeData:_0x1b7f10}=_0x2c5ac7,_0x4b744b=_0x1133a4[_0x27ae5a(0x1a6)](G)[_0x27ae5a(0x182)](_0x33308b,_0x8249b5,_0x215edd);return _0x4b744b&&(_0x4b744b[_0x27ae5a(0x181)](_0x4978e8),_0x1b7f10&&(_0x4b744b==null||_0x4b744b[_0x27ae5a(0x14d)](_0x1b7f10))),!0x0;}},ie={'id':_0x3a184f(0x15b),'type':_0x353930[_0x3a184f(0x17c)],'handler':(_0x495809,_0x934799)=>{const _0x3f63f9=_0x3a184f;if(!_0x934799)return!0x1;let _0x34b3a5=_0x495809['get'](_0x27fb22),_0x294644=_0x495809[_0x3f63f9(0x1a6)](G),_0x2d4f5b=_0x495809[_0x3f63f9(0x1a6)](_0x1e7ecc),_0x17df6c=[],_0x4c5199=[],{unitId:_0x3c7281,subUnitId:_0x1db864,shapeId:_0x53e010,shapeType:_0xd0e356,shapeData:_0x5ec1fd}=_0x934799,_0x8672c2=_0x294644[_0x3f63f9(0x182)](_0x3c7281,_0x1db864,_0x53e010);if(_0x8672c2){let _0x400ee5=_0x8672c2['getShapeType'](),_0xfd1e60=Object[_0x3f63f9(0x138)]({},_0x8672c2[_0x3f63f9(0x1ab)]()),_0x4374b0={'unitId':_0x3c7281,'subUnitId':_0x1db864,'shapeId':_0x53e010,'shapeType':_0xd0e356,'shapeData':_0x5ec1fd},_0x47e62c={'unitId':_0x3c7281,'subUnitId':_0x1db864,'shapeId':_0x53e010,'shapeType':_0x400ee5,'shapeData':_0xfd1e60};return _0x17df6c[_0x3f63f9(0x13e)]({'id':Q['id'],'params':_0x4374b0}),_0x4c5199[_0x3f63f9(0x13e)]({'id':Q['id'],'params':_0x47e62c}),_0x17df6c[_0x3f63f9(0x116)](_0x1c29bd=>_0x34b3a5['syncExecuteCommand'](_0x1c29bd['id'],_0x1c29bd[_0x3f63f9(0x145)]))&&_0x2d4f5b['pushUndoRedo']({'unitID':_0x3c7281,'redoMutations':[..._0x17df6c],'undoMutations':[..._0x4c5199]}),!0x0;}return!0x1;}};var ae='@univerjs-pro/sheets-shape',oe=_0x3a184f(0x160);const se=_0x3a184f(0x11f);Symbol(se);const ce={};let le=class extends _0x24c5b2{constructor(_0x1dc1a0,_0x7a20ea,_0x486921,_0x2c6534,_0x10e2ee){const _0x51d6bc=_0x3a184f;super(),this[_0x51d6bc(0x180)]=_0x1dc1a0,this[_0x51d6bc(0x16f)]=_0x7a20ea,this[_0x51d6bc(0x1a7)]=_0x486921,this[_0x51d6bc(0x162)]=_0x2c6534,this[_0x51d6bc(0x124)]=_0x10e2ee,this[_0x51d6bc(0x17b)](),this[_0x51d6bc(0x151)]();}[_0x3a184f(0x17b)](){const _0x16ad58=_0x3a184f;[J,ee,te,X,Z,ne,re,K,q,Q,Y][_0x16ad58(0x12e)](_0x41fbf4=>this[_0x16ad58(0x191)](this[_0x16ad58(0x180)][_0x16ad58(0x129)](_0x41fbf4)));}['_initCommandInterceptor'](){const _0x30d632=_0x3a184f;this[_0x30d632(0x191)](this[_0x30d632(0x16f)][_0x30d632(0x159)]({'getMutations':_0x1ea33d=>{const _0x204f58=_0x30d632;if(_0x1ea33d['id']===_0x3e5d52['id']){let {drawings:_0x270280}=_0x1ea33d[_0x204f58(0x145)],_0x1820cc=_0x270280[_0x204f58(0x125)](_0x48acd5=>_0x48acd5['drawingType']===_0x123f9a['DRAWING_SHAPE']);if(_0x1820cc[_0x204f58(0x1a5)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0xd28b9b=[],_0x384e69=[];return _0x1820cc['forEach'](_0x2c08f6=>{const _0x11a355=_0x204f58;let {unitId:_0x26dc1a,subUnitId:_0x111a3d,drawingId:_0x252e27}=_0x2c08f6,_0x237d0b=this['_sheetsShapeService']['getShapeModel'](_0x26dc1a,_0x111a3d,_0x252e27);if(!_0x237d0b)throw TypeError(_0x11a355(0x16d)+_0x237d0b);_0xd28b9b[_0x11a355(0x13e)]({'id':q['id'],'params':{'unitId':_0x26dc1a,'subUnitId':_0x111a3d,'shapeId':_0x252e27}}),_0x384e69['push']({'id':K['id'],'params':{'unitId':_0x26dc1a,'subUnitId':_0x111a3d,'shapeId':_0x252e27,'shapeType':_0x237d0b[_0x11a355(0x173)](),'shapeData':_0x237d0b[_0x11a355(0x1ab)]()}});let _0x228fd3=this['_sheetsShapeService'][_0x11a355(0x141)](_0x26dc1a,_0x111a3d,_0x252e27);if(_0x228fd3)for(let _0x2327e0 of _0x228fd3){let _0x9f6ba3=_0x2327e0[_0x11a355(0x127)],_0x285e7b=_0x2327e0[_0x11a355(0x174)],_0x1cad23=_0x285e7b?{'from':void 0x0}:{'to':void 0x0},_0x14e943=_0x285e7b?{'from':{'shapeId':_0x2327e0[_0x11a355(0x19a)],'cxnIndex':_0x2327e0[_0x11a355(0x13f)]}}:{'to':{'shapeId':_0x2327e0[_0x11a355(0x19a)],'cxnIndex':_0x2327e0[_0x11a355(0x13f)]}};_0xd28b9b[_0x11a355(0x13e)]({'id':Y['id'],'params':{'unitId':_0x26dc1a,'subUnitId':_0x111a3d,'shapeId':_0x9f6ba3,'shapeData':{'relation':_0x1cad23}}}),_0x384e69[_0x11a355(0x13e)]({'id':Y['id'],'params':{'unitId':_0x26dc1a,'subUnitId':_0x111a3d,'shapeId':_0x9f6ba3,'shapeData':{'relation':_0x14e943}}});}}),{'preRedos':_0xd28b9b,'redos':[],'preUndos':[],'undos':_0x384e69};}if(_0x1ea33d['id']===_0x1c5703['id']){let {drawings:_0x482f82}=_0x1ea33d[_0x204f58(0x145)],_0x48e43b=_0x482f82[_0x204f58(0x125)](_0x2ec4fb=>_0x2ec4fb[_0x204f58(0x19f)]===_0x123f9a['DRAWING_SHAPE']);if(_0x48e43b[_0x204f58(0x1a5)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1b1c60=[],_0x4c4b12=[];for(let _0x49e0c0 of _0x48e43b){let {unitId:_0x15a74a,subUnitId:_0x46640a,drawingId:_0x736b7e,transform:_0x41a753}=_0x49e0c0;if(!_0x15a74a||!_0x46640a||!_0x736b7e||!_0x41a753)continue;let _0x3a2fdc=this[_0x204f58(0x162)][_0x204f58(0x182)](_0x15a74a,_0x46640a,_0x736b7e);if(!_0x3a2fdc)throw TypeError(_0x204f58(0x16d)+_0x3a2fdc);if(_0x711ab1(_0x3a2fdc['getShapeType']())){let _0x2a9def=this[_0x204f58(0x162)][_0x204f58(0x18f)](_0x15a74a,_0x46640a,_0x736b7e);_0x2a9def&&(_0x1b1c60[_0x204f58(0x13e)]({'id':Y['id'],'params':{'unitId':_0x15a74a,'subUnitId':_0x46640a,'shapeId':_0x736b7e,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4c4b12[_0x204f58(0x13e)]({'id':Y['id'],'params':{'unitId':_0x15a74a,'subUnitId':_0x46640a,'shapeId':_0x736b7e,'shapeData':{'relation':_0x2a9def}}}));}else{let _0x5bbd2b=this['_sheetsShapeService'][_0x204f58(0x141)](_0x15a74a,_0x46640a,_0x736b7e);if(_0x5bbd2b&&_0x5bbd2b['length']>0x0)for(let _0x488771 of _0x5bbd2b){let _0x42d73e=_0x488771['lineShapeId'],_0x1243ca=_0x488771[_0x204f58(0x174)],_0x48a3f1=this[_0x204f58(0x162)][_0x204f58(0x182)](_0x15a74a,_0x46640a,_0x42d73e);if(!_0x48a3f1)continue;let _0x3f1583=_0x48a3f1[_0x204f58(0x198)](),_0x40ff0b=_0x48a3f1[_0x204f58(0x118)]();_0x3f1583&&_0x40ff0b?this['_addLineRerouteUpdates'](_0x15a74a,_0x46640a,_0x42d73e,_0x48a3f1,_0x3f1583,_0x40ff0b,_0x1b1c60,_0x4c4b12,_0x736b7e,_0x41a753):this[_0x204f58(0x167)](_0x15a74a,_0x46640a,_0x42d73e,_0x48a3f1,_0x1243ca?_0x3f1583:_0x40ff0b,_0x1243ca,_0x1b1c60,_0x4c4b12,_0x736b7e,_0x41a753);}}}return{'preRedos':[],'redos':_0x1b1c60,'preUndos':_0x4c4b12,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3a184f(0x192)](_0x6cd8d9,_0x5d0ce9,_0x46479e,_0x22c157,_0x4a3c72){const _0x3ca78a=_0x3a184f;if(!_0x5d0ce9||!_0x46479e)return null;let {shapeId:_0x2f751c,cxnIndex:_0x1acf9d}=_0x6cd8d9,_0x6e799=this[_0x3ca78a(0x162)][_0x3ca78a(0x182)](_0x5d0ce9,_0x46479e,_0x2f751c);if(!_0x6e799)return null;let _0x33a816=this[_0x3ca78a(0x124)][_0x3ca78a(0x12f)]({'unitId':_0x5d0ce9,'subUnitId':_0x46479e,'drawingId':_0x2f751c});if(!(_0x33a816!=null&&_0x33a816[_0x3ca78a(0x161)]))return null;let {left:_0x2b6856=0x0,top:_0x5a55fc=0x0,width:_0x2633a8=0x0,height:_0x1bae60=0x0,flipX:_0x4f362e=!0x1,flipY:_0x2fc6f3=!0x1,angle:_0x489913}=_0x33a816[_0x3ca78a(0x161)];if(_0x4a3c72&&_0x22c157===_0x2f751c){var _0x1a087e,_0x9e285b,_0x3bd779,_0x598fbd,_0x17df4a,_0x46f2bb,_0x44e124;_0x2b6856=(_0x1a087e=_0x4a3c72[_0x3ca78a(0x131)])==null?_0x2b6856:_0x1a087e,_0x5a55fc=(_0x9e285b=_0x4a3c72[_0x3ca78a(0x188)])==null?_0x5a55fc:_0x9e285b,_0x2633a8=(_0x3bd779=_0x4a3c72[_0x3ca78a(0x179)])==null?_0x2633a8:_0x3bd779,_0x1bae60=(_0x598fbd=_0x4a3c72[_0x3ca78a(0x187)])==null?_0x1bae60:_0x598fbd,_0x4f362e=(_0x17df4a=_0x4a3c72[_0x3ca78a(0x12c)])==null?_0x4f362e:_0x17df4a,_0x2fc6f3=(_0x46f2bb=_0x4a3c72[_0x3ca78a(0x113)])==null?_0x2fc6f3:_0x46f2bb,_0x489913=(_0x44e124=_0x4a3c72[_0x3ca78a(0x1a3)])==null?_0x489913:_0x44e124;}_0x6e799[_0x3ca78a(0x12d)]({'width':_0x2633a8,'height':_0x1bae60});let _0xf3797a=_0x6e799[_0x3ca78a(0x128)]()[_0x3ca78a(0x171)](_0x4ede54=>_0x4ede54[_0x3ca78a(0x115)]===_0x1acf9d);if(!_0xf3797a)return null;let _0x5700e9=_0x4f362e?_0x2633a8-_0xf3797a['x']:_0xf3797a['x'],_0xacd598=_0x2fc6f3?_0x1bae60-_0xf3797a['y']:_0xf3797a['y'];if(_0x489913!==0x0&&_0x489913!=null){let _0x571137=_0x489913*Math['PI']/0xb4,_0x43a5a4=Math[_0x3ca78a(0x14e)](_0x571137),_0x2c4de0=Math['sin'](_0x571137),_0x2e07d5=_0x2633a8/0x2,_0x3a6c2b=_0x1bae60/0x2,_0x27f36a=_0x5700e9-_0x2e07d5,_0x437a3c=_0xacd598-_0x3a6c2b;_0x5700e9=_0x2e07d5+_0x27f36a*_0x43a5a4-_0x437a3c*_0x2c4de0,_0xacd598=_0x3a6c2b+_0x27f36a*_0x2c4de0+_0x437a3c*_0x43a5a4;}_0x5700e9+=_0x2b6856,_0xacd598+=_0x5a55fc;let _0x96f53e=_0xf3797a[_0x3ca78a(0x168)]/0xea60;_0x4f362e&&(_0x96f53e=0xb4-_0x96f53e),_0x2fc6f3&&(_0x96f53e=-_0x96f53e),_0x96f53e+=_0x489913||0x0,_0x96f53e=(_0x96f53e%0x168+0x168)%0x168;let _0x8a48d=_0x5e7c0a({'left':_0x2b6856,'top':_0x5a55fc,'width':_0x2633a8,'height':_0x1bae60},_0x489913||0x0);return{'point':{'x':_0x5700e9,'y':_0xacd598},'angle':_0x96f53e,'bounds':_0x8a48d};}[_0x3a184f(0x11b)](_0x96f936,_0x226e52,_0xa7f9bd,_0x551b16,_0x51e9ba,_0x286338,_0x46c5f3,_0x1020a0,_0x26050b,_0x554563){const _0x938ed3=_0x3a184f;let _0x97f887=this['_sheetSkeletonService'][_0x938ed3(0x186)](_0x96f936,_0x226e52);if(!_0x97f887)return;let _0x1361c2=_0x551b16['getShapeRelation'](),_0xb64df0=_0x551b16[_0x938ed3(0x17f)](),_0x483efb={},_0x1c742e={};_0xb64df0[_0x938ed3(0x12e)](_0x3e21da=>{let _0x1a885c=_0x551b16['getAdjustValueByName'](_0x3e21da);_0x1c742e[_0x3e21da]=_0x1a885c==null?0x0:_0x1a885c;});let _0x2445f5=this[_0x938ed3(0x192)](_0x51e9ba,_0x96f936,_0x226e52,_0x26050b,_0x554563),_0x25507c=this['_getConnectPointInfo'](_0x286338,_0x96f936,_0x226e52,_0x26050b,_0x554563);if(_0x2445f5&&_0x25507c){let _0x1cece7=_0x551b16[_0x938ed3(0x173)](),_0x48c3dc=_0x3ff60f(_0x2445f5,_0x25507c,_0x1cece7),_0x50adfa=_0x1cece7;if(_0x48c3dc){let _0x58953a=_0x2856f6(_0x48c3dc,_0x551b16['getShapeType']()),_0x3a465f=this[_0x938ed3(0x124)][_0x938ed3(0x196)](_0x96f936,_0x226e52);if(_0x3a465f&&_0x3a465f[_0xa7f9bd]){let _0x15a3b3=_0x3a465f[_0xa7f9bd];_0x50adfa=_0x58953a['lineType'];for(let [_0x2f6dc2,_0x5b646d]of Object[_0x938ed3(0x11a)](_0x58953a[_0x938ed3(0x193)]))_0x483efb[_0x2f6dc2]=_0x5b646d;let _0x16924d={..._0x15a3b3[_0x938ed3(0x161)],'width':_0x58953a[_0x938ed3(0x1a9)]['width'],'height':_0x58953a[_0x938ed3(0x1a9)][_0x938ed3(0x187)],'left':_0x58953a[_0x938ed3(0x1a9)][_0x938ed3(0x131)],'top':_0x58953a[_0x938ed3(0x1a9)][_0x938ed3(0x188)],'flipX':_0x58953a['worldRect'][_0x938ed3(0x12c)],'flipY':_0x58953a[_0x938ed3(0x1a9)][_0x938ed3(0x113)],'angle':_0x58953a['rotation']},_0x50d120=_0x5b629c(_0x16924d,_0x97f887),_0x19d0a7=_0x107177(_0x16924d,_0x97f887),_0x4c8ae0={'unitId':_0x96f936,'subUnitId':_0x226e52,'drawingType':_0x123f9a['DRAWING_SHAPE'],'drawingId':_0xa7f9bd,'transform':_0x16924d,'sheetTransform':_0x50d120,'axisAlignSheetTransform':_0x19d0a7},{unitId:_0x11aa67,subUnitId:_0x5b638d,undo:_0x5ab79b,redo:_0x10440e,objects:_0x3df361}=this[_0x938ed3(0x124)][_0x938ed3(0x13d)]([_0x4c8ae0]);_0x46c5f3['push']({'id':_0x25204a['id'],'params':{'unitId':_0x11aa67,'subUnitId':_0x5b638d,'op':_0x10440e,'objects':_0x3df361,'type':_0x597b08[_0x938ed3(0x15c)]}}),_0x1020a0[_0x938ed3(0x13e)]({'id':_0x25204a['id'],'params':{'unitId':_0x11aa67,'subUnitId':_0x5b638d,'op':_0x5ab79b,'objects':_0x3df361,'type':_0x597b08['UPDATE']}});}_0x551b16[_0x938ed3(0x134)]();}_0x46c5f3[_0x938ed3(0x13e)]({'id':Y['id'],'params':{'unitId':_0x96f936,'subUnitId':_0x226e52,'shapeId':_0xa7f9bd,'shapeType':_0x50adfa,'shapeData':{'adjustValues':_0x483efb,'relation':_0x1361c2}}}),_0x1020a0[_0x938ed3(0x13e)]({'id':Y['id'],'params':{'unitId':_0x96f936,'subUnitId':_0x226e52,'shapeId':_0xa7f9bd,'shapeType':_0x1cece7,'shapeData':{'adjustValues':_0x1c742e,'relation':_0x1361c2}}});}}[_0x3a184f(0x167)](_0x51f77e,_0x5abb7d,_0x2ccbd7,_0x25d05a,_0x22e6f7,_0x48a4a1,_0x219ea7,_0xc31eb9,_0x471290,_0x4fd8b2){const _0x4edb1a=_0x3a184f;var _0xa5e4c3;if(!_0x22e6f7)return;let _0x5de468=this['_sheetSkeletonService'][_0x4edb1a(0x186)](_0x51f77e,_0x5abb7d);if(!_0x5de468)return;let _0x3cb33d=(_0xa5e4c3=this[_0x4edb1a(0x124)]['getDrawingByParam']({'unitId':_0x51f77e,'subUnitId':_0x5abb7d,'drawingId':_0x471290}))==null?void 0x0:_0xa5e4c3['transform'];if(!_0x3cb33d)return;let _0x3f1dd9=_0x3cb33d[_0x4edb1a(0x131)]!==_0x4fd8b2['left']||_0x3cb33d[_0x4edb1a(0x188)]!==_0x4fd8b2[_0x4edb1a(0x188)],_0x11d64b=_0x3cb33d[_0x4edb1a(0x179)]!==_0x4fd8b2['width']||_0x3cb33d['height']!==_0x4fd8b2['height'],_0x5488eb=_0x3cb33d['flipX']!==_0x4fd8b2[_0x4edb1a(0x12c)]||_0x3cb33d[_0x4edb1a(0x113)]!==_0x4fd8b2[_0x4edb1a(0x113)],_0x7f1563=_0x3cb33d[_0x4edb1a(0x1a3)]!==_0x4fd8b2[_0x4edb1a(0x1a3)];if(_0x3f1dd9&&!_0x11d64b&&!_0x5488eb&&!_0x7f1563){var _0x5e0a26,_0x1739a5,_0x513f5e,_0x3ee93d;let _0x4fcd97=((_0x5e0a26=_0x4fd8b2['left'])==null?0x0:_0x5e0a26)-((_0x1739a5=_0x3cb33d[_0x4edb1a(0x131)])==null?0x0:_0x1739a5),_0x575b9e=((_0x513f5e=_0x4fd8b2[_0x4edb1a(0x188)])==null?0x0:_0x513f5e)-((_0x3ee93d=_0x3cb33d[_0x4edb1a(0x188)])==null?0x0:_0x3ee93d),_0xc2a84=this[_0x4edb1a(0x124)][_0x4edb1a(0x196)](_0x51f77e,_0x5abb7d);if(_0xc2a84&&_0xc2a84[_0x2ccbd7]){var _0x5da9d4,_0x10785b,_0x135c38,_0x3f0b5c;let _0x13ad5d=_0xc2a84[_0x2ccbd7],_0x5c2a23={..._0x13ad5d['transform'],'left':((_0x5da9d4=(_0x10785b=_0x13ad5d[_0x4edb1a(0x161)])==null?void 0x0:_0x10785b[_0x4edb1a(0x131)])==null?0x0:_0x5da9d4)+_0x4fcd97,'top':((_0x135c38=(_0x3f0b5c=_0x13ad5d[_0x4edb1a(0x161)])==null?void 0x0:_0x3f0b5c['top'])==null?0x0:_0x135c38)+_0x575b9e},_0x482877=_0x5b629c(_0x5c2a23,_0x5de468),_0x3fddc3=_0x107177(_0x5c2a23,_0x5de468),_0x17d995={'unitId':_0x51f77e,'subUnitId':_0x5abb7d,'drawingType':_0x123f9a['DRAWING_SHAPE'],'drawingId':_0x2ccbd7,'transform':_0x5c2a23,'sheetTransform':_0x482877,'axisAlignSheetTransform':_0x3fddc3},{unitId:_0x171aca,subUnitId:_0x48a2aa,undo:_0x4ad4b8,redo:_0x22e497,objects:_0x26282c}=this['_drawingManagerService']['getBatchUpdateOp']([_0x17d995]);_0x219ea7[_0x4edb1a(0x13e)]({'id':_0x25204a['id'],'params':{'unitId':_0x171aca,'subUnitId':_0x48a2aa,'op':_0x22e497,'objects':_0x26282c,'type':_0x597b08[_0x4edb1a(0x15c)]}}),_0xc31eb9['push']({'id':_0x25204a['id'],'params':{'unitId':_0x171aca,'subUnitId':_0x48a2aa,'op':_0x4ad4b8,'objects':_0x26282c,'type':_0x597b08[_0x4edb1a(0x15c)]}});}}else{let _0x18da3c=_0x25d05a[_0x4edb1a(0x198)](),_0x4bc225=_0x25d05a[_0x4edb1a(0x118)]();this[_0x4edb1a(0x11b)](_0x51f77e,_0x5abb7d,_0x2ccbd7,_0x25d05a,_0x18da3c,_0x4bc225,_0x219ea7,_0xc31eb9,_0x471290,_0x4fd8b2);}}};le=W([U(0x0,_0x27fb22),U(0x1,_0x14913b(_0x1d917b)),U(0x2,_0x14913b(_0x40d9b8)),U(0x3,_0x14913b(G)),U(0x4,_0x14913b(_0x2841a3))],le);let $=class extends _0x1916d8{constructor(_0x2c54e8=ce,_0x3e8e51,_0x3564a4,_0x301fbd){const _0x2dbcaf=_0x3a184f;super(),this[_0x2dbcaf(0x16b)]=_0x2c54e8,this['_injector']=_0x3e8e51,this[_0x2dbcaf(0x180)]=_0x3564a4,this[_0x2dbcaf(0x163)]=_0x301fbd;let {..._0x2e07cc}=_0x2fb6e3({},ce,this[_0x2dbcaf(0x16b)]);this[_0x2dbcaf(0x163)]['setConfig'](se,_0x2e07cc);}[_0x3a184f(0x19e)](){const _0x1683db=_0x3a184f;let _0x4d71cc=this['_injector'];[[H],[G],[le]][_0x1683db(0x12e)](_0x19ab22=>_0x4d71cc['add'](_0x19ab22)),_0x47b815(_0x4d71cc,[[G],[le]]);}};V($,'type',_0x5e7a6a['UNIVER_SHEET']),V($,_0x3a184f(0x169),_0x3a184f(0x1aa)),V($,'packageName',ae),V($,_0x3a184f(0x119),oe),$=W([_0x8500a4(_0x3c411b),U(0x1,_0x14913b(_0x378ab6)),U(0x2,_0x27fb22),U(0x3,_0x59fdba)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
1
+ const _0x1a417c=_0x6126;(function(_0x1af039,_0x59c209){const _0x53dc21=_0x6126,_0x493f5c=_0x1af039();while(!![]){try{const _0x583380=parseInt(_0x53dc21(0x1f3))/0x1*(-parseInt(_0x53dc21(0x24f))/0x2)+-parseInt(_0x53dc21(0x1e7))/0x3*(parseInt(_0x53dc21(0x20b))/0x4)+parseInt(_0x53dc21(0x264))/0x5*(-parseInt(_0x53dc21(0x1df))/0x6)+-parseInt(_0x53dc21(0x20d))/0x7+parseInt(_0x53dc21(0x24c))/0x8*(-parseInt(_0x53dc21(0x267))/0x9)+parseInt(_0x53dc21(0x1e6))/0xa+-parseInt(_0x53dc21(0x208))/0xb*(-parseInt(_0x53dc21(0x216))/0xc);if(_0x583380===_0x59c209)break;else _0x493f5c['push'](_0x493f5c['shift']());}catch(_0x390e0c){_0x493f5c['push'](_0x493f5c['shift']());}}}(_0x20c3,0x5cae0));import{ShapeModel as _0x35c2ea,computeConnectorRouteLayout as _0x4d5188,getBasicShapeRotateBound as _0x4dd2cd,isConnectorShape as _0x33d47c,routeConnectorLineShape as _0x29d7a4}from'@univerjs-pro/engine-shape';import{CommandType as _0x5229c7,DependentOn as _0x4c451e,Disposable as _0x4e5f9f,DrawingTypeEnum as _0x5d2b71,ICommandService as _0x285fd2,IConfigService as _0x3c3bf5,IResourceManagerService as _0x5cf65e,IUndoRedoService as _0x2b286c,IUniverInstanceService as _0x32f2cd,Inject as _0xca6a11,Injector as _0x4e72d8,Plugin as _0x2582f4,UniverInstanceType as _0x26716f,generateRandomId as _0x26ccda,merge as _0x3c605c,sequenceExecute as _0x3ffddd,touchDependencies as _0x5c294e}from'@univerjs/core';import{SheetInterceptorService as _0x19401e,SheetSkeletonService as _0x55630f,getSheetCommandTarget as _0x4e7fb4}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0xeb678b,DrawingApplyType as _0x5af201,ISheetDrawingService as _0x3339be,InsertSheetDrawingCommand as _0x1696e3,RemoveSheetDrawingCommand as _0x56569e,SetDrawingApplyMutation as _0x2ae4cd,SetSheetDrawingCommand as _0x28e6ad,transformToAxisAlignPosition as _0x64f7c2,transformToDrawingPosition as _0x5aa0b0}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x3785ee}from'@univerjs-pro/license';import{IDrawingManagerService as _0x525c29}from'@univerjs/drawing';const I=0xc8,L=0xc8;function _0x20c3(){const _0x59e26b=['drawingType','_configService','filter','removeLinePoints','flipX','212442IlXkNc','COMMAND','getShapeTypeById','getShapeData','get','_getConnectPointInfo','UPDATE','3057090SWRZXr','3dVGcCs','from','getCellWithCoordByIndex','set','length','cxnIndex','setShapeData','lineShapeId','setShapeType','interceptCommand','shapeData','isLineShape','326342pCcrEg','ensureSkeleton','delete','_resourcesManagerService','sheet.mutation.update-shape-data','left','sheet.mutation.update-shape-type','pushUndoRedo','getShapeModel','undos','has','decorate','adjustValues','_shapes','fill','preRedos','function','getDrawingByParam','_drawingManagerService','rotation','sheet.command.set-shape-drawing-data','21086725EDQeKT','_addLineFollowShapeUpdates','registerPluginResource','2628968iLlTjf','result','1771728cZeLpR','onStarting','defineProperty','getBasicShapeRelation','borderEnabled','top','SHEET_SHAPE_PLUGIN','sheet.command.update-shape-type','_initCommands','12yqPwoF','_linesIds','assign','syncExecuteCommand','_groupIds','flipY','shapeId','string','sin','getShapeType','@univerjs-pro/sheets-shape','UNIVER_SHEET','getShapeRelation','clear','sheet.command.update-connector-relation','height','sheet.command.update-line-shape-resize','forEach','data','rotateEnabled','getDrawingData','onCommandExecute','isFrom','resizeEnabled','default','getCellIndexAndOffsetByPosition','_disposed','MUTATION','getSkeleton','disposeWithMe','sheet.mutation.insert-shape','_sheetsShapeService','getStartConnectInfo','_sheetSkeletonService','REMOVE','_commandService','getLineShapeRelation','redos','params','INSERT','find','pluginName','_sheetInterceptorService','ang','preUndos','_initCommandInterceptor','_injector','removeShape','toJSON','dispose','packageName','lineType','angle','sheet.command.set-shape-rotate','8LxudKx','_deserializeShapeForUnit','worldRect','2ggRwEG','getConnectionSiteList','DRAWING_SHAPE','startX','_ensureShapeModelManager','range','getBatchUpdateOp','addShape','getEndConnectInfo','type','toPrimitive','position','getAdjustValueByName','fromJSON','add','insertShape','isHorizontal','prototype','_addLineRerouteUpdates','symbol','getAdjustNames','5hpcMcw','_shapeModelManagerMap','push','5138757bbUSbw','relation','iterator','setConfig','object','startY','hasShape','constructor','width','transform','keys','_config','getShapeTextData','sheet.command.set-shape-text-vertical-toggle'];_0x20c3=function(){return _0x59e26b;};return _0x20c3();}function R(_0x88740d){'@babel/helpers - typeof';const _0x3734b3=_0x6126;return R=typeof Symbol==_0x3734b3(0x203)&&typeof Symbol[_0x3734b3(0x269)]==_0x3734b3(0x262)?function(_0x57e190){return typeof _0x57e190;}:function(_0x1f6fc8){const _0xe52e73=_0x3734b3;return _0x1f6fc8&&typeof Symbol==_0xe52e73(0x203)&&_0x1f6fc8[_0xe52e73(0x26e)]===Symbol&&_0x1f6fc8!==Symbol[_0xe52e73(0x260)]?_0xe52e73(0x262):typeof _0x1f6fc8;},R(_0x88740d);}function z(_0x5eee0e,_0x599c1a){const _0x999ee4=_0x6126;if(R(_0x5eee0e)!=_0x999ee4(0x26b)||!_0x5eee0e)return _0x5eee0e;var _0x2762e5=_0x5eee0e[Symbol[_0x999ee4(0x259)]];if(_0x2762e5!==void 0x0){var _0x26255e=_0x2762e5['call'](_0x5eee0e,_0x599c1a||_0x999ee4(0x22e));if(R(_0x26255e)!='object')return _0x26255e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x599c1a===_0x999ee4(0x21d)?String:Number)(_0x5eee0e);}function B(_0x59eab9){const _0x301ba2=_0x6126;var _0x1df4eb=z(_0x59eab9,_0x301ba2(0x21d));return R(_0x1df4eb)=='symbol'?_0x1df4eb:_0x1df4eb+'';}function V(_0x30c52f,_0x402147,_0x2887f6){const _0x3c4aaf=_0x6126;return(_0x402147=B(_0x402147))in _0x30c52f?Object[_0x3c4aaf(0x20f)](_0x30c52f,_0x402147,{'value':_0x2887f6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x30c52f[_0x402147]=_0x2887f6,_0x30c52f;}var H=class extends _0x4e5f9f{constructor(){const _0x34700f=_0x6126;super(),V(this,_0x34700f(0x200),new Map()),V(this,_0x34700f(0x217),new Set()),V(this,'_groupIds',new Set());}[_0x1a417c(0x256)](_0x1076ac,_0x136093,_0x443021){const _0x103611=_0x1a417c;let _0x1b0e48=new _0x35c2ea(_0x1076ac,_0x136093,_0x443021);return this[_0x103611(0x200)]['set'](_0x136093,_0x1b0e48),_0x33d47c(_0x1076ac)&&this[_0x103611(0x217)][_0x103611(0x25d)](_0x136093),_0x1b0e48;}[_0x1a417c(0x210)](_0x5af173){const _0x1971ed=_0x1a417c;let _0x4f0144=[];for(let _0x169008 of this[_0x1971ed(0x217)]){let _0x5103b9=this['_shapes'][_0x1971ed(0x1e3)](_0x169008);if(_0x5103b9){let _0x521976=_0x5103b9[_0x1971ed(0x222)]();if(_0x521976){var _0x1ff969,_0x30d652;((_0x1ff969=_0x521976[_0x1971ed(0x1e8)])==null?void 0x0:_0x1ff969[_0x1971ed(0x21c)])===_0x5af173&&_0x4f0144[_0x1971ed(0x266)]({..._0x521976[_0x1971ed(0x1e8)],'lineShapeId':_0x169008,'isFrom':!0x0}),((_0x30d652=_0x521976['to'])==null?void 0x0:_0x30d652[_0x1971ed(0x21c)])===_0x5af173&&_0x4f0144[_0x1971ed(0x266)]({..._0x521976['to'],'lineShapeId':_0x169008,'isFrom':!0x1});}}}return _0x4f0144;}[_0x1a417c(0x23a)](_0x1a0607){const _0x157313=_0x1a417c;let _0x1bda51=this[_0x157313(0x200)]['get'](_0x1a0607);if(_0x1bda51)return _0x1bda51[_0x157313(0x222)]();}[_0x1a417c(0x21f)](_0x2f30c3){const _0x17ba17=_0x1a417c;let _0x491e1f=this[_0x17ba17(0x200)]['get'](_0x2f30c3);if(_0x491e1f)return _0x491e1f[_0x17ba17(0x21f)]();}['hasShape'](_0x37bbd6){const _0x512c10=_0x1a417c;return this[_0x512c10(0x200)][_0x512c10(0x1fd)](_0x37bbd6);}[_0x1a417c(0x245)](_0x32c936){const _0x3841f5=_0x1a417c;let _0x34052c=this[_0x3841f5(0x200)]['get'](_0x32c936);_0x34052c&&(_0x33d47c(_0x34052c[_0x3841f5(0x21f)]())&&this[_0x3841f5(0x217)]['delete'](_0x32c936),this[_0x3841f5(0x200)][_0x3841f5(0x1f5)](_0x32c936));}['toJSON'](){const _0x20eb57=_0x1a417c;let _0x1d234d=[];return this['_shapes'][_0x20eb57(0x227)](_0x270762=>{_0x1d234d['push'](_0x270762['toJSON']());}),_0x1d234d;}[_0x1a417c(0x25c)](_0x31e6c6){const _0x55cae0=_0x1a417c;for(let _0x49fdd1 of _0x31e6c6){let {id:_0x3fe395,shapeType:_0x515ccf}=_0x49fdd1,_0x342c36=this[_0x55cae0(0x256)](_0x515ccf,_0x3fe395,_0x49fdd1[_0x55cae0(0x1f1)]);_0x342c36&&_0x342c36[_0x55cae0(0x1f2)]()&&this[_0x55cae0(0x217)][_0x55cae0(0x25d)](_0x3fe395);}}[_0x1a417c(0x247)](){const _0x22f7fd=_0x1a417c;this[_0x22f7fd(0x230)]||(this[_0x22f7fd(0x200)][_0x22f7fd(0x227)](_0x4f57aa=>{const _0xbc8bd0=_0x22f7fd;_0x4f57aa[_0xbc8bd0(0x247)]();}),this['_shapes']['clear'](),this['_linesIds'][_0x22f7fd(0x223)](),this[_0x22f7fd(0x21a)][_0x22f7fd(0x223)](),super[_0x22f7fd(0x247)]());}};function U(_0x22c5b4,_0x1325e1){return function(_0x2e5034,_0xf56a6a){_0x1325e1(_0x2e5034,_0xf56a6a,_0x22c5b4);};}function W(_0xc6bf37,_0x32c429,_0x439ed9,_0x3f9c50){const _0x17c0db=_0x1a417c;var _0x3594ee=arguments[_0x17c0db(0x1eb)],_0x283dc0=_0x3594ee<0x3?_0x32c429:_0x3f9c50===null?_0x3f9c50=Object['getOwnPropertyDescriptor'](_0x32c429,_0x439ed9):_0x3f9c50,_0x4c65de;if(typeof Reflect==_0x17c0db(0x26b)&&typeof Reflect[_0x17c0db(0x1fe)]==_0x17c0db(0x203))_0x283dc0=Reflect[_0x17c0db(0x1fe)](_0xc6bf37,_0x32c429,_0x439ed9,_0x3f9c50);else{for(var _0x492eee=_0xc6bf37[_0x17c0db(0x1eb)]-0x1;_0x492eee>=0x0;_0x492eee--)(_0x4c65de=_0xc6bf37[_0x492eee])&&(_0x283dc0=(_0x3594ee<0x3?_0x4c65de(_0x283dc0):_0x3594ee>0x3?_0x4c65de(_0x32c429,_0x439ed9,_0x283dc0):_0x4c65de(_0x32c429,_0x439ed9))||_0x283dc0);}return _0x3594ee>0x3&&_0x283dc0&&Object[_0x17c0db(0x20f)](_0x32c429,_0x439ed9,_0x283dc0),_0x283dc0;}let G=class extends _0x4e5f9f{constructor(_0x36bf1f){const _0x102ff2=_0x1a417c;super(),this['_resourcesManagerService']=_0x36bf1f,V(this,_0x102ff2(0x265),new Map()),this['_initSnapshot']();}[_0x1a417c(0x253)](_0x3b87dd,_0x2cd931){const _0x1f162a=_0x1a417c;let _0x38f176=this[_0x1f162a(0x265)][_0x1f162a(0x1e3)](_0x3b87dd);_0x38f176||(_0x38f176=new Map(),this[_0x1f162a(0x265)][_0x1f162a(0x1ea)](_0x3b87dd,_0x38f176));let _0x396231=_0x38f176[_0x1f162a(0x1e3)](_0x2cd931);return _0x396231||(_0x396231=new H(),_0x38f176['set'](_0x2cd931,_0x396231)),_0x396231;}['insertShape'](_0x5f31db,_0x4a69a0,_0x18d581,_0x1b7570,_0x34394a){const _0x5a93ce=_0x1a417c;this[_0x5a93ce(0x253)](_0x5f31db,_0x4a69a0)[_0x5a93ce(0x256)](_0x18d581,_0x1b7570,_0x34394a);}[_0x1a417c(0x245)](_0x1b660b,_0x2e6b8e,_0x2d2cc3){const _0x4b7c20=_0x1a417c;this['_ensureShapeModelManager'](_0x1b660b,_0x2e6b8e)[_0x4b7c20(0x245)](_0x2d2cc3);}['getBasicShapeType'](_0x307af0,_0x2e96c6,_0xa8e032){const _0x4b8075=_0x1a417c;return this[_0x4b8075(0x253)](_0x307af0,_0x2e96c6)[_0x4b8075(0x21f)](_0xa8e032);}[_0x1a417c(0x21f)](_0x4624df,_0x3976fe,_0x339567){const _0x1cd31e=_0x1a417c;return this[_0x1cd31e(0x253)](_0x4624df,_0x3976fe)['getShapeType'](_0x339567);}[_0x1a417c(0x26d)](_0x46196d,_0x54161b,_0x9a316){const _0x21f226=_0x1a417c;return this['_ensureShapeModelManager'](_0x46196d,_0x54161b)[_0x21f226(0x26d)](_0x9a316);}[_0x1a417c(0x1e1)](_0x349bb6,_0x10dd3c,_0x37a502){const _0x4b5772=_0x1a417c;return this['_ensureShapeModelManager'](_0x349bb6,_0x10dd3c)[_0x4b5772(0x21f)](_0x37a502);}['getShapeDataById'](_0x2e461f,_0x4af949,_0x34af3e){const _0x142a5e=_0x1a417c;let _0x2ca2b5=this[_0x142a5e(0x253)](_0x2e461f,_0x4af949);if(!_0x2ca2b5[_0x142a5e(0x21f)](_0x34af3e))return;let _0x2b65a3=_0x2ca2b5[_0x142a5e(0x200)]['get'](_0x34af3e);if(_0x2b65a3)return _0x2b65a3[_0x142a5e(0x1e2)]();}[_0x1a417c(0x1fb)](_0x2a0098,_0x5a7d89,_0x4b4d23){const _0x58eb2c=_0x1a417c;return this[_0x58eb2c(0x253)](_0x2a0098,_0x5a7d89)[_0x58eb2c(0x200)][_0x58eb2c(0x1e3)](_0x4b4d23);}[_0x1a417c(0x210)](_0x1714fd,_0x2e3659,_0x3d7a97){const _0x413f9c=_0x1a417c;return this[_0x413f9c(0x253)](_0x1714fd,_0x2e3659)[_0x413f9c(0x210)](_0x3d7a97);}[_0x1a417c(0x23a)](_0x3812e9,_0x58b3b7,_0x557e6f){const _0x58bdd8=_0x1a417c;let _0x10ef65=this[_0x58bdd8(0x253)](_0x3812e9,_0x58b3b7)['_shapes'][_0x58bdd8(0x1e3)](_0x557e6f);if(_0x10ef65)return _0x10ef65['getShapeRelation']();}[_0x1a417c(0x1ef)](){}['_serializeShapeForUnit'](_0x2a0afb){const _0x2e7ce9=_0x1a417c;let _0x5e4d69={},_0x471aee=this['_shapeModelManagerMap'][_0x2e7ce9(0x1e3)](_0x2a0afb);return _0x471aee&&_0x471aee['forEach']((_0xa44e1a,_0x3e7208)=>{const _0x4b91ab=_0x2e7ce9;let _0x397582=_0xa44e1a['toJSON']();_0x397582[_0x4b91ab(0x1eb)]>0x0&&(_0x5e4d69[_0x3e7208]=_0x397582);}),JSON['stringify'](_0x5e4d69);}[_0x1a417c(0x24d)](_0x3c6889,_0x120a42){const _0x464d68=_0x1a417c;Object[_0x464d68(0x271)](_0x120a42)['forEach'](_0x2a7e4c=>{const _0x31eae3=_0x464d68;this[_0x31eae3(0x253)](_0x3c6889,_0x2a7e4c)[_0x31eae3(0x25c)](_0x120a42[_0x2a7e4c]);});}[_0x1a417c(0x246)](){const _0x162a4f=_0x1a417c;let _0x46316d={};return this[_0x162a4f(0x265)][_0x162a4f(0x227)]((_0x680fe9,_0xf683d8)=>{const _0x58c4e5=_0x162a4f;_0x46316d[_0xf683d8]={},_0x680fe9[_0x58c4e5(0x227)]((_0x51c3fb,_0x2311e7)=>{const _0x5420f8=_0x58c4e5;_0x46316d[_0xf683d8][_0x2311e7]=_0x51c3fb[_0x5420f8(0x246)]();});}),_0x46316d;}[_0x1a417c(0x25c)](_0x263172){const _0x1f9c14=_0x1a417c;Object[_0x1f9c14(0x271)](_0x263172)['forEach'](_0x42fcbb=>{const _0x3bb30b=_0x1f9c14;let _0x48077c=_0x263172[_0x42fcbb];Object[_0x3bb30b(0x271)](_0x48077c)['forEach'](_0x14675e=>{const _0x16a2ac=_0x3bb30b;this['_ensureShapeModelManager'](_0x42fcbb,_0x14675e)[_0x16a2ac(0x25c)](_0x48077c[_0x14675e]);});});}['_initSnapshot'](){const _0x4c01be=_0x1a417c;this[_0x4c01be(0x1f6)][_0x4c01be(0x20a)]({'pluginName':_0x4c01be(0x213),'businesses':[_0x26716f[_0x4c01be(0x221)]],'toJson':_0x1876f0=>this['_serializeShapeForUnit'](_0x1876f0),'parseJson':_0x302c48=>JSON['parse'](_0x302c48),'onLoad':(_0x1dcd75,_0x343f5c)=>{const _0x5b4390=_0x4c01be;this[_0x5b4390(0x24d)](_0x1dcd75,_0x343f5c);},'onUnLoad':_0x56099f=>{const _0x2e3ddb=_0x4c01be;let _0x15b681=this[_0x2e3ddb(0x265)][_0x2e3ddb(0x1e3)](_0x56099f);_0x15b681&&(_0x15b681[_0x2e3ddb(0x227)](_0xd40976=>{_0xd40976['dispose']();}),this[_0x2e3ddb(0x265)][_0x2e3ddb(0x1f5)](_0x56099f));}});}[_0x1a417c(0x247)](){const _0x43ca59=_0x1a417c;this[_0x43ca59(0x265)][_0x43ca59(0x227)](_0x2b4128=>{const _0x543e1e=_0x43ca59;_0x2b4128[_0x543e1e(0x227)](_0x2b4c35=>{const _0x34dd98=_0x543e1e;_0x2b4c35[_0x34dd98(0x247)]();});});}};G=W([U(0x0,_0x5cf65e)],G);const K={'id':_0x1a417c(0x234),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0x304eaf,_0x4c2700)=>{const _0xc298f7=_0x1a417c;let {unitId:_0xf68612,subUnitId:_0x1c654c,shapeType:_0x3f57a3,shapeId:_0xdd5791,shapeData:_0xdfdb0e}=_0x4c2700;return _0x304eaf['get'](G)[_0xc298f7(0x25e)](_0xf68612,_0x1c654c,_0x3f57a3,_0xdd5791,_0xdfdb0e),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0xe11b2d,_0x54f305)=>{const _0x276549=_0x1a417c;let {unitId:_0x19d9e1,subUnitId:_0x2aeca6,shapeId:_0x245937}=_0x54f305;return _0xe11b2d[_0x276549(0x1e3)](G)['removeShape'](_0x19d9e1,_0x2aeca6,_0x245937),!0x0;}},J={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':'sheet.command.insert-shape','handler':(_0x2ba2fc,_0x31f9ca)=>{const _0x4fa7b5=_0x1a417c;var _0x38314d,_0x47bae3;let _0xdb837a=_0x4e7fb4(_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x32f2cd),_0x31f9ca);if(!_0xdb837a)return!0x1;let _0x1e8385=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x55630f),{unitId:_0x80cbc6,subUnitId:_0x416819}=_0xdb837a,_0xfb05ce=_0x1e8385[_0x4fa7b5(0x1f4)](_0x80cbc6,_0x416819);if(!_0xfb05ce)return!0x1;let _0x54d16b=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x285fd2),_0x43f14f=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x2b286c),_0x27ddad=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x19401e),_0x216816=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x3339be),{shapeType:_0x5a1df7,shapeData:_0x30eb61}=_0x31f9ca,_0xa9a114=_0x31f9ca[_0x4fa7b5(0x21c)]||_0x26ccda(),_0x3b571e={'unitId':_0x80cbc6,'subUnitId':_0x416819,'shapeId':_0xa9a114,'shapeType':_0x5a1df7,'shapeData':_0x30eb61},_0x17ac8d=_0x31f9ca['width']||0xc8,_0x102a2f=_0x31f9ca[_0x4fa7b5(0x225)]||0xc8,_0x41c408=0x0,_0x1a12fe=0x0,_0x12d03b={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x5c6648={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x31f9ca[_0x4fa7b5(0x25a)]){let {x:_0xdbc707,y:_0x4d8dc8}=_0x31f9ca[_0x4fa7b5(0x25a)];_0x41c408=_0xdbc707,_0x1a12fe=_0x4d8dc8,_0x12d03b=_0xfb05ce[_0x4fa7b5(0x22f)](_0xdbc707,_0x4d8dc8),_0x5c6648=_0xfb05ce['getCellIndexAndOffsetByPosition'](_0xdbc707+_0x17ac8d,_0x4d8dc8+_0x102a2f);}else{if(_0x31f9ca[_0x4fa7b5(0x254)]){let {startRow:_0x1e8f11,startColumn:_0x3d5757}=_0x31f9ca[_0x4fa7b5(0x254)];_0x12d03b={'row':_0x1e8f11,'rowOffset':0xa,'column':_0x3d5757,'columnOffset':0xa};let _0xf5a39c=_0xfb05ce[_0x4fa7b5(0x1e9)](_0x1e8f11,_0x3d5757);_0x41c408=_0xf5a39c[_0x4fa7b5(0x252)]+0xa,_0x1a12fe=_0xf5a39c[_0x4fa7b5(0x26c)]+0xa,_0x5c6648=_0xfb05ce['getCellIndexAndOffsetByPosition'](_0x41c408+_0x17ac8d,_0x1a12fe+_0x102a2f);}}let _0xc32fa0={'from':_0x12d03b,'to':_0x5c6648},_0x3bc7cc={'unitId':_0x80cbc6,'subUnitId':_0x416819,'drawingId':_0xa9a114,'drawingType':_0x5d2b71[_0x4fa7b5(0x251)],'sheetTransform':_0xc32fa0,'transform':{'left':_0x41c408,'top':_0x1a12fe,'width':_0x17ac8d,'height':_0x102a2f},'data':{'shapeType':_0x5a1df7,'shapeData':_0x30eb61},'axisAlignSheetTransform':_0xc32fa0,'allowTransform':!0x0};_0x33d47c(_0x5a1df7)&&(_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x201)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x229)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x22d)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x211)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x229)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x22d)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x211)]=!0x1);let {undo:_0x1217fe,redo:_0x432c15,objects:_0x1ceee0}=_0x216816['getBatchAddOp']([_0x3bc7cc]),_0x5c6787=_0x27ddad[_0x4fa7b5(0x22b)]({'id':_0x1696e3['id'],'params':{'unitId':_0x80cbc6,'drawings':[_0x3bc7cc]}}),_0x301b18=[...(_0x38314d=_0x5c6787['preRedos'])==null?[]:_0x38314d,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'op':_0x432c15,'objects':_0x1ceee0,'type':_0x5af201[_0x4fa7b5(0x23d)]}},{'id':_0xeb678b['id'],'params':[_0x80cbc6]},..._0x5c6787[_0x4fa7b5(0x23b)],{'id':K['id'],'params':_0x3b571e}],_0x1f2d66=[{'id':q['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'shapeId':_0xa9a114}},...(_0x47bae3=_0x5c6787[_0x4fa7b5(0x242)])==null?[]:_0x47bae3,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'op':_0x1217fe,'objects':_0x1ceee0,'type':_0x5af201[_0x4fa7b5(0x238)]}},{'id':_0xeb678b['id'],'params':[_0x80cbc6]},..._0x5c6787[_0x4fa7b5(0x1fc)]];return _0x3ffddd(_0x301b18,_0x54d16b)['result']?(_0x43f14f[_0x4fa7b5(0x1fa)]({'unitID':_0x80cbc6,'undoMutations':_0x1f2d66,'redoMutations':_0x301b18}),!0x0):!0x1;}},Y={'id':_0x1a417c(0x1f7),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0x44c20b,_0x572229)=>{const _0x262566=_0x1a417c;let {unitId:_0x3dec78,subUnitId:_0x3a37c0,shapeType:_0x551e6e,shapeId:_0x26b26c,shapeData:_0x56b75c}=_0x572229,_0x3073c0=_0x44c20b[_0x262566(0x1e3)](G)[_0x262566(0x1fb)](_0x3dec78,_0x3a37c0,_0x26b26c);return _0x3073c0&&(_0x551e6e!==void 0x0&&_0x3073c0[_0x262566(0x1ef)](_0x551e6e),_0x56b75c&&(_0x3073c0==null||_0x3073c0[_0x262566(0x1ed)](_0x56b75c,!0x0))),!0x0;}},ee={'type':_0x5229c7['COMMAND'],'id':_0x1a417c(0x207),'handler':(_0x25f3e5,_0x4fa513)=>{const _0x121781=_0x1a417c;var _0x41e207,_0x5f0fc0;let _0x3b94d9=_0x4e7fb4(_0x25f3e5[_0x121781(0x1e3)](_0x32f2cd),_0x4fa513);if(!_0x3b94d9)return!0x1;let _0x794d89=_0x25f3e5[_0x121781(0x1e3)](_0x55630f),{unitId:_0x324c08,subUnitId:_0x35d162}=_0x3b94d9,_0x3a2ea4=_0x794d89[_0x121781(0x1f4)](_0x324c08,_0x35d162);if(!_0x3a2ea4)return!0x1;let _0xd45d0=_0x25f3e5['get'](G),{shapeId:_0x4f2886,shapeType:_0x29d377,shapeData:_0x5b7a5c,position:_0x19fad0,width:_0x35139f,height:_0x227ff0}=_0x4fa513,_0xf2720f=_0xd45d0[_0x121781(0x1fb)](_0x324c08,_0x35d162,_0x4f2886);if(!_0xf2720f)return!0x1;let _0x5301e7=_0x25f3e5[_0x121781(0x1e3)](_0x285fd2),_0x41f52c=_0x25f3e5['get'](_0x2b286c),_0xac465b=_0x25f3e5[_0x121781(0x1e3)](_0x19401e),_0x34fe8b=_0x25f3e5[_0x121781(0x1e3)](_0x3339be),_0x48217f={'unitId':_0x324c08,'subUnitId':_0x35d162,'shapeId':_0x4f2886,'shapeType':_0x29d377,'shapeData':_0x5b7a5c},_0x11f98e=_0xf2720f[_0x121781(0x21f)](),_0xf19aa=_0xf2720f[_0x121781(0x1e2)](),{x:_0x34753f,y:_0x27c09c}=_0x19fad0,_0x4dc017={'from':_0x3a2ea4[_0x121781(0x22f)](_0x34753f,_0x27c09c),'to':_0x3a2ea4[_0x121781(0x22f)](_0x34753f+_0x35139f,_0x27c09c+_0x227ff0)},_0x25e3c3={'unitId':_0x324c08,'subUnitId':_0x35d162,'drawingId':_0x4f2886,'drawingType':_0x5d2b71[_0x121781(0x251)],'sheetTransform':_0x4dc017,'transform':{'left':_0x34753f,'top':_0x27c09c,'width':_0x35139f,'height':_0x227ff0},'data':{'shapeType':_0x29d377,'shapeData':_0x5b7a5c},'axisAlignSheetTransform':_0x4dc017,'allowTransform':!0x0};_0x33d47c(_0x29d377)&&(_0x25e3c3[_0x121781(0x228)]['fill']=!0x1,_0x25e3c3[_0x121781(0x228)]['rotateEnabled']=!0x1,_0x25e3c3[_0x121781(0x228)][_0x121781(0x22d)]=!0x1,_0x25e3c3[_0x121781(0x228)][_0x121781(0x211)]=!0x1,_0x25e3c3[_0x121781(0x270)]['rotateEnabled']=!0x1,_0x25e3c3['transform'][_0x121781(0x22d)]=!0x1,_0x25e3c3[_0x121781(0x270)][_0x121781(0x211)]=!0x1);let {undo:_0x3011f0,redo:_0x59842b,objects:_0x408aaa}=_0x34fe8b[_0x121781(0x255)]([_0x25e3c3]),_0x2acf25=_0xac465b[_0x121781(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x324c08,'drawings':[_0x25e3c3]}}),_0x52398b=[...(_0x41e207=_0x2acf25[_0x121781(0x202)])==null?[]:_0x41e207,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'op':_0x59842b,'objects':_0x408aaa,'type':_0x5af201[_0x121781(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x324c08]},..._0x2acf25[_0x121781(0x23b)],{'id':Y['id'],'params':_0x48217f}],_0x4d9df7=[...(_0x5f0fc0=_0x2acf25['preUndos'])==null?[]:_0x5f0fc0,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'op':_0x3011f0,'objects':_0x408aaa,'type':_0x5af201[_0x121781(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x324c08]},..._0x2acf25['undos'],{'id':Y['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'shapeType':_0x11f98e,'shapeId':_0x4f2886,'shapeData':_0xf19aa}}];return _0x3ffddd(_0x52398b,_0x5301e7)[_0x121781(0x20c)]?(_0x41f52c[_0x121781(0x1fa)]({'unitID':_0x324c08,'undoMutations':_0x4d9df7,'redoMutations':_0x52398b}),!0x0):!0x1;}},te={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':'sheet.command.toggle-shape-flip','handler':(_0x5cb20a,_0x611ab)=>{const _0x1b76c9=_0x1a417c;var _0x5a1eab,_0x2bfa82;let _0x57379f=_0x4e7fb4(_0x5cb20a[_0x1b76c9(0x1e3)](_0x32f2cd),_0x611ab);if(!_0x57379f)return!0x1;let _0x23b108=_0x5cb20a[_0x1b76c9(0x1e3)](_0x55630f),{unitId:_0x2829ff,subUnitId:_0x121a21}=_0x57379f,_0x18cefd=_0x23b108['getSkeleton'](_0x2829ff,_0x121a21);if(!_0x18cefd)return!0x1;let _0x494f66=_0x5cb20a[_0x1b76c9(0x1e3)](_0x3339be),{shapeId:_0x30ddf0,flipH:_0x476179,flipV:_0x92049a}=_0x611ab,_0x3e9126=_0x494f66[_0x1b76c9(0x204)]({'unitId':_0x2829ff,'subUnitId':_0x121a21,'drawingId':_0x30ddf0});if(!_0x3e9126)return!0x1;let _0x56d84e=_0x5cb20a[_0x1b76c9(0x1e3)](G)[_0x1b76c9(0x1fb)](_0x2829ff,_0x121a21,_0x30ddf0);if(!_0x56d84e)return!0x1;let _0x2ba86b=_0x5cb20a[_0x1b76c9(0x1e3)](_0x285fd2),_0x2ee72e=_0x5cb20a[_0x1b76c9(0x1e3)](_0x2b286c),_0x3088b4=_0x5cb20a[_0x1b76c9(0x1e3)](_0x19401e),_0x370a8f={..._0x3e9126['transform']};_0x476179!==void 0x0&&(_0x370a8f[_0x1b76c9(0x1de)]=!_0x370a8f['flipX']),_0x92049a!==void 0x0&&(_0x370a8f['flipY']=!_0x370a8f['flipY']);let _0x342bb7=_0x5aa0b0(_0x370a8f,_0x18cefd),_0x4bc0dc=_0x64f7c2(_0x370a8f,_0x18cefd),_0x189819=_0x56d84e['getShapeType'](),_0x29e43b=_0x56d84e[_0x1b76c9(0x1e2)](),_0x50d6e1={'unitId':_0x2829ff,'subUnitId':_0x121a21,'drawingId':_0x30ddf0,'drawingType':_0x5d2b71['DRAWING_SHAPE'],'sheetTransform':_0x342bb7,'transform':_0x370a8f,'data':{'shapeType':_0x189819,'shapeData':_0x29e43b},'axisAlignSheetTransform':_0x4bc0dc,'allowTransform':!0x0},{undo:_0x394073,redo:_0x527173,objects:_0x140f85}=_0x494f66[_0x1b76c9(0x255)]([_0x50d6e1]),_0x9e178d=_0x3088b4['onCommandExecute']({'id':_0x28e6ad['id'],'params':{'unitId':_0x2829ff,'drawings':[_0x50d6e1]}}),_0x2de0f5=[...(_0x5a1eab=_0x9e178d[_0x1b76c9(0x202)])==null?[]:_0x5a1eab,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'op':_0x527173,'objects':_0x140f85,'type':_0x5af201[_0x1b76c9(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x2829ff]},..._0x9e178d[_0x1b76c9(0x23b)]],_0x8aedea=[...(_0x2bfa82=_0x9e178d[_0x1b76c9(0x242)])==null?[]:_0x2bfa82,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'op':_0x394073,'objects':_0x140f85,'type':_0x5af201[_0x1b76c9(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x2829ff]},..._0x9e178d['undos']];if(_0x33d47c(_0x189819)){let _0x320e1e=_0x56d84e[_0x1b76c9(0x222)]();if(_0x320e1e){let _0x396653={..._0x320e1e};_0x396653[_0x1b76c9(0x1e8)]=void 0x0,_0x396653['to']=void 0x0,_0x2de0f5[_0x1b76c9(0x266)]({'id':Y['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'shapeId':_0x30ddf0,'shapeType':_0x189819,'shapeData':{'relation':_0x396653}}}),_0x8aedea['push']({'id':Y['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'shapeId':_0x30ddf0,'shapeType':_0x189819,'shapeData':{'relation':_0x320e1e}}});}}return _0x3ffddd(_0x2de0f5,_0x2ba86b)['result']?(_0x2ee72e[_0x1b76c9(0x1fa)]({'unitID':_0x2829ff,'undoMutations':_0x8aedea,'redoMutations':_0x2de0f5}),!0x0):!0x1;}},X={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x24b),'handler':(_0x28644a,_0x5a2a2d)=>{const _0x554f10=_0x1a417c;var _0x41bd3c,_0x46762e;let _0x49133e=_0x4e7fb4(_0x28644a['get'](_0x32f2cd),_0x5a2a2d);if(!_0x49133e)return!0x1;let _0x2bb625=_0x28644a[_0x554f10(0x1e3)](_0x55630f),{unitId:_0x553e95,subUnitId:_0x154d85}=_0x49133e,_0xb79bcd=_0x2bb625['getSkeleton'](_0x553e95,_0x154d85);if(!_0xb79bcd)return!0x1;let _0x6b443c=_0x28644a[_0x554f10(0x1e3)](_0x3339be),{shapeId:_0x44af2e,rotate:_0x57c366}=_0x5a2a2d,_0x5f3865=_0x6b443c['getDrawingByParam']({'unitId':_0x553e95,'subUnitId':_0x154d85,'drawingId':_0x44af2e});if(!_0x5f3865)return!0x1;let _0x32f9a8=_0x28644a['get'](G)[_0x554f10(0x1fb)](_0x553e95,_0x154d85,_0x44af2e);if(!_0x32f9a8)return!0x1;let _0x30237b=_0x28644a[_0x554f10(0x1e3)](_0x285fd2),_0x1349e2=_0x28644a[_0x554f10(0x1e3)](_0x2b286c),_0x8ad80d=_0x28644a['get'](_0x19401e),_0x8580c5={..._0x5f3865['transform']};_0x57c366!==void 0x0&&(_0x8580c5[_0x554f10(0x24a)]=(_0x8580c5[_0x554f10(0x24a)]||0x0)+_0x57c366);let _0x3bfefe=_0x5aa0b0(_0x8580c5,_0xb79bcd),_0x2c5ac3=_0x64f7c2(_0x8580c5,_0xb79bcd),_0x3557bc=_0x32f9a8[_0x554f10(0x21f)](),_0x8d4750=_0x32f9a8[_0x554f10(0x1e2)](),_0x3f1806={'unitId':_0x553e95,'subUnitId':_0x154d85,'drawingId':_0x44af2e,'drawingType':_0x5d2b71[_0x554f10(0x251)],'sheetTransform':_0x3bfefe,'transform':_0x8580c5,'data':{'shapeType':_0x3557bc,'shapeData':_0x8d4750},'axisAlignSheetTransform':_0x2c5ac3,'allowTransform':!0x0},{undo:_0x4827ae,redo:_0x428c23,objects:_0x3e06be}=_0x6b443c[_0x554f10(0x255)]([_0x3f1806]),_0x5d762a=_0x8ad80d[_0x554f10(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x553e95,'drawings':[_0x3f1806]}}),_0x20a710=[...(_0x41bd3c=_0x5d762a[_0x554f10(0x202)])==null?[]:_0x41bd3c,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x553e95,'subUnitId':_0x154d85,'op':_0x428c23,'objects':_0x3e06be,'type':_0x5af201['UPDATE']}},{'id':_0xeb678b['id'],'params':[_0x553e95]},..._0x5d762a[_0x554f10(0x23b)]],_0x5263df=[...(_0x46762e=_0x5d762a[_0x554f10(0x242)])==null?[]:_0x46762e,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x553e95,'subUnitId':_0x154d85,'op':_0x4827ae,'objects':_0x3e06be,'type':_0x5af201[_0x554f10(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x553e95]},..._0x5d762a[_0x554f10(0x1fc)]];return _0x3ffddd(_0x20a710,_0x30237b)[_0x554f10(0x20c)]?(_0x1349e2[_0x554f10(0x1fa)]({'unitID':_0x553e95,'undoMutations':_0x5263df,'redoMutations':_0x20a710}),!0x0):!0x1;}},Z={'type':_0x5229c7['COMMAND'],'id':_0x1a417c(0x274),'handler':(_0x40c3b1,_0xb7750b)=>{const _0x10f733=_0x1a417c;var _0x5667b1;let _0x223af0=_0x4e7fb4(_0x40c3b1['get'](_0x32f2cd),_0xb7750b);if(!_0x223af0)return!0x1;let {unitId:_0xbd1495,subUnitId:_0xde5fed}=_0x223af0,{shapeId:_0x18ddee}=_0xb7750b,_0x17393a=_0x40c3b1[_0x10f733(0x1e3)](G)[_0x10f733(0x1fb)](_0xbd1495,_0xde5fed,_0x18ddee);if(!_0x17393a)return!0x1;let _0x41fd74=_0x17393a[_0x10f733(0x273)](),_0x40723b=(_0x5667b1=_0x41fd74==null?void 0x0:_0x41fd74[_0x10f733(0x25f)])==null?!0x0:_0x5667b1,_0x50ccf9=!_0x40723b,_0x7015d6=_0x40c3b1[_0x10f733(0x1e3)](_0x285fd2),_0x53e6a4=_0x40c3b1['get'](_0x2b286c),_0x9a582a={'unitId':_0xbd1495,'subUnitId':_0xde5fed,'shapeId':_0x18ddee,'shapeData':{'shapeText':{'isHorizontal':_0x50ccf9}}},_0x582c5a={'unitId':_0xbd1495,'subUnitId':_0xde5fed,'shapeId':_0x18ddee,'shapeData':{'shapeText':{'isHorizontal':_0x40723b}}},_0x188c92=[{'id':Y['id'],'params':_0x9a582a}],_0x363d82=[{'id':Y['id'],'params':_0x582c5a}];return _0x3ffddd(_0x188c92,_0x7015d6)[_0x10f733(0x20c)]?(_0x53e6a4[_0x10f733(0x1fa)]({'unitID':_0xbd1495,'undoMutations':_0x363d82,'redoMutations':_0x188c92}),!0x0):!0x1;}},ne={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x224),'handler':(_0x281ccc,_0xd70ecf)=>{const _0x44fbb2=_0x1a417c;var _0x5b8c1a,_0x1f4e13,_0xd2ebcb,_0x43f8ad;let _0x259fcb=_0x4e7fb4(_0x281ccc['get'](_0x32f2cd),_0xd70ecf);if(!_0x259fcb)return!0x1;let _0x2e4351=_0x281ccc[_0x44fbb2(0x1e3)](_0x55630f),{unitId:_0x42b3da,subUnitId:_0x3f7cfe}=_0x259fcb,_0x346cad=_0x2e4351[_0x44fbb2(0x232)](_0x42b3da,_0x3f7cfe);if(!_0x346cad)return!0x1;let _0x153fdb=_0x281ccc['get'](_0x3339be),{connectorShapeId:_0x56f11a,width:_0x1c7fc0,height:_0x3084a0,left:_0x381635,top:_0x45ce36,flipX:_0x2d124a,flipY:_0x5119c8,rotation:_0x486b46,oldAdjustValues:_0x4a0fec,newAdjustValues:_0x305717,oldLineType:_0x348e6d,newLineType:_0x2717e4,oldRelation:_0x29efcf,newRelation:_0x559353}=_0xd70ecf,_0x530582=_0x153fdb[_0x44fbb2(0x204)]({'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'drawingId':_0x56f11a});if(!_0x530582)return!0x1;let _0x2c30e1=_0x281ccc['get'](G)[_0x44fbb2(0x1fb)](_0x42b3da,_0x3f7cfe,_0x56f11a);if(!_0x2c30e1)return!0x1;let _0x4fcafd=_0x281ccc['get'](_0x285fd2),_0x2e121d=_0x281ccc[_0x44fbb2(0x1e3)](_0x2b286c),_0x3c03cd=_0x281ccc[_0x44fbb2(0x1e3)](_0x19401e),_0x1cc722={..._0x530582[_0x44fbb2(0x270)],'width':_0x1c7fc0,'height':_0x3084a0,'left':_0x381635,'top':_0x45ce36,'flipX':_0x2d124a,'flipY':_0x5119c8,'angle':(_0x5b8c1a=_0x486b46==null?(_0x1f4e13=_0x530582['transform'])==null?void 0x0:_0x1f4e13['angle']:_0x486b46)==null?0x0:_0x5b8c1a},_0x55ba4f=_0x5aa0b0(_0x1cc722,_0x346cad),_0x438902=_0x64f7c2(_0x1cc722,_0x346cad),_0x554184=_0x2c30e1[_0x44fbb2(0x21f)](),_0x320562=_0x2c30e1['getShapeData'](),_0x1b8d70={'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'drawingId':_0x56f11a,'drawingType':_0x5d2b71[_0x44fbb2(0x251)],'sheetTransform':_0x55ba4f,'transform':_0x1cc722,'data':{'shapeType':_0x2717e4||_0x348e6d||_0x554184,'shapeData':{..._0x320562,'adjustValues':_0x305717||_0x4a0fec||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x1ff)]),'relation':_0x559353||_0x29efcf||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x268)])}},'axisAlignSheetTransform':_0x438902,'allowTransform':!0x0},{undo:_0x2a033f,redo:_0x4eac24,objects:_0x15ac96}=_0x153fdb[_0x44fbb2(0x255)]([_0x1b8d70]),_0x17c644=_0x3c03cd[_0x44fbb2(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x42b3da,'drawings':[_0x1b8d70]}}),_0x400615=[...(_0xd2ebcb=_0x17c644[_0x44fbb2(0x202)])==null?[]:_0xd2ebcb,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'op':_0x4eac24,'objects':_0x15ac96,'type':_0x5af201[_0x44fbb2(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x42b3da]},..._0x17c644[_0x44fbb2(0x23b)],{'id':Y['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'shapeId':_0x56f11a,'shapeType':_0x2717e4,'shapeData':{'adjustValues':_0x305717,'relation':_0x559353}}}],_0x23d56b=[...(_0x43f8ad=_0x17c644[_0x44fbb2(0x242)])==null?[]:_0x43f8ad,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'op':_0x2a033f,'objects':_0x15ac96,'type':_0x5af201[_0x44fbb2(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x42b3da]},..._0x17c644[_0x44fbb2(0x1fc)],{'id':Y['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'shapeId':_0x56f11a,'shapeType':_0x554184,'shapeData':{..._0x320562,'adjustValues':_0x4a0fec||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x1ff)]),'relation':_0x29efcf||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x268)])}}}];return _0x3ffddd(_0x400615,_0x4fcafd)[_0x44fbb2(0x20c)]?(_0x2e121d[_0x44fbb2(0x1fa)]({'unitID':_0x42b3da,'undoMutations':_0x23d56b,'redoMutations':_0x400615}),!0x0):!0x1;}},re={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x226),'handler':(_0x179eb9,_0x1d20e0)=>{const _0x1f46fc=_0x1a417c;var _0x444b38,_0x945df8;let _0x3bee41=_0x4e7fb4(_0x179eb9['get'](_0x32f2cd),_0x1d20e0);if(!_0x3bee41)return!0x1;let _0xaed240=_0x179eb9[_0x1f46fc(0x1e3)](_0x55630f),{unitId:_0x1c7458,subUnitId:_0xaf6b67}=_0x3bee41,_0x2a3353=_0xaed240[_0x1f46fc(0x232)](_0x1c7458,_0xaf6b67);if(!_0x2a3353)return!0x1;let _0x6a74d5=_0x179eb9['get'](_0x3339be),{shapeId:_0x13bf73,width:_0x551ddb,height:_0x3ba555,left:_0x58f644,top:_0x49181e,flipX:_0x3c0877,flipY:_0x5ec63f,angle:_0x9615b1,oldAdjustValues:_0x8787ef,newAdjustValues:_0x4b7309,oldLineType:_0x5f3707,newLineType:_0x56df5c}=_0x1d20e0,_0x46c9a0=_0x6a74d5[_0x1f46fc(0x204)]({'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'drawingId':_0x13bf73});if(!_0x46c9a0)return!0x1;let _0x39a1cb=_0x179eb9[_0x1f46fc(0x1e3)](G)[_0x1f46fc(0x1fb)](_0x1c7458,_0xaf6b67,_0x13bf73);if(!_0x39a1cb)return!0x1;let _0x5ea497=_0x179eb9[_0x1f46fc(0x1e3)](_0x285fd2),_0x53c996=_0x179eb9[_0x1f46fc(0x1e3)](_0x2b286c),_0x5a968e=_0x179eb9[_0x1f46fc(0x1e3)](_0x19401e),_0x32624f={..._0x46c9a0[_0x1f46fc(0x270)],'width':_0x551ddb,'height':_0x3ba555,'left':_0x58f644,'top':_0x49181e,'flipX':_0x3c0877,'flipY':_0x5ec63f,'angle':_0x9615b1},_0x422cd1=_0x5aa0b0(_0x32624f,_0x2a3353),_0x13dd7b=_0x64f7c2(_0x32624f,_0x2a3353),_0x4153a9=_0x39a1cb[_0x1f46fc(0x21f)](),_0x2b1504=_0x39a1cb['getShapeData'](),_0x451fcd={'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'drawingId':_0x13bf73,'drawingType':_0x5d2b71[_0x1f46fc(0x251)],'sheetTransform':_0x422cd1,'transform':_0x32624f,'data':{'shapeType':_0x56df5c||_0x5f3707||_0x4153a9,'shapeData':{..._0x2b1504,'adjustValues':_0x4b7309||_0x8787ef||(_0x2b1504==null?void 0x0:_0x2b1504[_0x1f46fc(0x1ff)])}},'axisAlignSheetTransform':_0x13dd7b,'allowTransform':!0x0},{undo:_0x3992a0,redo:_0x1afe83,objects:_0xad2196}=_0x6a74d5['getBatchUpdateOp']([_0x451fcd]),_0x321aa6=_0x5a968e[_0x1f46fc(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x1c7458,'drawings':[_0x451fcd]}}),_0x5d1f59=[...(_0x444b38=_0x321aa6[_0x1f46fc(0x202)])==null?[]:_0x444b38,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'op':_0x1afe83,'objects':_0xad2196,'type':_0x5af201['UPDATE']}},{'id':_0xeb678b['id'],'params':[_0x1c7458]},..._0x321aa6[_0x1f46fc(0x23b)],{'id':Y['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'shapeId':_0x13bf73,'shapeType':_0x56df5c,'shapeData':{'adjustValues':_0x4b7309}}}],_0x48a918=[...(_0x945df8=_0x321aa6[_0x1f46fc(0x242)])==null?[]:_0x945df8,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'op':_0x3992a0,'objects':_0xad2196,'type':_0x5af201[_0x1f46fc(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x1c7458]},..._0x321aa6[_0x1f46fc(0x1fc)],{'id':Y['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'shapeId':_0x13bf73,'shapeType':_0x4153a9,'shapeData':{..._0x2b1504,'adjustValues':_0x8787ef||(_0x2b1504==null?void 0x0:_0x2b1504[_0x1f46fc(0x1ff)])}}}];return _0x3ffddd(_0x5d1f59,_0x5ea497)[_0x1f46fc(0x20c)]?(_0x53c996[_0x1f46fc(0x1fa)]({'unitID':_0x1c7458,'undoMutations':_0x48a918,'redoMutations':_0x5d1f59}),!0x0):!0x1;}},Q={'id':_0x1a417c(0x1f9),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0xcf97ef,_0x336992)=>{const _0x3de8e9=_0x1a417c;let {unitId:_0x2e014e,subUnitId:_0x2047fc,shapeType:_0x5149d3,shapeId:_0x4f91b8,shapeData:_0x4382d0}=_0x336992,_0x94378e=_0xcf97ef[_0x3de8e9(0x1e3)](G)['getShapeModel'](_0x2e014e,_0x2047fc,_0x4f91b8);return _0x94378e&&(_0x94378e[_0x3de8e9(0x1ef)](_0x5149d3),_0x4382d0&&(_0x94378e==null||_0x94378e[_0x3de8e9(0x1ed)](_0x4382d0))),!0x0;}},ie={'id':_0x1a417c(0x214),'type':_0x5229c7['COMMAND'],'handler':(_0x15121c,_0x440aa2)=>{const _0x2ef0d8=_0x1a417c;if(!_0x440aa2)return!0x1;let _0x5395c7=_0x15121c[_0x2ef0d8(0x1e3)](_0x285fd2),_0x385cd9=_0x15121c[_0x2ef0d8(0x1e3)](G),_0x401623=_0x15121c['get'](_0x2b286c),_0x402505=[],_0x5c9294=[],{unitId:_0xa4dddb,subUnitId:_0x1f93cc,shapeId:_0x30b388,shapeType:_0x3653e2,shapeData:_0x47f8bb}=_0x440aa2,_0x1d6c8a=_0x385cd9['getShapeModel'](_0xa4dddb,_0x1f93cc,_0x30b388);if(_0x1d6c8a){let _0x4f6366=_0x1d6c8a[_0x2ef0d8(0x21f)](),_0x200651=Object[_0x2ef0d8(0x218)]({},_0x1d6c8a['getShapeData']()),_0x1781a4={'unitId':_0xa4dddb,'subUnitId':_0x1f93cc,'shapeId':_0x30b388,'shapeType':_0x3653e2,'shapeData':_0x47f8bb},_0x15188c={'unitId':_0xa4dddb,'subUnitId':_0x1f93cc,'shapeId':_0x30b388,'shapeType':_0x4f6366,'shapeData':_0x200651};return _0x402505[_0x2ef0d8(0x266)]({'id':Q['id'],'params':_0x1781a4}),_0x5c9294[_0x2ef0d8(0x266)]({'id':Q['id'],'params':_0x15188c}),_0x402505['every'](_0x1c5831=>_0x5395c7[_0x2ef0d8(0x219)](_0x1c5831['id'],_0x1c5831[_0x2ef0d8(0x23c)]))&&_0x401623[_0x2ef0d8(0x1fa)]({'unitID':_0xa4dddb,'redoMutations':[..._0x402505],'undoMutations':[..._0x5c9294]}),!0x0;}return!0x1;}};var ae=_0x1a417c(0x220),oe='0.25.0';const se={};function _0x6126(_0x250eaf,_0x4f7ded){_0x250eaf=_0x250eaf-0x1dd;const _0x20c38f=_0x20c3();let _0x61267a=_0x20c38f[_0x250eaf];return _0x61267a;}let ce=class extends _0x4e5f9f{constructor(_0x1c34d1,_0x16fd8b,_0x5757bc,_0x2c171d,_0x354eb){const _0x5a3f8e=_0x1a417c;super(),this['_commandService']=_0x1c34d1,this['_sheetInterceptorService']=_0x16fd8b,this[_0x5a3f8e(0x237)]=_0x5757bc,this[_0x5a3f8e(0x235)]=_0x2c171d,this[_0x5a3f8e(0x205)]=_0x354eb,this[_0x5a3f8e(0x215)](),this[_0x5a3f8e(0x243)]();}[_0x1a417c(0x215)](){const _0x2a8e82=_0x1a417c;[J,ee,te,X,Z,ne,re,K,q,Q,Y]['forEach'](_0x4291e2=>this[_0x2a8e82(0x233)](this[_0x2a8e82(0x239)]['registerCommand'](_0x4291e2)));}[_0x1a417c(0x243)](){const _0x336936=_0x1a417c;this[_0x336936(0x233)](this[_0x336936(0x240)][_0x336936(0x1f0)]({'getMutations':_0x2629dd=>{const _0x447a8b=_0x336936;if(_0x2629dd['id']===_0x56569e['id']){let {drawings:_0x324b1f}=_0x2629dd[_0x447a8b(0x23c)],_0x1ec6c5=_0x324b1f[_0x447a8b(0x277)](_0x933da2=>_0x933da2[_0x447a8b(0x275)]===_0x5d2b71['DRAWING_SHAPE']);if(_0x1ec6c5['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x210ed2=[],_0x4b4a80=[];return _0x1ec6c5[_0x447a8b(0x227)](_0xb4676c=>{const _0x3f368f=_0x447a8b;let {unitId:_0x4c5234,subUnitId:_0xf2de3b,drawingId:_0x5cc650}=_0xb4676c,_0x233796=this[_0x3f368f(0x235)][_0x3f368f(0x1fb)](_0x4c5234,_0xf2de3b,_0x5cc650);if(!_0x233796)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x233796);_0x210ed2['push']({'id':q['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x5cc650}}),_0x4b4a80[_0x3f368f(0x266)]({'id':K['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x5cc650,'shapeType':_0x233796[_0x3f368f(0x21f)](),'shapeData':_0x233796[_0x3f368f(0x1e2)]()}});let _0x49b2ef=this[_0x3f368f(0x235)]['getBasicShapeRelation'](_0x4c5234,_0xf2de3b,_0x5cc650);if(_0x49b2ef)for(let _0x1e7608 of _0x49b2ef){let _0x1627cc=_0x1e7608['lineShapeId'],_0x2c574d=_0x1e7608[_0x3f368f(0x22c)],_0x43e7b5=_0x2c574d?{'from':void 0x0}:{'to':void 0x0},_0x9d1fbd=_0x2c574d?{'from':{'shapeId':_0x1e7608[_0x3f368f(0x21c)],'cxnIndex':_0x1e7608[_0x3f368f(0x1ec)]}}:{'to':{'shapeId':_0x1e7608['shapeId'],'cxnIndex':_0x1e7608[_0x3f368f(0x1ec)]}};_0x210ed2[_0x3f368f(0x266)]({'id':Y['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x1627cc,'shapeData':{'relation':_0x43e7b5}}}),_0x4b4a80[_0x3f368f(0x266)]({'id':Y['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x1627cc,'shapeData':{'relation':_0x9d1fbd}}});}}),{'preRedos':_0x210ed2,'redos':[],'preUndos':[],'undos':_0x4b4a80};}if(_0x2629dd['id']===_0x28e6ad['id']){let {drawings:_0x3448a1}=_0x2629dd[_0x447a8b(0x23c)],_0x320eaa=_0x3448a1[_0x447a8b(0x277)](_0x1ca393=>_0x1ca393[_0x447a8b(0x275)]===_0x5d2b71[_0x447a8b(0x251)]);if(_0x320eaa[_0x447a8b(0x1eb)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x192802=[],_0x226f08=[];for(let _0x5c84ab of _0x320eaa){let {unitId:_0x3c697f,subUnitId:_0x72bc90,drawingId:_0x242779,transform:_0x42bbac}=_0x5c84ab;if(!_0x3c697f||!_0x72bc90||!_0x242779||!_0x42bbac)continue;let _0xab2293=this[_0x447a8b(0x235)]['getShapeModel'](_0x3c697f,_0x72bc90,_0x242779);if(!_0xab2293)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0xab2293);if(_0x33d47c(_0xab2293[_0x447a8b(0x21f)]())){let _0x17e2f7=this[_0x447a8b(0x235)]['getLineShapeRelation'](_0x3c697f,_0x72bc90,_0x242779);_0x17e2f7&&(_0x192802[_0x447a8b(0x266)]({'id':Y['id'],'params':{'unitId':_0x3c697f,'subUnitId':_0x72bc90,'shapeId':_0x242779,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x226f08[_0x447a8b(0x266)]({'id':Y['id'],'params':{'unitId':_0x3c697f,'subUnitId':_0x72bc90,'shapeId':_0x242779,'shapeData':{'relation':_0x17e2f7}}}));}else{let _0x5b2092=this[_0x447a8b(0x235)][_0x447a8b(0x210)](_0x3c697f,_0x72bc90,_0x242779);if(_0x5b2092&&_0x5b2092[_0x447a8b(0x1eb)]>0x0)for(let _0x5b579b of _0x5b2092){let _0x36a511=_0x5b579b[_0x447a8b(0x1ee)],_0x20bf07=_0x5b579b['isFrom'],_0x254a8b=this['_sheetsShapeService'][_0x447a8b(0x1fb)](_0x3c697f,_0x72bc90,_0x36a511);if(!_0x254a8b)continue;let _0x51d917=_0x254a8b[_0x447a8b(0x236)](),_0x1250ab=_0x254a8b['getEndConnectInfo']();_0x51d917&&_0x1250ab?this['_addLineRerouteUpdates'](_0x3c697f,_0x72bc90,_0x36a511,_0x254a8b,_0x51d917,_0x1250ab,_0x192802,_0x226f08,_0x242779,_0x42bbac):this['_addLineFollowShapeUpdates'](_0x3c697f,_0x72bc90,_0x36a511,_0x254a8b,_0x20bf07?_0x51d917:_0x1250ab,_0x20bf07,_0x192802,_0x226f08,_0x242779,_0x42bbac);}}}return{'preRedos':[],'redos':_0x192802,'preUndos':_0x226f08,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1a417c(0x1e4)](_0x456d00,_0x2d5650,_0xc7cab,_0x10f6bd,_0x4bb40b){const _0x46459e=_0x1a417c;if(!_0x2d5650||!_0xc7cab)return null;let {shapeId:_0x31faf7,cxnIndex:_0x2bbe61}=_0x456d00,_0x319ddd=this[_0x46459e(0x235)]['getShapeModel'](_0x2d5650,_0xc7cab,_0x31faf7);if(!_0x319ddd)return null;let _0x3df61f=this['_drawingManagerService'][_0x46459e(0x204)]({'unitId':_0x2d5650,'subUnitId':_0xc7cab,'drawingId':_0x31faf7});if(!(_0x3df61f!=null&&_0x3df61f[_0x46459e(0x270)]))return null;let {left:_0x1af3c2=0x0,top:_0x3f3b12=0x0,width:_0x45fa6f=0x0,height:_0x124df6=0x0,flipX:_0x1a364c=!0x1,flipY:_0x28c5cd=!0x1,angle:_0x5b5c27}=_0x3df61f[_0x46459e(0x270)];if(_0x4bb40b&&_0x10f6bd===_0x31faf7){var _0x3e3a70,_0x55da7b,_0x165853,_0x2094e2,_0x4c3618,_0x39a84e,_0x5e9360;_0x1af3c2=(_0x3e3a70=_0x4bb40b[_0x46459e(0x1f8)])==null?_0x1af3c2:_0x3e3a70,_0x3f3b12=(_0x55da7b=_0x4bb40b[_0x46459e(0x212)])==null?_0x3f3b12:_0x55da7b,_0x45fa6f=(_0x165853=_0x4bb40b[_0x46459e(0x26f)])==null?_0x45fa6f:_0x165853,_0x124df6=(_0x2094e2=_0x4bb40b[_0x46459e(0x225)])==null?_0x124df6:_0x2094e2,_0x1a364c=(_0x4c3618=_0x4bb40b[_0x46459e(0x1de)])==null?_0x1a364c:_0x4c3618,_0x28c5cd=(_0x39a84e=_0x4bb40b[_0x46459e(0x21b)])==null?_0x28c5cd:_0x39a84e,_0x5b5c27=(_0x5e9360=_0x4bb40b['angle'])==null?_0x5b5c27:_0x5e9360;}_0x319ddd['updateContext']({'width':_0x45fa6f,'height':_0x124df6});let _0x249d85=_0x319ddd[_0x46459e(0x250)]()[_0x46459e(0x23e)](_0x413488=>_0x413488['index']===_0x2bbe61);if(!_0x249d85)return null;let _0x379d0c=_0x1a364c?_0x45fa6f-_0x249d85['x']:_0x249d85['x'],_0x2df45c=_0x28c5cd?_0x124df6-_0x249d85['y']:_0x249d85['y'];if(_0x5b5c27!==0x0&&_0x5b5c27!=null){let _0x1a3923=_0x5b5c27*Math['PI']/0xb4,_0x365ab2=Math['cos'](_0x1a3923),_0x295438=Math[_0x46459e(0x21e)](_0x1a3923),_0x3c17fa=_0x45fa6f/0x2,_0xbcf8f7=_0x124df6/0x2,_0x18ba76=_0x379d0c-_0x3c17fa,_0xa09374=_0x2df45c-_0xbcf8f7;_0x379d0c=_0x3c17fa+_0x18ba76*_0x365ab2-_0xa09374*_0x295438,_0x2df45c=_0xbcf8f7+_0x18ba76*_0x295438+_0xa09374*_0x365ab2;}_0x379d0c+=_0x1af3c2,_0x2df45c+=_0x3f3b12;let _0x2d9db4=_0x249d85[_0x46459e(0x241)]/0xea60;_0x1a364c&&(_0x2d9db4=0xb4-_0x2d9db4),_0x28c5cd&&(_0x2d9db4=-_0x2d9db4),_0x2d9db4+=_0x5b5c27||0x0,_0x2d9db4=(_0x2d9db4%0x168+0x168)%0x168;let _0x2ec983=_0x4dd2cd({'left':_0x1af3c2,'top':_0x3f3b12,'width':_0x45fa6f,'height':_0x124df6},_0x5b5c27||0x0);return{'point':{'x':_0x379d0c,'y':_0x2df45c},'angle':_0x2d9db4,'bounds':_0x2ec983};}[_0x1a417c(0x261)](_0x123318,_0x28c24f,_0x49d29e,_0x210dfa,_0x2c7f2f,_0x26fcb1,_0x382c04,_0x6a903f,_0x4f4597,_0x15da44){const _0x285b99=_0x1a417c;let _0x2b93f7=this[_0x285b99(0x237)][_0x285b99(0x232)](_0x123318,_0x28c24f);if(!_0x2b93f7)return;let _0x411791=_0x210dfa[_0x285b99(0x222)](),_0x8a3cd2=_0x210dfa[_0x285b99(0x263)](),_0x5d989e={},_0x11cff3={};_0x8a3cd2[_0x285b99(0x227)](_0x2fa32d=>{const _0x2fb358=_0x285b99;let _0x5880f4=_0x210dfa[_0x2fb358(0x25b)](_0x2fa32d);_0x11cff3[_0x2fa32d]=_0x5880f4==null?0x0:_0x5880f4;});let _0x3d6205=this[_0x285b99(0x1e4)](_0x2c7f2f,_0x123318,_0x28c24f,_0x4f4597,_0x15da44),_0x1f003e=this['_getConnectPointInfo'](_0x26fcb1,_0x123318,_0x28c24f,_0x4f4597,_0x15da44);if(_0x3d6205&&_0x1f003e){let _0x425945=_0x210dfa[_0x285b99(0x21f)](),_0x4bba85=_0x29d7a4(_0x3d6205,_0x1f003e,_0x425945),_0x11e967=_0x425945;if(_0x4bba85){let _0x55711f=_0x4d5188(_0x4bba85,_0x210dfa[_0x285b99(0x21f)]()),_0x5cd76a=this['_drawingManagerService'][_0x285b99(0x22a)](_0x123318,_0x28c24f);if(_0x5cd76a&&_0x5cd76a[_0x49d29e]){let _0x16e584=_0x5cd76a[_0x49d29e];_0x11e967=_0x55711f[_0x285b99(0x249)];for(let [_0xac3bcd,_0x2009aa]of Object['entries'](_0x55711f[_0x285b99(0x1ff)]))_0x5d989e[_0xac3bcd]=_0x2009aa;let _0x10f768={..._0x16e584['transform'],'width':_0x55711f[_0x285b99(0x24e)]['width'],'height':_0x55711f[_0x285b99(0x24e)]['height'],'left':_0x55711f['worldRect']['left'],'top':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x212)],'flipX':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x1de)],'flipY':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x21b)],'angle':_0x55711f[_0x285b99(0x206)]},_0x11ce2e=_0x5aa0b0(_0x10f768,_0x2b93f7),_0x4e7fc0=_0x64f7c2(_0x10f768,_0x2b93f7),_0x2a0437={'unitId':_0x123318,'subUnitId':_0x28c24f,'drawingType':_0x5d2b71['DRAWING_SHAPE'],'drawingId':_0x49d29e,'transform':_0x10f768,'sheetTransform':_0x11ce2e,'axisAlignSheetTransform':_0x4e7fc0},{unitId:_0x4f61de,subUnitId:_0x28af05,undo:_0x4cc391,redo:_0xa26139,objects:_0x24621c}=this[_0x285b99(0x205)]['getBatchUpdateOp']([_0x2a0437]);_0x382c04[_0x285b99(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x4f61de,'subUnitId':_0x28af05,'op':_0xa26139,'objects':_0x24621c,'type':_0x5af201[_0x285b99(0x1e5)]}}),_0x6a903f['push']({'id':_0x2ae4cd['id'],'params':{'unitId':_0x4f61de,'subUnitId':_0x28af05,'op':_0x4cc391,'objects':_0x24621c,'type':_0x5af201[_0x285b99(0x1e5)]}});}_0x210dfa[_0x285b99(0x1dd)]();}_0x382c04[_0x285b99(0x266)]({'id':Y['id'],'params':{'unitId':_0x123318,'subUnitId':_0x28c24f,'shapeId':_0x49d29e,'shapeType':_0x11e967,'shapeData':{'adjustValues':_0x5d989e,'relation':_0x411791}}}),_0x6a903f[_0x285b99(0x266)]({'id':Y['id'],'params':{'unitId':_0x123318,'subUnitId':_0x28c24f,'shapeId':_0x49d29e,'shapeType':_0x425945,'shapeData':{'adjustValues':_0x11cff3,'relation':_0x411791}}});}}[_0x1a417c(0x209)](_0x46efac,_0x57f5da,_0x3b5998,_0x388b5d,_0x2ac881,_0x4c28f2,_0x2d17e8,_0x37747e,_0x244542,_0x40e793){const _0x3958b9=_0x1a417c;var _0x308f88;if(!_0x2ac881)return;let _0x59daa0=this[_0x3958b9(0x237)]['getSkeleton'](_0x46efac,_0x57f5da);if(!_0x59daa0)return;let _0x22b10a=(_0x308f88=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x46efac,'subUnitId':_0x57f5da,'drawingId':_0x244542}))==null?void 0x0:_0x308f88[_0x3958b9(0x270)];if(!_0x22b10a)return;let _0x21d4e0=_0x22b10a['left']!==_0x40e793[_0x3958b9(0x1f8)]||_0x22b10a[_0x3958b9(0x212)]!==_0x40e793[_0x3958b9(0x212)],_0x22247b=_0x22b10a['width']!==_0x40e793[_0x3958b9(0x26f)]||_0x22b10a['height']!==_0x40e793[_0x3958b9(0x225)],_0x4af8c4=_0x22b10a['flipX']!==_0x40e793[_0x3958b9(0x1de)]||_0x22b10a[_0x3958b9(0x21b)]!==_0x40e793[_0x3958b9(0x21b)],_0xabf556=_0x22b10a[_0x3958b9(0x24a)]!==_0x40e793['angle'];if(_0x21d4e0&&!_0x22247b&&!_0x4af8c4&&!_0xabf556){var _0x417a2e,_0x40085e,_0x4dfa1d,_0x1d2677;let _0xc64819=((_0x417a2e=_0x40e793[_0x3958b9(0x1f8)])==null?0x0:_0x417a2e)-((_0x40085e=_0x22b10a['left'])==null?0x0:_0x40085e),_0x3a3cb6=((_0x4dfa1d=_0x40e793['top'])==null?0x0:_0x4dfa1d)-((_0x1d2677=_0x22b10a['top'])==null?0x0:_0x1d2677),_0x4e4f36=this[_0x3958b9(0x205)][_0x3958b9(0x22a)](_0x46efac,_0x57f5da);if(_0x4e4f36&&_0x4e4f36[_0x3b5998]){var _0x17bf1b,_0x46b0f4,_0x547609,_0x30d34e;let _0x27192a=_0x4e4f36[_0x3b5998],_0x18ed8a={..._0x27192a[_0x3958b9(0x270)],'left':((_0x17bf1b=(_0x46b0f4=_0x27192a[_0x3958b9(0x270)])==null?void 0x0:_0x46b0f4[_0x3958b9(0x1f8)])==null?0x0:_0x17bf1b)+_0xc64819,'top':((_0x547609=(_0x30d34e=_0x27192a[_0x3958b9(0x270)])==null?void 0x0:_0x30d34e[_0x3958b9(0x212)])==null?0x0:_0x547609)+_0x3a3cb6},_0x22913f=_0x5aa0b0(_0x18ed8a,_0x59daa0),_0xe4493d=_0x64f7c2(_0x18ed8a,_0x59daa0),_0x5df928={'unitId':_0x46efac,'subUnitId':_0x57f5da,'drawingType':_0x5d2b71[_0x3958b9(0x251)],'drawingId':_0x3b5998,'transform':_0x18ed8a,'sheetTransform':_0x22913f,'axisAlignSheetTransform':_0xe4493d},{unitId:_0x18fba4,subUnitId:_0x1ad7b6,undo:_0x1f0300,redo:_0x52345d,objects:_0x1c91c7}=this[_0x3958b9(0x205)][_0x3958b9(0x255)]([_0x5df928]);_0x2d17e8[_0x3958b9(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x18fba4,'subUnitId':_0x1ad7b6,'op':_0x52345d,'objects':_0x1c91c7,'type':_0x5af201[_0x3958b9(0x1e5)]}}),_0x37747e[_0x3958b9(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x18fba4,'subUnitId':_0x1ad7b6,'op':_0x1f0300,'objects':_0x1c91c7,'type':_0x5af201[_0x3958b9(0x1e5)]}});}}else{let _0x392a41=_0x388b5d['getStartConnectInfo'](),_0x301a17=_0x388b5d[_0x3958b9(0x257)]();this['_addLineRerouteUpdates'](_0x46efac,_0x57f5da,_0x3b5998,_0x388b5d,_0x392a41,_0x301a17,_0x2d17e8,_0x37747e,_0x244542,_0x40e793);}}};ce=W([U(0x0,_0x285fd2),U(0x1,_0xca6a11(_0x19401e)),U(0x2,_0xca6a11(_0x55630f)),U(0x3,_0xca6a11(G)),U(0x4,_0xca6a11(_0x525c29))],ce);let $=class extends _0x2582f4{constructor(_0x14e772=se,_0x3d9d93,_0x5de1fc,_0xe65d15){const _0x508a9d=_0x1a417c;super(),this[_0x508a9d(0x272)]=_0x14e772,this[_0x508a9d(0x244)]=_0x3d9d93,this[_0x508a9d(0x239)]=_0x5de1fc,this[_0x508a9d(0x276)]=_0xe65d15;let {..._0x1fa749}=_0x3c605c({},se,this['_config']);this['_configService'][_0x508a9d(0x26a)]('sheets-shape.config',_0x1fa749);}[_0x1a417c(0x20e)](){const _0xd1d204=_0x1a417c;let _0x334b64=this[_0xd1d204(0x244)];[[H],[G],[ce]]['forEach'](_0xa41ef5=>_0x334b64[_0xd1d204(0x25d)](_0xa41ef5)),_0x5c294e(_0x334b64,[[G],[ce]]);}};V($,_0x1a417c(0x258),_0x26716f[_0x1a417c(0x221)]),V($,_0x1a417c(0x23f),_0x1a417c(0x213)),V($,_0x1a417c(0x248),ae),V($,'version',oe),$=W([_0x4c451e(_0x3785ee),U(0x1,_0xca6a11(_0x4e72d8)),U(0x2,_0x285fd2),U(0x3,_0x3c3bf5)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x1a70bd=_0x2c14;(function(_0x544329,_0x2f5711){const _0x36358c=_0x2c14,_0x33f88a=_0x544329();while(!![]){try{const _0x1c6634=parseInt(_0x36358c(0x235))/0x1+-parseInt(_0x36358c(0x232))/0x2*(-parseInt(_0x36358c(0x1ea))/0x3)+parseInt(_0x36358c(0x1c7))/0x4+-parseInt(_0x36358c(0x1ce))/0x5+parseInt(_0x36358c(0x238))/0x6+-parseInt(_0x36358c(0x1d1))/0x7+parseInt(_0x36358c(0x200))/0x8*(-parseInt(_0x36358c(0x202))/0x9);if(_0x1c6634===_0x2f5711)break;else _0x33f88a['push'](_0x33f88a['shift']());}catch(_0xb764a){_0x33f88a['push'](_0x33f88a['shift']());}}}(_0x2fe9,0xcf9fe));import{ConnectorCoordinateTransform as _0x5dda88,ShapeArrowSizeEnum as _0x2d1f7a,ShapeArrowTypeEnum as _0x594270,ShapeFillEnum as _0x2d0686,ShapeGradientTypeEnum as _0x2104ac,ShapeLineCapEnum as _0x444bff,ShapeLineDashEnum as _0x3fe494,ShapeLineJoinEnum as _0xce6401,ShapeLineTypeEnum as _0x598361,ShapeTypeEnum as _0x2d11c6,computeConnectorRouteLayout as _0x5f27ec,getBasicShapeRotateBound as _0x1ccf79,isConnectorShape as _0x221386,routeConnectorLineShape as _0x4432fe}from'@univerjs-pro/engine-shape';import{FEnum as _0x2ce1d8}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x1c416b,DEFAULT_SHAPE_WIDTH as _0x5e2b87,InsertShapeCommand as _0x286adb,SetShapeDrawingDataCommand as _0x5ddcca,SheetsShapeService as _0x3fe959,UpdateConnectorRelationCommand as _0x4cacb3}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x7113b1,generateRandomId as _0xca9b09}from'@univerjs/core';import{IDrawingManagerService as _0x383207}from'@univerjs/drawing';import{SheetSkeletonService as _0x2114e5,convertPositionCellToSheetOverGrid as _0x37472c}from'@univerjs/sheets';import{ISheetDrawingService as _0x4b057e,RemoveSheetDrawingCommand as _0x324f42}from'@univerjs/sheets-drawing';import{FWorksheet as _0x26ae22}from'@univerjs/sheets/facade';var k=class extends _0x2ce1d8{get[_0x1a70bd(0x20a)](){return _0x2d11c6;}get['ShapeFillEnum'](){return _0x2d0686;}get[_0x1a70bd(0x20f)](){return _0x2104ac;}get[_0x1a70bd(0x217)](){return _0x598361;}get[_0x1a70bd(0x1dd)](){return _0x3fe494;}get[_0x1a70bd(0x1c3)](){return _0x444bff;}get['ShapeLineJoinEnum'](){return _0xce6401;}get[_0x1a70bd(0x1dc)](){return _0x594270;}get[_0x1a70bd(0x207)](){return _0x2d1f7a;}};_0x2ce1d8['extend'](k);function A(_0x496c12){'@babel/helpers - typeof';const _0x5749ee=_0x1a70bd;return A=typeof Symbol==_0x5749ee(0x1d9)&&typeof Symbol[_0x5749ee(0x23a)]=='symbol'?function(_0x403591){return typeof _0x403591;}:function(_0x294aa1){const _0x50f4cb=_0x5749ee;return _0x294aa1&&typeof Symbol=='function'&&_0x294aa1['constructor']===Symbol&&_0x294aa1!==Symbol[_0x50f4cb(0x208)]?'symbol':typeof _0x294aa1;},A(_0x496c12);}function j(_0x148c4b,_0x44f207){const _0xd99366=_0x1a70bd;if(A(_0x148c4b)!=_0xd99366(0x1de)||!_0x148c4b)return _0x148c4b;var _0x12590f=_0x148c4b[Symbol[_0xd99366(0x1c6)]];if(_0x12590f!==void 0x0){var _0xff4a3c=_0x12590f[_0xd99366(0x223)](_0x148c4b,_0x44f207||_0xd99366(0x1f5));if(A(_0xff4a3c)!=_0xd99366(0x1de))return _0xff4a3c;throw TypeError(_0xd99366(0x212));}return(_0x44f207===_0xd99366(0x209)?String:Number)(_0x148c4b);}function _0x2fe9(){const _0x4c1401=['colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','5223245DHEiuD','left','getDrawingByParam','2334164RCrZKi','_injector','fillType','getShapeData','worldRect','gradientAngle','type','index','function','getSize','height','ShapeArrowTypeEnum','ShapeLineDashEnum','object','cxnIndex','stroke','sin','shapeType','GradientFill','flipY','adjustValues','setShapeGradientFill','get','insertShape','setEndArrowSize','2307qQWTEB','setShapeSolidFill','newShape','drawId','from','setHeight','_preloadShapeProperties','setShapeType','setPosition','getWorkbook','getShapeType','default','build','getAdjustNames','getDrawingData','flipX','setStrokeLineCapType','color','ensureSkeleton','getUnitId','getConnectionSiteList','point','152IsgkRy','updateShape','256257BQcUwH','subUnitId','transform','stringify','extend','ShapeArrowSizeEnum','prototype','string','ShapeTypeEnum','localToWorld','setStartArrowType','DRAWING_SHAPE','getEndConnectInfo','ShapeGradientTypeEnum','gradientType','getShapeId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endArrow','setStartArrowSize','newConnector','SolidFill','ShapeLineTypeEnum','getShapeModel','capType','setEndArrowType','shapeData','setStrokeOpacity','_commandService','setStrokeLineDashType','getPosition','lineType','executeCommand','lineJoinType','call','unitId','setStrokeWidth','setStrokeColor','getDrawingPoints','_resolveEndpoints','fill','connectShapes','drawingType','setStrokeLineJoinType','getSheetId','getShapes','shape','ang','connectionSiteIndex','790smwZJH','length','gradientStops','688156ItyIpJ','_resolveExistingOrFreeEndpoint','opacity','1177728kIhpLC','\x20and\x20subUnitId\x20','iterator','push','keys','getStartConnectInfo','defineProperty','startArrow',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','rotation','abs','top','lineStrokeType','getConnectionSites','size','ShapeLineCapEnum','\x20not\x20found','getConnectorLinePoints','toPrimitive','6325276JTvXsN','relation','width','cos','updateContext','removeShape'];_0x2fe9=function(){return _0x4c1401;};return _0x2fe9();}function M(_0x4fb2c5){const _0x1112cb=_0x1a70bd;var _0x381cf9=j(_0x4fb2c5,_0x1112cb(0x209));return A(_0x381cf9)=='symbol'?_0x381cf9:_0x381cf9+'';}function N(_0x1b1cc8,_0x34fba4,_0x28d439){const _0x14fb2d=_0x1a70bd;return(_0x34fba4=M(_0x34fba4))in _0x1b1cc8?Object[_0x14fb2d(0x23e)](_0x1b1cc8,_0x34fba4,{'value':_0x28d439,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b1cc8[_0x34fba4]=_0x28d439,_0x1b1cc8;}var P=class{constructor(_0x11e990,_0x3d6b05,_0x22073f,_0x96e0c4){const _0x5c95a0=_0x1a70bd;N(this,'unitId',void 0x0),N(this,_0x5c95a0(0x203),void 0x0),N(this,_0x5c95a0(0x1ed),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x5c95a0(0x1c9),_0x5e2b87),N(this,_0x5c95a0(0x1db),_0x1c416b),N(this,_0x5c95a0(0x1e2),void 0x0),N(this,_0x5c95a0(0x21b),{}),N(this,_0x5c95a0(0x1d2),void 0x0),this[_0x5c95a0(0x224)]=_0x11e990,this[_0x5c95a0(0x203)]=_0x3d6b05,this[_0x5c95a0(0x1ed)]=_0x22073f||_0xca9b09(),this['_injector']=_0x96e0c4;}[_0x1a70bd(0x1f2)](_0x3ee561,_0x4c67c3,_0x2d4d45,_0x33faf4){const _0xbc1389=_0x1a70bd;let _0x3b3801=this[_0xbc1389(0x1d2)][_0xbc1389(0x1e7)](_0x2114e5)[_0xbc1389(0x1fc)](this[_0xbc1389(0x224)],this[_0xbc1389(0x203)]);if(!_0x3b3801)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0xbc1389(0x224)]+'\x20and\x20subUnitId\x20'+this[_0xbc1389(0x203)]+_0xbc1389(0x1c4));let {transform:_0x54f04e}=_0x37472c(this[_0xbc1389(0x224)],this['subUnitId'],{'row':_0x3ee561,'column':_0x4c67c3,'rowOffset':_0x2d4d45,'columnOffset':_0x33faf4},0x1,0x1,_0x3b3801);return this['x']=_0x54f04e[_0xbc1389(0x1cf)],this['y']=_0x54f04e['top'],this;}['setAbsolutePosition'](_0x3a3fb2,_0x5bebdb){return this['x']=_0x3a3fb2,this['y']=_0x5bebdb,this;}[_0x1a70bd(0x1f1)](_0x5bd157){const _0x421d32=_0x1a70bd;return this[_0x421d32(0x1e2)]=_0x5bd157,this;}[_0x1a70bd(0x1eb)](_0x216434,_0x39f04f){const _0xd91e55=_0x1a70bd;return this['shapeData'][_0xd91e55(0x229)]||(this['shapeData'][_0xd91e55(0x229)]={}),this[_0xd91e55(0x21b)][_0xd91e55(0x229)][_0xd91e55(0x1d3)]=_0x2d0686[_0xd91e55(0x216)],_0x216434!==void 0x0&&(this['shapeData']['fill'][_0xd91e55(0x1fb)]=_0x216434),_0x39f04f!==void 0x0&&(this[_0xd91e55(0x21b)][_0xd91e55(0x229)][_0xd91e55(0x237)]=_0x39f04f),this;}[_0x1a70bd(0x1e6)](_0x430f60,_0x52f9fc,_0x34a7bf){const _0x11d8c0=_0x1a70bd;if(_0x52f9fc===void 0x0||_0x52f9fc[_0x11d8c0(0x233)]===0x0)throw Error(_0x11d8c0(0x1cd));return this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)]||(this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)]={}),this['shapeData'][_0x11d8c0(0x229)][_0x11d8c0(0x234)]=_0x52f9fc,this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)][_0x11d8c0(0x1d3)]=_0x2d0686[_0x11d8c0(0x1e3)],this[_0x11d8c0(0x21b)]['fill'][_0x11d8c0(0x210)]=_0x430f60,_0x34a7bf!==void 0x0&&(this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)][_0x11d8c0(0x1d6)]=_0x34a7bf),this;}['setNoneFill'](){const _0x4df092=_0x1a70bd;return this[_0x4df092(0x21b)][_0x4df092(0x229)]={'fillType':_0x2d0686['NoFill']},this;}[_0x1a70bd(0x226)](_0x5eac72){const _0x359fb1=_0x1a70bd;return this[_0x359fb1(0x21b)][_0x359fb1(0x1e0)]||(this[_0x359fb1(0x21b)][_0x359fb1(0x1e0)]={}),this['shapeData'][_0x359fb1(0x1e0)][_0x359fb1(0x1fb)]=_0x5eac72,this;}[_0x1a70bd(0x225)](_0x994b82){const _0x5c04fb=_0x1a70bd;return this[_0x5c04fb(0x21b)]['stroke']||(this[_0x5c04fb(0x21b)][_0x5c04fb(0x1e0)]={}),this['shapeData'][_0x5c04fb(0x1e0)][_0x5c04fb(0x1c9)]=_0x994b82,this;}[_0x1a70bd(0x21e)](_0x8f9c37){const _0x420a55=_0x1a70bd;return this[_0x420a55(0x21b)][_0x420a55(0x1e0)]||(this[_0x420a55(0x21b)][_0x420a55(0x1e0)]={}),this[_0x420a55(0x21b)][_0x420a55(0x1e0)]['dashType']=_0x8f9c37,this;}[_0x1a70bd(0x22c)](_0x26425d){const _0x36d22a=_0x1a70bd;return this[_0x36d22a(0x21b)][_0x36d22a(0x1e0)]||(this[_0x36d22a(0x21b)]['stroke']={}),this[_0x36d22a(0x21b)][_0x36d22a(0x1e0)][_0x36d22a(0x222)]=_0x26425d,this;}[_0x1a70bd(0x1fa)](_0x31897f){const _0x14196c=_0x1a70bd;return this['shapeData'][_0x14196c(0x1e0)]||(this[_0x14196c(0x21b)][_0x14196c(0x1e0)]={}),this['shapeData'][_0x14196c(0x1e0)][_0x14196c(0x219)]=_0x31897f,this;}[_0x1a70bd(0x21c)](_0x332c31){const _0x636c9b=_0x1a70bd;return this[_0x636c9b(0x21b)][_0x636c9b(0x1e0)]||(this[_0x636c9b(0x21b)]['stroke']={}),this[_0x636c9b(0x21b)][_0x636c9b(0x1e0)][_0x636c9b(0x237)]=_0x332c31,this;}['setStrokeLineType'](_0x5c5167){const _0x180970=_0x1a70bd;return this[_0x180970(0x21b)][_0x180970(0x1e0)]||(this[_0x180970(0x21b)][_0x180970(0x1e0)]={}),this[_0x180970(0x21b)]['stroke'][_0x180970(0x244)]=_0x5c5167,this;}['setWidth'](_0x3e7dfb){const _0x35b133=_0x1a70bd;return this[_0x35b133(0x1c9)]=_0x3e7dfb,this;}[_0x1a70bd(0x1ef)](_0x395191){const _0x282712=_0x1a70bd;return this[_0x282712(0x1db)]=_0x395191,this;}['isLineShape'](){const _0x2c2021=_0x1a70bd;let _0xb714bb=this[_0x2c2021(0x1d2)][_0x2c2021(0x1e7)](_0x3fe959)['getShapeModel'](this[_0x2c2021(0x224)],this['subUnitId'],this['drawId']);return _0xb714bb?_0x221386(_0xb714bb[_0x2c2021(0x1f4)]()):this[_0x2c2021(0x1e2)]?_0x221386(this[_0x2c2021(0x1e2)]):!0x1;}[_0x1a70bd(0x1c1)](){const _0x574f1b=_0x1a70bd;let _0x4c8fc5=this[_0x574f1b(0x1d2)][_0x574f1b(0x1e7)](_0x3fe959)[_0x574f1b(0x218)](this['unitId'],this[_0x574f1b(0x203)],this[_0x574f1b(0x1ed)]);if(!_0x4c8fc5)return[];let _0x2903af=this[_0x574f1b(0x1d2)][_0x574f1b(0x1e7)](_0x383207)['getDrawingByParam']({'unitId':this[_0x574f1b(0x224)],'subUnitId':this[_0x574f1b(0x203)],'drawingId':this[_0x574f1b(0x1ed)]});if(!(_0x2903af!=null&&_0x2903af[_0x574f1b(0x204)]))return[];let {width:_0x2fe17b=0x0,height:_0x1c25b0=0x0}=_0x2903af['transform'];return _0x4c8fc5['updateContext']({'width':_0x2fe17b,'height':_0x1c25b0}),_0x4c8fc5[_0x574f1b(0x1fe)]();}['getAdjustPoints'](){const _0x586380=_0x1a70bd;let _0x4bcc3a=this[_0x586380(0x1d2)]['get'](_0x3fe959)['getShapeModel'](this[_0x586380(0x224)],this[_0x586380(0x203)],this[_0x586380(0x1ed)]);if(!_0x4bcc3a)return[];let _0xe362d7=this[_0x586380(0x1d2)]['get'](_0x383207)[_0x586380(0x1d0)]({'unitId':this[_0x586380(0x224)],'subUnitId':this[_0x586380(0x203)],'drawingId':this[_0x586380(0x1ed)]});if(!(_0xe362d7!=null&&_0xe362d7['transform']))return[];let {width:_0x1e8fd3=0x0,height:_0x1157b6=0x0}=_0xe362d7[_0x586380(0x204)];return _0x4bcc3a[_0x586380(0x1cb)]({'width':_0x1e8fd3,'height':_0x1157b6}),_0x4bcc3a[_0x586380(0x227)]();}[_0x1a70bd(0x1c5)](){const _0x5bd0b5=_0x1a70bd;let _0x33ae3b=this[_0x5bd0b5(0x1d2)][_0x5bd0b5(0x1e7)](_0x3fe959)[_0x5bd0b5(0x218)](this[_0x5bd0b5(0x224)],this[_0x5bd0b5(0x203)],this['drawId']);if(!_0x33ae3b||!_0x221386(_0x33ae3b['getShapeType']()))return[];let _0x1ddcf2=this[_0x5bd0b5(0x1d2)][_0x5bd0b5(0x1e7)](_0x383207)[_0x5bd0b5(0x1d0)]({'unitId':this['unitId'],'subUnitId':this[_0x5bd0b5(0x203)],'drawingId':this[_0x5bd0b5(0x1ed)]});if(!(_0x1ddcf2!=null&&_0x1ddcf2[_0x5bd0b5(0x204)]))return[];let {width:_0x30bca2=0x0,height:_0x58a3f2=0x0}=_0x1ddcf2['transform'];return _0x33ae3b[_0x5bd0b5(0x1cb)]({'width':_0x30bca2,'height':_0x58a3f2}),_0x33ae3b[_0x5bd0b5(0x1c5)]();}[_0x1a70bd(0x23d)](){const _0x18e13d=_0x1a70bd;var _0x32e30a;let _0x50d7ac=this['_injector']['get'](_0x3fe959)[_0x18e13d(0x218)](this[_0x18e13d(0x224)],this['subUnitId'],this['drawId']);return _0x50d7ac?(_0x32e30a=_0x50d7ac[_0x18e13d(0x23d)]())==null?null:_0x32e30a:null;}[_0x1a70bd(0x20e)](){const _0x1b3614=_0x1a70bd;var _0x3520fa;let _0x17bc49=this[_0x1b3614(0x1d2)]['get'](_0x3fe959)[_0x1b3614(0x218)](this[_0x1b3614(0x224)],this[_0x1b3614(0x203)],this['drawId']);return _0x17bc49?(_0x3520fa=_0x17bc49[_0x1b3614(0x20e)]())==null?null:_0x3520fa:null;}['build'](){const _0x390994=_0x1a70bd;var _0x582397,_0x2f7dbe;if(!this[_0x390994(0x1e2)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x46d0c6=this[_0x390994(0x1d2)][_0x390994(0x1e7)](_0x2114e5)[_0x390994(0x1fc)](this[_0x390994(0x224)],this[_0x390994(0x203)]);if(!_0x46d0c6)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x390994(0x224)]+_0x390994(0x239)+this[_0x390994(0x203)]+_0x390994(0x1c4));let {transform:_0x138872}=_0x37472c(this[_0x390994(0x224)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x46d0c6);this['x']=this['x']>0x0?this['x']:_0x138872[_0x390994(0x1cf)],this['y']=this['y']>0x0?this['y']:_0x138872[_0x390994(0x243)];}return this['width']=(_0x582397=this[_0x390994(0x1c9)])==null?_0x5e2b87:_0x582397,this['height']=(_0x2f7dbe=this[_0x390994(0x1db)])==null?_0x1c416b:_0x2f7dbe,{'unitId':this[_0x390994(0x224)],'subUnitId':this[_0x390994(0x203)],'shapeId':this[_0x390994(0x1ed)],'shapeType':this[_0x390994(0x1e2)],'shapeData':Object[_0x390994(0x23c)](this['shapeData'])['length']>0x0?this[_0x390994(0x21b)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x390994(0x1c9)],'height':this[_0x390994(0x1db)]};}[_0x1a70bd(0x211)](){const _0x2d04b3=_0x1a70bd;return this[_0x2d04b3(0x1ed)];}[_0x1a70bd(0x1f4)](){const _0x3d4cc9=_0x1a70bd;return this[_0x3d4cc9(0x1e2)];}[_0x1a70bd(0x1d4)](){const _0x5a5b71=_0x1a70bd;return this[_0x5a5b71(0x21b)];}[_0x1a70bd(0x21f)](){return{'x':this['x'],'y':this['y']};}[_0x1a70bd(0x1da)](){const _0x237137=_0x1a70bd;return{'width':this[_0x237137(0x1c9)],'height':this[_0x237137(0x1db)]};}},F=class extends P{constructor(_0x96539e,_0x799170,_0xff615f,_0x3d167a){const _0x4baaa8=_0x1a70bd;super(_0x96539e,_0x799170,_0xff615f,_0x3d167a),N(this,_0x4baaa8(0x21b),{});}[_0x1a70bd(0x1f1)](_0x53401f){const _0x2d10a5=_0x1a70bd;if(!_0x221386(_0x53401f))throw Error('Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20'+_0x53401f+_0x2d10a5(0x240));return super[_0x2d10a5(0x1f1)](_0x53401f),this;}[_0x1a70bd(0x20c)](_0x4063a5){const _0x2e5309=_0x1a70bd;var _0x43f810,_0x2301c6;return(_0x43f810=this[_0x2e5309(0x21b)])!=null&&_0x43f810['ln']||(this[_0x2e5309(0x21b)]['ln']={}),!((_0x2301c6=this[_0x2e5309(0x21b)])==null||(_0x2301c6=_0x2301c6['ln'])==null)&&_0x2301c6[_0x2e5309(0x23f)]||(this[_0x2e5309(0x21b)]['ln'][_0x2e5309(0x23f)]={}),this['shapeData']['ln'][_0x2e5309(0x23f)][_0x2e5309(0x1d7)]=_0x4063a5,this;}[_0x1a70bd(0x21a)](_0x44daec){const _0x387b1e=_0x1a70bd;var _0x203513,_0xf03a46;return(_0x203513=this[_0x387b1e(0x21b)])!=null&&_0x203513['ln']||(this[_0x387b1e(0x21b)]['ln']={}),!((_0xf03a46=this[_0x387b1e(0x21b)])==null||(_0xf03a46=_0xf03a46['ln'])==null)&&_0xf03a46['endArrow']||(this[_0x387b1e(0x21b)]['ln'][_0x387b1e(0x213)]={}),this[_0x387b1e(0x21b)]['ln'][_0x387b1e(0x213)][_0x387b1e(0x1d7)]=_0x44daec,this;}[_0x1a70bd(0x214)](_0x5eb6c9){const _0x485b63=_0x1a70bd;var _0x4e4065,_0x14bcc3;return(_0x4e4065=this[_0x485b63(0x21b)])!=null&&_0x4e4065['ln']||(this[_0x485b63(0x21b)]['ln']={}),!((_0x14bcc3=this[_0x485b63(0x21b)])==null||(_0x14bcc3=_0x14bcc3['ln'])==null)&&_0x14bcc3['startArrow']||(this[_0x485b63(0x21b)]['ln'][_0x485b63(0x23f)]={}),this['shapeData']['ln'][_0x485b63(0x23f)][_0x485b63(0x1c2)]=_0x5eb6c9,this;}[_0x1a70bd(0x1e9)](_0x976007){const _0xfb8c96=_0x1a70bd;var _0x50b1b1,_0x58ddbd;return(_0x50b1b1=this[_0xfb8c96(0x21b)])!=null&&_0x50b1b1['ln']||(this[_0xfb8c96(0x21b)]['ln']={}),!((_0x58ddbd=this[_0xfb8c96(0x21b)])==null||(_0x58ddbd=_0x58ddbd['ln'])==null)&&_0x58ddbd['endArrow']||(this[_0xfb8c96(0x21b)]['ln'][_0xfb8c96(0x213)]={}),this[_0xfb8c96(0x21b)]['ln'][_0xfb8c96(0x213)][_0xfb8c96(0x1c2)]=_0x976007,this;}['build'](){const _0x1f74be=_0x1a70bd;return super[_0x1f74be(0x1f6)]();}[_0x1a70bd(0x20e)](){const _0xb47b30=_0x1a70bd;var _0xdd1ada;return((_0xdd1ada=this['shapeData'])==null||(_0xdd1ada=_0xdd1ada[_0xb47b30(0x1c8)])==null?void 0x0:_0xdd1ada['to'])||null;}[_0x1a70bd(0x23d)](){const _0x1b7648=_0x1a70bd;var _0x5f72dc;return((_0x5f72dc=this[_0x1b7648(0x21b)])==null||(_0x5f72dc=_0x5f72dc[_0x1b7648(0x1c8)])==null?void 0x0:_0x5f72dc['from'])||null;}};function I(_0x13fb05,_0x39e15e,_0x5b92c7,_0x3f99fc,_0x5090f4,_0x2365ae){const _0x2ee033=_0x1a70bd;let _0x468a2b=_0x5090f4[_0x2ee033(0x218)](_0x13fb05,_0x39e15e,_0x5b92c7);if(!_0x468a2b)return null;let _0x258a02=_0x2365ae[_0x2ee033(0x1d0)]({'unitId':_0x13fb05,'subUnitId':_0x39e15e,'drawingId':_0x5b92c7});if(!(_0x258a02!=null&&_0x258a02[_0x2ee033(0x204)]))return null;let {left:_0x403edd=0x0,top:_0x43a0a6=0x0,width:_0x5bbf2b=0x0,height:_0x17281f=0x0,flipX:_0x5a9cec=!0x1,flipY:_0xf291c=!0x1,angle:_0xab7cfe}=_0x258a02['transform'];_0x468a2b[_0x2ee033(0x1cb)]({'width':_0x5bbf2b,'height':_0x17281f});let _0x3b4335=_0x468a2b[_0x2ee033(0x1fe)]()['find'](_0x26d285=>_0x26d285[_0x2ee033(0x1d8)]===_0x3f99fc);if(!_0x3b4335)return null;let _0x34b116=_0x5a9cec?_0x5bbf2b-_0x3b4335['x']:_0x3b4335['x'],_0x58e989=_0xf291c?_0x17281f-_0x3b4335['y']:_0x3b4335['y'];if(_0xab7cfe&&_0xab7cfe!==0x0){let _0x50b6f0=_0xab7cfe*Math['PI']/0xb4,_0x1d4d74=Math[_0x2ee033(0x1ca)](_0x50b6f0),_0x4be184=Math[_0x2ee033(0x1e1)](_0x50b6f0),_0x199304=_0x5bbf2b/0x2,_0x3188f5=_0x17281f/0x2,_0x12a69f=_0x34b116-_0x199304,_0x319a2f=_0x58e989-_0x3188f5;_0x34b116=_0x199304+_0x12a69f*_0x1d4d74-_0x319a2f*_0x4be184,_0x58e989=_0x3188f5+_0x12a69f*_0x4be184+_0x319a2f*_0x1d4d74;}_0x34b116+=_0x403edd,_0x58e989+=_0x43a0a6;let _0x393733=_0x3b4335[_0x2ee033(0x230)]/0xea60;_0x5a9cec&&(_0x393733=0xb4-_0x393733),_0xf291c&&(_0x393733=-_0x393733),_0x393733+=_0xab7cfe||0x0,_0x393733=(_0x393733%0x168+0x168)%0x168;let _0x3614f0=_0x1ccf79({'left':_0x403edd,'top':_0x43a0a6,'width':_0x5bbf2b,'height':_0x17281f},_0xab7cfe||0x0);return{'point':{'x':_0x34b116,'y':_0x58e989},'angle':_0x393733,'bounds':_0x3614f0};}function L(_0x408463,_0x2298b9){const _0x39ef1b=_0x1a70bd;let _0x509e5e=_0x2298b9['x']-_0x408463['x'],_0x30283f=_0x2298b9['y']-_0x408463['y'];return Math[_0x39ef1b(0x242)](_0x509e5e)>=Math[_0x39ef1b(0x242)](_0x30283f)?_0x509e5e>=0x0?0xb4:0x0:_0x30283f>=0x0?0x10e:0x5a;}function R(_0x3c7d22,_0x8eee2c,_0x1a489b,_0x12e955,_0x4a7462,_0x26668c,_0x1bb58c){const _0x39afa8=_0x1a70bd;let _0x43e341=_0x26668c[_0x39afa8(0x218)](_0x3c7d22,_0x8eee2c,_0x1a489b);if(!_0x43e341)return null;let _0x340a6e=_0x1bb58c[_0x39afa8(0x1d0)]({'unitId':_0x3c7d22,'subUnitId':_0x8eee2c,'drawingId':_0x1a489b});if(!(_0x340a6e!=null&&_0x340a6e[_0x39afa8(0x204)]))return null;let {left:_0x3001c8=0x0,top:_0x1071e2=0x0,width:_0x5f1041=0x0,height:_0x29d07f=0x0,flipX:_0x3d5d72=!0x1,flipY:_0x1c8e2a=!0x1}=_0x340a6e['transform'];_0x43e341['updateContext']({'width':_0x5f1041,'height':_0x29d07f});let _0x2a9092=_0x43e341[_0x39afa8(0x1c5)]();if(_0x2a9092[_0x39afa8(0x233)]<0x2)return null;let _0x8ead84=_0x12e955?_0x2a9092[0x0]:_0x2a9092[_0x2a9092[_0x39afa8(0x233)]-0x1],_0x3b78c6=new _0x5dda88({'left':_0x3001c8,'top':_0x1071e2,'width':_0x5f1041,'height':_0x29d07f,'flipX':_0x3d5d72,'flipY':_0x1c8e2a})[_0x39afa8(0x20b)](_0x8ead84);return{'point':_0x3b78c6,'angle':L(_0x4a7462[_0x39afa8(0x1ff)],_0x3b78c6),'bounds':{'left':_0x3b78c6['x'],'top':_0x3b78c6['y'],'width':0x0,'height':0x0}};}var z=class extends _0x26ae22{async[_0x1a70bd(0x1e8)](_0x20dcc5){const _0x167355=_0x1a70bd;let {unitId:_0x3744ab,subUnitId:_0xfa01b9,shapeId:_0x1b4eb0,shapeType:_0x4f892f,shapeData:_0x4db7f8,x:_0x23aa67,y:_0xabd2b4,width:_0x5c9ab0,height:_0x138ad5}=_0x20dcc5;return this[_0x167355(0x21d)]['executeCommand'](_0x286adb['id'],{'unitId':_0x3744ab,'subUnitId':_0xfa01b9,'shapeId':_0x1b4eb0,'shapeType':_0x4f892f,'shapeData':_0x4db7f8,'position':{'x':_0x23aa67,'y':_0xabd2b4},'width':_0x5c9ab0,'height':_0x138ad5});}async[_0x1a70bd(0x201)](_0xdbdefc){const _0x1def2d=_0x1a70bd;let {unitId:_0x2ef823,subUnitId:_0x5470dc,shapeId:_0x4457ad,shapeType:_0x126949,shapeData:_0x8a380f,x:_0x94e417,y:_0x4871c5,width:_0x4de276,height:_0x39b880}=_0xdbdefc;return this[_0x1def2d(0x21d)][_0x1def2d(0x221)](_0x5ddcca['id'],{'unitId':_0x2ef823,'subUnitId':_0x5470dc,'shapeId':_0x4457ad,'shapeType':_0x126949,'shapeData':_0x8a380f,'position':{'x':_0x94e417,'y':_0x4871c5},'width':_0x4de276,'height':_0x39b880});}[_0x1a70bd(0x1ec)](_0x55377d){const _0x2867b5=_0x1a70bd;let _0x3732a7=this[_0x2867b5(0x1f3)]()[_0x2867b5(0x1fd)](),_0x25dda3=this[_0x2867b5(0x22d)]();if(_0x55377d){let _0x2e942d=new P(_0x3732a7,_0x25dda3,_0x55377d[_0x2867b5(0x1ed)],this[_0x2867b5(0x1d2)]);return this[_0x2867b5(0x1f0)](_0x2e942d,_0x3732a7,_0x25dda3,_0x55377d['drawId']),_0x2e942d;}return new P(_0x3732a7,_0x25dda3,_0xca9b09(),this['_injector']);}[_0x1a70bd(0x215)](_0x15611a){const _0x250b03=_0x1a70bd;let _0x4b94bd=this[_0x250b03(0x1f3)]()['getUnitId'](),_0x2c8aed=this[_0x250b03(0x22d)]();if(_0x15611a){let _0x4d04fb=new F(_0x4b94bd,_0x2c8aed,_0x15611a['drawId'],this[_0x250b03(0x1d2)]);return this[_0x250b03(0x1f0)](_0x4d04fb,_0x4b94bd,_0x2c8aed,_0x15611a['drawId']),_0x4d04fb;}return new F(_0x4b94bd,_0x2c8aed,_0xca9b09(),this[_0x250b03(0x1d2)]);}[_0x1a70bd(0x22e)](){const _0x11b29f=_0x1a70bd;let _0x1510ac=this[_0x11b29f(0x1d2)][_0x11b29f(0x1e7)](_0x4b057e),_0x3262d6=this[_0x11b29f(0x1f3)]()[_0x11b29f(0x1fd)](),_0x34cefe=this[_0x11b29f(0x22d)](),_0x591ef9=_0x1510ac[_0x11b29f(0x1f8)](_0x3262d6,_0x34cefe);if(!_0x591ef9)return[];let _0x2dbb27=[];for(let [_0x2d99f4,_0x5602aa]of Object['entries'](_0x591ef9))if(_0x5602aa&&_0x5602aa[_0x11b29f(0x22b)]===_0x7113b1[_0x11b29f(0x20d)]){let _0x5b4721=new P(_0x3262d6,_0x34cefe,_0x2d99f4,this[_0x11b29f(0x1d2)]);this[_0x11b29f(0x1f0)](_0x5b4721,_0x3262d6,_0x34cefe,_0x2d99f4),_0x2dbb27[_0x11b29f(0x23b)](_0x5b4721);}return _0x2dbb27;}[_0x1a70bd(0x1cc)](_0x2a5808){const _0x3585fb=_0x1a70bd;let {unitId:_0x16ac09,subUnitId:_0x4d8785,drawId:_0x478aad}=_0x2a5808;return this[_0x3585fb(0x21d)][_0x3585fb(0x221)](_0x324f42['id'],{'unitId':_0x16ac09,'drawings':[{'unitId':_0x16ac09,'subUnitId':_0x4d8785,'drawingId':_0x478aad,'drawingType':_0x7113b1[_0x3585fb(0x20d)]}]});}async[_0x1a70bd(0x22a)](_0x19108b){const _0x263b7c=_0x1a70bd;let {connector:_0x14be9d,startTarget:_0x51dca8,endTarget:_0x34aea1}=_0x19108b;if(!_0x51dca8&&!_0x34aea1)return!0x1;let _0x29142d=this[_0x263b7c(0x1f3)]()[_0x263b7c(0x1fd)](),_0x291ffb=this[_0x263b7c(0x22d)](),_0x2407e4=this[_0x263b7c(0x1d2)][_0x263b7c(0x1e7)](_0x3fe959),_0xfbc104=this[_0x263b7c(0x1d2)][_0x263b7c(0x1e7)](_0x383207),_0x80f674=_0x2407e4['getShapeModel'](_0x29142d,_0x291ffb,_0x14be9d[_0x263b7c(0x1ed)]);if(!_0x80f674)return!0x1;let _0x3f5884=_0x80f674[_0x263b7c(0x1f4)](),_0x5f02c3=_0x80f674['getShapeRelation'](),_0x4e353b={};for(let _0x3272f9 of _0x80f674[_0x263b7c(0x1f7)]()){let _0x31e993=_0x80f674['getAdjustValueByName'](_0x3272f9);_0x31e993!==void 0x0&&(_0x4e353b[_0x3272f9]=_0x31e993);}let {startInfo:_0x3ba3f1,endInfo:_0x170999}=this[_0x263b7c(0x228)](_0x29142d,_0x291ffb,_0x14be9d,_0x80f674,_0x51dca8,_0x34aea1,_0x2407e4,_0xfbc104,_0x5f02c3);if(!_0x3ba3f1||!_0x170999)return!0x1;let _0x105ef6=_0x5f27ec(_0x4432fe(_0x3ba3f1,_0x170999,_0x3f5884),_0x3f5884),_0x1e5f69={};return _0x51dca8?_0x1e5f69['from']={'shapeId':_0x51dca8['shape'][_0x263b7c(0x1ed)],'cxnIndex':_0x51dca8['connectionSiteIndex']}:_0x5f02c3!=null&&_0x5f02c3[_0x263b7c(0x1ee)]&&(_0x1e5f69['from']=_0x5f02c3['from']),_0x34aea1?_0x1e5f69['to']={'shapeId':_0x34aea1[_0x263b7c(0x22f)]['drawId'],'cxnIndex':_0x34aea1[_0x263b7c(0x231)]}:_0x5f02c3!=null&&_0x5f02c3['to']&&(_0x1e5f69['to']=_0x5f02c3['to']),this[_0x263b7c(0x21d)]['executeCommand'](_0x4cacb3['id'],{'unitId':_0x29142d,'subUnitId':_0x291ffb,'connectorShapeId':_0x14be9d[_0x263b7c(0x1ed)],'width':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1c9)],'height':_0x105ef6[_0x263b7c(0x1d5)]['height'],'left':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1cf)],'top':_0x105ef6['worldRect']['top'],'flipX':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1f9)]||!0x1,'flipY':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1e4)]||!0x1,'oldAdjustValues':_0x4e353b,'newAdjustValues':_0x105ef6[_0x263b7c(0x1e5)],'newLineType':_0x105ef6[_0x263b7c(0x220)],'oldLineType':_0x3f5884,'rotation':_0x105ef6[_0x263b7c(0x241)],'oldRelation':_0x5f02c3,'newRelation':_0x1e5f69});}[_0x1a70bd(0x1f0)](_0x2cb91c,_0x572092,_0x2e143a,_0x45ec04){const _0xd2b492=_0x1a70bd;let _0x10bd8c=this[_0xd2b492(0x1d2)]['get'](_0x383207)[_0xd2b492(0x1d0)]({'unitId':_0x572092,'subUnitId':_0x2e143a,'drawingId':_0x45ec04});if(_0x10bd8c!=null&&_0x10bd8c[_0xd2b492(0x204)]){var _0x3d08aa,_0x2acd3c,_0x2490b1,_0x1dfdf2;_0x2cb91c['x']=(_0x3d08aa=_0x10bd8c['transform']['left'])==null?0x0:_0x3d08aa,_0x2cb91c['y']=(_0x2acd3c=_0x10bd8c['transform']['top'])==null?0x0:_0x2acd3c,_0x2cb91c[_0xd2b492(0x1c9)]=(_0x2490b1=_0x10bd8c[_0xd2b492(0x204)][_0xd2b492(0x1c9)])==null?_0x2cb91c['width']:_0x2490b1,_0x2cb91c[_0xd2b492(0x1db)]=(_0x1dfdf2=_0x10bd8c['transform']['height'])==null?_0x2cb91c[_0xd2b492(0x1db)]:_0x1dfdf2;}let _0x3ad149=this[_0xd2b492(0x1d2)][_0xd2b492(0x1e7)](_0x3fe959)[_0xd2b492(0x218)](_0x572092,_0x2e143a,_0x45ec04);if(_0x3ad149){_0x2cb91c[_0xd2b492(0x1e2)]=_0x3ad149[_0xd2b492(0x1f4)]();let _0x6936fb=_0x3ad149[_0xd2b492(0x1d4)]();_0x6936fb&&(_0x2cb91c[_0xd2b492(0x21b)]=JSON['parse'](JSON[_0xd2b492(0x205)](_0x6936fb)));}}['_resolveEndpoints'](_0xa5f090,_0x29583f,_0x3f01ae,_0x4676ec,_0x580e57,_0x558ac6,_0x2b21ae,_0x43d1b3,_0x341001){const _0x1753c8=_0x1a70bd;let _0x15e03d=null,_0x3f1b73=null;return _0x580e57&&(_0x15e03d=I(_0xa5f090,_0x29583f,_0x580e57[_0x1753c8(0x22f)][_0x1753c8(0x1ed)],_0x580e57[_0x1753c8(0x231)],_0x2b21ae,_0x43d1b3)),_0x558ac6&&(_0x3f1b73=I(_0xa5f090,_0x29583f,_0x558ac6['shape'][_0x1753c8(0x1ed)],_0x558ac6[_0x1753c8(0x231)],_0x2b21ae,_0x43d1b3)),_0x15e03d||(_0x15e03d=this[_0x1753c8(0x236)](_0xa5f090,_0x29583f,_0x3f01ae[_0x1753c8(0x1ed)],!0x0,_0x3f1b73,_0x341001==null?void 0x0:_0x341001[_0x1753c8(0x1ee)],_0x2b21ae,_0x43d1b3)),_0x3f1b73||(_0x3f1b73=this[_0x1753c8(0x236)](_0xa5f090,_0x29583f,_0x3f01ae['drawId'],!0x1,_0x15e03d,_0x341001==null?void 0x0:_0x341001['to'],_0x2b21ae,_0x43d1b3)),{'startInfo':_0x15e03d,'endInfo':_0x3f1b73};}[_0x1a70bd(0x236)](_0x39e1e9,_0x5e3334,_0x2c157b,_0x234abc,_0x2eac03,_0x3bf25c,_0x1a168f,_0x8d9eb5){const _0x3af242=_0x1a70bd;if(_0x3bf25c){let _0x299b72=I(_0x39e1e9,_0x5e3334,_0x3bf25c['shapeId'],_0x3bf25c[_0x3af242(0x1df)],_0x1a168f,_0x8d9eb5);if(_0x299b72)return _0x299b72;}return _0x2eac03?R(_0x39e1e9,_0x5e3334,_0x2c157b,_0x234abc,_0x2eac03,_0x1a168f,_0x8d9eb5):null;}};function _0x2c14(_0x8f1f09,_0x1b9adb){_0x8f1f09=_0x8f1f09-0x1c1;const _0x2fe922=_0x2fe9();let _0x2c1456=_0x2fe922[_0x8f1f09];return _0x2c1456;}_0x26ae22[_0x1a70bd(0x206)](z);export{F as FConnectorShape,P as FShape};
1
+ const _0x2073d0=_0x50e3;(function(_0x475033,_0x1bce5f){const _0x2284ed=_0x50e3,_0x49e1ef=_0x475033();while(!![]){try{const _0x3ab621=parseInt(_0x2284ed(0x17b))/0x1*(-parseInt(_0x2284ed(0x11f))/0x2)+-parseInt(_0x2284ed(0x10e))/0x3+-parseInt(_0x2284ed(0x14e))/0x4+-parseInt(_0x2284ed(0x137))/0x5*(-parseInt(_0x2284ed(0x16d))/0x6)+-parseInt(_0x2284ed(0x11a))/0x7*(-parseInt(_0x2284ed(0x145))/0x8)+parseInt(_0x2284ed(0x173))/0x9*(-parseInt(_0x2284ed(0x105))/0xa)+-parseInt(_0x2284ed(0x164))/0xb*(-parseInt(_0x2284ed(0x15b))/0xc);if(_0x3ab621===_0x1bce5f)break;else _0x49e1ef['push'](_0x49e1ef['shift']());}catch(_0x4ae1d6){_0x49e1ef['push'](_0x49e1ef['shift']());}}}(_0x3850,0x2ecc9));import{ConnectorCoordinateTransform as _0x3d6405,ShapeArrowSizeEnum as _0x5ad41c,ShapeArrowTypeEnum as _0x489d00,ShapeFillEnum as _0x3a3330,ShapeGradientTypeEnum as _0x528bbb,ShapeLineCapEnum as _0x5bde8f,ShapeLineDashEnum as _0x9c15d2,ShapeLineJoinEnum as _0x38c71a,ShapeLineTypeEnum as _0xd5ba2a,ShapeTypeEnum as _0x19ac2c,computeConnectorRouteLayout as _0x416057,getBasicShapeRotateBound as _0x2e4726,isConnectorShape as _0x41643b,routeConnectorLineShape as _0x232c7e}from'@univerjs-pro/engine-shape';import{FEnum as _0x285a81}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x54d06d,DEFAULT_SHAPE_WIDTH as _0x2bb6ff,InsertShapeCommand as _0x531a5c,SetShapeDrawingDataCommand as _0x4a74ed,SheetsShapeService as _0x20e1c9,UpdateConnectorRelationCommand as _0x127ca0}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x232e10,generateRandomId as _0x1e925e}from'@univerjs/core';import{IDrawingManagerService as _0x5859f8}from'@univerjs/drawing';import{SheetSkeletonService as _0x2a796e,convertPositionCellToSheetOverGrid as _0x3621c7}from'@univerjs/sheets';import{ISheetDrawingService as _0x286869,RemoveSheetDrawingCommand as _0x4ddd72}from'@univerjs/sheets-drawing';import{FWorksheet as _0x26843a}from'@univerjs/sheets/facade';var k=class extends _0x285a81{get[_0x2073d0(0x176)](){return _0x19ac2c;}get[_0x2073d0(0x100)](){return _0x3a3330;}get['ShapeGradientTypeEnum'](){return _0x528bbb;}get['ShapeLineTypeEnum'](){return _0xd5ba2a;}get[_0x2073d0(0x14b)](){return _0x9c15d2;}get[_0x2073d0(0x16c)](){return _0x5bde8f;}get[_0x2073d0(0x14a)](){return _0x38c71a;}get[_0x2073d0(0x172)](){return _0x489d00;}get[_0x2073d0(0xff)](){return _0x5ad41c;}};_0x285a81[_0x2073d0(0x179)](k);function A(_0x225554){'@babel/helpers - typeof';const _0x20d739=_0x2073d0;return A=typeof Symbol==_0x20d739(0x12b)&&typeof Symbol[_0x20d739(0x142)]==_0x20d739(0x16b)?function(_0x52afcc){return typeof _0x52afcc;}:function(_0x56b91b){const _0x1db4c9=_0x20d739;return _0x56b91b&&typeof Symbol==_0x1db4c9(0x12b)&&_0x56b91b[_0x1db4c9(0x12c)]===Symbol&&_0x56b91b!==Symbol[_0x1db4c9(0x119)]?_0x1db4c9(0x16b):typeof _0x56b91b;},A(_0x225554);}function j(_0x228039,_0x1741b4){const _0x3fa298=_0x2073d0;if(A(_0x228039)!=_0x3fa298(0xfd)||!_0x228039)return _0x228039;var _0x19a606=_0x228039[Symbol[_0x3fa298(0x132)]];if(_0x19a606!==void 0x0){var _0x1a93f6=_0x19a606[_0x3fa298(0x110)](_0x228039,_0x1741b4||_0x3fa298(0x12d));if(A(_0x1a93f6)!=_0x3fa298(0xfd))return _0x1a93f6;throw TypeError(_0x3fa298(0x174));}return(_0x1741b4===_0x3fa298(0x149)?String:Number)(_0x228039);}function M(_0x11b371){const _0x562743=_0x2073d0;var _0x16ade0=j(_0x11b371,_0x562743(0x149));return A(_0x16ade0)==_0x562743(0x16b)?_0x16ade0:_0x16ade0+'';}function N(_0x4e130c,_0x30f0b1,_0x3b46ce){const _0x2393fa=_0x2073d0;return(_0x30f0b1=M(_0x30f0b1))in _0x4e130c?Object[_0x2393fa(0x13f)](_0x4e130c,_0x30f0b1,{'value':_0x3b46ce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e130c[_0x30f0b1]=_0x3b46ce,_0x4e130c;}var P=class{constructor(_0x20e8ef,_0x34908c,_0x34c3c7,_0x15c43e){const _0x7cf93d=_0x2073d0;N(this,'unitId',void 0x0),N(this,_0x7cf93d(0x134),void 0x0),N(this,_0x7cf93d(0x124),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x7cf93d(0x128),_0x2bb6ff),N(this,'height',_0x54d06d),N(this,_0x7cf93d(0x108),void 0x0),N(this,'shapeData',{}),N(this,'_injector',void 0x0),this['unitId']=_0x20e8ef,this[_0x7cf93d(0x134)]=_0x34908c,this['drawId']=_0x34c3c7||_0x1e925e(),this['_injector']=_0x15c43e;}['setPosition'](_0x419b52,_0x1c0591,_0x5e8729,_0x4e7134){const _0x341e00=_0x2073d0;let _0x595d86=this['_injector'][_0x341e00(0x141)](_0x2a796e)[_0x341e00(0x150)](this[_0x341e00(0x13a)],this['subUnitId']);if(!_0x595d86)throw Error(_0x341e00(0x10c)+this[_0x341e00(0x13a)]+_0x341e00(0x11b)+this[_0x341e00(0x134)]+_0x341e00(0x118));let {transform:_0x1ad084}=_0x3621c7(this['unitId'],this[_0x341e00(0x134)],{'row':_0x419b52,'column':_0x1c0591,'rowOffset':_0x5e8729,'columnOffset':_0x4e7134},0x1,0x1,_0x595d86);return this['x']=_0x1ad084[_0x341e00(0x16f)],this['y']=_0x1ad084['top'],this;}[_0x2073d0(0x125)](_0x530858,_0x83146c){return this['x']=_0x530858,this['y']=_0x83146c,this;}[_0x2073d0(0x17a)](_0x3c453a){const _0x37eb18=_0x2073d0;return this[_0x37eb18(0x108)]=_0x3c453a,this;}[_0x2073d0(0x102)](_0x40337b,_0x1f0d70){const _0x42b5b9=_0x2073d0;return this['shapeData'][_0x42b5b9(0x14f)]||(this[_0x42b5b9(0x113)][_0x42b5b9(0x14f)]={}),this[_0x42b5b9(0x113)][_0x42b5b9(0x14f)][_0x42b5b9(0x117)]=_0x3a3330[_0x42b5b9(0x15f)],_0x40337b!==void 0x0&&(this['shapeData'][_0x42b5b9(0x14f)]['color']=_0x40337b),_0x1f0d70!==void 0x0&&(this[_0x42b5b9(0x113)]['fill'][_0x42b5b9(0x111)]=_0x1f0d70),this;}['setShapeGradientFill'](_0x20c8ed,_0x1c47bf,_0x54a4a5){const _0x136a73=_0x2073d0;if(_0x1c47bf===void 0x0||_0x1c47bf[_0x136a73(0x109)]===0x0)throw Error(_0x136a73(0x15d));return this[_0x136a73(0x113)][_0x136a73(0x14f)]||(this[_0x136a73(0x113)][_0x136a73(0x14f)]={}),this[_0x136a73(0x113)]['fill'][_0x136a73(0x103)]=_0x1c47bf,this[_0x136a73(0x113)]['fill']['fillType']=_0x3a3330['GradientFill'],this[_0x136a73(0x113)][_0x136a73(0x14f)][_0x136a73(0x133)]=_0x20c8ed,_0x54a4a5!==void 0x0&&(this['shapeData'][_0x136a73(0x14f)][_0x136a73(0x148)]=_0x54a4a5),this;}['setNoneFill'](){const _0x4d0f6a=_0x2073d0;return this[_0x4d0f6a(0x113)][_0x4d0f6a(0x14f)]={'fillType':_0x3a3330['NoFill']},this;}['setStrokeColor'](_0x2cf5c4){const _0x33a6da=_0x2073d0;return this['shapeData'][_0x33a6da(0x13d)]||(this['shapeData'][_0x33a6da(0x13d)]={}),this[_0x33a6da(0x113)]['stroke'][_0x33a6da(0x144)]=_0x2cf5c4,this;}[_0x2073d0(0x104)](_0x3edf8f){const _0x21cd92=_0x2073d0;return this[_0x21cd92(0x113)][_0x21cd92(0x13d)]||(this[_0x21cd92(0x113)][_0x21cd92(0x13d)]={}),this[_0x21cd92(0x113)]['stroke']['width']=_0x3edf8f,this;}[_0x2073d0(0x154)](_0xc8b615){const _0x141a2f=_0x2073d0;return this[_0x141a2f(0x113)][_0x141a2f(0x13d)]||(this['shapeData'][_0x141a2f(0x13d)]={}),this[_0x141a2f(0x113)][_0x141a2f(0x13d)][_0x141a2f(0x177)]=_0xc8b615,this;}[_0x2073d0(0x170)](_0x27009f){const _0x3eca22=_0x2073d0;return this[_0x3eca22(0x113)][_0x3eca22(0x13d)]||(this[_0x3eca22(0x113)][_0x3eca22(0x13d)]={}),this[_0x3eca22(0x113)][_0x3eca22(0x13d)][_0x3eca22(0x162)]=_0x27009f,this;}[_0x2073d0(0x175)](_0x120d8d){const _0x120387=_0x2073d0;return this[_0x120387(0x113)][_0x120387(0x13d)]||(this[_0x120387(0x113)][_0x120387(0x13d)]={}),this[_0x120387(0x113)][_0x120387(0x13d)][_0x120387(0x107)]=_0x120d8d,this;}[_0x2073d0(0x139)](_0x1ec9e1){const _0x21fd27=_0x2073d0;return this[_0x21fd27(0x113)][_0x21fd27(0x13d)]||(this[_0x21fd27(0x113)][_0x21fd27(0x13d)]={}),this['shapeData'][_0x21fd27(0x13d)][_0x21fd27(0x111)]=_0x1ec9e1,this;}[_0x2073d0(0x160)](_0x250605){const _0x243c75=_0x2073d0;return this[_0x243c75(0x113)]['stroke']||(this[_0x243c75(0x113)]['stroke']={}),this['shapeData'][_0x243c75(0x13d)]['lineStrokeType']=_0x250605,this;}[_0x2073d0(0x163)](_0x947657){const _0x2f31fd=_0x2073d0;return this[_0x2f31fd(0x128)]=_0x947657,this;}['setHeight'](_0x4617d3){const _0x17d03b=_0x2073d0;return this[_0x17d03b(0x152)]=_0x4617d3,this;}['isLineShape'](){const _0x3efe3b=_0x2073d0;let _0x15f071=this[_0x3efe3b(0x147)][_0x3efe3b(0x141)](_0x20e1c9)[_0x3efe3b(0x138)](this[_0x3efe3b(0x13a)],this[_0x3efe3b(0x134)],this[_0x3efe3b(0x124)]);return _0x15f071?_0x41643b(_0x15f071['getShapeType']()):this[_0x3efe3b(0x108)]?_0x41643b(this[_0x3efe3b(0x108)]):!0x1;}[_0x2073d0(0x10a)](){const _0x35cc6f=_0x2073d0;let _0x57d285=this[_0x35cc6f(0x147)][_0x35cc6f(0x141)](_0x20e1c9)['getShapeModel'](this['unitId'],this[_0x35cc6f(0x134)],this[_0x35cc6f(0x124)]);if(!_0x57d285)return[];let _0x21b566=this['_injector'][_0x35cc6f(0x141)](_0x5859f8)[_0x35cc6f(0x167)]({'unitId':this[_0x35cc6f(0x13a)],'subUnitId':this[_0x35cc6f(0x134)],'drawingId':this[_0x35cc6f(0x124)]});if(!(_0x21b566!=null&&_0x21b566[_0x35cc6f(0x126)]))return[];let {width:_0x499262=0x0,height:_0x84cab0=0x0}=_0x21b566[_0x35cc6f(0x126)];return _0x57d285['updateContext']({'width':_0x499262,'height':_0x84cab0}),_0x57d285[_0x35cc6f(0x17d)]();}['getAdjustPoints'](){const _0x366fcb=_0x2073d0;let _0x3a8d6e=this[_0x366fcb(0x147)][_0x366fcb(0x141)](_0x20e1c9)['getShapeModel'](this[_0x366fcb(0x13a)],this[_0x366fcb(0x134)],this[_0x366fcb(0x124)]);if(!_0x3a8d6e)return[];let _0x32d5e7=this[_0x366fcb(0x147)][_0x366fcb(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x366fcb(0x134)],'drawingId':this['drawId']});if(!(_0x32d5e7!=null&&_0x32d5e7[_0x366fcb(0x126)]))return[];let {width:_0x31ad76=0x0,height:_0x3ccd74=0x0}=_0x32d5e7[_0x366fcb(0x126)];return _0x3a8d6e[_0x366fcb(0x178)]({'width':_0x31ad76,'height':_0x3ccd74}),_0x3a8d6e[_0x366fcb(0x181)]();}[_0x2073d0(0x15c)](){const _0x35b28e=_0x2073d0;let _0x5707ab=this[_0x35b28e(0x147)]['get'](_0x20e1c9)[_0x35b28e(0x138)](this[_0x35b28e(0x13a)],this[_0x35b28e(0x134)],this[_0x35b28e(0x124)]);if(!_0x5707ab||!_0x41643b(_0x5707ab['getShapeType']()))return[];let _0x2cf68a=this[_0x35b28e(0x147)][_0x35b28e(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':this[_0x35b28e(0x13a)],'subUnitId':this[_0x35b28e(0x134)],'drawingId':this['drawId']});if(!(_0x2cf68a!=null&&_0x2cf68a[_0x35b28e(0x126)]))return[];let {width:_0x4d9961=0x0,height:_0x1d74ec=0x0}=_0x2cf68a[_0x35b28e(0x126)];return _0x5707ab['updateContext']({'width':_0x4d9961,'height':_0x1d74ec}),_0x5707ab[_0x35b28e(0x15c)]();}[_0x2073d0(0x13e)](){const _0x30fa57=_0x2073d0;var _0x3c1b13;let _0x2a172c=this['_injector'][_0x30fa57(0x141)](_0x20e1c9)[_0x30fa57(0x138)](this['unitId'],this[_0x30fa57(0x134)],this[_0x30fa57(0x124)]);return _0x2a172c?(_0x3c1b13=_0x2a172c[_0x30fa57(0x13e)]())==null?null:_0x3c1b13:null;}['getEndConnectInfo'](){const _0x2dce52=_0x2073d0;var _0x49a276;let _0x34e3a4=this[_0x2dce52(0x147)][_0x2dce52(0x141)](_0x20e1c9)[_0x2dce52(0x138)](this[_0x2dce52(0x13a)],this[_0x2dce52(0x134)],this[_0x2dce52(0x124)]);return _0x34e3a4?(_0x49a276=_0x34e3a4[_0x2dce52(0x12a)]())==null?null:_0x49a276:null;}['build'](){const _0x159906=_0x2073d0;var _0x39faed,_0x35fb85;if(!this['shapeType'])throw Error(_0x159906(0x112));if(this['x']===0x0||this['y']===0x0){let _0x5c04f9=this[_0x159906(0x147)][_0x159906(0x141)](_0x2a796e)[_0x159906(0x150)](this[_0x159906(0x13a)],this[_0x159906(0x134)]);if(!_0x5c04f9)throw Error(_0x159906(0x10c)+this[_0x159906(0x13a)]+_0x159906(0x11b)+this[_0x159906(0x134)]+_0x159906(0x118));let {transform:_0x23f34f}=_0x3621c7(this[_0x159906(0x13a)],this[_0x159906(0x134)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5c04f9);this['x']=this['x']>0x0?this['x']:_0x23f34f[_0x159906(0x16f)],this['y']=this['y']>0x0?this['y']:_0x23f34f['top'];}return this['width']=(_0x39faed=this[_0x159906(0x128)])==null?_0x2bb6ff:_0x39faed,this[_0x159906(0x152)]=(_0x35fb85=this[_0x159906(0x152)])==null?_0x54d06d:_0x35fb85,{'unitId':this[_0x159906(0x13a)],'subUnitId':this[_0x159906(0x134)],'shapeId':this[_0x159906(0x124)],'shapeType':this[_0x159906(0x108)],'shapeData':Object['keys'](this['shapeData'])[_0x159906(0x109)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x159906(0x128)],'height':this['height']};}[_0x2073d0(0x15e)](){const _0x36fd05=_0x2073d0;return this[_0x36fd05(0x124)];}[_0x2073d0(0x166)](){const _0xf3e0f=_0x2073d0;return this[_0xf3e0f(0x108)];}[_0x2073d0(0x13b)](){return this['shapeData'];}[_0x2073d0(0x13c)](){return{'x':this['x'],'y':this['y']};}[_0x2073d0(0x153)](){const _0x431f8e=_0x2073d0;return{'width':this[_0x431f8e(0x128)],'height':this[_0x431f8e(0x152)]};}},F=class extends P{constructor(_0x1d35e4,_0x32a7ff,_0xb91f31,_0x5c3633){const _0x300717=_0x2073d0;super(_0x1d35e4,_0x32a7ff,_0xb91f31,_0x5c3633),N(this,_0x300717(0x113),{});}[_0x2073d0(0x17a)](_0x3fc44b){const _0x11a330=_0x2073d0;if(!_0x41643b(_0x3fc44b))throw Error(_0x11a330(0x15a)+_0x3fc44b+_0x11a330(0x11d));return super[_0x11a330(0x17a)](_0x3fc44b),this;}[_0x2073d0(0x169)](_0x54b41b){const _0x492bc8=_0x2073d0;var _0x2a9c30,_0x2ba152;return(_0x2a9c30=this[_0x492bc8(0x113)])!=null&&_0x2a9c30['ln']||(this[_0x492bc8(0x113)]['ln']={}),!((_0x2ba152=this['shapeData'])==null||(_0x2ba152=_0x2ba152['ln'])==null)&&_0x2ba152[_0x492bc8(0x135)]||(this[_0x492bc8(0x113)]['ln'][_0x492bc8(0x135)]={}),this['shapeData']['ln'][_0x492bc8(0x135)][_0x492bc8(0x106)]=_0x54b41b,this;}[_0x2073d0(0x129)](_0x38835a){const _0x2a9fc6=_0x2073d0;var _0x59c056,_0x326b37;return(_0x59c056=this[_0x2a9fc6(0x113)])!=null&&_0x59c056['ln']||(this[_0x2a9fc6(0x113)]['ln']={}),!((_0x326b37=this[_0x2a9fc6(0x113)])==null||(_0x326b37=_0x326b37['ln'])==null)&&_0x326b37[_0x2a9fc6(0x16a)]||(this[_0x2a9fc6(0x113)]['ln'][_0x2a9fc6(0x16a)]={}),this[_0x2a9fc6(0x113)]['ln'][_0x2a9fc6(0x16a)][_0x2a9fc6(0x106)]=_0x38835a,this;}[_0x2073d0(0x151)](_0x51992a){const _0x25b33a=_0x2073d0;var _0x49a6a2,_0xee6c92;return(_0x49a6a2=this[_0x25b33a(0x113)])!=null&&_0x49a6a2['ln']||(this[_0x25b33a(0x113)]['ln']={}),!((_0xee6c92=this[_0x25b33a(0x113)])==null||(_0xee6c92=_0xee6c92['ln'])==null)&&_0xee6c92[_0x25b33a(0x135)]||(this['shapeData']['ln'][_0x25b33a(0x135)]={}),this[_0x25b33a(0x113)]['ln'][_0x25b33a(0x135)]['size']=_0x51992a,this;}[_0x2073d0(0x10f)](_0x428a18){const _0x1341d4=_0x2073d0;var _0x193612,_0x598518;return(_0x193612=this[_0x1341d4(0x113)])!=null&&_0x193612['ln']||(this[_0x1341d4(0x113)]['ln']={}),!((_0x598518=this['shapeData'])==null||(_0x598518=_0x598518['ln'])==null)&&_0x598518[_0x1341d4(0x16a)]||(this[_0x1341d4(0x113)]['ln'][_0x1341d4(0x16a)]={}),this['shapeData']['ln']['endArrow'][_0x1341d4(0x114)]=_0x428a18,this;}[_0x2073d0(0x123)](){return super['build']();}[_0x2073d0(0x12a)](){const _0x48a8cb=_0x2073d0;var _0x508e8f;return((_0x508e8f=this[_0x48a8cb(0x113)])==null||(_0x508e8f=_0x508e8f[_0x48a8cb(0x10d)])==null?void 0x0:_0x508e8f['to'])||null;}[_0x2073d0(0x13e)](){const _0x16f374=_0x2073d0;var _0x36e906;return((_0x36e906=this['shapeData'])==null||(_0x36e906=_0x36e906[_0x16f374(0x10d)])==null?void 0x0:_0x36e906[_0x16f374(0x140)])||null;}};function _0x50e3(_0x2fa40d,_0xfe81f8){_0x2fa40d=_0x2fa40d-0xfd;const _0x3850f=_0x3850();let _0x50e3fb=_0x3850f[_0x2fa40d];return _0x50e3fb;}function I(_0x1ea84a,_0x11c3bb,_0x4d5b2b,_0x144136,_0x1fbdfb,_0x42223b){const _0x4eb539=_0x2073d0;let _0x36eb6c=_0x1fbdfb[_0x4eb539(0x138)](_0x1ea84a,_0x11c3bb,_0x4d5b2b);if(!_0x36eb6c)return null;let _0x39c776=_0x42223b[_0x4eb539(0x167)]({'unitId':_0x1ea84a,'subUnitId':_0x11c3bb,'drawingId':_0x4d5b2b});if(!(_0x39c776!=null&&_0x39c776[_0x4eb539(0x126)]))return null;let {left:_0x1441a3=0x0,top:_0x3ba489=0x0,width:_0x3839cb=0x0,height:_0x139193=0x0,flipX:_0x15b9c8=!0x1,flipY:_0xd9d57e=!0x1,angle:_0x4040b5}=_0x39c776[_0x4eb539(0x126)];_0x36eb6c[_0x4eb539(0x178)]({'width':_0x3839cb,'height':_0x139193});let _0xb55f01=_0x36eb6c[_0x4eb539(0x17d)]()[_0x4eb539(0x168)](_0x38b637=>_0x38b637[_0x4eb539(0x155)]===_0x144136);if(!_0xb55f01)return null;let _0x580226=_0x15b9c8?_0x3839cb-_0xb55f01['x']:_0xb55f01['x'],_0x1d2d55=_0xd9d57e?_0x139193-_0xb55f01['y']:_0xb55f01['y'];if(_0x4040b5&&_0x4040b5!==0x0){let _0x76d71d=_0x4040b5*Math['PI']/0xb4,_0x4da6ba=Math['cos'](_0x76d71d),_0x4ac009=Math['sin'](_0x76d71d),_0x5ac38a=_0x3839cb/0x2,_0x58cf81=_0x139193/0x2,_0x49b4c3=_0x580226-_0x5ac38a,_0x303cea=_0x1d2d55-_0x58cf81;_0x580226=_0x5ac38a+_0x49b4c3*_0x4da6ba-_0x303cea*_0x4ac009,_0x1d2d55=_0x58cf81+_0x49b4c3*_0x4ac009+_0x303cea*_0x4da6ba;}_0x580226+=_0x1441a3,_0x1d2d55+=_0x3ba489;let _0xee3483=_0xb55f01[_0x4eb539(0x127)]/0xea60;_0x15b9c8&&(_0xee3483=0xb4-_0xee3483),_0xd9d57e&&(_0xee3483=-_0xee3483),_0xee3483+=_0x4040b5||0x0,_0xee3483=(_0xee3483%0x168+0x168)%0x168;let _0x97dd2a=_0x2e4726({'left':_0x1441a3,'top':_0x3ba489,'width':_0x3839cb,'height':_0x139193},_0x4040b5||0x0);return{'point':{'x':_0x580226,'y':_0x1d2d55},'angle':_0xee3483,'bounds':_0x97dd2a};}function L(_0xd9db51,_0x427b52){const _0x14836b=_0x2073d0;let _0x4f9a3e=_0x427b52['x']-_0xd9db51['x'],_0x2f3722=_0x427b52['y']-_0xd9db51['y'];return Math[_0x14836b(0x146)](_0x4f9a3e)>=Math[_0x14836b(0x146)](_0x2f3722)?_0x4f9a3e>=0x0?0xb4:0x0:_0x2f3722>=0x0?0x10e:0x5a;}function R(_0x1e624f,_0x1205be,_0x442b34,_0x2fa904,_0x2c28a0,_0x25401d,_0x1d5964){const _0x36f955=_0x2073d0;let _0x36fa44=_0x25401d[_0x36f955(0x138)](_0x1e624f,_0x1205be,_0x442b34);if(!_0x36fa44)return null;let _0x190196=_0x1d5964[_0x36f955(0x167)]({'unitId':_0x1e624f,'subUnitId':_0x1205be,'drawingId':_0x442b34});if(!(_0x190196!=null&&_0x190196['transform']))return null;let {left:_0x4df48d=0x0,top:_0x3d4101=0x0,width:_0x5362e1=0x0,height:_0x1e72f2=0x0,flipX:_0xf75ca4=!0x1,flipY:_0x47df41=!0x1}=_0x190196[_0x36f955(0x126)];_0x36fa44[_0x36f955(0x178)]({'width':_0x5362e1,'height':_0x1e72f2});let _0x37cecd=_0x36fa44[_0x36f955(0x15c)]();if(_0x37cecd['length']<0x2)return null;let _0x4e2914=_0x2fa904?_0x37cecd[0x0]:_0x37cecd[_0x37cecd[_0x36f955(0x109)]-0x1],_0x32ea50=new _0x3d6405({'left':_0x4df48d,'top':_0x3d4101,'width':_0x5362e1,'height':_0x1e72f2,'flipX':_0xf75ca4,'flipY':_0x47df41})[_0x36f955(0x122)](_0x4e2914);return{'point':_0x32ea50,'angle':L(_0x2c28a0[_0x36f955(0x11e)],_0x32ea50),'bounds':{'left':_0x32ea50['x'],'top':_0x32ea50['y'],'width':0x0,'height':0x0}};}var z=class extends _0x26843a{async[_0x2073d0(0x12f)](_0x228b61){const _0x18db8e=_0x2073d0;let {unitId:_0x59bb3b,subUnitId:_0x27dfbf,shapeId:_0x2b017d,shapeType:_0x3cb272,shapeData:_0x175002,x:_0x32eb35,y:_0x2339a1,width:_0x56517e,height:_0x2950ff}=_0x228b61;return this[_0x18db8e(0x17e)]['executeCommand'](_0x531a5c['id'],{'unitId':_0x59bb3b,'subUnitId':_0x27dfbf,'shapeId':_0x2b017d,'shapeType':_0x3cb272,'shapeData':_0x175002,'position':{'x':_0x32eb35,'y':_0x2339a1},'width':_0x56517e,'height':_0x2950ff});}async[_0x2073d0(0x182)](_0x2b95f0){const _0x32fbc6=_0x2073d0;let {unitId:_0x38909b,subUnitId:_0x29ed2d,shapeId:_0x596c6f,shapeType:_0x3ddeba,shapeData:_0x3b9f1a,x:_0x3c101d,y:_0x1bd4d0,width:_0x221812,height:_0x3a370f}=_0x2b95f0;return this[_0x32fbc6(0x17e)][_0x32fbc6(0x161)](_0x4a74ed['id'],{'unitId':_0x38909b,'subUnitId':_0x29ed2d,'shapeId':_0x596c6f,'shapeType':_0x3ddeba,'shapeData':_0x3b9f1a,'position':{'x':_0x3c101d,'y':_0x1bd4d0},'width':_0x221812,'height':_0x3a370f});}[_0x2073d0(0x183)](_0x566203){const _0x4aedf4=_0x2073d0;let _0x2a5338=this[_0x4aedf4(0x165)]()[_0x4aedf4(0x101)](),_0x11207a=this[_0x4aedf4(0x10b)]();if(_0x566203){let _0x4ec868=new P(_0x2a5338,_0x11207a,_0x566203[_0x4aedf4(0x124)],this[_0x4aedf4(0x147)]);return this[_0x4aedf4(0x17f)](_0x4ec868,_0x2a5338,_0x11207a,_0x566203[_0x4aedf4(0x124)]),_0x4ec868;}return new P(_0x2a5338,_0x11207a,_0x1e925e(),this['_injector']);}[_0x2073d0(0x157)](_0xe2e812){const _0x5d6944=_0x2073d0;let _0x4c2631=this['getWorkbook']()[_0x5d6944(0x101)](),_0x1abd34=this[_0x5d6944(0x10b)]();if(_0xe2e812){let _0x5b10f5=new F(_0x4c2631,_0x1abd34,_0xe2e812['drawId'],this[_0x5d6944(0x147)]);return this['_preloadShapeProperties'](_0x5b10f5,_0x4c2631,_0x1abd34,_0xe2e812['drawId']),_0x5b10f5;}return new F(_0x4c2631,_0x1abd34,_0x1e925e(),this[_0x5d6944(0x147)]);}[_0x2073d0(0x17c)](){const _0x785d49=_0x2073d0;let _0x5c6e7e=this[_0x785d49(0x147)]['get'](_0x286869),_0x1d58cc=this[_0x785d49(0x165)]()[_0x785d49(0x101)](),_0x4d67cf=this[_0x785d49(0x10b)](),_0x1e3770=_0x5c6e7e['getDrawingData'](_0x1d58cc,_0x4d67cf);if(!_0x1e3770)return[];let _0x12cb43=[];for(let [_0x30ca2b,_0x3f3b0a]of Object[_0x785d49(0x131)](_0x1e3770))if(_0x3f3b0a&&_0x3f3b0a[_0x785d49(0x12e)]===_0x232e10[_0x785d49(0x14c)]){let _0x2e8241=new P(_0x1d58cc,_0x4d67cf,_0x30ca2b,this[_0x785d49(0x147)]);this[_0x785d49(0x17f)](_0x2e8241,_0x1d58cc,_0x4d67cf,_0x30ca2b),_0x12cb43[_0x785d49(0x16e)](_0x2e8241);}return _0x12cb43;}['removeShape'](_0x3f88a9){const _0x36600d=_0x2073d0;let {unitId:_0x3abbdf,subUnitId:_0x593ca7,drawId:_0x5be6d6}=_0x3f88a9;return this['_commandService'][_0x36600d(0x161)](_0x4ddd72['id'],{'unitId':_0x3abbdf,'drawings':[{'unitId':_0x3abbdf,'subUnitId':_0x593ca7,'drawingId':_0x5be6d6,'drawingType':_0x232e10[_0x36600d(0x14c)]}]});}async[_0x2073d0(0x156)](_0xeddc22){const _0x6d5380=_0x2073d0;let {connector:_0x3d9e66,startTarget:_0x1dc056,endTarget:_0x315b47}=_0xeddc22;if(!_0x1dc056&&!_0x315b47)return!0x1;let _0x3930cc=this[_0x6d5380(0x165)]()['getUnitId'](),_0x223325=this[_0x6d5380(0x10b)](),_0x367dea=this[_0x6d5380(0x147)][_0x6d5380(0x141)](_0x20e1c9),_0x7afc88=this['_injector'][_0x6d5380(0x141)](_0x5859f8),_0x5c4874=_0x367dea[_0x6d5380(0x138)](_0x3930cc,_0x223325,_0x3d9e66[_0x6d5380(0x124)]);if(!_0x5c4874)return!0x1;let _0x27291a=_0x5c4874[_0x6d5380(0x166)](),_0x36828e=_0x5c4874[_0x6d5380(0x136)](),_0x59e299={};for(let _0xc305ff of _0x5c4874[_0x6d5380(0x143)]()){let _0x5d95c2=_0x5c4874['getAdjustValueByName'](_0xc305ff);_0x5d95c2!==void 0x0&&(_0x59e299[_0xc305ff]=_0x5d95c2);}let {startInfo:_0x20eb1d,endInfo:_0x233692}=this[_0x6d5380(0x115)](_0x3930cc,_0x223325,_0x3d9e66,_0x5c4874,_0x1dc056,_0x315b47,_0x367dea,_0x7afc88,_0x36828e);if(!_0x20eb1d||!_0x233692)return!0x1;let _0x1c4a0f=_0x416057(_0x232c7e(_0x20eb1d,_0x233692,_0x27291a),_0x27291a),_0x24922a={};return _0x1dc056?_0x24922a[_0x6d5380(0x140)]={'shapeId':_0x1dc056[_0x6d5380(0x159)][_0x6d5380(0x124)],'cxnIndex':_0x1dc056['connectionSiteIndex']}:_0x36828e!=null&&_0x36828e['from']&&(_0x24922a[_0x6d5380(0x140)]=_0x36828e[_0x6d5380(0x140)]),_0x315b47?_0x24922a['to']={'shapeId':_0x315b47[_0x6d5380(0x159)][_0x6d5380(0x124)],'cxnIndex':_0x315b47[_0x6d5380(0x180)]}:_0x36828e!=null&&_0x36828e['to']&&(_0x24922a['to']=_0x36828e['to']),this[_0x6d5380(0x17e)][_0x6d5380(0x161)](_0x127ca0['id'],{'unitId':_0x3930cc,'subUnitId':_0x223325,'connectorShapeId':_0x3d9e66[_0x6d5380(0x124)],'width':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x128)],'height':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x152)],'left':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x16f)],'top':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0xfe)],'flipX':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x120)]||!0x1,'flipY':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x158)]||!0x1,'oldAdjustValues':_0x59e299,'newAdjustValues':_0x1c4a0f[_0x6d5380(0x116)],'newLineType':_0x1c4a0f['lineType'],'oldLineType':_0x27291a,'rotation':_0x1c4a0f[_0x6d5380(0x130)],'oldRelation':_0x36828e,'newRelation':_0x24922a});}[_0x2073d0(0x17f)](_0x3083ef,_0x57decc,_0x3210b5,_0x1b0f56){const _0x21a500=_0x2073d0;let _0x35ed48=this['_injector'][_0x21a500(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':_0x57decc,'subUnitId':_0x3210b5,'drawingId':_0x1b0f56});if(_0x35ed48!=null&&_0x35ed48[_0x21a500(0x126)]){var _0x413edf,_0x45ee9e,_0x213229,_0x5028c6;_0x3083ef['x']=(_0x413edf=_0x35ed48['transform'][_0x21a500(0x16f)])==null?0x0:_0x413edf,_0x3083ef['y']=(_0x45ee9e=_0x35ed48['transform'][_0x21a500(0xfe)])==null?0x0:_0x45ee9e,_0x3083ef[_0x21a500(0x128)]=(_0x213229=_0x35ed48['transform'][_0x21a500(0x128)])==null?_0x3083ef[_0x21a500(0x128)]:_0x213229,_0x3083ef[_0x21a500(0x152)]=(_0x5028c6=_0x35ed48[_0x21a500(0x126)][_0x21a500(0x152)])==null?_0x3083ef['height']:_0x5028c6;}let _0x12bf2c=this[_0x21a500(0x147)][_0x21a500(0x141)](_0x20e1c9)['getShapeModel'](_0x57decc,_0x3210b5,_0x1b0f56);if(_0x12bf2c){_0x3083ef[_0x21a500(0x108)]=_0x12bf2c[_0x21a500(0x166)]();let _0x5687af=_0x12bf2c['getShapeData']();_0x5687af&&(_0x3083ef[_0x21a500(0x113)]=JSON[_0x21a500(0x11c)](JSON['stringify'](_0x5687af)));}}[_0x2073d0(0x115)](_0x55e377,_0x4aae02,_0x436652,_0x19dcaf,_0x206273,_0x118c77,_0x45dc5c,_0x1d9e8f,_0x302bd4){const _0x9785a7=_0x2073d0;let _0x175968=null,_0x5664f8=null;return _0x206273&&(_0x175968=I(_0x55e377,_0x4aae02,_0x206273[_0x9785a7(0x159)][_0x9785a7(0x124)],_0x206273[_0x9785a7(0x180)],_0x45dc5c,_0x1d9e8f)),_0x118c77&&(_0x5664f8=I(_0x55e377,_0x4aae02,_0x118c77[_0x9785a7(0x159)][_0x9785a7(0x124)],_0x118c77[_0x9785a7(0x180)],_0x45dc5c,_0x1d9e8f)),_0x175968||(_0x175968=this[_0x9785a7(0x121)](_0x55e377,_0x4aae02,_0x436652[_0x9785a7(0x124)],!0x0,_0x5664f8,_0x302bd4==null?void 0x0:_0x302bd4[_0x9785a7(0x140)],_0x45dc5c,_0x1d9e8f)),_0x5664f8||(_0x5664f8=this[_0x9785a7(0x121)](_0x55e377,_0x4aae02,_0x436652[_0x9785a7(0x124)],!0x1,_0x175968,_0x302bd4==null?void 0x0:_0x302bd4['to'],_0x45dc5c,_0x1d9e8f)),{'startInfo':_0x175968,'endInfo':_0x5664f8};}[_0x2073d0(0x121)](_0x5e9f48,_0x4925ef,_0x35aa68,_0x5ef675,_0x3219cb,_0x4d9b9d,_0x29390d,_0x1b85d4){const _0x25b2d1=_0x2073d0;if(_0x4d9b9d){let _0x2ae2d6=I(_0x5e9f48,_0x4925ef,_0x4d9b9d[_0x25b2d1(0x14d)],_0x4d9b9d['cxnIndex'],_0x29390d,_0x1b85d4);if(_0x2ae2d6)return _0x2ae2d6;}return _0x3219cb?R(_0x5e9f48,_0x4925ef,_0x35aa68,_0x5ef675,_0x3219cb,_0x29390d,_0x1b85d4):null;}};_0x26843a[_0x2073d0(0x179)](z);export{F as FConnectorShape,P as FShape};function _0x3850(){const _0x60091c=['setStrokeLineDashType','index','connectShapes','newConnector','flipY','shape','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','3228756lOJpLN','getConnectorLinePoints','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','getShapeId','SolidFill','setStrokeLineType','executeCommand','lineJoinType','setWidth','11UeeYoL','getWorkbook','getShapeType','getDrawingByParam','find','setStartArrowType','endArrow','symbol','ShapeLineCapEnum','1782786uUkxpp','push','left','setStrokeLineJoinType','worldRect','ShapeArrowTypeEnum','9fytaGN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','setStrokeLineCapType','ShapeTypeEnum','dashType','updateContext','extend','setShapeType','77XSsvdy','getShapes','getConnectionSiteList','_commandService','_preloadShapeProperties','connectionSiteIndex','getDrawingPoints','updateShape','newShape','object','top','ShapeArrowSizeEnum','ShapeFillEnum','getUnitId','setShapeSolidFill','gradientStops','setStrokeWidth','738590dvSfOH','type','capType','shapeType','length','getConnectionSites','getSheetId','Skeleton\x20for\x20unitId\x20','relation','183465pUxJxG','setEndArrowSize','call','opacity','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','shapeData','size','_resolveEndpoints','adjustValues','fillType','\x20not\x20found','prototype','35VsOQkz','\x20and\x20subUnitId\x20','parse',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','point','7370KmxsqD','flipX','_resolveExistingOrFreeEndpoint','localToWorld','build','drawId','setAbsolutePosition','transform','ang','width','setEndArrowType','getEndConnectInfo','function','constructor','default','drawingType','insertShape','rotation','entries','toPrimitive','gradientType','subUnitId','startArrow','getShapeRelation','5WEefPh','getShapeModel','setStrokeOpacity','unitId','getShapeData','getPosition','stroke','getStartConnectInfo','defineProperty','from','get','iterator','getAdjustNames','color','219368JxkeuE','abs','_injector','gradientAngle','string','ShapeLineJoinEnum','ShapeLineDashEnum','DRAWING_SHAPE','shapeId','371404pBcgRT','fill','ensureSkeleton','setStartArrowSize','height','getSize'];_0x3850=function(){return _0x60091c;};return _0x3850();}