@univerjs-pro/sheets-shape 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x42b5(){const _0xb4f472=['point','visible','_sheetsShapeService','UpdateConnectorRelationCommand','_applyUpdate','push','UPDATE','isFrom','Tools','sin','shapeName','IDrawingManagerService','_ensureShapeModelManager','toPrimitive','top','_planDeletes','listShapes','_shapeModelManagerMap','get','SheetDrawingAnchorType','UniverDrawingPlugin','resolveShapeConnectionPoint','redos','prototype','_shapeService','lineShapeId','InsertSheetDrawingCommand','getCellWithCoordByIndex','COMMAND','@univerjs-pro/engine-shape','26765efyjkJ','sheets-shape.config','811200bTbqSm','flipY','_initCommands','Plugin','removeLinePoints','description','angle','@univerjs-pro/license','getDrawingByParam','parse','generateRandomId','sendToBack','getBatchAddOp','transformToDrawingPosition','UniverProLicense','drawingType','syncExecuteCommand','UniverSheetsShapePlugin','getShapeTextData','computeConnectorRouteLayout','getShapeType','_linesIds','setShapeType','front','getSheetCommandTarget','getDrawingData','data','preUndos','_disposed','add','Disposable','startX','resizeEnabled','range','call','insertShape','fromJSON','function','borderEnabled','Module','refresh','shapeId','listShapesInUnit','_instanceService','SetShapeDrawingDataCommand','deletes','left','hostType','Inject','UpdateSheetsShapeTypeMutation','SetDrawingApplyMutation','SetSheetsShapeTextVerticalToggleCommand','width','_sheetSkeletonService','sheet.command.update-connector-relation','worldRect','REMOVE','getShapeDataById','_config','flatMap','shapeType','selectable','SheetDrawingTransformPlanService','defineProperty','name','getId','values','getBatchUpdateOp','createFreeConnectorPointInfo','position','transform','rotation','getShapeRelation','canApplyShapeFormulaLastValue','removeShape','ISheetDrawingService','getShapeModel','createUniqueShapeName','SetDrawingArrangeCommand','SetSheetsShapeRotateCommand','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getShapeTypeById','DrawingApplyType','sheet.mutation.update-shape-data','forward','114igphWM','_arrange','_serializeShapeForUnit','UniverProEngineShape','_deserializeShapeForUnit','IUndoRedoService','SheetSkeletonService','2808674btXIGN','IResourceManagerService','SheetsShapeService','toJSON','UniverInstanceType','UniverDrawing','6615QcCxrP','@univerjs/sheets-drawing','getBasicShapeRelation','sheet.command.insert-shape','lineType','UniverSheetsDrawingPlugin','setShapeData','UNIVER_SHEET','map','getAdjustNames','unitId','3128RXBLKq','UniverSheetsPlugin','UpdateLineShapeResizeCommand','ang','UniverSheets','clear','preRedos','getConnectionSiteList','iterator','drawingId','addShape','@univerjs/drawing','810462KkTevO','subUnitId','UniverCore','SHEET_SHAPE_PLUGIN','_addLineFollowShapeUpdates','_toSnapshot','startY','_initSnapshot','version','keys','length','rotateEnabled','shapeData','287254QORCQL','sheet.command.update-line-shape-resize','hidden','_initCommandInterceptor','DEFAULT_SHAPE_WIDTH','buildConnectorEndpointUpdate','decorate','pushUndoRedo','hasShape','getSkeleton','result','sendBackward','bringToFront','relation','bringForward','pluginName','createFormulaLastValueMutation','string','getBasicShapeType','getShape','height','ShapeModel','_commandService','IConfigService','isConnectorShape','updateContext','symbol','type','DrawingTypeEnum','1RjsiVR','getSheetId','_injector','INSERT','@univerjs/sheets','has','setConfig','SetSheetDrawingCommand','resolveConnectorRoutePoints','adjustValues','_getConnectPointInfo','index','find','MUTATION','formulaBinding','41881vEjewQ','_planConnector','ICommandService','mode','constructor','_resolveBinding','getAdjustValueByName','filter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onCommandExecute','CommandType','flipX','setZOrder','_shapeAdapter','createDefaultInsertedShapeData','ensureSkeleton','skeleton','_resourcesManagerService','isLineShape','undos','_shapes','_shapeHostAdapterRegistry','registerCommand','getLineShapeRelation','from','forEach','originals','exports','registerPluginResource','getShapeDisplayNames','InsertShapeCommand','fill','_addLineRerouteUpdates','SheetInterceptorService','object','updates','UniverSheetsDrawing','28bTnYgd','isHorizontal','RemoveSheetDrawingCommand','IShapeHostAdapterRegistry','onCommandExecuted','transformToAxisAlignPosition','register','sheet.command.set-shape-rotate','updateShape','sequenceExecute','@univerjs/core','_drawingManagerService','onStarting','dispose','UniverProSheetsShape','sheet.command.set-shape-text-vertical-toggle','getStartConnectInfo','Both','getShapeData','params','cxnIndex','set','ArrangeTypeEnum','_drawingService','_configService','disposeWithMe','ClearSheetDrawingTransformerOperation','delete','getName','DRAWING_SHAPE','IUniverInstanceService','deepClone'];_0x42b5=function(){return _0xb4f472;};return _0x42b5();}function _0x2ede(_0x317b9e,_0x2dbfc1){_0x317b9e=_0x317b9e-0x13b;const _0x42b546=_0x42b5();let _0x2ede79=_0x42b546[_0x317b9e];return _0x2ede79;}(function(_0x3042b0,_0x54604e){const _0x2f2b7e=_0x2ede,_0x435706=_0x3042b0();while(!![]){try{const _0x364515=parseInt(_0x2f2b7e(0x21d))/0x1*(parseInt(_0x2f2b7e(0x200))/0x2)+parseInt(_0x2f2b7e(0x1f3))/0x3+parseInt(_0x2f2b7e(0x251))/0x4*(-parseInt(_0x2f2b7e(0x178))/0x5)+-parseInt(_0x2f2b7e(0x1cf))/0x6*(parseInt(_0x2f2b7e(0x22c))/0x7)+-parseInt(_0x2f2b7e(0x1e7))/0x8*(parseInt(_0x2f2b7e(0x1dc))/0x9)+-parseInt(_0x2f2b7e(0x17a))/0xa+parseInt(_0x2f2b7e(0x1d6))/0xb;if(_0x364515===_0x54604e)break;else _0x435706['push'](_0x435706['shift']());}catch(_0x10edc2){_0x435706['push'](_0x435706['shift']());}}}(_0x42b5,0x247d6),function(_0x5c490c,_0x4de075){const _0x1e692b=_0x2ede;typeof exports=='object'&&typeof module<'u'?_0x4de075(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x1e692b(0x19f)&&define['amd']?define([_0x1e692b(0x247),_0x1e692b(0x177),_0x1e692b(0x144),_0x1e692b(0x221),_0x1e692b(0x1dd),_0x1e692b(0x181),_0x1e692b(0x1f2)],_0x4de075):(_0x5c490c=typeof globalThis<'u'?globalThis:_0x5c490c||self,_0x4de075(_0x5c490c[_0x1e692b(0x148)]={},_0x5c490c[_0x1e692b(0x1d2)],_0x5c490c[_0x1e692b(0x1f5)],_0x5c490c[_0x1e692b(0x1eb)],_0x5c490c[_0x1e692b(0x250)],_0x5c490c[_0x1e692b(0x188)],_0x5c490c[_0x1e692b(0x1db)]));}(this,function(_0x4d09c1,_0x2754e3,_0x1a0f69,_0x7d67a2,_0xe343dc,_0x17e6fd,_0x321ac5){const _0x3d2e97=_0x2ede;Object[_0x3d2e97(0x1b9)](_0x4d09c1,Symbol['toStringTag'],{'value':_0x3d2e97(0x1a1)});function _0x32f6de(_0x25ae9a){'@babel/helpers - typeof';const _0x74c9a9=_0x3d2e97;return _0x32f6de=typeof Symbol==_0x74c9a9(0x19f)&&typeof Symbol[_0x74c9a9(0x1ef)]==_0x74c9a9(0x21a)?function(_0x1bed60){return typeof _0x1bed60;}:function(_0x5476c0){const _0x3eba83=_0x74c9a9;return _0x5476c0&&typeof Symbol==_0x3eba83(0x19f)&&_0x5476c0[_0x3eba83(0x230)]===Symbol&&_0x5476c0!==Symbol[_0x3eba83(0x171)]?_0x3eba83(0x21a):typeof _0x5476c0;},_0x32f6de(_0x25ae9a);}function _0x154db0(_0x3dc04c,_0x4df551){const _0x41c517=_0x3d2e97;if(_0x32f6de(_0x3dc04c)!=_0x41c517(0x24e)||!_0x3dc04c)return _0x3dc04c;var _0x273ec8=_0x3dc04c[Symbol[_0x41c517(0x167)]];if(_0x273ec8!==void 0x0){var _0x2cc85f=_0x273ec8[_0x41c517(0x19c)](_0x3dc04c,_0x4df551||'default');if(_0x32f6de(_0x2cc85f)!=_0x41c517(0x24e))return _0x2cc85f;throw TypeError(_0x41c517(0x234));}return(_0x4df551==='string'?String:Number)(_0x3dc04c);}function _0x383944(_0x3a5724){const _0x55748d=_0x3d2e97;var _0x10a564=_0x154db0(_0x3a5724,_0x55748d(0x211));return _0x32f6de(_0x10a564)=='symbol'?_0x10a564:_0x10a564+'';}function _0x6985a3(_0x49d215,_0x294e28,_0x27faf2){const _0x554819=_0x3d2e97;return(_0x294e28=_0x383944(_0x294e28))in _0x49d215?Object[_0x554819(0x1b9)](_0x49d215,_0x294e28,{'value':_0x27faf2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x49d215[_0x294e28]=_0x27faf2,_0x49d215;}var _0x2dde96=class extends _0x1a0f69[_0x3d2e97(0x198)]{constructor(){const _0x15b756=_0x3d2e97;super(),_0x6985a3(this,_0x15b756(0x240),new Map()),_0x6985a3(this,'_linesIds',new Set()),_0x6985a3(this,'_groupIds',new Set());}[_0x3d2e97(0x1f1)](_0x176695,_0x53d5a1,_0x827929,_0x865184){const _0x20925b=_0x3d2e97;let _0x4bc0fc=new _0x2754e3[(_0x20925b(0x215))](_0x176695,_0x53d5a1,_0x827929,_0x865184);return this[_0x20925b(0x240)]['set'](_0x53d5a1,_0x4bc0fc),(0x0,_0x2754e3[_0x20925b(0x218)])(_0x176695)&&this['_linesIds']['add'](_0x53d5a1),_0x4bc0fc;}['getBasicShapeRelation'](_0x27b0f2){const _0x144536=_0x3d2e97;let _0x3a08da=[];for(let _0x4cd79e of this[_0x144536(0x18f)]){let _0x4ae191=this['_shapes'][_0x144536(0x16c)](_0x4cd79e);if(_0x4ae191){let _0x3cd503=_0x4ae191[_0x144536(0x1c2)]();if(_0x3cd503){var _0x14c42d,_0x51458f;((_0x14c42d=_0x3cd503[_0x144536(0x244)])==null?void 0x0:_0x14c42d[_0x144536(0x1a3)])===_0x27b0f2&&_0x3a08da['push']({..._0x3cd503[_0x144536(0x244)],'lineShapeId':_0x4cd79e,'isFrom':!0x0}),((_0x51458f=_0x3cd503['to'])==null?void 0x0:_0x51458f[_0x144536(0x1a3)])===_0x27b0f2&&_0x3a08da[_0x144536(0x15f)]({..._0x3cd503['to'],'lineShapeId':_0x4cd79e,'isFrom':!0x1});}}}return _0x3a08da;}['getLineShapeRelation'](_0x5bbcf1){const _0x10b187=_0x3d2e97;let _0xf75909=this[_0x10b187(0x240)][_0x10b187(0x16c)](_0x5bbcf1);if(_0xf75909)return _0xf75909[_0x10b187(0x1c2)]();}[_0x3d2e97(0x18e)](_0x4bdcd5){const _0x5aae61=_0x3d2e97;let _0x3962ac=this['_shapes'][_0x5aae61(0x16c)](_0x4bdcd5);if(_0x3962ac)return _0x3962ac[_0x5aae61(0x18e)]();}[_0x3d2e97(0x208)](_0x5a3aac){const _0x7274f7=_0x3d2e97;return this['_shapes'][_0x7274f7(0x222)](_0x5a3aac);}['getShapeDisplayNames'](){const _0x47ca5d=_0x3d2e97;return Array[_0x47ca5d(0x244)](this[_0x47ca5d(0x240)]['values']())[_0x47ca5d(0x1e4)](_0x27ffc4=>_0x27ffc4['getName']()||_0x27ffc4[_0x47ca5d(0x1bb)]());}[_0x3d2e97(0x1c4)](_0xeccf26){const _0x2bb7cd=_0x3d2e97;let _0x127e4d=this[_0x2bb7cd(0x240)][_0x2bb7cd(0x16c)](_0xeccf26);_0x127e4d&&((0x0,_0x2754e3['isConnectorShape'])(_0x127e4d[_0x2bb7cd(0x18e)]())&&this[_0x2bb7cd(0x18f)][_0x2bb7cd(0x155)](_0xeccf26),this['_shapes'][_0x2bb7cd(0x155)](_0xeccf26));}[_0x3d2e97(0x1d9)](){const _0x17a8c0=_0x3d2e97;let _0x4437ef=[];return this['_shapes'][_0x17a8c0(0x245)](_0x48bc44=>{_0x4437ef['push'](_0x48bc44['toJSON']());}),_0x4437ef;}[_0x3d2e97(0x19e)](_0x31fad0){const _0xbc3ae2=_0x3d2e97;for(let _0x5289cb of _0x31fad0){let {id:_0xd95014,shapeType:_0x430640,name:_0x228022}=_0x5289cb,_0x62828d=this[_0xbc3ae2(0x1f1)](_0x430640,_0xd95014,_0x5289cb[_0xbc3ae2(0x1ff)],_0x228022);_0x62828d&&_0x62828d[_0xbc3ae2(0x23e)]()&&this[_0xbc3ae2(0x18f)][_0xbc3ae2(0x197)](_0xd95014);}}[_0x3d2e97(0x147)](){const _0x5b08cf=_0x3d2e97;this[_0x5b08cf(0x196)]||(this[_0x5b08cf(0x240)]['forEach'](_0x8ea124=>{_0x8ea124['dispose']();}),this[_0x5b08cf(0x240)]['clear'](),this[_0x5b08cf(0x18f)][_0x5b08cf(0x1ec)](),this['_groupIds'][_0x5b08cf(0x1ec)](),super[_0x5b08cf(0x147)]());}};function _0x53ca3c(_0x1029bf,_0x236725){return function(_0x597291,_0x2ce823){_0x236725(_0x597291,_0x2ce823,_0x1029bf);};}function _0x1ab055(_0x1f61e0,_0x1a98ca,_0x6aa9e8,_0xd907eb){const _0x2800e4=_0x3d2e97;var _0x565f1f=arguments[_0x2800e4(0x1fd)],_0x402977=_0x565f1f<0x3?_0x1a98ca:_0xd907eb===null?_0xd907eb=Object['getOwnPropertyDescriptor'](_0x1a98ca,_0x6aa9e8):_0xd907eb,_0x408b3c;if(typeof Reflect==_0x2800e4(0x24e)&&typeof Reflect[_0x2800e4(0x206)]==_0x2800e4(0x19f))_0x402977=Reflect[_0x2800e4(0x206)](_0x1f61e0,_0x1a98ca,_0x6aa9e8,_0xd907eb);else{for(var _0x5ef8f3=_0x1f61e0[_0x2800e4(0x1fd)]-0x1;_0x5ef8f3>=0x0;_0x5ef8f3--)(_0x408b3c=_0x1f61e0[_0x5ef8f3])&&(_0x402977=(_0x565f1f<0x3?_0x408b3c(_0x402977):_0x565f1f>0x3?_0x408b3c(_0x1a98ca,_0x6aa9e8,_0x402977):_0x408b3c(_0x1a98ca,_0x6aa9e8))||_0x402977);}return _0x565f1f>0x3&&_0x402977&&Object[_0x2800e4(0x1b9)](_0x1a98ca,_0x6aa9e8,_0x402977),_0x402977;}let _0x3f2849=class extends _0x1a0f69[_0x3d2e97(0x198)]{constructor(_0x5a1d87){const _0x612e1a=_0x3d2e97;super(),this[_0x612e1a(0x23d)]=_0x5a1d87,_0x6985a3(this,_0x612e1a(0x16b),new Map()),this[_0x612e1a(0x1fa)]();}[_0x3d2e97(0x166)](_0x48d255,_0x1a31aa){const _0x2f97a4=_0x3d2e97;let _0x2d891e=this['_shapeModelManagerMap'][_0x2f97a4(0x16c)](_0x48d255);_0x2d891e||(_0x2d891e=new Map(),this[_0x2f97a4(0x16b)]['set'](_0x48d255,_0x2d891e));let _0x4a1672=_0x2d891e[_0x2f97a4(0x16c)](_0x1a31aa);return _0x4a1672||(_0x4a1672=new _0x2dde96(),_0x2d891e[_0x2f97a4(0x14f)](_0x1a31aa,_0x4a1672)),_0x4a1672;}[_0x3d2e97(0x19d)](_0x151642,_0x57feb0,_0x3b6c77,_0x1f0d9d,_0x3f1f7b,_0x735d3d){const _0x4286e0=_0x3d2e97;this[_0x4286e0(0x166)](_0x151642,_0x57feb0)[_0x4286e0(0x1f1)](_0x3b6c77,_0x1f0d9d,_0x3f1f7b,_0x735d3d);}[_0x3d2e97(0x1c4)](_0x3ddd15,_0x24c9ee,_0x4560b9){const _0x3a525d=_0x3d2e97;this[_0x3a525d(0x166)](_0x3ddd15,_0x24c9ee)['removeShape'](_0x4560b9);}[_0x3d2e97(0x212)](_0x56cea1,_0x2a5c8d,_0x2a837e){const _0x343df4=_0x3d2e97;return this['_ensureShapeModelManager'](_0x56cea1,_0x2a5c8d)[_0x343df4(0x18e)](_0x2a837e);}[_0x3d2e97(0x18e)](_0x3b4f2f,_0xb633ec,_0x5d8477){const _0x1d4818=_0x3d2e97;return this['_ensureShapeModelManager'](_0x3b4f2f,_0xb633ec)[_0x1d4818(0x18e)](_0x5d8477);}['hasShape'](_0x1c3d34,_0x7cc961,_0x39f8c3){const _0x13d4a5=_0x3d2e97;return this[_0x13d4a5(0x166)](_0x1c3d34,_0x7cc961)[_0x13d4a5(0x208)](_0x39f8c3);}[_0x3d2e97(0x1cb)](_0x135543,_0x27c3af,_0x1b37c7){const _0x2a5621=_0x3d2e97;return this[_0x2a5621(0x166)](_0x135543,_0x27c3af)[_0x2a5621(0x18e)](_0x1b37c7);}[_0x3d2e97(0x1b3)](_0x4f1914,_0x2dc820,_0x41bc61){const _0x37a501=_0x3d2e97;let _0x5a5769=this['_ensureShapeModelManager'](_0x4f1914,_0x2dc820);if(!_0x5a5769[_0x37a501(0x18e)](_0x41bc61))return;let _0x2b4e40=_0x5a5769[_0x37a501(0x240)][_0x37a501(0x16c)](_0x41bc61);if(_0x2b4e40)return _0x2b4e40[_0x37a501(0x14c)]();}[_0x3d2e97(0x249)](_0x286106,_0x2f1c05){const _0x221bf1=_0x3d2e97;return this[_0x221bf1(0x166)](_0x286106,_0x2f1c05)[_0x221bf1(0x249)]();}['getShapeModel'](_0x5cac88,_0x3270e4,_0x1aa0d6){const _0xa39d59=_0x3d2e97;return this[_0xa39d59(0x166)](_0x5cac88,_0x3270e4)['_shapes'][_0xa39d59(0x16c)](_0x1aa0d6);}[_0x3d2e97(0x1de)](_0xb95a45,_0x1818d7,_0x37d697){const _0x575ec4=_0x3d2e97;return this[_0x575ec4(0x166)](_0xb95a45,_0x1818d7)[_0x575ec4(0x1de)](_0x37d697);}[_0x3d2e97(0x243)](_0x5ad348,_0xe16139,_0x2e48a4){const _0x5dc62b=_0x3d2e97;let _0xe8f58b=this[_0x5dc62b(0x166)](_0x5ad348,_0xe16139)[_0x5dc62b(0x240)]['get'](_0x2e48a4);if(_0xe8f58b)return _0xe8f58b[_0x5dc62b(0x1c2)]();}[_0x3d2e97(0x190)](){}['_serializeShapeForUnit'](_0x238aab){const _0x5b61e3=_0x3d2e97;let _0x519802={},_0x87d33d=this[_0x5b61e3(0x16b)][_0x5b61e3(0x16c)](_0x238aab);return _0x87d33d&&_0x87d33d[_0x5b61e3(0x245)]((_0x2bb8be,_0x58b8a9)=>{const _0xebba91=_0x5b61e3;let _0x30f15a=_0x2bb8be[_0xebba91(0x1d9)]();_0x30f15a[_0xebba91(0x1fd)]>0x0&&(_0x519802[_0x58b8a9]=_0x30f15a);}),JSON['stringify'](_0x519802);}[_0x3d2e97(0x1d3)](_0x213ce4,_0x4cb26e){const _0x35f97b=_0x3d2e97;Object['keys'](_0x4cb26e)[_0x35f97b(0x245)](_0x32cd83=>{const _0x316380=_0x35f97b;this[_0x316380(0x166)](_0x213ce4,_0x32cd83)[_0x316380(0x19e)](_0x4cb26e[_0x32cd83]);});}['toJSON'](){const _0x5e6d17=_0x3d2e97;let _0x1a5248={};return this[_0x5e6d17(0x16b)][_0x5e6d17(0x245)]((_0x3eedc1,_0x50b7e2)=>{const _0x496043=_0x5e6d17;_0x1a5248[_0x50b7e2]={},_0x3eedc1[_0x496043(0x245)]((_0x313185,_0x2ceed4)=>{const _0x5c7db4=_0x496043;_0x1a5248[_0x50b7e2][_0x2ceed4]=_0x313185[_0x5c7db4(0x1d9)]();});}),_0x1a5248;}['fromJSON'](_0x22039a){const _0x5d3c9b=_0x3d2e97;Object[_0x5d3c9b(0x1fc)](_0x22039a)[_0x5d3c9b(0x245)](_0x3d5a33=>{const _0x3cb7db=_0x5d3c9b;let _0x3fd0ba=_0x22039a[_0x3d5a33];Object[_0x3cb7db(0x1fc)](_0x3fd0ba)['forEach'](_0x168ea5=>{const _0x4fd6d8=_0x3cb7db;this[_0x4fd6d8(0x166)](_0x3d5a33,_0x168ea5)['fromJSON'](_0x3fd0ba[_0x168ea5]);});});}[_0x3d2e97(0x1fa)](){const _0xc3e169=_0x3d2e97;this['_resourcesManagerService'][_0xc3e169(0x248)]({'pluginName':_0xc3e169(0x1f6),'businesses':[_0x1a0f69[_0xc3e169(0x1da)][_0xc3e169(0x1e3)]],'toJson':_0x15ceb1=>this[_0xc3e169(0x1d1)](_0x15ceb1),'parseJson':_0x5756d8=>JSON[_0xc3e169(0x183)](_0x5756d8),'onLoad':(_0x2c1979,_0x59cc59)=>{const _0x398179=_0xc3e169;this[_0x398179(0x1d3)](_0x2c1979,_0x59cc59);},'onUnLoad':_0x24f3c8=>{const _0x354613=_0xc3e169;let _0x2658c6=this[_0x354613(0x16b)][_0x354613(0x16c)](_0x24f3c8);_0x2658c6&&(_0x2658c6[_0x354613(0x245)](_0x3b88da=>{const _0x28a1b3=_0x354613;_0x3b88da[_0x28a1b3(0x147)]();}),this[_0x354613(0x16b)][_0x354613(0x155)](_0x24f3c8));}});}['dispose'](){const _0x5b1a2d=_0x3d2e97;this[_0x5b1a2d(0x16b)][_0x5b1a2d(0x245)](_0x5314f0=>{const _0x370abc=_0x5b1a2d;_0x5314f0[_0x370abc(0x245)](_0x5a45f0=>{_0x5a45f0['dispose']();});});}};_0x3f2849=_0x1ab055([_0x53ca3c(0x0,_0x1a0f69[_0x3d2e97(0x1d7)])],_0x3f2849);let _0x79b3a4={'id':'sheet.mutation.insert-shape','type':_0x1a0f69[_0x3d2e97(0x236)]['MUTATION'],'handler':(_0x2926e0,_0x4814f7)=>{const _0x150688=_0x3d2e97;let {unitId:_0x3de307,subUnitId:_0x86a4cd,shapeType:_0x3fe946,shapeId:_0x5ec5fd,shapeName:_0x31ff81,shapeData:_0xc9b06d}=_0x4814f7;return _0x2926e0[_0x150688(0x16c)](_0x3f2849)['insertShape'](_0x3de307,_0x86a4cd,_0x3fe946,_0x5ec5fd,_0x1a0f69[_0x150688(0x162)]['deepClone'](_0xc9b06d),_0x31ff81),!0x0;}},_0x1001e9={'id':'sheet.mutation.remove-shape','type':_0x1a0f69['CommandType'][_0x3d2e97(0x22a)],'handler':(_0x82b86,_0x79dedf)=>{const _0x4c6b4b=_0x3d2e97;let {unitId:_0x3bc4a8,subUnitId:_0x14b6ba,shapeId:_0xf29349}=_0x79dedf;return _0x82b86[_0x4c6b4b(0x16c)](_0x3f2849)[_0x4c6b4b(0x1c4)](_0x3bc4a8,_0x14b6ba,_0xf29349),!0x0;}},_0x33b913={'type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x176)],'id':_0x3d2e97(0x1df),'handler':(_0x270180,_0x4c838f)=>{const _0x4976f9=_0x3d2e97;let _0x353c16=(0x0,_0x7d67a2[_0x4976f9(0x192)])(_0x270180[_0x4976f9(0x16c)](_0x1a0f69[_0x4976f9(0x158)]),_0x4c838f);if(!_0x353c16)return!0x1;let _0x44e4d0=_0x270180['get'](_0x7d67a2['SheetSkeletonService']),{unitId:_0x56766d,subUnitId:_0x1a6337}=_0x353c16,_0x335c6e=_0x44e4d0[_0x4976f9(0x23b)](_0x56766d,_0x1a6337);if(!_0x335c6e)return!0x1;let _0x2f3604=_0x270180['get'](_0x1a0f69[_0x4976f9(0x22e)]),_0x4b87fd=_0x270180[_0x4976f9(0x16c)](_0x1a0f69[_0x4976f9(0x1d4)]),_0x4fa76a=_0x270180[_0x4976f9(0x16c)](_0x7d67a2[_0x4976f9(0x24d)]),_0x23e07b=_0x270180[_0x4976f9(0x16c)](_0xe343dc[_0x4976f9(0x1c5)]),_0x451933=_0x270180[_0x4976f9(0x16c)](_0x3f2849),{shapeType:_0x5eb6f7}=_0x4c838f,_0x5ce63f=_0x4c838f['shapeData']??(0x0,_0x2754e3[_0x4976f9(0x23a)])(_0x5eb6f7),_0x5c9e70=_0x4c838f['shapeId']||(0x0,_0x1a0f69[_0x4976f9(0x184)])(),_0x4243ec={'unitId':_0x56766d,'subUnitId':_0x1a6337,'shapeId':_0x5c9e70,'shapeName':_0x4c838f[_0x4976f9(0x164)]??(0x0,_0x2754e3[_0x4976f9(0x1c7)])(_0x5eb6f7,_0x451933[_0x4976f9(0x249)](_0x56766d,_0x1a6337)),'shapeType':_0x5eb6f7,'shapeData':_0x5ce63f},_0x155aaa=_0x4c838f[_0x4976f9(0x1ae)]||0xc8,_0x5df39e=_0x4c838f[_0x4976f9(0x214)]||0xc8,_0x19fcdb=0x0,_0x145ca1=0x0;if(_0x4c838f[_0x4976f9(0x1bf)]){let {x:_0x4b34d8,y:_0x5325b4}=_0x4c838f[_0x4976f9(0x1bf)];_0x19fcdb=_0x4b34d8,_0x145ca1=_0x5325b4;}else{if(_0x4c838f[_0x4976f9(0x19b)]){let {startRow:_0x17837f,startColumn:_0x536eb8}=_0x4c838f[_0x4976f9(0x19b)],_0x3e4784=_0x335c6e[_0x4976f9(0x175)](_0x17837f,_0x536eb8);_0x19fcdb=_0x3e4784[_0x4976f9(0x199)]+0xa,_0x145ca1=_0x3e4784[_0x4976f9(0x1f9)]+0xa;}}let _0x3a3ceb={'left':_0x19fcdb,'top':_0x145ca1,'width':_0x155aaa,'height':_0x5df39e,'angle':_0x4c838f['rotation']??0x0,'flipX':_0x4c838f[_0x4976f9(0x237)]??!0x1,'flipY':_0x4c838f['flipY']??!0x1},_0x3bed8b=(0x0,_0xe343dc['transformToDrawingPosition'])(_0x3a3ceb,_0x335c6e),_0x330424=(0x0,_0xe343dc[_0x4976f9(0x13f)])(_0x3a3ceb,_0x335c6e),_0x381b47={'unitId':_0x56766d,'subUnitId':_0x1a6337,'drawingId':_0x5c9e70,'drawingType':_0x1a0f69[_0x4976f9(0x21c)][_0x4976f9(0x157)],'anchorType':_0xe343dc[_0x4976f9(0x16d)][_0x4976f9(0x14b)],'name':_0x4c838f['name'],'description':_0x4c838f['description'],'sheetTransform':_0x3bed8b,'transform':_0x3a3ceb,'data':{'shapeType':_0x5eb6f7,'shapeData':_0x5ce63f},'axisAlignSheetTransform':_0x330424,'allowTransform':!0x0,'hidden':_0x4c838f[_0x4976f9(0x15b)]===!0x1,'selectable':_0x4c838f['selectable']??!0x0};(0x0,_0x2754e3[_0x4976f9(0x218)])(_0x5eb6f7)&&(_0x381b47[_0x4976f9(0x194)][_0x4976f9(0x24b)]=!0x1,_0x381b47['data'][_0x4976f9(0x1fe)]=!0x1,_0x381b47[_0x4976f9(0x194)][_0x4976f9(0x19a)]=!0x1,_0x381b47[_0x4976f9(0x194)]['borderEnabled']=!0x1,_0x381b47[_0x4976f9(0x1c0)]['rotateEnabled']=!0x1,_0x381b47[_0x4976f9(0x1c0)][_0x4976f9(0x19a)]=!0x1,_0x381b47[_0x4976f9(0x1c0)][_0x4976f9(0x1a0)]=!0x1);let {undo:_0x1f0b72,redo:_0x5905bd,objects:_0xd24e9a}=_0x23e07b[_0x4976f9(0x186)]([_0x381b47]),_0x3f2439=_0x4fa76a[_0x4976f9(0x235)]({'id':_0xe343dc[_0x4976f9(0x174)]['id'],'params':{'unitId':_0x56766d,'drawings':[_0x381b47]}}),_0x29852b=[..._0x3f2439[_0x4976f9(0x1ed)]??[],{'id':_0xe343dc[_0x4976f9(0x1ac)]['id'],'params':{'unitId':_0x56766d,'subUnitId':_0x1a6337,'op':_0x5905bd,'objects':_0xd24e9a,'type':_0xe343dc['DrawingApplyType'][_0x4976f9(0x220)]}},{'id':_0xe343dc[_0x4976f9(0x154)]['id'],'params':[_0x56766d]},..._0x3f2439[_0x4976f9(0x170)],{'id':_0x79b3a4['id'],'params':_0x4243ec}],_0x4febf2=[{'id':_0x1001e9['id'],'params':{'unitId':_0x56766d,'subUnitId':_0x1a6337,'shapeId':_0x5c9e70}},..._0x3f2439[_0x4976f9(0x195)]??[],{'id':_0xe343dc[_0x4976f9(0x1ac)]['id'],'params':{'unitId':_0x56766d,'subUnitId':_0x1a6337,'op':_0x1f0b72,'objects':_0xd24e9a,'type':_0xe343dc[_0x4976f9(0x1cc)][_0x4976f9(0x1b2)]}},{'id':_0xe343dc['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x56766d]},..._0x3f2439[_0x4976f9(0x23f)]];return(0x0,_0x1a0f69[_0x4976f9(0x143)])(_0x29852b,_0x2f3604)[_0x4976f9(0x20a)]?(_0x4b87fd[_0x4976f9(0x207)]({'unitID':_0x56766d,'undoMutations':_0x4febf2,'redoMutations':_0x29852b}),!0x0):!0x1;}},_0x28b26a={'id':_0x3d2e97(0x1cd),'type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x22a)],'handler':(_0x25e24b,_0x50f28d)=>{const _0x3d458e=_0x3d2e97;let {unitId:_0x21285f,subUnitId:_0x3bb378,shapeType:_0x4eac0b,shapeId:_0x5a05eb,shapeData:_0x27e145,replace:_0x5a0e04,formulaLastValueGuard:_0x8272e1}=_0x50f28d,_0x2a2953=_0x25e24b[_0x3d458e(0x16c)](_0x3f2849)[_0x3d458e(0x1c6)](_0x21285f,_0x3bb378,_0x5a05eb);if(_0x2a2953){var _0x98142c;if(!(0x0,_0x2754e3[_0x3d458e(0x1c3)])(_0x25e24b,{'hostType':_0x1a0f69[_0x3d458e(0x1da)][_0x3d458e(0x1e3)],'unitId':_0x21285f,'subUnitId':_0x3bb378,'shapeId':_0x5a05eb},(_0x98142c=_0x2a2953[_0x3d458e(0x14c)]()[_0x3d458e(0x22b)])==null?void 0x0:_0x98142c['formula'],_0x8272e1))return!0x0;_0x4eac0b!==void 0x0&&_0x2a2953[_0x3d458e(0x190)](_0x4eac0b),_0x27e145&&(_0x2a2953==null||_0x2a2953[_0x3d458e(0x1e2)](_0x1a0f69[_0x3d458e(0x162)]['deepClone'](_0x27e145),!_0x5a0e04));}return!0x0;}},_0x9dc81e={'type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x176)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x5855eb,_0x47cd80)=>{const _0x367473=_0x3d2e97;let _0x954847=(0x0,_0x7d67a2[_0x367473(0x192)])(_0x5855eb['get'](_0x1a0f69['IUniverInstanceService']),_0x47cd80);if(!_0x954847)return!0x1;let _0x57cfb0=_0x5855eb[_0x367473(0x16c)](_0x7d67a2[_0x367473(0x1d5)]),{unitId:_0x51c4c9,subUnitId:_0x1b83f9}=_0x954847,_0x272e1c=_0x57cfb0[_0x367473(0x23b)](_0x51c4c9,_0x1b83f9);if(!_0x272e1c)return!0x1;let _0x27c15b=_0x5855eb[_0x367473(0x16c)](_0x3f2849),{shapeId:_0x54776f,shapeType:_0x1562ec,shapeData:_0x6f1973,position:_0x3443a2,width:_0x4dcf33,height:_0x3579dc}=_0x47cd80,_0x484c7d=_0x27c15b['getShapeModel'](_0x51c4c9,_0x1b83f9,_0x54776f);if(!_0x484c7d)return!0x1;let _0xccda66=_0x5855eb[_0x367473(0x16c)](_0x1a0f69['ICommandService']),_0x3da7c3=_0x5855eb[_0x367473(0x16c)](_0x1a0f69[_0x367473(0x1d4)]),_0x290150=_0x5855eb[_0x367473(0x16c)](_0x7d67a2[_0x367473(0x24d)]),_0x263679=_0x5855eb['get'](_0xe343dc['ISheetDrawingService']),_0x167273={'unitId':_0x51c4c9,'subUnitId':_0x1b83f9,'shapeId':_0x54776f,'shapeType':_0x1562ec,'shapeData':_0x6f1973,'replace':!0x0},_0x3a86bd=_0x484c7d[_0x367473(0x18e)](),_0x4a1ae4=_0x484c7d[_0x367473(0x14c)](),{x:_0x4a4c55,y:_0x131ccd}=_0x3443a2,_0x407a42={'left':_0x4a4c55,'top':_0x131ccd,'width':_0x4dcf33,'height':_0x3579dc,'angle':_0x47cd80[_0x367473(0x1c1)]??0x0,'flipX':_0x47cd80[_0x367473(0x237)]??!0x1,'flipY':_0x47cd80['flipY']??!0x1},_0x4ac907=(0x0,_0xe343dc[_0x367473(0x187)])(_0x407a42,_0x272e1c),_0x17715b=(0x0,_0xe343dc[_0x367473(0x13f)])(_0x407a42,_0x272e1c),_0x172c28={'unitId':_0x51c4c9,'subUnitId':_0x1b83f9,'drawingId':_0x54776f,'drawingType':_0x1a0f69[_0x367473(0x21c)][_0x367473(0x157)],'name':_0x47cd80[_0x367473(0x1ba)],'description':_0x47cd80[_0x367473(0x17f)],'sheetTransform':_0x4ac907,'transform':_0x407a42,'data':{'shapeType':_0x1562ec,'shapeData':_0x6f1973},'axisAlignSheetTransform':_0x17715b,'allowTransform':!0x0,'hidden':!_0x47cd80[_0x367473(0x15b)],'selectable':_0x47cd80[_0x367473(0x1b7)]};(0x0,_0x2754e3[_0x367473(0x218)])(_0x1562ec)&&(_0x172c28[_0x367473(0x194)][_0x367473(0x24b)]=!0x1,_0x172c28['data'][_0x367473(0x1fe)]=!0x1,_0x172c28[_0x367473(0x194)][_0x367473(0x19a)]=!0x1,_0x172c28[_0x367473(0x194)][_0x367473(0x1a0)]=!0x1,_0x172c28[_0x367473(0x1c0)][_0x367473(0x1fe)]=!0x1,_0x172c28[_0x367473(0x1c0)][_0x367473(0x19a)]=!0x1,_0x172c28[_0x367473(0x1c0)][_0x367473(0x1a0)]=!0x1);let {undo:_0x259d7a,redo:_0x44b502,objects:_0x7abd78}=_0x263679[_0x367473(0x1bd)]([_0x172c28]),_0x3beec3=_0x290150[_0x367473(0x235)]({'id':_0xe343dc[_0x367473(0x224)]['id'],'params':{'unitId':_0x51c4c9,'drawings':[_0x172c28]}}),_0x2d05e5=[..._0x3beec3['preRedos']??[],{'id':_0xe343dc[_0x367473(0x1ac)]['id'],'params':{'unitId':_0x51c4c9,'subUnitId':_0x1b83f9,'op':_0x44b502,'objects':_0x7abd78,'type':_0xe343dc['DrawingApplyType']['UPDATE']}},{'id':_0xe343dc['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x51c4c9]},..._0x3beec3[_0x367473(0x170)],{'id':_0x28b26a['id'],'params':_0x167273}],_0x59aeab=[..._0x3beec3['preUndos']??[],{'id':_0xe343dc[_0x367473(0x1ac)]['id'],'params':{'unitId':_0x51c4c9,'subUnitId':_0x1b83f9,'op':_0x259d7a,'objects':_0x7abd78,'type':_0xe343dc[_0x367473(0x1cc)][_0x367473(0x160)]}},{'id':_0xe343dc[_0x367473(0x154)]['id'],'params':[_0x51c4c9]},..._0x3beec3['undos'],{'id':_0x28b26a['id'],'params':{'unitId':_0x51c4c9,'subUnitId':_0x1b83f9,'shapeType':_0x3a86bd,'shapeId':_0x54776f,'shapeData':_0x4a1ae4,'replace':!0x0}}];return(0x0,_0x1a0f69[_0x367473(0x143)])(_0x2d05e5,_0xccda66)[_0x367473(0x20a)]?(_0x3da7c3['pushUndoRedo']({'unitID':_0x51c4c9,'undoMutations':_0x59aeab,'redoMutations':_0x2d05e5}),!0x0):!0x1;}},_0x11ef58={'type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x176)],'id':'sheet.command.toggle-shape-flip','handler':(_0x59563f,_0x70f8b2)=>{const _0x59ce0e=_0x3d2e97;let _0x5c5f1f=(0x0,_0x7d67a2['getSheetCommandTarget'])(_0x59563f['get'](_0x1a0f69[_0x59ce0e(0x158)]),_0x70f8b2);if(!_0x5c5f1f)return!0x1;let _0x215f94=_0x59563f[_0x59ce0e(0x16c)](_0x7d67a2[_0x59ce0e(0x1d5)]),{unitId:_0x4dbc37,subUnitId:_0x578bc9}=_0x5c5f1f,_0x4145c6=_0x215f94[_0x59ce0e(0x209)](_0x4dbc37,_0x578bc9);if(!_0x4145c6)return!0x1;let _0x49280a=_0x59563f[_0x59ce0e(0x16c)](_0xe343dc['ISheetDrawingService']),{shapeId:_0x48da23,flipH:_0x1dd70e,flipV:_0x405b83}=_0x70f8b2,_0x31ff4f=_0x49280a[_0x59ce0e(0x182)]({'unitId':_0x4dbc37,'subUnitId':_0x578bc9,'drawingId':_0x48da23});if(!_0x31ff4f)return!0x1;let _0x2ac26b=_0x59563f['get'](_0x3f2849)[_0x59ce0e(0x1c6)](_0x4dbc37,_0x578bc9,_0x48da23);if(!_0x2ac26b)return!0x1;let _0x17589c=_0x59563f[_0x59ce0e(0x16c)](_0x1a0f69[_0x59ce0e(0x22e)]),_0x6763bb=_0x59563f[_0x59ce0e(0x16c)](_0x1a0f69[_0x59ce0e(0x1d4)]),_0x44a6dc=_0x59563f[_0x59ce0e(0x16c)](_0x7d67a2[_0x59ce0e(0x24d)]),_0x10b076={..._0x31ff4f[_0x59ce0e(0x1c0)]};_0x1dd70e!==void 0x0&&(_0x10b076['flipX']=!_0x10b076[_0x59ce0e(0x237)]),_0x405b83!==void 0x0&&(_0x10b076[_0x59ce0e(0x17b)]=!_0x10b076[_0x59ce0e(0x17b)]);let _0x1ab7c1=(0x0,_0xe343dc['transformToDrawingPosition'])(_0x10b076,_0x4145c6),_0x9cc4c1=(0x0,_0xe343dc[_0x59ce0e(0x13f)])(_0x10b076,_0x4145c6),_0x1cee2c=_0x2ac26b[_0x59ce0e(0x18e)](),_0x40e419=_0x2ac26b[_0x59ce0e(0x14c)](),_0x484dbd={'unitId':_0x4dbc37,'subUnitId':_0x578bc9,'drawingId':_0x48da23,'drawingType':_0x1a0f69['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x1ab7c1,'transform':_0x10b076,'data':{'shapeType':_0x1cee2c,'shapeData':_0x40e419},'axisAlignSheetTransform':_0x9cc4c1,'allowTransform':!0x0},{undo:_0x17d084,redo:_0x54d47a,objects:_0x5333d0}=_0x49280a['getBatchUpdateOp']([_0x484dbd]),_0x4b67a9=_0x44a6dc[_0x59ce0e(0x235)]({'id':_0xe343dc[_0x59ce0e(0x224)]['id'],'params':{'unitId':_0x4dbc37,'drawings':[_0x484dbd]}}),_0x44a2c4=[..._0x4b67a9[_0x59ce0e(0x1ed)]??[],{'id':_0xe343dc[_0x59ce0e(0x1ac)]['id'],'params':{'unitId':_0x4dbc37,'subUnitId':_0x578bc9,'op':_0x54d47a,'objects':_0x5333d0,'type':_0xe343dc[_0x59ce0e(0x1cc)][_0x59ce0e(0x160)]}},{'id':_0xe343dc[_0x59ce0e(0x154)]['id'],'params':[_0x4dbc37]},..._0x4b67a9[_0x59ce0e(0x170)]],_0x342890=[..._0x4b67a9[_0x59ce0e(0x195)]??[],{'id':_0xe343dc['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4dbc37,'subUnitId':_0x578bc9,'op':_0x17d084,'objects':_0x5333d0,'type':_0xe343dc[_0x59ce0e(0x1cc)][_0x59ce0e(0x160)]}},{'id':_0xe343dc[_0x59ce0e(0x154)]['id'],'params':[_0x4dbc37]},..._0x4b67a9['undos']];if((0x0,_0x2754e3[_0x59ce0e(0x218)])(_0x1cee2c)){let _0x38d327=_0x2ac26b['getShapeRelation']();if(_0x38d327){let _0x3ebb55={..._0x38d327};_0x3ebb55[_0x59ce0e(0x244)]=void 0x0,_0x3ebb55['to']=void 0x0,_0x44a2c4[_0x59ce0e(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x4dbc37,'subUnitId':_0x578bc9,'shapeId':_0x48da23,'shapeType':_0x1cee2c,'shapeData':{'relation':_0x3ebb55}}}),_0x342890[_0x59ce0e(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x4dbc37,'subUnitId':_0x578bc9,'shapeId':_0x48da23,'shapeType':_0x1cee2c,'shapeData':{'relation':_0x38d327}}});}}return(0x0,_0x1a0f69[_0x59ce0e(0x143)])(_0x44a2c4,_0x17589c)['result']?(_0x6763bb['pushUndoRedo']({'unitID':_0x4dbc37,'undoMutations':_0x342890,'redoMutations':_0x44a2c4}),!0x0):!0x1;}},_0x5eb3c5={'type':_0x1a0f69['CommandType'][_0x3d2e97(0x176)],'id':_0x3d2e97(0x141),'handler':(_0xa4f463,_0x1dc67b)=>{const _0x2845a0=_0x3d2e97;let _0x224b13=(0x0,_0x7d67a2[_0x2845a0(0x192)])(_0xa4f463[_0x2845a0(0x16c)](_0x1a0f69[_0x2845a0(0x158)]),_0x1dc67b);if(!_0x224b13)return!0x1;let _0x23b8e8=_0xa4f463[_0x2845a0(0x16c)](_0x7d67a2[_0x2845a0(0x1d5)]),{unitId:_0x268e15,subUnitId:_0x2b1f73}=_0x224b13,_0x388d55=_0x23b8e8[_0x2845a0(0x209)](_0x268e15,_0x2b1f73);if(!_0x388d55)return!0x1;let _0x2c807d=_0xa4f463['get'](_0xe343dc[_0x2845a0(0x1c5)]),{shapeId:_0x54c4b5,rotate:_0xde9e90}=_0x1dc67b,_0x41b2ad=_0x2c807d[_0x2845a0(0x182)]({'unitId':_0x268e15,'subUnitId':_0x2b1f73,'drawingId':_0x54c4b5});if(!_0x41b2ad)return!0x1;let _0x188006=_0xa4f463[_0x2845a0(0x16c)](_0x3f2849)[_0x2845a0(0x1c6)](_0x268e15,_0x2b1f73,_0x54c4b5);if(!_0x188006)return!0x1;let _0x305795=_0xa4f463[_0x2845a0(0x16c)](_0x1a0f69['ICommandService']),_0x1f2135=_0xa4f463['get'](_0x1a0f69[_0x2845a0(0x1d4)]),_0x1884c1=_0xa4f463['get'](_0x7d67a2[_0x2845a0(0x24d)]),_0x49f933={..._0x41b2ad[_0x2845a0(0x1c0)]};_0xde9e90!==void 0x0&&(_0x49f933[_0x2845a0(0x180)]=(_0x49f933[_0x2845a0(0x180)]||0x0)+_0xde9e90);let _0x2864cb=(0x0,_0xe343dc[_0x2845a0(0x187)])(_0x49f933,_0x388d55),_0x437a90=(0x0,_0xe343dc['transformToAxisAlignPosition'])(_0x49f933,_0x388d55),_0x481499=_0x188006[_0x2845a0(0x18e)](),_0x5d4047=_0x188006[_0x2845a0(0x14c)](),_0x4664e0={'unitId':_0x268e15,'subUnitId':_0x2b1f73,'drawingId':_0x54c4b5,'drawingType':_0x1a0f69[_0x2845a0(0x21c)][_0x2845a0(0x157)],'sheetTransform':_0x2864cb,'transform':_0x49f933,'data':{'shapeType':_0x481499,'shapeData':_0x5d4047},'axisAlignSheetTransform':_0x437a90,'allowTransform':!0x0},{undo:_0x153afe,redo:_0x4508c4,objects:_0x4ebbe1}=_0x2c807d[_0x2845a0(0x1bd)]([_0x4664e0]),_0x49e0a6=_0x1884c1[_0x2845a0(0x235)]({'id':_0xe343dc['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x268e15,'drawings':[_0x4664e0]}}),_0x3b8435=[..._0x49e0a6[_0x2845a0(0x1ed)]??[],{'id':_0xe343dc['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x268e15,'subUnitId':_0x2b1f73,'op':_0x4508c4,'objects':_0x4ebbe1,'type':_0xe343dc[_0x2845a0(0x1cc)]['UPDATE']}},{'id':_0xe343dc[_0x2845a0(0x154)]['id'],'params':[_0x268e15]},..._0x49e0a6[_0x2845a0(0x170)]],_0x31d4f9=[..._0x49e0a6[_0x2845a0(0x195)]??[],{'id':_0xe343dc[_0x2845a0(0x1ac)]['id'],'params':{'unitId':_0x268e15,'subUnitId':_0x2b1f73,'op':_0x153afe,'objects':_0x4ebbe1,'type':_0xe343dc[_0x2845a0(0x1cc)][_0x2845a0(0x160)]}},{'id':_0xe343dc['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x268e15]},..._0x49e0a6['undos']];return(0x0,_0x1a0f69[_0x2845a0(0x143)])(_0x3b8435,_0x305795)[_0x2845a0(0x20a)]?(_0x1f2135[_0x2845a0(0x207)]({'unitID':_0x268e15,'undoMutations':_0x31d4f9,'redoMutations':_0x3b8435}),!0x0):!0x1;}},_0x11d28a={'type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x176)],'id':_0x3d2e97(0x149),'handler':(_0x406f60,_0x7a31bd)=>{const _0x538577=_0x3d2e97;let _0x136f7d=(0x0,_0x7d67a2['getSheetCommandTarget'])(_0x406f60[_0x538577(0x16c)](_0x1a0f69[_0x538577(0x158)]),_0x7a31bd);if(!_0x136f7d)return!0x1;let {unitId:_0x27ee4d,subUnitId:_0x34a88f}=_0x136f7d,{shapeId:_0x3856b9}=_0x7a31bd,_0x20d177=_0x406f60[_0x538577(0x16c)](_0x3f2849)[_0x538577(0x1c6)](_0x27ee4d,_0x34a88f,_0x3856b9);if(!_0x20d177)return!0x1;let _0x5afa74=_0x20d177[_0x538577(0x18c)](),_0x582aad=(_0x5afa74==null?void 0x0:_0x5afa74[_0x538577(0x13b)])??!0x0,_0x1019ff=!_0x582aad,_0xe3d2cd=_0x406f60['get'](_0x1a0f69[_0x538577(0x22e)]),_0x12f61b=_0x406f60[_0x538577(0x16c)](_0x1a0f69['IUndoRedoService']),_0x1572a2={'unitId':_0x27ee4d,'subUnitId':_0x34a88f,'shapeId':_0x3856b9,'shapeData':{'shapeText':{'isHorizontal':_0x1019ff}}},_0x51c081={'unitId':_0x27ee4d,'subUnitId':_0x34a88f,'shapeId':_0x3856b9,'shapeData':{'shapeText':{'isHorizontal':_0x582aad}}},_0x1e4f9f=[{'id':_0x28b26a['id'],'params':_0x1572a2}],_0x21ad13=[{'id':_0x28b26a['id'],'params':_0x51c081}];return(0x0,_0x1a0f69[_0x538577(0x143)])(_0x1e4f9f,_0xe3d2cd)[_0x538577(0x20a)]?(_0x12f61b[_0x538577(0x207)]({'unitID':_0x27ee4d,'undoMutations':_0x21ad13,'redoMutations':_0x1e4f9f}),!0x0):!0x1;}},_0x118c1f={'type':_0x1a0f69[_0x3d2e97(0x236)]['COMMAND'],'id':_0x3d2e97(0x1b0),'handler':(_0x266478,_0x521c0c)=>{const _0x59a14d=_0x3d2e97;var _0x16a351;let _0x5ea97a=(0x0,_0x7d67a2['getSheetCommandTarget'])(_0x266478[_0x59a14d(0x16c)](_0x1a0f69[_0x59a14d(0x158)]),_0x521c0c);if(!_0x5ea97a)return!0x1;let _0x8984b0=_0x266478[_0x59a14d(0x16c)](_0x7d67a2['SheetSkeletonService']),{unitId:_0x12ae94,subUnitId:_0x57d92a}=_0x5ea97a,_0x19f02c=_0x8984b0[_0x59a14d(0x209)](_0x12ae94,_0x57d92a);if(!_0x19f02c)return!0x1;let _0x43c382=_0x266478[_0x59a14d(0x16c)](_0xe343dc[_0x59a14d(0x1c5)]),{connectorShapeId:_0x4b5bbd,width:_0x420103,height:_0x3975bb,left:_0x330265,top:_0x22aa96,flipX:_0x3a5991,flipY:_0x36b3ec,rotation:_0x1f4183,oldAdjustValues:_0xd6d834,newAdjustValues:_0x2de624,oldLineType:_0x39b611,newLineType:_0x311e2f,oldRelation:_0x4b3a5f,newRelation:_0x73b00c}=_0x521c0c,_0x41e90f=_0x43c382['getDrawingByParam']({'unitId':_0x12ae94,'subUnitId':_0x57d92a,'drawingId':_0x4b5bbd});if(!_0x41e90f)return!0x1;let _0xac381=_0x266478[_0x59a14d(0x16c)](_0x3f2849)[_0x59a14d(0x1c6)](_0x12ae94,_0x57d92a,_0x4b5bbd);if(!_0xac381)return!0x1;let _0x73a6e1=_0x266478[_0x59a14d(0x16c)](_0x1a0f69[_0x59a14d(0x22e)]),_0xebd6d4=_0x266478['get'](_0x1a0f69[_0x59a14d(0x1d4)]),_0x4957c3=_0x266478['get'](_0x7d67a2[_0x59a14d(0x24d)]),_0x5aad6f={..._0x41e90f['transform'],'width':_0x420103,'height':_0x3975bb,'left':_0x330265,'top':_0x22aa96,'flipX':_0x3a5991,'flipY':_0x36b3ec,'angle':_0x1f4183??((_0x16a351=_0x41e90f['transform'])==null?void 0x0:_0x16a351['angle'])??0x0},_0xa9f4b0=(0x0,_0xe343dc[_0x59a14d(0x187)])(_0x5aad6f,_0x19f02c),_0x1aa486=(0x0,_0xe343dc[_0x59a14d(0x13f)])(_0x5aad6f,_0x19f02c),_0x4fa3a4=_0xac381[_0x59a14d(0x18e)](),_0x4aa47b=_0xac381[_0x59a14d(0x14c)](),_0x34d63c={'unitId':_0x12ae94,'subUnitId':_0x57d92a,'drawingId':_0x4b5bbd,'drawingType':_0x1a0f69[_0x59a14d(0x21c)]['DRAWING_SHAPE'],'sheetTransform':_0xa9f4b0,'transform':_0x5aad6f,'data':{'shapeType':_0x311e2f||_0x39b611||_0x4fa3a4,'shapeData':{..._0x4aa47b,'adjustValues':_0x2de624||_0xd6d834||(_0x4aa47b==null?void 0x0:_0x4aa47b[_0x59a14d(0x226)]),'relation':_0x73b00c||_0x4b3a5f||(_0x4aa47b==null?void 0x0:_0x4aa47b['relation'])}},'axisAlignSheetTransform':_0x1aa486,'allowTransform':!0x0},{undo:_0x532aeb,redo:_0x1d7183,objects:_0x3b8450}=_0x43c382[_0x59a14d(0x1bd)]([_0x34d63c]),_0x56e7ea=_0x4957c3[_0x59a14d(0x235)]({'id':_0xe343dc[_0x59a14d(0x224)]['id'],'params':{'unitId':_0x12ae94,'drawings':[_0x34d63c]}}),_0x84745c=[..._0x56e7ea[_0x59a14d(0x1ed)]??[],{'id':_0xe343dc['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x12ae94,'subUnitId':_0x57d92a,'op':_0x1d7183,'objects':_0x3b8450,'type':_0xe343dc[_0x59a14d(0x1cc)]['UPDATE']}},{'id':_0xe343dc[_0x59a14d(0x154)]['id'],'params':[_0x12ae94]},..._0x56e7ea[_0x59a14d(0x170)],{'id':_0x28b26a['id'],'params':{'unitId':_0x12ae94,'subUnitId':_0x57d92a,'shapeId':_0x4b5bbd,'shapeType':_0x311e2f,'shapeData':{'adjustValues':_0x2de624,'relation':_0x73b00c}}}],_0x3ec342=[..._0x56e7ea[_0x59a14d(0x195)]??[],{'id':_0xe343dc['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x12ae94,'subUnitId':_0x57d92a,'op':_0x532aeb,'objects':_0x3b8450,'type':_0xe343dc['DrawingApplyType'][_0x59a14d(0x160)]}},{'id':_0xe343dc['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x12ae94]},..._0x56e7ea[_0x59a14d(0x23f)],{'id':_0x28b26a['id'],'params':{'unitId':_0x12ae94,'subUnitId':_0x57d92a,'shapeId':_0x4b5bbd,'shapeType':_0x4fa3a4,'shapeData':{..._0x4aa47b,'adjustValues':_0xd6d834||(_0x4aa47b==null?void 0x0:_0x4aa47b[_0x59a14d(0x226)]),'relation':_0x4b3a5f||(_0x4aa47b==null?void 0x0:_0x4aa47b[_0x59a14d(0x20d)])}}}];return(0x0,_0x1a0f69[_0x59a14d(0x143)])(_0x84745c,_0x73a6e1)[_0x59a14d(0x20a)]?(_0xebd6d4[_0x59a14d(0x207)]({'unitID':_0x12ae94,'undoMutations':_0x3ec342,'redoMutations':_0x84745c}),!0x0):!0x1;}},_0x246175={'type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x176)],'id':_0x3d2e97(0x201),'handler':(_0x4ddb85,_0x5a445c)=>{const _0x3b8d92=_0x3d2e97;let _0x25a903=(0x0,_0x7d67a2[_0x3b8d92(0x192)])(_0x4ddb85[_0x3b8d92(0x16c)](_0x1a0f69[_0x3b8d92(0x158)]),_0x5a445c);if(!_0x25a903)return!0x1;let _0x5b9a30=_0x4ddb85[_0x3b8d92(0x16c)](_0x7d67a2[_0x3b8d92(0x1d5)]),{unitId:_0x5ed9e5,subUnitId:_0x389100}=_0x25a903,_0x3bbc56=_0x5b9a30[_0x3b8d92(0x209)](_0x5ed9e5,_0x389100);if(!_0x3bbc56)return!0x1;let _0x62b048=_0x4ddb85[_0x3b8d92(0x16c)](_0xe343dc[_0x3b8d92(0x1c5)]),{shapeId:_0x4bac36,width:_0x456a63,height:_0x2e242d,left:_0x16ea4b,top:_0x5b5f1c,flipX:_0x3e7899,flipY:_0x36c4fc,angle:_0x31af68,oldAdjustValues:_0x4cd3d6,newAdjustValues:_0x397c1f,oldLineType:_0x197a8a,newLineType:_0x110d93}=_0x5a445c,_0x550f49=_0x62b048['getDrawingByParam']({'unitId':_0x5ed9e5,'subUnitId':_0x389100,'drawingId':_0x4bac36});if(!_0x550f49)return!0x1;let _0x20230a=_0x4ddb85['get'](_0x3f2849)[_0x3b8d92(0x1c6)](_0x5ed9e5,_0x389100,_0x4bac36);if(!_0x20230a)return!0x1;let _0x47ba97=_0x4ddb85[_0x3b8d92(0x16c)](_0x1a0f69[_0x3b8d92(0x22e)]),_0x2bc899=_0x4ddb85[_0x3b8d92(0x16c)](_0x1a0f69[_0x3b8d92(0x1d4)]),_0x331b0f=_0x4ddb85['get'](_0x7d67a2[_0x3b8d92(0x24d)]),_0x332970={..._0x550f49[_0x3b8d92(0x1c0)],'width':_0x456a63,'height':_0x2e242d,'left':_0x16ea4b,'top':_0x5b5f1c,'flipX':_0x3e7899,'flipY':_0x36c4fc,'angle':_0x31af68},_0x52cca3=(0x0,_0xe343dc[_0x3b8d92(0x187)])(_0x332970,_0x3bbc56),_0xab6e7f=(0x0,_0xe343dc[_0x3b8d92(0x13f)])(_0x332970,_0x3bbc56),_0x309f92=_0x20230a[_0x3b8d92(0x18e)](),_0x47bb54=_0x20230a[_0x3b8d92(0x14c)](),_0x3b4c4a={'unitId':_0x5ed9e5,'subUnitId':_0x389100,'drawingId':_0x4bac36,'drawingType':_0x1a0f69['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x52cca3,'transform':_0x332970,'data':{'shapeType':_0x110d93||_0x197a8a||_0x309f92,'shapeData':{..._0x47bb54,'adjustValues':_0x397c1f||_0x4cd3d6||(_0x47bb54==null?void 0x0:_0x47bb54['adjustValues'])}},'axisAlignSheetTransform':_0xab6e7f,'allowTransform':!0x0},{undo:_0x404f6c,redo:_0x2b249e,objects:_0x3ea9d2}=_0x62b048[_0x3b8d92(0x1bd)]([_0x3b4c4a]),_0x46c8b3=_0x331b0f['onCommandExecute']({'id':_0xe343dc[_0x3b8d92(0x224)]['id'],'params':{'unitId':_0x5ed9e5,'drawings':[_0x3b4c4a]}}),_0x29d342=[..._0x46c8b3[_0x3b8d92(0x1ed)]??[],{'id':_0xe343dc[_0x3b8d92(0x1ac)]['id'],'params':{'unitId':_0x5ed9e5,'subUnitId':_0x389100,'op':_0x2b249e,'objects':_0x3ea9d2,'type':_0xe343dc[_0x3b8d92(0x1cc)][_0x3b8d92(0x160)]}},{'id':_0xe343dc[_0x3b8d92(0x154)]['id'],'params':[_0x5ed9e5]},..._0x46c8b3[_0x3b8d92(0x170)],{'id':_0x28b26a['id'],'params':{'unitId':_0x5ed9e5,'subUnitId':_0x389100,'shapeId':_0x4bac36,'shapeType':_0x110d93,'shapeData':{'adjustValues':_0x397c1f}}}],_0x319e12=[..._0x46c8b3['preUndos']??[],{'id':_0xe343dc[_0x3b8d92(0x1ac)]['id'],'params':{'unitId':_0x5ed9e5,'subUnitId':_0x389100,'op':_0x404f6c,'objects':_0x3ea9d2,'type':_0xe343dc[_0x3b8d92(0x1cc)][_0x3b8d92(0x160)]}},{'id':_0xe343dc['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5ed9e5]},..._0x46c8b3['undos'],{'id':_0x28b26a['id'],'params':{'unitId':_0x5ed9e5,'subUnitId':_0x389100,'shapeId':_0x4bac36,'shapeType':_0x309f92,'shapeData':{..._0x47bb54,'adjustValues':_0x4cd3d6||(_0x47bb54==null?void 0x0:_0x47bb54[_0x3b8d92(0x226)])}}}];return(0x0,_0x1a0f69[_0x3b8d92(0x143)])(_0x29d342,_0x47ba97)[_0x3b8d92(0x20a)]?(_0x2bc899[_0x3b8d92(0x207)]({'unitID':_0x5ed9e5,'undoMutations':_0x319e12,'redoMutations':_0x29d342}),!0x0):!0x1;}},_0x48b8af={'id':'sheet.mutation.update-shape-type','type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x22a)],'handler':(_0x129c83,_0x1fcbb9)=>{const _0xcc5e49=_0x3d2e97;let {unitId:_0x426a08,subUnitId:_0x4adcf0,shapeType:_0x4e1c9f,shapeId:_0x4ca7d3,shapeData:_0x13e2be}=_0x1fcbb9,_0x337365=_0x129c83[_0xcc5e49(0x16c)](_0x3f2849)[_0xcc5e49(0x1c6)](_0x426a08,_0x4adcf0,_0x4ca7d3);return _0x337365&&(_0x337365[_0xcc5e49(0x190)](_0x4e1c9f),_0x13e2be&&(_0x337365==null||_0x337365[_0xcc5e49(0x1e2)](_0x13e2be))),!0x0;}};var _0x514575='@univerjs-pro/sheets-shape',_0x4e7b6c='1.0.0';function _0x1fce4f(_0x47e582){const _0x5b66f2=_0x3d2e97;var _0x252de1,_0x5f391d,_0x37917b,_0xf90866,_0x2390c2,_0x4ca19d,_0x56ee52;return{'left':((_0x252de1=_0x47e582[_0x5b66f2(0x1c0)])==null?void 0x0:_0x252de1[_0x5b66f2(0x1a8)])??0x0,'top':((_0x5f391d=_0x47e582[_0x5b66f2(0x1c0)])==null?void 0x0:_0x5f391d[_0x5b66f2(0x168)])??0x0,'width':((_0x37917b=_0x47e582[_0x5b66f2(0x1c0)])==null?void 0x0:_0x37917b[_0x5b66f2(0x1ae)])??0xc8,'height':((_0xf90866=_0x47e582['transform'])==null?void 0x0:_0xf90866[_0x5b66f2(0x214)])??0xc8,'rotation':((_0x2390c2=_0x47e582[_0x5b66f2(0x1c0)])==null?void 0x0:_0x2390c2[_0x5b66f2(0x1c1)])??0x0,'flipX':((_0x4ca19d=_0x47e582[_0x5b66f2(0x1c0)])==null?void 0x0:_0x4ca19d[_0x5b66f2(0x237)])??!0x1,'flipY':((_0x56ee52=_0x47e582[_0x5b66f2(0x1c0)])==null?void 0x0:_0x56ee52[_0x5b66f2(0x17b)])??!0x1};}let _0x4ed483=class{constructor(_0x204caa,_0x524145,_0x4ce6e4,_0x1d06e5){const _0x514cb8=_0x3d2e97;this[_0x514cb8(0x216)]=_0x204caa,this[_0x514cb8(0x172)]=_0x524145,this[_0x514cb8(0x151)]=_0x4ce6e4,this[_0x514cb8(0x1a5)]=_0x1d06e5,_0x6985a3(this,_0x514cb8(0x1a9),_0x1a0f69[_0x514cb8(0x1da)][_0x514cb8(0x1e3)]);}get['shapeChanged$'](){return{'subscribe':_0x5ab7ab=>{const _0x5461b7=_0x2ede;let _0x14abcf=this[_0x5461b7(0x216)][_0x5461b7(0x13e)](_0x384866=>{const _0x3e6bf2=_0x5461b7;(_0x384866['id']===_0x79b3a4['id']||_0x384866['id']===_0x1001e9['id']||_0x384866['id']===_0x28b26a['id']||_0x384866['id']===_0x48b8af['id'])&&_0x5ab7ab({'unitId':_0x384866[_0x3e6bf2(0x14d)][_0x3e6bf2(0x1e6)]});});return{'unsubscribe':()=>_0x14abcf[_0x5461b7(0x147)]()};}};}[_0x3d2e97(0x213)](_0x158c42){const _0x3e30b1=_0x3d2e97;var _0x5b8016;let _0xa92fb2=(_0x5b8016=this[_0x3e30b1(0x151)]['getDrawingData'](_0x158c42[_0x3e30b1(0x1e6)],_0x158c42[_0x3e30b1(0x1f4)]))==null?void 0x0:_0x5b8016[_0x158c42[_0x3e30b1(0x1a3)]],_0x52b9f7=this['_shapeService'][_0x3e30b1(0x18e)](_0x158c42[_0x3e30b1(0x1e6)],_0x158c42[_0x3e30b1(0x1f4)],_0x158c42[_0x3e30b1(0x1a3)]);if(!_0xa92fb2||_0xa92fb2['drawingType']!==_0x1a0f69[_0x3e30b1(0x21c)][_0x3e30b1(0x157)]||!_0x52b9f7)return null;let _0x50bae0=_0xa92fb2[_0x3e30b1(0x1c0)];return{..._0x158c42,'shapeType':_0x52b9f7,'shapeData':_0x1a0f69['Tools'][_0x3e30b1(0x159)](this[_0x3e30b1(0x172)][_0x3e30b1(0x1b3)](_0x158c42[_0x3e30b1(0x1e6)],_0x158c42[_0x3e30b1(0x1f4)],_0x158c42[_0x3e30b1(0x1a3)])??{}),'name':_0xa92fb2[_0x3e30b1(0x1ba)],'description':_0xa92fb2[_0x3e30b1(0x17f)],'visible':_0xa92fb2[_0x3e30b1(0x202)]!==!0x0,'selectable':_0xa92fb2['selectable']!==!0x1,'transform':{'left':(_0x50bae0==null?void 0x0:_0x50bae0[_0x3e30b1(0x1a8)])??0x0,'top':(_0x50bae0==null?void 0x0:_0x50bae0['top'])??0x0,'width':(_0x50bae0==null?void 0x0:_0x50bae0['width'])??0xc8,'height':(_0x50bae0==null?void 0x0:_0x50bae0['height'])??0xc8,'rotation':(_0x50bae0==null?void 0x0:_0x50bae0[_0x3e30b1(0x180)])??0x0,'flipX':(_0x50bae0==null?void 0x0:_0x50bae0[_0x3e30b1(0x237)])??!0x1,'flipY':(_0x50bae0==null?void 0x0:_0x50bae0['flipY'])??!0x1}};}[_0x3d2e97(0x16a)](_0x52bd79){const _0x4b5273=_0x3d2e97;let _0x396a23=this[_0x4b5273(0x151)][_0x4b5273(0x193)](_0x52bd79['unitId'],_0x52bd79[_0x4b5273(0x1f4)])??{};return Object[_0x4b5273(0x1bc)](_0x396a23)[_0x4b5273(0x233)](_0x5ac9b4=>(_0x5ac9b4==null?void 0x0:_0x5ac9b4['drawingType'])===_0x1a0f69[_0x4b5273(0x21c)]['DRAWING_SHAPE'])['map'](_0x3aeef0=>this['getShape']({..._0x52bd79,'shapeId':_0x3aeef0[_0x4b5273(0x1f0)]}))[_0x4b5273(0x233)](_0x4719a0=>!!_0x4719a0);}[_0x3d2e97(0x1a4)](_0x5bdbdb){const _0x1432ac=_0x3d2e97;let _0x53af92=this[_0x1432ac(0x1a5)]['getUnit'](_0x5bdbdb,_0x1a0f69[_0x1432ac(0x1da)][_0x1432ac(0x1e3)]);return(_0x53af92==null?void 0x0:_0x53af92['getSheets']()[_0x1432ac(0x1b5)](_0x3f6bf4=>this[_0x1432ac(0x16a)]({'hostType':this['hostType'],'unitId':_0x5bdbdb,'subUnitId':_0x3f6bf4[_0x1432ac(0x21e)]()})))??[];}['createShape'](_0x3eb736,_0x355bc3){const _0x47308c=_0x3d2e97;let _0x4a04ed=(0x0,_0x1a0f69[_0x47308c(0x184)])(),_0x7ab188=_0x1fce4f(_0x355bc3),_0x297a1e=_0x1a0f69['Tools'][_0x47308c(0x159)](_0x355bc3['shapeData']??(0x0,_0x2754e3[_0x47308c(0x23a)])(_0x355bc3[_0x47308c(0x1b6)]));return this[_0x47308c(0x216)][_0x47308c(0x18a)](_0x33b913['id'],{'unitId':_0x3eb736['unitId'],'subUnitId':_0x3eb736[_0x47308c(0x1f4)],'shapeId':_0x4a04ed,'shapeType':_0x355bc3['shapeType'],'shapeData':_0x297a1e,'name':_0x355bc3['name'],'description':_0x355bc3[_0x47308c(0x17f)],'position':{'x':_0x7ab188[_0x47308c(0x1a8)],'y':_0x7ab188['top']},'width':_0x7ab188[_0x47308c(0x1ae)],'height':_0x7ab188[_0x47308c(0x214)],'rotation':_0x7ab188[_0x47308c(0x1c1)],'flipX':_0x7ab188[_0x47308c(0x237)],'flipY':_0x7ab188[_0x47308c(0x17b)],'visible':_0x355bc3[_0x47308c(0x15b)]??!0x0,'selectable':_0x355bc3[_0x47308c(0x1b7)]??!0x0})?{..._0x3eb736,'shapeId':_0x4a04ed,'shapeType':_0x355bc3[_0x47308c(0x1b6)],'shapeData':_0x297a1e,'name':_0x355bc3[_0x47308c(0x1ba)],'description':_0x355bc3[_0x47308c(0x17f)],'visible':_0x355bc3[_0x47308c(0x15b)]??!0x0,'selectable':_0x355bc3[_0x47308c(0x1b7)]??!0x0,'transform':_0x7ab188}:null;}[_0x3d2e97(0x142)](_0x44440d,_0x2b7743){const _0x35ea4b=_0x3d2e97;var _0x1e3d2f;let _0x3d8988=this[_0x35ea4b(0x213)](_0x44440d);if(!_0x3d8988)return!0x1;let _0x6ab4eb={..._0x3d8988[_0x35ea4b(0x1c0)],..._0x2b7743[_0x35ea4b(0x1c0)]};return this[_0x35ea4b(0x216)]['syncExecuteCommand'](_0x9dc81e['id'],{'unitId':_0x44440d['unitId'],'subUnitId':_0x44440d[_0x35ea4b(0x1f4)],'shapeId':_0x44440d['shapeId'],'shapeType':_0x2b7743['shapeType']??((_0x1e3d2f=_0x2b7743['shapeData'])==null?void 0x0:_0x1e3d2f[_0x35ea4b(0x1b6)])??_0x3d8988[_0x35ea4b(0x1b6)],'shapeData':_0x2b7743[_0x35ea4b(0x1ff)]??_0x3d8988['shapeData'],'position':{'x':_0x6ab4eb['left'],'y':_0x6ab4eb[_0x35ea4b(0x168)]},'width':_0x6ab4eb[_0x35ea4b(0x1ae)],'height':_0x6ab4eb[_0x35ea4b(0x214)],'rotation':_0x6ab4eb[_0x35ea4b(0x1c1)],'flipX':_0x6ab4eb[_0x35ea4b(0x237)],'flipY':_0x6ab4eb[_0x35ea4b(0x17b)],'name':_0x35ea4b(0x1ba)in _0x2b7743?_0x2b7743[_0x35ea4b(0x1ba)]:_0x3d8988[_0x35ea4b(0x1ba)],'description':_0x35ea4b(0x17f)in _0x2b7743?_0x2b7743[_0x35ea4b(0x17f)]:_0x3d8988[_0x35ea4b(0x17f)],'visible':_0x2b7743[_0x35ea4b(0x15b)]??_0x3d8988['visible'],'selectable':_0x2b7743[_0x35ea4b(0x1b7)]??_0x3d8988[_0x35ea4b(0x1b7)]});}[_0x3d2e97(0x210)](_0x111a17,_0x164206,_0x52a22c){const _0x428266=_0x3d2e97;let _0x9ed0f=this[_0x428266(0x213)](_0x111a17),_0x197fc7=_0x9ed0f==null?void 0x0:_0x9ed0f[_0x428266(0x1ff)][_0x428266(0x22b)];return!_0x9ed0f||!_0x197fc7?null:{'id':_0x28b26a['id'],'params':{'unitId':_0x111a17['unitId'],'subUnitId':_0x111a17[_0x428266(0x1f4)],'shapeId':_0x111a17['shapeId'],'shapeData':{..._0x9ed0f[_0x428266(0x1ff)],'formulaBinding':{..._0x197fc7,'lastValue':_0x1a0f69[_0x428266(0x162)][_0x428266(0x159)](_0x52a22c)}},'replace':!0x0,'formulaLastValueGuard':_0x164206}};}[_0x3d2e97(0x1c4)](_0x5c10c7){const _0x30b92b=_0x3d2e97;return this[_0x30b92b(0x216)][_0x30b92b(0x18a)](_0xe343dc['RemoveSheetDrawingCommand']['id'],{'unitId':_0x5c10c7['unitId'],'drawings':[{'unitId':_0x5c10c7['unitId'],'subUnitId':_0x5c10c7[_0x30b92b(0x1f4)],'drawingId':_0x5c10c7['shapeId'],'drawingType':_0x1a0f69['DrawingTypeEnum'][_0x30b92b(0x157)]}]});}[_0x3d2e97(0x20c)](_0x2128d){const _0xe7305f=_0x3d2e97;return this['_arrange'](_0x2128d,_0x1a0f69['ArrangeTypeEnum'][_0xe7305f(0x191)]);}[_0x3d2e97(0x20e)](_0x1221ad){const _0x296b7a=_0x3d2e97;return this[_0x296b7a(0x1d0)](_0x1221ad,_0x1a0f69[_0x296b7a(0x150)][_0x296b7a(0x1ce)]);}[_0x3d2e97(0x20b)](_0x5ac8f2){const _0x4dd07b=_0x3d2e97;return this[_0x4dd07b(0x1d0)](_0x5ac8f2,_0x1a0f69[_0x4dd07b(0x150)]['backward']);}[_0x3d2e97(0x185)](_0x1718fb){const _0x5a7157=_0x3d2e97;return this['_arrange'](_0x1718fb,_0x1a0f69[_0x5a7157(0x150)]['back']);}[_0x3d2e97(0x238)](_0x2958bb,_0x151830){const _0xd8379c=_0x3d2e97;return this[_0xd8379c(0x216)][_0xd8379c(0x18a)](_0xe343dc[_0xd8379c(0x1c8)]['id'],{'unitId':_0x2958bb[_0xd8379c(0x1e6)],'subUnitId':_0x2958bb['subUnitId'],'drawingIds':[_0x2958bb['shapeId']],'zOrder':_0x151830});}['_arrange'](_0x23f395,_0xc5e5f3){const _0x5109e7=_0x3d2e97;return this[_0x5109e7(0x216)][_0x5109e7(0x18a)](_0xe343dc[_0x5109e7(0x1c8)]['id'],{'unitId':_0x23f395[_0x5109e7(0x1e6)],'subUnitId':_0x23f395[_0x5109e7(0x1f4)],'drawingIds':[_0x23f395[_0x5109e7(0x1a3)]],'arrangeType':_0xc5e5f3});}};_0x4ed483=_0x1ab055([_0x53ca3c(0x0,_0x1a0f69[_0x3d2e97(0x22e)]),_0x53ca3c(0x1,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x3f2849)),_0x53ca3c(0x2,_0xe343dc[_0x3d2e97(0x1c5)]),_0x53ca3c(0x3,_0x1a0f69[_0x3d2e97(0x158)])],_0x4ed483);let _0x380675={},_0x583695=class extends _0x1a0f69[_0x3d2e97(0x198)]{constructor(_0x1df570,_0x315fd7,_0x2869bc,_0x1a6882,_0x3a7f2e,_0x3af7a4,_0x1d51e2){const _0x7fc1a4=_0x3d2e97;super(),this[_0x7fc1a4(0x216)]=_0x1df570,this['_sheetInterceptorService']=_0x315fd7,this[_0x7fc1a4(0x1af)]=_0x2869bc,this[_0x7fc1a4(0x15c)]=_0x1a6882,this['_drawingManagerService']=_0x3a7f2e,this[_0x7fc1a4(0x241)]=_0x3af7a4,this[_0x7fc1a4(0x17c)](),this[_0x7fc1a4(0x203)](),this[_0x7fc1a4(0x153)](this[_0x7fc1a4(0x241)][_0x7fc1a4(0x140)](_0x1d51e2));}[_0x3d2e97(0x17c)](){const _0x12ff6a=_0x3d2e97;[_0x33b913,_0x9dc81e,_0x11ef58,_0x5eb3c5,_0x11d28a,_0x118c1f,_0x246175,_0x79b3a4,_0x1001e9,_0x48b8af,_0x28b26a][_0x12ff6a(0x245)](_0x5791c1=>this[_0x12ff6a(0x153)](this[_0x12ff6a(0x216)][_0x12ff6a(0x242)](_0x5791c1)));}[_0x3d2e97(0x203)](){const _0x5d58ca=_0x3d2e97;this[_0x5d58ca(0x153)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0xc08f25=>{const _0x528508=_0x5d58ca;if(_0xc08f25['id']===_0xe343dc[_0x528508(0x13c)]['id']){let {drawings:_0x18372a}=_0xc08f25[_0x528508(0x14d)],_0x395438=_0x18372a[_0x528508(0x233)](_0x264e73=>_0x264e73['drawingType']===_0x1a0f69[_0x528508(0x21c)][_0x528508(0x157)]);if(_0x395438[_0x528508(0x1fd)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2391d2=[],_0x14dd88=[];return _0x395438[_0x528508(0x245)](_0x3e144a=>{const _0x34f5f9=_0x528508;let {unitId:_0x392a4a,subUnitId:_0x453062,drawingId:_0x101e43}=_0x3e144a,_0x371380=this[_0x34f5f9(0x15c)][_0x34f5f9(0x1c6)](_0x392a4a,_0x453062,_0x101e43);if(!_0x371380)throw TypeError(_0x34f5f9(0x1ca)+_0x371380);_0x2391d2[_0x34f5f9(0x15f)]({'id':_0x1001e9['id'],'params':{'unitId':_0x392a4a,'subUnitId':_0x453062,'shapeId':_0x101e43}}),_0x14dd88[_0x34f5f9(0x15f)]({'id':_0x79b3a4['id'],'params':{'unitId':_0x392a4a,'subUnitId':_0x453062,'shapeId':_0x101e43,'shapeType':_0x371380['getShapeType'](),'shapeData':_0x371380[_0x34f5f9(0x14c)]()}});let _0x221f1b=this[_0x34f5f9(0x15c)][_0x34f5f9(0x1de)](_0x392a4a,_0x453062,_0x101e43);if(_0x221f1b)for(let _0x1f3d45 of _0x221f1b){let _0x505495=_0x1f3d45['lineShapeId'],_0x3cd789=_0x1f3d45[_0x34f5f9(0x161)],_0x3f5790=_0x3cd789?{'from':void 0x0}:{'to':void 0x0},_0x4f0351=_0x3cd789?{'from':{'shapeId':_0x1f3d45[_0x34f5f9(0x1a3)],'cxnIndex':_0x1f3d45['cxnIndex']}}:{'to':{'shapeId':_0x1f3d45[_0x34f5f9(0x1a3)],'cxnIndex':_0x1f3d45[_0x34f5f9(0x14e)]}};_0x2391d2['push']({'id':_0x28b26a['id'],'params':{'unitId':_0x392a4a,'subUnitId':_0x453062,'shapeId':_0x505495,'shapeData':{'relation':_0x3f5790}}}),_0x14dd88['push']({'id':_0x28b26a['id'],'params':{'unitId':_0x392a4a,'subUnitId':_0x453062,'shapeId':_0x505495,'shapeData':{'relation':_0x4f0351}}});}}),{'preRedos':_0x2391d2,'redos':[],'preUndos':[],'undos':_0x14dd88};}if(_0xc08f25['id']===_0xe343dc[_0x528508(0x224)]['id']){let {drawings:_0x5979b0}=_0xc08f25[_0x528508(0x14d)],_0x34f918=_0x5979b0[_0x528508(0x233)](_0x157aaf=>_0x157aaf[_0x528508(0x189)]===_0x1a0f69['DrawingTypeEnum'][_0x528508(0x157)]);if(_0x34f918[_0x528508(0x1fd)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x320908=[],_0x4e69eb=[];for(let _0x472b16 of _0x34f918){let {unitId:_0x9a78d6,subUnitId:_0x5537d8,drawingId:_0x52e4aa,transform:_0x119f1d}=_0x472b16;if(!_0x9a78d6||!_0x5537d8||!_0x52e4aa||!_0x119f1d)continue;let _0x38b7ff=this[_0x528508(0x15c)]['getShapeModel'](_0x9a78d6,_0x5537d8,_0x52e4aa);if(!_0x38b7ff)throw TypeError(_0x528508(0x1ca)+_0x38b7ff);let _0x1d58ea=_0x38b7ff['getShapeType']();if((0x0,_0x2754e3['isConnectorShape'])(_0x1d58ea)){let _0x10f5df=this[_0x528508(0x15c)][_0x528508(0x243)](_0x9a78d6,_0x5537d8,_0x52e4aa);_0x10f5df&&(_0x320908[_0x528508(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x9a78d6,'subUnitId':_0x5537d8,'shapeId':_0x52e4aa,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4e69eb[_0x528508(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x9a78d6,'subUnitId':_0x5537d8,'shapeId':_0x52e4aa,'shapeData':{'relation':_0x10f5df}}}));}else{let _0xc08a3e=this[_0x528508(0x15c)][_0x528508(0x1de)](_0x9a78d6,_0x5537d8,_0x52e4aa);if(_0xc08a3e&&_0xc08a3e[_0x528508(0x1fd)]>0x0)for(let _0x53127b of _0xc08a3e){let _0x24627d=_0x53127b[_0x528508(0x173)],_0x16593e=_0x53127b[_0x528508(0x161)],_0x36db76=this[_0x528508(0x15c)][_0x528508(0x1c6)](_0x9a78d6,_0x5537d8,_0x24627d);if(!_0x36db76)continue;let _0x33bfbf=_0x36db76[_0x528508(0x14a)](),_0x318a6a=_0x36db76['getEndConnectInfo']();_0x33bfbf&&_0x318a6a?this[_0x528508(0x24c)](_0x9a78d6,_0x5537d8,_0x24627d,_0x36db76,_0x33bfbf,_0x318a6a,_0x320908,_0x4e69eb,_0x52e4aa,_0x119f1d):this[_0x528508(0x1f7)](_0x9a78d6,_0x5537d8,_0x24627d,_0x36db76,_0x16593e?_0x33bfbf:_0x318a6a,_0x16593e,_0x320908,_0x4e69eb,_0x52e4aa,_0x119f1d);}}}return{'preRedos':[],'redos':_0x320908,'preUndos':_0x4e69eb,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3d2e97(0x227)](_0x384b50,_0x38b78f,_0x41ecd3,_0x395042,_0xeb34b6){const _0x1e77f3=_0x3d2e97;if(!_0x38b78f||!_0x41ecd3)return null;let {shapeId:_0x28c3d7,cxnIndex:_0x595898}=_0x384b50,_0x341e5b=this[_0x1e77f3(0x15c)]['getShapeModel'](_0x38b78f,_0x41ecd3,_0x28c3d7);if(!_0x341e5b)return null;let _0x5b02ba=this[_0x1e77f3(0x145)][_0x1e77f3(0x182)]({'unitId':_0x38b78f,'subUnitId':_0x41ecd3,'drawingId':_0x28c3d7});if(!(_0x5b02ba!=null&&_0x5b02ba[_0x1e77f3(0x1c0)]))return null;let {left:_0x5d3cf1=0x0,top:_0x2218db=0x0,width:_0x26085c=0x0,height:_0x452f61=0x0,flipX:_0x19078a=!0x1,flipY:_0x98be69=!0x1,angle:_0x5e68c4}=_0x5b02ba[_0x1e77f3(0x1c0)];_0xeb34b6&&_0x395042===_0x28c3d7&&(_0x5d3cf1=_0xeb34b6['left']??_0x5d3cf1,_0x2218db=_0xeb34b6[_0x1e77f3(0x168)]??_0x2218db,_0x26085c=_0xeb34b6[_0x1e77f3(0x1ae)]??_0x26085c,_0x452f61=_0xeb34b6[_0x1e77f3(0x214)]??_0x452f61,_0x19078a=_0xeb34b6[_0x1e77f3(0x237)]??_0x19078a,_0x98be69=_0xeb34b6['flipY']??_0x98be69,_0x5e68c4=_0xeb34b6[_0x1e77f3(0x180)]??_0x5e68c4),_0x341e5b[_0x1e77f3(0x219)]({'width':_0x26085c,'height':_0x452f61});let _0x3a4059=_0x341e5b[_0x1e77f3(0x1ee)]()[_0x1e77f3(0x229)](_0x4197d8=>_0x4197d8[_0x1e77f3(0x228)]===_0x595898);if(!_0x3a4059)return null;let _0x3c357e=_0x19078a?_0x26085c-_0x3a4059['x']:_0x3a4059['x'],_0x13ab0b=_0x98be69?_0x452f61-_0x3a4059['y']:_0x3a4059['y'];if(_0x5e68c4!==0x0&&_0x5e68c4!=null){let _0x1b8754=_0x5e68c4*Math['PI']/0xb4,_0x3336ef=Math['cos'](_0x1b8754),_0x5d38bf=Math[_0x1e77f3(0x163)](_0x1b8754),_0x417afe=_0x26085c/0x2,_0x1c7c9b=_0x452f61/0x2,_0x41559b=_0x3c357e-_0x417afe,_0xb84c4e=_0x13ab0b-_0x1c7c9b;_0x3c357e=_0x417afe+_0x41559b*_0x3336ef-_0xb84c4e*_0x5d38bf,_0x13ab0b=_0x1c7c9b+_0x41559b*_0x5d38bf+_0xb84c4e*_0x3336ef;}_0x3c357e+=_0x5d3cf1,_0x13ab0b+=_0x2218db;let _0x3cf6e3=_0x3a4059[_0x1e77f3(0x1ea)]/0xea60;_0x19078a&&(_0x3cf6e3=0xb4-_0x3cf6e3),_0x98be69&&(_0x3cf6e3=-_0x3cf6e3),_0x3cf6e3+=_0x5e68c4||0x0,_0x3cf6e3=(_0x3cf6e3%0x168+0x168)%0x168;let _0xeac2b6=(0x0,_0x2754e3['getBasicShapeRotateBound'])({'left':_0x5d3cf1,'top':_0x2218db,'width':_0x26085c,'height':_0x452f61},_0x5e68c4||0x0);return{'point':{'x':_0x3c357e,'y':_0x13ab0b},'angle':_0x3cf6e3,'bounds':_0xeac2b6};}['_addLineRerouteUpdates'](_0x523b1e,_0x36abce,_0x1ef84e,_0x3f5366,_0x574ba6,_0x1921e8,_0xfc5baf,_0x137f8a,_0x32cf73,_0x20955d){const _0x139295=_0x3d2e97;let _0x1b9bc4=this['_sheetSkeletonService'][_0x139295(0x209)](_0x523b1e,_0x36abce);if(!_0x1b9bc4)return;let _0x1ee7ed=_0x3f5366['getShapeRelation'](),_0x4b2460=_0x3f5366[_0x139295(0x1e5)](),_0x4d3402={},_0x5e49f6={};_0x4b2460['forEach'](_0x2c56c1=>{const _0x2122e2=_0x139295;let _0xb3da2c=_0x3f5366[_0x2122e2(0x232)](_0x2c56c1);_0x5e49f6[_0x2c56c1]=_0xb3da2c??0x0;});let _0x15201b=this[_0x139295(0x227)](_0x574ba6,_0x523b1e,_0x36abce,_0x32cf73,_0x20955d),_0x5aba62=this['_getConnectPointInfo'](_0x1921e8,_0x523b1e,_0x36abce,_0x32cf73,_0x20955d);if(_0x15201b&&_0x5aba62){let _0x269072=_0x3f5366[_0x139295(0x18e)](),_0x57bb52=(0x0,_0x2754e3['routeConnectorLineShape'])(_0x15201b,_0x5aba62,_0x269072),_0x5cecee=_0x269072;if(_0x57bb52){let _0x5b62b3=(0x0,_0x2754e3[_0x139295(0x18d)])(_0x57bb52,_0x3f5366['getShapeType']()),_0x11a85c=this[_0x139295(0x145)][_0x139295(0x193)](_0x523b1e,_0x36abce);if(_0x11a85c&&_0x11a85c[_0x1ef84e]){let _0x12d1de=_0x11a85c[_0x1ef84e];_0x5cecee=_0x5b62b3[_0x139295(0x1e0)];for(let [_0x189b36,_0x1dd736]of Object['entries'](_0x5b62b3[_0x139295(0x226)]))_0x4d3402[_0x189b36]=_0x1dd736;let _0x245692={..._0x12d1de[_0x139295(0x1c0)],'width':_0x5b62b3[_0x139295(0x1b1)][_0x139295(0x1ae)],'height':_0x5b62b3[_0x139295(0x1b1)][_0x139295(0x214)],'left':_0x5b62b3[_0x139295(0x1b1)][_0x139295(0x1a8)],'top':_0x5b62b3[_0x139295(0x1b1)][_0x139295(0x168)],'flipX':_0x5b62b3[_0x139295(0x1b1)][_0x139295(0x237)],'flipY':_0x5b62b3[_0x139295(0x1b1)][_0x139295(0x17b)],'angle':_0x5b62b3['rotation']},_0x2463a7=(0x0,_0xe343dc[_0x139295(0x187)])(_0x245692,_0x1b9bc4),_0x2aa9c5=(0x0,_0xe343dc[_0x139295(0x13f)])(_0x245692,_0x1b9bc4),_0x450b1e={'unitId':_0x523b1e,'subUnitId':_0x36abce,'drawingType':_0x1a0f69['DrawingTypeEnum'][_0x139295(0x157)],'drawingId':_0x1ef84e,'transform':_0x245692,'sheetTransform':_0x2463a7,'axisAlignSheetTransform':_0x2aa9c5},{unitId:_0x5210b2,subUnitId:_0x324ef8,undo:_0x246979,redo:_0x1e2598,objects:_0x3e7c90}=this[_0x139295(0x145)][_0x139295(0x1bd)]([_0x450b1e]);_0xfc5baf[_0x139295(0x15f)]({'id':_0xe343dc[_0x139295(0x1ac)]['id'],'params':{'unitId':_0x5210b2,'subUnitId':_0x324ef8,'op':_0x1e2598,'objects':_0x3e7c90,'type':_0xe343dc[_0x139295(0x1cc)]['UPDATE']}}),_0x137f8a[_0x139295(0x15f)]({'id':_0xe343dc[_0x139295(0x1ac)]['id'],'params':{'unitId':_0x5210b2,'subUnitId':_0x324ef8,'op':_0x246979,'objects':_0x3e7c90,'type':_0xe343dc['DrawingApplyType']['UPDATE']}});}_0x3f5366[_0x139295(0x17e)]();}_0xfc5baf[_0x139295(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x523b1e,'subUnitId':_0x36abce,'shapeId':_0x1ef84e,'shapeType':_0x5cecee,'shapeData':{'adjustValues':_0x4d3402,'relation':_0x1ee7ed}}}),_0x137f8a[_0x139295(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x523b1e,'subUnitId':_0x36abce,'shapeId':_0x1ef84e,'shapeType':_0x269072,'shapeData':{'adjustValues':_0x5e49f6,'relation':_0x1ee7ed}}});}}[_0x3d2e97(0x1f7)](_0x31b2d5,_0x3c9fbe,_0x55515a,_0x8b6c93,_0x2cec98,_0x486086,_0xd68719,_0x445fb1,_0x15e696,_0x2bcbd5){const _0x3d7256=_0x3d2e97;var _0x1ebb49;if(!_0x2cec98)return;let _0x28e103=this[_0x3d7256(0x1af)][_0x3d7256(0x209)](_0x31b2d5,_0x3c9fbe);if(!_0x28e103)return;let _0x9e0df2=(_0x1ebb49=this[_0x3d7256(0x145)][_0x3d7256(0x182)]({'unitId':_0x31b2d5,'subUnitId':_0x3c9fbe,'drawingId':_0x15e696}))==null?void 0x0:_0x1ebb49[_0x3d7256(0x1c0)];if(!_0x9e0df2)return;let _0x1cf717=_0x9e0df2[_0x3d7256(0x1a8)]!==_0x2bcbd5['left']||_0x9e0df2[_0x3d7256(0x168)]!==_0x2bcbd5[_0x3d7256(0x168)],_0x55cf15=_0x9e0df2[_0x3d7256(0x1ae)]!==_0x2bcbd5['width']||_0x9e0df2[_0x3d7256(0x214)]!==_0x2bcbd5[_0x3d7256(0x214)],_0x302d6d=_0x9e0df2['flipX']!==_0x2bcbd5['flipX']||_0x9e0df2[_0x3d7256(0x17b)]!==_0x2bcbd5[_0x3d7256(0x17b)],_0x47cfbb=_0x9e0df2[_0x3d7256(0x180)]!==_0x2bcbd5[_0x3d7256(0x180)];if(_0x1cf717&&!_0x55cf15&&!_0x302d6d&&!_0x47cfbb){let _0x4e4eab=(_0x2bcbd5[_0x3d7256(0x1a8)]??0x0)-(_0x9e0df2[_0x3d7256(0x1a8)]??0x0),_0x54c97b=(_0x2bcbd5[_0x3d7256(0x168)]??0x0)-(_0x9e0df2['top']??0x0),_0x4a1741=this[_0x3d7256(0x145)][_0x3d7256(0x193)](_0x31b2d5,_0x3c9fbe);if(_0x4a1741&&_0x4a1741[_0x55515a]){var _0x4c68cc,_0x4f2d55;let _0x43db0c=_0x4a1741[_0x55515a],_0x2049ae={..._0x43db0c[_0x3d7256(0x1c0)],'left':(((_0x4c68cc=_0x43db0c[_0x3d7256(0x1c0)])==null?void 0x0:_0x4c68cc[_0x3d7256(0x1a8)])??0x0)+_0x4e4eab,'top':(((_0x4f2d55=_0x43db0c[_0x3d7256(0x1c0)])==null?void 0x0:_0x4f2d55[_0x3d7256(0x168)])??0x0)+_0x54c97b},_0x10ae5c=(0x0,_0xe343dc[_0x3d7256(0x187)])(_0x2049ae,_0x28e103),_0xba2bad=(0x0,_0xe343dc['transformToAxisAlignPosition'])(_0x2049ae,_0x28e103),_0x2dbe41={'unitId':_0x31b2d5,'subUnitId':_0x3c9fbe,'drawingType':_0x1a0f69['DrawingTypeEnum']['DRAWING_SHAPE'],'drawingId':_0x55515a,'transform':_0x2049ae,'sheetTransform':_0x10ae5c,'axisAlignSheetTransform':_0xba2bad},{unitId:_0x4ecaf0,subUnitId:_0x260b0f,undo:_0x2ede4c,redo:_0x744b8a,objects:_0x9c00b1}=this[_0x3d7256(0x145)][_0x3d7256(0x1bd)]([_0x2dbe41]);_0xd68719['push']({'id':_0xe343dc[_0x3d7256(0x1ac)]['id'],'params':{'unitId':_0x4ecaf0,'subUnitId':_0x260b0f,'op':_0x744b8a,'objects':_0x9c00b1,'type':_0xe343dc[_0x3d7256(0x1cc)][_0x3d7256(0x160)]}}),_0x445fb1['push']({'id':_0xe343dc['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4ecaf0,'subUnitId':_0x260b0f,'op':_0x2ede4c,'objects':_0x9c00b1,'type':_0xe343dc['DrawingApplyType'][_0x3d7256(0x160)]}});}}else{let _0x3d642b=_0x8b6c93[_0x3d7256(0x14a)](),_0xfc51c6=_0x8b6c93['getEndConnectInfo']();this['_addLineRerouteUpdates'](_0x31b2d5,_0x3c9fbe,_0x55515a,_0x8b6c93,_0x3d642b,_0xfc51c6,_0xd68719,_0x445fb1,_0x15e696,_0x2bcbd5);}}};_0x583695=_0x1ab055([_0x53ca3c(0x0,_0x1a0f69['ICommandService']),_0x53ca3c(0x1,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x7d67a2[_0x3d2e97(0x24d)])),_0x53ca3c(0x2,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x7d67a2[_0x3d2e97(0x1d5)])),_0x53ca3c(0x3,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x3f2849)),_0x53ca3c(0x4,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x321ac5[_0x3d2e97(0x165)])),_0x53ca3c(0x5,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x2754e3[_0x3d2e97(0x13d)])),_0x53ca3c(0x6,(0x0,_0x1a0f69['Inject'])(_0x4ed483))],_0x583695);let _0x32894e=class extends _0x1a0f69[_0x3d2e97(0x198)]{constructor(_0x5533bf,_0x521f6d,_0x11fdc5){const _0xebf1eb=_0x3d2e97;super(),this[_0xebf1eb(0x172)]=_0x5533bf,this[_0xebf1eb(0x239)]=_0x521f6d,this[_0xebf1eb(0x153)](_0x11fdc5[_0xebf1eb(0x140)](this));}[_0x3d2e97(0x1c0)](_0xb89796){const _0xee2495=_0x3d2e97;let _0x89871b={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0xee2495(0x169)](_0xb89796,_0x89871b);for(let [_0x5c8a0f,_0x79a24]of _0xb89796[_0xee2495(0x246)])this['_planConnector'](_0xb89796,_0x5c8a0f,_0x79a24,_0x89871b);return _0x89871b;}[_0x3d2e97(0x169)](_0x4b46cc,_0x238921){const _0x1032cf=_0x3d2e97;if(_0x4b46cc[_0x1032cf(0x22f)]==='command')for(let _0x2cef75 of _0x4b46cc[_0x1032cf(0x1a7)]){let _0x1657c1=_0x4b46cc[_0x1032cf(0x246)][_0x1032cf(0x16c)](_0x2cef75),_0x2e3042=this['_shapeService'][_0x1032cf(0x1c6)](_0x4b46cc['unitId'],_0x4b46cc[_0x1032cf(0x1f4)],_0x2cef75);(_0x1657c1==null?void 0x0:_0x1657c1['drawingType'])===_0x1a0f69[_0x1032cf(0x21c)]['DRAWING_SHAPE']&&_0x2e3042&&(_0x238921[_0x1032cf(0x1ed)][_0x1032cf(0x15f)]({'id':_0x1001e9['id'],'params':{'unitId':_0x4b46cc[_0x1032cf(0x1e6)],'subUnitId':_0x4b46cc[_0x1032cf(0x1f4)],'shapeId':_0x2cef75}}),_0x238921[_0x1032cf(0x23f)]['push']({'id':_0x79b3a4['id'],'params':{'unitId':_0x4b46cc[_0x1032cf(0x1e6)],'subUnitId':_0x4b46cc['subUnitId'],'shapeId':_0x2cef75,'shapeName':_0x2e3042[_0x1032cf(0x156)](),'shapeType':_0x2e3042['getShapeType'](),'shapeData':_0x1a0f69[_0x1032cf(0x162)][_0x1032cf(0x159)](_0x2e3042['getShapeData']())}}));}}[_0x3d2e97(0x22d)](_0x50323f,_0x5700fe,_0x2f5ded,_0x25ee94){const _0x1d807f=_0x3d2e97;if(_0x2f5ded[_0x1d807f(0x189)]!==_0x1a0f69[_0x1d807f(0x21c)]['DRAWING_SHAPE']||_0x50323f['deletes']['has'](_0x5700fe))return;let _0x3e23b5=this[_0x1d807f(0x172)][_0x1d807f(0x1c6)](_0x50323f[_0x1d807f(0x1e6)],_0x50323f['subUnitId'],_0x5700fe);if(!_0x3e23b5||!(0x0,_0x2754e3['isConnectorShape'])(_0x3e23b5[_0x1d807f(0x18e)]()))return;let _0x291050=_0x3e23b5[_0x1d807f(0x1c2)]();if(!(_0x50323f[_0x1d807f(0x24f)]['has'](_0x5700fe)||_0x291050!=null&&_0x291050[_0x1d807f(0x244)]&&(_0x50323f[_0x1d807f(0x24f)][_0x1d807f(0x222)](_0x291050[_0x1d807f(0x244)][_0x1d807f(0x1a3)])||_0x50323f[_0x1d807f(0x1a7)][_0x1d807f(0x222)](_0x291050['from'][_0x1d807f(0x1a3)]))||_0x291050!=null&&_0x291050['to']&&(_0x50323f[_0x1d807f(0x24f)]['has'](_0x291050['to'][_0x1d807f(0x1a3)])||_0x50323f['deletes']['has'](_0x291050['to'][_0x1d807f(0x1a3)]))))return;let _0x101e66=_0x50323f[_0x1d807f(0x24f)][_0x1d807f(0x16c)](_0x5700fe)??_0x2f5ded,_0x34c42e=this['_toSnapshot'](_0x50323f,_0x101e66);if(!_0x34c42e)return;let _0x242677=(0x0,_0x2754e3[_0x1d807f(0x225)])(_0x34c42e);if(_0x242677[_0x1d807f(0x1fd)]<0x2)return;let _0x32f136=_0x1a0f69[_0x1d807f(0x162)][_0x1d807f(0x159)](_0x291050??{}),_0x36134e=_0x32f136[_0x1d807f(0x244)]&&this[_0x1d807f(0x231)](_0x50323f,_0x32f136[_0x1d807f(0x244)][_0x1d807f(0x1a3)],_0x32f136['from'][_0x1d807f(0x14e)]),_0x5de851=_0x32f136['to']&&this['_resolveBinding'](_0x50323f,_0x32f136['to'][_0x1d807f(0x1a3)],_0x32f136['to']['cxnIndex']);_0x32f136[_0x1d807f(0x244)]&&!_0x36134e&&delete _0x32f136[_0x1d807f(0x244)],_0x32f136['to']&&!_0x5de851&&delete _0x32f136['to'];let _0x578e27=_0x36134e||(0x0,_0x2754e3[_0x1d807f(0x1be)])((_0x5de851==null?void 0x0:_0x5de851['point'])??_0x242677[_0x242677['length']-0x1],_0x242677[0x0]),_0x443ded=_0x5de851||(0x0,_0x2754e3[_0x1d807f(0x1be)])((_0x36134e==null?void 0x0:_0x36134e[_0x1d807f(0x15a)])??_0x242677[0x0],_0x242677[_0x242677[_0x1d807f(0x1fd)]-0x1]),_0x304e99=(0x0,_0x2754e3[_0x1d807f(0x205)])(_0x34c42e,_0x578e27,_0x443ded,_0x32f136);if(_0x304e99!=null&&_0x304e99[_0x1d807f(0x1c0)]&&_0x304e99[_0x1d807f(0x1b6)]&&_0x304e99[_0x1d807f(0x1ff)]){if(this[_0x1d807f(0x15e)](_0x50323f,_0x101e66,_0x304e99),_0x50323f[_0x1d807f(0x22f)]===_0x1d807f(0x1a2)){_0x3e23b5['setShapeType'](_0x304e99[_0x1d807f(0x1b6)]),_0x3e23b5[_0x1d807f(0x1e2)](_0x1a0f69[_0x1d807f(0x162)][_0x1d807f(0x159)](_0x304e99[_0x1d807f(0x1ff)]),!0x1);return;}_0x25ee94[_0x1d807f(0x170)][_0x1d807f(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x50323f[_0x1d807f(0x1e6)],'subUnitId':_0x50323f['subUnitId'],'shapeId':_0x5700fe,'shapeType':_0x304e99[_0x1d807f(0x1b6)],'shapeData':_0x1a0f69['Tools'][_0x1d807f(0x159)](_0x304e99[_0x1d807f(0x1ff)]),'replace':!0x0}}),_0x25ee94['undos'][_0x1d807f(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x50323f[_0x1d807f(0x1e6)],'subUnitId':_0x50323f['subUnitId'],'shapeId':_0x5700fe,'shapeType':_0x3e23b5[_0x1d807f(0x18e)](),'shapeData':_0x1a0f69[_0x1d807f(0x162)][_0x1d807f(0x159)](_0x3e23b5[_0x1d807f(0x14c)]()),'replace':!0x0}});}}['_resolveBinding'](_0xec2606,_0x38c281,_0x855968){const _0x358fa2=_0x3d2e97;if(_0xec2606[_0x358fa2(0x1a7)]['has'](_0x38c281))return null;let _0x106b58=_0xec2606[_0x358fa2(0x24f)][_0x358fa2(0x16c)](_0x38c281)??_0xec2606[_0x358fa2(0x246)][_0x358fa2(0x16c)](_0x38c281);if(!_0x106b58)return null;let _0x354467=this[_0x358fa2(0x1f8)](_0xec2606,_0x106b58);return _0x354467?(0x0,_0x2754e3[_0x358fa2(0x16f)])(_0x354467,_0x855968):null;}[_0x3d2e97(0x1f8)](_0xea9ea4,_0x237fbf){const _0x284a95=_0x3d2e97;let _0x15c589={'hostType':_0x1a0f69[_0x284a95(0x1da)][_0x284a95(0x1e3)],'unitId':_0xea9ea4[_0x284a95(0x1e6)],'subUnitId':_0xea9ea4[_0x284a95(0x1f4)],'shapeId':_0x237fbf[_0x284a95(0x1f0)]},_0x5c4721=this[_0x284a95(0x239)]['getShape'](_0x15c589);return!_0x5c4721||!_0x237fbf[_0x284a95(0x1c0)]?null:{..._0x5c4721,'transform':{'left':_0x237fbf[_0x284a95(0x1c0)][_0x284a95(0x1a8)]??0x0,'top':_0x237fbf[_0x284a95(0x1c0)][_0x284a95(0x168)]??0x0,'width':_0x237fbf[_0x284a95(0x1c0)][_0x284a95(0x1ae)]??0x0,'height':_0x237fbf[_0x284a95(0x1c0)][_0x284a95(0x214)]??0x0,'rotation':_0x237fbf[_0x284a95(0x1c0)]['angle']??0x0,'flipX':_0x237fbf[_0x284a95(0x1c0)]['flipX']??!0x1,'flipY':_0x237fbf[_0x284a95(0x1c0)]['flipY']??!0x1}};}[_0x3d2e97(0x15e)](_0x915547,_0x575276,_0x29dccd){const _0x4c0b45=_0x3d2e97;let _0x469353=_0x575276,_0x534a5b={..._0x575276['transform'],'left':_0x29dccd[_0x4c0b45(0x1c0)][_0x4c0b45(0x1a8)],'top':_0x29dccd[_0x4c0b45(0x1c0)][_0x4c0b45(0x168)],'width':_0x29dccd['transform'][_0x4c0b45(0x1ae)],'height':_0x29dccd[_0x4c0b45(0x1c0)][_0x4c0b45(0x214)],'angle':_0x29dccd[_0x4c0b45(0x1c0)]['rotation'],'flipX':_0x29dccd[_0x4c0b45(0x1c0)][_0x4c0b45(0x237)],'flipY':_0x29dccd['transform'][_0x4c0b45(0x17b)]},_0x598d36={..._0x469353,'transform':_0x534a5b,'sheetTransform':(0x0,_0xe343dc[_0x4c0b45(0x187)])(_0x534a5b,_0x915547[_0x4c0b45(0x23c)]),'axisAlignSheetTransform':(0x0,_0xe343dc[_0x4c0b45(0x13f)])(_0x534a5b,_0x915547[_0x4c0b45(0x23c)]),'data':{..._0x469353['data'],'shapeType':_0x29dccd[_0x4c0b45(0x1b6)],'shapeData':_0x1a0f69[_0x4c0b45(0x162)]['deepClone'](_0x29dccd[_0x4c0b45(0x1ff)])}};_0x915547[_0x4c0b45(0x24f)][_0x4c0b45(0x14f)](_0x575276[_0x4c0b45(0x1f0)],_0x598d36);}};_0x32894e=_0x1ab055([_0x53ca3c(0x0,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x3f2849)),_0x53ca3c(0x1,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x4ed483)),_0x53ca3c(0x2,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0xe343dc[_0x3d2e97(0x1b8)]))],_0x32894e);let _0x36ab7d=class extends _0x1a0f69[_0x3d2e97(0x17d)]{constructor(_0x111ee9=_0x380675,_0xa1321f,_0x22ead2){const _0x216878=_0x3d2e97;super(),this[_0x216878(0x1b4)]=_0x111ee9,this[_0x216878(0x21f)]=_0xa1321f,this[_0x216878(0x152)]=_0x22ead2;let {..._0x2e6bdd}=(0x0,_0x1a0f69['merge'])({},_0x380675,this['_config']);this['_configService'][_0x216878(0x223)](_0x216878(0x179),_0x2e6bdd);}[_0x3d2e97(0x146)](){const _0x49a333=_0x3d2e97;let _0x4aaeab=this[_0x49a333(0x21f)];[[_0x2dde96],[_0x3f2849],[_0x4ed483],[_0x32894e],[_0x583695]][_0x49a333(0x245)](_0x4cfbeb=>_0x4aaeab['add'](_0x4cfbeb)),(0x0,_0x1a0f69['touchDependencies'])(_0x4aaeab,[[_0x3f2849],[_0x32894e],[_0x583695]]);}};_0x6985a3(_0x36ab7d,_0x3d2e97(0x21b),_0x1a0f69[_0x3d2e97(0x1da)][_0x3d2e97(0x1e3)]),_0x6985a3(_0x36ab7d,_0x3d2e97(0x20f),'SHEET_SHAPE_PLUGIN'),_0x6985a3(_0x36ab7d,'packageName',_0x514575),_0x6985a3(_0x36ab7d,_0x3d2e97(0x1fb),_0x4e7b6c),_0x36ab7d=_0x1ab055([(0x0,_0x1a0f69['DependentOn'])(_0x17e6fd['UniverLicensePlugin'],_0x321ac5[_0x3d2e97(0x16e)],_0x2754e3['UniverShapePlugin'],_0x7d67a2[_0x3d2e97(0x1e8)],_0xe343dc[_0x3d2e97(0x1e1)]),_0x53ca3c(0x1,(0x0,_0x1a0f69['Inject'])(_0x1a0f69['Injector'])),_0x53ca3c(0x2,_0x1a0f69[_0x3d2e97(0x217)])],_0x36ab7d),_0x4d09c1['DEFAULT_SHAPE_HEIGHT']=0xc8,_0x4d09c1[_0x3d2e97(0x204)]=0xc8,_0x4d09c1[_0x3d2e97(0x24a)]=_0x33b913,_0x4d09c1['InsertSheetsShapeMutation']=_0x79b3a4,_0x4d09c1['RemoveSheetsShapeMutation']=_0x1001e9,_0x4d09c1[_0x3d2e97(0x1a6)]=_0x9dc81e,_0x4d09c1[_0x3d2e97(0x1c9)]=_0x5eb3c5,_0x4d09c1[_0x3d2e97(0x1ad)]=_0x11d28a,Object[_0x3d2e97(0x1b9)](_0x4d09c1,_0x3d2e97(0x1d8),{'enumerable':!0x0,'get':function(){return _0x3f2849;}}),_0x4d09c1['ToggleSheetsShapeFlipCommand']=_0x11ef58,Object[_0x3d2e97(0x1b9)](_0x4d09c1,_0x3d2e97(0x18b),{'enumerable':!0x0,'get':function(){return _0x36ab7d;}}),_0x4d09c1[_0x3d2e97(0x15d)]=_0x118c1f,_0x4d09c1[_0x3d2e97(0x1e9)]=_0x246175,_0x4d09c1['UpdateSheetsShapeDataMutation']=_0x28b26a,_0x4d09c1[_0x3d2e97(0x1ab)]=_0x48b8af;}));
1
+ (function(_0x34401c,_0x394d29){const _0x1f7bc7=_0x3827,_0x21479d=_0x34401c();while(!![]){try{const _0x9c2e7e=parseInt(_0x1f7bc7(0x170))/0x1+parseInt(_0x1f7bc7(0xf8))/0x2+parseInt(_0x1f7bc7(0x7e))/0x3*(-parseInt(_0x1f7bc7(0x93))/0x4)+parseInt(_0x1f7bc7(0x129))/0x5+parseInt(_0x1f7bc7(0x151))/0x6+parseInt(_0x1f7bc7(0x12f))/0x7+parseInt(_0x1f7bc7(0x144))/0x8*(-parseInt(_0x1f7bc7(0x14d))/0x9);if(_0x9c2e7e===_0x394d29)break;else _0x21479d['push'](_0x21479d['shift']());}catch(_0x1f4a34){_0x21479d['push'](_0x21479d['shift']());}}}(_0x5899,0x91645),function(_0x24ed2c,_0x46d770){const _0x1bdaf2=_0x3827;typeof exports==_0x1bdaf2(0x150)&&typeof module<'u'?_0x46d770(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define['amd']?define([_0x1bdaf2(0x10c),_0x1bdaf2(0xb3),_0x1bdaf2(0xcd),'@univerjs/sheets',_0x1bdaf2(0xad),_0x1bdaf2(0xf6),_0x1bdaf2(0x17f)],_0x46d770):(_0x24ed2c=typeof globalThis<'u'?globalThis:_0x24ed2c||self,_0x46d770(_0x24ed2c[_0x1bdaf2(0x11e)]={},_0x24ed2c[_0x1bdaf2(0x172)],_0x24ed2c[_0x1bdaf2(0x7c)],_0x24ed2c[_0x1bdaf2(0x118)],_0x24ed2c['UniverSheetsDrawing'],_0x24ed2c[_0x1bdaf2(0x13c)],_0x24ed2c[_0x1bdaf2(0x17e)]));}(this,function(_0x3cfca4,_0x336bab,_0x5dc636,_0x22b381,_0x406c73,_0x1ceec9,_0x51a485){const _0x586436=_0x3827;Object[_0x586436(0x116)](_0x3cfca4,Symbol[_0x586436(0x136)],{'value':_0x586436(0x130)});function _0x320602(_0x1a9827){'@babel/helpers - typeof';const _0x29ab3c=_0x586436;return _0x320602=typeof Symbol==_0x29ab3c(0x15d)&&typeof Symbol['iterator']==_0x29ab3c(0xfc)?function(_0x2ab8d9){return typeof _0x2ab8d9;}:function(_0x523abe){const _0x3f94fb=_0x29ab3c;return _0x523abe&&typeof Symbol==_0x3f94fb(0x15d)&&_0x523abe[_0x3f94fb(0x187)]===Symbol&&_0x523abe!==Symbol['prototype']?_0x3f94fb(0xfc):typeof _0x523abe;},_0x320602(_0x1a9827);}function _0x44fe35(_0x1b9592,_0x4dc432){const _0xbf01a=_0x586436;if(_0x320602(_0x1b9592)!=_0xbf01a(0x150)||!_0x1b9592)return _0x1b9592;var _0x3c8582=_0x1b9592[Symbol[_0xbf01a(0x17d)]];if(_0x3c8582!==void 0x0){var _0x289223=_0x3c8582[_0xbf01a(0x72)](_0x1b9592,_0x4dc432||_0xbf01a(0x15b));if(_0x320602(_0x289223)!=_0xbf01a(0x150))return _0x289223;throw TypeError(_0xbf01a(0xb9));}return(_0x4dc432===_0xbf01a(0x9b)?String:Number)(_0x1b9592);}function _0x3e1641(_0x40dc87){const _0x3eb55c=_0x586436;var _0x49e7d9=_0x44fe35(_0x40dc87,'string');return _0x320602(_0x49e7d9)==_0x3eb55c(0xfc)?_0x49e7d9:_0x49e7d9+'';}function _0x28390f(_0x4360f9,_0x4c5d20,_0x59dba2){const _0x5135a6=_0x586436;return(_0x4c5d20=_0x3e1641(_0x4c5d20))in _0x4360f9?Object[_0x5135a6(0x116)](_0x4360f9,_0x4c5d20,{'value':_0x59dba2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4360f9[_0x4c5d20]=_0x59dba2,_0x4360f9;}var _0x5a5043=class extends _0x5dc636[_0x586436(0xb2)]{constructor(){const _0x4de28a=_0x586436;super(),_0x28390f(this,_0x4de28a(0xfe),new Map()),_0x28390f(this,_0x4de28a(0x8a),new Set()),_0x28390f(this,_0x4de28a(0xd4),new Set());}[_0x586436(0x90)](_0x46d7b0,_0x144395,_0x28d0cb,_0x53b8d0){const _0x97331b=_0x586436;let _0x6b5e72=new _0x336bab[(_0x97331b(0xfb))](_0x46d7b0,_0x144395,_0x28d0cb,_0x53b8d0);return this[_0x97331b(0xfe)][_0x97331b(0xe0)](_0x144395,_0x6b5e72),(0x0,_0x336bab['isConnectorShape'])(_0x46d7b0)&&this[_0x97331b(0x8a)][_0x97331b(0x147)](_0x144395),_0x6b5e72;}[_0x586436(0xc0)](_0xd7b796){const _0x17c285=_0x586436;let _0x3d7cbc=[];for(let _0x137200 of this['_linesIds']){let _0x3a559e=this[_0x17c285(0xfe)]['get'](_0x137200);if(_0x3a559e){let _0x9df38=_0x3a559e[_0x17c285(0x103)]();if(_0x9df38){var _0x280894,_0x52c879;((_0x280894=_0x9df38[_0x17c285(0x131)])==null?void 0x0:_0x280894[_0x17c285(0x164)])===_0xd7b796&&_0x3d7cbc[_0x17c285(0xce)]({..._0x9df38[_0x17c285(0x131)],'lineShapeId':_0x137200,'isFrom':!0x0}),((_0x52c879=_0x9df38['to'])==null?void 0x0:_0x52c879['shapeId'])===_0xd7b796&&_0x3d7cbc[_0x17c285(0xce)]({..._0x9df38['to'],'lineShapeId':_0x137200,'isFrom':!0x1});}}}return _0x3d7cbc;}[_0x586436(0x16a)](_0x155534){const _0x492682=_0x586436;let _0x2191e2=this[_0x492682(0xfe)]['get'](_0x155534);if(_0x2191e2)return _0x2191e2[_0x492682(0x103)]();}[_0x586436(0x88)](_0x462df2){const _0x397345=_0x586436;let _0x4edb03=this['_shapes'][_0x397345(0x89)](_0x462df2);if(_0x4edb03)return _0x4edb03[_0x397345(0x88)]();}[_0x586436(0x100)](_0x242bda){const _0x1dc917=_0x586436;return this[_0x1dc917(0xfe)][_0x1dc917(0xf1)](_0x242bda);}[_0x586436(0xf5)](){const _0x2abc52=_0x586436;return Array[_0x2abc52(0x131)](this['_shapes'][_0x2abc52(0x83)]())[_0x2abc52(0xf2)](_0x33d388=>_0x33d388[_0x2abc52(0xc9)]()||_0x33d388[_0x2abc52(0x169)]());}[_0x586436(0x174)](_0x1fd06b){const _0x350745=_0x586436;let _0x5711f1=this[_0x350745(0xfe)]['get'](_0x1fd06b);_0x5711f1&&((0x0,_0x336bab[_0x350745(0x91)])(_0x5711f1[_0x350745(0x88)]())&&this['_linesIds'][_0x350745(0xc8)](_0x1fd06b),this['_shapes'][_0x350745(0xc8)](_0x1fd06b));}['toJSON'](){const _0x247dff=_0x586436;let _0x1fec6e=[];return this[_0x247dff(0xfe)][_0x247dff(0x13a)](_0xb592ae=>{const _0x5e4a3f=_0x247dff;_0x1fec6e['push'](_0xb592ae[_0x5e4a3f(0x13f)]());}),_0x1fec6e;}[_0x586436(0x11b)](_0x42a980){const _0x1b0748=_0x586436;for(let _0x4a9114 of _0x42a980){let {id:_0x34f263,shapeType:_0x244433,name:_0x576e53}=_0x4a9114,_0x38d8d9=this['addShape'](_0x244433,_0x34f263,_0x4a9114[_0x1b0748(0xeb)],_0x576e53);_0x38d8d9&&_0x38d8d9[_0x1b0748(0xae)]()&&this[_0x1b0748(0x8a)][_0x1b0748(0x147)](_0x34f263);}}[_0x586436(0x137)](){const _0x23d759=_0x586436;this[_0x23d759(0x14b)]||(this['_shapes'][_0x23d759(0x13a)](_0x202434=>{_0x202434['dispose']();}),this[_0x23d759(0xfe)][_0x23d759(0xba)](),this[_0x23d759(0x8a)][_0x23d759(0xba)](),this[_0x23d759(0xd4)][_0x23d759(0xba)](),super['dispose']());}};function _0xe87e8c(_0x433fdb,_0x5b163d){return function(_0x282aa8,_0x1af340){_0x5b163d(_0x282aa8,_0x1af340,_0x433fdb);};}function _0x41d443(_0x596566,_0x87ceb6,_0xfd79f,_0x3bf764){const _0x5d52b5=_0x586436;var _0x41f845=arguments['length'],_0x1010b2=_0x41f845<0x3?_0x87ceb6:_0x3bf764===null?_0x3bf764=Object[_0x5d52b5(0x8d)](_0x87ceb6,_0xfd79f):_0x3bf764,_0x395b98;if(typeof Reflect==_0x5d52b5(0x150)&&typeof Reflect[_0x5d52b5(0x9c)]==_0x5d52b5(0x15d))_0x1010b2=Reflect['decorate'](_0x596566,_0x87ceb6,_0xfd79f,_0x3bf764);else{for(var _0x211672=_0x596566[_0x5d52b5(0xe4)]-0x1;_0x211672>=0x0;_0x211672--)(_0x395b98=_0x596566[_0x211672])&&(_0x1010b2=(_0x41f845<0x3?_0x395b98(_0x1010b2):_0x41f845>0x3?_0x395b98(_0x87ceb6,_0xfd79f,_0x1010b2):_0x395b98(_0x87ceb6,_0xfd79f))||_0x1010b2);}return _0x41f845>0x3&&_0x1010b2&&Object[_0x5d52b5(0x116)](_0x87ceb6,_0xfd79f,_0x1010b2),_0x1010b2;}let _0x441fd4=class extends _0x5dc636['Disposable']{constructor(_0x161e6b){const _0x498032=_0x586436;super(),this[_0x498032(0x7f)]=_0x161e6b,_0x28390f(this,_0x498032(0xfd),new Map()),this[_0x498032(0x14f)]();}[_0x586436(0x73)](_0x711d15,_0x1f7f1a){const _0x579a6a=_0x586436;let _0x53729e=this[_0x579a6a(0xfd)][_0x579a6a(0x89)](_0x711d15);_0x53729e||(_0x53729e=new Map(),this[_0x579a6a(0xfd)]['set'](_0x711d15,_0x53729e));let _0x39b99d=_0x53729e[_0x579a6a(0x89)](_0x1f7f1a);return _0x39b99d||(_0x39b99d=new _0x5a5043(),_0x53729e[_0x579a6a(0xe0)](_0x1f7f1a,_0x39b99d)),_0x39b99d;}[_0x586436(0xe7)](_0x568660,_0x3712ef,_0x1e2ee3,_0x2e98de,_0x5cd5ef,_0x105b7f){const _0x5b0891=_0x586436;this[_0x5b0891(0x73)](_0x568660,_0x3712ef)[_0x5b0891(0x90)](_0x1e2ee3,_0x2e98de,_0x5cd5ef,_0x105b7f);}[_0x586436(0x174)](_0x5ed7ef,_0x61da43,_0x515d30){const _0x82259c=_0x586436;this[_0x82259c(0x73)](_0x5ed7ef,_0x61da43)[_0x82259c(0x174)](_0x515d30);}[_0x586436(0x160)](_0x866029,_0x4ba237,_0x364ff1){const _0x1a15a4=_0x586436;return this[_0x1a15a4(0x73)](_0x866029,_0x4ba237)['getShapeType'](_0x364ff1);}[_0x586436(0x88)](_0x3d9f6e,_0x6dcf78,_0x272c3a){const _0x31d21c=_0x586436;return this[_0x31d21c(0x73)](_0x3d9f6e,_0x6dcf78)['getShapeType'](_0x272c3a);}[_0x586436(0x100)](_0x2be31b,_0xd6bea3,_0x1527a8){const _0x49e977=_0x586436;return this[_0x49e977(0x73)](_0x2be31b,_0xd6bea3)[_0x49e977(0x100)](_0x1527a8);}[_0x586436(0x86)](_0x23b700,_0x40a35b,_0x1f1461){const _0x1c4eb4=_0x586436;return this[_0x1c4eb4(0x73)](_0x23b700,_0x40a35b)['getShapeType'](_0x1f1461);}[_0x586436(0x153)](_0x2363cf,_0xee8825,_0x4d47f6){const _0x16a159=_0x586436;let _0x25fc5e=this[_0x16a159(0x73)](_0x2363cf,_0xee8825);if(!_0x25fc5e['getShapeType'](_0x4d47f6))return;let _0x1f9bbb=_0x25fc5e['_shapes'][_0x16a159(0x89)](_0x4d47f6);if(_0x1f9bbb)return _0x1f9bbb[_0x16a159(0x8b)]();}['getShapeDisplayNames'](_0x2c6239,_0x48d28d){const _0x182b89=_0x586436;return this['_ensureShapeModelManager'](_0x2c6239,_0x48d28d)[_0x182b89(0xf5)]();}[_0x586436(0x182)](_0x238716,_0x40ee47,_0x344c0a){const _0x10c086=_0x586436;return this['_ensureShapeModelManager'](_0x238716,_0x40ee47)[_0x10c086(0xfe)][_0x10c086(0x89)](_0x344c0a);}[_0x586436(0xc0)](_0x428519,_0x153250,_0x402282){const _0x3f055f=_0x586436;return this[_0x3f055f(0x73)](_0x428519,_0x153250)[_0x3f055f(0xc0)](_0x402282);}['getLineShapeRelation'](_0x3df235,_0x401523,_0x3931c0){const _0x301830=_0x586436;let _0x1fb41a=this[_0x301830(0x73)](_0x3df235,_0x401523)[_0x301830(0xfe)]['get'](_0x3931c0);if(_0x1fb41a)return _0x1fb41a['getShapeRelation']();}['setShapeType'](){}[_0x586436(0x171)](_0x568a89){const _0x4b9812=_0x586436;let _0x26a345={},_0xa007f1=this[_0x4b9812(0xfd)][_0x4b9812(0x89)](_0x568a89);return _0xa007f1&&_0xa007f1[_0x4b9812(0x13a)]((_0x25b59a,_0x502c24)=>{const _0xf7ecd5=_0x4b9812;let _0x14f692=_0x25b59a['toJSON']();_0x14f692[_0xf7ecd5(0xe4)]>0x0&&(_0x26a345[_0x502c24]=_0x14f692);}),JSON[_0x4b9812(0x183)](_0x26a345);}[_0x586436(0x11c)](_0x54c587,_0x1f168a){const _0x580662=_0x586436;Object['keys'](_0x1f168a)[_0x580662(0x13a)](_0x37a603=>{const _0x1b7c53=_0x580662;this[_0x1b7c53(0x73)](_0x54c587,_0x37a603)[_0x1b7c53(0x11b)](_0x1f168a[_0x37a603]);});}[_0x586436(0x13f)](){const _0x2bea21=_0x586436;let _0x3af389={};return this[_0x2bea21(0xfd)][_0x2bea21(0x13a)]((_0x3e13fc,_0x5e4dc3)=>{const _0xfa0384=_0x2bea21;_0x3af389[_0x5e4dc3]={},_0x3e13fc[_0xfa0384(0x13a)]((_0x2081f8,_0x240ac5)=>{_0x3af389[_0x5e4dc3][_0x240ac5]=_0x2081f8['toJSON']();});}),_0x3af389;}['fromJSON'](_0x3b0490){const _0xff75a8=_0x586436;Object[_0xff75a8(0x165)](_0x3b0490)[_0xff75a8(0x13a)](_0x497a52=>{const _0x5e36d0=_0xff75a8;let _0x155629=_0x3b0490[_0x497a52];Object['keys'](_0x155629)[_0x5e36d0(0x13a)](_0xe449af=>{const _0x2e2b0c=_0x5e36d0;this[_0x2e2b0c(0x73)](_0x497a52,_0xe449af)[_0x2e2b0c(0x11b)](_0x155629[_0xe449af]);});});}[_0x586436(0x14f)](){const _0x5c5d8d=_0x586436;this[_0x5c5d8d(0x7f)][_0x5c5d8d(0x9a)]({'pluginName':_0x5c5d8d(0xe1),'businesses':[_0x5dc636[_0x5c5d8d(0xa5)][_0x5c5d8d(0x135)]],'toJson':_0x4829f7=>this[_0x5c5d8d(0x171)](_0x4829f7),'parseJson':_0x2b3bb8=>JSON[_0x5c5d8d(0x149)](_0x2b3bb8),'onLoad':(_0xc186b9,_0x41607f)=>{const _0xc44f61=_0x5c5d8d;this[_0xc44f61(0x11c)](_0xc186b9,_0x41607f);},'onUnLoad':_0x555445=>{const _0x391c7d=_0x5c5d8d;let _0x4593df=this[_0x391c7d(0xfd)][_0x391c7d(0x89)](_0x555445);_0x4593df&&(_0x4593df[_0x391c7d(0x13a)](_0x5ed30f=>{_0x5ed30f['dispose']();}),this[_0x391c7d(0xfd)][_0x391c7d(0xc8)](_0x555445));}});}[_0x586436(0x137)](){const _0x3db8fd=_0x586436;this[_0x3db8fd(0xfd)]['forEach'](_0x4f9f38=>{const _0x50fc03=_0x3db8fd;_0x4f9f38[_0x50fc03(0x13a)](_0x36cf0d=>{const _0x1912df=_0x50fc03;_0x36cf0d[_0x1912df(0x137)]();});});}};_0x441fd4=_0x41d443([_0xe87e8c(0x0,_0x5dc636[_0x586436(0x77)])],_0x441fd4);let _0x4fe60f={'id':'sheet.mutation.insert-shape','type':_0x5dc636['CommandType'][_0x586436(0x139)],'handler':(_0x4fe61c,_0x57a89b)=>{const _0x3331c2=_0x586436;let {unitId:_0x44f5ec,subUnitId:_0x438fba,shapeType:_0x5a2d8c,shapeId:_0x1e8cd8,shapeName:_0x5b3113,shapeData:_0x9cd80d}=_0x57a89b;return _0x4fe61c[_0x3331c2(0x89)](_0x441fd4)['insertShape'](_0x44f5ec,_0x438fba,_0x5a2d8c,_0x1e8cd8,_0x5dc636['Tools'][_0x3331c2(0x14a)](_0x9cd80d),_0x5b3113),!0x0;}},_0x2d5a18={'id':_0x586436(0x10b),'type':_0x5dc636['CommandType']['MUTATION'],'handler':(_0x3e1dc,_0x21fb50)=>{const _0x273d48=_0x586436;let {unitId:_0x20407b,subUnitId:_0x2f7da9,shapeId:_0x1af597}=_0x21fb50;return _0x3e1dc['get'](_0x441fd4)[_0x273d48(0x174)](_0x20407b,_0x2f7da9,_0x1af597),!0x0;}},_0x3a5575={'type':_0x5dc636[_0x586436(0x117)][_0x586436(0x155)],'id':_0x586436(0xff),'handler':(_0x321c4b,_0x47d001)=>{const _0x4d65b7=_0x586436;let _0x1ce741=(0x0,_0x22b381[_0x4d65b7(0x113)])(_0x321c4b[_0x4d65b7(0x89)](_0x5dc636[_0x4d65b7(0x166)]),_0x47d001);if(!_0x1ce741)return!0x1;let _0x23afe6=_0x321c4b[_0x4d65b7(0x89)](_0x22b381[_0x4d65b7(0xd3)]),{unitId:_0x4b94a0,subUnitId:_0x465741}=_0x1ce741,_0xc7a9c=_0x23afe6[_0x4d65b7(0xc6)](_0x4b94a0,_0x465741);if(!_0xc7a9c)return!0x1;let _0x3f4c94=_0x321c4b[_0x4d65b7(0x89)](_0x5dc636[_0x4d65b7(0x76)]),_0x47dc32=_0x321c4b[_0x4d65b7(0x89)](_0x5dc636[_0x4d65b7(0x16e)]),_0x261d0a=_0x321c4b[_0x4d65b7(0x89)](_0x22b381[_0x4d65b7(0x156)]),_0x3c9c98=_0x321c4b[_0x4d65b7(0x89)](_0x406c73[_0x4d65b7(0x82)]),_0x61446=_0x321c4b['get'](_0x441fd4),{shapeType:_0x31647f}=_0x47d001,_0x2e8147=_0x47d001[_0x4d65b7(0xeb)]??(0x0,_0x336bab[_0x4d65b7(0x9f)])(_0x31647f),_0x265deb=_0x47d001[_0x4d65b7(0x164)]||(0x0,_0x5dc636[_0x4d65b7(0xb1)])(),_0x5e1c59={'unitId':_0x4b94a0,'subUnitId':_0x465741,'shapeId':_0x265deb,'shapeName':_0x47d001[_0x4d65b7(0x185)]??(0x0,_0x336bab[_0x4d65b7(0x12b)])(_0x31647f,_0x61446[_0x4d65b7(0xf5)](_0x4b94a0,_0x465741)),'shapeType':_0x31647f,'shapeData':_0x2e8147},_0x4542c9=_0x47d001[_0x4d65b7(0x109)]||0xc8,_0x380b5e=_0x47d001[_0x4d65b7(0x114)]||0xc8,_0x325b5f=0x0,_0x415499=0x0;if(_0x47d001['position']){let {x:_0x51f9b2,y:_0x2ef6af}=_0x47d001[_0x4d65b7(0xaf)];_0x325b5f=_0x51f9b2,_0x415499=_0x2ef6af;}else{if(_0x47d001[_0x4d65b7(0x134)]){let {startRow:_0x48028f,startColumn:_0x288700}=_0x47d001[_0x4d65b7(0x134)],_0x2702ce=_0xc7a9c[_0x4d65b7(0x184)](_0x48028f,_0x288700);_0x325b5f=_0x2702ce['startX']+0xa,_0x415499=_0x2702ce[_0x4d65b7(0xa7)]+0xa;}}let _0x137832={'left':_0x325b5f,'top':_0x415499,'width':_0x4542c9,'height':_0x380b5e,'angle':_0x47d001[_0x4d65b7(0x132)]??0x0,'flipX':_0x47d001[_0x4d65b7(0x125)]??!0x1,'flipY':_0x47d001[_0x4d65b7(0x143)]??!0x1},_0x4e24df=(0x0,_0x406c73[_0x4d65b7(0xf7)])(_0x137832,_0xc7a9c),_0x466d30=(0x0,_0x406c73['transformToAxisAlignPosition'])(_0x137832,_0xc7a9c),_0x16c5f3={'unitId':_0x4b94a0,'subUnitId':_0x465741,'drawingId':_0x265deb,'drawingType':_0x5dc636['DrawingTypeEnum'][_0x4d65b7(0x7d)],'anchorType':_0x406c73[_0x4d65b7(0xe3)][_0x4d65b7(0x9e)],'name':_0x47d001[_0x4d65b7(0xe9)],'description':_0x47d001['description'],'sheetTransform':_0x4e24df,'transform':_0x137832,'data':{'shapeType':_0x31647f,'shapeData':_0x2e8147},'axisAlignSheetTransform':_0x466d30,'allowTransform':!0x0,'hidden':_0x47d001['visible']===!0x1,'selectable':_0x47d001[_0x4d65b7(0x133)]??!0x0};(0x0,_0x336bab[_0x4d65b7(0x91)])(_0x31647f)&&(_0x16c5f3['data'][_0x4d65b7(0x140)]=!0x1,_0x16c5f3[_0x4d65b7(0xcb)]['rotateEnabled']=!0x1,_0x16c5f3[_0x4d65b7(0xcb)][_0x4d65b7(0x15f)]=!0x1,_0x16c5f3[_0x4d65b7(0xcb)][_0x4d65b7(0x108)]=!0x1,_0x16c5f3[_0x4d65b7(0xdf)][_0x4d65b7(0xf3)]=!0x1,_0x16c5f3[_0x4d65b7(0xdf)][_0x4d65b7(0x15f)]=!0x1,_0x16c5f3['transform'][_0x4d65b7(0x108)]=!0x1);let {undo:_0x1ce9c3,redo:_0x1db048,objects:_0x24cf7e}=_0x3c9c98[_0x4d65b7(0x167)]([_0x16c5f3]),_0x5cc6bf=_0x261d0a[_0x4d65b7(0xbb)]({'id':_0x406c73[_0x4d65b7(0xc1)]['id'],'params':{'unitId':_0x4b94a0,'drawings':[_0x16c5f3]}}),_0x14d7f4=[..._0x5cc6bf['preRedos']??[],{'id':_0x406c73[_0x4d65b7(0x96)]['id'],'params':{'unitId':_0x4b94a0,'subUnitId':_0x465741,'op':_0x1db048,'objects':_0x24cf7e,'type':_0x406c73[_0x4d65b7(0xf0)][_0x4d65b7(0xc3)]}},{'id':_0x406c73[_0x4d65b7(0xe5)]['id'],'params':[_0x4b94a0]},..._0x5cc6bf['redos'],{'id':_0x4fe60f['id'],'params':_0x5e1c59}],_0x386b6b=[{'id':_0x2d5a18['id'],'params':{'unitId':_0x4b94a0,'subUnitId':_0x465741,'shapeId':_0x265deb}},..._0x5cc6bf[_0x4d65b7(0xd9)]??[],{'id':_0x406c73[_0x4d65b7(0x96)]['id'],'params':{'unitId':_0x4b94a0,'subUnitId':_0x465741,'op':_0x1ce9c3,'objects':_0x24cf7e,'type':_0x406c73[_0x4d65b7(0xf0)]['REMOVE']}},{'id':_0x406c73[_0x4d65b7(0xe5)]['id'],'params':[_0x4b94a0]},..._0x5cc6bf[_0x4d65b7(0xd7)]];return(0x0,_0x5dc636[_0x4d65b7(0x17b)])(_0x14d7f4,_0x3f4c94)[_0x4d65b7(0x127)]?(_0x47dc32[_0x4d65b7(0x128)]({'unitID':_0x4b94a0,'undoMutations':_0x386b6b,'redoMutations':_0x14d7f4}),!0x0):!0x1;}},_0x18cf4c={'id':_0x586436(0xd2),'type':_0x5dc636[_0x586436(0x117)][_0x586436(0x139)],'handler':(_0x45e49c,_0x169731)=>{const _0x1a0929=_0x586436;let {unitId:_0x1407fa,subUnitId:_0x9cfd46,shapeType:_0x4e9d65,shapeId:_0x581816,shapeData:_0xab1c1a,replace:_0x543d34,formulaLastValueGuard:_0xe248d2}=_0x169731,_0x3c88fd=_0x45e49c[_0x1a0929(0x89)](_0x441fd4)[_0x1a0929(0x182)](_0x1407fa,_0x9cfd46,_0x581816);if(_0x3c88fd){var _0x5ccc34;if(!(0x0,_0x336bab[_0x1a0929(0x146)])(_0x45e49c,{'hostType':_0x5dc636['UniverInstanceType'][_0x1a0929(0x135)],'unitId':_0x1407fa,'subUnitId':_0x9cfd46,'shapeId':_0x581816},(_0x5ccc34=_0x3c88fd[_0x1a0929(0x8b)]()[_0x1a0929(0xd5)])==null?void 0x0:_0x5ccc34[_0x1a0929(0x101)],_0xe248d2))return!0x0;_0x4e9d65!==void 0x0&&_0x3c88fd[_0x1a0929(0xa4)](_0x4e9d65),_0xab1c1a&&(_0x3c88fd==null||_0x3c88fd[_0x1a0929(0x85)](_0x5dc636['Tools']['deepClone'](_0xab1c1a),!_0x543d34));}return!0x0;}},_0x166b67={'type':_0x5dc636['CommandType'][_0x586436(0x155)],'id':_0x586436(0xa8),'handler':(_0x4075a9,_0x596943)=>{const _0xa334fb=_0x586436;let _0xc354a1=(0x0,_0x22b381['getSheetCommandTarget'])(_0x4075a9[_0xa334fb(0x89)](_0x5dc636[_0xa334fb(0x166)]),_0x596943);if(!_0xc354a1)return!0x1;let _0x239199=_0x4075a9[_0xa334fb(0x89)](_0x22b381[_0xa334fb(0xd3)]),{unitId:_0x55eb10,subUnitId:_0x2c892f}=_0xc354a1,_0xe1b068=_0x239199[_0xa334fb(0xc6)](_0x55eb10,_0x2c892f);if(!_0xe1b068)return!0x1;let _0x41d3fa=_0x4075a9[_0xa334fb(0x89)](_0x441fd4),{shapeId:_0x3b8c4a,shapeType:_0x523d92,shapeData:_0x4dc8db,position:_0x4c7ef5,width:_0x4443bc,height:_0x3fc87f}=_0x596943,_0x5196b4=_0x41d3fa[_0xa334fb(0x182)](_0x55eb10,_0x2c892f,_0x3b8c4a);if(!_0x5196b4)return!0x1;let _0x445054=_0x4075a9[_0xa334fb(0x89)](_0x5dc636['ICommandService']),_0x25e933=_0x4075a9[_0xa334fb(0x89)](_0x5dc636['IUndoRedoService']),_0x49ca32=_0x4075a9['get'](_0x22b381[_0xa334fb(0x156)]),_0x27a347=_0x4075a9[_0xa334fb(0x89)](_0x406c73[_0xa334fb(0x82)]),_0x469bb7={'unitId':_0x55eb10,'subUnitId':_0x2c892f,'shapeId':_0x3b8c4a,'shapeType':_0x523d92,'shapeData':_0x4dc8db,'replace':!0x0},_0x26b5d6=_0x5196b4[_0xa334fb(0x88)](),_0xa14b47=_0x5196b4[_0xa334fb(0x8b)](),{x:_0x47f02e,y:_0x5eae97}=_0x4c7ef5,_0x5819b5={'left':_0x47f02e,'top':_0x5eae97,'width':_0x4443bc,'height':_0x3fc87f,'angle':_0x596943[_0xa334fb(0x132)]??0x0,'flipX':_0x596943['flipX']??!0x1,'flipY':_0x596943[_0xa334fb(0x143)]??!0x1},_0x5725d8=(0x0,_0x406c73[_0xa334fb(0xf7)])(_0x5819b5,_0xe1b068),_0x58ad2e=(0x0,_0x406c73[_0xa334fb(0x102)])(_0x5819b5,_0xe1b068),_0x4013d0={'unitId':_0x55eb10,'subUnitId':_0x2c892f,'drawingId':_0x3b8c4a,'drawingType':_0x5dc636[_0xa334fb(0x81)][_0xa334fb(0x7d)],'name':_0x596943[_0xa334fb(0xe9)],'description':_0x596943['description'],'sheetTransform':_0x5725d8,'transform':_0x5819b5,'data':{'shapeType':_0x523d92,'shapeData':_0x4dc8db},'axisAlignSheetTransform':_0x58ad2e,'allowTransform':!0x0,'hidden':!_0x596943['visible'],'selectable':_0x596943['selectable']};(0x0,_0x336bab[_0xa334fb(0x91)])(_0x523d92)&&(_0x4013d0[_0xa334fb(0xcb)]['fill']=!0x1,_0x4013d0[_0xa334fb(0xcb)]['rotateEnabled']=!0x1,_0x4013d0[_0xa334fb(0xcb)][_0xa334fb(0x15f)]=!0x1,_0x4013d0[_0xa334fb(0xcb)]['borderEnabled']=!0x1,_0x4013d0['transform'][_0xa334fb(0xf3)]=!0x1,_0x4013d0[_0xa334fb(0xdf)][_0xa334fb(0x15f)]=!0x1,_0x4013d0['transform'][_0xa334fb(0x108)]=!0x1);let {undo:_0x24c9ab,redo:_0x4296d1,objects:_0x2e4805}=_0x27a347[_0xa334fb(0xd0)]([_0x4013d0]),_0x4f443f=_0x49ca32['onCommandExecute']({'id':_0x406c73['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x55eb10,'drawings':[_0x4013d0]}}),_0x558dc1=[..._0x4f443f[_0xa334fb(0x163)]??[],{'id':_0x406c73[_0xa334fb(0x96)]['id'],'params':{'unitId':_0x55eb10,'subUnitId':_0x2c892f,'op':_0x4296d1,'objects':_0x2e4805,'type':_0x406c73[_0xa334fb(0xf0)][_0xa334fb(0x13e)]}},{'id':_0x406c73['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x55eb10]},..._0x4f443f[_0xa334fb(0x15c)],{'id':_0x18cf4c['id'],'params':_0x469bb7}],_0x1679ac=[..._0x4f443f[_0xa334fb(0xd9)]??[],{'id':_0x406c73[_0xa334fb(0x96)]['id'],'params':{'unitId':_0x55eb10,'subUnitId':_0x2c892f,'op':_0x24c9ab,'objects':_0x2e4805,'type':_0x406c73[_0xa334fb(0xf0)][_0xa334fb(0x13e)]}},{'id':_0x406c73[_0xa334fb(0xe5)]['id'],'params':[_0x55eb10]},..._0x4f443f[_0xa334fb(0xd7)],{'id':_0x18cf4c['id'],'params':{'unitId':_0x55eb10,'subUnitId':_0x2c892f,'shapeType':_0x26b5d6,'shapeId':_0x3b8c4a,'shapeData':_0xa14b47,'replace':!0x0}}];return(0x0,_0x5dc636['sequenceExecute'])(_0x558dc1,_0x445054)[_0xa334fb(0x127)]?(_0x25e933[_0xa334fb(0x128)]({'unitID':_0x55eb10,'undoMutations':_0x1679ac,'redoMutations':_0x558dc1}),!0x0):!0x1;}},_0x2ca069={'type':_0x5dc636[_0x586436(0x117)][_0x586436(0x155)],'id':'sheet.command.toggle-shape-flip','handler':(_0x4d6f80,_0x519102)=>{const _0x2dab5a=_0x586436;let _0x8b648a=(0x0,_0x22b381['getSheetCommandTarget'])(_0x4d6f80['get'](_0x5dc636[_0x2dab5a(0x166)]),_0x519102);if(!_0x8b648a)return!0x1;let _0x48cc7f=_0x4d6f80['get'](_0x22b381[_0x2dab5a(0xd3)]),{unitId:_0x1561b6,subUnitId:_0x3ccd13}=_0x8b648a,_0x52533e=_0x48cc7f['getSkeleton'](_0x1561b6,_0x3ccd13);if(!_0x52533e)return!0x1;let _0x144fcf=_0x4d6f80[_0x2dab5a(0x89)](_0x406c73[_0x2dab5a(0x82)]),{shapeId:_0x10445e,flipH:_0x2eb69a,flipV:_0x49a825}=_0x519102,_0x3c036c=_0x144fcf[_0x2dab5a(0x12e)]({'unitId':_0x1561b6,'subUnitId':_0x3ccd13,'drawingId':_0x10445e});if(!_0x3c036c)return!0x1;let _0x325ef0=_0x4d6f80[_0x2dab5a(0x89)](_0x441fd4)[_0x2dab5a(0x182)](_0x1561b6,_0x3ccd13,_0x10445e);if(!_0x325ef0)return!0x1;let _0x2af8ae=_0x4d6f80['get'](_0x5dc636['ICommandService']),_0x5d54be=_0x4d6f80[_0x2dab5a(0x89)](_0x5dc636[_0x2dab5a(0x16e)]),_0x383b5=_0x4d6f80[_0x2dab5a(0x89)](_0x22b381['SheetInterceptorService']),_0x4273ae={..._0x3c036c['transform']};_0x2eb69a!==void 0x0&&(_0x4273ae[_0x2dab5a(0x125)]=!_0x4273ae[_0x2dab5a(0x125)]),_0x49a825!==void 0x0&&(_0x4273ae['flipY']=!_0x4273ae[_0x2dab5a(0x143)]);let _0x5946d8=(0x0,_0x406c73[_0x2dab5a(0xf7)])(_0x4273ae,_0x52533e),_0x222b86=(0x0,_0x406c73[_0x2dab5a(0x102)])(_0x4273ae,_0x52533e),_0x50b694=_0x325ef0[_0x2dab5a(0x88)](),_0x530258=_0x325ef0[_0x2dab5a(0x8b)](),_0x3be47a={'unitId':_0x1561b6,'subUnitId':_0x3ccd13,'drawingId':_0x10445e,'drawingType':_0x5dc636[_0x2dab5a(0x81)][_0x2dab5a(0x7d)],'sheetTransform':_0x5946d8,'transform':_0x4273ae,'data':{'shapeType':_0x50b694,'shapeData':_0x530258},'axisAlignSheetTransform':_0x222b86,'allowTransform':!0x0},{undo:_0x445ac4,redo:_0x367d86,objects:_0x3d5df3}=_0x144fcf[_0x2dab5a(0xd0)]([_0x3be47a]),_0x1beec2=_0x383b5[_0x2dab5a(0xbb)]({'id':_0x406c73[_0x2dab5a(0x176)]['id'],'params':{'unitId':_0x1561b6,'drawings':[_0x3be47a]}}),_0x2cd88a=[..._0x1beec2[_0x2dab5a(0x163)]??[],{'id':_0x406c73[_0x2dab5a(0x96)]['id'],'params':{'unitId':_0x1561b6,'subUnitId':_0x3ccd13,'op':_0x367d86,'objects':_0x3d5df3,'type':_0x406c73['DrawingApplyType']['UPDATE']}},{'id':_0x406c73[_0x2dab5a(0xe5)]['id'],'params':[_0x1561b6]},..._0x1beec2[_0x2dab5a(0x15c)]],_0x359a75=[..._0x1beec2[_0x2dab5a(0xd9)]??[],{'id':_0x406c73[_0x2dab5a(0x96)]['id'],'params':{'unitId':_0x1561b6,'subUnitId':_0x3ccd13,'op':_0x445ac4,'objects':_0x3d5df3,'type':_0x406c73[_0x2dab5a(0xf0)][_0x2dab5a(0x13e)]}},{'id':_0x406c73[_0x2dab5a(0xe5)]['id'],'params':[_0x1561b6]},..._0x1beec2[_0x2dab5a(0xd7)]];if((0x0,_0x336bab[_0x2dab5a(0x91)])(_0x50b694)){let _0x580048=_0x325ef0[_0x2dab5a(0x103)]();if(_0x580048){let _0x579821={..._0x580048};_0x579821['from']=void 0x0,_0x579821['to']=void 0x0,_0x2cd88a['push']({'id':_0x18cf4c['id'],'params':{'unitId':_0x1561b6,'subUnitId':_0x3ccd13,'shapeId':_0x10445e,'shapeType':_0x50b694,'shapeData':{'relation':_0x579821}}}),_0x359a75['push']({'id':_0x18cf4c['id'],'params':{'unitId':_0x1561b6,'subUnitId':_0x3ccd13,'shapeId':_0x10445e,'shapeType':_0x50b694,'shapeData':{'relation':_0x580048}}});}}return(0x0,_0x5dc636[_0x2dab5a(0x17b)])(_0x2cd88a,_0x2af8ae)['result']?(_0x5d54be['pushUndoRedo']({'unitID':_0x1561b6,'undoMutations':_0x359a75,'redoMutations':_0x2cd88a}),!0x0):!0x1;}},_0x73c63={'type':_0x5dc636['CommandType']['COMMAND'],'id':'sheet.command.set-shape-rotate','handler':(_0x3a382c,_0x370b10)=>{const _0x524e9a=_0x586436;let _0x4045ce=(0x0,_0x22b381[_0x524e9a(0x113)])(_0x3a382c[_0x524e9a(0x89)](_0x5dc636[_0x524e9a(0x166)]),_0x370b10);if(!_0x4045ce)return!0x1;let _0x3dc96d=_0x3a382c[_0x524e9a(0x89)](_0x22b381[_0x524e9a(0xd3)]),{unitId:_0x109d9d,subUnitId:_0xecbb15}=_0x4045ce,_0x58e9e5=_0x3dc96d[_0x524e9a(0xb0)](_0x109d9d,_0xecbb15);if(!_0x58e9e5)return!0x1;let _0x128945=_0x3a382c['get'](_0x406c73['ISheetDrawingService']),{shapeId:_0x31601c,rotate:_0x25b8ae}=_0x370b10,_0x190b33=_0x128945[_0x524e9a(0x12e)]({'unitId':_0x109d9d,'subUnitId':_0xecbb15,'drawingId':_0x31601c});if(!_0x190b33)return!0x1;let _0x4a5bfa=_0x3a382c['get'](_0x441fd4)['getShapeModel'](_0x109d9d,_0xecbb15,_0x31601c);if(!_0x4a5bfa)return!0x1;let _0x7c42c5=_0x3a382c[_0x524e9a(0x89)](_0x5dc636[_0x524e9a(0x76)]),_0x526ec6=_0x3a382c[_0x524e9a(0x89)](_0x5dc636[_0x524e9a(0x16e)]),_0x1062ca=_0x3a382c['get'](_0x22b381['SheetInterceptorService']),_0x44dcb2={..._0x190b33[_0x524e9a(0xdf)]};_0x25b8ae!==void 0x0&&(_0x44dcb2[_0x524e9a(0x124)]=(_0x44dcb2[_0x524e9a(0x124)]||0x0)+_0x25b8ae);let _0x262820=(0x0,_0x406c73[_0x524e9a(0xf7)])(_0x44dcb2,_0x58e9e5),_0x2dbd77=(0x0,_0x406c73[_0x524e9a(0x102)])(_0x44dcb2,_0x58e9e5),_0x22474d=_0x4a5bfa[_0x524e9a(0x88)](),_0x57dabc=_0x4a5bfa[_0x524e9a(0x8b)](),_0x52577e={'unitId':_0x109d9d,'subUnitId':_0xecbb15,'drawingId':_0x31601c,'drawingType':_0x5dc636['DrawingTypeEnum'][_0x524e9a(0x7d)],'sheetTransform':_0x262820,'transform':_0x44dcb2,'data':{'shapeType':_0x22474d,'shapeData':_0x57dabc},'axisAlignSheetTransform':_0x2dbd77,'allowTransform':!0x0},{undo:_0x4b0f0b,redo:_0x1cd579,objects:_0x1cb40d}=_0x128945[_0x524e9a(0xd0)]([_0x52577e]),_0x5b6d29=_0x1062ca[_0x524e9a(0xbb)]({'id':_0x406c73[_0x524e9a(0x176)]['id'],'params':{'unitId':_0x109d9d,'drawings':[_0x52577e]}}),_0x2f279e=[..._0x5b6d29[_0x524e9a(0x163)]??[],{'id':_0x406c73[_0x524e9a(0x96)]['id'],'params':{'unitId':_0x109d9d,'subUnitId':_0xecbb15,'op':_0x1cd579,'objects':_0x1cb40d,'type':_0x406c73[_0x524e9a(0xf0)]['UPDATE']}},{'id':_0x406c73['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x109d9d]},..._0x5b6d29['redos']],_0x5a07e9=[..._0x5b6d29['preUndos']??[],{'id':_0x406c73[_0x524e9a(0x96)]['id'],'params':{'unitId':_0x109d9d,'subUnitId':_0xecbb15,'op':_0x4b0f0b,'objects':_0x1cb40d,'type':_0x406c73[_0x524e9a(0xf0)][_0x524e9a(0x13e)]}},{'id':_0x406c73['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x109d9d]},..._0x5b6d29[_0x524e9a(0xd7)]];return(0x0,_0x5dc636[_0x524e9a(0x17b)])(_0x2f279e,_0x7c42c5)[_0x524e9a(0x127)]?(_0x526ec6[_0x524e9a(0x128)]({'unitID':_0x109d9d,'undoMutations':_0x5a07e9,'redoMutations':_0x2f279e}),!0x0):!0x1;}},_0x4ce486={'type':_0x5dc636['CommandType'][_0x586436(0x155)],'id':_0x586436(0xbd),'handler':(_0x522abe,_0xd6daf)=>{const _0x50a6a7=_0x586436;let _0x25c3ca=(0x0,_0x22b381['getSheetCommandTarget'])(_0x522abe['get'](_0x5dc636[_0x50a6a7(0x166)]),_0xd6daf);if(!_0x25c3ca)return!0x1;let {unitId:_0x1984c5,subUnitId:_0x41af4d}=_0x25c3ca,{shapeId:_0x344995}=_0xd6daf,_0x2eff4f=_0x522abe[_0x50a6a7(0x89)](_0x441fd4)['getShapeModel'](_0x1984c5,_0x41af4d,_0x344995);if(!_0x2eff4f)return!0x1;let _0x5cad80=_0x2eff4f[_0x50a6a7(0xda)](),_0xd4bc04=(_0x5cad80==null?void 0x0:_0x5cad80['isHorizontal'])??!0x0,_0x514b46=!_0xd4bc04,_0x4bdeab=_0x522abe[_0x50a6a7(0x89)](_0x5dc636[_0x50a6a7(0x76)]),_0x40d94a=_0x522abe[_0x50a6a7(0x89)](_0x5dc636[_0x50a6a7(0x16e)]),_0x1c81af={'unitId':_0x1984c5,'subUnitId':_0x41af4d,'shapeId':_0x344995,'shapeData':{'shapeText':{'isHorizontal':_0x514b46}}},_0xcacf45={'unitId':_0x1984c5,'subUnitId':_0x41af4d,'shapeId':_0x344995,'shapeData':{'shapeText':{'isHorizontal':_0xd4bc04}}},_0x36ea50=[{'id':_0x18cf4c['id'],'params':_0x1c81af}],_0x865546=[{'id':_0x18cf4c['id'],'params':_0xcacf45}];return(0x0,_0x5dc636[_0x50a6a7(0x17b)])(_0x36ea50,_0x4bdeab)[_0x50a6a7(0x127)]?(_0x40d94a['pushUndoRedo']({'unitID':_0x1984c5,'undoMutations':_0x865546,'redoMutations':_0x36ea50}),!0x0):!0x1;}},_0xcb911a={'type':_0x5dc636['CommandType'][_0x586436(0x155)],'id':_0x586436(0x12a),'handler':(_0x3d719f,_0x187dfa)=>{const _0x2557ea=_0x586436;var _0x1f5695;let _0x25d44a=(0x0,_0x22b381[_0x2557ea(0x113)])(_0x3d719f[_0x2557ea(0x89)](_0x5dc636[_0x2557ea(0x166)]),_0x187dfa);if(!_0x25d44a)return!0x1;let _0x20a9bf=_0x3d719f['get'](_0x22b381[_0x2557ea(0xd3)]),{unitId:_0xe9202f,subUnitId:_0x4ae7bc}=_0x25d44a,_0x229352=_0x20a9bf[_0x2557ea(0xb0)](_0xe9202f,_0x4ae7bc);if(!_0x229352)return!0x1;let _0x5b0cde=_0x3d719f[_0x2557ea(0x89)](_0x406c73['ISheetDrawingService']),{connectorShapeId:_0x4857a8,width:_0x2e4b72,height:_0x30ddfe,left:_0x4002fb,top:_0x140eb2,flipX:_0x116a61,flipY:_0x316c71,rotation:_0x953779,oldAdjustValues:_0x5088f6,newAdjustValues:_0x60eb70,oldLineType:_0x5f41e3,newLineType:_0x2cacd3,oldRelation:_0x1c694e,newRelation:_0x1f1a96}=_0x187dfa,_0x158f4e=_0x5b0cde[_0x2557ea(0x12e)]({'unitId':_0xe9202f,'subUnitId':_0x4ae7bc,'drawingId':_0x4857a8});if(!_0x158f4e)return!0x1;let _0x443584=_0x3d719f[_0x2557ea(0x89)](_0x441fd4)[_0x2557ea(0x182)](_0xe9202f,_0x4ae7bc,_0x4857a8);if(!_0x443584)return!0x1;let _0x5c4cd4=_0x3d719f['get'](_0x5dc636[_0x2557ea(0x76)]),_0x101bc2=_0x3d719f[_0x2557ea(0x89)](_0x5dc636[_0x2557ea(0x16e)]),_0x559333=_0x3d719f[_0x2557ea(0x89)](_0x22b381[_0x2557ea(0x156)]),_0x10a0fb={..._0x158f4e[_0x2557ea(0xdf)],'width':_0x2e4b72,'height':_0x30ddfe,'left':_0x4002fb,'top':_0x140eb2,'flipX':_0x116a61,'flipY':_0x316c71,'angle':_0x953779??((_0x1f5695=_0x158f4e[_0x2557ea(0xdf)])==null?void 0x0:_0x1f5695[_0x2557ea(0x124)])??0x0},_0x31a43c=(0x0,_0x406c73['transformToDrawingPosition'])(_0x10a0fb,_0x229352),_0xb63795=(0x0,_0x406c73[_0x2557ea(0x102)])(_0x10a0fb,_0x229352),_0x423425=_0x443584['getShapeType'](),_0x18fdd7=_0x443584[_0x2557ea(0x8b)](),_0x14d869={'unitId':_0xe9202f,'subUnitId':_0x4ae7bc,'drawingId':_0x4857a8,'drawingType':_0x5dc636[_0x2557ea(0x81)][_0x2557ea(0x7d)],'sheetTransform':_0x31a43c,'transform':_0x10a0fb,'data':{'shapeType':_0x2cacd3||_0x5f41e3||_0x423425,'shapeData':{..._0x18fdd7,'adjustValues':_0x60eb70||_0x5088f6||(_0x18fdd7==null?void 0x0:_0x18fdd7['adjustValues']),'relation':_0x1f1a96||_0x1c694e||(_0x18fdd7==null?void 0x0:_0x18fdd7[_0x2557ea(0x162)])}},'axisAlignSheetTransform':_0xb63795,'allowTransform':!0x0},{undo:_0x337d26,redo:_0x240872,objects:_0x2d1dff}=_0x5b0cde[_0x2557ea(0xd0)]([_0x14d869]),_0x3ed8ce=_0x559333[_0x2557ea(0xbb)]({'id':_0x406c73['SetSheetDrawingCommand']['id'],'params':{'unitId':_0xe9202f,'drawings':[_0x14d869]}}),_0x9aaef5=[..._0x3ed8ce[_0x2557ea(0x163)]??[],{'id':_0x406c73['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xe9202f,'subUnitId':_0x4ae7bc,'op':_0x240872,'objects':_0x2d1dff,'type':_0x406c73['DrawingApplyType']['UPDATE']}},{'id':_0x406c73[_0x2557ea(0xe5)]['id'],'params':[_0xe9202f]},..._0x3ed8ce[_0x2557ea(0x15c)],{'id':_0x18cf4c['id'],'params':{'unitId':_0xe9202f,'subUnitId':_0x4ae7bc,'shapeId':_0x4857a8,'shapeType':_0x2cacd3,'shapeData':{'adjustValues':_0x60eb70,'relation':_0x1f1a96}}}],_0x42da62=[..._0x3ed8ce[_0x2557ea(0xd9)]??[],{'id':_0x406c73[_0x2557ea(0x96)]['id'],'params':{'unitId':_0xe9202f,'subUnitId':_0x4ae7bc,'op':_0x337d26,'objects':_0x2d1dff,'type':_0x406c73[_0x2557ea(0xf0)]['UPDATE']}},{'id':_0x406c73[_0x2557ea(0xe5)]['id'],'params':[_0xe9202f]},..._0x3ed8ce[_0x2557ea(0xd7)],{'id':_0x18cf4c['id'],'params':{'unitId':_0xe9202f,'subUnitId':_0x4ae7bc,'shapeId':_0x4857a8,'shapeType':_0x423425,'shapeData':{..._0x18fdd7,'adjustValues':_0x5088f6||(_0x18fdd7==null?void 0x0:_0x18fdd7[_0x2557ea(0x8e)]),'relation':_0x1c694e||(_0x18fdd7==null?void 0x0:_0x18fdd7[_0x2557ea(0x162)])}}}];return(0x0,_0x5dc636[_0x2557ea(0x17b)])(_0x9aaef5,_0x5c4cd4)[_0x2557ea(0x127)]?(_0x101bc2['pushUndoRedo']({'unitID':_0xe9202f,'undoMutations':_0x42da62,'redoMutations':_0x9aaef5}),!0x0):!0x1;}},_0x25ea1b={'type':_0x5dc636['CommandType'][_0x586436(0x155)],'id':_0x586436(0xd1),'handler':(_0x188e5d,_0x32a41c)=>{const _0x380f37=_0x586436;let _0x274510=(0x0,_0x22b381[_0x380f37(0x113)])(_0x188e5d[_0x380f37(0x89)](_0x5dc636[_0x380f37(0x166)]),_0x32a41c);if(!_0x274510)return!0x1;let _0x57a6e1=_0x188e5d[_0x380f37(0x89)](_0x22b381[_0x380f37(0xd3)]),{unitId:_0x10e6d1,subUnitId:_0x51ccca}=_0x274510,_0x4a8993=_0x57a6e1[_0x380f37(0xb0)](_0x10e6d1,_0x51ccca);if(!_0x4a8993)return!0x1;let _0x46dc71=_0x188e5d['get'](_0x406c73[_0x380f37(0x82)]),{shapeId:_0x343d68,width:_0xa62b28,height:_0x1999bd,left:_0x35e3bc,top:_0x49a779,flipX:_0x301a6d,flipY:_0x2a8149,angle:_0x3aa5d4,oldAdjustValues:_0xd7b4c6,newAdjustValues:_0x18f39a,oldLineType:_0x96b46e,newLineType:_0x433c04}=_0x32a41c,_0x536b90=_0x46dc71[_0x380f37(0x12e)]({'unitId':_0x10e6d1,'subUnitId':_0x51ccca,'drawingId':_0x343d68});if(!_0x536b90)return!0x1;let _0x567b0f=_0x188e5d[_0x380f37(0x89)](_0x441fd4)[_0x380f37(0x182)](_0x10e6d1,_0x51ccca,_0x343d68);if(!_0x567b0f)return!0x1;let _0x22e546=_0x188e5d[_0x380f37(0x89)](_0x5dc636[_0x380f37(0x76)]),_0x53874d=_0x188e5d[_0x380f37(0x89)](_0x5dc636[_0x380f37(0x16e)]),_0x2e1cba=_0x188e5d[_0x380f37(0x89)](_0x22b381[_0x380f37(0x156)]),_0x3bf4a5={..._0x536b90[_0x380f37(0xdf)],'width':_0xa62b28,'height':_0x1999bd,'left':_0x35e3bc,'top':_0x49a779,'flipX':_0x301a6d,'flipY':_0x2a8149,'angle':_0x3aa5d4},_0x54cb32=(0x0,_0x406c73[_0x380f37(0xf7)])(_0x3bf4a5,_0x4a8993),_0x4ab84b=(0x0,_0x406c73[_0x380f37(0x102)])(_0x3bf4a5,_0x4a8993),_0x38f06e=_0x567b0f[_0x380f37(0x88)](),_0x305248=_0x567b0f[_0x380f37(0x8b)](),_0x24b282={'unitId':_0x10e6d1,'subUnitId':_0x51ccca,'drawingId':_0x343d68,'drawingType':_0x5dc636['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x54cb32,'transform':_0x3bf4a5,'data':{'shapeType':_0x433c04||_0x96b46e||_0x38f06e,'shapeData':{..._0x305248,'adjustValues':_0x18f39a||_0xd7b4c6||(_0x305248==null?void 0x0:_0x305248[_0x380f37(0x8e)])}},'axisAlignSheetTransform':_0x4ab84b,'allowTransform':!0x0},{undo:_0xc593d3,redo:_0x577f22,objects:_0x2ec5a9}=_0x46dc71[_0x380f37(0xd0)]([_0x24b282]),_0x2d6507=_0x2e1cba[_0x380f37(0xbb)]({'id':_0x406c73[_0x380f37(0x176)]['id'],'params':{'unitId':_0x10e6d1,'drawings':[_0x24b282]}}),_0xc6f745=[..._0x2d6507[_0x380f37(0x163)]??[],{'id':_0x406c73[_0x380f37(0x96)]['id'],'params':{'unitId':_0x10e6d1,'subUnitId':_0x51ccca,'op':_0x577f22,'objects':_0x2ec5a9,'type':_0x406c73[_0x380f37(0xf0)]['UPDATE']}},{'id':_0x406c73[_0x380f37(0xe5)]['id'],'params':[_0x10e6d1]},..._0x2d6507[_0x380f37(0x15c)],{'id':_0x18cf4c['id'],'params':{'unitId':_0x10e6d1,'subUnitId':_0x51ccca,'shapeId':_0x343d68,'shapeType':_0x433c04,'shapeData':{'adjustValues':_0x18f39a}}}],_0x5303e9=[..._0x2d6507[_0x380f37(0xd9)]??[],{'id':_0x406c73[_0x380f37(0x96)]['id'],'params':{'unitId':_0x10e6d1,'subUnitId':_0x51ccca,'op':_0xc593d3,'objects':_0x2ec5a9,'type':_0x406c73[_0x380f37(0xf0)][_0x380f37(0x13e)]}},{'id':_0x406c73['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x10e6d1]},..._0x2d6507['undos'],{'id':_0x18cf4c['id'],'params':{'unitId':_0x10e6d1,'subUnitId':_0x51ccca,'shapeId':_0x343d68,'shapeType':_0x38f06e,'shapeData':{..._0x305248,'adjustValues':_0xd7b4c6||(_0x305248==null?void 0x0:_0x305248[_0x380f37(0x8e)])}}}];return(0x0,_0x5dc636[_0x380f37(0x17b)])(_0xc6f745,_0x22e546)['result']?(_0x53874d['pushUndoRedo']({'unitID':_0x10e6d1,'undoMutations':_0x5303e9,'redoMutations':_0xc6f745}),!0x0):!0x1;}},_0x1e2fbd={'id':_0x586436(0x75),'type':_0x5dc636[_0x586436(0x117)][_0x586436(0x139)],'handler':(_0x2456f4,_0x299ee2)=>{const _0x263389=_0x586436;let {unitId:_0x1314d5,subUnitId:_0x13925c,shapeType:_0xc1d83e,shapeId:_0x1f984f,shapeData:_0x3fd5c2}=_0x299ee2,_0x36f513=_0x2456f4[_0x263389(0x89)](_0x441fd4)[_0x263389(0x182)](_0x1314d5,_0x13925c,_0x1f984f);return _0x36f513&&(_0x36f513['setShapeType'](_0xc1d83e),_0x3fd5c2&&(_0x36f513==null||_0x36f513[_0x263389(0x85)](_0x3fd5c2))),!0x0;}};var _0x233b4d=_0x586436(0x123),_0x3fa832=_0x586436(0x188);function _0x4546a5(_0xc1f240){const _0x25d170=_0x586436;var _0x1038d9,_0x21d8fe,_0x4ad415,_0x2e2795,_0x3cd91a,_0x57a5c,_0x1f14b7;return{'left':((_0x1038d9=_0xc1f240[_0x25d170(0xdf)])==null?void 0x0:_0x1038d9[_0x25d170(0x111)])??0x0,'top':((_0x21d8fe=_0xc1f240[_0x25d170(0xdf)])==null?void 0x0:_0x21d8fe[_0x25d170(0xbc)])??0x0,'width':((_0x4ad415=_0xc1f240['transform'])==null?void 0x0:_0x4ad415[_0x25d170(0x109)])??0xc8,'height':((_0x2e2795=_0xc1f240[_0x25d170(0xdf)])==null?void 0x0:_0x2e2795['height'])??0xc8,'rotation':((_0x3cd91a=_0xc1f240[_0x25d170(0xdf)])==null?void 0x0:_0x3cd91a[_0x25d170(0x132)])??0x0,'flipX':((_0x57a5c=_0xc1f240['transform'])==null?void 0x0:_0x57a5c[_0x25d170(0x125)])??!0x1,'flipY':((_0x1f14b7=_0xc1f240['transform'])==null?void 0x0:_0x1f14b7[_0x25d170(0x143)])??!0x1};}let _0x15102c=class{constructor(_0x388a91,_0x4f86f3,_0x20f9dd,_0x5da4dc){const _0x59f6d9=_0x586436;this[_0x59f6d9(0xc2)]=_0x388a91,this['_shapeService']=_0x4f86f3,this[_0x59f6d9(0xf4)]=_0x20f9dd,this[_0x59f6d9(0x181)]=_0x5da4dc,_0x28390f(this,'hostType',_0x5dc636[_0x59f6d9(0xa5)][_0x59f6d9(0x135)]);}get[_0x586436(0x71)](){return{'subscribe':_0x1335cd=>{const _0x235384=_0x3827;let _0x28488a=this[_0x235384(0xc2)]['onCommandExecuted'](_0x4130a5=>{const _0x53d7c2=_0x235384;(_0x4130a5['id']===_0x4fe60f['id']||_0x4130a5['id']===_0x2d5a18['id']||_0x4130a5['id']===_0x18cf4c['id']||_0x4130a5['id']===_0x1e2fbd['id'])&&_0x1335cd({'unitId':_0x4130a5['params'][_0x53d7c2(0xef)]});});return{'unsubscribe':()=>_0x28488a[_0x235384(0x137)]()};}};}[_0x586436(0x99)](_0x4f74ee){const _0x45b2b3=_0x586436;var _0x5473a5;let _0x1a20a4=(_0x5473a5=this[_0x45b2b3(0xf4)]['getDrawingData'](_0x4f74ee[_0x45b2b3(0xef)],_0x4f74ee[_0x45b2b3(0xa9)]))==null?void 0x0:_0x5473a5[_0x4f74ee[_0x45b2b3(0x164)]],_0x14afe1=this[_0x45b2b3(0x159)]['getShapeType'](_0x4f74ee[_0x45b2b3(0xef)],_0x4f74ee[_0x45b2b3(0xa9)],_0x4f74ee['shapeId']);if(!_0x1a20a4||_0x1a20a4['drawingType']!==_0x5dc636[_0x45b2b3(0x81)][_0x45b2b3(0x7d)]||!_0x14afe1)return null;let _0x344131=_0x1a20a4[_0x45b2b3(0xdf)];return{..._0x4f74ee,'shapeType':_0x14afe1,'shapeData':_0x5dc636[_0x45b2b3(0xa6)]['deepClone'](this[_0x45b2b3(0x159)][_0x45b2b3(0x153)](_0x4f74ee[_0x45b2b3(0xef)],_0x4f74ee[_0x45b2b3(0xa9)],_0x4f74ee[_0x45b2b3(0x164)])??{}),'name':_0x1a20a4[_0x45b2b3(0xe9)],'description':_0x1a20a4[_0x45b2b3(0xc7)],'visible':_0x1a20a4[_0x45b2b3(0x13b)]!==!0x0,'selectable':_0x1a20a4['selectable']!==!0x1,'transform':{'left':(_0x344131==null?void 0x0:_0x344131[_0x45b2b3(0x111)])??0x0,'top':(_0x344131==null?void 0x0:_0x344131[_0x45b2b3(0xbc)])??0x0,'width':(_0x344131==null?void 0x0:_0x344131[_0x45b2b3(0x109)])??0xc8,'height':(_0x344131==null?void 0x0:_0x344131['height'])??0xc8,'rotation':(_0x344131==null?void 0x0:_0x344131['angle'])??0x0,'flipX':(_0x344131==null?void 0x0:_0x344131[_0x45b2b3(0x125)])??!0x1,'flipY':(_0x344131==null?void 0x0:_0x344131[_0x45b2b3(0x143)])??!0x1}};}['listShapes'](_0xb2b650){const _0xb17722=_0x586436;let _0x42d646=this[_0xb17722(0xf4)][_0xb17722(0xb4)](_0xb2b650[_0xb17722(0xef)],_0xb2b650[_0xb17722(0xa9)])??{};return Object[_0xb17722(0x83)](_0x42d646)[_0xb17722(0x11d)](_0x2c4b19=>(_0x2c4b19==null?void 0x0:_0x2c4b19[_0xb17722(0x157)])===_0x5dc636[_0xb17722(0x81)][_0xb17722(0x7d)])[_0xb17722(0xf2)](_0x2313d3=>this[_0xb17722(0x99)]({..._0xb2b650,'shapeId':_0x2313d3[_0xb17722(0xed)]}))[_0xb17722(0x11d)](_0x464e7c=>!!_0x464e7c);}[_0x586436(0x121)](_0x164f48){const _0x7afe70=_0x586436;let _0x3043bf=this[_0x7afe70(0x181)][_0x7afe70(0x104)](_0x164f48,_0x5dc636[_0x7afe70(0xa5)][_0x7afe70(0x135)]);return(_0x3043bf==null?void 0x0:_0x3043bf['getSheets']()[_0x7afe70(0x152)](_0x428f9e=>this[_0x7afe70(0x120)]({'hostType':this[_0x7afe70(0x154)],'unitId':_0x164f48,'subUnitId':_0x428f9e[_0x7afe70(0xa3)]()})))??[];}[_0x586436(0x158)](_0x49a3ef,_0x5a8b6e){const _0x1d6746=_0x586436;let _0x1599da=(0x0,_0x5dc636['generateRandomId'])(),_0x511cfc=_0x4546a5(_0x5a8b6e),_0x5cca55=_0x5dc636[_0x1d6746(0xa6)]['deepClone'](_0x5a8b6e['shapeData']??(0x0,_0x336bab[_0x1d6746(0x9f)])(_0x5a8b6e['shapeType']));return this[_0x1d6746(0xc2)][_0x1d6746(0xe8)](_0x3a5575['id'],{'unitId':_0x49a3ef['unitId'],'subUnitId':_0x49a3ef[_0x1d6746(0xa9)],'shapeId':_0x1599da,'shapeType':_0x5a8b6e[_0x1d6746(0xd6)],'shapeData':_0x5cca55,'name':_0x5a8b6e[_0x1d6746(0xe9)],'description':_0x5a8b6e[_0x1d6746(0xc7)],'position':{'x':_0x511cfc[_0x1d6746(0x111)],'y':_0x511cfc[_0x1d6746(0xbc)]},'width':_0x511cfc[_0x1d6746(0x109)],'height':_0x511cfc[_0x1d6746(0x114)],'rotation':_0x511cfc[_0x1d6746(0x132)],'flipX':_0x511cfc[_0x1d6746(0x125)],'flipY':_0x511cfc['flipY'],'visible':_0x5a8b6e['visible']??!0x0,'selectable':_0x5a8b6e['selectable']??!0x0})?{..._0x49a3ef,'shapeId':_0x1599da,'shapeType':_0x5a8b6e[_0x1d6746(0xd6)],'shapeData':_0x5cca55,'name':_0x5a8b6e['name'],'description':_0x5a8b6e[_0x1d6746(0xc7)],'visible':_0x5a8b6e['visible']??!0x0,'selectable':_0x5a8b6e[_0x1d6746(0x133)]??!0x0,'transform':_0x511cfc}:null;}[_0x586436(0x112)](_0x14f34e,_0x4d3b95){const _0x528837=_0x586436;var _0x1a0f9b;let _0x52445b=this[_0x528837(0x99)](_0x14f34e);if(!_0x52445b)return!0x1;let _0x585403={..._0x52445b['transform'],..._0x4d3b95['transform']};return this[_0x528837(0xc2)][_0x528837(0xe8)](_0x166b67['id'],{'unitId':_0x14f34e[_0x528837(0xef)],'subUnitId':_0x14f34e[_0x528837(0xa9)],'shapeId':_0x14f34e[_0x528837(0x164)],'shapeType':_0x4d3b95[_0x528837(0xd6)]??((_0x1a0f9b=_0x4d3b95[_0x528837(0xeb)])==null?void 0x0:_0x1a0f9b[_0x528837(0xd6)])??_0x52445b['shapeType'],'shapeData':_0x4d3b95['shapeData']??_0x52445b[_0x528837(0xeb)],'position':{'x':_0x585403['left'],'y':_0x585403['top']},'width':_0x585403[_0x528837(0x109)],'height':_0x585403[_0x528837(0x114)],'rotation':_0x585403['rotation'],'flipX':_0x585403[_0x528837(0x125)],'flipY':_0x585403[_0x528837(0x143)],'name':'name'in _0x4d3b95?_0x4d3b95['name']:_0x52445b[_0x528837(0xe9)],'description':_0x528837(0xc7)in _0x4d3b95?_0x4d3b95['description']:_0x52445b[_0x528837(0xc7)],'visible':_0x4d3b95[_0x528837(0x15e)]??_0x52445b[_0x528837(0x15e)],'selectable':_0x4d3b95['selectable']??_0x52445b[_0x528837(0x133)]});}['createFormulaLastValueMutation'](_0x37a08c,_0x4995d3,_0x417786){const _0x311920=_0x586436;let _0x3eb374=this['getShape'](_0x37a08c),_0x3351ff=_0x3eb374==null?void 0x0:_0x3eb374[_0x311920(0xeb)][_0x311920(0xd5)];return!_0x3eb374||!_0x3351ff?null:{'id':_0x18cf4c['id'],'params':{'unitId':_0x37a08c[_0x311920(0xef)],'subUnitId':_0x37a08c[_0x311920(0xa9)],'shapeId':_0x37a08c[_0x311920(0x164)],'shapeData':{..._0x3eb374['shapeData'],'formulaBinding':{..._0x3351ff,'lastValue':_0x5dc636['Tools'][_0x311920(0x14a)](_0x417786)}},'replace':!0x0,'formulaLastValueGuard':_0x4995d3}};}[_0x586436(0x174)](_0x42c0f0){const _0x28d0b3=_0x586436;return this[_0x28d0b3(0xc2)][_0x28d0b3(0xe8)](_0x406c73['RemoveSheetDrawingCommand']['id'],{'unitId':_0x42c0f0[_0x28d0b3(0xef)],'drawings':[{'unitId':_0x42c0f0[_0x28d0b3(0xef)],'subUnitId':_0x42c0f0[_0x28d0b3(0xa9)],'drawingId':_0x42c0f0[_0x28d0b3(0x164)],'drawingType':_0x5dc636[_0x28d0b3(0x81)][_0x28d0b3(0x7d)]}]});}[_0x586436(0x9d)](_0x241713){const _0x50ba4a=_0x586436;return this[_0x50ba4a(0x179)](_0x241713,_0x5dc636[_0x50ba4a(0x119)][_0x50ba4a(0x7a)]);}['bringForward'](_0x172829){const _0x1af334=_0x586436;return this[_0x1af334(0x179)](_0x172829,_0x5dc636[_0x1af334(0x119)]['forward']);}['sendBackward'](_0x985314){const _0x4457a3=_0x586436;return this[_0x4457a3(0x179)](_0x985314,_0x5dc636['ArrangeTypeEnum'][_0x4457a3(0xa2)]);}[_0x586436(0x80)](_0x15c59a){const _0x5a3275=_0x586436;return this[_0x5a3275(0x179)](_0x15c59a,_0x5dc636[_0x5a3275(0x119)]['back']);}['setZOrder'](_0x227e55,_0x1f4db0){const _0x4877c3=_0x586436;return this[_0x4877c3(0xc2)][_0x4877c3(0xe8)](_0x406c73[_0x4877c3(0x173)]['id'],{'unitId':_0x227e55['unitId'],'subUnitId':_0x227e55[_0x4877c3(0xa9)],'drawingIds':[_0x227e55[_0x4877c3(0x164)]],'zOrder':_0x1f4db0});}[_0x586436(0x179)](_0x17aba1,_0x5d73e3){const _0x2b3db7=_0x586436;return this['_commandService']['syncExecuteCommand'](_0x406c73['SetDrawingArrangeCommand']['id'],{'unitId':_0x17aba1[_0x2b3db7(0xef)],'subUnitId':_0x17aba1[_0x2b3db7(0xa9)],'drawingIds':[_0x17aba1[_0x2b3db7(0x164)]],'arrangeType':_0x5d73e3});}};_0x15102c=_0x41d443([_0xe87e8c(0x0,_0x5dc636[_0x586436(0x76)]),_0xe87e8c(0x1,(0x0,_0x5dc636[_0x586436(0xbe)])(_0x441fd4)),_0xe87e8c(0x2,_0x406c73[_0x586436(0x82)]),_0xe87e8c(0x3,_0x5dc636[_0x586436(0x166)])],_0x15102c);let _0x3ee05f={},_0x2d3470=class extends _0x5dc636[_0x586436(0xb2)]{constructor(_0x542fc5,_0x1f607a,_0x1ae3e3,_0x364640,_0x3e33c5,_0x2d72c5,_0x2efbff){const _0x2a50e7=_0x586436;super(),this[_0x2a50e7(0xc2)]=_0x542fc5,this[_0x2a50e7(0x16b)]=_0x1f607a,this[_0x2a50e7(0xd8)]=_0x1ae3e3,this[_0x2a50e7(0x8f)]=_0x364640,this[_0x2a50e7(0xdc)]=_0x3e33c5,this[_0x2a50e7(0xaa)]=_0x2d72c5,this['_initCommands'](),this[_0x2a50e7(0x97)](),this[_0x2a50e7(0x105)](this['_shapeHostAdapterRegistry'][_0x2a50e7(0xea)](_0x2efbff));}[_0x586436(0x138)](){const _0x3e7a5=_0x586436;[_0x3a5575,_0x166b67,_0x2ca069,_0x73c63,_0x4ce486,_0xcb911a,_0x25ea1b,_0x4fe60f,_0x2d5a18,_0x1e2fbd,_0x18cf4c]['forEach'](_0x2e531c=>this['disposeWithMe'](this[_0x3e7a5(0xc2)][_0x3e7a5(0xdb)](_0x2e531c)));}[_0x586436(0x97)](){const _0x721dfb=_0x586436;this[_0x721dfb(0x105)](this[_0x721dfb(0x16b)]['interceptCommand']({'getMutations':_0x561afa=>{const _0x5c36c7=_0x721dfb;if(_0x561afa['id']===_0x406c73[_0x5c36c7(0x186)]['id']){let {drawings:_0x1e3640}=_0x561afa['params'],_0x22aeeb=_0x1e3640['filter'](_0x5786c0=>_0x5786c0[_0x5c36c7(0x157)]===_0x5dc636[_0x5c36c7(0x81)][_0x5c36c7(0x7d)]);if(_0x22aeeb[_0x5c36c7(0xe4)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3f7110=[],_0x357539=[];return _0x22aeeb[_0x5c36c7(0x13a)](_0x358f31=>{const _0x15b54c=_0x5c36c7;let {unitId:_0x2760f9,subUnitId:_0x4def86,drawingId:_0x2bec4a}=_0x358f31,_0x1dc452=this[_0x15b54c(0x8f)][_0x15b54c(0x182)](_0x2760f9,_0x4def86,_0x2bec4a);if(!_0x1dc452)throw TypeError(_0x15b54c(0x110)+_0x1dc452);_0x3f7110[_0x15b54c(0xce)]({'id':_0x2d5a18['id'],'params':{'unitId':_0x2760f9,'subUnitId':_0x4def86,'shapeId':_0x2bec4a}}),_0x357539[_0x15b54c(0xce)]({'id':_0x4fe60f['id'],'params':{'unitId':_0x2760f9,'subUnitId':_0x4def86,'shapeId':_0x2bec4a,'shapeType':_0x1dc452[_0x15b54c(0x88)](),'shapeData':_0x1dc452[_0x15b54c(0x8b)]()}});let _0x146fc7=this[_0x15b54c(0x8f)][_0x15b54c(0xc0)](_0x2760f9,_0x4def86,_0x2bec4a);if(_0x146fc7)for(let _0x4d0242 of _0x146fc7){let _0x16e921=_0x4d0242[_0x15b54c(0xb7)],_0x1fc1e4=_0x4d0242[_0x15b54c(0x175)],_0xdbe590=_0x1fc1e4?{'from':void 0x0}:{'to':void 0x0},_0x4d3b6c=_0x1fc1e4?{'from':{'shapeId':_0x4d0242[_0x15b54c(0x164)],'cxnIndex':_0x4d0242[_0x15b54c(0x178)]}}:{'to':{'shapeId':_0x4d0242[_0x15b54c(0x164)],'cxnIndex':_0x4d0242[_0x15b54c(0x178)]}};_0x3f7110[_0x15b54c(0xce)]({'id':_0x18cf4c['id'],'params':{'unitId':_0x2760f9,'subUnitId':_0x4def86,'shapeId':_0x16e921,'shapeData':{'relation':_0xdbe590}}}),_0x357539['push']({'id':_0x18cf4c['id'],'params':{'unitId':_0x2760f9,'subUnitId':_0x4def86,'shapeId':_0x16e921,'shapeData':{'relation':_0x4d3b6c}}});}}),{'preRedos':_0x3f7110,'redos':[],'preUndos':[],'undos':_0x357539};}if(_0x561afa['id']===_0x406c73[_0x5c36c7(0x176)]['id']){let {drawings:_0x55663a}=_0x561afa['params'],_0x3d3a08=_0x55663a[_0x5c36c7(0x11d)](_0x1d4733=>_0x1d4733[_0x5c36c7(0x157)]===_0x5dc636[_0x5c36c7(0x81)][_0x5c36c7(0x7d)]);if(_0x3d3a08[_0x5c36c7(0xe4)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x46a7c3=[],_0x2b61b8=[];for(let _0x62840f of _0x3d3a08){let {unitId:_0x4a1a95,subUnitId:_0x2fe066,drawingId:_0x39ee4f,transform:_0x28a271}=_0x62840f;if(!_0x4a1a95||!_0x2fe066||!_0x39ee4f||!_0x28a271)continue;let _0x39e66e=this[_0x5c36c7(0x8f)][_0x5c36c7(0x182)](_0x4a1a95,_0x2fe066,_0x39ee4f);if(!_0x39e66e)throw TypeError(_0x5c36c7(0x110)+_0x39e66e);let _0x34032d=_0x39e66e[_0x5c36c7(0x88)]();if((0x0,_0x336bab[_0x5c36c7(0x91)])(_0x34032d)){let _0x2b8b0a=this[_0x5c36c7(0x8f)][_0x5c36c7(0x16a)](_0x4a1a95,_0x2fe066,_0x39ee4f);_0x2b8b0a&&(_0x46a7c3[_0x5c36c7(0xce)]({'id':_0x18cf4c['id'],'params':{'unitId':_0x4a1a95,'subUnitId':_0x2fe066,'shapeId':_0x39ee4f,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x2b61b8[_0x5c36c7(0xce)]({'id':_0x18cf4c['id'],'params':{'unitId':_0x4a1a95,'subUnitId':_0x2fe066,'shapeId':_0x39ee4f,'shapeData':{'relation':_0x2b8b0a}}}));}else{let _0x3eb242=this[_0x5c36c7(0x8f)]['getBasicShapeRelation'](_0x4a1a95,_0x2fe066,_0x39ee4f);if(_0x3eb242&&_0x3eb242['length']>0x0)for(let _0x292392 of _0x3eb242){let _0x49585c=_0x292392[_0x5c36c7(0xb7)],_0x59a661=_0x292392[_0x5c36c7(0x175)],_0x29f344=this['_sheetsShapeService'][_0x5c36c7(0x182)](_0x4a1a95,_0x2fe066,_0x49585c);if(!_0x29f344)continue;let _0x2ed49a=_0x29f344[_0x5c36c7(0x145)](),_0x372939=_0x29f344['getEndConnectInfo']();_0x2ed49a&&_0x372939?this[_0x5c36c7(0xca)](_0x4a1a95,_0x2fe066,_0x49585c,_0x29f344,_0x2ed49a,_0x372939,_0x46a7c3,_0x2b61b8,_0x39ee4f,_0x28a271):this[_0x5c36c7(0x10f)](_0x4a1a95,_0x2fe066,_0x49585c,_0x29f344,_0x59a661?_0x2ed49a:_0x372939,_0x59a661,_0x46a7c3,_0x2b61b8,_0x39ee4f,_0x28a271);}}}return{'preRedos':[],'redos':_0x46a7c3,'preUndos':_0x2b61b8,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x35af5c,_0x33e1e3,_0x441045,_0x38f8ba,_0x14e8b0){const _0x3e1cf6=_0x586436;if(!_0x33e1e3||!_0x441045)return null;let {shapeId:_0x3776af,cxnIndex:_0x3a50fd}=_0x35af5c,_0x287667=this[_0x3e1cf6(0x8f)][_0x3e1cf6(0x182)](_0x33e1e3,_0x441045,_0x3776af);if(!_0x287667)return null;let _0x23a3e1=this[_0x3e1cf6(0xdc)]['getDrawingByParam']({'unitId':_0x33e1e3,'subUnitId':_0x441045,'drawingId':_0x3776af});if(!(_0x23a3e1!=null&&_0x23a3e1[_0x3e1cf6(0xdf)]))return null;let {left:_0x48ea7f=0x0,top:_0x46b29c=0x0,width:_0x5a89fc=0x0,height:_0x2db1e=0x0,flipX:_0x49faf3=!0x1,flipY:_0x5dcf8e=!0x1,angle:_0x4d2e89}=_0x23a3e1[_0x3e1cf6(0xdf)];_0x14e8b0&&_0x38f8ba===_0x3776af&&(_0x48ea7f=_0x14e8b0[_0x3e1cf6(0x111)]??_0x48ea7f,_0x46b29c=_0x14e8b0[_0x3e1cf6(0xbc)]??_0x46b29c,_0x5a89fc=_0x14e8b0[_0x3e1cf6(0x109)]??_0x5a89fc,_0x2db1e=_0x14e8b0['height']??_0x2db1e,_0x49faf3=_0x14e8b0['flipX']??_0x49faf3,_0x5dcf8e=_0x14e8b0[_0x3e1cf6(0x143)]??_0x5dcf8e,_0x4d2e89=_0x14e8b0['angle']??_0x4d2e89),_0x287667[_0x3e1cf6(0x126)]({'width':_0x5a89fc,'height':_0x2db1e});let _0x32407a=_0x287667[_0x3e1cf6(0x189)]()['find'](_0xeb75d7=>_0xeb75d7[_0x3e1cf6(0x95)]===_0x3a50fd);if(!_0x32407a)return null;let _0x57c959=_0x49faf3?_0x5a89fc-_0x32407a['x']:_0x32407a['x'],_0x5f44=_0x5dcf8e?_0x2db1e-_0x32407a['y']:_0x32407a['y'];if(_0x4d2e89!==0x0&&_0x4d2e89!=null){let _0x22b489=_0x4d2e89*Math['PI']/0xb4,_0x543bdd=Math[_0x3e1cf6(0x161)](_0x22b489),_0x1a91a2=Math[_0x3e1cf6(0x17a)](_0x22b489),_0xd4f8c1=_0x5a89fc/0x2,_0x592496=_0x2db1e/0x2,_0x57f86a=_0x57c959-_0xd4f8c1,_0x10a9f8=_0x5f44-_0x592496;_0x57c959=_0xd4f8c1+_0x57f86a*_0x543bdd-_0x10a9f8*_0x1a91a2,_0x5f44=_0x592496+_0x57f86a*_0x1a91a2+_0x10a9f8*_0x543bdd;}_0x57c959+=_0x48ea7f,_0x5f44+=_0x46b29c;let _0x573943=_0x32407a[_0x3e1cf6(0x11a)]/0xea60;_0x49faf3&&(_0x573943=0xb4-_0x573943),_0x5dcf8e&&(_0x573943=-_0x573943),_0x573943+=_0x4d2e89||0x0,_0x573943=(_0x573943%0x168+0x168)%0x168;let _0x40d4a4=(0x0,_0x336bab['getBasicShapeRotateBound'])({'left':_0x48ea7f,'top':_0x46b29c,'width':_0x5a89fc,'height':_0x2db1e},_0x4d2e89||0x0);return{'point':{'x':_0x57c959,'y':_0x5f44},'angle':_0x573943,'bounds':_0x40d4a4};}[_0x586436(0xca)](_0x5ed39c,_0xbbaaa9,_0x371593,_0x460cc3,_0x96db9c,_0x3f9d9,_0x285203,_0x3dee25,_0x50ac53,_0x292b02){const _0x22c69b=_0x586436;let _0x366342=this['_sheetSkeletonService'][_0x22c69b(0xb0)](_0x5ed39c,_0xbbaaa9);if(!_0x366342)return;let _0x1681ad=_0x460cc3[_0x22c69b(0x103)](),_0x102633=_0x460cc3[_0x22c69b(0x7b)](),_0x2ae751={},_0x52abf9={};_0x102633[_0x22c69b(0x13a)](_0x5abe9f=>{const _0x3c35be=_0x22c69b;let _0x5e12e4=_0x460cc3[_0x3c35be(0xcf)](_0x5abe9f);_0x52abf9[_0x5abe9f]=_0x5e12e4??0x0;});let _0x592e70=this[_0x22c69b(0x18a)](_0x96db9c,_0x5ed39c,_0xbbaaa9,_0x50ac53,_0x292b02),_0x345df2=this[_0x22c69b(0x18a)](_0x3f9d9,_0x5ed39c,_0xbbaaa9,_0x50ac53,_0x292b02);if(_0x592e70&&_0x345df2){let _0x323fb8=_0x460cc3[_0x22c69b(0x88)](),_0x4c853e=(0x0,_0x336bab[_0x22c69b(0xab)])(_0x592e70,_0x345df2,_0x323fb8),_0x143d9=_0x323fb8;if(_0x4c853e){let _0x17a50c=(0x0,_0x336bab['computeConnectorRouteLayout'])(_0x4c853e,_0x460cc3[_0x22c69b(0x88)]()),_0x3618b2=this[_0x22c69b(0xdc)]['getDrawingData'](_0x5ed39c,_0xbbaaa9);if(_0x3618b2&&_0x3618b2[_0x371593]){let _0x4a571e=_0x3618b2[_0x371593];_0x143d9=_0x17a50c[_0x22c69b(0x115)];for(let [_0x5c97ab,_0x5c0e4d]of Object['entries'](_0x17a50c[_0x22c69b(0x8e)]))_0x2ae751[_0x5c97ab]=_0x5c0e4d;let _0x335bb4={..._0x4a571e[_0x22c69b(0xdf)],'width':_0x17a50c['worldRect'][_0x22c69b(0x109)],'height':_0x17a50c['worldRect'][_0x22c69b(0x114)],'left':_0x17a50c[_0x22c69b(0xe2)]['left'],'top':_0x17a50c[_0x22c69b(0xe2)][_0x22c69b(0xbc)],'flipX':_0x17a50c[_0x22c69b(0xe2)][_0x22c69b(0x125)],'flipY':_0x17a50c[_0x22c69b(0xe2)][_0x22c69b(0x143)],'angle':_0x17a50c[_0x22c69b(0x132)]},_0x4fc12d=(0x0,_0x406c73['transformToDrawingPosition'])(_0x335bb4,_0x366342),_0x315643=(0x0,_0x406c73[_0x22c69b(0x102)])(_0x335bb4,_0x366342),_0x3b15de={'unitId':_0x5ed39c,'subUnitId':_0xbbaaa9,'drawingType':_0x5dc636['DrawingTypeEnum'][_0x22c69b(0x7d)],'drawingId':_0x371593,'transform':_0x335bb4,'sheetTransform':_0x4fc12d,'axisAlignSheetTransform':_0x315643},{unitId:_0x3d56a5,subUnitId:_0x5c4278,undo:_0x1c6888,redo:_0x5b1c4a,objects:_0x397bf3}=this['_drawingManagerService']['getBatchUpdateOp']([_0x3b15de]);_0x285203[_0x22c69b(0xce)]({'id':_0x406c73[_0x22c69b(0x96)]['id'],'params':{'unitId':_0x3d56a5,'subUnitId':_0x5c4278,'op':_0x5b1c4a,'objects':_0x397bf3,'type':_0x406c73[_0x22c69b(0xf0)][_0x22c69b(0x13e)]}}),_0x3dee25[_0x22c69b(0xce)]({'id':_0x406c73[_0x22c69b(0x96)]['id'],'params':{'unitId':_0x3d56a5,'subUnitId':_0x5c4278,'op':_0x1c6888,'objects':_0x397bf3,'type':_0x406c73['DrawingApplyType']['UPDATE']}});}_0x460cc3[_0x22c69b(0x15a)]();}_0x285203['push']({'id':_0x18cf4c['id'],'params':{'unitId':_0x5ed39c,'subUnitId':_0xbbaaa9,'shapeId':_0x371593,'shapeType':_0x143d9,'shapeData':{'adjustValues':_0x2ae751,'relation':_0x1681ad}}}),_0x3dee25[_0x22c69b(0xce)]({'id':_0x18cf4c['id'],'params':{'unitId':_0x5ed39c,'subUnitId':_0xbbaaa9,'shapeId':_0x371593,'shapeType':_0x323fb8,'shapeData':{'adjustValues':_0x52abf9,'relation':_0x1681ad}}});}}['_addLineFollowShapeUpdates'](_0x4b3c63,_0x5976d6,_0x55d9ec,_0x5a2ce1,_0x517fbf,_0x5ecc08,_0x3b5611,_0x8bec65,_0x3e8056,_0xc85e1e){const _0x552984=_0x586436;var _0x3433d5;if(!_0x517fbf)return;let _0x35958e=this[_0x552984(0xd8)][_0x552984(0xb0)](_0x4b3c63,_0x5976d6);if(!_0x35958e)return;let _0x57675c=(_0x3433d5=this[_0x552984(0xdc)][_0x552984(0x12e)]({'unitId':_0x4b3c63,'subUnitId':_0x5976d6,'drawingId':_0x3e8056}))==null?void 0x0:_0x3433d5[_0x552984(0xdf)];if(!_0x57675c)return;let _0x4e8fbc=_0x57675c[_0x552984(0x111)]!==_0xc85e1e[_0x552984(0x111)]||_0x57675c[_0x552984(0xbc)]!==_0xc85e1e['top'],_0x6ff320=_0x57675c['width']!==_0xc85e1e[_0x552984(0x109)]||_0x57675c[_0x552984(0x114)]!==_0xc85e1e[_0x552984(0x114)],_0x5f2864=_0x57675c[_0x552984(0x125)]!==_0xc85e1e[_0x552984(0x125)]||_0x57675c[_0x552984(0x143)]!==_0xc85e1e['flipY'],_0x568a67=_0x57675c[_0x552984(0x124)]!==_0xc85e1e[_0x552984(0x124)];if(_0x4e8fbc&&!_0x6ff320&&!_0x5f2864&&!_0x568a67){let _0x46e451=(_0xc85e1e[_0x552984(0x111)]??0x0)-(_0x57675c[_0x552984(0x111)]??0x0),_0x35d721=(_0xc85e1e['top']??0x0)-(_0x57675c[_0x552984(0xbc)]??0x0),_0x2c3bff=this[_0x552984(0xdc)][_0x552984(0xb4)](_0x4b3c63,_0x5976d6);if(_0x2c3bff&&_0x2c3bff[_0x55d9ec]){var _0x5c6c98,_0x2e126b;let _0x2f0c72=_0x2c3bff[_0x55d9ec],_0x25de7c={..._0x2f0c72[_0x552984(0xdf)],'left':(((_0x5c6c98=_0x2f0c72['transform'])==null?void 0x0:_0x5c6c98['left'])??0x0)+_0x46e451,'top':(((_0x2e126b=_0x2f0c72['transform'])==null?void 0x0:_0x2e126b[_0x552984(0xbc)])??0x0)+_0x35d721},_0x139506=(0x0,_0x406c73['transformToDrawingPosition'])(_0x25de7c,_0x35958e),_0x1d9425=(0x0,_0x406c73[_0x552984(0x102)])(_0x25de7c,_0x35958e),_0x58ac10={'unitId':_0x4b3c63,'subUnitId':_0x5976d6,'drawingType':_0x5dc636[_0x552984(0x81)][_0x552984(0x7d)],'drawingId':_0x55d9ec,'transform':_0x25de7c,'sheetTransform':_0x139506,'axisAlignSheetTransform':_0x1d9425},{unitId:_0x45ebd2,subUnitId:_0x3b3128,undo:_0x1f660f,redo:_0x91726,objects:_0x516f9f}=this['_drawingManagerService'][_0x552984(0xd0)]([_0x58ac10]);_0x3b5611[_0x552984(0xce)]({'id':_0x406c73[_0x552984(0x96)]['id'],'params':{'unitId':_0x45ebd2,'subUnitId':_0x3b3128,'op':_0x91726,'objects':_0x516f9f,'type':_0x406c73['DrawingApplyType'][_0x552984(0x13e)]}}),_0x8bec65[_0x552984(0xce)]({'id':_0x406c73['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x45ebd2,'subUnitId':_0x3b3128,'op':_0x1f660f,'objects':_0x516f9f,'type':_0x406c73[_0x552984(0xf0)][_0x552984(0x13e)]}});}}else{let _0x3ff727=_0x5a2ce1['getStartConnectInfo'](),_0x319136=_0x5a2ce1[_0x552984(0x84)]();this[_0x552984(0xca)](_0x4b3c63,_0x5976d6,_0x55d9ec,_0x5a2ce1,_0x3ff727,_0x319136,_0x3b5611,_0x8bec65,_0x3e8056,_0xc85e1e);}}};_0x2d3470=_0x41d443([_0xe87e8c(0x0,_0x5dc636[_0x586436(0x76)]),_0xe87e8c(0x1,(0x0,_0x5dc636['Inject'])(_0x22b381[_0x586436(0x156)])),_0xe87e8c(0x2,(0x0,_0x5dc636[_0x586436(0xbe)])(_0x22b381['SheetSkeletonService'])),_0xe87e8c(0x3,(0x0,_0x5dc636[_0x586436(0xbe)])(_0x441fd4)),_0xe87e8c(0x4,(0x0,_0x5dc636['Inject'])(_0x51a485[_0x586436(0x107)])),_0xe87e8c(0x5,(0x0,_0x5dc636['Inject'])(_0x336bab[_0x586436(0x17c)])),_0xe87e8c(0x6,(0x0,_0x5dc636[_0x586436(0xbe)])(_0x15102c))],_0x2d3470);let _0x2a2a9d=class extends _0x5dc636[_0x586436(0xb2)]{constructor(_0x3247d3,_0x321215,_0x3a5dfe){const _0xa8699e=_0x586436;super(),this[_0xa8699e(0x159)]=_0x3247d3,this[_0xa8699e(0x142)]=_0x321215,this[_0xa8699e(0x105)](_0x3a5dfe[_0xa8699e(0xea)](this));}[_0x586436(0xdf)](_0x4efc65){const _0x47ce59=_0x586436;let _0x1bbd11={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x47ce59(0xfa)](_0x4efc65,_0x1bbd11);for(let [_0x264d86,_0x399060]of _0x4efc65[_0x47ce59(0xf9)])this[_0x47ce59(0x16d)](_0x4efc65,_0x264d86,_0x399060,_0x1bbd11);return _0x1bbd11;}[_0x586436(0xfa)](_0x36d75a,_0x5a0a62){const _0x3323d3=_0x586436;if(_0x36d75a['mode']===_0x3323d3(0x16f))for(let _0xecf3f of _0x36d75a[_0x3323d3(0x168)]){let _0x526c4c=_0x36d75a['originals'][_0x3323d3(0x89)](_0xecf3f),_0x104152=this[_0x3323d3(0x159)][_0x3323d3(0x182)](_0x36d75a[_0x3323d3(0xef)],_0x36d75a[_0x3323d3(0xa9)],_0xecf3f);(_0x526c4c==null?void 0x0:_0x526c4c[_0x3323d3(0x157)])===_0x5dc636[_0x3323d3(0x81)][_0x3323d3(0x7d)]&&_0x104152&&(_0x5a0a62[_0x3323d3(0x163)][_0x3323d3(0xce)]({'id':_0x2d5a18['id'],'params':{'unitId':_0x36d75a[_0x3323d3(0xef)],'subUnitId':_0x36d75a[_0x3323d3(0xa9)],'shapeId':_0xecf3f}}),_0x5a0a62[_0x3323d3(0xd7)][_0x3323d3(0xce)]({'id':_0x4fe60f['id'],'params':{'unitId':_0x36d75a[_0x3323d3(0xef)],'subUnitId':_0x36d75a[_0x3323d3(0xa9)],'shapeId':_0xecf3f,'shapeName':_0x104152[_0x3323d3(0xc9)](),'shapeType':_0x104152[_0x3323d3(0x88)](),'shapeData':_0x5dc636[_0x3323d3(0xa6)][_0x3323d3(0x14a)](_0x104152[_0x3323d3(0x8b)]())}}));}}['_planConnector'](_0x375186,_0x4790c8,_0x1995bf,_0xf38a9){const _0x21e1a8=_0x586436;if(_0x1995bf[_0x21e1a8(0x157)]!==_0x5dc636[_0x21e1a8(0x81)][_0x21e1a8(0x7d)]||_0x375186[_0x21e1a8(0x168)][_0x21e1a8(0xf1)](_0x4790c8))return;let _0x9dc9a8=this[_0x21e1a8(0x159)][_0x21e1a8(0x182)](_0x375186[_0x21e1a8(0xef)],_0x375186['subUnitId'],_0x4790c8);if(!_0x9dc9a8||!(0x0,_0x336bab[_0x21e1a8(0x91)])(_0x9dc9a8[_0x21e1a8(0x88)]()))return;let _0x45325e=_0x9dc9a8[_0x21e1a8(0x103)]();if(!(_0x375186[_0x21e1a8(0x14c)]['has'](_0x4790c8)||_0x45325e!=null&&_0x45325e['from']&&(_0x375186[_0x21e1a8(0x14c)]['has'](_0x45325e[_0x21e1a8(0x131)]['shapeId'])||_0x375186[_0x21e1a8(0x168)][_0x21e1a8(0xf1)](_0x45325e[_0x21e1a8(0x131)][_0x21e1a8(0x164)]))||_0x45325e!=null&&_0x45325e['to']&&(_0x375186[_0x21e1a8(0x14c)][_0x21e1a8(0xf1)](_0x45325e['to'][_0x21e1a8(0x164)])||_0x375186[_0x21e1a8(0x168)][_0x21e1a8(0xf1)](_0x45325e['to'][_0x21e1a8(0x164)]))))return;let _0xaed642=_0x375186[_0x21e1a8(0x14c)]['get'](_0x4790c8)??_0x1995bf,_0x56a96e=this['_toSnapshot'](_0x375186,_0xaed642);if(!_0x56a96e)return;let _0x3bbc97=(0x0,_0x336bab[_0x21e1a8(0x16c)])(_0x56a96e);if(_0x3bbc97[_0x21e1a8(0xe4)]<0x2)return;let _0x3935fa=_0x5dc636[_0x21e1a8(0xa6)][_0x21e1a8(0x14a)](_0x45325e??{}),_0x385ba0=_0x3935fa[_0x21e1a8(0x131)]&&this[_0x21e1a8(0x13d)](_0x375186,_0x3935fa[_0x21e1a8(0x131)][_0x21e1a8(0x164)],_0x3935fa[_0x21e1a8(0x131)][_0x21e1a8(0x178)]),_0x47a908=_0x3935fa['to']&&this[_0x21e1a8(0x13d)](_0x375186,_0x3935fa['to'][_0x21e1a8(0x164)],_0x3935fa['to'][_0x21e1a8(0x178)]);_0x3935fa[_0x21e1a8(0x131)]&&!_0x385ba0&&delete _0x3935fa['from'],_0x3935fa['to']&&!_0x47a908&&delete _0x3935fa['to'];let _0x1460e9=_0x385ba0||(0x0,_0x336bab[_0x21e1a8(0x79)])((_0x47a908==null?void 0x0:_0x47a908['point'])??_0x3bbc97[_0x3bbc97[_0x21e1a8(0xe4)]-0x1],_0x3bbc97[0x0]),_0x5318c5=_0x47a908||(0x0,_0x336bab[_0x21e1a8(0x79)])((_0x385ba0==null?void 0x0:_0x385ba0['point'])??_0x3bbc97[0x0],_0x3bbc97[_0x3bbc97['length']-0x1]),_0x24d9a3=(0x0,_0x336bab['buildConnectorEndpointUpdate'])(_0x56a96e,_0x1460e9,_0x5318c5,_0x3935fa);if(_0x24d9a3!=null&&_0x24d9a3['transform']&&_0x24d9a3[_0x21e1a8(0xd6)]&&_0x24d9a3[_0x21e1a8(0xeb)]){if(this['_applyUpdate'](_0x375186,_0xaed642,_0x24d9a3),_0x375186[_0x21e1a8(0x122)]===_0x21e1a8(0xde)){_0x9dc9a8[_0x21e1a8(0xa4)](_0x24d9a3[_0x21e1a8(0xd6)]),_0x9dc9a8['setShapeData'](_0x5dc636['Tools'][_0x21e1a8(0x14a)](_0x24d9a3[_0x21e1a8(0xeb)]),!0x1);return;}_0xf38a9[_0x21e1a8(0x15c)][_0x21e1a8(0xce)]({'id':_0x18cf4c['id'],'params':{'unitId':_0x375186['unitId'],'subUnitId':_0x375186['subUnitId'],'shapeId':_0x4790c8,'shapeType':_0x24d9a3[_0x21e1a8(0xd6)],'shapeData':_0x5dc636['Tools']['deepClone'](_0x24d9a3[_0x21e1a8(0xeb)]),'replace':!0x0}}),_0xf38a9[_0x21e1a8(0xd7)][_0x21e1a8(0xce)]({'id':_0x18cf4c['id'],'params':{'unitId':_0x375186[_0x21e1a8(0xef)],'subUnitId':_0x375186[_0x21e1a8(0xa9)],'shapeId':_0x4790c8,'shapeType':_0x9dc9a8[_0x21e1a8(0x88)](),'shapeData':_0x5dc636[_0x21e1a8(0xa6)][_0x21e1a8(0x14a)](_0x9dc9a8[_0x21e1a8(0x8b)]()),'replace':!0x0}});}}[_0x586436(0x13d)](_0x3c3f7f,_0x1e6c2c,_0x380f8e){const _0x2934f7=_0x586436;if(_0x3c3f7f[_0x2934f7(0x168)][_0x2934f7(0xf1)](_0x1e6c2c))return null;let _0x3c0e5a=_0x3c3f7f[_0x2934f7(0x14c)][_0x2934f7(0x89)](_0x1e6c2c)??_0x3c3f7f[_0x2934f7(0xf9)][_0x2934f7(0x89)](_0x1e6c2c);if(!_0x3c0e5a)return null;let _0x3af5ba=this['_toSnapshot'](_0x3c3f7f,_0x3c0e5a);return _0x3af5ba?(0x0,_0x336bab[_0x2934f7(0xc4)])(_0x3af5ba,_0x380f8e):null;}[_0x586436(0x92)](_0x1a55f5,_0x153342){const _0x46bfee=_0x586436;let _0x163896={'hostType':_0x5dc636[_0x46bfee(0xa5)][_0x46bfee(0x135)],'unitId':_0x1a55f5[_0x46bfee(0xef)],'subUnitId':_0x1a55f5[_0x46bfee(0xa9)],'shapeId':_0x153342[_0x46bfee(0xed)]},_0x5a5485=this[_0x46bfee(0x142)][_0x46bfee(0x99)](_0x163896);return!_0x5a5485||!_0x153342['transform']?null:{..._0x5a5485,'transform':{'left':_0x153342[_0x46bfee(0xdf)][_0x46bfee(0x111)]??0x0,'top':_0x153342[_0x46bfee(0xdf)][_0x46bfee(0xbc)]??0x0,'width':_0x153342[_0x46bfee(0xdf)][_0x46bfee(0x109)]??0x0,'height':_0x153342[_0x46bfee(0xdf)][_0x46bfee(0x114)]??0x0,'rotation':_0x153342[_0x46bfee(0xdf)][_0x46bfee(0x124)]??0x0,'flipX':_0x153342[_0x46bfee(0xdf)][_0x46bfee(0x125)]??!0x1,'flipY':_0x153342[_0x46bfee(0xdf)][_0x46bfee(0x143)]??!0x1}};}[_0x586436(0xec)](_0x2c44bf,_0x131da8,_0x2df771){const _0x5649fa=_0x586436;let _0x265b74=_0x131da8,_0xe11096={..._0x131da8['transform'],'left':_0x2df771[_0x5649fa(0xdf)][_0x5649fa(0x111)],'top':_0x2df771[_0x5649fa(0xdf)][_0x5649fa(0xbc)],'width':_0x2df771[_0x5649fa(0xdf)][_0x5649fa(0x109)],'height':_0x2df771[_0x5649fa(0xdf)]['height'],'angle':_0x2df771[_0x5649fa(0xdf)][_0x5649fa(0x132)],'flipX':_0x2df771[_0x5649fa(0xdf)][_0x5649fa(0x125)],'flipY':_0x2df771[_0x5649fa(0xdf)][_0x5649fa(0x143)]},_0xf9267e={..._0x265b74,'transform':_0xe11096,'sheetTransform':(0x0,_0x406c73[_0x5649fa(0xf7)])(_0xe11096,_0x2c44bf[_0x5649fa(0x180)]),'axisAlignSheetTransform':(0x0,_0x406c73[_0x5649fa(0x102)])(_0xe11096,_0x2c44bf[_0x5649fa(0x180)]),'data':{..._0x265b74[_0x5649fa(0xcb)],'shapeType':_0x2df771[_0x5649fa(0xd6)],'shapeData':_0x5dc636['Tools'][_0x5649fa(0x14a)](_0x2df771[_0x5649fa(0xeb)])}};_0x2c44bf[_0x5649fa(0x14c)][_0x5649fa(0xe0)](_0x131da8[_0x5649fa(0xed)],_0xf9267e);}};_0x2a2a9d=_0x41d443([_0xe87e8c(0x0,(0x0,_0x5dc636[_0x586436(0xbe)])(_0x441fd4)),_0xe87e8c(0x1,(0x0,_0x5dc636[_0x586436(0xbe)])(_0x15102c)),_0xe87e8c(0x2,(0x0,_0x5dc636[_0x586436(0xbe)])(_0x406c73[_0x586436(0xbf)]))],_0x2a2a9d);let _0x540eee=class extends _0x5dc636[_0x586436(0x12d)]{constructor(_0x41f3c8=_0x3ee05f,_0x60e920,_0x357194){const _0x136d2d=_0x586436;super(),this[_0x136d2d(0xa1)]=_0x41f3c8,this[_0x136d2d(0x78)]=_0x60e920,this[_0x136d2d(0x98)]=_0x357194;let {..._0x513feb}=(0x0,_0x5dc636[_0x136d2d(0xac)])({},_0x3ee05f,this[_0x136d2d(0xa1)]);this[_0x136d2d(0x98)]['setConfig']('sheets-shape.config',_0x513feb);}[_0x586436(0x141)](){const _0x1cabeb=_0x586436;let _0xda875d=this[_0x1cabeb(0x78)];[[_0x5a5043],[_0x441fd4],[_0x15102c],[_0x2a2a9d],[_0x2d3470]][_0x1cabeb(0x13a)](_0x38e0e8=>_0xda875d[_0x1cabeb(0x147)](_0x38e0e8)),(0x0,_0x5dc636[_0x1cabeb(0x14e)])(_0xda875d,[[_0x441fd4],[_0x2a2a9d],[_0x2d3470]]);}};_0x28390f(_0x540eee,_0x586436(0x74),_0x5dc636['UniverInstanceType'][_0x586436(0x135)]),_0x28390f(_0x540eee,_0x586436(0x10a),_0x586436(0xe1)),_0x28390f(_0x540eee,'packageName',_0x233b4d),_0x28390f(_0x540eee,'version',_0x3fa832),_0x540eee=_0x41d443([(0x0,_0x5dc636['DependentOn'])(_0x1ceec9[_0x586436(0x148)],_0x51a485[_0x586436(0xdd)],_0x336bab[_0x586436(0x11f)],_0x22b381[_0x586436(0x8c)],_0x406c73[_0x586436(0x10d)]),_0xe87e8c(0x1,(0x0,_0x5dc636[_0x586436(0xbe)])(_0x5dc636[_0x586436(0xb5)])),_0xe87e8c(0x2,_0x5dc636[_0x586436(0xc5)])],_0x540eee),_0x3cfca4[_0x586436(0xcc)]=0xc8,_0x3cfca4[_0x586436(0x10e)]=0xc8,_0x3cfca4[_0x586436(0xb6)]=_0x3a5575,_0x3cfca4['InsertSheetsShapeMutation']=_0x4fe60f,_0x3cfca4[_0x586436(0x106)]=_0x2d5a18,_0x3cfca4[_0x586436(0xe6)]=_0x166b67,_0x3cfca4[_0x586436(0x87)]=_0x73c63,_0x3cfca4[_0x586436(0x12c)]=_0x4ce486,Object[_0x586436(0x116)](_0x3cfca4,_0x586436(0x94),{'enumerable':!0x0,'get':function(){return _0x441fd4;}}),_0x3cfca4[_0x586436(0xb8)]=_0x2ca069,Object[_0x586436(0x116)](_0x3cfca4,_0x586436(0xa0),{'enumerable':!0x0,'get':function(){return _0x540eee;}}),_0x3cfca4[_0x586436(0x177)]=_0xcb911a,_0x3cfca4['UpdateLineShapeResizeCommand']=_0x25ea1b,_0x3cfca4[_0x586436(0xee)]=_0x18cf4c,_0x3cfca4['UpdateSheetsShapeTypeMutation']=_0x1e2fbd;}));function _0x3827(_0x229528,_0x44bfbe){_0x229528=_0x229528-0x71;const _0x5899a8=_0x5899();let _0x382784=_0x5899a8[_0x229528];return _0x382784;}function _0x5899(){const _0x45140c=['@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','clear','onCommandExecute','top','sheet.command.set-shape-text-vertical-toggle','Inject','SheetDrawingTransformPlanService','getBasicShapeRelation','InsertSheetDrawingCommand','_commandService','INSERT','resolveShapeConnectionPoint','IConfigService','ensureSkeleton','description','delete','getName','_addLineRerouteUpdates','data','DEFAULT_SHAPE_HEIGHT','@univerjs/core','push','getAdjustValueByName','getBatchUpdateOp','sheet.command.update-line-shape-resize','sheet.mutation.update-shape-data','SheetSkeletonService','_groupIds','formulaBinding','shapeType','undos','_sheetSkeletonService','preUndos','getShapeTextData','registerCommand','_drawingManagerService','UniverDrawingPlugin','refresh','transform','set','SHEET_SHAPE_PLUGIN','worldRect','SheetDrawingAnchorType','length','ClearSheetDrawingTransformerOperation','SetShapeDrawingDataCommand','insertShape','syncExecuteCommand','name','register','shapeData','_applyUpdate','drawingId','UpdateSheetsShapeDataMutation','unitId','DrawingApplyType','has','map','rotateEnabled','_drawingService','getShapeDisplayNames','@univerjs-pro/license','transformToDrawingPosition','1144720jSJFJy','originals','_planDeletes','ShapeModel','symbol','_shapeModelManagerMap','_shapes','sheet.command.insert-shape','hasShape','formula','transformToAxisAlignPosition','getShapeRelation','getUnit','disposeWithMe','RemoveSheetsShapeMutation','IDrawingManagerService','borderEnabled','width','pluginName','sheet.mutation.remove-shape','exports','UniverSheetsDrawingPlugin','DEFAULT_SHAPE_WIDTH','_addLineFollowShapeUpdates','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','left','updateShape','getSheetCommandTarget','height','lineType','defineProperty','CommandType','UniverSheets','ArrangeTypeEnum','ang','fromJSON','_deserializeShapeForUnit','filter','UniverProSheetsShape','UniverShapePlugin','listShapes','listShapesInUnit','mode','@univerjs-pro/sheets-shape','angle','flipX','updateContext','result','pushUndoRedo','4074325pXbEDe','sheet.command.update-connector-relation','createUniqueShapeName','SetSheetsShapeTextVerticalToggleCommand','Plugin','getDrawingByParam','8326052reXHdB','Module','from','rotation','selectable','range','UNIVER_SHEET','toStringTag','dispose','_initCommands','MUTATION','forEach','hidden','UniverProLicense','_resolveBinding','UPDATE','toJSON','fill','onStarting','_shapeAdapter','flipY','1368QbzLBs','getStartConnectInfo','canApplyShapeFormulaLastValue','add','UniverLicensePlugin','parse','deepClone','_disposed','updates','105021cRZgrK','touchDependencies','_initSnapshot','object','3542682RuSllW','flatMap','getShapeDataById','hostType','COMMAND','SheetInterceptorService','drawingType','createShape','_shapeService','removeLinePoints','default','redos','function','visible','resizeEnabled','getBasicShapeType','cos','relation','preRedos','shapeId','keys','IUniverInstanceService','getBatchAddOp','deletes','getId','getLineShapeRelation','_sheetInterceptorService','resolveConnectorRoutePoints','_planConnector','IUndoRedoService','command','303630VaTmXd','_serializeShapeForUnit','UniverProEngineShape','SetDrawingArrangeCommand','removeShape','isFrom','SetSheetDrawingCommand','UpdateConnectorRelationCommand','cxnIndex','_arrange','sin','sequenceExecute','IShapeHostAdapterRegistry','toPrimitive','UniverDrawing','@univerjs/drawing','skeleton','_instanceService','getShapeModel','stringify','getCellWithCoordByIndex','shapeName','RemoveSheetDrawingCommand','constructor','1.0.1','getConnectionSiteList','_getConnectPointInfo','shapeChanged$','call','_ensureShapeModelManager','type','sheet.mutation.update-shape-type','ICommandService','IResourceManagerService','_injector','createFreeConnectorPointInfo','front','getAdjustNames','UniverCore','DRAWING_SHAPE','19266vSaFtm','_resourcesManagerService','sendToBack','DrawingTypeEnum','ISheetDrawingService','values','getEndConnectInfo','setShapeData','getShapeTypeById','SetSheetsShapeRotateCommand','getShapeType','get','_linesIds','getShapeData','UniverSheetsPlugin','getOwnPropertyDescriptor','adjustValues','_sheetsShapeService','addShape','isConnectorShape','_toSnapshot','548IaWjmt','SheetsShapeService','index','SetDrawingApplyMutation','_initCommandInterceptor','_configService','getShape','registerPluginResource','string','decorate','bringToFront','Both','createDefaultInsertedShapeData','UniverSheetsShapePlugin','_config','backward','getSheetId','setShapeType','UniverInstanceType','Tools','startY','sheet.command.set-shape-drawing-data','subUnitId','_shapeHostAdapterRegistry','routeConnectorLineShape','merge','@univerjs/sheets-drawing','isLineShape','position','getSkeleton','generateRandomId','Disposable','@univerjs-pro/engine-shape','getDrawingData','Injector','InsertShapeCommand','lineShapeId','ToggleSheetsShapeFlipCommand'];_0x5899=function(){return _0x45140c;};return _0x5899();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-shape",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
5
  "description": "Shape and drawing model integration for Univer Sheets.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -58,16 +58,16 @@
58
58
  "lib"
59
59
  ],
60
60
  "dependencies": {
61
- "@univerjs-pro/engine-shape": "1.0.0",
62
- "@univerjs-pro/license": "1.0.0",
63
- "@univerjs/core": "1.0.0",
64
- "@univerjs/drawing": "1.0.0",
65
- "@univerjs/sheets": "1.0.0",
66
- "@univerjs/sheets-drawing": "1.0.0"
61
+ "@univerjs-pro/engine-shape": "1.0.1",
62
+ "@univerjs-pro/license": "1.0.1",
63
+ "@univerjs/core": "1.0.1",
64
+ "@univerjs/drawing": "1.0.1",
65
+ "@univerjs/sheets": "1.0.1",
66
+ "@univerjs/sheets-drawing": "1.0.1"
67
67
  },
68
68
  "devDependencies": {
69
- "@univerjs-infra/shared": "1.0.0",
70
- "@univerjs/engine-render": "1.0.0",
69
+ "@univerjs-infra/shared": "1.0.1",
70
+ "@univerjs/engine-render": "1.0.1",
71
71
  "typescript": "^6.0.3",
72
72
  "vitest": "^5.0.0"
73
73
  },
@@ -1,5 +0,0 @@
1
- export declare const SHEETS_SHAPE_PLUGIN_CONFIG_KEY = "sheets-shape.config";
2
- export declare const configSymbol: unique symbol;
3
- export interface IUniverSheetsShapeConfig {
4
- }
5
- export declare const defaultPluginConfig: IUniverSheetsShapeConfig;