@univerjs-pro/sheets-shape 0.20.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x58a3d5=_0x1c4c;(function(_0x4460d8,_0x3d77a9){const _0x264d6e=_0x1c4c,_0x2cf037=_0x4460d8();while(!![]){try{const _0x36e53b=parseInt(_0x264d6e(0x178))/0x1*(parseInt(_0x264d6e(0x19a))/0x2)+parseInt(_0x264d6e(0x141))/0x3+-parseInt(_0x264d6e(0x180))/0x4*(-parseInt(_0x264d6e(0x16e))/0x5)+parseInt(_0x264d6e(0x129))/0x6+parseInt(_0x264d6e(0x19c))/0x7+parseInt(_0x264d6e(0x172))/0x8+-parseInt(_0x264d6e(0x13d))/0x9;if(_0x36e53b===_0x3d77a9)break;else _0x2cf037['push'](_0x2cf037['shift']());}catch(_0x42af7d){_0x2cf037['push'](_0x2cf037['shift']());}}}(_0x41a1,0xd5e58));import{ShapeModel as _0x29bfb6,computeConnectorRouteLayout as _0x1b7fa5,getBasicShapeRotateBound as _0x3b1527,isConnectorShape as _0x48f6a6,routeConnectorLineShape as _0x4bd7db}from'@univerjs-pro/engine-shape';import{CommandType as _0x2518e2,DependentOn as _0x1b6787,Disposable as _0x3e2f6c,DrawingTypeEnum as _0x29ca4c,ICommandService as _0x24fd18,IConfigService as _0x5a07f8,IResourceManagerService as _0x58972f,IUndoRedoService as _0xc84305,IUniverInstanceService as _0x53c869,Inject as _0x5d21b3,Injector as _0x2345ca,Plugin as _0x5bc10b,UniverInstanceType as _0x3a3817,generateRandomId as _0x501d12,merge as _0x1f668c,sequenceExecute as _0x46e0d2,touchDependencies as _0x253d80}from'@univerjs/core';import{SheetInterceptorService as _0x7a4d09,SheetSkeletonService as _0x1515ae,getSheetCommandTarget as _0x282dcd}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x10a6b0,DrawingApplyType as _0xafe5b9,ISheetDrawingService as _0x17ec86,InsertSheetDrawingCommand as _0x3694da,RemoveSheetDrawingCommand as _0x209cc8,SetDrawingApplyMutation as _0x3e02e5,SetSheetDrawingCommand as _0x2d8360,transformToAxisAlignPosition as _0xc67ff1,transformToDrawingPosition as _0x5d28ad}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x525d5e}from'@univerjs-pro/license';import{IDrawingManagerService as _0x579441}from'@univerjs/drawing';const I=0xc8,L=0xc8;function R(_0x2f6bdb){'@babel/helpers - typeof';const _0x1c44e3=_0x1c4c;return R=typeof Symbol==_0x1c44e3(0x120)&&typeof Symbol[_0x1c44e3(0x12c)]==_0x1c44e3(0x13c)?function(_0x44d96a){return typeof _0x44d96a;}:function(_0x29bfed){const _0x175434=_0x1c44e3;return _0x29bfed&&typeof Symbol==_0x175434(0x120)&&_0x29bfed[_0x175434(0x11e)]===Symbol&&_0x29bfed!==Symbol[_0x175434(0x160)]?_0x175434(0x13c):typeof _0x29bfed;},R(_0x2f6bdb);}function z(_0x56d929,_0x40402c){const _0x2cf117=_0x1c4c;if(R(_0x56d929)!=_0x2cf117(0x16f)||!_0x56d929)return _0x56d929;var _0x37ecec=_0x56d929[Symbol[_0x2cf117(0x114)]];if(_0x37ecec!==void 0x0){var _0x12f2f9=_0x37ecec[_0x2cf117(0x12b)](_0x56d929,_0x40402c||_0x2cf117(0x179));if(R(_0x12f2f9)!=_0x2cf117(0x16f))return _0x12f2f9;throw TypeError(_0x2cf117(0x12f));}return(_0x40402c===_0x2cf117(0x156)?String:Number)(_0x56d929);}function B(_0x365847){const _0x23e3e3=_0x1c4c;var _0x366739=z(_0x365847,_0x23e3e3(0x156));return R(_0x366739)=='symbol'?_0x366739:_0x366739+'';}function V(_0x4e06ac,_0x41d37d,_0x1d146e){const _0x1c4dc5=_0x1c4c;return(_0x41d37d=B(_0x41d37d))in _0x4e06ac?Object[_0x1c4dc5(0x194)](_0x4e06ac,_0x41d37d,{'value':_0x1d146e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e06ac[_0x41d37d]=_0x1d146e,_0x4e06ac;}function _0x1c4c(_0x2674e0,_0x5ba4be){_0x2674e0=_0x2674e0-0x10d;const _0x41a1cf=_0x41a1();let _0x1c4c5b=_0x41a1cf[_0x2674e0];return _0x1c4c5b;}var H=class extends _0x3e2f6c{constructor(){const _0x556f5a=_0x1c4c;super(),V(this,'_shapes',new Map()),V(this,_0x556f5a(0x136),new Set()),V(this,_0x556f5a(0x12e),new Set());}[_0x58a3d5(0x170)](_0x56df8e,_0x1fc5cd,_0x48190d){const _0x256fdc=_0x58a3d5;let _0x185899=new _0x29bfb6(_0x56df8e,_0x1fc5cd,_0x48190d);return this[_0x256fdc(0x127)]['set'](_0x1fc5cd,_0x185899),_0x48f6a6(_0x56df8e)&&this[_0x256fdc(0x136)][_0x256fdc(0x159)](_0x1fc5cd),_0x185899;}[_0x58a3d5(0x14b)](_0x8dabe7){const _0x500904=_0x58a3d5;let _0x330df5=[];for(let _0x30bc62 of this[_0x500904(0x136)]){let _0x381461=this[_0x500904(0x127)]['get'](_0x30bc62);if(_0x381461){let _0x515249=_0x381461[_0x500904(0x138)]();if(_0x515249){var _0x21d0d7,_0x59c024;((_0x21d0d7=_0x515249[_0x500904(0x1a6)])==null?void 0x0:_0x21d0d7[_0x500904(0x149)])===_0x8dabe7&&_0x330df5[_0x500904(0x19b)]({..._0x515249[_0x500904(0x1a6)],'lineShapeId':_0x30bc62,'isFrom':!0x0}),((_0x59c024=_0x515249['to'])==null?void 0x0:_0x59c024[_0x500904(0x149)])===_0x8dabe7&&_0x330df5[_0x500904(0x19b)]({..._0x515249['to'],'lineShapeId':_0x30bc62,'isFrom':!0x1});}}}return _0x330df5;}[_0x58a3d5(0x124)](_0x58e279){const _0x5c85a4=_0x58a3d5;let _0x42e0a0=this[_0x5c85a4(0x127)][_0x5c85a4(0x118)](_0x58e279);if(_0x42e0a0)return _0x42e0a0[_0x5c85a4(0x138)]();}[_0x58a3d5(0x1a3)](_0xe09603){const _0x2e8775=_0x58a3d5;let _0x557f30=this[_0x2e8775(0x127)][_0x2e8775(0x118)](_0xe09603);if(_0x557f30)return _0x557f30[_0x2e8775(0x1a3)]();}[_0x58a3d5(0x157)](_0x3ddd61){const _0x70e2f4=_0x58a3d5;return this[_0x70e2f4(0x127)]['has'](_0x3ddd61);}[_0x58a3d5(0x128)](_0x3e6f17){const _0x2a91c6=_0x58a3d5;let _0x3fac13=this['_shapes'][_0x2a91c6(0x118)](_0x3e6f17);_0x3fac13&&(_0x48f6a6(_0x3fac13['getShapeType']())&&this[_0x2a91c6(0x136)][_0x2a91c6(0x15e)](_0x3e6f17),this[_0x2a91c6(0x127)]['delete'](_0x3e6f17));}[_0x58a3d5(0x11a)](){const _0x70328d=_0x58a3d5;let _0x2d74bc=[];return this['_shapes'][_0x70328d(0x197)](_0x18c60d=>{const _0x5db440=_0x70328d;_0x2d74bc[_0x5db440(0x19b)](_0x18c60d['toJSON']());}),_0x2d74bc;}[_0x58a3d5(0x1a4)](_0x1179ff){const _0x298f0d=_0x58a3d5;for(let _0x16edd1 of _0x1179ff){let {id:_0xcc37b,shapeType:_0x4d88e9}=_0x16edd1,_0x32991a=this[_0x298f0d(0x170)](_0x4d88e9,_0xcc37b,_0x16edd1['shapeData']);_0x32991a&&_0x32991a[_0x298f0d(0x16a)]()&&this['_linesIds'][_0x298f0d(0x159)](_0xcc37b);}}[_0x58a3d5(0x164)](){const _0x3ee3a1=_0x58a3d5;this[_0x3ee3a1(0x15f)]||(this[_0x3ee3a1(0x127)][_0x3ee3a1(0x197)](_0x670cd4=>{const _0xeaeea2=_0x3ee3a1;_0x670cd4[_0xeaeea2(0x164)]();}),this['_shapes'][_0x3ee3a1(0x15c)](),this[_0x3ee3a1(0x136)]['clear'](),this[_0x3ee3a1(0x12e)]['clear'](),super[_0x3ee3a1(0x164)]());}};function U(_0x559870,_0x1f613e){return function(_0x39b4c5,_0x27ed3a){_0x1f613e(_0x39b4c5,_0x27ed3a,_0x559870);};}function _0x41a1(){const _0x2c613a=['getShapeData','startX','2685078dgVzOY','_resourcesManagerService','UNIVER_SHEET','sheet.command.insert-shape','entries','REMOVE','rotation','getShapeDataById','shapeId','getAdjustNames','getBasicShapeRelation','getAdjustValueByName','sheet.mutation.remove-shape','width','getCellIndexAndOffsetByPosition','rotateEnabled','DRAWING_SHAPE','disposeWithMe','sheet.command.update-connector-relation','params','borderEnabled','string','hasShape','_ensureShapeModelManager','add','redos','_injector','clear','getBatchAddOp','delete','_disposed','prototype','sheet.mutation.update-shape-type','SHEET_SHAPE_PLUGIN','parse','dispose','getBasicShapeType','sheet.command.update-shape-type','sheet.command.set-shape-rotate','assign','_initCommands','isLineShape','version','worldRect','registerCommand','2230xVsNCA','object','addShape','left','11602536QiIUMl','pushUndoRedo','flipX','onStarting','preRedos','sin','6NeTblp','default','ensureSkeleton','_serializeShapeForUnit','cxnIndex','find','adjustValues','set','11260WgJvCf','getCellWithCoordByIndex','ang','setConfig','getBatchUpdateOp','onCommandExecute','getSkeleton','sheet.command.update-line-shape-resize','setShapeData','height','updateContext','cos','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','preUndos','_config','top','INSERT','resizeEnabled','undos','registerPluginResource','defineProperty','range','flipY','forEach','drawingType','_deserializeShapeForUnit','458642oRvcXz','push','10535651VLqhAZ','getDrawingByParam','_addLineRerouteUpdates','syncExecuteCommand','_configService','_shapeModelManagerMap','angle','getShapeType','fromJSON','getEndConnectInfo','from','getShapeTypeById','_initCommandInterceptor','keys','relation','lineType','0.20.0','isFrom','setShapeType','toPrimitive','_sheetsShapeService','packageName','lineShapeId','get','COMMAND','toJSON','insertShape','length','transform','constructor','UPDATE','function','MUTATION','_getConnectPointInfo','fill','getLineShapeRelation','getOwnPropertyDescriptor','_sheetInterceptorService','_shapes','removeShape','239940nRWTXr','_drawingManagerService','call','iterator','_sheetSkeletonService','_groupIds','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_commandService','_addLineFollowShapeUpdates','data','interceptCommand','getShapeModel','@univerjs-pro/sheets-shape','_linesIds','filter','getShapeRelation','getDrawingData','sheet.mutation.update-shape-data','type','symbol','50811498RpJsRH','position'];_0x41a1=function(){return _0x2c613a;};return _0x41a1();}function W(_0x488c15,_0x5ade47,_0x150f1,_0x599680){const _0x4928ee=_0x58a3d5;var _0x4dcca=arguments[_0x4928ee(0x11c)],_0x12ec85=_0x4dcca<0x3?_0x5ade47:_0x599680===null?_0x599680=Object[_0x4928ee(0x125)](_0x5ade47,_0x150f1):_0x599680,_0x1212da;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x12ec85=Reflect['decorate'](_0x488c15,_0x5ade47,_0x150f1,_0x599680);else{for(var _0x2f90e0=_0x488c15[_0x4928ee(0x11c)]-0x1;_0x2f90e0>=0x0;_0x2f90e0--)(_0x1212da=_0x488c15[_0x2f90e0])&&(_0x12ec85=(_0x4dcca<0x3?_0x1212da(_0x12ec85):_0x4dcca>0x3?_0x1212da(_0x5ade47,_0x150f1,_0x12ec85):_0x1212da(_0x5ade47,_0x150f1))||_0x12ec85);}return _0x4dcca>0x3&&_0x12ec85&&Object[_0x4928ee(0x194)](_0x5ade47,_0x150f1,_0x12ec85),_0x12ec85;}let G=class extends _0x3e2f6c{constructor(_0x961285){const _0x30c409=_0x58a3d5;super(),this[_0x30c409(0x142)]=_0x961285,V(this,_0x30c409(0x1a1),new Map()),this['_initSnapshot']();}[_0x58a3d5(0x158)](_0x49422b,_0x37703a){const _0x1ef6ae=_0x58a3d5;let _0x4a04c2=this['_shapeModelManagerMap'][_0x1ef6ae(0x118)](_0x49422b);_0x4a04c2||(_0x4a04c2=new Map(),this[_0x1ef6ae(0x1a1)][_0x1ef6ae(0x17f)](_0x49422b,_0x4a04c2));let _0x4ab132=_0x4a04c2[_0x1ef6ae(0x118)](_0x37703a);return _0x4ab132||(_0x4ab132=new H(),_0x4a04c2[_0x1ef6ae(0x17f)](_0x37703a,_0x4ab132)),_0x4ab132;}[_0x58a3d5(0x11b)](_0x9af8eb,_0x1c9d5b,_0x572276,_0x4de439,_0x3cf932){const _0x22a2af=_0x58a3d5;this['_ensureShapeModelManager'](_0x9af8eb,_0x1c9d5b)[_0x22a2af(0x170)](_0x572276,_0x4de439,_0x3cf932);}[_0x58a3d5(0x128)](_0x270a7e,_0x1da99f,_0x432df2){const _0x54630c=_0x58a3d5;this[_0x54630c(0x158)](_0x270a7e,_0x1da99f)[_0x54630c(0x128)](_0x432df2);}[_0x58a3d5(0x165)](_0x3c7eb4,_0x5ab07b,_0x31a1bc){const _0x223fb3=_0x58a3d5;return this[_0x223fb3(0x158)](_0x3c7eb4,_0x5ab07b)['getShapeType'](_0x31a1bc);}['getShapeType'](_0x4a9394,_0x35f4ed,_0x38cc43){const _0x171aee=_0x58a3d5;return this[_0x171aee(0x158)](_0x4a9394,_0x35f4ed)['getShapeType'](_0x38cc43);}['hasShape'](_0x1878a7,_0x21089f,_0x3d245a){const _0x1ef3d6=_0x58a3d5;return this['_ensureShapeModelManager'](_0x1878a7,_0x21089f)[_0x1ef3d6(0x157)](_0x3d245a);}[_0x58a3d5(0x1a7)](_0x5f45d8,_0x4f07a5,_0x47ea77){const _0x55acca=_0x58a3d5;return this[_0x55acca(0x158)](_0x5f45d8,_0x4f07a5)[_0x55acca(0x1a3)](_0x47ea77);}[_0x58a3d5(0x148)](_0x4d159f,_0x6d2921,_0x373634){const _0x46f9f3=_0x58a3d5;let _0x528d52=this['_ensureShapeModelManager'](_0x4d159f,_0x6d2921);if(!_0x528d52[_0x46f9f3(0x1a3)](_0x373634))return;let _0x3570fc=_0x528d52['_shapes'][_0x46f9f3(0x118)](_0x373634);if(_0x3570fc)return _0x3570fc[_0x46f9f3(0x13f)]();}[_0x58a3d5(0x134)](_0x493274,_0x234dd0,_0x496eec){const _0x405786=_0x58a3d5;return this['_ensureShapeModelManager'](_0x493274,_0x234dd0)[_0x405786(0x127)][_0x405786(0x118)](_0x496eec);}[_0x58a3d5(0x14b)](_0x55134c,_0x1b7ccf,_0x3ea867){const _0x197e70=_0x58a3d5;return this[_0x197e70(0x158)](_0x55134c,_0x1b7ccf)['getBasicShapeRelation'](_0x3ea867);}[_0x58a3d5(0x124)](_0x121091,_0x2d2733,_0x30ae20){const _0x85d744=_0x58a3d5;let _0x27ebf9=this['_ensureShapeModelManager'](_0x121091,_0x2d2733)[_0x85d744(0x127)]['get'](_0x30ae20);if(_0x27ebf9)return _0x27ebf9[_0x85d744(0x138)]();}[_0x58a3d5(0x113)](){}[_0x58a3d5(0x17b)](_0x440191){const _0x431f67=_0x58a3d5;let _0x24ee40={},_0xe696ca=this[_0x431f67(0x1a1)][_0x431f67(0x118)](_0x440191);return _0xe696ca&&_0xe696ca[_0x431f67(0x197)]((_0x38c56c,_0xaace2e)=>{const _0x35fc12=_0x431f67;let _0x455249=_0x38c56c[_0x35fc12(0x11a)]();_0x455249[_0x35fc12(0x11c)]>0x0&&(_0x24ee40[_0xaace2e]=_0x455249);}),JSON['stringify'](_0x24ee40);}['_deserializeShapeForUnit'](_0x143d8d,_0x4b31dd){const _0x53d142=_0x58a3d5;Object[_0x53d142(0x10e)](_0x4b31dd)['forEach'](_0x387283=>{const _0x478352=_0x53d142;this[_0x478352(0x158)](_0x143d8d,_0x387283)[_0x478352(0x1a4)](_0x4b31dd[_0x387283]);});}[_0x58a3d5(0x11a)](){const _0x225d97=_0x58a3d5;let _0x4f8495={};return this[_0x225d97(0x1a1)][_0x225d97(0x197)]((_0x43ff1e,_0x1c218d)=>{const _0x32c685=_0x225d97;_0x4f8495[_0x1c218d]={},_0x43ff1e[_0x32c685(0x197)]((_0x453256,_0x2e110e)=>{const _0x287c30=_0x32c685;_0x4f8495[_0x1c218d][_0x2e110e]=_0x453256[_0x287c30(0x11a)]();});}),_0x4f8495;}[_0x58a3d5(0x1a4)](_0x1350ae){const _0x450c60=_0x58a3d5;Object[_0x450c60(0x10e)](_0x1350ae)[_0x450c60(0x197)](_0x1f1fc2=>{const _0x4e1158=_0x450c60;let _0x290771=_0x1350ae[_0x1f1fc2];Object['keys'](_0x290771)[_0x4e1158(0x197)](_0x14231b=>{const _0xec017d=_0x4e1158;this[_0xec017d(0x158)](_0x1f1fc2,_0x14231b)[_0xec017d(0x1a4)](_0x290771[_0x14231b]);});});}['_initSnapshot'](){const _0x55433b=_0x58a3d5;this[_0x55433b(0x142)][_0x55433b(0x193)]({'pluginName':_0x55433b(0x162),'businesses':[_0x3a3817['UNIVER_SHEET']],'toJson':_0x4a0def=>this[_0x55433b(0x17b)](_0x4a0def),'parseJson':_0x1b09c8=>JSON[_0x55433b(0x163)](_0x1b09c8),'onLoad':(_0x237f84,_0x3d1b7e)=>{const _0x1bbf76=_0x55433b;this[_0x1bbf76(0x199)](_0x237f84,_0x3d1b7e);},'onUnLoad':_0x1c45a2=>{const _0x5f5b5d=_0x55433b;let _0x302f87=this[_0x5f5b5d(0x1a1)][_0x5f5b5d(0x118)](_0x1c45a2);_0x302f87&&(_0x302f87[_0x5f5b5d(0x197)](_0x44c1a2=>{const _0x153b9e=_0x5f5b5d;_0x44c1a2[_0x153b9e(0x164)]();}),this['_shapeModelManagerMap'][_0x5f5b5d(0x15e)](_0x1c45a2));}});}[_0x58a3d5(0x164)](){const _0xf8fa91=_0x58a3d5;this[_0xf8fa91(0x1a1)][_0xf8fa91(0x197)](_0x2e2f87=>{const _0x5e14d4=_0xf8fa91;_0x2e2f87[_0x5e14d4(0x197)](_0x16b82b=>{const _0xcdca50=_0x5e14d4;_0x16b82b[_0xcdca50(0x164)]();});});}};G=W([U(0x0,_0x58972f)],G);const K={'id':'sheet.mutation.insert-shape','type':_0x2518e2['MUTATION'],'handler':(_0x19d78c,_0x2b7e49)=>{let {unitId:_0x1b464d,subUnitId:_0x421d66,shapeType:_0x35e30a,shapeId:_0x32c470,shapeData:_0x1b75a2}=_0x2b7e49;return _0x19d78c['get'](G)['insertShape'](_0x1b464d,_0x421d66,_0x35e30a,_0x32c470,_0x1b75a2),!0x0;}},q={'id':_0x58a3d5(0x14d),'type':_0x2518e2[_0x58a3d5(0x121)],'handler':(_0x420c51,_0x3879b4)=>{const _0x2fe685=_0x58a3d5;let {unitId:_0x747947,subUnitId:_0x160d2b,shapeId:_0xb69999}=_0x3879b4;return _0x420c51[_0x2fe685(0x118)](G)[_0x2fe685(0x128)](_0x747947,_0x160d2b,_0xb69999),!0x0;}},J={'type':_0x2518e2['COMMAND'],'id':_0x58a3d5(0x144),'handler':(_0x5e6221,_0x44d8d8)=>{const _0x2ec394=_0x58a3d5;var _0x400e38,_0xb22f4a;let _0xa7b70d=_0x282dcd(_0x5e6221['get'](_0x53c869),_0x44d8d8);if(!_0xa7b70d)return!0x1;let _0x375dad=_0x5e6221[_0x2ec394(0x118)](_0x1515ae),{unitId:_0x16aac0,subUnitId:_0x155ed0}=_0xa7b70d,_0x561e37=_0x375dad[_0x2ec394(0x17a)](_0x16aac0,_0x155ed0);if(!_0x561e37)return!0x1;let _0x437f35=_0x5e6221[_0x2ec394(0x118)](_0x24fd18),_0x600420=_0x5e6221[_0x2ec394(0x118)](_0xc84305),_0x2cd723=_0x5e6221['get'](_0x7a4d09),_0x31ee62=_0x5e6221['get'](_0x17ec86),{shapeType:_0x43c9af,shapeData:_0x4bbfd9}=_0x44d8d8,_0x178e35=_0x44d8d8[_0x2ec394(0x149)]||_0x501d12(),_0x1379c9={'unitId':_0x16aac0,'subUnitId':_0x155ed0,'shapeId':_0x178e35,'shapeType':_0x43c9af,'shapeData':_0x4bbfd9},_0x27838f=_0x44d8d8[_0x2ec394(0x14e)]||0xc8,_0x281804=_0x44d8d8['height']||0xc8,_0x185c73=0x0,_0x4bf671=0x0,_0x206221={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x4b5eed={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x44d8d8[_0x2ec394(0x13e)]){let {x:_0x58ec93,y:_0x3e4bbc}=_0x44d8d8[_0x2ec394(0x13e)];_0x185c73=_0x58ec93,_0x4bf671=_0x3e4bbc,_0x206221=_0x561e37['getCellIndexAndOffsetByPosition'](_0x58ec93,_0x3e4bbc),_0x4b5eed=_0x561e37[_0x2ec394(0x14f)](_0x58ec93+_0x27838f,_0x3e4bbc+_0x281804);}else{if(_0x44d8d8[_0x2ec394(0x195)]){let {startRow:_0x1e139d,startColumn:_0x530684}=_0x44d8d8[_0x2ec394(0x195)];_0x206221={'row':_0x1e139d,'rowOffset':0xa,'column':_0x530684,'columnOffset':0xa};let _0x59a8f9=_0x561e37[_0x2ec394(0x181)](_0x1e139d,_0x530684);_0x185c73=_0x59a8f9[_0x2ec394(0x140)]+0xa,_0x4bf671=_0x59a8f9['startY']+0xa,_0x4b5eed=_0x561e37[_0x2ec394(0x14f)](_0x185c73+_0x27838f,_0x4bf671+_0x281804);}}let _0x2e95be={'from':_0x206221,'to':_0x4b5eed},_0x21f4b8={'unitId':_0x16aac0,'subUnitId':_0x155ed0,'drawingId':_0x178e35,'drawingType':_0x29ca4c[_0x2ec394(0x151)],'sheetTransform':_0x2e95be,'transform':{'left':_0x185c73,'top':_0x4bf671,'width':_0x27838f,'height':_0x281804},'data':{'shapeType':_0x43c9af,'shapeData':_0x4bbfd9},'axisAlignSheetTransform':_0x2e95be,'allowTransform':!0x0};_0x48f6a6(_0x43c9af)&&(_0x21f4b8[_0x2ec394(0x132)]['fill']=!0x1,_0x21f4b8['data'][_0x2ec394(0x150)]=!0x1,_0x21f4b8['data'][_0x2ec394(0x191)]=!0x1,_0x21f4b8[_0x2ec394(0x132)][_0x2ec394(0x155)]=!0x1,_0x21f4b8[_0x2ec394(0x11d)][_0x2ec394(0x150)]=!0x1,_0x21f4b8[_0x2ec394(0x11d)]['resizeEnabled']=!0x1,_0x21f4b8[_0x2ec394(0x11d)][_0x2ec394(0x155)]=!0x1);let {undo:_0x256435,redo:_0x4032cc,objects:_0x4419d6}=_0x31ee62[_0x2ec394(0x15d)]([_0x21f4b8]),_0x4da468=_0x2cd723['onCommandExecute']({'id':_0x3694da['id'],'params':{'unitId':_0x16aac0,'drawings':[_0x21f4b8]}}),_0x46a1ee=[...(_0x400e38=_0x4da468[_0x2ec394(0x176)])==null?[]:_0x400e38,{'id':_0x3e02e5['id'],'params':{'unitId':_0x16aac0,'subUnitId':_0x155ed0,'op':_0x4032cc,'objects':_0x4419d6,'type':_0xafe5b9[_0x2ec394(0x190)]}},{'id':_0x10a6b0['id'],'params':[_0x16aac0]},..._0x4da468[_0x2ec394(0x15a)],{'id':K['id'],'params':_0x1379c9}],_0x4906ab=[{'id':q['id'],'params':{'unitId':_0x16aac0,'subUnitId':_0x155ed0,'shapeId':_0x178e35}},...(_0xb22f4a=_0x4da468[_0x2ec394(0x18d)])==null?[]:_0xb22f4a,{'id':_0x3e02e5['id'],'params':{'unitId':_0x16aac0,'subUnitId':_0x155ed0,'op':_0x256435,'objects':_0x4419d6,'type':_0xafe5b9[_0x2ec394(0x146)]}},{'id':_0x10a6b0['id'],'params':[_0x16aac0]},..._0x4da468['undos']];return _0x46e0d2(_0x46a1ee,_0x437f35)?(_0x600420[_0x2ec394(0x173)]({'unitID':_0x16aac0,'undoMutations':_0x4906ab,'redoMutations':_0x46a1ee}),!0x0):!0x1;}},Y={'id':_0x58a3d5(0x13a),'type':_0x2518e2[_0x58a3d5(0x121)],'handler':(_0x281a99,_0x4b3742)=>{const _0x44cb7c=_0x58a3d5;let {unitId:_0x4d06d,subUnitId:_0x1b0d28,shapeType:_0x2d40b2,shapeId:_0x3d19cc,shapeData:_0x1be5bd}=_0x4b3742,_0xaa7416=_0x281a99[_0x44cb7c(0x118)](G)['getShapeModel'](_0x4d06d,_0x1b0d28,_0x3d19cc);return _0xaa7416&&(_0x2d40b2!==void 0x0&&_0xaa7416[_0x44cb7c(0x113)](_0x2d40b2),_0x1be5bd&&(_0xaa7416==null||_0xaa7416['setShapeData'](_0x1be5bd,!0x0))),!0x0;}},ee={'type':_0x2518e2[_0x58a3d5(0x119)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x3e6b0f,_0x39bdee)=>{const _0x48ff1b=_0x58a3d5;var _0x44dcf5,_0x470d3e;let _0x2c35df=_0x282dcd(_0x3e6b0f['get'](_0x53c869),_0x39bdee);if(!_0x2c35df)return!0x1;let _0x1c97f9=_0x3e6b0f[_0x48ff1b(0x118)](_0x1515ae),{unitId:_0x418c92,subUnitId:_0x329748}=_0x2c35df,_0x2e8375=_0x1c97f9[_0x48ff1b(0x17a)](_0x418c92,_0x329748);if(!_0x2e8375)return!0x1;let _0x5d3092=_0x3e6b0f[_0x48ff1b(0x118)](G),{shapeId:_0x1f23a9,shapeType:_0x59ea5a,shapeData:_0x1ab06f,position:_0x3f44ce,width:_0x1dd5e0,height:_0x2f8766}=_0x39bdee,_0x192a93=_0x5d3092[_0x48ff1b(0x134)](_0x418c92,_0x329748,_0x1f23a9);if(!_0x192a93)return!0x1;let _0x5a7c8d=_0x3e6b0f[_0x48ff1b(0x118)](_0x24fd18),_0x1efd10=_0x3e6b0f[_0x48ff1b(0x118)](_0xc84305),_0x62b312=_0x3e6b0f[_0x48ff1b(0x118)](_0x7a4d09),_0x1abf3f=_0x3e6b0f[_0x48ff1b(0x118)](_0x17ec86),_0x33bcf8={'unitId':_0x418c92,'subUnitId':_0x329748,'shapeId':_0x1f23a9,'shapeType':_0x59ea5a,'shapeData':_0x1ab06f},_0x18aaa4=_0x192a93[_0x48ff1b(0x1a3)](),_0x78f988=_0x192a93[_0x48ff1b(0x13f)](),{x:_0x3f1894,y:_0x54d4a9}=_0x3f44ce,_0x4e6cb4={'from':_0x2e8375[_0x48ff1b(0x14f)](_0x3f1894,_0x54d4a9),'to':_0x2e8375['getCellIndexAndOffsetByPosition'](_0x3f1894+_0x1dd5e0,_0x54d4a9+_0x2f8766)},_0x1faf60={'unitId':_0x418c92,'subUnitId':_0x329748,'drawingId':_0x1f23a9,'drawingType':_0x29ca4c[_0x48ff1b(0x151)],'sheetTransform':_0x4e6cb4,'transform':{'left':_0x3f1894,'top':_0x54d4a9,'width':_0x1dd5e0,'height':_0x2f8766},'data':{'shapeType':_0x59ea5a,'shapeData':_0x1ab06f},'axisAlignSheetTransform':_0x4e6cb4,'allowTransform':!0x0};_0x48f6a6(_0x59ea5a)&&(_0x1faf60[_0x48ff1b(0x132)][_0x48ff1b(0x123)]=!0x1,_0x1faf60['data']['rotateEnabled']=!0x1,_0x1faf60[_0x48ff1b(0x132)][_0x48ff1b(0x191)]=!0x1,_0x1faf60[_0x48ff1b(0x132)][_0x48ff1b(0x155)]=!0x1,_0x1faf60[_0x48ff1b(0x11d)][_0x48ff1b(0x150)]=!0x1,_0x1faf60[_0x48ff1b(0x11d)]['resizeEnabled']=!0x1,_0x1faf60['transform']['borderEnabled']=!0x1);let {undo:_0xbf21a5,redo:_0x53fb3d,objects:_0x2360a1}=_0x1abf3f[_0x48ff1b(0x184)]([_0x1faf60]),_0xa21a60=_0x62b312[_0x48ff1b(0x185)]({'id':_0x2d8360['id'],'params':{'unitId':_0x418c92,'drawings':[_0x1faf60]}}),_0x566dcb=[...(_0x44dcf5=_0xa21a60[_0x48ff1b(0x176)])==null?[]:_0x44dcf5,{'id':_0x3e02e5['id'],'params':{'unitId':_0x418c92,'subUnitId':_0x329748,'op':_0x53fb3d,'objects':_0x2360a1,'type':_0xafe5b9[_0x48ff1b(0x11f)]}},{'id':_0x10a6b0['id'],'params':[_0x418c92]},..._0xa21a60[_0x48ff1b(0x15a)],{'id':Y['id'],'params':_0x33bcf8}],_0x1390cf=[...(_0x470d3e=_0xa21a60[_0x48ff1b(0x18d)])==null?[]:_0x470d3e,{'id':_0x3e02e5['id'],'params':{'unitId':_0x418c92,'subUnitId':_0x329748,'op':_0xbf21a5,'objects':_0x2360a1,'type':_0xafe5b9[_0x48ff1b(0x11f)]}},{'id':_0x10a6b0['id'],'params':[_0x418c92]},..._0xa21a60[_0x48ff1b(0x192)],{'id':Y['id'],'params':{'unitId':_0x418c92,'subUnitId':_0x329748,'shapeType':_0x18aaa4,'shapeId':_0x1f23a9,'shapeData':_0x78f988}}];return _0x46e0d2(_0x566dcb,_0x5a7c8d)?(_0x1efd10[_0x48ff1b(0x173)]({'unitID':_0x418c92,'undoMutations':_0x1390cf,'redoMutations':_0x566dcb}),!0x0):!0x1;}},te={'type':_0x2518e2[_0x58a3d5(0x119)],'id':'sheet.command.toggle-shape-flip','handler':(_0x51aa23,_0x2c7499)=>{const _0x233b40=_0x58a3d5;var _0x75ea29,_0x5d4a70;let _0x60bf76=_0x282dcd(_0x51aa23['get'](_0x53c869),_0x2c7499);if(!_0x60bf76)return!0x1;let _0x1fd10e=_0x51aa23['get'](_0x1515ae),{unitId:_0x31fa13,subUnitId:_0xb04e41}=_0x60bf76,_0x478042=_0x1fd10e['getSkeleton'](_0x31fa13,_0xb04e41);if(!_0x478042)return!0x1;let _0x1595ea=_0x51aa23[_0x233b40(0x118)](_0x17ec86),{shapeId:_0x4883c,flipH:_0x311a2e,flipV:_0x3b26ff}=_0x2c7499,_0x29abe7=_0x1595ea['getDrawingByParam']({'unitId':_0x31fa13,'subUnitId':_0xb04e41,'drawingId':_0x4883c});if(!_0x29abe7)return!0x1;let _0x289685=_0x51aa23[_0x233b40(0x118)](G)[_0x233b40(0x134)](_0x31fa13,_0xb04e41,_0x4883c);if(!_0x289685)return!0x1;let _0x22a9eb=_0x51aa23[_0x233b40(0x118)](_0x24fd18),_0x3d6a77=_0x51aa23[_0x233b40(0x118)](_0xc84305),_0x16ba43=_0x51aa23[_0x233b40(0x118)](_0x7a4d09),_0x210f56={..._0x29abe7[_0x233b40(0x11d)]};_0x311a2e!==void 0x0&&(_0x210f56['flipX']=!_0x210f56[_0x233b40(0x174)]),_0x3b26ff!==void 0x0&&(_0x210f56[_0x233b40(0x196)]=!_0x210f56[_0x233b40(0x196)]);let _0x1ab517=_0x5d28ad(_0x210f56,_0x478042),_0x2c462b=_0xc67ff1(_0x210f56,_0x478042),_0x407f4e=_0x289685[_0x233b40(0x1a3)](),_0x120e6c=_0x289685['getShapeData'](),_0x526f66={'unitId':_0x31fa13,'subUnitId':_0xb04e41,'drawingId':_0x4883c,'drawingType':_0x29ca4c[_0x233b40(0x151)],'sheetTransform':_0x1ab517,'transform':_0x210f56,'data':{'shapeType':_0x407f4e,'shapeData':_0x120e6c},'axisAlignSheetTransform':_0x2c462b,'allowTransform':!0x0},{undo:_0x56343e,redo:_0x147db6,objects:_0x3bf05f}=_0x1595ea[_0x233b40(0x184)]([_0x526f66]),_0x49aa33=_0x16ba43[_0x233b40(0x185)]({'id':_0x2d8360['id'],'params':{'unitId':_0x31fa13,'drawings':[_0x526f66]}}),_0x232170=[...(_0x75ea29=_0x49aa33[_0x233b40(0x176)])==null?[]:_0x75ea29,{'id':_0x3e02e5['id'],'params':{'unitId':_0x31fa13,'subUnitId':_0xb04e41,'op':_0x147db6,'objects':_0x3bf05f,'type':_0xafe5b9[_0x233b40(0x11f)]}},{'id':_0x10a6b0['id'],'params':[_0x31fa13]},..._0x49aa33[_0x233b40(0x15a)]],_0x23d1dd=[...(_0x5d4a70=_0x49aa33[_0x233b40(0x18d)])==null?[]:_0x5d4a70,{'id':_0x3e02e5['id'],'params':{'unitId':_0x31fa13,'subUnitId':_0xb04e41,'op':_0x56343e,'objects':_0x3bf05f,'type':_0xafe5b9['UPDATE']}},{'id':_0x10a6b0['id'],'params':[_0x31fa13]},..._0x49aa33[_0x233b40(0x192)]];if(_0x48f6a6(_0x407f4e)){let _0x4c52d6=_0x289685[_0x233b40(0x138)]();if(_0x4c52d6){let _0x2645f7={..._0x4c52d6};_0x2645f7['from']=void 0x0,_0x2645f7['to']=void 0x0,_0x232170[_0x233b40(0x19b)]({'id':Y['id'],'params':{'unitId':_0x31fa13,'subUnitId':_0xb04e41,'shapeId':_0x4883c,'shapeType':_0x407f4e,'shapeData':{'relation':_0x2645f7}}}),_0x23d1dd['push']({'id':Y['id'],'params':{'unitId':_0x31fa13,'subUnitId':_0xb04e41,'shapeId':_0x4883c,'shapeType':_0x407f4e,'shapeData':{'relation':_0x4c52d6}}});}}return _0x46e0d2(_0x232170,_0x22a9eb)?(_0x3d6a77[_0x233b40(0x173)]({'unitID':_0x31fa13,'undoMutations':_0x23d1dd,'redoMutations':_0x232170}),!0x0):!0x1;}},X={'type':_0x2518e2[_0x58a3d5(0x119)],'id':_0x58a3d5(0x167),'handler':(_0x119202,_0x36677f)=>{const _0xc522e5=_0x58a3d5;var _0x468404,_0x8458de;let _0x1d43b7=_0x282dcd(_0x119202['get'](_0x53c869),_0x36677f);if(!_0x1d43b7)return!0x1;let _0x430c76=_0x119202[_0xc522e5(0x118)](_0x1515ae),{unitId:_0x26651f,subUnitId:_0x39229b}=_0x1d43b7,_0x694e78=_0x430c76[_0xc522e5(0x186)](_0x26651f,_0x39229b);if(!_0x694e78)return!0x1;let _0x249b40=_0x119202[_0xc522e5(0x118)](_0x17ec86),{shapeId:_0x520773,rotate:_0x1df3af}=_0x36677f,_0x2f84cc=_0x249b40[_0xc522e5(0x19d)]({'unitId':_0x26651f,'subUnitId':_0x39229b,'drawingId':_0x520773});if(!_0x2f84cc)return!0x1;let _0x3ec19e=_0x119202[_0xc522e5(0x118)](G)[_0xc522e5(0x134)](_0x26651f,_0x39229b,_0x520773);if(!_0x3ec19e)return!0x1;let _0x564489=_0x119202['get'](_0x24fd18),_0x1414a5=_0x119202[_0xc522e5(0x118)](_0xc84305),_0x5e1cc5=_0x119202[_0xc522e5(0x118)](_0x7a4d09),_0x31d0c0={..._0x2f84cc[_0xc522e5(0x11d)]};_0x1df3af!==void 0x0&&(_0x31d0c0[_0xc522e5(0x1a2)]=(_0x31d0c0['angle']||0x0)+_0x1df3af);let _0x314c1d=_0x5d28ad(_0x31d0c0,_0x694e78),_0x568c12=_0xc67ff1(_0x31d0c0,_0x694e78),_0x3ba1c0=_0x3ec19e[_0xc522e5(0x1a3)](),_0x5594a2=_0x3ec19e['getShapeData'](),_0x5e1fb5={'unitId':_0x26651f,'subUnitId':_0x39229b,'drawingId':_0x520773,'drawingType':_0x29ca4c[_0xc522e5(0x151)],'sheetTransform':_0x314c1d,'transform':_0x31d0c0,'data':{'shapeType':_0x3ba1c0,'shapeData':_0x5594a2},'axisAlignSheetTransform':_0x568c12,'allowTransform':!0x0},{undo:_0x1065c3,redo:_0x22a394,objects:_0x37adfd}=_0x249b40['getBatchUpdateOp']([_0x5e1fb5]),_0x5dbd29=_0x5e1cc5[_0xc522e5(0x185)]({'id':_0x2d8360['id'],'params':{'unitId':_0x26651f,'drawings':[_0x5e1fb5]}}),_0x2310e0=[...(_0x468404=_0x5dbd29[_0xc522e5(0x176)])==null?[]:_0x468404,{'id':_0x3e02e5['id'],'params':{'unitId':_0x26651f,'subUnitId':_0x39229b,'op':_0x22a394,'objects':_0x37adfd,'type':_0xafe5b9[_0xc522e5(0x11f)]}},{'id':_0x10a6b0['id'],'params':[_0x26651f]},..._0x5dbd29[_0xc522e5(0x15a)]],_0x4a3a7d=[...(_0x8458de=_0x5dbd29['preUndos'])==null?[]:_0x8458de,{'id':_0x3e02e5['id'],'params':{'unitId':_0x26651f,'subUnitId':_0x39229b,'op':_0x1065c3,'objects':_0x37adfd,'type':_0xafe5b9[_0xc522e5(0x11f)]}},{'id':_0x10a6b0['id'],'params':[_0x26651f]},..._0x5dbd29[_0xc522e5(0x192)]];return _0x46e0d2(_0x2310e0,_0x564489)?(_0x1414a5[_0xc522e5(0x173)]({'unitID':_0x26651f,'undoMutations':_0x4a3a7d,'redoMutations':_0x2310e0}),!0x0):!0x1;}},Z={'type':_0x2518e2[_0x58a3d5(0x119)],'id':_0x58a3d5(0x153),'handler':(_0x49c66c,_0x54e104)=>{const _0x29981e=_0x58a3d5;var _0x284545,_0x116890,_0x310128,_0x2a61c7;let _0xff931c=_0x282dcd(_0x49c66c[_0x29981e(0x118)](_0x53c869),_0x54e104);if(!_0xff931c)return!0x1;let _0x1e223f=_0x49c66c['get'](_0x1515ae),{unitId:_0x522cab,subUnitId:_0x3b9d7e}=_0xff931c,_0x5d023e=_0x1e223f[_0x29981e(0x186)](_0x522cab,_0x3b9d7e);if(!_0x5d023e)return!0x1;let _0x3ef353=_0x49c66c[_0x29981e(0x118)](_0x17ec86),{connectorShapeId:_0x4839cd,width:_0x46eafb,height:_0x58a9fa,left:_0x2d15fc,top:_0x53be00,flipX:_0x154ee8,flipY:_0x3617d3,rotation:_0x376faf,oldAdjustValues:_0x170058,newAdjustValues:_0x247940,oldLineType:_0x15d384,newLineType:_0x3c42e6,oldRelation:_0x52731f,newRelation:_0x58586d}=_0x54e104,_0x599046=_0x3ef353[_0x29981e(0x19d)]({'unitId':_0x522cab,'subUnitId':_0x3b9d7e,'drawingId':_0x4839cd});if(!_0x599046)return!0x1;let _0x274cf0=_0x49c66c[_0x29981e(0x118)](G)[_0x29981e(0x134)](_0x522cab,_0x3b9d7e,_0x4839cd);if(!_0x274cf0)return!0x1;let _0x22a54a=_0x49c66c['get'](_0x24fd18),_0x362417=_0x49c66c[_0x29981e(0x118)](_0xc84305),_0x51c38b=_0x49c66c[_0x29981e(0x118)](_0x7a4d09),_0x48d1f3={..._0x599046[_0x29981e(0x11d)],'width':_0x46eafb,'height':_0x58a9fa,'left':_0x2d15fc,'top':_0x53be00,'flipX':_0x154ee8,'flipY':_0x3617d3,'angle':(_0x284545=_0x376faf==null?(_0x116890=_0x599046[_0x29981e(0x11d)])==null?void 0x0:_0x116890['angle']:_0x376faf)==null?0x0:_0x284545},_0x1ec7fb=_0x5d28ad(_0x48d1f3,_0x5d023e),_0x5c6315=_0xc67ff1(_0x48d1f3,_0x5d023e),_0x290d97=_0x274cf0['getShapeType'](),_0x528c80=_0x274cf0[_0x29981e(0x13f)](),_0x2f4b57={'unitId':_0x522cab,'subUnitId':_0x3b9d7e,'drawingId':_0x4839cd,'drawingType':_0x29ca4c['DRAWING_SHAPE'],'sheetTransform':_0x1ec7fb,'transform':_0x48d1f3,'data':{'shapeType':_0x3c42e6||_0x15d384||_0x290d97,'shapeData':{..._0x528c80,'adjustValues':_0x247940||_0x170058||(_0x528c80==null?void 0x0:_0x528c80[_0x29981e(0x17e)]),'relation':_0x58586d||_0x52731f||(_0x528c80==null?void 0x0:_0x528c80['relation'])}},'axisAlignSheetTransform':_0x5c6315,'allowTransform':!0x0},{undo:_0x59bf6c,redo:_0x1739be,objects:_0x152a17}=_0x3ef353[_0x29981e(0x184)]([_0x2f4b57]),_0x903d94=_0x51c38b[_0x29981e(0x185)]({'id':_0x2d8360['id'],'params':{'unitId':_0x522cab,'drawings':[_0x2f4b57]}}),_0xc88e7a=[...(_0x310128=_0x903d94[_0x29981e(0x176)])==null?[]:_0x310128,{'id':_0x3e02e5['id'],'params':{'unitId':_0x522cab,'subUnitId':_0x3b9d7e,'op':_0x1739be,'objects':_0x152a17,'type':_0xafe5b9[_0x29981e(0x11f)]}},{'id':_0x10a6b0['id'],'params':[_0x522cab]},..._0x903d94[_0x29981e(0x15a)],{'id':Y['id'],'params':{'unitId':_0x522cab,'subUnitId':_0x3b9d7e,'shapeId':_0x4839cd,'shapeType':_0x3c42e6,'shapeData':{'adjustValues':_0x247940,'relation':_0x58586d}}}],_0x32d0cf=[...(_0x2a61c7=_0x903d94['preUndos'])==null?[]:_0x2a61c7,{'id':_0x3e02e5['id'],'params':{'unitId':_0x522cab,'subUnitId':_0x3b9d7e,'op':_0x59bf6c,'objects':_0x152a17,'type':_0xafe5b9[_0x29981e(0x11f)]}},{'id':_0x10a6b0['id'],'params':[_0x522cab]},..._0x903d94[_0x29981e(0x192)],{'id':Y['id'],'params':{'unitId':_0x522cab,'subUnitId':_0x3b9d7e,'shapeId':_0x4839cd,'shapeType':_0x290d97,'shapeData':{..._0x528c80,'adjustValues':_0x170058||(_0x528c80==null?void 0x0:_0x528c80[_0x29981e(0x17e)]),'relation':_0x52731f||(_0x528c80==null?void 0x0:_0x528c80[_0x29981e(0x10f)])}}}];return _0x46e0d2(_0xc88e7a,_0x22a54a)?(_0x362417[_0x29981e(0x173)]({'unitID':_0x522cab,'undoMutations':_0x32d0cf,'redoMutations':_0xc88e7a}),!0x0):!0x1;}},ne={'type':_0x2518e2[_0x58a3d5(0x119)],'id':_0x58a3d5(0x187),'handler':(_0x18546f,_0x1c9b5c)=>{const _0x33b8c3=_0x58a3d5;var _0x5ba75f,_0x7c5829;let _0x404e88=_0x282dcd(_0x18546f[_0x33b8c3(0x118)](_0x53c869),_0x1c9b5c);if(!_0x404e88)return!0x1;let _0xe43e4b=_0x18546f[_0x33b8c3(0x118)](_0x1515ae),{unitId:_0x477b86,subUnitId:_0x2209f1}=_0x404e88,_0x5886e6=_0xe43e4b['getSkeleton'](_0x477b86,_0x2209f1);if(!_0x5886e6)return!0x1;let _0x3d14ae=_0x18546f['get'](_0x17ec86),{shapeId:_0x587228,width:_0x301f31,height:_0x1f0b98,left:_0x113e14,top:_0xe97a36,flipX:_0x4a3fc1,flipY:_0x1bc0bc,angle:_0x36be41,oldAdjustValues:_0x2d7946,newAdjustValues:_0x32c347,oldLineType:_0x52eedb,newLineType:_0x2c82bf}=_0x1c9b5c,_0xadb785=_0x3d14ae[_0x33b8c3(0x19d)]({'unitId':_0x477b86,'subUnitId':_0x2209f1,'drawingId':_0x587228});if(!_0xadb785)return!0x1;let _0x23f626=_0x18546f['get'](G)[_0x33b8c3(0x134)](_0x477b86,_0x2209f1,_0x587228);if(!_0x23f626)return!0x1;let _0x58ea63=_0x18546f[_0x33b8c3(0x118)](_0x24fd18),_0x2803d8=_0x18546f['get'](_0xc84305),_0x40ba97=_0x18546f[_0x33b8c3(0x118)](_0x7a4d09),_0xf4dfab={..._0xadb785[_0x33b8c3(0x11d)],'width':_0x301f31,'height':_0x1f0b98,'left':_0x113e14,'top':_0xe97a36,'flipX':_0x4a3fc1,'flipY':_0x1bc0bc,'angle':_0x36be41},_0x307fae=_0x5d28ad(_0xf4dfab,_0x5886e6),_0x47115d=_0xc67ff1(_0xf4dfab,_0x5886e6),_0x4b6508=_0x23f626[_0x33b8c3(0x1a3)](),_0x584b94=_0x23f626[_0x33b8c3(0x13f)](),_0x544644={'unitId':_0x477b86,'subUnitId':_0x2209f1,'drawingId':_0x587228,'drawingType':_0x29ca4c[_0x33b8c3(0x151)],'sheetTransform':_0x307fae,'transform':_0xf4dfab,'data':{'shapeType':_0x2c82bf||_0x52eedb||_0x4b6508,'shapeData':{..._0x584b94,'adjustValues':_0x32c347||_0x2d7946||(_0x584b94==null?void 0x0:_0x584b94[_0x33b8c3(0x17e)])}},'axisAlignSheetTransform':_0x47115d,'allowTransform':!0x0},{undo:_0x5c3d8b,redo:_0x23495e,objects:_0x4c15ec}=_0x3d14ae[_0x33b8c3(0x184)]([_0x544644]),_0x410c5f=_0x40ba97[_0x33b8c3(0x185)]({'id':_0x2d8360['id'],'params':{'unitId':_0x477b86,'drawings':[_0x544644]}}),_0x194187=[...(_0x5ba75f=_0x410c5f[_0x33b8c3(0x176)])==null?[]:_0x5ba75f,{'id':_0x3e02e5['id'],'params':{'unitId':_0x477b86,'subUnitId':_0x2209f1,'op':_0x23495e,'objects':_0x4c15ec,'type':_0xafe5b9['UPDATE']}},{'id':_0x10a6b0['id'],'params':[_0x477b86]},..._0x410c5f[_0x33b8c3(0x15a)],{'id':Y['id'],'params':{'unitId':_0x477b86,'subUnitId':_0x2209f1,'shapeId':_0x587228,'shapeType':_0x2c82bf,'shapeData':{'adjustValues':_0x32c347}}}],_0x4d8fd9=[...(_0x7c5829=_0x410c5f[_0x33b8c3(0x18d)])==null?[]:_0x7c5829,{'id':_0x3e02e5['id'],'params':{'unitId':_0x477b86,'subUnitId':_0x2209f1,'op':_0x5c3d8b,'objects':_0x4c15ec,'type':_0xafe5b9[_0x33b8c3(0x11f)]}},{'id':_0x10a6b0['id'],'params':[_0x477b86]},..._0x410c5f['undos'],{'id':Y['id'],'params':{'unitId':_0x477b86,'subUnitId':_0x2209f1,'shapeId':_0x587228,'shapeType':_0x4b6508,'shapeData':{..._0x584b94,'adjustValues':_0x2d7946||(_0x584b94==null?void 0x0:_0x584b94['adjustValues'])}}}];return _0x46e0d2(_0x194187,_0x58ea63)?(_0x2803d8['pushUndoRedo']({'unitID':_0x477b86,'undoMutations':_0x4d8fd9,'redoMutations':_0x194187}),!0x0):!0x1;}},Q={'id':_0x58a3d5(0x161),'type':_0x2518e2[_0x58a3d5(0x121)],'handler':(_0x3eab56,_0x263575)=>{const _0x4a487f=_0x58a3d5;let {unitId:_0x539cf2,subUnitId:_0x6a7e65,shapeType:_0x18e9c8,shapeId:_0x3afbcb,shapeData:_0x237828}=_0x263575,_0x5e6f77=_0x3eab56[_0x4a487f(0x118)](G)[_0x4a487f(0x134)](_0x539cf2,_0x6a7e65,_0x3afbcb);return _0x5e6f77&&(_0x5e6f77['setShapeType'](_0x18e9c8),_0x237828&&(_0x5e6f77==null||_0x5e6f77[_0x4a487f(0x188)](_0x237828))),!0x0;}},re={'id':_0x58a3d5(0x166),'type':_0x2518e2[_0x58a3d5(0x119)],'handler':(_0xfcb1ee,_0x359de5)=>{const _0x29938a=_0x58a3d5;if(!_0x359de5)return!0x1;let _0x259422=_0xfcb1ee[_0x29938a(0x118)](_0x24fd18),_0x49fea7=_0xfcb1ee[_0x29938a(0x118)](G),_0x1cebcc=_0xfcb1ee[_0x29938a(0x118)](_0xc84305),_0x57bfcb=[],_0x38fa9b=[],{unitId:_0x37b10c,subUnitId:_0x5901cf,shapeId:_0x47a178,shapeType:_0x843178,shapeData:_0x5ac971}=_0x359de5,_0x5d0654=_0x49fea7[_0x29938a(0x134)](_0x37b10c,_0x5901cf,_0x47a178);if(_0x5d0654){let _0x1a4de1=_0x5d0654['getShapeType'](),_0x15ceae=Object[_0x29938a(0x168)]({},_0x5d0654[_0x29938a(0x13f)]()),_0x31cb12={'unitId':_0x37b10c,'subUnitId':_0x5901cf,'shapeId':_0x47a178,'shapeType':_0x843178,'shapeData':_0x5ac971},_0x253d9b={'unitId':_0x37b10c,'subUnitId':_0x5901cf,'shapeId':_0x47a178,'shapeType':_0x1a4de1,'shapeData':_0x15ceae};return _0x57bfcb[_0x29938a(0x19b)]({'id':Q['id'],'params':_0x31cb12}),_0x38fa9b['push']({'id':Q['id'],'params':_0x253d9b}),_0x57bfcb['every'](_0x4c8be5=>_0x259422[_0x29938a(0x19f)](_0x4c8be5['id'],_0x4c8be5[_0x29938a(0x154)]))&&_0x1cebcc[_0x29938a(0x173)]({'unitID':_0x37b10c,'redoMutations':[..._0x57bfcb],'undoMutations':[..._0x38fa9b]}),!0x0;}return!0x1;}};var ie=_0x58a3d5(0x135),ae=_0x58a3d5(0x111);const oe='sheets-shape.config';Symbol(oe);const se={};let ce=class extends _0x3e2f6c{constructor(_0x67317f,_0x1f433c,_0x13c9fc,_0x38b90f,_0x1bb1e7){const _0x2246b9=_0x58a3d5;super(),this[_0x2246b9(0x130)]=_0x67317f,this[_0x2246b9(0x126)]=_0x1f433c,this[_0x2246b9(0x12d)]=_0x13c9fc,this['_sheetsShapeService']=_0x38b90f,this[_0x2246b9(0x12a)]=_0x1bb1e7,this[_0x2246b9(0x169)](),this[_0x2246b9(0x10d)]();}[_0x58a3d5(0x169)](){const _0x3fea22=_0x58a3d5;[J,ee,te,X,Z,ne,K,q,Q,Y][_0x3fea22(0x197)](_0x188dd1=>this[_0x3fea22(0x152)](this[_0x3fea22(0x130)][_0x3fea22(0x16d)](_0x188dd1)));}[_0x58a3d5(0x10d)](){const _0x1d7543=_0x58a3d5;this[_0x1d7543(0x152)](this[_0x1d7543(0x126)][_0x1d7543(0x133)]({'getMutations':_0x931ad=>{const _0x3844a8=_0x1d7543;if(_0x931ad['id']===_0x209cc8['id']){let {drawings:_0x281f42}=_0x931ad[_0x3844a8(0x154)],_0x8615a9=_0x281f42[_0x3844a8(0x137)](_0x191dfc=>_0x191dfc[_0x3844a8(0x198)]===_0x29ca4c[_0x3844a8(0x151)]);if(_0x8615a9[_0x3844a8(0x11c)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x340f3a=[],_0x386560=[];return _0x8615a9['forEach'](_0x1661cf=>{const _0x4340f7=_0x3844a8;let {unitId:_0x4915fa,subUnitId:_0x507e02,drawingId:_0x2c4dba}=_0x1661cf,_0x48e1ab=this[_0x4340f7(0x115)]['getShapeModel'](_0x4915fa,_0x507e02,_0x2c4dba);if(!_0x48e1ab)throw TypeError(_0x4340f7(0x18c)+_0x48e1ab);_0x340f3a['push']({'id':q['id'],'params':{'unitId':_0x4915fa,'subUnitId':_0x507e02,'shapeId':_0x2c4dba}}),_0x386560[_0x4340f7(0x19b)]({'id':K['id'],'params':{'unitId':_0x4915fa,'subUnitId':_0x507e02,'shapeId':_0x2c4dba,'shapeType':_0x48e1ab['getShapeType'](),'shapeData':_0x48e1ab['getShapeData']()}});let _0x41515d=this[_0x4340f7(0x115)][_0x4340f7(0x14b)](_0x4915fa,_0x507e02,_0x2c4dba);if(_0x41515d)for(let _0x2af016 of _0x41515d){let _0x5e4b5d=_0x2af016[_0x4340f7(0x117)],_0x123cde=_0x2af016[_0x4340f7(0x112)],_0x554151=_0x123cde?{'from':void 0x0}:{'to':void 0x0},_0x127404=_0x123cde?{'from':{'shapeId':_0x2af016['shapeId'],'cxnIndex':_0x2af016[_0x4340f7(0x17c)]}}:{'to':{'shapeId':_0x2af016[_0x4340f7(0x149)],'cxnIndex':_0x2af016[_0x4340f7(0x17c)]}};_0x340f3a['push']({'id':Y['id'],'params':{'unitId':_0x4915fa,'subUnitId':_0x507e02,'shapeId':_0x5e4b5d,'shapeData':{'relation':_0x554151}}}),_0x386560['push']({'id':Y['id'],'params':{'unitId':_0x4915fa,'subUnitId':_0x507e02,'shapeId':_0x5e4b5d,'shapeData':{'relation':_0x127404}}});}}),{'preRedos':_0x340f3a,'redos':[],'preUndos':[],'undos':_0x386560};}if(_0x931ad['id']===_0x2d8360['id']){let {drawings:_0x4d092a}=_0x931ad['params'],_0x1eab57=_0x4d092a[_0x3844a8(0x137)](_0x412544=>_0x412544['drawingType']===_0x29ca4c['DRAWING_SHAPE']);if(_0x1eab57[_0x3844a8(0x11c)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1ff8ed=[],_0x42b86e=[];for(let _0x209b60 of _0x1eab57){let {unitId:_0x2a3f22,subUnitId:_0x46c857,drawingId:_0xb3f2f8,transform:_0x368627}=_0x209b60;if(!_0x2a3f22||!_0x46c857||!_0xb3f2f8||!_0x368627)continue;let _0xbff2b1=this[_0x3844a8(0x115)][_0x3844a8(0x134)](_0x2a3f22,_0x46c857,_0xb3f2f8);if(!_0xbff2b1)throw TypeError(_0x3844a8(0x18c)+_0xbff2b1);if(_0x48f6a6(_0xbff2b1[_0x3844a8(0x1a3)]())){let _0x494a4c=this['_sheetsShapeService'][_0x3844a8(0x124)](_0x2a3f22,_0x46c857,_0xb3f2f8);_0x494a4c&&(_0x1ff8ed[_0x3844a8(0x19b)]({'id':Y['id'],'params':{'unitId':_0x2a3f22,'subUnitId':_0x46c857,'shapeId':_0xb3f2f8,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x42b86e[_0x3844a8(0x19b)]({'id':Y['id'],'params':{'unitId':_0x2a3f22,'subUnitId':_0x46c857,'shapeId':_0xb3f2f8,'shapeData':{'relation':_0x494a4c}}}));}else{let _0x2ba994=this[_0x3844a8(0x115)][_0x3844a8(0x14b)](_0x2a3f22,_0x46c857,_0xb3f2f8);if(_0x2ba994&&_0x2ba994[_0x3844a8(0x11c)]>0x0)for(let _0x24f611 of _0x2ba994){let _0x11234d=_0x24f611[_0x3844a8(0x117)],_0x5f4401=_0x24f611['isFrom'],_0x2c0ce0=this[_0x3844a8(0x115)]['getShapeModel'](_0x2a3f22,_0x46c857,_0x11234d);if(!_0x2c0ce0)continue;let _0x58ab7c=_0x2c0ce0['getStartConnectInfo'](),_0x1713e3=_0x2c0ce0[_0x3844a8(0x1a5)]();_0x58ab7c&&_0x1713e3?this[_0x3844a8(0x19e)](_0x2a3f22,_0x46c857,_0x11234d,_0x2c0ce0,_0x58ab7c,_0x1713e3,_0x1ff8ed,_0x42b86e,_0xb3f2f8,_0x368627):this[_0x3844a8(0x131)](_0x2a3f22,_0x46c857,_0x11234d,_0x2c0ce0,_0x5f4401?_0x58ab7c:_0x1713e3,_0x5f4401,_0x1ff8ed,_0x42b86e,_0xb3f2f8,_0x368627);}}}return{'preRedos':[],'redos':_0x1ff8ed,'preUndos':_0x42b86e,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x18ee14,_0x536a93,_0x209c9f,_0x123b21,_0x392fb8){const _0x3ed24d=_0x58a3d5;if(!_0x536a93||!_0x209c9f)return null;let {shapeId:_0x1aa46a,cxnIndex:_0x1700a9}=_0x18ee14,_0x1e1f71=this[_0x3ed24d(0x115)][_0x3ed24d(0x134)](_0x536a93,_0x209c9f,_0x1aa46a);if(!_0x1e1f71)return null;let _0x361d6c=this[_0x3ed24d(0x12a)][_0x3ed24d(0x19d)]({'unitId':_0x536a93,'subUnitId':_0x209c9f,'drawingId':_0x1aa46a});if(!(_0x361d6c!=null&&_0x361d6c['transform']))return null;let {left:_0x156cbf=0x0,top:_0x2ce0fa=0x0,width:_0x1ccd40=0x0,height:_0x33608d=0x0,flipX:_0x4b3767=!0x1,flipY:_0x87f49b=!0x1,angle:_0x528115}=_0x361d6c['transform'];if(_0x392fb8&&_0x123b21===_0x1aa46a){var _0x2312f7,_0x4c40de,_0x3e113e,_0x17fb56,_0x4c85e9,_0x2635a0,_0x3326df;_0x156cbf=(_0x2312f7=_0x392fb8[_0x3ed24d(0x171)])==null?_0x156cbf:_0x2312f7,_0x2ce0fa=(_0x4c40de=_0x392fb8[_0x3ed24d(0x18f)])==null?_0x2ce0fa:_0x4c40de,_0x1ccd40=(_0x3e113e=_0x392fb8[_0x3ed24d(0x14e)])==null?_0x1ccd40:_0x3e113e,_0x33608d=(_0x17fb56=_0x392fb8[_0x3ed24d(0x189)])==null?_0x33608d:_0x17fb56,_0x4b3767=(_0x4c85e9=_0x392fb8[_0x3ed24d(0x174)])==null?_0x4b3767:_0x4c85e9,_0x87f49b=(_0x2635a0=_0x392fb8[_0x3ed24d(0x196)])==null?_0x87f49b:_0x2635a0,_0x528115=(_0x3326df=_0x392fb8[_0x3ed24d(0x1a2)])==null?_0x528115:_0x3326df;}_0x1e1f71[_0x3ed24d(0x18a)]({'width':_0x1ccd40,'height':_0x33608d});let _0x34eed7=_0x1e1f71['getConnectionSiteList']()[_0x3ed24d(0x17d)](_0x5e5bd9=>_0x5e5bd9['index']===_0x1700a9);if(!_0x34eed7)return null;let _0x2f7dc2=_0x4b3767?_0x1ccd40-_0x34eed7['x']:_0x34eed7['x'],_0x4f915a=_0x87f49b?_0x33608d-_0x34eed7['y']:_0x34eed7['y'];if(_0x528115!==0x0&&_0x528115!=null){let _0x2eebad=_0x528115*Math['PI']/0xb4,_0x199116=Math[_0x3ed24d(0x18b)](_0x2eebad),_0x100c9c=Math[_0x3ed24d(0x177)](_0x2eebad),_0xfafac2=_0x1ccd40/0x2,_0x1bf3bf=_0x33608d/0x2,_0x954c36=_0x2f7dc2-_0xfafac2,_0x213c8e=_0x4f915a-_0x1bf3bf;_0x2f7dc2=_0xfafac2+_0x954c36*_0x199116-_0x213c8e*_0x100c9c,_0x4f915a=_0x1bf3bf+_0x954c36*_0x100c9c+_0x213c8e*_0x199116;}_0x2f7dc2+=_0x156cbf,_0x4f915a+=_0x2ce0fa;let _0x5a30f5=_0x34eed7[_0x3ed24d(0x182)]/0xea60;_0x4b3767&&(_0x5a30f5=0xb4-_0x5a30f5),_0x87f49b&&(_0x5a30f5=-_0x5a30f5),_0x5a30f5+=_0x528115||0x0,_0x5a30f5=(_0x5a30f5%0x168+0x168)%0x168;let _0xaf12fa=_0x3b1527({'left':_0x156cbf,'top':_0x2ce0fa,'width':_0x1ccd40,'height':_0x33608d},_0x528115||0x0);return{'point':{'x':_0x2f7dc2,'y':_0x4f915a},'angle':_0x5a30f5,'bounds':_0xaf12fa};}['_addLineRerouteUpdates'](_0x1ddc14,_0x5958ce,_0x157c18,_0x2dd649,_0xfa3fc,_0x2af084,_0xb829be,_0x4dbfe5,_0x1f0774,_0x557218){const _0x487a6c=_0x58a3d5;let _0x306e50=this[_0x487a6c(0x12d)][_0x487a6c(0x186)](_0x1ddc14,_0x5958ce);if(!_0x306e50)return;let _0x1a7216=_0x2dd649[_0x487a6c(0x138)](),_0x463a8d=_0x2dd649[_0x487a6c(0x14a)](),_0x2fac22={},_0x533656={};_0x463a8d[_0x487a6c(0x197)](_0x43dade=>{const _0x10e177=_0x487a6c;let _0x5065b7=_0x2dd649[_0x10e177(0x14c)](_0x43dade);_0x533656[_0x43dade]=_0x5065b7==null?0x0:_0x5065b7;});let _0x3420ef=this['_getConnectPointInfo'](_0xfa3fc,_0x1ddc14,_0x5958ce,_0x1f0774,_0x557218),_0x19b4cb=this[_0x487a6c(0x122)](_0x2af084,_0x1ddc14,_0x5958ce,_0x1f0774,_0x557218);if(_0x3420ef&&_0x19b4cb){let _0x140f6a=_0x2dd649['getShapeType'](),_0x46c7c7=_0x4bd7db(_0x3420ef,_0x19b4cb,_0x140f6a),_0x2b273a=_0x140f6a;if(_0x46c7c7){let _0x283dc6=_0x1b7fa5(_0x46c7c7,_0x2dd649[_0x487a6c(0x1a3)]()),_0x259eff=this['_drawingManagerService'][_0x487a6c(0x139)](_0x1ddc14,_0x5958ce);if(_0x259eff&&_0x259eff[_0x157c18]){let _0x240867=_0x259eff[_0x157c18];_0x2b273a=_0x283dc6[_0x487a6c(0x110)];for(let [_0x4f17ca,_0x21b64d]of Object[_0x487a6c(0x145)](_0x283dc6['adjustValues']))_0x2fac22[_0x4f17ca]=_0x21b64d;let _0x4c0996={..._0x240867[_0x487a6c(0x11d)],'width':_0x283dc6[_0x487a6c(0x16c)][_0x487a6c(0x14e)],'height':_0x283dc6['worldRect'][_0x487a6c(0x189)],'left':_0x283dc6[_0x487a6c(0x16c)][_0x487a6c(0x171)],'top':_0x283dc6[_0x487a6c(0x16c)][_0x487a6c(0x18f)],'flipX':_0x283dc6['worldRect']['flipX'],'flipY':_0x283dc6[_0x487a6c(0x16c)]['flipY'],'angle':_0x283dc6[_0x487a6c(0x147)]},_0x3e71ee=_0x5d28ad(_0x4c0996,_0x306e50),_0x22d04c=_0xc67ff1(_0x4c0996,_0x306e50),_0x247c51={'unitId':_0x1ddc14,'subUnitId':_0x5958ce,'drawingType':_0x29ca4c[_0x487a6c(0x151)],'drawingId':_0x157c18,'transform':_0x4c0996,'sheetTransform':_0x3e71ee,'axisAlignSheetTransform':_0x22d04c},{unitId:_0x4a0b61,subUnitId:_0x194fec,undo:_0x2796e1,redo:_0xb8de88,objects:_0x1e4055}=this[_0x487a6c(0x12a)][_0x487a6c(0x184)]([_0x247c51]);_0xb829be[_0x487a6c(0x19b)]({'id':_0x3e02e5['id'],'params':{'unitId':_0x4a0b61,'subUnitId':_0x194fec,'op':_0xb8de88,'objects':_0x1e4055,'type':_0xafe5b9['UPDATE']}}),_0x4dbfe5['push']({'id':_0x3e02e5['id'],'params':{'unitId':_0x4a0b61,'subUnitId':_0x194fec,'op':_0x2796e1,'objects':_0x1e4055,'type':_0xafe5b9['UPDATE']}});}_0x2dd649['removeLinePoints']();}_0xb829be['push']({'id':Y['id'],'params':{'unitId':_0x1ddc14,'subUnitId':_0x5958ce,'shapeId':_0x157c18,'shapeType':_0x2b273a,'shapeData':{'adjustValues':_0x2fac22,'relation':_0x1a7216}}}),_0x4dbfe5[_0x487a6c(0x19b)]({'id':Y['id'],'params':{'unitId':_0x1ddc14,'subUnitId':_0x5958ce,'shapeId':_0x157c18,'shapeType':_0x140f6a,'shapeData':{'adjustValues':_0x533656,'relation':_0x1a7216}}});}}[_0x58a3d5(0x131)](_0x2029a7,_0x154d82,_0x759adc,_0x381e5e,_0x1a9a9c,_0xf9d317,_0x12d952,_0xc53907,_0x5cb0f3,_0x507254){const _0x502e8a=_0x58a3d5;var _0x552f26;if(!_0x1a9a9c)return;let _0x35d2e0=this['_sheetSkeletonService']['getSkeleton'](_0x2029a7,_0x154d82);if(!_0x35d2e0)return;let _0x40a818=(_0x552f26=this[_0x502e8a(0x12a)][_0x502e8a(0x19d)]({'unitId':_0x2029a7,'subUnitId':_0x154d82,'drawingId':_0x5cb0f3}))==null?void 0x0:_0x552f26['transform'];if(!_0x40a818)return;let _0x2de8d8=_0x40a818[_0x502e8a(0x171)]!==_0x507254[_0x502e8a(0x171)]||_0x40a818[_0x502e8a(0x18f)]!==_0x507254[_0x502e8a(0x18f)],_0x471b79=_0x40a818[_0x502e8a(0x14e)]!==_0x507254['width']||_0x40a818[_0x502e8a(0x189)]!==_0x507254['height'],_0x3fd39d=_0x40a818[_0x502e8a(0x174)]!==_0x507254[_0x502e8a(0x174)]||_0x40a818['flipY']!==_0x507254[_0x502e8a(0x196)],_0x19130e=_0x40a818[_0x502e8a(0x1a2)]!==_0x507254[_0x502e8a(0x1a2)];if(_0x2de8d8&&!_0x471b79&&!_0x3fd39d&&!_0x19130e){var _0x266a47,_0x5eb58d,_0x327c3d,_0x52ffa6;let _0x5af631=((_0x266a47=_0x507254[_0x502e8a(0x171)])==null?0x0:_0x266a47)-((_0x5eb58d=_0x40a818['left'])==null?0x0:_0x5eb58d),_0xd77616=((_0x327c3d=_0x507254[_0x502e8a(0x18f)])==null?0x0:_0x327c3d)-((_0x52ffa6=_0x40a818[_0x502e8a(0x18f)])==null?0x0:_0x52ffa6),_0x3d52a2=this[_0x502e8a(0x12a)][_0x502e8a(0x139)](_0x2029a7,_0x154d82);if(_0x3d52a2&&_0x3d52a2[_0x759adc]){var _0x26e833,_0x1b4430,_0x4af14a,_0x451b40;let _0x13779c=_0x3d52a2[_0x759adc],_0x9d9ab2={..._0x13779c[_0x502e8a(0x11d)],'left':((_0x26e833=(_0x1b4430=_0x13779c['transform'])==null?void 0x0:_0x1b4430['left'])==null?0x0:_0x26e833)+_0x5af631,'top':((_0x4af14a=(_0x451b40=_0x13779c[_0x502e8a(0x11d)])==null?void 0x0:_0x451b40[_0x502e8a(0x18f)])==null?0x0:_0x4af14a)+_0xd77616},_0x2df642=_0x5d28ad(_0x9d9ab2,_0x35d2e0),_0x5c786e=_0xc67ff1(_0x9d9ab2,_0x35d2e0),_0x2001e7={'unitId':_0x2029a7,'subUnitId':_0x154d82,'drawingType':_0x29ca4c[_0x502e8a(0x151)],'drawingId':_0x759adc,'transform':_0x9d9ab2,'sheetTransform':_0x2df642,'axisAlignSheetTransform':_0x5c786e},{unitId:_0x1d8ba0,subUnitId:_0x562c15,undo:_0x4b2019,redo:_0x2309e8,objects:_0x3798c1}=this[_0x502e8a(0x12a)]['getBatchUpdateOp']([_0x2001e7]);_0x12d952[_0x502e8a(0x19b)]({'id':_0x3e02e5['id'],'params':{'unitId':_0x1d8ba0,'subUnitId':_0x562c15,'op':_0x2309e8,'objects':_0x3798c1,'type':_0xafe5b9['UPDATE']}}),_0xc53907[_0x502e8a(0x19b)]({'id':_0x3e02e5['id'],'params':{'unitId':_0x1d8ba0,'subUnitId':_0x562c15,'op':_0x4b2019,'objects':_0x3798c1,'type':_0xafe5b9[_0x502e8a(0x11f)]}});}}else{let _0x130717=_0x381e5e['getStartConnectInfo'](),_0x3b6497=_0x381e5e[_0x502e8a(0x1a5)]();this['_addLineRerouteUpdates'](_0x2029a7,_0x154d82,_0x759adc,_0x381e5e,_0x130717,_0x3b6497,_0x12d952,_0xc53907,_0x5cb0f3,_0x507254);}}};ce=W([U(0x0,_0x24fd18),U(0x1,_0x5d21b3(_0x7a4d09)),U(0x2,_0x5d21b3(_0x1515ae)),U(0x3,_0x5d21b3(G)),U(0x4,_0x5d21b3(_0x579441))],ce);let $=class extends _0x5bc10b{constructor(_0x3f9157=se,_0x3d477c,_0xd8a824,_0x30363b){const _0x29580f=_0x58a3d5;super(),this[_0x29580f(0x18e)]=_0x3f9157,this['_injector']=_0x3d477c,this[_0x29580f(0x130)]=_0xd8a824,this[_0x29580f(0x1a0)]=_0x30363b;let {..._0x96ba95}=_0x1f668c({},se,this[_0x29580f(0x18e)]);this['_configService'][_0x29580f(0x183)](oe,_0x96ba95);}[_0x58a3d5(0x175)](){const _0x20ec3a=_0x58a3d5;let _0x490d10=this[_0x20ec3a(0x15b)];[[H],[G],[ce]][_0x20ec3a(0x197)](_0x487585=>_0x490d10[_0x20ec3a(0x159)](_0x487585)),_0x253d80(_0x490d10,[[G],[ce]]);}};V($,_0x58a3d5(0x13b),_0x3a3817[_0x58a3d5(0x143)]),V($,'pluginName',_0x58a3d5(0x162)),V($,_0x58a3d5(0x116),ie),V($,_0x58a3d5(0x16b),ae),$=W([_0x1b6787(_0x525d5e),U(0x1,_0x5d21b3(_0x2345ca)),U(0x2,_0x24fd18),U(0x3,_0x5a07f8)],$);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,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,Z as UpdateConnectorRelationCommand,ne as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,re as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
1
+ const _0x3e0f44=_0x5cad;(function(_0x685b5f,_0x74bcd3){const _0x4ba8f6=_0x5cad,_0x48f7ce=_0x685b5f();while(!![]){try{const _0x4ca410=-parseInt(_0x4ba8f6(0x17e))/0x1+-parseInt(_0x4ba8f6(0x168))/0x2*(parseInt(_0x4ba8f6(0x126))/0x3)+parseInt(_0x4ba8f6(0x17b))/0x4*(-parseInt(_0x4ba8f6(0x15a))/0x5)+parseInt(_0x4ba8f6(0x198))/0x6*(-parseInt(_0x4ba8f6(0x10d))/0x7)+parseInt(_0x4ba8f6(0x119))/0x8*(-parseInt(_0x4ba8f6(0x19c))/0x9)+-parseInt(_0x4ba8f6(0x174))/0xa*(parseInt(_0x4ba8f6(0x16d))/0xb)+-parseInt(_0x4ba8f6(0x154))/0xc*(-parseInt(_0x4ba8f6(0x179))/0xd);if(_0x4ca410===_0x74bcd3)break;else _0x48f7ce['push'](_0x48f7ce['shift']());}catch(_0x17af09){_0x48f7ce['push'](_0x48f7ce['shift']());}}}(_0x1923,0x9c5e0));import{ShapeModel as _0x70c847,computeConnectorRouteLayout as _0x8d0a05,getBasicShapeRotateBound as _0x2f0722,isConnectorShape as _0x481196,routeConnectorLineShape as _0x5b14d9}from'@univerjs-pro/engine-shape';import{CommandType as _0x38e762,DependentOn as _0xadff15,Disposable as _0x591fbb,DrawingTypeEnum as _0x171314,ICommandService as _0x46216b,IConfigService as _0x123a36,IResourceManagerService as _0x5d82d8,IUndoRedoService as _0x38611f,IUniverInstanceService as _0x5e9d00,Inject as _0x136051,Injector as _0x50498c,Plugin as _0xefe177,UniverInstanceType as _0x339832,generateRandomId as _0x267412,merge as _0xea1431,sequenceExecute as _0x457a87,touchDependencies as _0x3df3af}from'@univerjs/core';import{SheetInterceptorService as _0x53f707,SheetSkeletonService as _0x566bb4,getSheetCommandTarget as _0x39c299}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x16778a,DrawingApplyType as _0x1a4a4e,ISheetDrawingService as _0x5445d4,InsertSheetDrawingCommand as _0x5eb9fd,RemoveSheetDrawingCommand as _0x270a78,SetDrawingApplyMutation as _0x2a1e2d,SetSheetDrawingCommand as _0x53b7a4,transformToAxisAlignPosition as _0x59be66,transformToDrawingPosition as _0x41bba7}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x27586c}from'@univerjs-pro/license';import{IDrawingManagerService as _0x38a742}from'@univerjs/drawing';const I=0xc8,L=0xc8;function R(_0x260e83){'@babel/helpers - typeof';const _0x41ec2=_0x5cad;return R=typeof Symbol==_0x41ec2(0x137)&&typeof Symbol[_0x41ec2(0x18b)]=='symbol'?function(_0x57f517){return typeof _0x57f517;}:function(_0x4490bd){const _0xbcf8f8=_0x41ec2;return _0x4490bd&&typeof Symbol=='function'&&_0x4490bd[_0xbcf8f8(0x178)]===Symbol&&_0x4490bd!==Symbol['prototype']?_0xbcf8f8(0x169):typeof _0x4490bd;},R(_0x260e83);}function z(_0x242731,_0x26acbe){const _0x437539=_0x5cad;if(R(_0x242731)!=_0x437539(0x16a)||!_0x242731)return _0x242731;var _0x2679a0=_0x242731[Symbol['toPrimitive']];if(_0x2679a0!==void 0x0){var _0x37e346=_0x2679a0[_0x437539(0x165)](_0x242731,_0x26acbe||_0x437539(0x18f));if(R(_0x37e346)!=_0x437539(0x16a))return _0x37e346;throw TypeError(_0x437539(0x150));}return(_0x26acbe==='string'?String:Number)(_0x242731);}function B(_0xca2d49){const _0x3f1828=_0x5cad;var _0x5dbb6f=z(_0xca2d49,_0x3f1828(0x146));return R(_0x5dbb6f)==_0x3f1828(0x169)?_0x5dbb6f:_0x5dbb6f+'';}function V(_0x25bdb4,_0x11b40b,_0x2f10ec){const _0x3df678=_0x5cad;return(_0x11b40b=B(_0x11b40b))in _0x25bdb4?Object[_0x3df678(0x14e)](_0x25bdb4,_0x11b40b,{'value':_0x2f10ec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x25bdb4[_0x11b40b]=_0x2f10ec,_0x25bdb4;}var H=class extends _0x591fbb{constructor(){const _0x216c84=_0x5cad;super(),V(this,_0x216c84(0x139),new Map()),V(this,_0x216c84(0x13c),new Set()),V(this,_0x216c84(0x148),new Set());}[_0x3e0f44(0x107)](_0x1ca671,_0x147119,_0x5354b8){const _0x38ed24=_0x3e0f44;let _0x467a03=new _0x70c847(_0x1ca671,_0x147119,_0x5354b8);return this[_0x38ed24(0x139)][_0x38ed24(0x138)](_0x147119,_0x467a03),_0x481196(_0x1ca671)&&this[_0x38ed24(0x13c)][_0x38ed24(0x120)](_0x147119),_0x467a03;}[_0x3e0f44(0x190)](_0x3e59ad){const _0xb99c56=_0x3e0f44;let _0x14310e=[];for(let _0x3e82c3 of this[_0xb99c56(0x13c)]){let _0x185af3=this[_0xb99c56(0x139)][_0xb99c56(0x136)](_0x3e82c3);if(_0x185af3){let _0x29dabb=_0x185af3[_0xb99c56(0x158)]();if(_0x29dabb){var _0x23298e,_0x3cec5d;((_0x23298e=_0x29dabb[_0xb99c56(0x155)])==null?void 0x0:_0x23298e[_0xb99c56(0x171)])===_0x3e59ad&&_0x14310e[_0xb99c56(0x19d)]({..._0x29dabb[_0xb99c56(0x155)],'lineShapeId':_0x3e82c3,'isFrom':!0x0}),((_0x3cec5d=_0x29dabb['to'])==null?void 0x0:_0x3cec5d[_0xb99c56(0x171)])===_0x3e59ad&&_0x14310e['push']({..._0x29dabb['to'],'lineShapeId':_0x3e82c3,'isFrom':!0x1});}}}return _0x14310e;}[_0x3e0f44(0x123)](_0xdba992){const _0x30ff92=_0x3e0f44;let _0x470446=this[_0x30ff92(0x139)][_0x30ff92(0x136)](_0xdba992);if(_0x470446)return _0x470446[_0x30ff92(0x158)]();}[_0x3e0f44(0x135)](_0x5d705c){const _0x3f74c2=_0x3e0f44;let _0x1554f7=this[_0x3f74c2(0x139)][_0x3f74c2(0x136)](_0x5d705c);if(_0x1554f7)return _0x1554f7['getShapeType']();}[_0x3e0f44(0x195)](_0xf56757){const _0x14eb20=_0x3e0f44;return this['_shapes'][_0x14eb20(0x11c)](_0xf56757);}['removeShape'](_0x322f5a){const _0x58c187=_0x3e0f44;let _0x5de8ef=this[_0x58c187(0x139)][_0x58c187(0x136)](_0x322f5a);_0x5de8ef&&(_0x481196(_0x5de8ef[_0x58c187(0x135)]())&&this[_0x58c187(0x13c)][_0x58c187(0x118)](_0x322f5a),this['_shapes'][_0x58c187(0x118)](_0x322f5a));}[_0x3e0f44(0x157)](){const _0x11bc2f=_0x3e0f44;let _0x21a1fb=[];return this['_shapes'][_0x11bc2f(0x124)](_0x2a1c8c=>{const _0x2e9646=_0x11bc2f;_0x21a1fb[_0x2e9646(0x19d)](_0x2a1c8c[_0x2e9646(0x157)]());}),_0x21a1fb;}['fromJSON'](_0x108054){const _0x1c887e=_0x3e0f44;for(let _0x5642c2 of _0x108054){let {id:_0x329f19,shapeType:_0x3ae199}=_0x5642c2,_0x58fe11=this[_0x1c887e(0x107)](_0x3ae199,_0x329f19,_0x5642c2['shapeData']);_0x58fe11&&_0x58fe11[_0x1c887e(0x166)]()&&this['_linesIds'][_0x1c887e(0x120)](_0x329f19);}}[_0x3e0f44(0x161)](){const _0x3f494c=_0x3e0f44;this[_0x3f494c(0x129)]||(this[_0x3f494c(0x139)][_0x3f494c(0x124)](_0x970a7a=>{const _0x2221fd=_0x3f494c;_0x970a7a[_0x2221fd(0x161)]();}),this['_shapes'][_0x3f494c(0x134)](),this[_0x3f494c(0x13c)][_0x3f494c(0x134)](),this['_groupIds'][_0x3f494c(0x134)](),super[_0x3f494c(0x161)]());}};function U(_0x582b7e,_0x59bd11){return function(_0x1bf810,_0x27b674){_0x59bd11(_0x1bf810,_0x27b674,_0x582b7e);};}function W(_0x23c919,_0x4b9019,_0x3c34c0,_0x4eeff0){const _0x3519de=_0x3e0f44;var _0x2595c1=arguments[_0x3519de(0x187)],_0x268bf5=_0x2595c1<0x3?_0x4b9019:_0x4eeff0===null?_0x4eeff0=Object['getOwnPropertyDescriptor'](_0x4b9019,_0x3c34c0):_0x4eeff0,_0x2f3b74;if(typeof Reflect==_0x3519de(0x16a)&&typeof Reflect[_0x3519de(0x13a)]==_0x3519de(0x137))_0x268bf5=Reflect[_0x3519de(0x13a)](_0x23c919,_0x4b9019,_0x3c34c0,_0x4eeff0);else{for(var _0x1c5a9f=_0x23c919[_0x3519de(0x187)]-0x1;_0x1c5a9f>=0x0;_0x1c5a9f--)(_0x2f3b74=_0x23c919[_0x1c5a9f])&&(_0x268bf5=(_0x2595c1<0x3?_0x2f3b74(_0x268bf5):_0x2595c1>0x3?_0x2f3b74(_0x4b9019,_0x3c34c0,_0x268bf5):_0x2f3b74(_0x4b9019,_0x3c34c0))||_0x268bf5);}return _0x2595c1>0x3&&_0x268bf5&&Object[_0x3519de(0x14e)](_0x4b9019,_0x3c34c0,_0x268bf5),_0x268bf5;}let G=class extends _0x591fbb{constructor(_0x5f034e){const _0x5aedbe=_0x3e0f44;super(),this['_resourcesManagerService']=_0x5f034e,V(this,_0x5aedbe(0x108),new Map()),this[_0x5aedbe(0x128)]();}[_0x3e0f44(0x19a)](_0x53dcf1,_0x537c42){const _0x308817=_0x3e0f44;let _0x5515e6=this[_0x308817(0x108)][_0x308817(0x136)](_0x53dcf1);_0x5515e6||(_0x5515e6=new Map(),this['_shapeModelManagerMap'][_0x308817(0x138)](_0x53dcf1,_0x5515e6));let _0x53d531=_0x5515e6['get'](_0x537c42);return _0x53d531||(_0x53d531=new H(),_0x5515e6[_0x308817(0x138)](_0x537c42,_0x53d531)),_0x53d531;}[_0x3e0f44(0x125)](_0x353106,_0x5b6693,_0x5a99ab,_0x381189,_0xb470ba){const _0x260f5f=_0x3e0f44;this[_0x260f5f(0x19a)](_0x353106,_0x5b6693)['addShape'](_0x5a99ab,_0x381189,_0xb470ba);}['removeShape'](_0x14dc7c,_0x1f82e0,_0x4fb64){const _0x341074=_0x3e0f44;this['_ensureShapeModelManager'](_0x14dc7c,_0x1f82e0)[_0x341074(0x12f)](_0x4fb64);}[_0x3e0f44(0x191)](_0x55630c,_0x485e6a,_0x5212a2){const _0x31c3bc=_0x3e0f44;return this[_0x31c3bc(0x19a)](_0x55630c,_0x485e6a)[_0x31c3bc(0x135)](_0x5212a2);}[_0x3e0f44(0x135)](_0x3b3408,_0x514cb5,_0x1a8f9f){const _0x21fa79=_0x3e0f44;return this[_0x21fa79(0x19a)](_0x3b3408,_0x514cb5)['getShapeType'](_0x1a8f9f);}[_0x3e0f44(0x195)](_0x28bcba,_0x2b23fc,_0x4c5055){const _0x3fb658=_0x3e0f44;return this[_0x3fb658(0x19a)](_0x28bcba,_0x2b23fc)['hasShape'](_0x4c5055);}['getShapeTypeById'](_0x1d2031,_0x79beed,_0x5a4241){const _0x3e5545=_0x3e0f44;return this[_0x3e5545(0x19a)](_0x1d2031,_0x79beed)[_0x3e5545(0x135)](_0x5a4241);}[_0x3e0f44(0x177)](_0x326ea3,_0x20e506,_0x93cb50){const _0x5b513a=_0x3e0f44;let _0x192f87=this[_0x5b513a(0x19a)](_0x326ea3,_0x20e506);if(!_0x192f87[_0x5b513a(0x135)](_0x93cb50))return;let _0x1aa791=_0x192f87['_shapes'][_0x5b513a(0x136)](_0x93cb50);if(_0x1aa791)return _0x1aa791[_0x5b513a(0x182)]();}[_0x3e0f44(0x173)](_0x42fdf0,_0x41b3a7,_0x37bd60){const _0xfa1d14=_0x3e0f44;return this['_ensureShapeModelManager'](_0x42fdf0,_0x41b3a7)[_0xfa1d14(0x139)][_0xfa1d14(0x136)](_0x37bd60);}[_0x3e0f44(0x190)](_0x253337,_0x2a75ef,_0x46b07f){const _0x3e24f8=_0x3e0f44;return this[_0x3e24f8(0x19a)](_0x253337,_0x2a75ef)[_0x3e24f8(0x190)](_0x46b07f);}[_0x3e0f44(0x123)](_0x5a4302,_0x5ecaf2,_0x2483fe){const _0x1f0b20=_0x3e0f44;let _0xdef431=this[_0x1f0b20(0x19a)](_0x5a4302,_0x5ecaf2)[_0x1f0b20(0x139)][_0x1f0b20(0x136)](_0x2483fe);if(_0xdef431)return _0xdef431[_0x1f0b20(0x158)]();}['setShapeType'](){}[_0x3e0f44(0x142)](_0x21e0e9){const _0x11fb16=_0x3e0f44;let _0x53e9de={},_0x210ca2=this[_0x11fb16(0x108)]['get'](_0x21e0e9);return _0x210ca2&&_0x210ca2[_0x11fb16(0x124)]((_0x253566,_0x3ce6f8)=>{const _0x41a5ff=_0x11fb16;let _0x14031d=_0x253566[_0x41a5ff(0x157)]();_0x14031d[_0x41a5ff(0x187)]>0x0&&(_0x53e9de[_0x3ce6f8]=_0x14031d);}),JSON[_0x11fb16(0x189)](_0x53e9de);}[_0x3e0f44(0x117)](_0x4fef60,_0x3d203a){const _0x222ee2=_0x3e0f44;Object[_0x222ee2(0x12a)](_0x3d203a)['forEach'](_0x1c6b63=>{const _0x4af60d=_0x222ee2;this[_0x4af60d(0x19a)](_0x4fef60,_0x1c6b63)[_0x4af60d(0x109)](_0x3d203a[_0x1c6b63]);});}[_0x3e0f44(0x157)](){const _0x2d3168=_0x3e0f44;let _0xb8228={};return this[_0x2d3168(0x108)]['forEach']((_0x36d8a5,_0x963a5a)=>{const _0x2e97a7=_0x2d3168;_0xb8228[_0x963a5a]={},_0x36d8a5[_0x2e97a7(0x124)]((_0x37fb5c,_0x371828)=>{_0xb8228[_0x963a5a][_0x371828]=_0x37fb5c['toJSON']();});}),_0xb8228;}[_0x3e0f44(0x109)](_0x59dff8){const _0x367b14=_0x3e0f44;Object[_0x367b14(0x12a)](_0x59dff8)[_0x367b14(0x124)](_0x18b5a8=>{const _0x474909=_0x367b14;let _0x432b30=_0x59dff8[_0x18b5a8];Object[_0x474909(0x12a)](_0x432b30)['forEach'](_0x282daa=>{const _0xe7db17=_0x474909;this['_ensureShapeModelManager'](_0x18b5a8,_0x282daa)[_0xe7db17(0x109)](_0x432b30[_0x282daa]);});});}[_0x3e0f44(0x128)](){const _0x15f876=_0x3e0f44;this[_0x15f876(0x110)][_0x15f876(0x186)]({'pluginName':_0x15f876(0x16f),'businesses':[_0x339832['UNIVER_SHEET']],'toJson':_0x5eff5b=>this[_0x15f876(0x142)](_0x5eff5b),'parseJson':_0x5411a7=>JSON[_0x15f876(0x11f)](_0x5411a7),'onLoad':(_0x2e72f7,_0x570749)=>{this['_deserializeShapeForUnit'](_0x2e72f7,_0x570749);},'onUnLoad':_0x439c3f=>{const _0x4370dd=_0x15f876;let _0x4fac72=this[_0x4370dd(0x108)][_0x4370dd(0x136)](_0x439c3f);_0x4fac72&&(_0x4fac72['forEach'](_0x1b4a40=>{const _0x192e9a=_0x4370dd;_0x1b4a40[_0x192e9a(0x161)]();}),this[_0x4370dd(0x108)][_0x4370dd(0x118)](_0x439c3f));}});}[_0x3e0f44(0x161)](){const _0x40bdfd=_0x3e0f44;this[_0x40bdfd(0x108)][_0x40bdfd(0x124)](_0x505bc1=>{const _0x3eb819=_0x40bdfd;_0x505bc1[_0x3eb819(0x124)](_0x40843b=>{const _0x416708=_0x3eb819;_0x40843b[_0x416708(0x161)]();});});}};G=W([U(0x0,_0x5d82d8)],G);function _0x1923(){const _0x5e4e17=['object','flipX','getBatchUpdateOp','44UYEfDi','_configService','SHEET_SHAPE_PLUGIN','getAdjustValueByName','shapeId','pluginName','getShapeModel','1463560qPSQWj','cos','pushUndoRedo','getShapeDataById','constructor','4511uvvXml','_getConnectPointInfo','962096pmEZUP','_config','params','847416QvycEs','_injector','lineType','_addLineRerouteUpdates','getShapeData','sheet.command.set-shape-rotate','transform','getBatchAddOp','registerPluginResource','length','_commandService','stringify','redos','iterator','COMMAND','onCommandExecute','getCellWithCoordByIndex','default','getBasicShapeRelation','getBasicShapeType','entries','_sheetSkeletonService','_drawingManagerService','hasShape','sheet.command.update-line-shape-resize','removeLinePoints','6187530OxQcgH','drawingType','_ensureShapeModelManager','undos','7146lgiHEv','push','adjustValues','find','getConnectionSiteList','setShapeData','fill','addShape','_shapeModelManagerMap','fromJSON','ang','0.20.1','cxnIndex','7zDPrgK','_sheetInterceptorService','isFrom','_resourcesManagerService','_addLineFollowShapeUpdates','getDrawingByParam','relation','sheet.command.insert-shape','top','setShapeType','_deserializeShapeForUnit','delete','8552SEOnTg','rotateEnabled','sheet.command.set-shape-drawing-data','has','worldRect','lineShapeId','parse','add','range','updateContext','getLineShapeRelation','forEach','insertShape','2748qbrAzZ','sin','_initSnapshot','_disposed','keys','_sheetsShapeService','sheet.command.toggle-shape-flip','sheet.command.update-connector-relation','sheet.mutation.remove-shape','removeShape','version','UPDATE','_initCommands','preUndos','clear','getShapeType','get','function','set','_shapes','decorate','assign','_linesIds','width','INSERT','angle','resizeEnabled','startX','_serializeShapeForUnit','registerCommand','getSkeleton','flipY','string','ensureSkeleton','_groupIds','index','getCellIndexAndOffsetByPosition','preRedos','REMOVE','sheet.command.update-shape-type','defineProperty','@univerjs-pro/sheets-shape','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getEndConnectInfo','sheet.mutation.insert-shape','position','180372dJzhqP','from','data','toJSON','getShapeRelation','every','10TetCfY','height','packageName','MUTATION','left','onStarting','getDrawingData','dispose','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','_initCommandInterceptor','DRAWING_SHAPE','call','isLineShape','borderEnabled','1706obFWuz','symbol'];_0x1923=function(){return _0x5e4e17;};return _0x1923();}const K={'id':_0x3e0f44(0x152),'type':_0x38e762[_0x3e0f44(0x15d)],'handler':(_0x29e88d,_0x369c8d)=>{const _0x216901=_0x3e0f44;let {unitId:_0x54e493,subUnitId:_0x2d1e9f,shapeType:_0x566c77,shapeId:_0xf92aed,shapeData:_0x6255f7}=_0x369c8d;return _0x29e88d['get'](G)[_0x216901(0x125)](_0x54e493,_0x2d1e9f,_0x566c77,_0xf92aed,_0x6255f7),!0x0;}},q={'id':_0x3e0f44(0x12e),'type':_0x38e762[_0x3e0f44(0x15d)],'handler':(_0x438151,_0x46691d)=>{const _0x2c1cee=_0x3e0f44;let {unitId:_0x5a7efb,subUnitId:_0x393e1b,shapeId:_0x24ddc5}=_0x46691d;return _0x438151[_0x2c1cee(0x136)](G)['removeShape'](_0x5a7efb,_0x393e1b,_0x24ddc5),!0x0;}},J={'type':_0x38e762[_0x3e0f44(0x18c)],'id':_0x3e0f44(0x114),'handler':(_0x4950ac,_0x2e3b44)=>{const _0x861c2e=_0x3e0f44;var _0xfd14a5,_0x12e412;let _0x211a8f=_0x39c299(_0x4950ac[_0x861c2e(0x136)](_0x5e9d00),_0x2e3b44);if(!_0x211a8f)return!0x1;let _0x2c4680=_0x4950ac['get'](_0x566bb4),{unitId:_0x163d56,subUnitId:_0x52ad73}=_0x211a8f,_0x2eb6a4=_0x2c4680[_0x861c2e(0x147)](_0x163d56,_0x52ad73);if(!_0x2eb6a4)return!0x1;let _0x3755aa=_0x4950ac[_0x861c2e(0x136)](_0x46216b),_0x3d154e=_0x4950ac[_0x861c2e(0x136)](_0x38611f),_0x3c823d=_0x4950ac[_0x861c2e(0x136)](_0x53f707),_0x398408=_0x4950ac['get'](_0x5445d4),{shapeType:_0x1af5ef,shapeData:_0x1c5ad2}=_0x2e3b44,_0x5ec219=_0x2e3b44[_0x861c2e(0x171)]||_0x267412(),_0x302f91={'unitId':_0x163d56,'subUnitId':_0x52ad73,'shapeId':_0x5ec219,'shapeType':_0x1af5ef,'shapeData':_0x1c5ad2},_0x332fc8=_0x2e3b44[_0x861c2e(0x13d)]||0xc8,_0x903aa9=_0x2e3b44[_0x861c2e(0x15b)]||0xc8,_0x4cf534=0x0,_0x280dea=0x0,_0x533109={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x3a910c={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x2e3b44['position']){let {x:_0x4a3e5a,y:_0x2af992}=_0x2e3b44[_0x861c2e(0x153)];_0x4cf534=_0x4a3e5a,_0x280dea=_0x2af992,_0x533109=_0x2eb6a4[_0x861c2e(0x14a)](_0x4a3e5a,_0x2af992),_0x3a910c=_0x2eb6a4[_0x861c2e(0x14a)](_0x4a3e5a+_0x332fc8,_0x2af992+_0x903aa9);}else{if(_0x2e3b44[_0x861c2e(0x121)]){let {startRow:_0x40b299,startColumn:_0xe94951}=_0x2e3b44[_0x861c2e(0x121)];_0x533109={'row':_0x40b299,'rowOffset':0xa,'column':_0xe94951,'columnOffset':0xa};let _0x385e56=_0x2eb6a4[_0x861c2e(0x18e)](_0x40b299,_0xe94951);_0x4cf534=_0x385e56[_0x861c2e(0x141)]+0xa,_0x280dea=_0x385e56['startY']+0xa,_0x3a910c=_0x2eb6a4[_0x861c2e(0x14a)](_0x4cf534+_0x332fc8,_0x280dea+_0x903aa9);}}let _0x2fe19e={'from':_0x533109,'to':_0x3a910c},_0x55ebb6={'unitId':_0x163d56,'subUnitId':_0x52ad73,'drawingId':_0x5ec219,'drawingType':_0x171314[_0x861c2e(0x164)],'sheetTransform':_0x2fe19e,'transform':{'left':_0x4cf534,'top':_0x280dea,'width':_0x332fc8,'height':_0x903aa9},'data':{'shapeType':_0x1af5ef,'shapeData':_0x1c5ad2},'axisAlignSheetTransform':_0x2fe19e,'allowTransform':!0x0};_0x481196(_0x1af5ef)&&(_0x55ebb6[_0x861c2e(0x156)][_0x861c2e(0x106)]=!0x1,_0x55ebb6[_0x861c2e(0x156)]['rotateEnabled']=!0x1,_0x55ebb6['data'][_0x861c2e(0x140)]=!0x1,_0x55ebb6[_0x861c2e(0x156)][_0x861c2e(0x167)]=!0x1,_0x55ebb6[_0x861c2e(0x184)][_0x861c2e(0x11a)]=!0x1,_0x55ebb6[_0x861c2e(0x184)][_0x861c2e(0x140)]=!0x1,_0x55ebb6['transform'][_0x861c2e(0x167)]=!0x1);let {undo:_0x57695e,redo:_0x551b6c,objects:_0x17d3f2}=_0x398408[_0x861c2e(0x185)]([_0x55ebb6]),_0x510a82=_0x3c823d[_0x861c2e(0x18d)]({'id':_0x5eb9fd['id'],'params':{'unitId':_0x163d56,'drawings':[_0x55ebb6]}}),_0x3ecc9a=[...(_0xfd14a5=_0x510a82[_0x861c2e(0x14b)])==null?[]:_0xfd14a5,{'id':_0x2a1e2d['id'],'params':{'unitId':_0x163d56,'subUnitId':_0x52ad73,'op':_0x551b6c,'objects':_0x17d3f2,'type':_0x1a4a4e[_0x861c2e(0x13e)]}},{'id':_0x16778a['id'],'params':[_0x163d56]},..._0x510a82[_0x861c2e(0x18a)],{'id':K['id'],'params':_0x302f91}],_0x41b141=[{'id':q['id'],'params':{'unitId':_0x163d56,'subUnitId':_0x52ad73,'shapeId':_0x5ec219}},...(_0x12e412=_0x510a82[_0x861c2e(0x133)])==null?[]:_0x12e412,{'id':_0x2a1e2d['id'],'params':{'unitId':_0x163d56,'subUnitId':_0x52ad73,'op':_0x57695e,'objects':_0x17d3f2,'type':_0x1a4a4e[_0x861c2e(0x14c)]}},{'id':_0x16778a['id'],'params':[_0x163d56]},..._0x510a82[_0x861c2e(0x19b)]];return _0x457a87(_0x3ecc9a,_0x3755aa)?(_0x3d154e[_0x861c2e(0x176)]({'unitID':_0x163d56,'undoMutations':_0x41b141,'redoMutations':_0x3ecc9a}),!0x0):!0x1;}},Y={'id':'sheet.mutation.update-shape-data','type':_0x38e762[_0x3e0f44(0x15d)],'handler':(_0x51bdaf,_0x44c39c)=>{const _0x55a60b=_0x3e0f44;let {unitId:_0x140d33,subUnitId:_0x206cff,shapeType:_0x16343a,shapeId:_0x59fe38,shapeData:_0x354ab0}=_0x44c39c,_0x1a223c=_0x51bdaf[_0x55a60b(0x136)](G)[_0x55a60b(0x173)](_0x140d33,_0x206cff,_0x59fe38);return _0x1a223c&&(_0x16343a!==void 0x0&&_0x1a223c[_0x55a60b(0x116)](_0x16343a),_0x354ab0&&(_0x1a223c==null||_0x1a223c[_0x55a60b(0x105)](_0x354ab0,!0x0))),!0x0;}},ee={'type':_0x38e762[_0x3e0f44(0x18c)],'id':_0x3e0f44(0x11b),'handler':(_0x2963f8,_0x39004d)=>{const _0xd254af=_0x3e0f44;var _0x9bbf8c,_0x51bf20;let _0x57b690=_0x39c299(_0x2963f8[_0xd254af(0x136)](_0x5e9d00),_0x39004d);if(!_0x57b690)return!0x1;let _0x1db97b=_0x2963f8[_0xd254af(0x136)](_0x566bb4),{unitId:_0x4face0,subUnitId:_0x82ed7f}=_0x57b690,_0x439f60=_0x1db97b[_0xd254af(0x147)](_0x4face0,_0x82ed7f);if(!_0x439f60)return!0x1;let _0x268019=_0x2963f8['get'](G),{shapeId:_0x4801ea,shapeType:_0x161718,shapeData:_0x2ab68a,position:_0x4d68d8,width:_0x397561,height:_0x361f4a}=_0x39004d,_0x44b740=_0x268019['getShapeModel'](_0x4face0,_0x82ed7f,_0x4801ea);if(!_0x44b740)return!0x1;let _0x5e2692=_0x2963f8[_0xd254af(0x136)](_0x46216b),_0x190405=_0x2963f8[_0xd254af(0x136)](_0x38611f),_0x3aa1a7=_0x2963f8['get'](_0x53f707),_0x28fdf5=_0x2963f8['get'](_0x5445d4),_0x57b4fe={'unitId':_0x4face0,'subUnitId':_0x82ed7f,'shapeId':_0x4801ea,'shapeType':_0x161718,'shapeData':_0x2ab68a},_0x57d620=_0x44b740[_0xd254af(0x135)](),_0x1acf98=_0x44b740['getShapeData'](),{x:_0x58cb3b,y:_0x2d6f80}=_0x4d68d8,_0x4a16b7={'from':_0x439f60[_0xd254af(0x14a)](_0x58cb3b,_0x2d6f80),'to':_0x439f60[_0xd254af(0x14a)](_0x58cb3b+_0x397561,_0x2d6f80+_0x361f4a)},_0x4d4e3f={'unitId':_0x4face0,'subUnitId':_0x82ed7f,'drawingId':_0x4801ea,'drawingType':_0x171314['DRAWING_SHAPE'],'sheetTransform':_0x4a16b7,'transform':{'left':_0x58cb3b,'top':_0x2d6f80,'width':_0x397561,'height':_0x361f4a},'data':{'shapeType':_0x161718,'shapeData':_0x2ab68a},'axisAlignSheetTransform':_0x4a16b7,'allowTransform':!0x0};_0x481196(_0x161718)&&(_0x4d4e3f['data'][_0xd254af(0x106)]=!0x1,_0x4d4e3f['data'][_0xd254af(0x11a)]=!0x1,_0x4d4e3f[_0xd254af(0x156)]['resizeEnabled']=!0x1,_0x4d4e3f['data'][_0xd254af(0x167)]=!0x1,_0x4d4e3f[_0xd254af(0x184)][_0xd254af(0x11a)]=!0x1,_0x4d4e3f[_0xd254af(0x184)][_0xd254af(0x140)]=!0x1,_0x4d4e3f['transform'][_0xd254af(0x167)]=!0x1);let {undo:_0x4f6fe4,redo:_0x5d4349,objects:_0x5dd7f4}=_0x28fdf5[_0xd254af(0x16c)]([_0x4d4e3f]),_0x2ff82f=_0x3aa1a7['onCommandExecute']({'id':_0x53b7a4['id'],'params':{'unitId':_0x4face0,'drawings':[_0x4d4e3f]}}),_0x629284=[...(_0x9bbf8c=_0x2ff82f['preRedos'])==null?[]:_0x9bbf8c,{'id':_0x2a1e2d['id'],'params':{'unitId':_0x4face0,'subUnitId':_0x82ed7f,'op':_0x5d4349,'objects':_0x5dd7f4,'type':_0x1a4a4e['UPDATE']}},{'id':_0x16778a['id'],'params':[_0x4face0]},..._0x2ff82f['redos'],{'id':Y['id'],'params':_0x57b4fe}],_0x419290=[...(_0x51bf20=_0x2ff82f[_0xd254af(0x133)])==null?[]:_0x51bf20,{'id':_0x2a1e2d['id'],'params':{'unitId':_0x4face0,'subUnitId':_0x82ed7f,'op':_0x4f6fe4,'objects':_0x5dd7f4,'type':_0x1a4a4e[_0xd254af(0x131)]}},{'id':_0x16778a['id'],'params':[_0x4face0]},..._0x2ff82f[_0xd254af(0x19b)],{'id':Y['id'],'params':{'unitId':_0x4face0,'subUnitId':_0x82ed7f,'shapeType':_0x57d620,'shapeId':_0x4801ea,'shapeData':_0x1acf98}}];return _0x457a87(_0x629284,_0x5e2692)?(_0x190405[_0xd254af(0x176)]({'unitID':_0x4face0,'undoMutations':_0x419290,'redoMutations':_0x629284}),!0x0):!0x1;}},te={'type':_0x38e762[_0x3e0f44(0x18c)],'id':_0x3e0f44(0x12c),'handler':(_0x4bfa61,_0x1c6973)=>{const _0x9d4473=_0x3e0f44;var _0x2deec3,_0x50adc9;let _0x401a20=_0x39c299(_0x4bfa61[_0x9d4473(0x136)](_0x5e9d00),_0x1c6973);if(!_0x401a20)return!0x1;let _0x486036=_0x4bfa61[_0x9d4473(0x136)](_0x566bb4),{unitId:_0x4102eb,subUnitId:_0x4bd7a0}=_0x401a20,_0xc41aa6=_0x486036[_0x9d4473(0x144)](_0x4102eb,_0x4bd7a0);if(!_0xc41aa6)return!0x1;let _0x4488ec=_0x4bfa61[_0x9d4473(0x136)](_0x5445d4),{shapeId:_0x25a031,flipH:_0x290e18,flipV:_0x324325}=_0x1c6973,_0x19a2b8=_0x4488ec[_0x9d4473(0x112)]({'unitId':_0x4102eb,'subUnitId':_0x4bd7a0,'drawingId':_0x25a031});if(!_0x19a2b8)return!0x1;let _0x472b9c=_0x4bfa61[_0x9d4473(0x136)](G)[_0x9d4473(0x173)](_0x4102eb,_0x4bd7a0,_0x25a031);if(!_0x472b9c)return!0x1;let _0xdb9308=_0x4bfa61[_0x9d4473(0x136)](_0x46216b),_0xc2275=_0x4bfa61[_0x9d4473(0x136)](_0x38611f),_0xd14325=_0x4bfa61[_0x9d4473(0x136)](_0x53f707),_0x18f471={..._0x19a2b8['transform']};_0x290e18!==void 0x0&&(_0x18f471[_0x9d4473(0x16b)]=!_0x18f471[_0x9d4473(0x16b)]),_0x324325!==void 0x0&&(_0x18f471['flipY']=!_0x18f471[_0x9d4473(0x145)]);let _0x17173e=_0x41bba7(_0x18f471,_0xc41aa6),_0x23c00d=_0x59be66(_0x18f471,_0xc41aa6),_0x1b36ef=_0x472b9c[_0x9d4473(0x135)](),_0x510a51=_0x472b9c['getShapeData'](),_0x55ed23={'unitId':_0x4102eb,'subUnitId':_0x4bd7a0,'drawingId':_0x25a031,'drawingType':_0x171314[_0x9d4473(0x164)],'sheetTransform':_0x17173e,'transform':_0x18f471,'data':{'shapeType':_0x1b36ef,'shapeData':_0x510a51},'axisAlignSheetTransform':_0x23c00d,'allowTransform':!0x0},{undo:_0x5d7571,redo:_0x53ff53,objects:_0x29b5dc}=_0x4488ec[_0x9d4473(0x16c)]([_0x55ed23]),_0x5ac50c=_0xd14325[_0x9d4473(0x18d)]({'id':_0x53b7a4['id'],'params':{'unitId':_0x4102eb,'drawings':[_0x55ed23]}}),_0x48e94f=[...(_0x2deec3=_0x5ac50c[_0x9d4473(0x14b)])==null?[]:_0x2deec3,{'id':_0x2a1e2d['id'],'params':{'unitId':_0x4102eb,'subUnitId':_0x4bd7a0,'op':_0x53ff53,'objects':_0x29b5dc,'type':_0x1a4a4e[_0x9d4473(0x131)]}},{'id':_0x16778a['id'],'params':[_0x4102eb]},..._0x5ac50c['redos']],_0x74f07b=[...(_0x50adc9=_0x5ac50c[_0x9d4473(0x133)])==null?[]:_0x50adc9,{'id':_0x2a1e2d['id'],'params':{'unitId':_0x4102eb,'subUnitId':_0x4bd7a0,'op':_0x5d7571,'objects':_0x29b5dc,'type':_0x1a4a4e[_0x9d4473(0x131)]}},{'id':_0x16778a['id'],'params':[_0x4102eb]},..._0x5ac50c['undos']];if(_0x481196(_0x1b36ef)){let _0x394cff=_0x472b9c['getShapeRelation']();if(_0x394cff){let _0x277459={..._0x394cff};_0x277459['from']=void 0x0,_0x277459['to']=void 0x0,_0x48e94f['push']({'id':Y['id'],'params':{'unitId':_0x4102eb,'subUnitId':_0x4bd7a0,'shapeId':_0x25a031,'shapeType':_0x1b36ef,'shapeData':{'relation':_0x277459}}}),_0x74f07b['push']({'id':Y['id'],'params':{'unitId':_0x4102eb,'subUnitId':_0x4bd7a0,'shapeId':_0x25a031,'shapeType':_0x1b36ef,'shapeData':{'relation':_0x394cff}}});}}return _0x457a87(_0x48e94f,_0xdb9308)?(_0xc2275[_0x9d4473(0x176)]({'unitID':_0x4102eb,'undoMutations':_0x74f07b,'redoMutations':_0x48e94f}),!0x0):!0x1;}},X={'type':_0x38e762['COMMAND'],'id':_0x3e0f44(0x183),'handler':(_0x4eb349,_0x22ca5b)=>{const _0x39d0a8=_0x3e0f44;var _0x87e8d5,_0x488cbf;let _0x506bfc=_0x39c299(_0x4eb349[_0x39d0a8(0x136)](_0x5e9d00),_0x22ca5b);if(!_0x506bfc)return!0x1;let _0x300ec2=_0x4eb349[_0x39d0a8(0x136)](_0x566bb4),{unitId:_0x424d1f,subUnitId:_0x3446c1}=_0x506bfc,_0x3f68d6=_0x300ec2['getSkeleton'](_0x424d1f,_0x3446c1);if(!_0x3f68d6)return!0x1;let _0x49b7da=_0x4eb349[_0x39d0a8(0x136)](_0x5445d4),{shapeId:_0x169877,rotate:_0x442146}=_0x22ca5b,_0x162bc4=_0x49b7da[_0x39d0a8(0x112)]({'unitId':_0x424d1f,'subUnitId':_0x3446c1,'drawingId':_0x169877});if(!_0x162bc4)return!0x1;let _0x3e57c1=_0x4eb349[_0x39d0a8(0x136)](G)[_0x39d0a8(0x173)](_0x424d1f,_0x3446c1,_0x169877);if(!_0x3e57c1)return!0x1;let _0xc23b5c=_0x4eb349[_0x39d0a8(0x136)](_0x46216b),_0x5b4502=_0x4eb349[_0x39d0a8(0x136)](_0x38611f),_0xf99bfb=_0x4eb349['get'](_0x53f707),_0x887bd={..._0x162bc4[_0x39d0a8(0x184)]};_0x442146!==void 0x0&&(_0x887bd['angle']=(_0x887bd[_0x39d0a8(0x13f)]||0x0)+_0x442146);let _0x4214bd=_0x41bba7(_0x887bd,_0x3f68d6),_0x1b0715=_0x59be66(_0x887bd,_0x3f68d6),_0x1fbec9=_0x3e57c1[_0x39d0a8(0x135)](),_0x14d021=_0x3e57c1[_0x39d0a8(0x182)](),_0x11e13c={'unitId':_0x424d1f,'subUnitId':_0x3446c1,'drawingId':_0x169877,'drawingType':_0x171314[_0x39d0a8(0x164)],'sheetTransform':_0x4214bd,'transform':_0x887bd,'data':{'shapeType':_0x1fbec9,'shapeData':_0x14d021},'axisAlignSheetTransform':_0x1b0715,'allowTransform':!0x0},{undo:_0x5406c7,redo:_0x7ab81d,objects:_0x38def6}=_0x49b7da[_0x39d0a8(0x16c)]([_0x11e13c]),_0x213b09=_0xf99bfb['onCommandExecute']({'id':_0x53b7a4['id'],'params':{'unitId':_0x424d1f,'drawings':[_0x11e13c]}}),_0x311335=[...(_0x87e8d5=_0x213b09[_0x39d0a8(0x14b)])==null?[]:_0x87e8d5,{'id':_0x2a1e2d['id'],'params':{'unitId':_0x424d1f,'subUnitId':_0x3446c1,'op':_0x7ab81d,'objects':_0x38def6,'type':_0x1a4a4e['UPDATE']}},{'id':_0x16778a['id'],'params':[_0x424d1f]},..._0x213b09[_0x39d0a8(0x18a)]],_0x31ff4d=[...(_0x488cbf=_0x213b09[_0x39d0a8(0x133)])==null?[]:_0x488cbf,{'id':_0x2a1e2d['id'],'params':{'unitId':_0x424d1f,'subUnitId':_0x3446c1,'op':_0x5406c7,'objects':_0x38def6,'type':_0x1a4a4e[_0x39d0a8(0x131)]}},{'id':_0x16778a['id'],'params':[_0x424d1f]},..._0x213b09[_0x39d0a8(0x19b)]];return _0x457a87(_0x311335,_0xc23b5c)?(_0x5b4502['pushUndoRedo']({'unitID':_0x424d1f,'undoMutations':_0x31ff4d,'redoMutations':_0x311335}),!0x0):!0x1;}},Z={'type':_0x38e762[_0x3e0f44(0x18c)],'id':_0x3e0f44(0x12d),'handler':(_0x182385,_0x2305e8)=>{const _0xf42f4e=_0x3e0f44;var _0x382f0d,_0x5a9917,_0x5e80dc,_0x550261;let _0x57d878=_0x39c299(_0x182385['get'](_0x5e9d00),_0x2305e8);if(!_0x57d878)return!0x1;let _0x511812=_0x182385['get'](_0x566bb4),{unitId:_0x283cc9,subUnitId:_0x2ad311}=_0x57d878,_0xd6c9ab=_0x511812[_0xf42f4e(0x144)](_0x283cc9,_0x2ad311);if(!_0xd6c9ab)return!0x1;let _0x34253d=_0x182385['get'](_0x5445d4),{connectorShapeId:_0x503393,width:_0x2f45cf,height:_0x279dfe,left:_0x4bb5e2,top:_0x2b0b07,flipX:_0x20bb1d,flipY:_0x4a5d43,rotation:_0x57e437,oldAdjustValues:_0x4b4487,newAdjustValues:_0x5b9ae3,oldLineType:_0x113fb2,newLineType:_0x388e9d,oldRelation:_0x1f41f6,newRelation:_0x5f1689}=_0x2305e8,_0x39d7de=_0x34253d[_0xf42f4e(0x112)]({'unitId':_0x283cc9,'subUnitId':_0x2ad311,'drawingId':_0x503393});if(!_0x39d7de)return!0x1;let _0x2c904e=_0x182385['get'](G)[_0xf42f4e(0x173)](_0x283cc9,_0x2ad311,_0x503393);if(!_0x2c904e)return!0x1;let _0x9c7e62=_0x182385[_0xf42f4e(0x136)](_0x46216b),_0x44c52d=_0x182385[_0xf42f4e(0x136)](_0x38611f),_0x101300=_0x182385[_0xf42f4e(0x136)](_0x53f707),_0x437a3d={..._0x39d7de['transform'],'width':_0x2f45cf,'height':_0x279dfe,'left':_0x4bb5e2,'top':_0x2b0b07,'flipX':_0x20bb1d,'flipY':_0x4a5d43,'angle':(_0x382f0d=_0x57e437==null?(_0x5a9917=_0x39d7de[_0xf42f4e(0x184)])==null?void 0x0:_0x5a9917['angle']:_0x57e437)==null?0x0:_0x382f0d},_0x3ee9c5=_0x41bba7(_0x437a3d,_0xd6c9ab),_0x10bfa3=_0x59be66(_0x437a3d,_0xd6c9ab),_0x2961ef=_0x2c904e[_0xf42f4e(0x135)](),_0x1c4fcf=_0x2c904e[_0xf42f4e(0x182)](),_0x1abf12={'unitId':_0x283cc9,'subUnitId':_0x2ad311,'drawingId':_0x503393,'drawingType':_0x171314['DRAWING_SHAPE'],'sheetTransform':_0x3ee9c5,'transform':_0x437a3d,'data':{'shapeType':_0x388e9d||_0x113fb2||_0x2961ef,'shapeData':{..._0x1c4fcf,'adjustValues':_0x5b9ae3||_0x4b4487||(_0x1c4fcf==null?void 0x0:_0x1c4fcf[_0xf42f4e(0x19e)]),'relation':_0x5f1689||_0x1f41f6||(_0x1c4fcf==null?void 0x0:_0x1c4fcf[_0xf42f4e(0x113)])}},'axisAlignSheetTransform':_0x10bfa3,'allowTransform':!0x0},{undo:_0xa2c09c,redo:_0x25f958,objects:_0xfb6879}=_0x34253d[_0xf42f4e(0x16c)]([_0x1abf12]),_0x43ec7e=_0x101300[_0xf42f4e(0x18d)]({'id':_0x53b7a4['id'],'params':{'unitId':_0x283cc9,'drawings':[_0x1abf12]}}),_0x204491=[...(_0x5e80dc=_0x43ec7e['preRedos'])==null?[]:_0x5e80dc,{'id':_0x2a1e2d['id'],'params':{'unitId':_0x283cc9,'subUnitId':_0x2ad311,'op':_0x25f958,'objects':_0xfb6879,'type':_0x1a4a4e['UPDATE']}},{'id':_0x16778a['id'],'params':[_0x283cc9]},..._0x43ec7e[_0xf42f4e(0x18a)],{'id':Y['id'],'params':{'unitId':_0x283cc9,'subUnitId':_0x2ad311,'shapeId':_0x503393,'shapeType':_0x388e9d,'shapeData':{'adjustValues':_0x5b9ae3,'relation':_0x5f1689}}}],_0xdd5773=[...(_0x550261=_0x43ec7e[_0xf42f4e(0x133)])==null?[]:_0x550261,{'id':_0x2a1e2d['id'],'params':{'unitId':_0x283cc9,'subUnitId':_0x2ad311,'op':_0xa2c09c,'objects':_0xfb6879,'type':_0x1a4a4e[_0xf42f4e(0x131)]}},{'id':_0x16778a['id'],'params':[_0x283cc9]},..._0x43ec7e[_0xf42f4e(0x19b)],{'id':Y['id'],'params':{'unitId':_0x283cc9,'subUnitId':_0x2ad311,'shapeId':_0x503393,'shapeType':_0x2961ef,'shapeData':{..._0x1c4fcf,'adjustValues':_0x4b4487||(_0x1c4fcf==null?void 0x0:_0x1c4fcf[_0xf42f4e(0x19e)]),'relation':_0x1f41f6||(_0x1c4fcf==null?void 0x0:_0x1c4fcf[_0xf42f4e(0x113)])}}}];return _0x457a87(_0x204491,_0x9c7e62)?(_0x44c52d[_0xf42f4e(0x176)]({'unitID':_0x283cc9,'undoMutations':_0xdd5773,'redoMutations':_0x204491}),!0x0):!0x1;}},ne={'type':_0x38e762[_0x3e0f44(0x18c)],'id':_0x3e0f44(0x196),'handler':(_0x370e54,_0x37aab6)=>{const _0x3fa37a=_0x3e0f44;var _0x37d403,_0x488d64;let _0x170b39=_0x39c299(_0x370e54['get'](_0x5e9d00),_0x37aab6);if(!_0x170b39)return!0x1;let _0x279f04=_0x370e54[_0x3fa37a(0x136)](_0x566bb4),{unitId:_0x2a9819,subUnitId:_0x40a3e6}=_0x170b39,_0x46c158=_0x279f04[_0x3fa37a(0x144)](_0x2a9819,_0x40a3e6);if(!_0x46c158)return!0x1;let _0x145200=_0x370e54['get'](_0x5445d4),{shapeId:_0x1c7098,width:_0x5dc7f3,height:_0xcdf4b8,left:_0xa55081,top:_0x23194b,flipX:_0x1fbb6e,flipY:_0x45bbaf,angle:_0x2242f9,oldAdjustValues:_0x2ce6f6,newAdjustValues:_0x5898a4,oldLineType:_0x2016d0,newLineType:_0xa8fec5}=_0x37aab6,_0x4b3a7a=_0x145200[_0x3fa37a(0x112)]({'unitId':_0x2a9819,'subUnitId':_0x40a3e6,'drawingId':_0x1c7098});if(!_0x4b3a7a)return!0x1;let _0x2d8842=_0x370e54[_0x3fa37a(0x136)](G)['getShapeModel'](_0x2a9819,_0x40a3e6,_0x1c7098);if(!_0x2d8842)return!0x1;let _0x1355e7=_0x370e54['get'](_0x46216b),_0x5c1268=_0x370e54[_0x3fa37a(0x136)](_0x38611f),_0xe32d72=_0x370e54['get'](_0x53f707),_0x27ddad={..._0x4b3a7a['transform'],'width':_0x5dc7f3,'height':_0xcdf4b8,'left':_0xa55081,'top':_0x23194b,'flipX':_0x1fbb6e,'flipY':_0x45bbaf,'angle':_0x2242f9},_0x4927f0=_0x41bba7(_0x27ddad,_0x46c158),_0x279adc=_0x59be66(_0x27ddad,_0x46c158),_0x440d9f=_0x2d8842[_0x3fa37a(0x135)](),_0x4d446c=_0x2d8842[_0x3fa37a(0x182)](),_0xc8c347={'unitId':_0x2a9819,'subUnitId':_0x40a3e6,'drawingId':_0x1c7098,'drawingType':_0x171314['DRAWING_SHAPE'],'sheetTransform':_0x4927f0,'transform':_0x27ddad,'data':{'shapeType':_0xa8fec5||_0x2016d0||_0x440d9f,'shapeData':{..._0x4d446c,'adjustValues':_0x5898a4||_0x2ce6f6||(_0x4d446c==null?void 0x0:_0x4d446c[_0x3fa37a(0x19e)])}},'axisAlignSheetTransform':_0x279adc,'allowTransform':!0x0},{undo:_0x12a319,redo:_0x4b6b70,objects:_0x431ba6}=_0x145200[_0x3fa37a(0x16c)]([_0xc8c347]),_0x5e1ca8=_0xe32d72[_0x3fa37a(0x18d)]({'id':_0x53b7a4['id'],'params':{'unitId':_0x2a9819,'drawings':[_0xc8c347]}}),_0x48d395=[...(_0x37d403=_0x5e1ca8[_0x3fa37a(0x14b)])==null?[]:_0x37d403,{'id':_0x2a1e2d['id'],'params':{'unitId':_0x2a9819,'subUnitId':_0x40a3e6,'op':_0x4b6b70,'objects':_0x431ba6,'type':_0x1a4a4e[_0x3fa37a(0x131)]}},{'id':_0x16778a['id'],'params':[_0x2a9819]},..._0x5e1ca8[_0x3fa37a(0x18a)],{'id':Y['id'],'params':{'unitId':_0x2a9819,'subUnitId':_0x40a3e6,'shapeId':_0x1c7098,'shapeType':_0xa8fec5,'shapeData':{'adjustValues':_0x5898a4}}}],_0x4e9b97=[...(_0x488d64=_0x5e1ca8[_0x3fa37a(0x133)])==null?[]:_0x488d64,{'id':_0x2a1e2d['id'],'params':{'unitId':_0x2a9819,'subUnitId':_0x40a3e6,'op':_0x12a319,'objects':_0x431ba6,'type':_0x1a4a4e[_0x3fa37a(0x131)]}},{'id':_0x16778a['id'],'params':[_0x2a9819]},..._0x5e1ca8['undos'],{'id':Y['id'],'params':{'unitId':_0x2a9819,'subUnitId':_0x40a3e6,'shapeId':_0x1c7098,'shapeType':_0x440d9f,'shapeData':{..._0x4d446c,'adjustValues':_0x2ce6f6||(_0x4d446c==null?void 0x0:_0x4d446c['adjustValues'])}}}];return _0x457a87(_0x48d395,_0x1355e7)?(_0x5c1268[_0x3fa37a(0x176)]({'unitID':_0x2a9819,'undoMutations':_0x4e9b97,'redoMutations':_0x48d395}),!0x0):!0x1;}},Q={'id':'sheet.mutation.update-shape-type','type':_0x38e762['MUTATION'],'handler':(_0x247e25,_0x3220c5)=>{const _0xa80f04=_0x3e0f44;let {unitId:_0x5ae3c3,subUnitId:_0x25b073,shapeType:_0x494884,shapeId:_0x32bf18,shapeData:_0x390782}=_0x3220c5,_0xdf714b=_0x247e25['get'](G)[_0xa80f04(0x173)](_0x5ae3c3,_0x25b073,_0x32bf18);return _0xdf714b&&(_0xdf714b['setShapeType'](_0x494884),_0x390782&&(_0xdf714b==null||_0xdf714b['setShapeData'](_0x390782))),!0x0;}},re={'id':_0x3e0f44(0x14d),'type':_0x38e762['COMMAND'],'handler':(_0x895888,_0x465012)=>{const _0x3fd2de=_0x3e0f44;if(!_0x465012)return!0x1;let _0x19cc9e=_0x895888[_0x3fd2de(0x136)](_0x46216b),_0x4f9ecc=_0x895888[_0x3fd2de(0x136)](G),_0x2852ad=_0x895888[_0x3fd2de(0x136)](_0x38611f),_0x5535c7=[],_0xd60e7d=[],{unitId:_0x4300be,subUnitId:_0x45cde1,shapeId:_0x58cd18,shapeType:_0x32baec,shapeData:_0x10c30c}=_0x465012,_0x294768=_0x4f9ecc[_0x3fd2de(0x173)](_0x4300be,_0x45cde1,_0x58cd18);if(_0x294768){let _0x3cc9cb=_0x294768['getShapeType'](),_0x55b9a9=Object[_0x3fd2de(0x13b)]({},_0x294768[_0x3fd2de(0x182)]()),_0x2d6c05={'unitId':_0x4300be,'subUnitId':_0x45cde1,'shapeId':_0x58cd18,'shapeType':_0x32baec,'shapeData':_0x10c30c},_0x39a825={'unitId':_0x4300be,'subUnitId':_0x45cde1,'shapeId':_0x58cd18,'shapeType':_0x3cc9cb,'shapeData':_0x55b9a9};return _0x5535c7[_0x3fd2de(0x19d)]({'id':Q['id'],'params':_0x2d6c05}),_0xd60e7d[_0x3fd2de(0x19d)]({'id':Q['id'],'params':_0x39a825}),_0x5535c7[_0x3fd2de(0x159)](_0x32d3e1=>_0x19cc9e['syncExecuteCommand'](_0x32d3e1['id'],_0x32d3e1[_0x3fd2de(0x17d)]))&&_0x2852ad['pushUndoRedo']({'unitID':_0x4300be,'redoMutations':[..._0x5535c7],'undoMutations':[..._0xd60e7d]}),!0x0;}return!0x1;}};var ie=_0x3e0f44(0x14f),ae=_0x3e0f44(0x10b);const oe='sheets-shape.config';Symbol(oe);const se={};let ce=class extends _0x591fbb{constructor(_0x114d46,_0x1c2ad2,_0x24da62,_0x239d3e,_0x3c64fb){const _0x26a582=_0x3e0f44;super(),this['_commandService']=_0x114d46,this['_sheetInterceptorService']=_0x1c2ad2,this[_0x26a582(0x193)]=_0x24da62,this[_0x26a582(0x12b)]=_0x239d3e,this[_0x26a582(0x194)]=_0x3c64fb,this[_0x26a582(0x132)](),this[_0x26a582(0x163)]();}['_initCommands'](){const _0x204f47=_0x3e0f44;[J,ee,te,X,Z,ne,K,q,Q,Y][_0x204f47(0x124)](_0xef95ba=>this['disposeWithMe'](this[_0x204f47(0x188)][_0x204f47(0x143)](_0xef95ba)));}['_initCommandInterceptor'](){const _0x38c23a=_0x3e0f44;this['disposeWithMe'](this[_0x38c23a(0x10e)]['interceptCommand']({'getMutations':_0x4a7236=>{const _0x49791e=_0x38c23a;if(_0x4a7236['id']===_0x270a78['id']){let {drawings:_0x56945b}=_0x4a7236[_0x49791e(0x17d)],_0x4cf783=_0x56945b['filter'](_0x44272a=>_0x44272a['drawingType']===_0x171314[_0x49791e(0x164)]);if(_0x4cf783['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x310cae=[],_0x1501e0=[];return _0x4cf783[_0x49791e(0x124)](_0x4d3619=>{const _0x1d484c=_0x49791e;let {unitId:_0x18585e,subUnitId:_0x220104,drawingId:_0x4fd872}=_0x4d3619,_0x5b1f18=this[_0x1d484c(0x12b)][_0x1d484c(0x173)](_0x18585e,_0x220104,_0x4fd872);if(!_0x5b1f18)throw TypeError(_0x1d484c(0x162)+_0x5b1f18);_0x310cae['push']({'id':q['id'],'params':{'unitId':_0x18585e,'subUnitId':_0x220104,'shapeId':_0x4fd872}}),_0x1501e0[_0x1d484c(0x19d)]({'id':K['id'],'params':{'unitId':_0x18585e,'subUnitId':_0x220104,'shapeId':_0x4fd872,'shapeType':_0x5b1f18['getShapeType'](),'shapeData':_0x5b1f18[_0x1d484c(0x182)]()}});let _0x5d94e1=this[_0x1d484c(0x12b)]['getBasicShapeRelation'](_0x18585e,_0x220104,_0x4fd872);if(_0x5d94e1)for(let _0x2f32f2 of _0x5d94e1){let _0x4182a2=_0x2f32f2[_0x1d484c(0x11e)],_0x429861=_0x2f32f2[_0x1d484c(0x10f)],_0x57ba10=_0x429861?{'from':void 0x0}:{'to':void 0x0},_0x5a15c8=_0x429861?{'from':{'shapeId':_0x2f32f2[_0x1d484c(0x171)],'cxnIndex':_0x2f32f2[_0x1d484c(0x10c)]}}:{'to':{'shapeId':_0x2f32f2[_0x1d484c(0x171)],'cxnIndex':_0x2f32f2['cxnIndex']}};_0x310cae['push']({'id':Y['id'],'params':{'unitId':_0x18585e,'subUnitId':_0x220104,'shapeId':_0x4182a2,'shapeData':{'relation':_0x57ba10}}}),_0x1501e0['push']({'id':Y['id'],'params':{'unitId':_0x18585e,'subUnitId':_0x220104,'shapeId':_0x4182a2,'shapeData':{'relation':_0x5a15c8}}});}}),{'preRedos':_0x310cae,'redos':[],'preUndos':[],'undos':_0x1501e0};}if(_0x4a7236['id']===_0x53b7a4['id']){let {drawings:_0x31f7db}=_0x4a7236['params'],_0x42a4f2=_0x31f7db['filter'](_0x2c4445=>_0x2c4445[_0x49791e(0x199)]===_0x171314['DRAWING_SHAPE']);if(_0x42a4f2[_0x49791e(0x187)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0xe0f59c=[],_0x393f76=[];for(let _0x509aa1 of _0x42a4f2){let {unitId:_0x5e6c1c,subUnitId:_0x2d66d9,drawingId:_0xe0e3ad,transform:_0x5a3927}=_0x509aa1;if(!_0x5e6c1c||!_0x2d66d9||!_0xe0e3ad||!_0x5a3927)continue;let _0xf20a38=this['_sheetsShapeService'][_0x49791e(0x173)](_0x5e6c1c,_0x2d66d9,_0xe0e3ad);if(!_0xf20a38)throw TypeError(_0x49791e(0x162)+_0xf20a38);if(_0x481196(_0xf20a38['getShapeType']())){let _0x5b16fb=this['_sheetsShapeService'][_0x49791e(0x123)](_0x5e6c1c,_0x2d66d9,_0xe0e3ad);_0x5b16fb&&(_0xe0f59c[_0x49791e(0x19d)]({'id':Y['id'],'params':{'unitId':_0x5e6c1c,'subUnitId':_0x2d66d9,'shapeId':_0xe0e3ad,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x393f76['push']({'id':Y['id'],'params':{'unitId':_0x5e6c1c,'subUnitId':_0x2d66d9,'shapeId':_0xe0e3ad,'shapeData':{'relation':_0x5b16fb}}}));}else{let _0x538071=this[_0x49791e(0x12b)][_0x49791e(0x190)](_0x5e6c1c,_0x2d66d9,_0xe0e3ad);if(_0x538071&&_0x538071['length']>0x0)for(let _0x3ccb50 of _0x538071){let _0x1ec173=_0x3ccb50[_0x49791e(0x11e)],_0x272dfd=_0x3ccb50['isFrom'],_0x3b4d7b=this['_sheetsShapeService'][_0x49791e(0x173)](_0x5e6c1c,_0x2d66d9,_0x1ec173);if(!_0x3b4d7b)continue;let _0x5033d4=_0x3b4d7b['getStartConnectInfo'](),_0x573cae=_0x3b4d7b['getEndConnectInfo']();_0x5033d4&&_0x573cae?this[_0x49791e(0x181)](_0x5e6c1c,_0x2d66d9,_0x1ec173,_0x3b4d7b,_0x5033d4,_0x573cae,_0xe0f59c,_0x393f76,_0xe0e3ad,_0x5a3927):this[_0x49791e(0x111)](_0x5e6c1c,_0x2d66d9,_0x1ec173,_0x3b4d7b,_0x272dfd?_0x5033d4:_0x573cae,_0x272dfd,_0xe0f59c,_0x393f76,_0xe0e3ad,_0x5a3927);}}}return{'preRedos':[],'redos':_0xe0f59c,'preUndos':_0x393f76,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3e0f44(0x17a)](_0x18c888,_0x31cd7d,_0xa82a3e,_0x4c8c74,_0x423ba5){const _0x1b1d42=_0x3e0f44;if(!_0x31cd7d||!_0xa82a3e)return null;let {shapeId:_0x411db4,cxnIndex:_0x5249aa}=_0x18c888,_0x17a0f6=this['_sheetsShapeService'][_0x1b1d42(0x173)](_0x31cd7d,_0xa82a3e,_0x411db4);if(!_0x17a0f6)return null;let _0x3811b7=this[_0x1b1d42(0x194)][_0x1b1d42(0x112)]({'unitId':_0x31cd7d,'subUnitId':_0xa82a3e,'drawingId':_0x411db4});if(!(_0x3811b7!=null&&_0x3811b7[_0x1b1d42(0x184)]))return null;let {left:_0x273c4e=0x0,top:_0x310fc9=0x0,width:_0x12f52d=0x0,height:_0x1a7c0=0x0,flipX:_0xa24b59=!0x1,flipY:_0x359599=!0x1,angle:_0x1eac7c}=_0x3811b7[_0x1b1d42(0x184)];if(_0x423ba5&&_0x4c8c74===_0x411db4){var _0x5c4f27,_0x40b15a,_0x3e4393,_0x34ff7e,_0x468713,_0x45864d,_0x3a07be;_0x273c4e=(_0x5c4f27=_0x423ba5[_0x1b1d42(0x15e)])==null?_0x273c4e:_0x5c4f27,_0x310fc9=(_0x40b15a=_0x423ba5['top'])==null?_0x310fc9:_0x40b15a,_0x12f52d=(_0x3e4393=_0x423ba5[_0x1b1d42(0x13d)])==null?_0x12f52d:_0x3e4393,_0x1a7c0=(_0x34ff7e=_0x423ba5['height'])==null?_0x1a7c0:_0x34ff7e,_0xa24b59=(_0x468713=_0x423ba5['flipX'])==null?_0xa24b59:_0x468713,_0x359599=(_0x45864d=_0x423ba5[_0x1b1d42(0x145)])==null?_0x359599:_0x45864d,_0x1eac7c=(_0x3a07be=_0x423ba5[_0x1b1d42(0x13f)])==null?_0x1eac7c:_0x3a07be;}_0x17a0f6[_0x1b1d42(0x122)]({'width':_0x12f52d,'height':_0x1a7c0});let _0x212805=_0x17a0f6[_0x1b1d42(0x1a0)]()[_0x1b1d42(0x19f)](_0x202918=>_0x202918[_0x1b1d42(0x149)]===_0x5249aa);if(!_0x212805)return null;let _0x4cd32a=_0xa24b59?_0x12f52d-_0x212805['x']:_0x212805['x'],_0x10b000=_0x359599?_0x1a7c0-_0x212805['y']:_0x212805['y'];if(_0x1eac7c!==0x0&&_0x1eac7c!=null){let _0x225365=_0x1eac7c*Math['PI']/0xb4,_0x421fd6=Math[_0x1b1d42(0x175)](_0x225365),_0x37e360=Math[_0x1b1d42(0x127)](_0x225365),_0xb008ec=_0x12f52d/0x2,_0x1d866e=_0x1a7c0/0x2,_0xa49e44=_0x4cd32a-_0xb008ec,_0x4812f6=_0x10b000-_0x1d866e;_0x4cd32a=_0xb008ec+_0xa49e44*_0x421fd6-_0x4812f6*_0x37e360,_0x10b000=_0x1d866e+_0xa49e44*_0x37e360+_0x4812f6*_0x421fd6;}_0x4cd32a+=_0x273c4e,_0x10b000+=_0x310fc9;let _0x38195b=_0x212805[_0x1b1d42(0x10a)]/0xea60;_0xa24b59&&(_0x38195b=0xb4-_0x38195b),_0x359599&&(_0x38195b=-_0x38195b),_0x38195b+=_0x1eac7c||0x0,_0x38195b=(_0x38195b%0x168+0x168)%0x168;let _0x1f34bf=_0x2f0722({'left':_0x273c4e,'top':_0x310fc9,'width':_0x12f52d,'height':_0x1a7c0},_0x1eac7c||0x0);return{'point':{'x':_0x4cd32a,'y':_0x10b000},'angle':_0x38195b,'bounds':_0x1f34bf};}[_0x3e0f44(0x181)](_0x182328,_0x1da4ba,_0x4d65d0,_0x31a399,_0xbed26d,_0x17ae1b,_0x3d19f1,_0x149dd5,_0x11e8ad,_0x47afa8){const _0x4c5db4=_0x3e0f44;let _0x24d59a=this[_0x4c5db4(0x193)][_0x4c5db4(0x144)](_0x182328,_0x1da4ba);if(!_0x24d59a)return;let _0x3c2bf7=_0x31a399[_0x4c5db4(0x158)](),_0x46701a=_0x31a399['getAdjustNames'](),_0x43d397={},_0x6a7d09={};_0x46701a[_0x4c5db4(0x124)](_0x3a886a=>{const _0x817df2=_0x4c5db4;let _0x50b742=_0x31a399[_0x817df2(0x170)](_0x3a886a);_0x6a7d09[_0x3a886a]=_0x50b742==null?0x0:_0x50b742;});let _0x2f3d35=this[_0x4c5db4(0x17a)](_0xbed26d,_0x182328,_0x1da4ba,_0x11e8ad,_0x47afa8),_0x12e4d1=this[_0x4c5db4(0x17a)](_0x17ae1b,_0x182328,_0x1da4ba,_0x11e8ad,_0x47afa8);if(_0x2f3d35&&_0x12e4d1){let _0x356724=_0x31a399[_0x4c5db4(0x135)](),_0x313329=_0x5b14d9(_0x2f3d35,_0x12e4d1,_0x356724),_0x2e2e7c=_0x356724;if(_0x313329){let _0x42ce3e=_0x8d0a05(_0x313329,_0x31a399[_0x4c5db4(0x135)]()),_0x34f459=this[_0x4c5db4(0x194)][_0x4c5db4(0x160)](_0x182328,_0x1da4ba);if(_0x34f459&&_0x34f459[_0x4d65d0]){let _0xb60947=_0x34f459[_0x4d65d0];_0x2e2e7c=_0x42ce3e[_0x4c5db4(0x180)];for(let [_0x6d8d71,_0x358e38]of Object[_0x4c5db4(0x192)](_0x42ce3e[_0x4c5db4(0x19e)]))_0x43d397[_0x6d8d71]=_0x358e38;let _0xf22c02={..._0xb60947[_0x4c5db4(0x184)],'width':_0x42ce3e[_0x4c5db4(0x11d)][_0x4c5db4(0x13d)],'height':_0x42ce3e[_0x4c5db4(0x11d)][_0x4c5db4(0x15b)],'left':_0x42ce3e[_0x4c5db4(0x11d)][_0x4c5db4(0x15e)],'top':_0x42ce3e[_0x4c5db4(0x11d)][_0x4c5db4(0x115)],'flipX':_0x42ce3e['worldRect'][_0x4c5db4(0x16b)],'flipY':_0x42ce3e['worldRect']['flipY'],'angle':_0x42ce3e['rotation']},_0xccdc04=_0x41bba7(_0xf22c02,_0x24d59a),_0x53d489=_0x59be66(_0xf22c02,_0x24d59a),_0x1cfa9c={'unitId':_0x182328,'subUnitId':_0x1da4ba,'drawingType':_0x171314[_0x4c5db4(0x164)],'drawingId':_0x4d65d0,'transform':_0xf22c02,'sheetTransform':_0xccdc04,'axisAlignSheetTransform':_0x53d489},{unitId:_0x1cb2de,subUnitId:_0x5f3be5,undo:_0x543e4b,redo:_0x3c90,objects:_0x2cb821}=this[_0x4c5db4(0x194)]['getBatchUpdateOp']([_0x1cfa9c]);_0x3d19f1['push']({'id':_0x2a1e2d['id'],'params':{'unitId':_0x1cb2de,'subUnitId':_0x5f3be5,'op':_0x3c90,'objects':_0x2cb821,'type':_0x1a4a4e[_0x4c5db4(0x131)]}}),_0x149dd5[_0x4c5db4(0x19d)]({'id':_0x2a1e2d['id'],'params':{'unitId':_0x1cb2de,'subUnitId':_0x5f3be5,'op':_0x543e4b,'objects':_0x2cb821,'type':_0x1a4a4e[_0x4c5db4(0x131)]}});}_0x31a399[_0x4c5db4(0x197)]();}_0x3d19f1[_0x4c5db4(0x19d)]({'id':Y['id'],'params':{'unitId':_0x182328,'subUnitId':_0x1da4ba,'shapeId':_0x4d65d0,'shapeType':_0x2e2e7c,'shapeData':{'adjustValues':_0x43d397,'relation':_0x3c2bf7}}}),_0x149dd5[_0x4c5db4(0x19d)]({'id':Y['id'],'params':{'unitId':_0x182328,'subUnitId':_0x1da4ba,'shapeId':_0x4d65d0,'shapeType':_0x356724,'shapeData':{'adjustValues':_0x6a7d09,'relation':_0x3c2bf7}}});}}['_addLineFollowShapeUpdates'](_0x1ccb7c,_0x59153a,_0x5b72c6,_0x387839,_0x3d607f,_0x3dbd0e,_0x281f43,_0x36cf51,_0x21717c,_0x1cad55){const _0x11f2eb=_0x3e0f44;var _0x21a29d;if(!_0x3d607f)return;let _0x3351ac=this['_sheetSkeletonService'][_0x11f2eb(0x144)](_0x1ccb7c,_0x59153a);if(!_0x3351ac)return;let _0x2a61a9=(_0x21a29d=this[_0x11f2eb(0x194)][_0x11f2eb(0x112)]({'unitId':_0x1ccb7c,'subUnitId':_0x59153a,'drawingId':_0x21717c}))==null?void 0x0:_0x21a29d[_0x11f2eb(0x184)];if(!_0x2a61a9)return;let _0x4b4769=_0x2a61a9[_0x11f2eb(0x15e)]!==_0x1cad55['left']||_0x2a61a9[_0x11f2eb(0x115)]!==_0x1cad55[_0x11f2eb(0x115)],_0x32bcf7=_0x2a61a9['width']!==_0x1cad55[_0x11f2eb(0x13d)]||_0x2a61a9[_0x11f2eb(0x15b)]!==_0x1cad55[_0x11f2eb(0x15b)],_0x47d73c=_0x2a61a9[_0x11f2eb(0x16b)]!==_0x1cad55[_0x11f2eb(0x16b)]||_0x2a61a9['flipY']!==_0x1cad55[_0x11f2eb(0x145)],_0x148708=_0x2a61a9[_0x11f2eb(0x13f)]!==_0x1cad55[_0x11f2eb(0x13f)];if(_0x4b4769&&!_0x32bcf7&&!_0x47d73c&&!_0x148708){var _0x4b4321,_0x4de82c,_0xeb6202,_0x47cc5b;let _0x2a23d5=((_0x4b4321=_0x1cad55[_0x11f2eb(0x15e)])==null?0x0:_0x4b4321)-((_0x4de82c=_0x2a61a9['left'])==null?0x0:_0x4de82c),_0x349eb3=((_0xeb6202=_0x1cad55[_0x11f2eb(0x115)])==null?0x0:_0xeb6202)-((_0x47cc5b=_0x2a61a9['top'])==null?0x0:_0x47cc5b),_0x4482c2=this['_drawingManagerService']['getDrawingData'](_0x1ccb7c,_0x59153a);if(_0x4482c2&&_0x4482c2[_0x5b72c6]){var _0x40e930,_0x495bb0,_0x6e87cf,_0x3e9cc1;let _0x5d760a=_0x4482c2[_0x5b72c6],_0x50c21f={..._0x5d760a[_0x11f2eb(0x184)],'left':((_0x40e930=(_0x495bb0=_0x5d760a[_0x11f2eb(0x184)])==null?void 0x0:_0x495bb0[_0x11f2eb(0x15e)])==null?0x0:_0x40e930)+_0x2a23d5,'top':((_0x6e87cf=(_0x3e9cc1=_0x5d760a[_0x11f2eb(0x184)])==null?void 0x0:_0x3e9cc1[_0x11f2eb(0x115)])==null?0x0:_0x6e87cf)+_0x349eb3},_0x477432=_0x41bba7(_0x50c21f,_0x3351ac),_0x2860a9=_0x59be66(_0x50c21f,_0x3351ac),_0xb0dda6={'unitId':_0x1ccb7c,'subUnitId':_0x59153a,'drawingType':_0x171314[_0x11f2eb(0x164)],'drawingId':_0x5b72c6,'transform':_0x50c21f,'sheetTransform':_0x477432,'axisAlignSheetTransform':_0x2860a9},{unitId:_0x39897c,subUnitId:_0x5f2a2a,undo:_0x639f07,redo:_0x4050c2,objects:_0x5c85a2}=this[_0x11f2eb(0x194)][_0x11f2eb(0x16c)]([_0xb0dda6]);_0x281f43[_0x11f2eb(0x19d)]({'id':_0x2a1e2d['id'],'params':{'unitId':_0x39897c,'subUnitId':_0x5f2a2a,'op':_0x4050c2,'objects':_0x5c85a2,'type':_0x1a4a4e[_0x11f2eb(0x131)]}}),_0x36cf51['push']({'id':_0x2a1e2d['id'],'params':{'unitId':_0x39897c,'subUnitId':_0x5f2a2a,'op':_0x639f07,'objects':_0x5c85a2,'type':_0x1a4a4e[_0x11f2eb(0x131)]}});}}else{let _0x37c8e5=_0x387839['getStartConnectInfo'](),_0x121e57=_0x387839[_0x11f2eb(0x151)]();this[_0x11f2eb(0x181)](_0x1ccb7c,_0x59153a,_0x5b72c6,_0x387839,_0x37c8e5,_0x121e57,_0x281f43,_0x36cf51,_0x21717c,_0x1cad55);}}};ce=W([U(0x0,_0x46216b),U(0x1,_0x136051(_0x53f707)),U(0x2,_0x136051(_0x566bb4)),U(0x3,_0x136051(G)),U(0x4,_0x136051(_0x38a742))],ce);function _0x5cad(_0x33c4eb,_0x27bfd8){_0x33c4eb=_0x33c4eb-0x105;const _0x1923d2=_0x1923();let _0x5cad75=_0x1923d2[_0x33c4eb];return _0x5cad75;}let $=class extends _0xefe177{constructor(_0x53f02d=se,_0x52409a,_0x5c9347,_0x7b4a51){const _0x50efb9=_0x3e0f44;super(),this[_0x50efb9(0x17c)]=_0x53f02d,this[_0x50efb9(0x17f)]=_0x52409a,this['_commandService']=_0x5c9347,this[_0x50efb9(0x16e)]=_0x7b4a51;let {..._0x1d7832}=_0xea1431({},se,this[_0x50efb9(0x17c)]);this['_configService']['setConfig'](oe,_0x1d7832);}[_0x3e0f44(0x15f)](){const _0x33a953=_0x3e0f44;let _0x185701=this['_injector'];[[H],[G],[ce]][_0x33a953(0x124)](_0x1dbf23=>_0x185701['add'](_0x1dbf23)),_0x3df3af(_0x185701,[[G],[ce]]);}};V($,'type',_0x339832['UNIVER_SHEET']),V($,_0x3e0f44(0x172),_0x3e0f44(0x16f)),V($,_0x3e0f44(0x15c),ie),V($,_0x3e0f44(0x130),ae),$=W([_0xadff15(_0x27586c),U(0x1,_0x136051(_0x50498c)),U(0x2,_0x46216b),U(0x3,_0x123a36)],$);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,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,Z as UpdateConnectorRelationCommand,ne as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,re as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x54b81e=_0x3e72;(function(_0x421603,_0x4f8401){const _0x1eedd8=_0x3e72,_0x326317=_0x421603();while(!![]){try{const _0x5d751c=parseInt(_0x1eedd8(0x191))/0x1*(-parseInt(_0x1eedd8(0x1ea))/0x2)+parseInt(_0x1eedd8(0x1e9))/0x3*(-parseInt(_0x1eedd8(0x1b9))/0x4)+-parseInt(_0x1eedd8(0x1f4))/0x5+parseInt(_0x1eedd8(0x1e0))/0x6*(-parseInt(_0x1eedd8(0x1ef))/0x7)+parseInt(_0x1eedd8(0x192))/0x8*(parseInt(_0x1eedd8(0x195))/0x9)+parseInt(_0x1eedd8(0x1a2))/0xa+parseInt(_0x1eedd8(0x1b0))/0xb*(parseInt(_0x1eedd8(0x1dd))/0xc);if(_0x5d751c===_0x4f8401)break;else _0x326317['push'](_0x326317['shift']());}catch(_0x4fb0cf){_0x326317['push'](_0x326317['shift']());}}}(_0x4630,0xa1b21));import{ConnectorCoordinateTransform as _0x1c99c4,ShapeArrowSizeEnum as _0x191895,ShapeArrowTypeEnum as _0x55a3c5,ShapeFillEnum as _0xef5bca,ShapeGradientTypeEnum as _0x20a053,ShapeLineCapEnum as _0x1aa24e,ShapeLineDashEnum as _0x1581f6,ShapeLineJoinEnum as _0xf529c4,ShapeLineTypeEnum as _0xe76dd1,ShapeTypeEnum as _0x15c825,computeConnectorRouteLayout as _0x2f7958,getBasicShapeRotateBound as _0x18b681,isConnectorShape as _0x105362,routeConnectorLineShape as _0x10e3b1}from'@univerjs-pro/engine-shape';import{FEnum as _0x3e6104}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x2d723d,DEFAULT_SHAPE_WIDTH as _0x465346,InsertShapeCommand as _0x323602,SetShapeDrawingDataCommand as _0x319a78,SheetsShapeService as _0x5ad4d6,UpdateConnectorRelationCommand as _0x1759cb}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x26e12b,generateRandomId as _0x21137f}from'@univerjs/core';import{IDrawingManagerService as _0x4a5a7c}from'@univerjs/drawing';import{SheetSkeletonService as _0x2d2634,convertPositionCellToSheetOverGrid as _0x559898}from'@univerjs/sheets';import{ISheetDrawingService as _0x3df9e3,RemoveSheetDrawingCommand as _0x409d03}from'@univerjs/sheets-drawing';import{FWorksheet as _0x5e6e8d}from'@univerjs/sheets/facade';var k=class extends _0x3e6104{get[_0x54b81e(0x1e6)](){return _0x15c825;}get[_0x54b81e(0x1c2)](){return _0xef5bca;}get[_0x54b81e(0x1ab)](){return _0x20a053;}get[_0x54b81e(0x1f1)](){return _0xe76dd1;}get[_0x54b81e(0x1ff)](){return _0x1581f6;}get[_0x54b81e(0x1f5)](){return _0x1aa24e;}get[_0x54b81e(0x194)](){return _0xf529c4;}get[_0x54b81e(0x1d1)](){return _0x55a3c5;}get[_0x54b81e(0x1da)](){return _0x191895;}};function _0x3e72(_0x39134c,_0x50ea08){_0x39134c=_0x39134c-0x187;const _0x4630fc=_0x4630();let _0x3e7217=_0x4630fc[_0x39134c];return _0x3e7217;}_0x3e6104[_0x54b81e(0x1c1)](k);function A(_0x2240f9){'@babel/helpers - typeof';const _0x32dd34=_0x54b81e;return A=typeof Symbol==_0x32dd34(0x1c4)&&typeof Symbol[_0x32dd34(0x1eb)]==_0x32dd34(0x1e8)?function(_0x2bc77d){return typeof _0x2bc77d;}:function(_0x242175){const _0x55e714=_0x32dd34;return _0x242175&&typeof Symbol==_0x55e714(0x1c4)&&_0x242175['constructor']===Symbol&&_0x242175!==Symbol[_0x55e714(0x19a)]?_0x55e714(0x1e8):typeof _0x242175;},A(_0x2240f9);}function j(_0x6e0e88,_0x209300){const _0x4dc525=_0x54b81e;if(A(_0x6e0e88)!='object'||!_0x6e0e88)return _0x6e0e88;var _0x48e565=_0x6e0e88[Symbol[_0x4dc525(0x1cd)]];if(_0x48e565!==void 0x0){var _0x272e79=_0x48e565['call'](_0x6e0e88,_0x209300||_0x4dc525(0x18b));if(A(_0x272e79)!=_0x4dc525(0x202))return _0x272e79;throw TypeError(_0x4dc525(0x1a1));}return(_0x209300==='string'?String:Number)(_0x6e0e88);}function M(_0x2d3265){const _0x4c15e8=_0x54b81e;var _0x3165a1=j(_0x2d3265,_0x4c15e8(0x1fe));return A(_0x3165a1)==_0x4c15e8(0x1e8)?_0x3165a1:_0x3165a1+'';}function N(_0x6df61f,_0xbb4db9,_0x4fa721){const _0x174cb4=_0x54b81e;return(_0xbb4db9=M(_0xbb4db9))in _0x6df61f?Object[_0x174cb4(0x1e3)](_0x6df61f,_0xbb4db9,{'value':_0x4fa721,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x6df61f[_0xbb4db9]=_0x4fa721,_0x6df61f;}var P=class{constructor(_0x118160,_0x400429,_0x952a99,_0x2877a7){const _0x2c179d=_0x54b81e;N(this,'unitId',void 0x0),N(this,'subUnitId',void 0x0),N(this,_0x2c179d(0x20d),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,'width',_0x465346),N(this,_0x2c179d(0x1fc),_0x2d723d),N(this,_0x2c179d(0x1d5),void 0x0),N(this,_0x2c179d(0x1a9),{}),N(this,_0x2c179d(0x1bd),void 0x0),this['unitId']=_0x118160,this[_0x2c179d(0x209)]=_0x400429,this[_0x2c179d(0x20d)]=_0x952a99||_0x21137f(),this['_injector']=_0x2877a7;}[_0x54b81e(0x1aa)](_0x318b8a,_0x3bc841,_0x38717e,_0x76451f){const _0x3728fb=_0x54b81e;let _0x1ff2a4=this[_0x3728fb(0x1bd)][_0x3728fb(0x1ed)](_0x2d2634)[_0x3728fb(0x1b1)](this[_0x3728fb(0x19b)],this[_0x3728fb(0x209)]);if(!_0x1ff2a4)throw Error(_0x3728fb(0x188)+this[_0x3728fb(0x19b)]+'\x20and\x20subUnitId\x20'+this[_0x3728fb(0x209)]+'\x20not\x20found');let {transform:_0x451b69}=_0x559898(this['unitId'],this[_0x3728fb(0x209)],{'row':_0x318b8a,'column':_0x3bc841,'rowOffset':_0x38717e,'columnOffset':_0x76451f},0x1,0x1,_0x1ff2a4);return this['x']=_0x451b69['left'],this['y']=_0x451b69[_0x3728fb(0x18d)],this;}[_0x54b81e(0x1e5)](_0x181e5e,_0x25e9be){return this['x']=_0x181e5e,this['y']=_0x25e9be,this;}[_0x54b81e(0x1d3)](_0x261f19){const _0x347df4=_0x54b81e;return this[_0x347df4(0x1d5)]=_0x261f19,this;}[_0x54b81e(0x1b6)](_0xf3004c,_0x18945b){const _0xdafb73=_0x54b81e;return this['shapeData'][_0xdafb73(0x1f2)]||(this[_0xdafb73(0x1a9)][_0xdafb73(0x1f2)]={}),this[_0xdafb73(0x1a9)][_0xdafb73(0x1f2)][_0xdafb73(0x1a0)]=_0xef5bca[_0xdafb73(0x1ba)],_0xf3004c!==void 0x0&&(this[_0xdafb73(0x1a9)][_0xdafb73(0x1f2)][_0xdafb73(0x1be)]=_0xf3004c),_0x18945b!==void 0x0&&(this[_0xdafb73(0x1a9)][_0xdafb73(0x1f2)][_0xdafb73(0x1bf)]=_0x18945b),this;}[_0x54b81e(0x1f8)](_0x737110,_0x517df4,_0x143830){const _0x26ee0d=_0x54b81e;if(_0x517df4===void 0x0||_0x517df4[_0x26ee0d(0x1f6)]===0x0)throw Error(_0x26ee0d(0x1f7));return this[_0x26ee0d(0x1a9)][_0x26ee0d(0x1f2)]||(this['shapeData']['fill']={}),this[_0x26ee0d(0x1a9)][_0x26ee0d(0x1f2)][_0x26ee0d(0x20e)]=_0x517df4,this[_0x26ee0d(0x1a9)][_0x26ee0d(0x1f2)][_0x26ee0d(0x1a0)]=_0xef5bca[_0x26ee0d(0x18c)],this[_0x26ee0d(0x1a9)]['fill'][_0x26ee0d(0x208)]=_0x737110,_0x143830!==void 0x0&&(this['shapeData'][_0x26ee0d(0x1f2)][_0x26ee0d(0x1af)]=_0x143830),this;}[_0x54b81e(0x1c3)](){const _0x4d6085=_0x54b81e;return this[_0x4d6085(0x1a9)][_0x4d6085(0x1f2)]={'fillType':_0xef5bca['NoFill']},this;}[_0x54b81e(0x193)](_0x59ac2b){const _0x409f8d=_0x54b81e;return this[_0x409f8d(0x1a9)][_0x409f8d(0x1f3)]||(this[_0x409f8d(0x1a9)][_0x409f8d(0x1f3)]={}),this[_0x409f8d(0x1a9)][_0x409f8d(0x1f3)]['color']=_0x59ac2b,this;}[_0x54b81e(0x1cb)](_0x4df7bf){const _0x5f2d4a=_0x54b81e;return this['shapeData'][_0x5f2d4a(0x1f3)]||(this['shapeData'][_0x5f2d4a(0x1f3)]={}),this[_0x5f2d4a(0x1a9)][_0x5f2d4a(0x1f3)][_0x5f2d4a(0x1b2)]=_0x4df7bf,this;}[_0x54b81e(0x19f)](_0x1a8925){const _0x41559f=_0x54b81e;return this[_0x41559f(0x1a9)][_0x41559f(0x1f3)]||(this[_0x41559f(0x1a9)][_0x41559f(0x1f3)]={}),this['shapeData'][_0x41559f(0x1f3)][_0x41559f(0x1c7)]=_0x1a8925,this;}[_0x54b81e(0x197)](_0x298243){const _0x160bb7=_0x54b81e;return this['shapeData']['stroke']||(this['shapeData'][_0x160bb7(0x1f3)]={}),this[_0x160bb7(0x1a9)]['stroke'][_0x160bb7(0x1b7)]=_0x298243,this;}[_0x54b81e(0x20c)](_0x5378c5){const _0x285055=_0x54b81e;return this[_0x285055(0x1a9)]['stroke']||(this[_0x285055(0x1a9)][_0x285055(0x1f3)]={}),this['shapeData']['stroke'][_0x285055(0x1f0)]=_0x5378c5,this;}[_0x54b81e(0x196)](_0x13ddb8){const _0x43458e=_0x54b81e;return this[_0x43458e(0x1a9)][_0x43458e(0x1f3)]||(this[_0x43458e(0x1a9)][_0x43458e(0x1f3)]={}),this['shapeData'][_0x43458e(0x1f3)][_0x43458e(0x1bf)]=_0x13ddb8,this;}['setStrokeLineType'](_0x5ca4d0){const _0x4424f8=_0x54b81e;return this[_0x4424f8(0x1a9)][_0x4424f8(0x1f3)]||(this[_0x4424f8(0x1a9)][_0x4424f8(0x1f3)]={}),this['shapeData'][_0x4424f8(0x1f3)][_0x4424f8(0x19d)]=_0x5ca4d0,this;}['setWidth'](_0x58c506){return this['width']=_0x58c506,this;}[_0x54b81e(0x187)](_0x35cb0c){const _0x23956e=_0x54b81e;return this[_0x23956e(0x1fc)]=_0x35cb0c,this;}[_0x54b81e(0x1bb)](){const _0xc44c3d=_0x54b81e;let _0x195d73=this[_0xc44c3d(0x1bd)]['get'](_0x5ad4d6)['getShapeModel'](this[_0xc44c3d(0x19b)],this[_0xc44c3d(0x209)],this[_0xc44c3d(0x20d)]);return _0x195d73?_0x105362(_0x195d73[_0xc44c3d(0x1bc)]()):this[_0xc44c3d(0x1d5)]?_0x105362(this['shapeType']):!0x1;}[_0x54b81e(0x20b)](){const _0x308856=_0x54b81e;let _0x3f7a81=this['_injector'][_0x308856(0x1ed)](_0x5ad4d6)[_0x308856(0x204)](this[_0x308856(0x19b)],this[_0x308856(0x209)],this[_0x308856(0x20d)]);if(!_0x3f7a81)return[];let _0x16853d=this['_injector']['get'](_0x4a5a7c)[_0x308856(0x1fa)]({'unitId':this['unitId'],'subUnitId':this[_0x308856(0x209)],'drawingId':this[_0x308856(0x20d)]});if(!(_0x16853d!=null&&_0x16853d['transform']))return[];let {width:_0x4005d4=0x0,height:_0x25ac89=0x0}=_0x16853d['transform'];return _0x3f7a81['updateContext']({'width':_0x4005d4,'height':_0x25ac89}),_0x3f7a81[_0x308856(0x1c6)]();}['getAdjustPoints'](){const _0x5c8451=_0x54b81e;let _0x5540b9=this[_0x5c8451(0x1bd)][_0x5c8451(0x1ed)](_0x5ad4d6)[_0x5c8451(0x204)](this[_0x5c8451(0x19b)],this['subUnitId'],this[_0x5c8451(0x20d)]);if(!_0x5540b9)return[];let _0x48cd12=this[_0x5c8451(0x1bd)]['get'](_0x4a5a7c)[_0x5c8451(0x1fa)]({'unitId':this[_0x5c8451(0x19b)],'subUnitId':this[_0x5c8451(0x209)],'drawingId':this[_0x5c8451(0x20d)]});if(!(_0x48cd12!=null&&_0x48cd12[_0x5c8451(0x1ee)]))return[];let {width:_0x53d328=0x0,height:_0x3e9d6a=0x0}=_0x48cd12[_0x5c8451(0x1ee)];return _0x5540b9[_0x5c8451(0x1c8)]({'width':_0x53d328,'height':_0x3e9d6a}),_0x5540b9['getDrawingPoints']();}[_0x54b81e(0x1c5)](){const _0xe5f003=_0x54b81e;let _0x455a7a=this[_0xe5f003(0x1bd)][_0xe5f003(0x1ed)](_0x5ad4d6)[_0xe5f003(0x204)](this[_0xe5f003(0x19b)],this[_0xe5f003(0x209)],this[_0xe5f003(0x20d)]);if(!_0x455a7a||!_0x105362(_0x455a7a[_0xe5f003(0x1bc)]()))return[];let _0x1b7794=this['_injector']['get'](_0x4a5a7c)[_0xe5f003(0x1fa)]({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this[_0xe5f003(0x20d)]});if(!(_0x1b7794!=null&&_0x1b7794['transform']))return[];let {width:_0x51b234=0x0,height:_0x4c26b9=0x0}=_0x1b7794['transform'];return _0x455a7a[_0xe5f003(0x1c8)]({'width':_0x51b234,'height':_0x4c26b9}),_0x455a7a[_0xe5f003(0x1c5)]();}['getStartConnectInfo'](){const _0x34f2de=_0x54b81e;var _0x46e852;let _0x38a239=this[_0x34f2de(0x1bd)][_0x34f2de(0x1ed)](_0x5ad4d6)[_0x34f2de(0x204)](this[_0x34f2de(0x19b)],this[_0x34f2de(0x209)],this[_0x34f2de(0x20d)]);return _0x38a239?(_0x46e852=_0x38a239[_0x34f2de(0x190)]())==null?null:_0x46e852:null;}[_0x54b81e(0x18a)](){const _0x31f4f9=_0x54b81e;var _0x397d7b;let _0x2878fd=this[_0x31f4f9(0x1bd)][_0x31f4f9(0x1ed)](_0x5ad4d6)['getShapeModel'](this['unitId'],this[_0x31f4f9(0x209)],this[_0x31f4f9(0x20d)]);return _0x2878fd?(_0x397d7b=_0x2878fd[_0x31f4f9(0x18a)]())==null?null:_0x397d7b:null;}[_0x54b81e(0x18e)](){const _0x4646bd=_0x54b81e;var _0x349ded,_0x24237c;if(!this[_0x4646bd(0x1d5)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x351524=this[_0x4646bd(0x1bd)][_0x4646bd(0x1ed)](_0x2d2634)[_0x4646bd(0x1b1)](this['unitId'],this[_0x4646bd(0x209)]);if(!_0x351524)throw Error(_0x4646bd(0x188)+this[_0x4646bd(0x19b)]+_0x4646bd(0x1e7)+this[_0x4646bd(0x209)]+'\x20not\x20found');let {transform:_0xe08ca3}=_0x559898(this['unitId'],this[_0x4646bd(0x209)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x351524);this['x']=this['x']>0x0?this['x']:_0xe08ca3[_0x4646bd(0x19c)],this['y']=this['y']>0x0?this['y']:_0xe08ca3[_0x4646bd(0x18d)];}return this[_0x4646bd(0x1b2)]=(_0x349ded=this['width'])==null?_0x465346:_0x349ded,this[_0x4646bd(0x1fc)]=(_0x24237c=this[_0x4646bd(0x1fc)])==null?_0x2d723d:_0x24237c,{'unitId':this[_0x4646bd(0x19b)],'subUnitId':this[_0x4646bd(0x209)],'shapeId':this[_0x4646bd(0x20d)],'shapeType':this[_0x4646bd(0x1d5)],'shapeData':Object['keys'](this[_0x4646bd(0x1a9)])[_0x4646bd(0x1f6)]>0x0?this[_0x4646bd(0x1a9)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x4646bd(0x1b2)],'height':this['height']};}[_0x54b81e(0x189)](){return this['drawId'];}['getShapeType'](){const _0x4af4cc=_0x54b81e;return this[_0x4af4cc(0x1d5)];}[_0x54b81e(0x1d6)](){return this['shapeData'];}[_0x54b81e(0x18f)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0x376e17=_0x54b81e;return{'width':this[_0x376e17(0x1b2)],'height':this['height']};}},F=class extends P{constructor(_0x1469cb,_0x56b468,_0x32ddc0,_0x38b56e){const _0x5223a8=_0x54b81e;super(_0x1469cb,_0x56b468,_0x32ddc0,_0x38b56e),N(this,_0x5223a8(0x1a9),{});}[_0x54b81e(0x1d3)](_0x1931d9){const _0xc88027=_0x54b81e;if(!_0x105362(_0x1931d9))throw Error('Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20'+_0x1931d9+_0xc88027(0x1ad));return super[_0xc88027(0x1d3)](_0x1931d9),this;}['setStartArrowType'](_0x5410b4){const _0x3a9580=_0x54b81e;var _0x445fae,_0x4c63ff;return(_0x445fae=this[_0x3a9580(0x1a9)])!=null&&_0x445fae['ln']||(this['shapeData']['ln']={}),!((_0x4c63ff=this['shapeData'])==null||(_0x4c63ff=_0x4c63ff['ln'])==null)&&_0x4c63ff[_0x3a9580(0x1ca)]||(this[_0x3a9580(0x1a9)]['ln'][_0x3a9580(0x1ca)]={}),this[_0x3a9580(0x1a9)]['ln'][_0x3a9580(0x1ca)][_0x3a9580(0x198)]=_0x5410b4,this;}[_0x54b81e(0x1de)](_0x2bcfa0){const _0x4f99fc=_0x54b81e;var _0x589847,_0x473ed2;return(_0x589847=this[_0x4f99fc(0x1a9)])!=null&&_0x589847['ln']||(this['shapeData']['ln']={}),!((_0x473ed2=this[_0x4f99fc(0x1a9)])==null||(_0x473ed2=_0x473ed2['ln'])==null)&&_0x473ed2[_0x4f99fc(0x1c9)]||(this[_0x4f99fc(0x1a9)]['ln'][_0x4f99fc(0x1c9)]={}),this['shapeData']['ln'][_0x4f99fc(0x1c9)][_0x4f99fc(0x198)]=_0x2bcfa0,this;}[_0x54b81e(0x200)](_0x854b38){const _0x3aedd5=_0x54b81e;var _0x3f667c,_0x446142;return(_0x3f667c=this[_0x3aedd5(0x1a9)])!=null&&_0x3f667c['ln']||(this[_0x3aedd5(0x1a9)]['ln']={}),!((_0x446142=this[_0x3aedd5(0x1a9)])==null||(_0x446142=_0x446142['ln'])==null)&&_0x446142[_0x3aedd5(0x1ca)]||(this[_0x3aedd5(0x1a9)]['ln']['startArrow']={}),this[_0x3aedd5(0x1a9)]['ln'][_0x3aedd5(0x1ca)]['size']=_0x854b38,this;}['setEndArrowSize'](_0x43230d){const _0x6c3623=_0x54b81e;var _0x4ba8c9,_0x10c265;return(_0x4ba8c9=this[_0x6c3623(0x1a9)])!=null&&_0x4ba8c9['ln']||(this['shapeData']['ln']={}),!((_0x10c265=this['shapeData'])==null||(_0x10c265=_0x10c265['ln'])==null)&&_0x10c265[_0x6c3623(0x1c9)]||(this[_0x6c3623(0x1a9)]['ln'][_0x6c3623(0x1c9)]={}),this[_0x6c3623(0x1a9)]['ln'][_0x6c3623(0x1c9)][_0x6c3623(0x1d7)]=_0x43230d,this;}[_0x54b81e(0x18e)](){const _0x461ce8=_0x54b81e;return super[_0x461ce8(0x18e)]();}[_0x54b81e(0x18a)](){const _0x3096c8=_0x54b81e;var _0x805345;return((_0x805345=this[_0x3096c8(0x1a9)])==null||(_0x805345=_0x805345['relation'])==null?void 0x0:_0x805345['to'])||null;}[_0x54b81e(0x190)](){const _0xb1bb60=_0x54b81e;var _0x20f0aa;return((_0x20f0aa=this[_0xb1bb60(0x1a9)])==null||(_0x20f0aa=_0x20f0aa[_0xb1bb60(0x1ac)])==null?void 0x0:_0x20f0aa['from'])||null;}};function I(_0x21d9e6,_0x4714cf,_0xf6def3,_0x33fa85,_0x42a00b,_0x3c9db4){const _0x5f41a8=_0x54b81e;let _0x353655=_0x42a00b['getShapeModel'](_0x21d9e6,_0x4714cf,_0xf6def3);if(!_0x353655)return null;let _0x2d2dc3=_0x3c9db4[_0x5f41a8(0x1fa)]({'unitId':_0x21d9e6,'subUnitId':_0x4714cf,'drawingId':_0xf6def3});if(!(_0x2d2dc3!=null&&_0x2d2dc3['transform']))return null;let {left:_0x44cdff=0x0,top:_0x36f51f=0x0,width:_0x152596=0x0,height:_0x3da4de=0x0,flipX:_0x152da3=!0x1,flipY:_0xf2ac95=!0x1,angle:_0x5a62bf}=_0x2d2dc3[_0x5f41a8(0x1ee)];_0x353655[_0x5f41a8(0x1c8)]({'width':_0x152596,'height':_0x3da4de});let _0x5d2060=_0x353655[_0x5f41a8(0x1c6)]()[_0x5f41a8(0x1a7)](_0x530fba=>_0x530fba[_0x5f41a8(0x1a5)]===_0x33fa85);if(!_0x5d2060)return null;let _0x4534b6=_0x152da3?_0x152596-_0x5d2060['x']:_0x5d2060['x'],_0x4bc27a=_0xf2ac95?_0x3da4de-_0x5d2060['y']:_0x5d2060['y'];if(_0x5a62bf&&_0x5a62bf!==0x0){let _0x4eedd5=_0x5a62bf*Math['PI']/0xb4,_0x5efbfa=Math[_0x5f41a8(0x199)](_0x4eedd5),_0x5085e1=Math[_0x5f41a8(0x1b8)](_0x4eedd5),_0x1bcdbd=_0x152596/0x2,_0x1bd527=_0x3da4de/0x2,_0x4fdda5=_0x4534b6-_0x1bcdbd,_0x2cf7f5=_0x4bc27a-_0x1bd527;_0x4534b6=_0x1bcdbd+_0x4fdda5*_0x5efbfa-_0x2cf7f5*_0x5085e1,_0x4bc27a=_0x1bd527+_0x4fdda5*_0x5085e1+_0x2cf7f5*_0x5efbfa;}_0x4534b6+=_0x44cdff,_0x4bc27a+=_0x36f51f;let _0x43e7e0=_0x5d2060['ang']/0xea60;_0x152da3&&(_0x43e7e0=0xb4-_0x43e7e0),_0xf2ac95&&(_0x43e7e0=-_0x43e7e0),_0x43e7e0+=_0x5a62bf||0x0,_0x43e7e0=(_0x43e7e0%0x168+0x168)%0x168;let _0xbf6f3d=_0x18b681({'left':_0x44cdff,'top':_0x36f51f,'width':_0x152596,'height':_0x3da4de},_0x5a62bf||0x0);return{'point':{'x':_0x4534b6,'y':_0x4bc27a},'angle':_0x43e7e0,'bounds':_0xbf6f3d};}function L(_0x4f13f4,_0x37ebaf){const _0x3346ce=_0x54b81e;let _0x17be9e=_0x37ebaf['x']-_0x4f13f4['x'],_0x49d0ea=_0x37ebaf['y']-_0x4f13f4['y'];return Math[_0x3346ce(0x1db)](_0x17be9e)>=Math['abs'](_0x49d0ea)?_0x17be9e>=0x0?0xb4:0x0:_0x49d0ea>=0x0?0x10e:0x5a;}function R(_0x5ce434,_0x30b722,_0x17d664,_0x354c05,_0x4185f4,_0x53dd57,_0x170dcb){const _0x53a1ca=_0x54b81e;let _0x4a8a60=_0x53dd57[_0x53a1ca(0x204)](_0x5ce434,_0x30b722,_0x17d664);if(!_0x4a8a60)return null;let _0x4d4db1=_0x170dcb[_0x53a1ca(0x1fa)]({'unitId':_0x5ce434,'subUnitId':_0x30b722,'drawingId':_0x17d664});if(!(_0x4d4db1!=null&&_0x4d4db1[_0x53a1ca(0x1ee)]))return null;let {left:_0x45b73e=0x0,top:_0x4c342c=0x0,width:_0x77f1e9=0x0,height:_0x64af1a=0x0,flipX:_0x3a7702=!0x1,flipY:_0x304454=!0x1}=_0x4d4db1[_0x53a1ca(0x1ee)];_0x4a8a60[_0x53a1ca(0x1c8)]({'width':_0x77f1e9,'height':_0x64af1a});let _0x2bb6e1=_0x4a8a60[_0x53a1ca(0x1c5)]();if(_0x2bb6e1[_0x53a1ca(0x1f6)]<0x2)return null;let _0x3ae722=_0x354c05?_0x2bb6e1[0x0]:_0x2bb6e1[_0x2bb6e1['length']-0x1],_0x2fafd6=new _0x1c99c4({'left':_0x45b73e,'top':_0x4c342c,'width':_0x77f1e9,'height':_0x64af1a,'flipX':_0x3a7702,'flipY':_0x304454})['localToWorld'](_0x3ae722);return{'point':_0x2fafd6,'angle':L(_0x4185f4[_0x53a1ca(0x206)],_0x2fafd6),'bounds':{'left':_0x2fafd6['x'],'top':_0x2fafd6['y'],'width':0x0,'height':0x0}};}var z=class extends _0x5e6e8d{async[_0x54b81e(0x1f9)](_0x4c89bd){const _0x12617c=_0x54b81e;let {unitId:_0x30415e,subUnitId:_0x49b68f,shapeId:_0x239849,shapeType:_0x24bb1a,shapeData:_0x4f9f19,x:_0x39d792,y:_0x3a9b28,width:_0x57eb45,height:_0x384b0b}=_0x4c89bd;return this[_0x12617c(0x1b4)][_0x12617c(0x1e2)](_0x323602['id'],{'unitId':_0x30415e,'subUnitId':_0x49b68f,'shapeId':_0x239849,'shapeType':_0x24bb1a,'shapeData':_0x4f9f19,'position':{'x':_0x39d792,'y':_0x3a9b28},'width':_0x57eb45,'height':_0x384b0b});}async[_0x54b81e(0x1cf)](_0x185bd3){const _0x964c4e=_0x54b81e;let {unitId:_0x5788fe,subUnitId:_0x299118,shapeId:_0x51952e,shapeType:_0x33ff36,shapeData:_0x55197e,x:_0xdd91d9,y:_0x1f207b,width:_0x42aba9,height:_0x52b1da}=_0x185bd3;return this[_0x964c4e(0x1b4)][_0x964c4e(0x1e2)](_0x319a78['id'],{'unitId':_0x5788fe,'subUnitId':_0x299118,'shapeId':_0x51952e,'shapeType':_0x33ff36,'shapeData':_0x55197e,'position':{'x':_0xdd91d9,'y':_0x1f207b},'width':_0x42aba9,'height':_0x52b1da});}[_0x54b81e(0x1fb)](_0x8575f6){const _0x15a2cb=_0x54b81e;let _0x358a38=this[_0x15a2cb(0x1df)]()[_0x15a2cb(0x205)](),_0x50f8be=this[_0x15a2cb(0x1d8)]();if(_0x8575f6){let _0x55ed05=new P(_0x358a38,_0x50f8be,_0x8575f6[_0x15a2cb(0x20d)],this[_0x15a2cb(0x1bd)]);return this[_0x15a2cb(0x1ae)](_0x55ed05,_0x358a38,_0x50f8be,_0x8575f6[_0x15a2cb(0x20d)]),_0x55ed05;}return new P(_0x358a38,_0x50f8be,_0x21137f(),this[_0x15a2cb(0x1bd)]);}[_0x54b81e(0x1b3)](_0x41864a){const _0x3c332c=_0x54b81e;let _0x10817f=this[_0x3c332c(0x1df)]()[_0x3c332c(0x205)](),_0x4cca60=this['getSheetId']();if(_0x41864a){let _0x16c254=new F(_0x10817f,_0x4cca60,_0x41864a[_0x3c332c(0x20d)],this[_0x3c332c(0x1bd)]);return this['_preloadShapeProperties'](_0x16c254,_0x10817f,_0x4cca60,_0x41864a[_0x3c332c(0x20d)]),_0x16c254;}return new F(_0x10817f,_0x4cca60,_0x21137f(),this[_0x3c332c(0x1bd)]);}[_0x54b81e(0x1cc)](){const _0x3932fb=_0x54b81e;let _0x4b2598=this[_0x3932fb(0x1bd)]['get'](_0x3df9e3),_0x3fd945=this[_0x3932fb(0x1df)]()[_0x3932fb(0x205)](),_0x42ce7d=this[_0x3932fb(0x1d8)](),_0x44f335=_0x4b2598[_0x3932fb(0x19e)](_0x3fd945,_0x42ce7d);if(!_0x44f335)return[];let _0x56e0d9=[];for(let [_0x4c8f31,_0x516086]of Object['entries'](_0x44f335))if(_0x516086&&_0x516086[_0x3932fb(0x1a4)]===_0x26e12b[_0x3932fb(0x1a6)]){let _0x26cde7=new P(_0x3fd945,_0x42ce7d,_0x4c8f31,this['_injector']);this[_0x3932fb(0x1ae)](_0x26cde7,_0x3fd945,_0x42ce7d,_0x4c8f31),_0x56e0d9[_0x3932fb(0x1e4)](_0x26cde7);}return _0x56e0d9;}[_0x54b81e(0x1ec)](_0x2f0ba8){const _0x399d93=_0x54b81e;let {unitId:_0x5d510c,subUnitId:_0x7fd1ba,drawId:_0x2957f4}=_0x2f0ba8;return this[_0x399d93(0x1b4)][_0x399d93(0x1e2)](_0x409d03['id'],{'unitId':_0x5d510c,'drawings':[{'unitId':_0x5d510c,'subUnitId':_0x7fd1ba,'drawingId':_0x2957f4,'drawingType':_0x26e12b[_0x399d93(0x1a6)]}]});}async[_0x54b81e(0x1a3)](_0x24067d){const _0x12c2d3=_0x54b81e;let {connector:_0x1beb45,startTarget:_0x16cea5,endTarget:_0xbb7992}=_0x24067d;if(!_0x16cea5&&!_0xbb7992)return!0x1;let _0x3bcbc9=this['getWorkbook']()[_0x12c2d3(0x205)](),_0x1f9d35=this[_0x12c2d3(0x1d8)](),_0x520d7e=this[_0x12c2d3(0x1bd)][_0x12c2d3(0x1ed)](_0x5ad4d6),_0xad06b2=this[_0x12c2d3(0x1bd)][_0x12c2d3(0x1ed)](_0x4a5a7c),_0x401eba=_0x520d7e[_0x12c2d3(0x204)](_0x3bcbc9,_0x1f9d35,_0x1beb45['drawId']);if(!_0x401eba)return!0x1;let _0x176b77=_0x401eba[_0x12c2d3(0x1bc)](),_0x2b8b8e=_0x401eba[_0x12c2d3(0x1ce)](),_0x3678af={};for(let _0x482089 of _0x401eba[_0x12c2d3(0x1d2)]()){let _0x116d59=_0x401eba[_0x12c2d3(0x1d4)](_0x482089);_0x116d59!==void 0x0&&(_0x3678af[_0x482089]=_0x116d59);}let {startInfo:_0x33ac67,endInfo:_0x2a6595}=this[_0x12c2d3(0x207)](_0x3bcbc9,_0x1f9d35,_0x1beb45,_0x401eba,_0x16cea5,_0xbb7992,_0x520d7e,_0xad06b2,_0x2b8b8e);if(!_0x33ac67||!_0x2a6595)return!0x1;let _0x4556b6=_0x2f7958(_0x10e3b1(_0x33ac67,_0x2a6595,_0x176b77),_0x176b77),_0x23931a={};return _0x16cea5?_0x23931a['from']={'shapeId':_0x16cea5[_0x12c2d3(0x1e1)][_0x12c2d3(0x20d)],'cxnIndex':_0x16cea5[_0x12c2d3(0x20a)]}:_0x2b8b8e!=null&&_0x2b8b8e[_0x12c2d3(0x1d0)]&&(_0x23931a[_0x12c2d3(0x1d0)]=_0x2b8b8e['from']),_0xbb7992?_0x23931a['to']={'shapeId':_0xbb7992[_0x12c2d3(0x1e1)]['drawId'],'cxnIndex':_0xbb7992['connectionSiteIndex']}:_0x2b8b8e!=null&&_0x2b8b8e['to']&&(_0x23931a['to']=_0x2b8b8e['to']),this[_0x12c2d3(0x1b4)][_0x12c2d3(0x1e2)](_0x1759cb['id'],{'unitId':_0x3bcbc9,'subUnitId':_0x1f9d35,'connectorShapeId':_0x1beb45[_0x12c2d3(0x20d)],'width':_0x4556b6[_0x12c2d3(0x1d9)]['width'],'height':_0x4556b6[_0x12c2d3(0x1d9)][_0x12c2d3(0x1fc)],'left':_0x4556b6[_0x12c2d3(0x1d9)][_0x12c2d3(0x19c)],'top':_0x4556b6[_0x12c2d3(0x1d9)][_0x12c2d3(0x18d)],'flipX':_0x4556b6[_0x12c2d3(0x1d9)][_0x12c2d3(0x1dc)]||!0x1,'flipY':_0x4556b6[_0x12c2d3(0x1d9)][_0x12c2d3(0x1a8)]||!0x1,'oldAdjustValues':_0x3678af,'newAdjustValues':_0x4556b6[_0x12c2d3(0x1b5)],'newLineType':_0x4556b6[_0x12c2d3(0x203)],'oldLineType':_0x176b77,'rotation':_0x4556b6['rotation'],'oldRelation':_0x2b8b8e,'newRelation':_0x23931a});}[_0x54b81e(0x1ae)](_0x23e528,_0x437ce0,_0x5a89cf,_0x5c3754){const _0x29f994=_0x54b81e;let _0x2fbc6e=this['_injector'][_0x29f994(0x1ed)](_0x4a5a7c)['getDrawingByParam']({'unitId':_0x437ce0,'subUnitId':_0x5a89cf,'drawingId':_0x5c3754});if(_0x2fbc6e!=null&&_0x2fbc6e[_0x29f994(0x1ee)]){var _0x4ef079,_0x29fc1f,_0x4cf964,_0x33afdb;_0x23e528['x']=(_0x4ef079=_0x2fbc6e['transform'][_0x29f994(0x19c)])==null?0x0:_0x4ef079,_0x23e528['y']=(_0x29fc1f=_0x2fbc6e['transform'][_0x29f994(0x18d)])==null?0x0:_0x29fc1f,_0x23e528['width']=(_0x4cf964=_0x2fbc6e[_0x29f994(0x1ee)][_0x29f994(0x1b2)])==null?_0x23e528[_0x29f994(0x1b2)]:_0x4cf964,_0x23e528[_0x29f994(0x1fc)]=(_0x33afdb=_0x2fbc6e[_0x29f994(0x1ee)][_0x29f994(0x1fc)])==null?_0x23e528[_0x29f994(0x1fc)]:_0x33afdb;}let _0x37a8c2=this[_0x29f994(0x1bd)]['get'](_0x5ad4d6)[_0x29f994(0x204)](_0x437ce0,_0x5a89cf,_0x5c3754);if(_0x37a8c2){_0x23e528[_0x29f994(0x1d5)]=_0x37a8c2[_0x29f994(0x1bc)]();let _0xa2be62=_0x37a8c2['getShapeData']();_0xa2be62&&(_0x23e528[_0x29f994(0x1a9)]=JSON['parse'](JSON['stringify'](_0xa2be62)));}}['_resolveEndpoints'](_0x48a0a4,_0x22ffa3,_0x592f26,_0x4ecb68,_0x23e82d,_0xda2dea,_0x7aa19c,_0x2ceed3,_0x2f5902){const _0x4c7673=_0x54b81e;let _0x485069=null,_0x1af934=null;return _0x23e82d&&(_0x485069=I(_0x48a0a4,_0x22ffa3,_0x23e82d[_0x4c7673(0x1e1)][_0x4c7673(0x20d)],_0x23e82d['connectionSiteIndex'],_0x7aa19c,_0x2ceed3)),_0xda2dea&&(_0x1af934=I(_0x48a0a4,_0x22ffa3,_0xda2dea[_0x4c7673(0x1e1)][_0x4c7673(0x20d)],_0xda2dea[_0x4c7673(0x20a)],_0x7aa19c,_0x2ceed3)),_0x485069||(_0x485069=this['_resolveExistingOrFreeEndpoint'](_0x48a0a4,_0x22ffa3,_0x592f26['drawId'],!0x0,_0x1af934,_0x2f5902==null?void 0x0:_0x2f5902['from'],_0x7aa19c,_0x2ceed3)),_0x1af934||(_0x1af934=this['_resolveExistingOrFreeEndpoint'](_0x48a0a4,_0x22ffa3,_0x592f26['drawId'],!0x1,_0x485069,_0x2f5902==null?void 0x0:_0x2f5902['to'],_0x7aa19c,_0x2ceed3)),{'startInfo':_0x485069,'endInfo':_0x1af934};}[_0x54b81e(0x201)](_0x5be75b,_0x2eac08,_0x1d5a4d,_0x1a8611,_0x12fa37,_0x4f744a,_0x1dcac8,_0xbff451){const _0x290951=_0x54b81e;if(_0x4f744a){let _0xf51e83=I(_0x5be75b,_0x2eac08,_0x4f744a[_0x290951(0x1fd)],_0x4f744a[_0x290951(0x1c0)],_0x1dcac8,_0xbff451);if(_0xf51e83)return _0xf51e83;}return _0x12fa37?R(_0x5be75b,_0x2eac08,_0x1d5a4d,_0x1a8611,_0x12fa37,_0x1dcac8,_0xbff451):null;}};function _0x4630(){const _0x526234=['setStrokeWidth','getShapes','toPrimitive','getShapeRelation','updateShape','from','ShapeArrowTypeEnum','getAdjustNames','setShapeType','getAdjustValueByName','shapeType','getShapeData','size','getSheetId','worldRect','ShapeArrowSizeEnum','abs','flipX','56652EnAEhg','setEndArrowType','getWorkbook','43062OlmgBO','shape','executeCommand','defineProperty','push','setAbsolutePosition','ShapeTypeEnum','\x20and\x20subUnitId\x20','symbol','3LWHVuy','2NossNV','iterator','removeShape','get','transform','371mTMdCV','capType','ShapeLineTypeEnum','fill','stroke','6227570xZXvNz','ShapeLineCapEnum','length','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','setShapeGradientFill','insertShape','getDrawingByParam','newShape','height','shapeId','string','ShapeLineDashEnum','setStartArrowSize','_resolveExistingOrFreeEndpoint','object','lineType','getShapeModel','getUnitId','point','_resolveEndpoints','gradientType','subUnitId','connectionSiteIndex','getConnectionSites','setStrokeLineCapType','drawId','gradientStops','setHeight','Skeleton\x20for\x20unitId\x20','getShapeId','getEndConnectInfo','default','GradientFill','top','build','getPosition','getStartConnectInfo','796557tXKeoR','128EBuNcO','setStrokeColor','ShapeLineJoinEnum','41589iDnJgw','setStrokeOpacity','setStrokeLineJoinType','type','cos','prototype','unitId','left','lineStrokeType','getDrawingData','setStrokeLineDashType','fillType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','10867580aIBTCb','connectShapes','drawingType','index','DRAWING_SHAPE','find','flipY','shapeData','setPosition','ShapeGradientTypeEnum','relation',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','_preloadShapeProperties','gradientAngle','7403coUqpD','ensureSkeleton','width','newConnector','_commandService','adjustValues','setShapeSolidFill','lineJoinType','sin','5012680CnzZzh','SolidFil','isLineShape','getShapeType','_injector','color','opacity','cxnIndex','extend','ShapeFillEnum','setNoneFill','function','getConnectorLinePoints','getConnectionSiteList','dashType','updateContext','endArrow','startArrow'];_0x4630=function(){return _0x526234;};return _0x4630();}_0x5e6e8d['extend'](z);export{F as FConnectorShape,P as FShape};
1
+ const _0x2d9630=_0x539f;(function(_0x54d9e0,_0x46671b){const _0xa72ce=_0x539f,_0xdc917=_0x54d9e0();while(!![]){try{const _0x22d5e0=parseInt(_0xa72ce(0x106))/0x1+parseInt(_0xa72ce(0xaa))/0x2+parseInt(_0xa72ce(0xa4))/0x3*(parseInt(_0xa72ce(0xa2))/0x4)+parseInt(_0xa72ce(0xb0))/0x5+-parseInt(_0xa72ce(0x96))/0x6+-parseInt(_0xa72ce(0xdf))/0x7*(parseInt(_0xa72ce(0x100))/0x8)+-parseInt(_0xa72ce(0xd6))/0x9;if(_0x22d5e0===_0x46671b)break;else _0xdc917['push'](_0xdc917['shift']());}catch(_0x4c491f){_0xdc917['push'](_0xdc917['shift']());}}}(_0x5702,0xc1b2d));import{ConnectorCoordinateTransform as _0x3f5f02,ShapeArrowSizeEnum as _0x50cc04,ShapeArrowTypeEnum as _0x57158a,ShapeFillEnum as _0x5dbaee,ShapeGradientTypeEnum as _0x4aa13d,ShapeLineCapEnum as _0x81888a,ShapeLineDashEnum as _0x365de7,ShapeLineJoinEnum as _0x518da2,ShapeLineTypeEnum as _0x4153fd,ShapeTypeEnum as _0x332cf2,computeConnectorRouteLayout as _0x41ee51,getBasicShapeRotateBound as _0x31d35f,isConnectorShape as _0x147008,routeConnectorLineShape as _0x471885}from'@univerjs-pro/engine-shape';import{FEnum as _0x1cd10d}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x57cbf0,DEFAULT_SHAPE_WIDTH as _0x82d213,InsertShapeCommand as _0x2e53d3,SetShapeDrawingDataCommand as _0xc8e4fb,SheetsShapeService as _0x4cfbb0,UpdateConnectorRelationCommand as _0x20a1ba}from'@univerjs-pro/sheets-shape';function _0x539f(_0x3e93ed,_0x137e24){_0x3e93ed=_0x3e93ed-0x88;const _0x5702b8=_0x5702();let _0x539f5d=_0x5702b8[_0x3e93ed];return _0x539f5d;}function _0x5702(){const _0x437b2f=['width','ensureSkeleton','localToWorld','NoFill','abs','type','stringify','adjustValues','ShapeFillEnum','extend','setShapeType','cos','build','color','setPosition','keys','setEndArrowType','endArrow','setStrokeWidth','setStrokeLineCapType','subUnitId','getShapes','getStartConnectInfo','getShapeType','setStrokeColor','1264yldKvh','insertShape','iterator','executeCommand','capType','getAdjustNames','40658BZpZNQ','\x20not\x20found','gradientStops','DRAWING_SHAPE','getPosition','ShapeArrowSizeEnum','constructor','fill','length','default','top','getSize','getShapeModel','function','GradientFill','Skeleton\x20for\x20unitId\x20','startArrow','2174556hciJeU','relation','transform','unitId','isLineShape','prototype','index','setShapeGradientFill','getEndConnectInfo','entries','push','point','1660uMZCtt','ShapeLineJoinEnum','5937jhxEiy','opacity','string','_preloadShapeProperties','getConnectionSiteList','getAdjustValueByName','1723330KdVmHM','gradientType','getSheetId','flipX','getDrawingByParam','getShapeData','2080245flpsFi','shapeData','ShapeLineCapEnum','defineProperty','getDrawingPoints','getWorkbook','\x20and\x20subUnitId\x20','from','getShapeId','gradientAngle','_commandService','removeShape','ShapeArrowTypeEnum','worldRect','left','setStrokeLineDashType','shapeType','lineType','setStrokeOpacity','flipY','symbol','_injector',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','shapeId','object','ShapeTypeEnum','lineJoinType','setEndArrowSize','drawingType','height','getAdjustPoints','stroke','setNoneFill','setStrokeLineType','newShape','_resolveEndpoints','getConnectorLinePoints','setStartArrowType','8614260SFaGNx','cxnIndex','shape','size','get','fillType','updateContext','ShapeGradientTypeEnum','drawId','1183uRUcbw','SolidFil','dashType','connectionSiteIndex','getConnectionSites','setStartArrowSize','lineStrokeType','getUnitId'];_0x5702=function(){return _0x437b2f;};return _0x5702();}import{DrawingTypeEnum as _0x5dd802,generateRandomId as _0x4ad178}from'@univerjs/core';import{IDrawingManagerService as _0x1f0733}from'@univerjs/drawing';import{SheetSkeletonService as _0x45d511,convertPositionCellToSheetOverGrid as _0x30350e}from'@univerjs/sheets';import{ISheetDrawingService as _0x4f2a92,RemoveSheetDrawingCommand as _0x360a01}from'@univerjs/sheets-drawing';import{FWorksheet as _0x5b4d34}from'@univerjs/sheets/facade';var k=class extends _0x1cd10d{get[_0x2d9630(0xc9)](){return _0x332cf2;}get[_0x2d9630(0xef)](){return _0x5dbaee;}get[_0x2d9630(0xdd)](){return _0x4aa13d;}get['ShapeLineTypeEnum'](){return _0x4153fd;}get['ShapeLineDashEnum'](){return _0x365de7;}get[_0x2d9630(0xb2)](){return _0x81888a;}get[_0x2d9630(0xa3)](){return _0x518da2;}get[_0x2d9630(0xbc)](){return _0x57158a;}get[_0x2d9630(0x8a)](){return _0x50cc04;}};_0x1cd10d[_0x2d9630(0xf0)](k);function A(_0x4464a4){'@babel/helpers - typeof';const _0x5d0695=_0x2d9630;return A=typeof Symbol==_0x5d0695(0x92)&&typeof Symbol[_0x5d0695(0x102)]==_0x5d0695(0xc4)?function(_0x4243a6){return typeof _0x4243a6;}:function(_0xfe500){const _0x276cc7=_0x5d0695;return _0xfe500&&typeof Symbol==_0x276cc7(0x92)&&_0xfe500[_0x276cc7(0x8b)]===Symbol&&_0xfe500!==Symbol[_0x276cc7(0x9b)]?'symbol':typeof _0xfe500;},A(_0x4464a4);}function j(_0x1eba5a,_0x2a91b0){const _0x5c7229=_0x2d9630;if(A(_0x1eba5a)!='object'||!_0x1eba5a)return _0x1eba5a;var _0x17a97e=_0x1eba5a[Symbol['toPrimitive']];if(_0x17a97e!==void 0x0){var _0x3657a6=_0x17a97e['call'](_0x1eba5a,_0x2a91b0||_0x5c7229(0x8e));if(A(_0x3657a6)!=_0x5c7229(0xc8))return _0x3657a6;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2a91b0==='string'?String:Number)(_0x1eba5a);}function M(_0x473586){const _0x429391=_0x2d9630;var _0x12b0a6=j(_0x473586,_0x429391(0xa6));return A(_0x12b0a6)==_0x429391(0xc4)?_0x12b0a6:_0x12b0a6+'';}function N(_0x17280a,_0xa51360,_0x3d5952){const _0x271cea=_0x2d9630;return(_0xa51360=M(_0xa51360))in _0x17280a?Object[_0x271cea(0xb3)](_0x17280a,_0xa51360,{'value':_0x3d5952,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x17280a[_0xa51360]=_0x3d5952,_0x17280a;}var P=class{constructor(_0x502165,_0x4043cb,_0x28e3eb,_0x16bb50){const _0x598ded=_0x2d9630;N(this,_0x598ded(0x99),void 0x0),N(this,_0x598ded(0xfb),void 0x0),N(this,_0x598ded(0xde),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x598ded(0xe7),_0x82d213),N(this,_0x598ded(0xcd),_0x57cbf0),N(this,_0x598ded(0xc0),void 0x0),N(this,_0x598ded(0xb1),{}),N(this,_0x598ded(0xc5),void 0x0),this['unitId']=_0x502165,this[_0x598ded(0xfb)]=_0x4043cb,this['drawId']=_0x28e3eb||_0x4ad178(),this[_0x598ded(0xc5)]=_0x16bb50;}[_0x2d9630(0xf5)](_0x2077a9,_0x510570,_0x3f6ca6,_0x3d43a2){const _0x39c5a4=_0x2d9630;let _0xf2b3da=this[_0x39c5a4(0xc5)][_0x39c5a4(0xda)](_0x45d511)[_0x39c5a4(0xe8)](this['unitId'],this['subUnitId']);if(!_0xf2b3da)throw Error(_0x39c5a4(0x94)+this['unitId']+_0x39c5a4(0xb6)+this[_0x39c5a4(0xfb)]+'\x20not\x20found');let {transform:_0xd0da30}=_0x30350e(this[_0x39c5a4(0x99)],this[_0x39c5a4(0xfb)],{'row':_0x2077a9,'column':_0x510570,'rowOffset':_0x3f6ca6,'columnOffset':_0x3d43a2},0x1,0x1,_0xf2b3da);return this['x']=_0xd0da30[_0x39c5a4(0xbe)],this['y']=_0xd0da30[_0x39c5a4(0x8f)],this;}['setAbsolutePosition'](_0x18c9a8,_0x1065e3){return this['x']=_0x18c9a8,this['y']=_0x1065e3,this;}[_0x2d9630(0xf1)](_0x358584){const _0x32cbf8=_0x2d9630;return this[_0x32cbf8(0xc0)]=_0x358584,this;}['setShapeSolidFill'](_0x4af407,_0x1f5a9a){const _0x32a701=_0x2d9630;return this['shapeData']['fill']||(this['shapeData'][_0x32a701(0x8c)]={}),this['shapeData'][_0x32a701(0x8c)]['fillType']=_0x5dbaee[_0x32a701(0xe0)],_0x4af407!==void 0x0&&(this[_0x32a701(0xb1)][_0x32a701(0x8c)][_0x32a701(0xf4)]=_0x4af407),_0x1f5a9a!==void 0x0&&(this['shapeData'][_0x32a701(0x8c)][_0x32a701(0xa5)]=_0x1f5a9a),this;}[_0x2d9630(0x9d)](_0x4f76a3,_0x376fe2,_0x5b8ddc){const _0x1a8f82=_0x2d9630;if(_0x376fe2===void 0x0||_0x376fe2['length']===0x0)throw Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');return this['shapeData'][_0x1a8f82(0x8c)]||(this[_0x1a8f82(0xb1)][_0x1a8f82(0x8c)]={}),this[_0x1a8f82(0xb1)][_0x1a8f82(0x8c)][_0x1a8f82(0x108)]=_0x376fe2,this[_0x1a8f82(0xb1)]['fill'][_0x1a8f82(0xdb)]=_0x5dbaee[_0x1a8f82(0x93)],this[_0x1a8f82(0xb1)][_0x1a8f82(0x8c)][_0x1a8f82(0xab)]=_0x4f76a3,_0x5b8ddc!==void 0x0&&(this[_0x1a8f82(0xb1)][_0x1a8f82(0x8c)][_0x1a8f82(0xb9)]=_0x5b8ddc),this;}[_0x2d9630(0xd0)](){const _0x1f5c72=_0x2d9630;return this[_0x1f5c72(0xb1)]['fill']={'fillType':_0x5dbaee[_0x1f5c72(0xea)]},this;}[_0x2d9630(0xff)](_0x3b7a63){const _0x2a6bc0=_0x2d9630;return this['shapeData'][_0x2a6bc0(0xcf)]||(this[_0x2a6bc0(0xb1)][_0x2a6bc0(0xcf)]={}),this[_0x2a6bc0(0xb1)][_0x2a6bc0(0xcf)][_0x2a6bc0(0xf4)]=_0x3b7a63,this;}[_0x2d9630(0xf9)](_0x3f0027){const _0x5a3594=_0x2d9630;return this[_0x5a3594(0xb1)][_0x5a3594(0xcf)]||(this[_0x5a3594(0xb1)]['stroke']={}),this[_0x5a3594(0xb1)][_0x5a3594(0xcf)][_0x5a3594(0xe7)]=_0x3f0027,this;}[_0x2d9630(0xbf)](_0x190457){const _0x2fb6e6=_0x2d9630;return this[_0x2fb6e6(0xb1)][_0x2fb6e6(0xcf)]||(this[_0x2fb6e6(0xb1)][_0x2fb6e6(0xcf)]={}),this['shapeData']['stroke'][_0x2fb6e6(0xe1)]=_0x190457,this;}['setStrokeLineJoinType'](_0x2579a5){const _0x5c40f8=_0x2d9630;return this['shapeData'][_0x5c40f8(0xcf)]||(this[_0x5c40f8(0xb1)][_0x5c40f8(0xcf)]={}),this[_0x5c40f8(0xb1)][_0x5c40f8(0xcf)][_0x5c40f8(0xca)]=_0x2579a5,this;}[_0x2d9630(0xfa)](_0x3cb084){const _0x186102=_0x2d9630;return this[_0x186102(0xb1)][_0x186102(0xcf)]||(this[_0x186102(0xb1)][_0x186102(0xcf)]={}),this[_0x186102(0xb1)][_0x186102(0xcf)][_0x186102(0x104)]=_0x3cb084,this;}[_0x2d9630(0xc2)](_0x107d72){const _0x107bb8=_0x2d9630;return this[_0x107bb8(0xb1)]['stroke']||(this[_0x107bb8(0xb1)][_0x107bb8(0xcf)]={}),this[_0x107bb8(0xb1)][_0x107bb8(0xcf)][_0x107bb8(0xa5)]=_0x107d72,this;}[_0x2d9630(0xd1)](_0x22ecb7){const _0x5dc1bf=_0x2d9630;return this['shapeData'][_0x5dc1bf(0xcf)]||(this['shapeData'][_0x5dc1bf(0xcf)]={}),this[_0x5dc1bf(0xb1)][_0x5dc1bf(0xcf)][_0x5dc1bf(0xe5)]=_0x22ecb7,this;}['setWidth'](_0x16222a){return this['width']=_0x16222a,this;}['setHeight'](_0x281759){const _0x16f77b=_0x2d9630;return this[_0x16f77b(0xcd)]=_0x281759,this;}[_0x2d9630(0x9a)](){const _0x21f7de=_0x2d9630;let _0xd7d658=this[_0x21f7de(0xc5)][_0x21f7de(0xda)](_0x4cfbb0)[_0x21f7de(0x91)](this[_0x21f7de(0x99)],this[_0x21f7de(0xfb)],this[_0x21f7de(0xde)]);return _0xd7d658?_0x147008(_0xd7d658['getShapeType']()):this[_0x21f7de(0xc0)]?_0x147008(this[_0x21f7de(0xc0)]):!0x1;}[_0x2d9630(0xe3)](){const _0x317813=_0x2d9630;let _0x4c7c77=this['_injector']['get'](_0x4cfbb0)['getShapeModel'](this[_0x317813(0x99)],this[_0x317813(0xfb)],this[_0x317813(0xde)]);if(!_0x4c7c77)return[];let _0x6f6a58=this[_0x317813(0xc5)][_0x317813(0xda)](_0x1f0733)[_0x317813(0xae)]({'unitId':this[_0x317813(0x99)],'subUnitId':this[_0x317813(0xfb)],'drawingId':this[_0x317813(0xde)]});if(!(_0x6f6a58!=null&&_0x6f6a58[_0x317813(0x98)]))return[];let {width:_0x4c981d=0x0,height:_0x5576ac=0x0}=_0x6f6a58[_0x317813(0x98)];return _0x4c7c77[_0x317813(0xdc)]({'width':_0x4c981d,'height':_0x5576ac}),_0x4c7c77['getConnectionSiteList']();}[_0x2d9630(0xce)](){const _0x48da2a=_0x2d9630;let _0x33f03c=this[_0x48da2a(0xc5)][_0x48da2a(0xda)](_0x4cfbb0)[_0x48da2a(0x91)](this[_0x48da2a(0x99)],this[_0x48da2a(0xfb)],this[_0x48da2a(0xde)]);if(!_0x33f03c)return[];let _0x4f852a=this[_0x48da2a(0xc5)][_0x48da2a(0xda)](_0x1f0733)[_0x48da2a(0xae)]({'unitId':this['unitId'],'subUnitId':this[_0x48da2a(0xfb)],'drawingId':this[_0x48da2a(0xde)]});if(!(_0x4f852a!=null&&_0x4f852a[_0x48da2a(0x98)]))return[];let {width:_0x428245=0x0,height:_0x129861=0x0}=_0x4f852a['transform'];return _0x33f03c[_0x48da2a(0xdc)]({'width':_0x428245,'height':_0x129861}),_0x33f03c[_0x48da2a(0xb4)]();}[_0x2d9630(0xd4)](){const _0x4133c6=_0x2d9630;let _0x5eef8d=this['_injector'][_0x4133c6(0xda)](_0x4cfbb0)[_0x4133c6(0x91)](this[_0x4133c6(0x99)],this[_0x4133c6(0xfb)],this['drawId']);if(!_0x5eef8d||!_0x147008(_0x5eef8d[_0x4133c6(0xfe)]()))return[];let _0x400642=this[_0x4133c6(0xc5)][_0x4133c6(0xda)](_0x1f0733)[_0x4133c6(0xae)]({'unitId':this[_0x4133c6(0x99)],'subUnitId':this[_0x4133c6(0xfb)],'drawingId':this['drawId']});if(!(_0x400642!=null&&_0x400642[_0x4133c6(0x98)]))return[];let {width:_0x3d57e0=0x0,height:_0x3c5fb1=0x0}=_0x400642[_0x4133c6(0x98)];return _0x5eef8d[_0x4133c6(0xdc)]({'width':_0x3d57e0,'height':_0x3c5fb1}),_0x5eef8d[_0x4133c6(0xd4)]();}['getStartConnectInfo'](){const _0x20b4bd=_0x2d9630;var _0x525bb2;let _0x2d56db=this[_0x20b4bd(0xc5)]['get'](_0x4cfbb0)[_0x20b4bd(0x91)](this[_0x20b4bd(0x99)],this['subUnitId'],this[_0x20b4bd(0xde)]);return _0x2d56db?(_0x525bb2=_0x2d56db[_0x20b4bd(0xfd)]())==null?null:_0x525bb2:null;}[_0x2d9630(0x9e)](){const _0x1dfe31=_0x2d9630;var _0x1ae670;let _0x245e3c=this[_0x1dfe31(0xc5)][_0x1dfe31(0xda)](_0x4cfbb0)['getShapeModel'](this[_0x1dfe31(0x99)],this[_0x1dfe31(0xfb)],this[_0x1dfe31(0xde)]);return _0x245e3c?(_0x1ae670=_0x245e3c[_0x1dfe31(0x9e)]())==null?null:_0x1ae670:null;}[_0x2d9630(0xf3)](){const _0x2522e0=_0x2d9630;var _0x59ab9f,_0x493078;if(!this['shapeType'])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0xfc9627=this[_0x2522e0(0xc5)]['get'](_0x45d511)[_0x2522e0(0xe8)](this['unitId'],this[_0x2522e0(0xfb)]);if(!_0xfc9627)throw Error(_0x2522e0(0x94)+this['unitId']+_0x2522e0(0xb6)+this[_0x2522e0(0xfb)]+_0x2522e0(0x107));let {transform:_0x240082}=_0x30350e(this[_0x2522e0(0x99)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0xfc9627);this['x']=this['x']>0x0?this['x']:_0x240082[_0x2522e0(0xbe)],this['y']=this['y']>0x0?this['y']:_0x240082['top'];}return this[_0x2522e0(0xe7)]=(_0x59ab9f=this[_0x2522e0(0xe7)])==null?_0x82d213:_0x59ab9f,this[_0x2522e0(0xcd)]=(_0x493078=this[_0x2522e0(0xcd)])==null?_0x57cbf0:_0x493078,{'unitId':this[_0x2522e0(0x99)],'subUnitId':this['subUnitId'],'shapeId':this[_0x2522e0(0xde)],'shapeType':this[_0x2522e0(0xc0)],'shapeData':Object[_0x2522e0(0xf6)](this[_0x2522e0(0xb1)])[_0x2522e0(0x8d)]>0x0?this[_0x2522e0(0xb1)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x2522e0(0xe7)],'height':this[_0x2522e0(0xcd)]};}[_0x2d9630(0xb8)](){const _0x264db0=_0x2d9630;return this[_0x264db0(0xde)];}['getShapeType'](){const _0x59f308=_0x2d9630;return this[_0x59f308(0xc0)];}[_0x2d9630(0xaf)](){return this['shapeData'];}[_0x2d9630(0x89)](){return{'x':this['x'],'y':this['y']};}[_0x2d9630(0x90)](){const _0xb6e2f8=_0x2d9630;return{'width':this[_0xb6e2f8(0xe7)],'height':this[_0xb6e2f8(0xcd)]};}},F=class extends P{constructor(_0x56182a,_0x1a40e0,_0x72f3,_0x1db2ee){const _0x4278dc=_0x2d9630;super(_0x56182a,_0x1a40e0,_0x72f3,_0x1db2ee),N(this,_0x4278dc(0xb1),{});}[_0x2d9630(0xf1)](_0x105cff){const _0x262dbf=_0x2d9630;if(!_0x147008(_0x105cff))throw Error('Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20'+_0x105cff+_0x262dbf(0xc6));return super[_0x262dbf(0xf1)](_0x105cff),this;}[_0x2d9630(0xd5)](_0x383959){const _0x5a0fac=_0x2d9630;var _0x4a8032,_0x5bc284;return(_0x4a8032=this['shapeData'])!=null&&_0x4a8032['ln']||(this['shapeData']['ln']={}),!((_0x5bc284=this[_0x5a0fac(0xb1)])==null||(_0x5bc284=_0x5bc284['ln'])==null)&&_0x5bc284[_0x5a0fac(0x95)]||(this[_0x5a0fac(0xb1)]['ln']['startArrow']={}),this[_0x5a0fac(0xb1)]['ln'][_0x5a0fac(0x95)][_0x5a0fac(0xec)]=_0x383959,this;}[_0x2d9630(0xf7)](_0x1a11d3){const _0x5c01c0=_0x2d9630;var _0x35d163,_0x461f05;return(_0x35d163=this['shapeData'])!=null&&_0x35d163['ln']||(this[_0x5c01c0(0xb1)]['ln']={}),!((_0x461f05=this[_0x5c01c0(0xb1)])==null||(_0x461f05=_0x461f05['ln'])==null)&&_0x461f05[_0x5c01c0(0xf8)]||(this['shapeData']['ln']['endArrow']={}),this[_0x5c01c0(0xb1)]['ln']['endArrow']['type']=_0x1a11d3,this;}[_0x2d9630(0xe4)](_0x94da41){const _0x2817a1=_0x2d9630;var _0xc77a6d,_0x17e34e;return(_0xc77a6d=this[_0x2817a1(0xb1)])!=null&&_0xc77a6d['ln']||(this[_0x2817a1(0xb1)]['ln']={}),!((_0x17e34e=this['shapeData'])==null||(_0x17e34e=_0x17e34e['ln'])==null)&&_0x17e34e[_0x2817a1(0x95)]||(this[_0x2817a1(0xb1)]['ln'][_0x2817a1(0x95)]={}),this['shapeData']['ln'][_0x2817a1(0x95)][_0x2817a1(0xd9)]=_0x94da41,this;}[_0x2d9630(0xcb)](_0x227620){const _0x5c3953=_0x2d9630;var _0x262f83,_0x351859;return(_0x262f83=this[_0x5c3953(0xb1)])!=null&&_0x262f83['ln']||(this[_0x5c3953(0xb1)]['ln']={}),!((_0x351859=this['shapeData'])==null||(_0x351859=_0x351859['ln'])==null)&&_0x351859['endArrow']||(this[_0x5c3953(0xb1)]['ln'][_0x5c3953(0xf8)]={}),this['shapeData']['ln'][_0x5c3953(0xf8)][_0x5c3953(0xd9)]=_0x227620,this;}[_0x2d9630(0xf3)](){const _0x179fb1=_0x2d9630;return super[_0x179fb1(0xf3)]();}[_0x2d9630(0x9e)](){const _0x29f692=_0x2d9630;var _0x447237;return((_0x447237=this[_0x29f692(0xb1)])==null||(_0x447237=_0x447237[_0x29f692(0x97)])==null?void 0x0:_0x447237['to'])||null;}['getStartConnectInfo'](){const _0x4b08db=_0x2d9630;var _0x16926e;return((_0x16926e=this['shapeData'])==null||(_0x16926e=_0x16926e['relation'])==null?void 0x0:_0x16926e[_0x4b08db(0xb7)])||null;}};function I(_0xfcc94,_0x17b70a,_0x3a9d1b,_0x2f3963,_0x53ae43,_0x2972a4){const _0x4b8ba5=_0x2d9630;let _0x4320b1=_0x53ae43[_0x4b8ba5(0x91)](_0xfcc94,_0x17b70a,_0x3a9d1b);if(!_0x4320b1)return null;let _0x1c5036=_0x2972a4['getDrawingByParam']({'unitId':_0xfcc94,'subUnitId':_0x17b70a,'drawingId':_0x3a9d1b});if(!(_0x1c5036!=null&&_0x1c5036[_0x4b8ba5(0x98)]))return null;let {left:_0x5205ad=0x0,top:_0x4f9555=0x0,width:_0x3d394c=0x0,height:_0x578172=0x0,flipX:_0x39b6b3=!0x1,flipY:_0x2a0eae=!0x1,angle:_0x4a7257}=_0x1c5036['transform'];_0x4320b1[_0x4b8ba5(0xdc)]({'width':_0x3d394c,'height':_0x578172});let _0x52bf4f=_0x4320b1[_0x4b8ba5(0xa8)]()['find'](_0x34b649=>_0x34b649[_0x4b8ba5(0x9c)]===_0x2f3963);if(!_0x52bf4f)return null;let _0x113d28=_0x39b6b3?_0x3d394c-_0x52bf4f['x']:_0x52bf4f['x'],_0x55f900=_0x2a0eae?_0x578172-_0x52bf4f['y']:_0x52bf4f['y'];if(_0x4a7257&&_0x4a7257!==0x0){let _0x504480=_0x4a7257*Math['PI']/0xb4,_0x2fe876=Math[_0x4b8ba5(0xf2)](_0x504480),_0x59764e=Math['sin'](_0x504480),_0x138c36=_0x3d394c/0x2,_0x3e79c0=_0x578172/0x2,_0xad0601=_0x113d28-_0x138c36,_0x4f58d7=_0x55f900-_0x3e79c0;_0x113d28=_0x138c36+_0xad0601*_0x2fe876-_0x4f58d7*_0x59764e,_0x55f900=_0x3e79c0+_0xad0601*_0x59764e+_0x4f58d7*_0x2fe876;}_0x113d28+=_0x5205ad,_0x55f900+=_0x4f9555;let _0x2f6452=_0x52bf4f['ang']/0xea60;_0x39b6b3&&(_0x2f6452=0xb4-_0x2f6452),_0x2a0eae&&(_0x2f6452=-_0x2f6452),_0x2f6452+=_0x4a7257||0x0,_0x2f6452=(_0x2f6452%0x168+0x168)%0x168;let _0x4dfd9b=_0x31d35f({'left':_0x5205ad,'top':_0x4f9555,'width':_0x3d394c,'height':_0x578172},_0x4a7257||0x0);return{'point':{'x':_0x113d28,'y':_0x55f900},'angle':_0x2f6452,'bounds':_0x4dfd9b};}function L(_0x34c3c5,_0x1bef19){const _0x3dabb5=_0x2d9630;let _0x51f24a=_0x1bef19['x']-_0x34c3c5['x'],_0x96ac2b=_0x1bef19['y']-_0x34c3c5['y'];return Math[_0x3dabb5(0xeb)](_0x51f24a)>=Math['abs'](_0x96ac2b)?_0x51f24a>=0x0?0xb4:0x0:_0x96ac2b>=0x0?0x10e:0x5a;}function R(_0x419811,_0x143f44,_0xc49bb1,_0x3d97d6,_0x5855b9,_0x372180,_0x22dbc1){const _0x19ae23=_0x2d9630;let _0x62d715=_0x372180[_0x19ae23(0x91)](_0x419811,_0x143f44,_0xc49bb1);if(!_0x62d715)return null;let _0x5043d3=_0x22dbc1[_0x19ae23(0xae)]({'unitId':_0x419811,'subUnitId':_0x143f44,'drawingId':_0xc49bb1});if(!(_0x5043d3!=null&&_0x5043d3[_0x19ae23(0x98)]))return null;let {left:_0x5dec24=0x0,top:_0x343fa3=0x0,width:_0x1e58a7=0x0,height:_0x218f4b=0x0,flipX:_0x3bf364=!0x1,flipY:_0x268869=!0x1}=_0x5043d3[_0x19ae23(0x98)];_0x62d715[_0x19ae23(0xdc)]({'width':_0x1e58a7,'height':_0x218f4b});let _0x47517a=_0x62d715[_0x19ae23(0xd4)]();if(_0x47517a[_0x19ae23(0x8d)]<0x2)return null;let _0x319d2c=_0x3d97d6?_0x47517a[0x0]:_0x47517a[_0x47517a[_0x19ae23(0x8d)]-0x1],_0x2be466=new _0x3f5f02({'left':_0x5dec24,'top':_0x343fa3,'width':_0x1e58a7,'height':_0x218f4b,'flipX':_0x3bf364,'flipY':_0x268869})[_0x19ae23(0xe9)](_0x319d2c);return{'point':_0x2be466,'angle':L(_0x5855b9[_0x19ae23(0xa1)],_0x2be466),'bounds':{'left':_0x2be466['x'],'top':_0x2be466['y'],'width':0x0,'height':0x0}};}var z=class extends _0x5b4d34{async[_0x2d9630(0x101)](_0x7f3959){const _0x4fe19f=_0x2d9630;let {unitId:_0x236eee,subUnitId:_0x15dce2,shapeId:_0x34b191,shapeType:_0x117a52,shapeData:_0x33bce4,x:_0x21f79f,y:_0x592579,width:_0x102629,height:_0x2a21a9}=_0x7f3959;return this[_0x4fe19f(0xba)]['executeCommand'](_0x2e53d3['id'],{'unitId':_0x236eee,'subUnitId':_0x15dce2,'shapeId':_0x34b191,'shapeType':_0x117a52,'shapeData':_0x33bce4,'position':{'x':_0x21f79f,'y':_0x592579},'width':_0x102629,'height':_0x2a21a9});}async['updateShape'](_0x4b1e80){const _0xc9eb2f=_0x2d9630;let {unitId:_0x278b60,subUnitId:_0x25e983,shapeId:_0x15b3b1,shapeType:_0x17ac8a,shapeData:_0x4fa334,x:_0x3033b1,y:_0x5607a9,width:_0xca80c3,height:_0x8dacb1}=_0x4b1e80;return this[_0xc9eb2f(0xba)][_0xc9eb2f(0x103)](_0xc8e4fb['id'],{'unitId':_0x278b60,'subUnitId':_0x25e983,'shapeId':_0x15b3b1,'shapeType':_0x17ac8a,'shapeData':_0x4fa334,'position':{'x':_0x3033b1,'y':_0x5607a9},'width':_0xca80c3,'height':_0x8dacb1});}[_0x2d9630(0xd2)](_0x568d29){const _0x4ab824=_0x2d9630;let _0x3d3e82=this['getWorkbook']()[_0x4ab824(0xe6)](),_0x38ac0b=this[_0x4ab824(0xac)]();if(_0x568d29){let _0x3dc406=new P(_0x3d3e82,_0x38ac0b,_0x568d29[_0x4ab824(0xde)],this['_injector']);return this[_0x4ab824(0xa7)](_0x3dc406,_0x3d3e82,_0x38ac0b,_0x568d29[_0x4ab824(0xde)]),_0x3dc406;}return new P(_0x3d3e82,_0x38ac0b,_0x4ad178(),this[_0x4ab824(0xc5)]);}['newConnector'](_0x2f71c6){const _0x2170cc=_0x2d9630;let _0x235380=this[_0x2170cc(0xb5)]()[_0x2170cc(0xe6)](),_0xd1cb0c=this[_0x2170cc(0xac)]();if(_0x2f71c6){let _0x40b4d4=new F(_0x235380,_0xd1cb0c,_0x2f71c6['drawId'],this[_0x2170cc(0xc5)]);return this[_0x2170cc(0xa7)](_0x40b4d4,_0x235380,_0xd1cb0c,_0x2f71c6[_0x2170cc(0xde)]),_0x40b4d4;}return new F(_0x235380,_0xd1cb0c,_0x4ad178(),this[_0x2170cc(0xc5)]);}[_0x2d9630(0xfc)](){const _0x1419ee=_0x2d9630;let _0x17d55e=this[_0x1419ee(0xc5)]['get'](_0x4f2a92),_0x522a1b=this[_0x1419ee(0xb5)]()[_0x1419ee(0xe6)](),_0x487c91=this[_0x1419ee(0xac)](),_0x4a7db4=_0x17d55e['getDrawingData'](_0x522a1b,_0x487c91);if(!_0x4a7db4)return[];let _0x4bf64b=[];for(let [_0x267eb9,_0x5b873e]of Object[_0x1419ee(0x9f)](_0x4a7db4))if(_0x5b873e&&_0x5b873e[_0x1419ee(0xcc)]===_0x5dd802[_0x1419ee(0x88)]){let _0x5766b0=new P(_0x522a1b,_0x487c91,_0x267eb9,this[_0x1419ee(0xc5)]);this[_0x1419ee(0xa7)](_0x5766b0,_0x522a1b,_0x487c91,_0x267eb9),_0x4bf64b[_0x1419ee(0xa0)](_0x5766b0);}return _0x4bf64b;}[_0x2d9630(0xbb)](_0x349a97){const _0x227c33=_0x2d9630;let {unitId:_0x5f2515,subUnitId:_0x10c010,drawId:_0x2757e7}=_0x349a97;return this[_0x227c33(0xba)][_0x227c33(0x103)](_0x360a01['id'],{'unitId':_0x5f2515,'drawings':[{'unitId':_0x5f2515,'subUnitId':_0x10c010,'drawingId':_0x2757e7,'drawingType':_0x5dd802['DRAWING_SHAPE']}]});}async['connectShapes'](_0x1139ba){const _0x5ea05c=_0x2d9630;let {connector:_0x595443,startTarget:_0x1ec564,endTarget:_0x5875f2}=_0x1139ba;if(!_0x1ec564&&!_0x5875f2)return!0x1;let _0x110ae7=this[_0x5ea05c(0xb5)]()[_0x5ea05c(0xe6)](),_0x212d42=this['getSheetId'](),_0x2455d9=this['_injector'][_0x5ea05c(0xda)](_0x4cfbb0),_0x277b6e=this[_0x5ea05c(0xc5)][_0x5ea05c(0xda)](_0x1f0733),_0x469e4d=_0x2455d9['getShapeModel'](_0x110ae7,_0x212d42,_0x595443[_0x5ea05c(0xde)]);if(!_0x469e4d)return!0x1;let _0x2f4b05=_0x469e4d['getShapeType'](),_0x5756d5=_0x469e4d['getShapeRelation'](),_0xb8d6fe={};for(let _0x354030 of _0x469e4d[_0x5ea05c(0x105)]()){let _0x3be7c3=_0x469e4d[_0x5ea05c(0xa9)](_0x354030);_0x3be7c3!==void 0x0&&(_0xb8d6fe[_0x354030]=_0x3be7c3);}let {startInfo:_0xa5b983,endInfo:_0x42e8ca}=this[_0x5ea05c(0xd3)](_0x110ae7,_0x212d42,_0x595443,_0x469e4d,_0x1ec564,_0x5875f2,_0x2455d9,_0x277b6e,_0x5756d5);if(!_0xa5b983||!_0x42e8ca)return!0x1;let _0x109ebd=_0x41ee51(_0x471885(_0xa5b983,_0x42e8ca,_0x2f4b05),_0x2f4b05),_0x36e8d9={};return _0x1ec564?_0x36e8d9[_0x5ea05c(0xb7)]={'shapeId':_0x1ec564['shape'][_0x5ea05c(0xde)],'cxnIndex':_0x1ec564[_0x5ea05c(0xe2)]}:_0x5756d5!=null&&_0x5756d5['from']&&(_0x36e8d9[_0x5ea05c(0xb7)]=_0x5756d5[_0x5ea05c(0xb7)]),_0x5875f2?_0x36e8d9['to']={'shapeId':_0x5875f2[_0x5ea05c(0xd8)]['drawId'],'cxnIndex':_0x5875f2['connectionSiteIndex']}:_0x5756d5!=null&&_0x5756d5['to']&&(_0x36e8d9['to']=_0x5756d5['to']),this[_0x5ea05c(0xba)]['executeCommand'](_0x20a1ba['id'],{'unitId':_0x110ae7,'subUnitId':_0x212d42,'connectorShapeId':_0x595443[_0x5ea05c(0xde)],'width':_0x109ebd['worldRect'][_0x5ea05c(0xe7)],'height':_0x109ebd[_0x5ea05c(0xbd)][_0x5ea05c(0xcd)],'left':_0x109ebd[_0x5ea05c(0xbd)][_0x5ea05c(0xbe)],'top':_0x109ebd[_0x5ea05c(0xbd)]['top'],'flipX':_0x109ebd[_0x5ea05c(0xbd)][_0x5ea05c(0xad)]||!0x1,'flipY':_0x109ebd[_0x5ea05c(0xbd)][_0x5ea05c(0xc3)]||!0x1,'oldAdjustValues':_0xb8d6fe,'newAdjustValues':_0x109ebd[_0x5ea05c(0xee)],'newLineType':_0x109ebd[_0x5ea05c(0xc1)],'oldLineType':_0x2f4b05,'rotation':_0x109ebd['rotation'],'oldRelation':_0x5756d5,'newRelation':_0x36e8d9});}['_preloadShapeProperties'](_0x113366,_0x44868a,_0x497ee9,_0x27f44e){const _0x56ed2b=_0x2d9630;let _0x43538b=this['_injector'][_0x56ed2b(0xda)](_0x1f0733)[_0x56ed2b(0xae)]({'unitId':_0x44868a,'subUnitId':_0x497ee9,'drawingId':_0x27f44e});if(_0x43538b!=null&&_0x43538b[_0x56ed2b(0x98)]){var _0x50d86c,_0x2b585b,_0x56e9b0,_0x589994;_0x113366['x']=(_0x50d86c=_0x43538b['transform'][_0x56ed2b(0xbe)])==null?0x0:_0x50d86c,_0x113366['y']=(_0x2b585b=_0x43538b['transform'][_0x56ed2b(0x8f)])==null?0x0:_0x2b585b,_0x113366[_0x56ed2b(0xe7)]=(_0x56e9b0=_0x43538b['transform'][_0x56ed2b(0xe7)])==null?_0x113366['width']:_0x56e9b0,_0x113366[_0x56ed2b(0xcd)]=(_0x589994=_0x43538b['transform'][_0x56ed2b(0xcd)])==null?_0x113366['height']:_0x589994;}let _0xcacc72=this[_0x56ed2b(0xc5)][_0x56ed2b(0xda)](_0x4cfbb0)[_0x56ed2b(0x91)](_0x44868a,_0x497ee9,_0x27f44e);if(_0xcacc72){_0x113366[_0x56ed2b(0xc0)]=_0xcacc72[_0x56ed2b(0xfe)]();let _0x55748d=_0xcacc72[_0x56ed2b(0xaf)]();_0x55748d&&(_0x113366[_0x56ed2b(0xb1)]=JSON['parse'](JSON[_0x56ed2b(0xed)](_0x55748d)));}}['_resolveEndpoints'](_0x5c1e4b,_0x58a81c,_0x213f0f,_0x59c7e5,_0x564dea,_0x51c78d,_0x190707,_0x233fc5,_0x275ebb){const _0x1f41df=_0x2d9630;let _0x194c89=null,_0x4f94fc=null;return _0x564dea&&(_0x194c89=I(_0x5c1e4b,_0x58a81c,_0x564dea[_0x1f41df(0xd8)][_0x1f41df(0xde)],_0x564dea[_0x1f41df(0xe2)],_0x190707,_0x233fc5)),_0x51c78d&&(_0x4f94fc=I(_0x5c1e4b,_0x58a81c,_0x51c78d[_0x1f41df(0xd8)][_0x1f41df(0xde)],_0x51c78d[_0x1f41df(0xe2)],_0x190707,_0x233fc5)),_0x194c89||(_0x194c89=this['_resolveExistingOrFreeEndpoint'](_0x5c1e4b,_0x58a81c,_0x213f0f['drawId'],!0x0,_0x4f94fc,_0x275ebb==null?void 0x0:_0x275ebb['from'],_0x190707,_0x233fc5)),_0x4f94fc||(_0x4f94fc=this['_resolveExistingOrFreeEndpoint'](_0x5c1e4b,_0x58a81c,_0x213f0f[_0x1f41df(0xde)],!0x1,_0x194c89,_0x275ebb==null?void 0x0:_0x275ebb['to'],_0x190707,_0x233fc5)),{'startInfo':_0x194c89,'endInfo':_0x4f94fc};}['_resolveExistingOrFreeEndpoint'](_0x1af5b4,_0x312dd8,_0x3f4628,_0x4e9107,_0x267130,_0x33a232,_0x3ba77b,_0x89a93d){const _0x279d20=_0x2d9630;if(_0x33a232){let _0x375511=I(_0x1af5b4,_0x312dd8,_0x33a232[_0x279d20(0xc7)],_0x33a232[_0x279d20(0xd7)],_0x3ba77b,_0x89a93d);if(_0x375511)return _0x375511;}return _0x267130?R(_0x1af5b4,_0x312dd8,_0x3f4628,_0x4e9107,_0x267130,_0x3ba77b,_0x89a93d):null;}};_0x5b4d34[_0x2d9630(0xf0)](z);export{F as FConnectorShape,P as FShape};