@univerjs-pro/sheets-shape 1.0.0-alpha.3 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/adapters/sheet-shape-host.adapter.d.ts +21 -0
- package/lib/types/commands/command/add-shape.command.d.ts +7 -0
- package/lib/types/commands/command/set-shape-drawing-data.command.d.ts +7 -0
- package/lib/types/controllers/sheets-shape.controller.d.ts +4 -1
- package/lib/types/facade/f-shape.d.ts +12 -690
- package/lib/types/facade/f-worksheet.d.ts +44 -209
- package/lib/types/facade/index.d.ts +2 -12
- package/lib/types/plugin.d.ts +2 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -8
- package/lib/types/facade/f-connector-shape.d.ts +0 -189
- package/lib/types/facade/f-enum.d.ts +0 -203
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x53b2(_0x2590ac,_0x3d0df9){_0x2590ac=_0x2590ac-0xb1;const _0x556d70=_0x556d();let _0x53b2a5=_0x556d70[_0x2590ac];return _0x53b2a5;}function _0x556d(){const _0x1b8aa=['shapeData','_ensureShapeModelManager','has','_commandService','touchDependencies','sheet.command.set-shape-rotate','UPDATE','getSheetCommandTarget','borderEnabled','push','SetSheetsShapeTextVerticalToggleCommand','height','disposeWithMe','Injector','IResourceManagerService','generateRandomId','symbol','getCellWithCoordByIndex','isFrom','parse','ICommandService','getShapeType','Inject','_deserializeShapeForUnit','getBatchUpdateOp','setShapeData','flipX','@univerjs/sheets-drawing','transformToDrawingPosition','IUniverInstanceService','getShapeRelation','SetSheetDrawingCommand','removeLinePoints','getBasicShapeRelation','transformToAxisAlignPosition','91zzgCLe','getDrawingByParam','@univerjs/core','ToggleSheetsShapeFlipCommand','UniverSheets','InsertSheetsShapeMutation','_injector','2449287VxZuws','sequenceExecute','_initCommandInterceptor','hasShape','940794pTzTTl','getSkeleton','_shapes','shapeName','setConfig','getShapeModel','isHorizontal','interceptCommand','drawingType','DRAWING_SHAPE','getShapeTypeById','version','3PkMVeN','adjustValues','forEach','22884460POTzHp','getEndConnectInfo','_sheetInterceptorService','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','defineProperty','Plugin','shapeId','sheet.mutation.update-shape-type','getCellIndexAndOffsetByPosition','INSERT','_initCommands','setShapeType','sheet.command.update-connector-relation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','576042wjZXZB','lineType','left','_sheetSkeletonService','insertShape','9jzRVnz','_serializeShapeForUnit','lineShapeId','InsertShapeCommand','rotateEnabled','getConnectionSiteList','index','sheet.command.update-line-shape-resize','prototype','updateContext','sheet.mutation.insert-shape','angle','cos','redos','UniverSheetsDrawing','getBatchAddOp','decorate','DEFAULT_SHAPE_HEIGHT','ang','createUniqueShapeName','onStarting','getShapeDisplayNames','merge','getAdjustValueByName','sheet.command.insert-shape','_resourcesManagerService','add','1714912oVYnCW','iterator','IUndoRedoService','keys','worldRect','getBasicShapeRotateBound','constructor','7555995lcRuNl','@univerjs-pro/license','MUTATION','set','width','UniverInstanceType','UpdateLineShapeResizeCommand','UpdateSheetsShapeDataMutation','@univerjs-pro/sheets-shape','flipY','COMMAND','object','toPrimitive','DrawingTypeEnum','removeShape','delete','_linesIds','_getConnectPointInfo','Disposable','@univerjs-pro/engine-shape','_drawingManagerService','undos','getDrawingData','getShapeDataById','pushUndoRedo','position','SHEET_SHAPE_PLUGIN','getShapeTextData','result','filter','function','preUndos','_addLineRerouteUpdates','6707172DTDkiL','routeConnectorLineShape','ClearSheetDrawingTransformerOperation','stringify','getId','ensureSkeleton','DEFAULT_SHAPE_WIDTH','transform','getLineShapeRelation','resizeEnabled','CommandType','isConnectorShape','_config','_groupIds','UniverCore','UpdateConnectorRelationCommand','sheet.mutation.update-shape-data','SetDrawingApplyMutation','entries','startY','sheet.mutation.remove-shape','exports','@univerjs/drawing','_configService','get','map','default','from','range','isLineShape','_shapeModelManagerMap','DrawingApplyType','getShapeData','fill','_sheetsShapeService','data','DependentOn','SheetInterceptorService','length','SetSheetsShapeRotateCommand','_addLineFollowShapeUpdates','top','onCommandExecute','rotation','find','toJSON','IDrawingManagerService','SheetsShapeService','UniverProSheetsShape','getStartConnectInfo','ISheetDrawingService','SheetSkeletonService','clear','relation','@univerjs/sheets','UNIVER_SHEET','registerPluginResource','preRedos','fromJSON','sheet.command.set-shape-text-vertical-toggle','InsertSheetDrawingCommand','SetShapeDrawingDataCommand','addShape','dispose','ShapeModel','params','sheet.command.toggle-shape-flip','call'];_0x556d=function(){return _0x1b8aa;};return _0x556d();}(function(_0x15c37f,_0x552dc0){const _0x2dce32=_0x53b2,_0x2edb01=_0x15c37f();while(!![]){try{const _0x279077=-parseInt(_0x2dce32(0xef))/0x1*(parseInt(_0x2dce32(0xe3))/0x2)+-parseInt(_0x2dce32(0xdf))/0x3+-parseInt(_0x2dce32(0x148))/0x4+parseInt(_0x2dce32(0x127))/0x5+-parseInt(_0x2dce32(0x100))/0x6*(-parseInt(_0x2dce32(0xd8))/0x7)+-parseInt(_0x2dce32(0x120))/0x8+parseInt(_0x2dce32(0x105))/0x9*(parseInt(_0x2dce32(0xf2))/0xa);if(_0x279077===_0x552dc0)break;else _0x2edb01['push'](_0x2edb01['shift']());}catch(_0x5bcef4){_0x2edb01['push'](_0x2edb01['shift']());}}}(_0x556d,0xe2cbf),function(_0x73ad9a,_0x32d64e){const _0x4bf868=_0x53b2;typeof exports=='object'&&typeof module<'u'?_0x32d64e(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==_0x4bf868(0x145)&&define['amd']?define([_0x4bf868(0x15d),_0x4bf868(0x13a),_0x4bf868(0xda),_0x4bf868(0x17e),_0x4bf868(0xd0),_0x4bf868(0x128),_0x4bf868(0x15e)],_0x32d64e):(_0x73ad9a=typeof globalThis<'u'?globalThis:_0x73ad9a||self,_0x32d64e(_0x73ad9a[_0x4bf868(0x178)]={},_0x73ad9a['UniverProEngineShape'],_0x73ad9a[_0x4bf868(0x156)],_0x73ad9a[_0x4bf868(0xdc)],_0x73ad9a[_0x4bf868(0x113)],_0x73ad9a['UniverProLicense'],_0x73ad9a['UniverDrawing']));}(this,function(_0x4150a6,_0x4dff1c,_0x2caac2,_0x3fa06b,_0x4b87f8,_0x2c98ae,_0x389f2d){const _0x43d32e=_0x53b2;Object[_0x43d32e(0xf6)](_0x4150a6,Symbol['toStringTag'],{'value':'Module'});function _0x3a46d2(_0x4cef81){'@babel/helpers - typeof';const _0x46defd=_0x43d32e;return _0x3a46d2=typeof Symbol==_0x46defd(0x145)&&typeof Symbol[_0x46defd(0x121)]=='symbol'?function(_0x5efc63){return typeof _0x5efc63;}:function(_0x6e8c0c){const _0x5289fb=_0x46defd;return _0x6e8c0c&&typeof Symbol==_0x5289fb(0x145)&&_0x6e8c0c[_0x5289fb(0x126)]===Symbol&&_0x6e8c0c!==Symbol[_0x5289fb(0x10d)]?_0x5289fb(0xc5):typeof _0x6e8c0c;},_0x3a46d2(_0x4cef81);}function _0x412cee(_0x1e10a0,_0x449dc8){const _0x2dc4d1=_0x43d32e;if(_0x3a46d2(_0x1e10a0)!=_0x2dc4d1(0x132)||!_0x1e10a0)return _0x1e10a0;var _0x1f4a3d=_0x1e10a0[Symbol[_0x2dc4d1(0x133)]];if(_0x1f4a3d!==void 0x0){var _0x324449=_0x1f4a3d[_0x2dc4d1(0xb4)](_0x1e10a0,_0x449dc8||_0x2dc4d1(0x162));if(_0x3a46d2(_0x324449)!='object')return _0x324449;throw TypeError(_0x2dc4d1(0xff));}return(_0x449dc8==='string'?String:Number)(_0x1e10a0);}function _0x4dcad4(_0x5ef7bd){const _0x1ad557=_0x43d32e;var _0x3aef46=_0x412cee(_0x5ef7bd,'string');return _0x3a46d2(_0x3aef46)==_0x1ad557(0xc5)?_0x3aef46:_0x3aef46+'';}function _0x3392e6(_0x3edddf,_0x3fbfa2,_0x369dd7){const _0x52eb41=_0x43d32e;return(_0x3fbfa2=_0x4dcad4(_0x3fbfa2))in _0x3edddf?Object[_0x52eb41(0xf6)](_0x3edddf,_0x3fbfa2,{'value':_0x369dd7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3edddf[_0x3fbfa2]=_0x369dd7,_0x3edddf;}var _0x46a501=class extends _0x2caac2[_0x43d32e(0x139)]{constructor(){const _0x49273d=_0x43d32e;super(),_0x3392e6(this,_0x49273d(0xe5),new Map()),_0x3392e6(this,_0x49273d(0x137),new Set()),_0x3392e6(this,_0x49273d(0x155),new Set());}[_0x43d32e(0x186)](_0x49e3a0,_0x461da1,_0x4a5c48,_0xcdd4ed){const _0x44be9f=_0x43d32e;let _0x45c9a7=new _0x4dff1c[(_0x44be9f(0xb1))](_0x49e3a0,_0x461da1,_0x4a5c48,_0xcdd4ed);return this[_0x44be9f(0xe5)][_0x44be9f(0x12a)](_0x461da1,_0x45c9a7),(0x0,_0x4dff1c[_0x44be9f(0x153)])(_0x49e3a0)&&this[_0x44be9f(0x137)][_0x44be9f(0x11f)](_0x461da1),_0x45c9a7;}['getBasicShapeRelation'](_0x557073){const _0x573910=_0x43d32e;let _0x58850a=[];for(let _0x1997d3 of this['_linesIds']){let _0x7c5f8a=this[_0x573910(0xe5)]['get'](_0x1997d3);if(_0x7c5f8a){let _0x1647c5=_0x7c5f8a[_0x573910(0xd3)]();if(_0x1647c5){var _0x158b24,_0x16b06c;((_0x158b24=_0x1647c5[_0x573910(0x163)])==null?void 0x0:_0x158b24[_0x573910(0xf8)])===_0x557073&&_0x58850a[_0x573910(0xbe)]({..._0x1647c5[_0x573910(0x163)],'lineShapeId':_0x1997d3,'isFrom':!0x0}),((_0x16b06c=_0x1647c5['to'])==null?void 0x0:_0x16b06c[_0x573910(0xf8)])===_0x557073&&_0x58850a['push']({..._0x1647c5['to'],'lineShapeId':_0x1997d3,'isFrom':!0x1});}}}return _0x58850a;}[_0x43d32e(0x150)](_0x56775c){const _0x55187b=_0x43d32e;let _0x60510e=this[_0x55187b(0xe5)][_0x55187b(0x160)](_0x56775c);if(_0x60510e)return _0x60510e[_0x55187b(0xd3)]();}[_0x43d32e(0xca)](_0x1cc2d6){const _0x4bc61e=_0x43d32e;let _0x509f45=this['_shapes'][_0x4bc61e(0x160)](_0x1cc2d6);if(_0x509f45)return _0x509f45[_0x4bc61e(0xca)]();}[_0x43d32e(0xe2)](_0x3af6b1){const _0x986fee=_0x43d32e;return this['_shapes'][_0x986fee(0xb7)](_0x3af6b1);}[_0x43d32e(0x11a)](){const _0x47733d=_0x43d32e;return Array['from'](this[_0x47733d(0xe5)]['values']())[_0x47733d(0x161)](_0x5a1d8c=>_0x5a1d8c['getName']()||_0x5a1d8c[_0x47733d(0x14c)]());}[_0x43d32e(0x135)](_0x5aa894){const _0x6da3bf=_0x43d32e;let _0x1de7b5=this[_0x6da3bf(0xe5)][_0x6da3bf(0x160)](_0x5aa894);_0x1de7b5&&((0x0,_0x4dff1c[_0x6da3bf(0x153)])(_0x1de7b5[_0x6da3bf(0xca)]())&&this[_0x6da3bf(0x137)][_0x6da3bf(0x136)](_0x5aa894),this[_0x6da3bf(0xe5)][_0x6da3bf(0x136)](_0x5aa894));}[_0x43d32e(0x175)](){const _0x3bb7f7=_0x43d32e;let _0x5652dc=[];return this['_shapes'][_0x3bb7f7(0xf1)](_0x3b2d09=>{const _0x238265=_0x3bb7f7;_0x5652dc[_0x238265(0xbe)](_0x3b2d09[_0x238265(0x175)]());}),_0x5652dc;}['fromJSON'](_0x17de4a){const _0x263711=_0x43d32e;for(let _0x48e26b of _0x17de4a){let {id:_0x5e26b4,shapeType:_0xb98a78,name:_0x42f80b}=_0x48e26b,_0xc3253c=this[_0x263711(0x186)](_0xb98a78,_0x5e26b4,_0x48e26b[_0x263711(0xb5)],_0x42f80b);_0xc3253c&&_0xc3253c[_0x263711(0x165)]()&&this[_0x263711(0x137)]['add'](_0x5e26b4);}}[_0x43d32e(0x187)](){const _0x125f42=_0x43d32e;this['_disposed']||(this[_0x125f42(0xe5)][_0x125f42(0xf1)](_0x5c189d=>{const _0xafa7c2=_0x125f42;_0x5c189d[_0xafa7c2(0x187)]();}),this['_shapes'][_0x125f42(0x17c)](),this[_0x125f42(0x137)][_0x125f42(0x17c)](),this[_0x125f42(0x155)][_0x125f42(0x17c)](),super['dispose']());}};function _0x13c296(_0x4f8e46,_0x2f028c){return function(_0x2ffe72,_0x3aa221){_0x2f028c(_0x2ffe72,_0x3aa221,_0x4f8e46);};}function _0x2d9122(_0x22974b,_0x28bd9e,_0x3f96a1,_0xe1ddb8){const _0x439e57=_0x43d32e;var _0x54f952=arguments[_0x439e57(0x16e)],_0x1fa1fc=_0x54f952<0x3?_0x28bd9e:_0xe1ddb8===null?_0xe1ddb8=Object['getOwnPropertyDescriptor'](_0x28bd9e,_0x3f96a1):_0xe1ddb8,_0x379ec3;if(typeof Reflect=='object'&&typeof Reflect[_0x439e57(0x115)]==_0x439e57(0x145))_0x1fa1fc=Reflect['decorate'](_0x22974b,_0x28bd9e,_0x3f96a1,_0xe1ddb8);else{for(var _0x36e180=_0x22974b[_0x439e57(0x16e)]-0x1;_0x36e180>=0x0;_0x36e180--)(_0x379ec3=_0x22974b[_0x36e180])&&(_0x1fa1fc=(_0x54f952<0x3?_0x379ec3(_0x1fa1fc):_0x54f952>0x3?_0x379ec3(_0x28bd9e,_0x3f96a1,_0x1fa1fc):_0x379ec3(_0x28bd9e,_0x3f96a1))||_0x1fa1fc);}return _0x54f952>0x3&&_0x1fa1fc&&Object[_0x439e57(0xf6)](_0x28bd9e,_0x3f96a1,_0x1fa1fc),_0x1fa1fc;}let _0x296bdb=class extends _0x2caac2[_0x43d32e(0x139)]{constructor(_0x5a81b0){const _0x33ff0f=_0x43d32e;super(),this['_resourcesManagerService']=_0x5a81b0,_0x3392e6(this,_0x33ff0f(0x166),new Map()),this['_initSnapshot']();}[_0x43d32e(0xb6)](_0x63ebfc,_0x135e77){const _0x6f3fa3=_0x43d32e;let _0x3c03b4=this[_0x6f3fa3(0x166)][_0x6f3fa3(0x160)](_0x63ebfc);_0x3c03b4||(_0x3c03b4=new Map(),this[_0x6f3fa3(0x166)][_0x6f3fa3(0x12a)](_0x63ebfc,_0x3c03b4));let _0x5e38b5=_0x3c03b4[_0x6f3fa3(0x160)](_0x135e77);return _0x5e38b5||(_0x5e38b5=new _0x46a501(),_0x3c03b4[_0x6f3fa3(0x12a)](_0x135e77,_0x5e38b5)),_0x5e38b5;}[_0x43d32e(0x104)](_0x13bb5f,_0x5ece7c,_0x1e00dd,_0x552d3d,_0x4e0dd4,_0x440516){const _0x4f15cb=_0x43d32e;this[_0x4f15cb(0xb6)](_0x13bb5f,_0x5ece7c)[_0x4f15cb(0x186)](_0x1e00dd,_0x552d3d,_0x4e0dd4,_0x440516);}[_0x43d32e(0x135)](_0x33a246,_0x19c7e6,_0x2f685b){const _0x345f45=_0x43d32e;this[_0x345f45(0xb6)](_0x33a246,_0x19c7e6)[_0x345f45(0x135)](_0x2f685b);}['getBasicShapeType'](_0x2fcc4b,_0x2abc21,_0x112818){const _0x3f7528=_0x43d32e;return this[_0x3f7528(0xb6)](_0x2fcc4b,_0x2abc21)[_0x3f7528(0xca)](_0x112818);}['getShapeType'](_0x11cacc,_0x1e28a1,_0x546dd1){const _0x19851f=_0x43d32e;return this[_0x19851f(0xb6)](_0x11cacc,_0x1e28a1)['getShapeType'](_0x546dd1);}[_0x43d32e(0xe2)](_0x2c3fc7,_0x12471d,_0x1ac293){const _0x11bf42=_0x43d32e;return this[_0x11bf42(0xb6)](_0x2c3fc7,_0x12471d)[_0x11bf42(0xe2)](_0x1ac293);}[_0x43d32e(0xed)](_0x38c962,_0x1055c1,_0x3e3c4b){return this['_ensureShapeModelManager'](_0x38c962,_0x1055c1)['getShapeType'](_0x3e3c4b);}[_0x43d32e(0x13e)](_0x817c30,_0x18842c,_0x49bbcc){const _0x8dbaa0=_0x43d32e;let _0x300040=this[_0x8dbaa0(0xb6)](_0x817c30,_0x18842c);if(!_0x300040[_0x8dbaa0(0xca)](_0x49bbcc))return;let _0x4552bd=_0x300040[_0x8dbaa0(0xe5)][_0x8dbaa0(0x160)](_0x49bbcc);if(_0x4552bd)return _0x4552bd[_0x8dbaa0(0x168)]();}[_0x43d32e(0x11a)](_0x41359d,_0x208fc4){const _0x39b9f8=_0x43d32e;return this['_ensureShapeModelManager'](_0x41359d,_0x208fc4)[_0x39b9f8(0x11a)]();}[_0x43d32e(0xe8)](_0x2679e6,_0x11fb97,_0x138bfa){const _0xb9872c=_0x43d32e;return this[_0xb9872c(0xb6)](_0x2679e6,_0x11fb97)[_0xb9872c(0xe5)][_0xb9872c(0x160)](_0x138bfa);}[_0x43d32e(0xd6)](_0x16280a,_0x2db134,_0x5ec33c){const _0xc7d659=_0x43d32e;return this[_0xc7d659(0xb6)](_0x16280a,_0x2db134)[_0xc7d659(0xd6)](_0x5ec33c);}[_0x43d32e(0x150)](_0x21fbb6,_0x39d4e7,_0x32164a){const _0x3fb90a=_0x43d32e;let _0x4f8f75=this[_0x3fb90a(0xb6)](_0x21fbb6,_0x39d4e7)['_shapes'][_0x3fb90a(0x160)](_0x32164a);if(_0x4f8f75)return _0x4f8f75[_0x3fb90a(0xd3)]();}[_0x43d32e(0xfd)](){}[_0x43d32e(0x106)](_0x58510f){const _0x39cd58=_0x43d32e;let _0x412a35={},_0x1265ca=this[_0x39cd58(0x166)][_0x39cd58(0x160)](_0x58510f);return _0x1265ca&&_0x1265ca[_0x39cd58(0xf1)]((_0x1047ca,_0x30547c)=>{const _0x4119bf=_0x39cd58;let _0x465f37=_0x1047ca[_0x4119bf(0x175)]();_0x465f37[_0x4119bf(0x16e)]>0x0&&(_0x412a35[_0x30547c]=_0x465f37);}),JSON[_0x39cd58(0x14b)](_0x412a35);}[_0x43d32e(0xcc)](_0x3a3c28,_0x56151d){const _0x636817=_0x43d32e;Object[_0x636817(0x123)](_0x56151d)[_0x636817(0xf1)](_0x56a05a=>{const _0x1526f5=_0x636817;this['_ensureShapeModelManager'](_0x3a3c28,_0x56a05a)[_0x1526f5(0x182)](_0x56151d[_0x56a05a]);});}['toJSON'](){const _0x238f26=_0x43d32e;let _0x3c3947={};return this['_shapeModelManagerMap'][_0x238f26(0xf1)]((_0x58228e,_0x54d702)=>{_0x3c3947[_0x54d702]={},_0x58228e['forEach']((_0x1338d6,_0x19bc11)=>{_0x3c3947[_0x54d702][_0x19bc11]=_0x1338d6['toJSON']();});}),_0x3c3947;}[_0x43d32e(0x182)](_0x18c26a){const _0x413989=_0x43d32e;Object['keys'](_0x18c26a)[_0x413989(0xf1)](_0x53753b=>{const _0x43eae6=_0x413989;let _0x5cafe6=_0x18c26a[_0x53753b];Object[_0x43eae6(0x123)](_0x5cafe6)[_0x43eae6(0xf1)](_0x2dffc4=>{const _0x39a63c=_0x43eae6;this[_0x39a63c(0xb6)](_0x53753b,_0x2dffc4)[_0x39a63c(0x182)](_0x5cafe6[_0x2dffc4]);});});}['_initSnapshot'](){const _0x5a1bdc=_0x43d32e;this[_0x5a1bdc(0x11e)][_0x5a1bdc(0x180)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x2caac2[_0x5a1bdc(0x12c)][_0x5a1bdc(0x17f)]],'toJson':_0x96364f=>this[_0x5a1bdc(0x106)](_0x96364f),'parseJson':_0xdfad8c=>JSON[_0x5a1bdc(0xc8)](_0xdfad8c),'onLoad':(_0x1fa7c5,_0x2b190b)=>{const _0x1990aa=_0x5a1bdc;this[_0x1990aa(0xcc)](_0x1fa7c5,_0x2b190b);},'onUnLoad':_0x3c07a7=>{const _0x1e45f8=_0x5a1bdc;let _0x58a93e=this['_shapeModelManagerMap'][_0x1e45f8(0x160)](_0x3c07a7);_0x58a93e&&(_0x58a93e[_0x1e45f8(0xf1)](_0x21f65a=>{const _0xba95c8=_0x1e45f8;_0x21f65a[_0xba95c8(0x187)]();}),this[_0x1e45f8(0x166)][_0x1e45f8(0x136)](_0x3c07a7));}});}[_0x43d32e(0x187)](){this['_shapeModelManagerMap']['forEach'](_0x3b30c2=>{const _0x4e7785=_0x53b2;_0x3b30c2[_0x4e7785(0xf1)](_0x3ffb6b=>{const _0x58d27e=_0x4e7785;_0x3ffb6b[_0x58d27e(0x187)]();});});}};_0x296bdb=_0x2d9122([_0x13c296(0x0,_0x2caac2[_0x43d32e(0xc3)])],_0x296bdb);let _0x5d1e10={'id':_0x43d32e(0x10f),'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x129)],'handler':(_0x2fb73c,_0x347ce9)=>{const _0x256479=_0x43d32e;let {unitId:_0x417580,subUnitId:_0x41a716,shapeType:_0x1c54ea,shapeId:_0x292e9c,shapeName:_0x11487a,shapeData:_0x812b1b}=_0x347ce9;return _0x2fb73c['get'](_0x296bdb)[_0x256479(0x104)](_0x417580,_0x41a716,_0x1c54ea,_0x292e9c,_0x812b1b,_0x11487a),!0x0;}},_0x3bb77b={'id':_0x43d32e(0x15c),'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x129)],'handler':(_0x232043,_0x242f96)=>{const _0x4f7c14=_0x43d32e;let {unitId:_0x502dcc,subUnitId:_0x3a9416,shapeId:_0x520c15}=_0x242f96;return _0x232043[_0x4f7c14(0x160)](_0x296bdb)[_0x4f7c14(0x135)](_0x502dcc,_0x3a9416,_0x520c15),!0x0;}},_0x315436={'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x131)],'id':_0x43d32e(0x11d),'handler':(_0x410644,_0x871d67)=>{const _0x939c16=_0x43d32e;var _0xf43670,_0x29d167,_0x6bec23;let _0xf9d01c=(0x0,_0x3fa06b[_0x939c16(0xbc)])(_0x410644['get'](_0x2caac2[_0x939c16(0xd2)]),_0x871d67);if(!_0xf9d01c)return!0x1;let _0x490943=_0x410644[_0x939c16(0x160)](_0x3fa06b[_0x939c16(0x17b)]),{unitId:_0x560401,subUnitId:_0x5babfb}=_0xf9d01c,_0x27e6ff=_0x490943[_0x939c16(0x14d)](_0x560401,_0x5babfb);if(!_0x27e6ff)return!0x1;let _0x4cab8c=_0x410644[_0x939c16(0x160)](_0x2caac2[_0x939c16(0xc9)]),_0x4da959=_0x410644[_0x939c16(0x160)](_0x2caac2[_0x939c16(0x122)]),_0x5303dd=_0x410644['get'](_0x3fa06b['SheetInterceptorService']),_0x234909=_0x410644[_0x939c16(0x160)](_0x4b87f8[_0x939c16(0x17a)]),_0x2b00f9=_0x410644[_0x939c16(0x160)](_0x296bdb),{shapeType:_0x40da1c,shapeData:_0x53d50a}=_0x871d67,_0x3bea9d=_0x871d67[_0x939c16(0xf8)]||(0x0,_0x2caac2[_0x939c16(0xc4)])(),_0x581edc={'unitId':_0x560401,'subUnitId':_0x5babfb,'shapeId':_0x3bea9d,'shapeName':(_0xf43670=_0x871d67[_0x939c16(0xe6)])==null?(0x0,_0x4dff1c[_0x939c16(0x118)])(_0x40da1c,_0x2b00f9[_0x939c16(0x11a)](_0x560401,_0x5babfb)):_0xf43670,'shapeType':_0x40da1c,'shapeData':_0x53d50a},_0x1fee8b=_0x871d67[_0x939c16(0x12b)]||0xc8,_0x173456=_0x871d67['height']||0xc8,_0x9ed1a3=0x0,_0x5ee9f2=0x0,_0x19ad49={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x3f5749={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x871d67[_0x939c16(0x140)]){let {x:_0x482365,y:_0x5619b4}=_0x871d67[_0x939c16(0x140)];_0x9ed1a3=_0x482365,_0x5ee9f2=_0x5619b4,_0x19ad49=_0x27e6ff[_0x939c16(0xfa)](_0x482365,_0x5619b4),_0x3f5749=_0x27e6ff[_0x939c16(0xfa)](_0x482365+_0x1fee8b,_0x5619b4+_0x173456);}else{if(_0x871d67[_0x939c16(0x164)]){let {startRow:_0x45cbde,startColumn:_0x468b9e}=_0x871d67['range'];_0x19ad49={'row':_0x45cbde,'rowOffset':0xa,'column':_0x468b9e,'columnOffset':0xa};let _0x14dc15=_0x27e6ff[_0x939c16(0xc6)](_0x45cbde,_0x468b9e);_0x9ed1a3=_0x14dc15['startX']+0xa,_0x5ee9f2=_0x14dc15[_0x939c16(0x15b)]+0xa,_0x3f5749=_0x27e6ff[_0x939c16(0xfa)](_0x9ed1a3+_0x1fee8b,_0x5ee9f2+_0x173456);}}let _0x4b3887={'from':_0x19ad49,'to':_0x3f5749},_0x46ecf6={'unitId':_0x560401,'subUnitId':_0x5babfb,'drawingId':_0x3bea9d,'drawingType':_0x2caac2[_0x939c16(0x134)][_0x939c16(0xec)],'sheetTransform':_0x4b3887,'transform':{'left':_0x9ed1a3,'top':_0x5ee9f2,'width':_0x1fee8b,'height':_0x173456},'data':{'shapeType':_0x40da1c,'shapeData':_0x53d50a},'axisAlignSheetTransform':_0x4b3887,'allowTransform':!0x0};(0x0,_0x4dff1c[_0x939c16(0x153)])(_0x40da1c)&&(_0x46ecf6['data'][_0x939c16(0x169)]=!0x1,_0x46ecf6[_0x939c16(0x16b)][_0x939c16(0x109)]=!0x1,_0x46ecf6[_0x939c16(0x16b)][_0x939c16(0x151)]=!0x1,_0x46ecf6[_0x939c16(0x16b)][_0x939c16(0xbd)]=!0x1,_0x46ecf6['transform'][_0x939c16(0x109)]=!0x1,_0x46ecf6[_0x939c16(0x14f)]['resizeEnabled']=!0x1,_0x46ecf6[_0x939c16(0x14f)][_0x939c16(0xbd)]=!0x1);let {undo:_0x5a2719,redo:_0x4bae4a,objects:_0x533538}=_0x234909[_0x939c16(0x114)]([_0x46ecf6]),_0x4d702f=_0x5303dd['onCommandExecute']({'id':_0x4b87f8[_0x939c16(0x184)]['id'],'params':{'unitId':_0x560401,'drawings':[_0x46ecf6]}}),_0x383b3c=[...(_0x29d167=_0x4d702f[_0x939c16(0x181)])==null?[]:_0x29d167,{'id':_0x4b87f8[_0x939c16(0x159)]['id'],'params':{'unitId':_0x560401,'subUnitId':_0x5babfb,'op':_0x4bae4a,'objects':_0x533538,'type':_0x4b87f8[_0x939c16(0x167)][_0x939c16(0xfb)]}},{'id':_0x4b87f8[_0x939c16(0x14a)]['id'],'params':[_0x560401]},..._0x4d702f[_0x939c16(0x112)],{'id':_0x5d1e10['id'],'params':_0x581edc}],_0x2e8622=[{'id':_0x3bb77b['id'],'params':{'unitId':_0x560401,'subUnitId':_0x5babfb,'shapeId':_0x3bea9d}},...(_0x6bec23=_0x4d702f[_0x939c16(0x146)])==null?[]:_0x6bec23,{'id':_0x4b87f8['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x560401,'subUnitId':_0x5babfb,'op':_0x5a2719,'objects':_0x533538,'type':_0x4b87f8[_0x939c16(0x167)]['REMOVE']}},{'id':_0x4b87f8[_0x939c16(0x14a)]['id'],'params':[_0x560401]},..._0x4d702f[_0x939c16(0x13c)]];return(0x0,_0x2caac2['sequenceExecute'])(_0x383b3c,_0x4cab8c)[_0x939c16(0x143)]?(_0x4da959['pushUndoRedo']({'unitID':_0x560401,'undoMutations':_0x2e8622,'redoMutations':_0x383b3c}),!0x0):!0x1;}},_0x4e0b3c={'id':_0x43d32e(0x158),'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x129)],'handler':(_0x37a9b4,_0x4732ba)=>{const _0x37a8da=_0x43d32e;let {unitId:_0x27098b,subUnitId:_0x49b520,shapeType:_0x3f1cf3,shapeId:_0x39b864,shapeData:_0x433aae}=_0x4732ba,_0xc8f204=_0x37a9b4[_0x37a8da(0x160)](_0x296bdb)[_0x37a8da(0xe8)](_0x27098b,_0x49b520,_0x39b864);return _0xc8f204&&(_0x3f1cf3!==void 0x0&&_0xc8f204[_0x37a8da(0xfd)](_0x3f1cf3),_0x433aae&&(_0xc8f204==null||_0xc8f204['setShapeData'](_0x433aae,!0x0))),!0x0;}},_0x396023={'type':_0x2caac2[_0x43d32e(0x152)]['COMMAND'],'id':'sheet.command.set-shape-drawing-data','handler':(_0x1af84e,_0x20396c)=>{const _0x44bce8=_0x43d32e;var _0x3bf396,_0x150c2e;let _0x236c2c=(0x0,_0x3fa06b[_0x44bce8(0xbc)])(_0x1af84e['get'](_0x2caac2[_0x44bce8(0xd2)]),_0x20396c);if(!_0x236c2c)return!0x1;let _0x13b97a=_0x1af84e[_0x44bce8(0x160)](_0x3fa06b['SheetSkeletonService']),{unitId:_0x1d195f,subUnitId:_0x384e87}=_0x236c2c,_0x5cf3cc=_0x13b97a[_0x44bce8(0x14d)](_0x1d195f,_0x384e87);if(!_0x5cf3cc)return!0x1;let _0x435b80=_0x1af84e[_0x44bce8(0x160)](_0x296bdb),{shapeId:_0x30ba2b,shapeType:_0x2b7e17,shapeData:_0x4195be,position:_0x2289fe,width:_0x1feb45,height:_0x4819c8}=_0x20396c,_0x1df446=_0x435b80[_0x44bce8(0xe8)](_0x1d195f,_0x384e87,_0x30ba2b);if(!_0x1df446)return!0x1;let _0x1b8369=_0x1af84e['get'](_0x2caac2[_0x44bce8(0xc9)]),_0x34d49a=_0x1af84e[_0x44bce8(0x160)](_0x2caac2[_0x44bce8(0x122)]),_0x382170=_0x1af84e[_0x44bce8(0x160)](_0x3fa06b[_0x44bce8(0x16d)]),_0xea0de4=_0x1af84e['get'](_0x4b87f8['ISheetDrawingService']),_0x329937={'unitId':_0x1d195f,'subUnitId':_0x384e87,'shapeId':_0x30ba2b,'shapeType':_0x2b7e17,'shapeData':_0x4195be},_0x4ee8f4=_0x1df446['getShapeType'](),_0x40ae14=_0x1df446[_0x44bce8(0x168)](),{x:_0x2cee9f,y:_0x576193}=_0x2289fe,_0x2b75d1={'from':_0x5cf3cc[_0x44bce8(0xfa)](_0x2cee9f,_0x576193),'to':_0x5cf3cc[_0x44bce8(0xfa)](_0x2cee9f+_0x1feb45,_0x576193+_0x4819c8)},_0x489281={'unitId':_0x1d195f,'subUnitId':_0x384e87,'drawingId':_0x30ba2b,'drawingType':_0x2caac2['DrawingTypeEnum'][_0x44bce8(0xec)],'sheetTransform':_0x2b75d1,'transform':{'left':_0x2cee9f,'top':_0x576193,'width':_0x1feb45,'height':_0x4819c8},'data':{'shapeType':_0x2b7e17,'shapeData':_0x4195be},'axisAlignSheetTransform':_0x2b75d1,'allowTransform':!0x0};(0x0,_0x4dff1c[_0x44bce8(0x153)])(_0x2b7e17)&&(_0x489281['data'][_0x44bce8(0x169)]=!0x1,_0x489281[_0x44bce8(0x16b)]['rotateEnabled']=!0x1,_0x489281[_0x44bce8(0x16b)]['resizeEnabled']=!0x1,_0x489281[_0x44bce8(0x16b)][_0x44bce8(0xbd)]=!0x1,_0x489281['transform']['rotateEnabled']=!0x1,_0x489281[_0x44bce8(0x14f)][_0x44bce8(0x151)]=!0x1,_0x489281[_0x44bce8(0x14f)][_0x44bce8(0xbd)]=!0x1);let {undo:_0x3145b7,redo:_0x280f30,objects:_0x1ad915}=_0xea0de4['getBatchUpdateOp']([_0x489281]),_0x49828a=_0x382170[_0x44bce8(0x172)]({'id':_0x4b87f8[_0x44bce8(0xd4)]['id'],'params':{'unitId':_0x1d195f,'drawings':[_0x489281]}}),_0x3a90c4=[...(_0x3bf396=_0x49828a[_0x44bce8(0x181)])==null?[]:_0x3bf396,{'id':_0x4b87f8[_0x44bce8(0x159)]['id'],'params':{'unitId':_0x1d195f,'subUnitId':_0x384e87,'op':_0x280f30,'objects':_0x1ad915,'type':_0x4b87f8[_0x44bce8(0x167)]['UPDATE']}},{'id':_0x4b87f8[_0x44bce8(0x14a)]['id'],'params':[_0x1d195f]},..._0x49828a[_0x44bce8(0x112)],{'id':_0x4e0b3c['id'],'params':_0x329937}],_0x1f5d23=[...(_0x150c2e=_0x49828a[_0x44bce8(0x146)])==null?[]:_0x150c2e,{'id':_0x4b87f8[_0x44bce8(0x159)]['id'],'params':{'unitId':_0x1d195f,'subUnitId':_0x384e87,'op':_0x3145b7,'objects':_0x1ad915,'type':_0x4b87f8[_0x44bce8(0x167)][_0x44bce8(0xbb)]}},{'id':_0x4b87f8['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x1d195f]},..._0x49828a[_0x44bce8(0x13c)],{'id':_0x4e0b3c['id'],'params':{'unitId':_0x1d195f,'subUnitId':_0x384e87,'shapeType':_0x4ee8f4,'shapeId':_0x30ba2b,'shapeData':_0x40ae14}}];return(0x0,_0x2caac2[_0x44bce8(0xe0)])(_0x3a90c4,_0x1b8369)['result']?(_0x34d49a[_0x44bce8(0x13f)]({'unitID':_0x1d195f,'undoMutations':_0x1f5d23,'redoMutations':_0x3a90c4}),!0x0):!0x1;}},_0x5a3889={'type':_0x2caac2['CommandType'][_0x43d32e(0x131)],'id':_0x43d32e(0xb3),'handler':(_0x58fa97,_0x9dd952)=>{const _0x6afcda=_0x43d32e;var _0x599122,_0x3f1463;let _0x5bccd3=(0x0,_0x3fa06b[_0x6afcda(0xbc)])(_0x58fa97['get'](_0x2caac2['IUniverInstanceService']),_0x9dd952);if(!_0x5bccd3)return!0x1;let _0x565607=_0x58fa97['get'](_0x3fa06b[_0x6afcda(0x17b)]),{unitId:_0x4f02e5,subUnitId:_0x501f15}=_0x5bccd3,_0x8dcb40=_0x565607[_0x6afcda(0xe4)](_0x4f02e5,_0x501f15);if(!_0x8dcb40)return!0x1;let _0x4d156e=_0x58fa97[_0x6afcda(0x160)](_0x4b87f8['ISheetDrawingService']),{shapeId:_0x4748f1,flipH:_0x392e0d,flipV:_0x4e059f}=_0x9dd952,_0x55cd43=_0x4d156e[_0x6afcda(0xd9)]({'unitId':_0x4f02e5,'subUnitId':_0x501f15,'drawingId':_0x4748f1});if(!_0x55cd43)return!0x1;let _0x1611d6=_0x58fa97['get'](_0x296bdb)[_0x6afcda(0xe8)](_0x4f02e5,_0x501f15,_0x4748f1);if(!_0x1611d6)return!0x1;let _0x358687=_0x58fa97['get'](_0x2caac2[_0x6afcda(0xc9)]),_0x449299=_0x58fa97[_0x6afcda(0x160)](_0x2caac2['IUndoRedoService']),_0x5f49f4=_0x58fa97[_0x6afcda(0x160)](_0x3fa06b[_0x6afcda(0x16d)]),_0x5cad9f={..._0x55cd43[_0x6afcda(0x14f)]};_0x392e0d!==void 0x0&&(_0x5cad9f['flipX']=!_0x5cad9f[_0x6afcda(0xcf)]),_0x4e059f!==void 0x0&&(_0x5cad9f[_0x6afcda(0x130)]=!_0x5cad9f[_0x6afcda(0x130)]);let _0x954ab4=(0x0,_0x4b87f8[_0x6afcda(0xd1)])(_0x5cad9f,_0x8dcb40),_0x33fbb8=(0x0,_0x4b87f8[_0x6afcda(0xd7)])(_0x5cad9f,_0x8dcb40),_0x19a4f6=_0x1611d6[_0x6afcda(0xca)](),_0x3b78a5=_0x1611d6[_0x6afcda(0x168)](),_0x4ef99f={'unitId':_0x4f02e5,'subUnitId':_0x501f15,'drawingId':_0x4748f1,'drawingType':_0x2caac2['DrawingTypeEnum'][_0x6afcda(0xec)],'sheetTransform':_0x954ab4,'transform':_0x5cad9f,'data':{'shapeType':_0x19a4f6,'shapeData':_0x3b78a5},'axisAlignSheetTransform':_0x33fbb8,'allowTransform':!0x0},{undo:_0x13b0f7,redo:_0x1298dc,objects:_0x542590}=_0x4d156e[_0x6afcda(0xcd)]([_0x4ef99f]),_0x22c1f3=_0x5f49f4['onCommandExecute']({'id':_0x4b87f8[_0x6afcda(0xd4)]['id'],'params':{'unitId':_0x4f02e5,'drawings':[_0x4ef99f]}}),_0x2efc79=[...(_0x599122=_0x22c1f3[_0x6afcda(0x181)])==null?[]:_0x599122,{'id':_0x4b87f8['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4f02e5,'subUnitId':_0x501f15,'op':_0x1298dc,'objects':_0x542590,'type':_0x4b87f8['DrawingApplyType'][_0x6afcda(0xbb)]}},{'id':_0x4b87f8[_0x6afcda(0x14a)]['id'],'params':[_0x4f02e5]},..._0x22c1f3['redos']],_0x160277=[...(_0x3f1463=_0x22c1f3[_0x6afcda(0x146)])==null?[]:_0x3f1463,{'id':_0x4b87f8['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4f02e5,'subUnitId':_0x501f15,'op':_0x13b0f7,'objects':_0x542590,'type':_0x4b87f8[_0x6afcda(0x167)][_0x6afcda(0xbb)]}},{'id':_0x4b87f8[_0x6afcda(0x14a)]['id'],'params':[_0x4f02e5]},..._0x22c1f3[_0x6afcda(0x13c)]];if((0x0,_0x4dff1c['isConnectorShape'])(_0x19a4f6)){let _0x476ff0=_0x1611d6[_0x6afcda(0xd3)]();if(_0x476ff0){let _0x46f2b3={..._0x476ff0};_0x46f2b3[_0x6afcda(0x163)]=void 0x0,_0x46f2b3['to']=void 0x0,_0x2efc79[_0x6afcda(0xbe)]({'id':_0x4e0b3c['id'],'params':{'unitId':_0x4f02e5,'subUnitId':_0x501f15,'shapeId':_0x4748f1,'shapeType':_0x19a4f6,'shapeData':{'relation':_0x46f2b3}}}),_0x160277[_0x6afcda(0xbe)]({'id':_0x4e0b3c['id'],'params':{'unitId':_0x4f02e5,'subUnitId':_0x501f15,'shapeId':_0x4748f1,'shapeType':_0x19a4f6,'shapeData':{'relation':_0x476ff0}}});}}return(0x0,_0x2caac2[_0x6afcda(0xe0)])(_0x2efc79,_0x358687)[_0x6afcda(0x143)]?(_0x449299['pushUndoRedo']({'unitID':_0x4f02e5,'undoMutations':_0x160277,'redoMutations':_0x2efc79}),!0x0):!0x1;}},_0x1cd7c7={'type':_0x2caac2['CommandType'][_0x43d32e(0x131)],'id':_0x43d32e(0xba),'handler':(_0x319038,_0x5daf54)=>{const _0x310db3=_0x43d32e;var _0x1e99ec,_0x30b531;let _0x46cb3a=(0x0,_0x3fa06b[_0x310db3(0xbc)])(_0x319038[_0x310db3(0x160)](_0x2caac2[_0x310db3(0xd2)]),_0x5daf54);if(!_0x46cb3a)return!0x1;let _0x5278ae=_0x319038['get'](_0x3fa06b[_0x310db3(0x17b)]),{unitId:_0x5e0196,subUnitId:_0x46a903}=_0x46cb3a,_0x4898a1=_0x5278ae['getSkeleton'](_0x5e0196,_0x46a903);if(!_0x4898a1)return!0x1;let _0x4ef71e=_0x319038[_0x310db3(0x160)](_0x4b87f8['ISheetDrawingService']),{shapeId:_0x3f12a8,rotate:_0x3c574c}=_0x5daf54,_0x3bee6d=_0x4ef71e[_0x310db3(0xd9)]({'unitId':_0x5e0196,'subUnitId':_0x46a903,'drawingId':_0x3f12a8});if(!_0x3bee6d)return!0x1;let _0x25191a=_0x319038['get'](_0x296bdb)[_0x310db3(0xe8)](_0x5e0196,_0x46a903,_0x3f12a8);if(!_0x25191a)return!0x1;let _0x2efc8f=_0x319038[_0x310db3(0x160)](_0x2caac2['ICommandService']),_0x2659b1=_0x319038[_0x310db3(0x160)](_0x2caac2['IUndoRedoService']),_0x1bc587=_0x319038[_0x310db3(0x160)](_0x3fa06b[_0x310db3(0x16d)]),_0x1939dc={..._0x3bee6d[_0x310db3(0x14f)]};_0x3c574c!==void 0x0&&(_0x1939dc[_0x310db3(0x110)]=(_0x1939dc[_0x310db3(0x110)]||0x0)+_0x3c574c);let _0x399db1=(0x0,_0x4b87f8['transformToDrawingPosition'])(_0x1939dc,_0x4898a1),_0x8cccc9=(0x0,_0x4b87f8[_0x310db3(0xd7)])(_0x1939dc,_0x4898a1),_0x32bdd7=_0x25191a[_0x310db3(0xca)](),_0xf66cb3=_0x25191a[_0x310db3(0x168)](),_0x3acc70={'unitId':_0x5e0196,'subUnitId':_0x46a903,'drawingId':_0x3f12a8,'drawingType':_0x2caac2[_0x310db3(0x134)][_0x310db3(0xec)],'sheetTransform':_0x399db1,'transform':_0x1939dc,'data':{'shapeType':_0x32bdd7,'shapeData':_0xf66cb3},'axisAlignSheetTransform':_0x8cccc9,'allowTransform':!0x0},{undo:_0x1f061a,redo:_0x1c077e,objects:_0x46e5b9}=_0x4ef71e['getBatchUpdateOp']([_0x3acc70]),_0x357f57=_0x1bc587[_0x310db3(0x172)]({'id':_0x4b87f8[_0x310db3(0xd4)]['id'],'params':{'unitId':_0x5e0196,'drawings':[_0x3acc70]}}),_0x1335ba=[...(_0x1e99ec=_0x357f57[_0x310db3(0x181)])==null?[]:_0x1e99ec,{'id':_0x4b87f8[_0x310db3(0x159)]['id'],'params':{'unitId':_0x5e0196,'subUnitId':_0x46a903,'op':_0x1c077e,'objects':_0x46e5b9,'type':_0x4b87f8[_0x310db3(0x167)]['UPDATE']}},{'id':_0x4b87f8['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5e0196]},..._0x357f57['redos']],_0x4eccdf=[...(_0x30b531=_0x357f57['preUndos'])==null?[]:_0x30b531,{'id':_0x4b87f8[_0x310db3(0x159)]['id'],'params':{'unitId':_0x5e0196,'subUnitId':_0x46a903,'op':_0x1f061a,'objects':_0x46e5b9,'type':_0x4b87f8[_0x310db3(0x167)][_0x310db3(0xbb)]}},{'id':_0x4b87f8[_0x310db3(0x14a)]['id'],'params':[_0x5e0196]},..._0x357f57[_0x310db3(0x13c)]];return(0x0,_0x2caac2['sequenceExecute'])(_0x1335ba,_0x2efc8f)[_0x310db3(0x143)]?(_0x2659b1[_0x310db3(0x13f)]({'unitID':_0x5e0196,'undoMutations':_0x4eccdf,'redoMutations':_0x1335ba}),!0x0):!0x1;}},_0x27b1b6={'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x131)],'id':_0x43d32e(0x183),'handler':(_0x2ba117,_0x241b42)=>{const _0x307cf0=_0x43d32e;var _0x1876da;let _0x307e8f=(0x0,_0x3fa06b['getSheetCommandTarget'])(_0x2ba117[_0x307cf0(0x160)](_0x2caac2[_0x307cf0(0xd2)]),_0x241b42);if(!_0x307e8f)return!0x1;let {unitId:_0x3f9f64,subUnitId:_0x282036}=_0x307e8f,{shapeId:_0x39dc0f}=_0x241b42,_0x1246de=_0x2ba117[_0x307cf0(0x160)](_0x296bdb)[_0x307cf0(0xe8)](_0x3f9f64,_0x282036,_0x39dc0f);if(!_0x1246de)return!0x1;let _0x2c9ce8=_0x1246de[_0x307cf0(0x142)](),_0x189da7=(_0x1876da=_0x2c9ce8==null?void 0x0:_0x2c9ce8[_0x307cf0(0xe9)])==null?!0x0:_0x1876da,_0x2e6e08=!_0x189da7,_0x165e3c=_0x2ba117[_0x307cf0(0x160)](_0x2caac2['ICommandService']),_0x401331=_0x2ba117['get'](_0x2caac2['IUndoRedoService']),_0x57b05e={'unitId':_0x3f9f64,'subUnitId':_0x282036,'shapeId':_0x39dc0f,'shapeData':{'shapeText':{'isHorizontal':_0x2e6e08}}},_0x49d063={'unitId':_0x3f9f64,'subUnitId':_0x282036,'shapeId':_0x39dc0f,'shapeData':{'shapeText':{'isHorizontal':_0x189da7}}},_0x4828a5=[{'id':_0x4e0b3c['id'],'params':_0x57b05e}],_0x4d8b54=[{'id':_0x4e0b3c['id'],'params':_0x49d063}];return(0x0,_0x2caac2[_0x307cf0(0xe0)])(_0x4828a5,_0x165e3c)[_0x307cf0(0x143)]?(_0x401331[_0x307cf0(0x13f)]({'unitID':_0x3f9f64,'undoMutations':_0x4d8b54,'redoMutations':_0x4828a5}),!0x0):!0x1;}},_0x492f51={'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x131)],'id':_0x43d32e(0xfe),'handler':(_0x859d55,_0x3d30db)=>{const _0x4a932a=_0x43d32e;var _0x4c81a4,_0xac4b85,_0x17e7bd,_0xac2825;let _0x2535e6=(0x0,_0x3fa06b[_0x4a932a(0xbc)])(_0x859d55[_0x4a932a(0x160)](_0x2caac2[_0x4a932a(0xd2)]),_0x3d30db);if(!_0x2535e6)return!0x1;let _0x128b5c=_0x859d55['get'](_0x3fa06b[_0x4a932a(0x17b)]),{unitId:_0x52b959,subUnitId:_0x311341}=_0x2535e6,_0x4397ca=_0x128b5c[_0x4a932a(0xe4)](_0x52b959,_0x311341);if(!_0x4397ca)return!0x1;let _0x2ed403=_0x859d55[_0x4a932a(0x160)](_0x4b87f8[_0x4a932a(0x17a)]),{connectorShapeId:_0x52d756,width:_0x5b7b0c,height:_0x35ae58,left:_0x22e673,top:_0x4c45dc,flipX:_0x10ee40,flipY:_0x57cdad,rotation:_0x234e65,oldAdjustValues:_0x37450f,newAdjustValues:_0x39c8e2,oldLineType:_0x9e2a25,newLineType:_0xca8104,oldRelation:_0x555bb0,newRelation:_0x11a821}=_0x3d30db,_0x3105ed=_0x2ed403['getDrawingByParam']({'unitId':_0x52b959,'subUnitId':_0x311341,'drawingId':_0x52d756});if(!_0x3105ed)return!0x1;let _0x243230=_0x859d55[_0x4a932a(0x160)](_0x296bdb)[_0x4a932a(0xe8)](_0x52b959,_0x311341,_0x52d756);if(!_0x243230)return!0x1;let _0x27e297=_0x859d55[_0x4a932a(0x160)](_0x2caac2[_0x4a932a(0xc9)]),_0x3cd520=_0x859d55[_0x4a932a(0x160)](_0x2caac2['IUndoRedoService']),_0x36286e=_0x859d55['get'](_0x3fa06b['SheetInterceptorService']),_0x2f5fda={..._0x3105ed[_0x4a932a(0x14f)],'width':_0x5b7b0c,'height':_0x35ae58,'left':_0x22e673,'top':_0x4c45dc,'flipX':_0x10ee40,'flipY':_0x57cdad,'angle':(_0x4c81a4=_0x234e65==null?(_0xac4b85=_0x3105ed[_0x4a932a(0x14f)])==null?void 0x0:_0xac4b85[_0x4a932a(0x110)]:_0x234e65)==null?0x0:_0x4c81a4},_0x383467=(0x0,_0x4b87f8[_0x4a932a(0xd1)])(_0x2f5fda,_0x4397ca),_0x3fca36=(0x0,_0x4b87f8['transformToAxisAlignPosition'])(_0x2f5fda,_0x4397ca),_0x1130c5=_0x243230['getShapeType'](),_0x4d46c6=_0x243230[_0x4a932a(0x168)](),_0x31770f={'unitId':_0x52b959,'subUnitId':_0x311341,'drawingId':_0x52d756,'drawingType':_0x2caac2[_0x4a932a(0x134)][_0x4a932a(0xec)],'sheetTransform':_0x383467,'transform':_0x2f5fda,'data':{'shapeType':_0xca8104||_0x9e2a25||_0x1130c5,'shapeData':{..._0x4d46c6,'adjustValues':_0x39c8e2||_0x37450f||(_0x4d46c6==null?void 0x0:_0x4d46c6['adjustValues']),'relation':_0x11a821||_0x555bb0||(_0x4d46c6==null?void 0x0:_0x4d46c6[_0x4a932a(0x17d)])}},'axisAlignSheetTransform':_0x3fca36,'allowTransform':!0x0},{undo:_0x4cde3c,redo:_0x44a98e,objects:_0x3c46fb}=_0x2ed403[_0x4a932a(0xcd)]([_0x31770f]),_0x4ca421=_0x36286e[_0x4a932a(0x172)]({'id':_0x4b87f8[_0x4a932a(0xd4)]['id'],'params':{'unitId':_0x52b959,'drawings':[_0x31770f]}}),_0x41378d=[...(_0x17e7bd=_0x4ca421[_0x4a932a(0x181)])==null?[]:_0x17e7bd,{'id':_0x4b87f8[_0x4a932a(0x159)]['id'],'params':{'unitId':_0x52b959,'subUnitId':_0x311341,'op':_0x44a98e,'objects':_0x3c46fb,'type':_0x4b87f8[_0x4a932a(0x167)][_0x4a932a(0xbb)]}},{'id':_0x4b87f8[_0x4a932a(0x14a)]['id'],'params':[_0x52b959]},..._0x4ca421['redos'],{'id':_0x4e0b3c['id'],'params':{'unitId':_0x52b959,'subUnitId':_0x311341,'shapeId':_0x52d756,'shapeType':_0xca8104,'shapeData':{'adjustValues':_0x39c8e2,'relation':_0x11a821}}}],_0x2a2197=[...(_0xac2825=_0x4ca421[_0x4a932a(0x146)])==null?[]:_0xac2825,{'id':_0x4b87f8[_0x4a932a(0x159)]['id'],'params':{'unitId':_0x52b959,'subUnitId':_0x311341,'op':_0x4cde3c,'objects':_0x3c46fb,'type':_0x4b87f8[_0x4a932a(0x167)]['UPDATE']}},{'id':_0x4b87f8['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x52b959]},..._0x4ca421[_0x4a932a(0x13c)],{'id':_0x4e0b3c['id'],'params':{'unitId':_0x52b959,'subUnitId':_0x311341,'shapeId':_0x52d756,'shapeType':_0x1130c5,'shapeData':{..._0x4d46c6,'adjustValues':_0x37450f||(_0x4d46c6==null?void 0x0:_0x4d46c6[_0x4a932a(0xf0)]),'relation':_0x555bb0||(_0x4d46c6==null?void 0x0:_0x4d46c6[_0x4a932a(0x17d)])}}}];return(0x0,_0x2caac2[_0x4a932a(0xe0)])(_0x41378d,_0x27e297)[_0x4a932a(0x143)]?(_0x3cd520['pushUndoRedo']({'unitID':_0x52b959,'undoMutations':_0x2a2197,'redoMutations':_0x41378d}),!0x0):!0x1;}},_0x3ac1a9={'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x131)],'id':_0x43d32e(0x10c),'handler':(_0x3f5ddd,_0x38d962)=>{const _0x1b7cfd=_0x43d32e;var _0x3fc083,_0x325660;let _0x363500=(0x0,_0x3fa06b['getSheetCommandTarget'])(_0x3f5ddd[_0x1b7cfd(0x160)](_0x2caac2[_0x1b7cfd(0xd2)]),_0x38d962);if(!_0x363500)return!0x1;let _0x28cc7b=_0x3f5ddd[_0x1b7cfd(0x160)](_0x3fa06b[_0x1b7cfd(0x17b)]),{unitId:_0x5820e3,subUnitId:_0x3627c1}=_0x363500,_0x6df13=_0x28cc7b[_0x1b7cfd(0xe4)](_0x5820e3,_0x3627c1);if(!_0x6df13)return!0x1;let _0x2b8e66=_0x3f5ddd[_0x1b7cfd(0x160)](_0x4b87f8[_0x1b7cfd(0x17a)]),{shapeId:_0x6ec8d0,width:_0x160abd,height:_0xd6e9d8,left:_0xc66edd,top:_0x4ad524,flipX:_0xff417a,flipY:_0x251326,angle:_0x2becaf,oldAdjustValues:_0x26f20b,newAdjustValues:_0x19ca89,oldLineType:_0x3072d1,newLineType:_0x5d974a}=_0x38d962,_0x59d7f6=_0x2b8e66[_0x1b7cfd(0xd9)]({'unitId':_0x5820e3,'subUnitId':_0x3627c1,'drawingId':_0x6ec8d0});if(!_0x59d7f6)return!0x1;let _0x5cdbe6=_0x3f5ddd['get'](_0x296bdb)['getShapeModel'](_0x5820e3,_0x3627c1,_0x6ec8d0);if(!_0x5cdbe6)return!0x1;let _0x3722e7=_0x3f5ddd[_0x1b7cfd(0x160)](_0x2caac2[_0x1b7cfd(0xc9)]),_0x10cc4a=_0x3f5ddd['get'](_0x2caac2[_0x1b7cfd(0x122)]),_0x10c031=_0x3f5ddd[_0x1b7cfd(0x160)](_0x3fa06b['SheetInterceptorService']),_0x14ced0={..._0x59d7f6[_0x1b7cfd(0x14f)],'width':_0x160abd,'height':_0xd6e9d8,'left':_0xc66edd,'top':_0x4ad524,'flipX':_0xff417a,'flipY':_0x251326,'angle':_0x2becaf},_0x2f085f=(0x0,_0x4b87f8[_0x1b7cfd(0xd1)])(_0x14ced0,_0x6df13),_0x13f276=(0x0,_0x4b87f8[_0x1b7cfd(0xd7)])(_0x14ced0,_0x6df13),_0x457e37=_0x5cdbe6[_0x1b7cfd(0xca)](),_0x3b75b9=_0x5cdbe6[_0x1b7cfd(0x168)](),_0x4244af={'unitId':_0x5820e3,'subUnitId':_0x3627c1,'drawingId':_0x6ec8d0,'drawingType':_0x2caac2[_0x1b7cfd(0x134)][_0x1b7cfd(0xec)],'sheetTransform':_0x2f085f,'transform':_0x14ced0,'data':{'shapeType':_0x5d974a||_0x3072d1||_0x457e37,'shapeData':{..._0x3b75b9,'adjustValues':_0x19ca89||_0x26f20b||(_0x3b75b9==null?void 0x0:_0x3b75b9['adjustValues'])}},'axisAlignSheetTransform':_0x13f276,'allowTransform':!0x0},{undo:_0xe7a6d7,redo:_0x560284,objects:_0x491e61}=_0x2b8e66[_0x1b7cfd(0xcd)]([_0x4244af]),_0x4a45ae=_0x10c031['onCommandExecute']({'id':_0x4b87f8[_0x1b7cfd(0xd4)]['id'],'params':{'unitId':_0x5820e3,'drawings':[_0x4244af]}}),_0x40c9e8=[...(_0x3fc083=_0x4a45ae['preRedos'])==null?[]:_0x3fc083,{'id':_0x4b87f8[_0x1b7cfd(0x159)]['id'],'params':{'unitId':_0x5820e3,'subUnitId':_0x3627c1,'op':_0x560284,'objects':_0x491e61,'type':_0x4b87f8[_0x1b7cfd(0x167)][_0x1b7cfd(0xbb)]}},{'id':_0x4b87f8[_0x1b7cfd(0x14a)]['id'],'params':[_0x5820e3]},..._0x4a45ae[_0x1b7cfd(0x112)],{'id':_0x4e0b3c['id'],'params':{'unitId':_0x5820e3,'subUnitId':_0x3627c1,'shapeId':_0x6ec8d0,'shapeType':_0x5d974a,'shapeData':{'adjustValues':_0x19ca89}}}],_0xca4c49=[...(_0x325660=_0x4a45ae['preUndos'])==null?[]:_0x325660,{'id':_0x4b87f8[_0x1b7cfd(0x159)]['id'],'params':{'unitId':_0x5820e3,'subUnitId':_0x3627c1,'op':_0xe7a6d7,'objects':_0x491e61,'type':_0x4b87f8[_0x1b7cfd(0x167)]['UPDATE']}},{'id':_0x4b87f8[_0x1b7cfd(0x14a)]['id'],'params':[_0x5820e3]},..._0x4a45ae[_0x1b7cfd(0x13c)],{'id':_0x4e0b3c['id'],'params':{'unitId':_0x5820e3,'subUnitId':_0x3627c1,'shapeId':_0x6ec8d0,'shapeType':_0x457e37,'shapeData':{..._0x3b75b9,'adjustValues':_0x26f20b||(_0x3b75b9==null?void 0x0:_0x3b75b9['adjustValues'])}}}];return(0x0,_0x2caac2['sequenceExecute'])(_0x40c9e8,_0x3722e7)['result']?(_0x10cc4a[_0x1b7cfd(0x13f)]({'unitID':_0x5820e3,'undoMutations':_0xca4c49,'redoMutations':_0x40c9e8}),!0x0):!0x1;}},_0x15594d={'id':_0x43d32e(0xf9),'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x129)],'handler':(_0x1bec3b,_0x3b43af)=>{const _0x144792=_0x43d32e;let {unitId:_0x4bb096,subUnitId:_0x472589,shapeType:_0x45754f,shapeId:_0x4e842a,shapeData:_0x1445d8}=_0x3b43af,_0x3cfed9=_0x1bec3b[_0x144792(0x160)](_0x296bdb)[_0x144792(0xe8)](_0x4bb096,_0x472589,_0x4e842a);return _0x3cfed9&&(_0x3cfed9[_0x144792(0xfd)](_0x45754f),_0x1445d8&&(_0x3cfed9==null||_0x3cfed9[_0x144792(0xce)](_0x1445d8))),!0x0;}};var _0x1dad2b=_0x43d32e(0x12f),_0xbd8317='1.0.0-alpha.3';let _0x1e919c={},_0x4a7bac=class extends _0x2caac2[_0x43d32e(0x139)]{constructor(_0x258c1e,_0x7e68de,_0x4f85e5,_0x4f8f11,_0x49af12){const _0x3a6be4=_0x43d32e;super(),this['_commandService']=_0x258c1e,this[_0x3a6be4(0xf4)]=_0x7e68de,this['_sheetSkeletonService']=_0x4f85e5,this[_0x3a6be4(0x16a)]=_0x4f8f11,this['_drawingManagerService']=_0x49af12,this[_0x3a6be4(0xfc)](),this[_0x3a6be4(0xe1)]();}[_0x43d32e(0xfc)](){const _0x767a0b=_0x43d32e;[_0x315436,_0x396023,_0x5a3889,_0x1cd7c7,_0x27b1b6,_0x492f51,_0x3ac1a9,_0x5d1e10,_0x3bb77b,_0x15594d,_0x4e0b3c][_0x767a0b(0xf1)](_0x40c00b=>this[_0x767a0b(0xc1)](this[_0x767a0b(0xb8)]['registerCommand'](_0x40c00b)));}[_0x43d32e(0xe1)](){const _0x3cf4fe=_0x43d32e;this[_0x3cf4fe(0xc1)](this['_sheetInterceptorService'][_0x3cf4fe(0xea)]({'getMutations':_0x208854=>{const _0x1d4360=_0x3cf4fe;if(_0x208854['id']===_0x4b87f8['RemoveSheetDrawingCommand']['id']){let {drawings:_0x16f80e}=_0x208854[_0x1d4360(0xb2)],_0x291bd8=_0x16f80e['filter'](_0x12331e=>_0x12331e[_0x1d4360(0xeb)]===_0x2caac2[_0x1d4360(0x134)]['DRAWING_SHAPE']);if(_0x291bd8[_0x1d4360(0x16e)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4837b7=[],_0x4af1d4=[];return _0x291bd8['forEach'](_0x3b8350=>{const _0x16583c=_0x1d4360;let {unitId:_0x568290,subUnitId:_0xe73597,drawingId:_0x16df53}=_0x3b8350,_0x1e8e80=this[_0x16583c(0x16a)]['getShapeModel'](_0x568290,_0xe73597,_0x16df53);if(!_0x1e8e80)throw TypeError(_0x16583c(0xf5)+_0x1e8e80);_0x4837b7[_0x16583c(0xbe)]({'id':_0x3bb77b['id'],'params':{'unitId':_0x568290,'subUnitId':_0xe73597,'shapeId':_0x16df53}}),_0x4af1d4['push']({'id':_0x5d1e10['id'],'params':{'unitId':_0x568290,'subUnitId':_0xe73597,'shapeId':_0x16df53,'shapeType':_0x1e8e80['getShapeType'](),'shapeData':_0x1e8e80['getShapeData']()}});let _0x49fa7f=this[_0x16583c(0x16a)][_0x16583c(0xd6)](_0x568290,_0xe73597,_0x16df53);if(_0x49fa7f)for(let _0x361b4e of _0x49fa7f){let _0x5c2a02=_0x361b4e[_0x16583c(0x107)],_0x293a9a=_0x361b4e['isFrom'],_0x107331=_0x293a9a?{'from':void 0x0}:{'to':void 0x0},_0x349f60=_0x293a9a?{'from':{'shapeId':_0x361b4e[_0x16583c(0xf8)],'cxnIndex':_0x361b4e['cxnIndex']}}:{'to':{'shapeId':_0x361b4e[_0x16583c(0xf8)],'cxnIndex':_0x361b4e['cxnIndex']}};_0x4837b7[_0x16583c(0xbe)]({'id':_0x4e0b3c['id'],'params':{'unitId':_0x568290,'subUnitId':_0xe73597,'shapeId':_0x5c2a02,'shapeData':{'relation':_0x107331}}}),_0x4af1d4['push']({'id':_0x4e0b3c['id'],'params':{'unitId':_0x568290,'subUnitId':_0xe73597,'shapeId':_0x5c2a02,'shapeData':{'relation':_0x349f60}}});}}),{'preRedos':_0x4837b7,'redos':[],'preUndos':[],'undos':_0x4af1d4};}if(_0x208854['id']===_0x4b87f8[_0x1d4360(0xd4)]['id']){let {drawings:_0x5aaaaf}=_0x208854[_0x1d4360(0xb2)],_0x4a667f=_0x5aaaaf[_0x1d4360(0x144)](_0x43af89=>_0x43af89['drawingType']===_0x2caac2[_0x1d4360(0x134)][_0x1d4360(0xec)]);if(_0x4a667f['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x47a5e4=[],_0x29ca31=[];for(let _0x3f467b of _0x4a667f){let {unitId:_0x127cae,subUnitId:_0x54fcd3,drawingId:_0x5c4472,transform:_0x2bb4ff}=_0x3f467b;if(!_0x127cae||!_0x54fcd3||!_0x5c4472||!_0x2bb4ff)continue;let _0xee311c=this[_0x1d4360(0x16a)][_0x1d4360(0xe8)](_0x127cae,_0x54fcd3,_0x5c4472);if(!_0xee311c)throw TypeError(_0x1d4360(0xf5)+_0xee311c);if((0x0,_0x4dff1c[_0x1d4360(0x153)])(_0xee311c[_0x1d4360(0xca)]())){let _0x48576a=this[_0x1d4360(0x16a)]['getLineShapeRelation'](_0x127cae,_0x54fcd3,_0x5c4472);_0x48576a&&(_0x47a5e4[_0x1d4360(0xbe)]({'id':_0x4e0b3c['id'],'params':{'unitId':_0x127cae,'subUnitId':_0x54fcd3,'shapeId':_0x5c4472,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x29ca31[_0x1d4360(0xbe)]({'id':_0x4e0b3c['id'],'params':{'unitId':_0x127cae,'subUnitId':_0x54fcd3,'shapeId':_0x5c4472,'shapeData':{'relation':_0x48576a}}}));}else{let _0x1e37ec=this['_sheetsShapeService'][_0x1d4360(0xd6)](_0x127cae,_0x54fcd3,_0x5c4472);if(_0x1e37ec&&_0x1e37ec[_0x1d4360(0x16e)]>0x0)for(let _0x33253d of _0x1e37ec){let _0x9c0808=_0x33253d['lineShapeId'],_0x540369=_0x33253d[_0x1d4360(0xc7)],_0x22c395=this[_0x1d4360(0x16a)][_0x1d4360(0xe8)](_0x127cae,_0x54fcd3,_0x9c0808);if(!_0x22c395)continue;let _0x3a2666=_0x22c395[_0x1d4360(0x179)](),_0x2d73a3=_0x22c395[_0x1d4360(0xf3)]();_0x3a2666&&_0x2d73a3?this[_0x1d4360(0x147)](_0x127cae,_0x54fcd3,_0x9c0808,_0x22c395,_0x3a2666,_0x2d73a3,_0x47a5e4,_0x29ca31,_0x5c4472,_0x2bb4ff):this[_0x1d4360(0x170)](_0x127cae,_0x54fcd3,_0x9c0808,_0x22c395,_0x540369?_0x3a2666:_0x2d73a3,_0x540369,_0x47a5e4,_0x29ca31,_0x5c4472,_0x2bb4ff);}}}return{'preRedos':[],'redos':_0x47a5e4,'preUndos':_0x29ca31,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x43d32e(0x138)](_0x2b4a47,_0x8d6e0f,_0x241fb5,_0x1e9da9,_0xa6ec9e){const _0x398190=_0x43d32e;if(!_0x8d6e0f||!_0x241fb5)return null;let {shapeId:_0x5c6ece,cxnIndex:_0x288fcb}=_0x2b4a47,_0x499d4a=this[_0x398190(0x16a)]['getShapeModel'](_0x8d6e0f,_0x241fb5,_0x5c6ece);if(!_0x499d4a)return null;let _0xafb349=this[_0x398190(0x13b)][_0x398190(0xd9)]({'unitId':_0x8d6e0f,'subUnitId':_0x241fb5,'drawingId':_0x5c6ece});if(!(_0xafb349!=null&&_0xafb349[_0x398190(0x14f)]))return null;let {left:_0x26058e=0x0,top:_0x447b55=0x0,width:_0x485a58=0x0,height:_0xf0da5e=0x0,flipX:_0x206616=!0x1,flipY:_0x18e11e=!0x1,angle:_0x52dc38}=_0xafb349[_0x398190(0x14f)];if(_0xa6ec9e&&_0x1e9da9===_0x5c6ece){var _0x5a190e,_0x537147,_0x256db8,_0x51fee8,_0x4cef19,_0x41bd02,_0x572eee;_0x26058e=(_0x5a190e=_0xa6ec9e['left'])==null?_0x26058e:_0x5a190e,_0x447b55=(_0x537147=_0xa6ec9e[_0x398190(0x171)])==null?_0x447b55:_0x537147,_0x485a58=(_0x256db8=_0xa6ec9e[_0x398190(0x12b)])==null?_0x485a58:_0x256db8,_0xf0da5e=(_0x51fee8=_0xa6ec9e[_0x398190(0xc0)])==null?_0xf0da5e:_0x51fee8,_0x206616=(_0x4cef19=_0xa6ec9e[_0x398190(0xcf)])==null?_0x206616:_0x4cef19,_0x18e11e=(_0x41bd02=_0xa6ec9e['flipY'])==null?_0x18e11e:_0x41bd02,_0x52dc38=(_0x572eee=_0xa6ec9e[_0x398190(0x110)])==null?_0x52dc38:_0x572eee;}_0x499d4a[_0x398190(0x10e)]({'width':_0x485a58,'height':_0xf0da5e});let _0x3f6de5=_0x499d4a[_0x398190(0x10a)]()[_0x398190(0x174)](_0x2dba9d=>_0x2dba9d[_0x398190(0x10b)]===_0x288fcb);if(!_0x3f6de5)return null;let _0x337d4b=_0x206616?_0x485a58-_0x3f6de5['x']:_0x3f6de5['x'],_0x18c43b=_0x18e11e?_0xf0da5e-_0x3f6de5['y']:_0x3f6de5['y'];if(_0x52dc38!==0x0&&_0x52dc38!=null){let _0x3d3104=_0x52dc38*Math['PI']/0xb4,_0x3a35f4=Math[_0x398190(0x111)](_0x3d3104),_0x3f3778=Math['sin'](_0x3d3104),_0x4f042e=_0x485a58/0x2,_0x145095=_0xf0da5e/0x2,_0x2e94c2=_0x337d4b-_0x4f042e,_0x2cdf4a=_0x18c43b-_0x145095;_0x337d4b=_0x4f042e+_0x2e94c2*_0x3a35f4-_0x2cdf4a*_0x3f3778,_0x18c43b=_0x145095+_0x2e94c2*_0x3f3778+_0x2cdf4a*_0x3a35f4;}_0x337d4b+=_0x26058e,_0x18c43b+=_0x447b55;let _0x18a7ee=_0x3f6de5[_0x398190(0x117)]/0xea60;_0x206616&&(_0x18a7ee=0xb4-_0x18a7ee),_0x18e11e&&(_0x18a7ee=-_0x18a7ee),_0x18a7ee+=_0x52dc38||0x0,_0x18a7ee=(_0x18a7ee%0x168+0x168)%0x168;let _0x4206db=(0x0,_0x4dff1c[_0x398190(0x125)])({'left':_0x26058e,'top':_0x447b55,'width':_0x485a58,'height':_0xf0da5e},_0x52dc38||0x0);return{'point':{'x':_0x337d4b,'y':_0x18c43b},'angle':_0x18a7ee,'bounds':_0x4206db};}[_0x43d32e(0x147)](_0x5d6711,_0x542705,_0xe247b2,_0x1dbc96,_0x3c0b65,_0x1da5c3,_0x595304,_0x390c39,_0x509a0b,_0x20e95c){const _0x2d56d3=_0x43d32e;let _0x29a99c=this[_0x2d56d3(0x103)][_0x2d56d3(0xe4)](_0x5d6711,_0x542705);if(!_0x29a99c)return;let _0x5eb74a=_0x1dbc96[_0x2d56d3(0xd3)](),_0xc68b4e=_0x1dbc96['getAdjustNames'](),_0x2260ad={},_0x527d24={};_0xc68b4e[_0x2d56d3(0xf1)](_0x2e426f=>{const _0x7416ed=_0x2d56d3;let _0x44a761=_0x1dbc96[_0x7416ed(0x11c)](_0x2e426f);_0x527d24[_0x2e426f]=_0x44a761==null?0x0:_0x44a761;});let _0x3ef5f6=this[_0x2d56d3(0x138)](_0x3c0b65,_0x5d6711,_0x542705,_0x509a0b,_0x20e95c),_0x4f4907=this['_getConnectPointInfo'](_0x1da5c3,_0x5d6711,_0x542705,_0x509a0b,_0x20e95c);if(_0x3ef5f6&&_0x4f4907){let _0x2ca722=_0x1dbc96[_0x2d56d3(0xca)](),_0x5d8e35=(0x0,_0x4dff1c[_0x2d56d3(0x149)])(_0x3ef5f6,_0x4f4907,_0x2ca722),_0x6ba678=_0x2ca722;if(_0x5d8e35){let _0x111395=(0x0,_0x4dff1c['computeConnectorRouteLayout'])(_0x5d8e35,_0x1dbc96[_0x2d56d3(0xca)]()),_0x4886e0=this[_0x2d56d3(0x13b)][_0x2d56d3(0x13d)](_0x5d6711,_0x542705);if(_0x4886e0&&_0x4886e0[_0xe247b2]){let _0x55434e=_0x4886e0[_0xe247b2];_0x6ba678=_0x111395[_0x2d56d3(0x101)];for(let [_0x33a6e8,_0x8bf130]of Object[_0x2d56d3(0x15a)](_0x111395[_0x2d56d3(0xf0)]))_0x2260ad[_0x33a6e8]=_0x8bf130;let _0x160107={..._0x55434e[_0x2d56d3(0x14f)],'width':_0x111395['worldRect'][_0x2d56d3(0x12b)],'height':_0x111395['worldRect']['height'],'left':_0x111395[_0x2d56d3(0x124)][_0x2d56d3(0x102)],'top':_0x111395[_0x2d56d3(0x124)][_0x2d56d3(0x171)],'flipX':_0x111395[_0x2d56d3(0x124)][_0x2d56d3(0xcf)],'flipY':_0x111395[_0x2d56d3(0x124)][_0x2d56d3(0x130)],'angle':_0x111395[_0x2d56d3(0x173)]},_0xc8aef9=(0x0,_0x4b87f8[_0x2d56d3(0xd1)])(_0x160107,_0x29a99c),_0x317e0e=(0x0,_0x4b87f8[_0x2d56d3(0xd7)])(_0x160107,_0x29a99c),_0x52bf5e={'unitId':_0x5d6711,'subUnitId':_0x542705,'drawingType':_0x2caac2[_0x2d56d3(0x134)][_0x2d56d3(0xec)],'drawingId':_0xe247b2,'transform':_0x160107,'sheetTransform':_0xc8aef9,'axisAlignSheetTransform':_0x317e0e},{unitId:_0x4920fa,subUnitId:_0x4dbf24,undo:_0x44920b,redo:_0x340abe,objects:_0x11d157}=this[_0x2d56d3(0x13b)][_0x2d56d3(0xcd)]([_0x52bf5e]);_0x595304['push']({'id':_0x4b87f8[_0x2d56d3(0x159)]['id'],'params':{'unitId':_0x4920fa,'subUnitId':_0x4dbf24,'op':_0x340abe,'objects':_0x11d157,'type':_0x4b87f8[_0x2d56d3(0x167)][_0x2d56d3(0xbb)]}}),_0x390c39['push']({'id':_0x4b87f8[_0x2d56d3(0x159)]['id'],'params':{'unitId':_0x4920fa,'subUnitId':_0x4dbf24,'op':_0x44920b,'objects':_0x11d157,'type':_0x4b87f8[_0x2d56d3(0x167)][_0x2d56d3(0xbb)]}});}_0x1dbc96[_0x2d56d3(0xd5)]();}_0x595304['push']({'id':_0x4e0b3c['id'],'params':{'unitId':_0x5d6711,'subUnitId':_0x542705,'shapeId':_0xe247b2,'shapeType':_0x6ba678,'shapeData':{'adjustValues':_0x2260ad,'relation':_0x5eb74a}}}),_0x390c39['push']({'id':_0x4e0b3c['id'],'params':{'unitId':_0x5d6711,'subUnitId':_0x542705,'shapeId':_0xe247b2,'shapeType':_0x2ca722,'shapeData':{'adjustValues':_0x527d24,'relation':_0x5eb74a}}});}}['_addLineFollowShapeUpdates'](_0x23484b,_0x4c9c3b,_0x2345df,_0x3c764f,_0x18e170,_0x274e28,_0x4f1041,_0x87d5cc,_0x3a1449,_0x33442b){const _0x5c2f4f=_0x43d32e;var _0x5fbe6e;if(!_0x18e170)return;let _0x11fdb0=this['_sheetSkeletonService'][_0x5c2f4f(0xe4)](_0x23484b,_0x4c9c3b);if(!_0x11fdb0)return;let _0x2ef667=(_0x5fbe6e=this[_0x5c2f4f(0x13b)][_0x5c2f4f(0xd9)]({'unitId':_0x23484b,'subUnitId':_0x4c9c3b,'drawingId':_0x3a1449}))==null?void 0x0:_0x5fbe6e[_0x5c2f4f(0x14f)];if(!_0x2ef667)return;let _0x4e59bd=_0x2ef667[_0x5c2f4f(0x102)]!==_0x33442b[_0x5c2f4f(0x102)]||_0x2ef667[_0x5c2f4f(0x171)]!==_0x33442b[_0x5c2f4f(0x171)],_0xfce9aa=_0x2ef667[_0x5c2f4f(0x12b)]!==_0x33442b['width']||_0x2ef667[_0x5c2f4f(0xc0)]!==_0x33442b[_0x5c2f4f(0xc0)],_0x2181a2=_0x2ef667[_0x5c2f4f(0xcf)]!==_0x33442b['flipX']||_0x2ef667[_0x5c2f4f(0x130)]!==_0x33442b['flipY'],_0x58b319=_0x2ef667[_0x5c2f4f(0x110)]!==_0x33442b['angle'];if(_0x4e59bd&&!_0xfce9aa&&!_0x2181a2&&!_0x58b319){var _0x1d09cc,_0x2a465e,_0x16d46d,_0x2eff34;let _0x2f7370=((_0x1d09cc=_0x33442b[_0x5c2f4f(0x102)])==null?0x0:_0x1d09cc)-((_0x2a465e=_0x2ef667[_0x5c2f4f(0x102)])==null?0x0:_0x2a465e),_0x18ecba=((_0x16d46d=_0x33442b[_0x5c2f4f(0x171)])==null?0x0:_0x16d46d)-((_0x2eff34=_0x2ef667[_0x5c2f4f(0x171)])==null?0x0:_0x2eff34),_0x11c560=this[_0x5c2f4f(0x13b)][_0x5c2f4f(0x13d)](_0x23484b,_0x4c9c3b);if(_0x11c560&&_0x11c560[_0x2345df]){var _0x43fe16,_0x473a4c,_0x43e664,_0x53843e;let _0x4ba0df=_0x11c560[_0x2345df],_0x2d7d51={..._0x4ba0df[_0x5c2f4f(0x14f)],'left':((_0x43fe16=(_0x473a4c=_0x4ba0df[_0x5c2f4f(0x14f)])==null?void 0x0:_0x473a4c[_0x5c2f4f(0x102)])==null?0x0:_0x43fe16)+_0x2f7370,'top':((_0x43e664=(_0x53843e=_0x4ba0df['transform'])==null?void 0x0:_0x53843e[_0x5c2f4f(0x171)])==null?0x0:_0x43e664)+_0x18ecba},_0x2fd0ba=(0x0,_0x4b87f8[_0x5c2f4f(0xd1)])(_0x2d7d51,_0x11fdb0),_0xdd10d=(0x0,_0x4b87f8[_0x5c2f4f(0xd7)])(_0x2d7d51,_0x11fdb0),_0x525bb3={'unitId':_0x23484b,'subUnitId':_0x4c9c3b,'drawingType':_0x2caac2[_0x5c2f4f(0x134)][_0x5c2f4f(0xec)],'drawingId':_0x2345df,'transform':_0x2d7d51,'sheetTransform':_0x2fd0ba,'axisAlignSheetTransform':_0xdd10d},{unitId:_0x4aca1f,subUnitId:_0x195cac,undo:_0x6641fe,redo:_0x27c819,objects:_0x67e482}=this['_drawingManagerService']['getBatchUpdateOp']([_0x525bb3]);_0x4f1041[_0x5c2f4f(0xbe)]({'id':_0x4b87f8[_0x5c2f4f(0x159)]['id'],'params':{'unitId':_0x4aca1f,'subUnitId':_0x195cac,'op':_0x27c819,'objects':_0x67e482,'type':_0x4b87f8[_0x5c2f4f(0x167)][_0x5c2f4f(0xbb)]}}),_0x87d5cc[_0x5c2f4f(0xbe)]({'id':_0x4b87f8[_0x5c2f4f(0x159)]['id'],'params':{'unitId':_0x4aca1f,'subUnitId':_0x195cac,'op':_0x6641fe,'objects':_0x67e482,'type':_0x4b87f8['DrawingApplyType'][_0x5c2f4f(0xbb)]}});}}else{let _0x78e241=_0x3c764f[_0x5c2f4f(0x179)](),_0x13969b=_0x3c764f[_0x5c2f4f(0xf3)]();this['_addLineRerouteUpdates'](_0x23484b,_0x4c9c3b,_0x2345df,_0x3c764f,_0x78e241,_0x13969b,_0x4f1041,_0x87d5cc,_0x3a1449,_0x33442b);}}};_0x4a7bac=_0x2d9122([_0x13c296(0x0,_0x2caac2[_0x43d32e(0xc9)]),_0x13c296(0x1,(0x0,_0x2caac2[_0x43d32e(0xcb)])(_0x3fa06b[_0x43d32e(0x16d)])),_0x13c296(0x2,(0x0,_0x2caac2['Inject'])(_0x3fa06b[_0x43d32e(0x17b)])),_0x13c296(0x3,(0x0,_0x2caac2[_0x43d32e(0xcb)])(_0x296bdb)),_0x13c296(0x4,(0x0,_0x2caac2[_0x43d32e(0xcb)])(_0x389f2d[_0x43d32e(0x176)]))],_0x4a7bac);let _0x33980f=class extends _0x2caac2[_0x43d32e(0xf7)]{constructor(_0x24b89c=_0x1e919c,_0x1d81d6,_0x4ce353,_0x5b61e2){const _0x9fdecc=_0x43d32e;super(),this[_0x9fdecc(0x154)]=_0x24b89c,this[_0x9fdecc(0xde)]=_0x1d81d6,this[_0x9fdecc(0xb8)]=_0x4ce353,this[_0x9fdecc(0x15f)]=_0x5b61e2;let {..._0x2e4948}=(0x0,_0x2caac2[_0x9fdecc(0x11b)])({},_0x1e919c,this[_0x9fdecc(0x154)]);this['_configService'][_0x9fdecc(0xe7)]('sheets-shape.config',_0x2e4948);}[_0x43d32e(0x119)](){const _0x4d8b7c=_0x43d32e;let _0x4da8b0=this[_0x4d8b7c(0xde)];[[_0x46a501],[_0x296bdb],[_0x4a7bac]][_0x4d8b7c(0xf1)](_0x1d3944=>_0x4da8b0[_0x4d8b7c(0x11f)](_0x1d3944)),(0x0,_0x2caac2[_0x4d8b7c(0xb9)])(_0x4da8b0,[[_0x296bdb],[_0x4a7bac]]);}};_0x3392e6(_0x33980f,'type',_0x2caac2['UniverInstanceType']['UNIVER_SHEET']),_0x3392e6(_0x33980f,'pluginName',_0x43d32e(0x141)),_0x3392e6(_0x33980f,'packageName',_0x1dad2b),_0x3392e6(_0x33980f,_0x43d32e(0xee),_0xbd8317),_0x33980f=_0x2d9122([(0x0,_0x2caac2[_0x43d32e(0x16c)])(_0x2c98ae['UniverLicensePlugin']),_0x13c296(0x1,(0x0,_0x2caac2[_0x43d32e(0xcb)])(_0x2caac2[_0x43d32e(0xc2)])),_0x13c296(0x2,_0x2caac2[_0x43d32e(0xc9)]),_0x13c296(0x3,_0x2caac2['IConfigService'])],_0x33980f),_0x4150a6[_0x43d32e(0x116)]=0xc8,_0x4150a6[_0x43d32e(0x14e)]=0xc8,_0x4150a6[_0x43d32e(0x108)]=_0x315436,_0x4150a6[_0x43d32e(0xdd)]=_0x5d1e10,_0x4150a6['RemoveSheetsShapeMutation']=_0x3bb77b,_0x4150a6[_0x43d32e(0x185)]=_0x396023,_0x4150a6[_0x43d32e(0x16f)]=_0x1cd7c7,_0x4150a6[_0x43d32e(0xbf)]=_0x27b1b6,Object['defineProperty'](_0x4150a6,_0x43d32e(0x177),{'enumerable':!0x0,'get':function(){return _0x296bdb;}}),_0x4150a6[_0x43d32e(0xdb)]=_0x5a3889,Object[_0x43d32e(0xf6)](_0x4150a6,'UniverSheetsShapePlugin',{'enumerable':!0x0,'get':function(){return _0x33980f;}}),_0x4150a6[_0x43d32e(0x157)]=_0x492f51,_0x4150a6[_0x43d32e(0x12d)]=_0x3ac1a9,_0x4150a6[_0x43d32e(0x12e)]=_0x4e0b3c,_0x4150a6['UpdateSheetsShapeTypeMutation']=_0x15594d;}));
|
|
1
|
+
function _0x20f9(){const _0x4af736=['getShapeTypeById','resizeEnabled','INSERT','Disposable','UniverCore','ISheetDrawingService','getShapeModel','pushUndoRedo','params','DrawingTypeEnum','sendBackward','front','InsertSheetDrawingCommand','sequenceExecute','REMOVE','_initCommands','IShapeHostAdapterRegistry','isHorizontal','getBatchAddOp','isConnectorShape','shapeData','amd','removeShape','borderEnabled','InsertShapeCommand','version','_drawingService','getAdjustValueByName','UpdateSheetsShapeDataMutation','startY','1590517IaLbML','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','drawingType','from','result','subUnitId','SHEET_SHAPE_PLUGIN','setShapeType','registerPluginResource','decorate','sheet.mutation.insert-shape','@univerjs-pro/sheets-shape','forEach','DrawingApplyType','symbol','@univerjs/sheets','_commandService','ToggleSheetsShapeFlipCommand','15LneuOO','isLineShape','defineProperty','UniverProSheetsShape','dispose','back','UniverInstanceType','ICommandService','relation','UniverDrawing','visible','getBasicShapeRotateBound','setShapeData','_sheetSkeletonService','CommandType','angle','getBasicShapeRelation','function','fromJSON','UniverSheetsShapePlugin','SheetSkeletonService','registerCommand','SetShapeDrawingDataCommand','sheet.command.set-shape-text-vertical-toggle','InsertSheetsShapeMutation','ArrangeTypeEnum','deepClone','ClearSheetDrawingTransformerOperation','computeConnectorRouteLayout','hasShape','height','hostType','_configService','delete','setConfig','getSkeleton','@univerjs-pro/engine-shape','exports','657BitnNP','getStartConnectInfo','toPrimitive','_sheetsShapeService','keys','filter','_config','getShapeDataById','constructor','rotation','getShapeRelation','_drawingManagerService','_initCommandInterceptor','toJSON','hidden','getShapeData','_shapes','_deserializeShapeForUnit','transform','preUndos','_disposed','Injector','_shapeService','UniverSheetsDrawing','shapeName','map','IDrawingManagerService','prototype','interceptCommand','Tools','SetSheetsShapeTextVerticalToggleCommand','lineType','getId','ShapeModel','sin','type','onCommandExecute','_resourcesManagerService','range','DEFAULT_SHAPE_HEIGHT','MUTATION','@univerjs/core','getBatchUpdateOp','object','_addLineRerouteUpdates','1.0.0-alpha.4','generateRandomId','shapeId','onStarting','12890856KluZYR','UNIVER_SHEET','stringify','string','disposeWithMe','getShapeDisplayNames','iterator','IUndoRedoService','getShapeType','_groupIds','SheetsShapeService','add','181150GLjwMC','sheet.command.update-line-shape-resize','Module','parse','description','width','unitId','UPDATE','IConfigService','getSheetCommandTarget','entries','getDrawingData','IUniverInstanceService','removeLinePoints','toStringTag','getConnectionSiteList','UniverProLicense','getName','cos','selectable','COMMAND','_shapeModelManagerMap','_sheetInterceptorService','_linesIds','listShapes','SheetInterceptorService','addShape','14537840IxlonT','getDrawingByParam','100212LFpInO','redos','UniverShapePlugin','index','552tWKlEc','bringForward','undos','flipX','flipY','_ensureShapeModelManager','SetSheetDrawingCommand','createUniqueShapeName','fill','_injector','lineShapeId','shapeType','RemoveSheetDrawingCommand','values','adjustValues','RemoveSheetsShapeMutation','SetDrawingApplyMutation','name','63418oURoiW','UniverSheets','top','transformToDrawingPosition','cxnIndex','1378232kcJclU','_addLineFollowShapeUpdates','UpdateLineShapeResizeCommand','Inject','getLineShapeRelation','ensureSkeleton','call','_initSnapshot','sheet.command.toggle-shape-flip','left','_serializeShapeForUnit','register','@univerjs-pro/license','merge','123NQWwcX','rotateEnabled','isFrom','data','_arrange','sheet.command.set-shape-drawing-data','transformToAxisAlignPosition','SetDrawingArrangeCommand','getEndConnectInfo','get','clear','DEFAULT_SHAPE_WIDTH','forward','syncExecuteCommand','pluginName','length','DependentOn','packageName','IResourceManagerService','touchDependencies','_getConnectPointInfo','DRAWING_SHAPE','Plugin','getShapeTextData','push','bringToFront','worldRect','sendToBack','@univerjs/sheets-drawing','@univerjs/drawing','drawingId','preRedos'];_0x20f9=function(){return _0x4af736;};return _0x20f9();}function _0x2aa1(_0x59b041,_0x284807){_0x59b041=_0x59b041-0x120;const _0x20f97b=_0x20f9();let _0x2aa1ea=_0x20f97b[_0x59b041];return _0x2aa1ea;}(function(_0x2e79b3,_0x1664be){const _0x27e82a=_0x2aa1,_0x1fdd82=_0x2e79b3();while(!![]){try{const _0x1d612c=parseInt(_0x27e82a(0x1f2))/0x1+-parseInt(_0x27e82a(0x1a1))/0x2*(-parseInt(_0x27e82a(0x1b4))/0x3)+-parseInt(_0x27e82a(0x1a6))/0x4*(-parseInt(_0x27e82a(0x204))/0x5)+-parseInt(_0x27e82a(0x18f))/0x6*(parseInt(_0x27e82a(0x18b))/0x7)+-parseInt(_0x27e82a(0x189))/0x8+parseInt(_0x27e82a(0x131))/0x9*(parseInt(_0x27e82a(0x16e))/0xa)+-parseInt(_0x27e82a(0x162))/0xb;if(_0x1d612c===_0x1664be)break;else _0x1fdd82['push'](_0x1fdd82['shift']());}catch(_0x324503){_0x1fdd82['push'](_0x1fdd82['shift']());}}}(_0x20f9,0xe59a9),function(_0x5b0a36,_0x59bd49){const _0x3d99fd=_0x2aa1;typeof exports==_0x3d99fd(0x15c)&&typeof module<'u'?_0x59bd49(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==_0x3d99fd(0x215)&&define[_0x3d99fd(0x1e9)]?define([_0x3d99fd(0x130),_0x3d99fd(0x12f),_0x3d99fd(0x15a),_0x3d99fd(0x201),_0x3d99fd(0x1d0),_0x3d99fd(0x1b2),_0x3d99fd(0x1d1)],_0x59bd49):(_0x5b0a36=typeof globalThis<'u'?globalThis:_0x5b0a36||self,_0x59bd49(_0x5b0a36[_0x3d99fd(0x207)]={},_0x5b0a36['UniverProEngineShape'],_0x5b0a36[_0x3d99fd(0x1d8)],_0x5b0a36[_0x3d99fd(0x1a2)],_0x5b0a36[_0x3d99fd(0x148)],_0x5b0a36[_0x3d99fd(0x17e)],_0x5b0a36[_0x3d99fd(0x20d)]));}(this,function(_0x42025e,_0x31e983,_0xa7f297,_0x539446,_0x25ca33,_0x1ea6d9,_0x5ec541){const _0x34066d=_0x2aa1;Object[_0x34066d(0x206)](_0x42025e,Symbol[_0x34066d(0x17c)],{'value':_0x34066d(0x170)});function _0xc16328(_0x45254c){'@babel/helpers - typeof';const _0x2f77b7=_0x34066d;return _0xc16328=typeof Symbol=='function'&&typeof Symbol[_0x2f77b7(0x168)]=='symbol'?function(_0x437040){return typeof _0x437040;}:function(_0x38425c){const _0x39cc13=_0x2f77b7;return _0x38425c&&typeof Symbol==_0x39cc13(0x215)&&_0x38425c[_0x39cc13(0x139)]===Symbol&&_0x38425c!==Symbol[_0x39cc13(0x14c)]?_0x39cc13(0x200):typeof _0x38425c;},_0xc16328(_0x45254c);}function _0x275cde(_0x12e1e2,_0x3e1143){const _0x1f1cb5=_0x34066d;if(_0xc16328(_0x12e1e2)!=_0x1f1cb5(0x15c)||!_0x12e1e2)return _0x12e1e2;var _0x4d8cd5=_0x12e1e2[Symbol[_0x1f1cb5(0x133)]];if(_0x4d8cd5!==void 0x0){var _0xbaef52=_0x4d8cd5[_0x1f1cb5(0x1ac)](_0x12e1e2,_0x3e1143||'default');if(_0xc16328(_0xbaef52)!=_0x1f1cb5(0x15c))return _0xbaef52;throw TypeError(_0x1f1cb5(0x1f3));}return(_0x3e1143==='string'?String:Number)(_0x12e1e2);}function _0x2cc314(_0x4f6416){const _0x3b6517=_0x34066d;var _0x3885b=_0x275cde(_0x4f6416,_0x3b6517(0x165));return _0xc16328(_0x3885b)==_0x3b6517(0x200)?_0x3885b:_0x3885b+'';}function _0x554fe0(_0xa22d11,_0x29736c,_0x3eac5f){const _0x1f6665=_0x34066d;return(_0x29736c=_0x2cc314(_0x29736c))in _0xa22d11?Object[_0x1f6665(0x206)](_0xa22d11,_0x29736c,{'value':_0x3eac5f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa22d11[_0x29736c]=_0x3eac5f,_0xa22d11;}var _0x2c75b3=class extends _0xa7f297[_0x34066d(0x1d7)]{constructor(){const _0x45ad6b=_0x34066d;super(),_0x554fe0(this,'_shapes',new Map()),_0x554fe0(this,_0x45ad6b(0x185),new Set()),_0x554fe0(this,_0x45ad6b(0x16b),new Set());}[_0x34066d(0x188)](_0x1b18fa,_0x2751bd,_0x8f723c,_0x5ce030){const _0x10736f=_0x34066d;let _0x3a6066=new _0x31e983[(_0x10736f(0x152))](_0x1b18fa,_0x2751bd,_0x8f723c,_0x5ce030);return this[_0x10736f(0x141)]['set'](_0x2751bd,_0x3a6066),(0x0,_0x31e983[_0x10736f(0x1e7)])(_0x1b18fa)&&this[_0x10736f(0x185)][_0x10736f(0x16d)](_0x2751bd),_0x3a6066;}['getBasicShapeRelation'](_0x360243){const _0x53248b=_0x34066d;let _0xae60d7=[];for(let _0x4d9bd1 of this[_0x53248b(0x185)]){let _0x496b75=this[_0x53248b(0x141)][_0x53248b(0x1bd)](_0x4d9bd1);if(_0x496b75){let _0x12c5b9=_0x496b75[_0x53248b(0x13b)]();if(_0x12c5b9){var _0x2a3b1d,_0x1dbbd7;((_0x2a3b1d=_0x12c5b9[_0x53248b(0x1f5)])==null?void 0x0:_0x2a3b1d['shapeId'])===_0x360243&&_0xae60d7[_0x53248b(0x1cc)]({..._0x12c5b9['from'],'lineShapeId':_0x4d9bd1,'isFrom':!0x0}),((_0x1dbbd7=_0x12c5b9['to'])==null?void 0x0:_0x1dbbd7[_0x53248b(0x160)])===_0x360243&&_0xae60d7[_0x53248b(0x1cc)]({..._0x12c5b9['to'],'lineShapeId':_0x4d9bd1,'isFrom':!0x1});}}}return _0xae60d7;}[_0x34066d(0x1aa)](_0x8af63c){const _0x3ccdd2=_0x34066d;let _0x203978=this[_0x3ccdd2(0x141)]['get'](_0x8af63c);if(_0x203978)return _0x203978[_0x3ccdd2(0x13b)]();}[_0x34066d(0x16a)](_0x6a1eae){const _0x141f28=_0x34066d;let _0x241329=this[_0x141f28(0x141)][_0x141f28(0x1bd)](_0x6a1eae);if(_0x241329)return _0x241329[_0x141f28(0x16a)]();}[_0x34066d(0x128)](_0x1cffc4){const _0x5d10d2=_0x34066d;return this[_0x5d10d2(0x141)]['has'](_0x1cffc4);}[_0x34066d(0x167)](){const _0x365254=_0x34066d;return Array[_0x365254(0x1f5)](this[_0x365254(0x141)][_0x365254(0x19c)]())[_0x365254(0x14a)](_0x46896f=>_0x46896f[_0x365254(0x17f)]()||_0x46896f[_0x365254(0x151)]());}[_0x34066d(0x1ea)](_0x189b4a){const _0x37f206=_0x34066d;let _0x19f4e3=this[_0x37f206(0x141)][_0x37f206(0x1bd)](_0x189b4a);_0x19f4e3&&((0x0,_0x31e983[_0x37f206(0x1e7)])(_0x19f4e3[_0x37f206(0x16a)]())&&this[_0x37f206(0x185)][_0x37f206(0x12c)](_0x189b4a),this['_shapes'][_0x37f206(0x12c)](_0x189b4a));}[_0x34066d(0x13e)](){const _0x49dcad=_0x34066d;let _0x2a912d=[];return this[_0x49dcad(0x141)][_0x49dcad(0x1fe)](_0x585f8b=>{const _0x9b4e9a=_0x49dcad;_0x2a912d['push'](_0x585f8b[_0x9b4e9a(0x13e)]());}),_0x2a912d;}['fromJSON'](_0x2bbd45){const _0x3bfb42=_0x34066d;for(let _0x3f4d75 of _0x2bbd45){let {id:_0x23f2a4,shapeType:_0x2ff454,name:_0x283fc1}=_0x3f4d75,_0x4686fe=this[_0x3bfb42(0x188)](_0x2ff454,_0x23f2a4,_0x3f4d75[_0x3bfb42(0x1e8)],_0x283fc1);_0x4686fe&&_0x4686fe[_0x3bfb42(0x205)]()&&this['_linesIds'][_0x3bfb42(0x16d)](_0x23f2a4);}}[_0x34066d(0x208)](){const _0x1e1b3d=_0x34066d;this[_0x1e1b3d(0x145)]||(this[_0x1e1b3d(0x141)][_0x1e1b3d(0x1fe)](_0x54a561=>{const _0x5442be=_0x1e1b3d;_0x54a561[_0x5442be(0x208)]();}),this[_0x1e1b3d(0x141)][_0x1e1b3d(0x1be)](),this[_0x1e1b3d(0x185)][_0x1e1b3d(0x1be)](),this['_groupIds']['clear'](),super['dispose']());}};function _0x359a36(_0xb5e1c4,_0x2ffce8){return function(_0xc75fe8,_0x377257){_0x2ffce8(_0xc75fe8,_0x377257,_0xb5e1c4);};}function _0xd44f06(_0x106ef4,_0x50757c,_0x1aa514,_0x58574c){const _0x454d6f=_0x34066d;var _0x223431=arguments[_0x454d6f(0x1c3)],_0x42b61c=_0x223431<0x3?_0x50757c:_0x58574c===null?_0x58574c=Object['getOwnPropertyDescriptor'](_0x50757c,_0x1aa514):_0x58574c,_0x27f96f;if(typeof Reflect==_0x454d6f(0x15c)&&typeof Reflect[_0x454d6f(0x1fb)]=='function')_0x42b61c=Reflect[_0x454d6f(0x1fb)](_0x106ef4,_0x50757c,_0x1aa514,_0x58574c);else{for(var _0x319916=_0x106ef4['length']-0x1;_0x319916>=0x0;_0x319916--)(_0x27f96f=_0x106ef4[_0x319916])&&(_0x42b61c=(_0x223431<0x3?_0x27f96f(_0x42b61c):_0x223431>0x3?_0x27f96f(_0x50757c,_0x1aa514,_0x42b61c):_0x27f96f(_0x50757c,_0x1aa514))||_0x42b61c);}return _0x223431>0x3&&_0x42b61c&&Object[_0x454d6f(0x206)](_0x50757c,_0x1aa514,_0x42b61c),_0x42b61c;}let _0xf4f77c=class extends _0xa7f297[_0x34066d(0x1d7)]{constructor(_0x38e072){const _0x318f15=_0x34066d;super(),this[_0x318f15(0x156)]=_0x38e072,_0x554fe0(this,'_shapeModelManagerMap',new Map()),this[_0x318f15(0x1ad)]();}[_0x34066d(0x194)](_0x9ec446,_0x4e4b13){const _0xa70548=_0x34066d;let _0x5381f2=this['_shapeModelManagerMap'][_0xa70548(0x1bd)](_0x9ec446);_0x5381f2||(_0x5381f2=new Map(),this['_shapeModelManagerMap']['set'](_0x9ec446,_0x5381f2));let _0x9405d4=_0x5381f2[_0xa70548(0x1bd)](_0x4e4b13);return _0x9405d4||(_0x9405d4=new _0x2c75b3(),_0x5381f2['set'](_0x4e4b13,_0x9405d4)),_0x9405d4;}['insertShape'](_0x5aa45f,_0x22d3e1,_0x40d7e8,_0x37ab02,_0x2cce43,_0x1e0602){const _0x51b515=_0x34066d;this[_0x51b515(0x194)](_0x5aa45f,_0x22d3e1)[_0x51b515(0x188)](_0x40d7e8,_0x37ab02,_0x2cce43,_0x1e0602);}[_0x34066d(0x1ea)](_0x83232c,_0xeff939,_0xdd639b){const _0x40b8d6=_0x34066d;this[_0x40b8d6(0x194)](_0x83232c,_0xeff939)['removeShape'](_0xdd639b);}['getBasicShapeType'](_0x38b656,_0x4544c5,_0x500cac){const _0x205a92=_0x34066d;return this[_0x205a92(0x194)](_0x38b656,_0x4544c5)[_0x205a92(0x16a)](_0x500cac);}['getShapeType'](_0x4607eb,_0xe53a85,_0x49b38d){const _0x38fb3b=_0x34066d;return this[_0x38fb3b(0x194)](_0x4607eb,_0xe53a85)[_0x38fb3b(0x16a)](_0x49b38d);}['hasShape'](_0x39a11b,_0x32e461,_0x5cb7eb){const _0x488db7=_0x34066d;return this[_0x488db7(0x194)](_0x39a11b,_0x32e461)[_0x488db7(0x128)](_0x5cb7eb);}[_0x34066d(0x1d4)](_0x2858c1,_0x32e8fa,_0x205db7){const _0x36089c=_0x34066d;return this[_0x36089c(0x194)](_0x2858c1,_0x32e8fa)['getShapeType'](_0x205db7);}[_0x34066d(0x138)](_0x4a7245,_0x59433a,_0x5b0013){const _0x38d9d2=_0x34066d;let _0x1cf3ac=this['_ensureShapeModelManager'](_0x4a7245,_0x59433a);if(!_0x1cf3ac[_0x38d9d2(0x16a)](_0x5b0013))return;let _0x15b643=_0x1cf3ac[_0x38d9d2(0x141)]['get'](_0x5b0013);if(_0x15b643)return _0x15b643[_0x38d9d2(0x140)]();}[_0x34066d(0x167)](_0x2237d1,_0xb54cc1){const _0x137549=_0x34066d;return this[_0x137549(0x194)](_0x2237d1,_0xb54cc1)['getShapeDisplayNames']();}[_0x34066d(0x1da)](_0x46eb7d,_0x4df90e,_0x5d0235){const _0x479d9f=_0x34066d;return this['_ensureShapeModelManager'](_0x46eb7d,_0x4df90e)['_shapes'][_0x479d9f(0x1bd)](_0x5d0235);}[_0x34066d(0x214)](_0x4ccf45,_0x38ef65,_0x4e90b1){const _0x20e994=_0x34066d;return this[_0x20e994(0x194)](_0x4ccf45,_0x38ef65)[_0x20e994(0x214)](_0x4e90b1);}[_0x34066d(0x1aa)](_0x4ac0e0,_0x399780,_0x52f9c1){const _0x2c8786=_0x34066d;let _0x2d7372=this[_0x2c8786(0x194)](_0x4ac0e0,_0x399780)[_0x2c8786(0x141)][_0x2c8786(0x1bd)](_0x52f9c1);if(_0x2d7372)return _0x2d7372['getShapeRelation']();}[_0x34066d(0x1f9)](){}['_serializeShapeForUnit'](_0x3771e1){const _0x267bc6=_0x34066d;let _0x27399b={},_0x36472c=this[_0x267bc6(0x183)][_0x267bc6(0x1bd)](_0x3771e1);return _0x36472c&&_0x36472c[_0x267bc6(0x1fe)]((_0x874798,_0x4d9a1a)=>{const _0xb7162b=_0x267bc6;let _0xf22b97=_0x874798[_0xb7162b(0x13e)]();_0xf22b97['length']>0x0&&(_0x27399b[_0x4d9a1a]=_0xf22b97);}),JSON[_0x267bc6(0x164)](_0x27399b);}[_0x34066d(0x142)](_0x402d77,_0x5e305d){const _0x1d6fda=_0x34066d;Object[_0x1d6fda(0x135)](_0x5e305d)[_0x1d6fda(0x1fe)](_0x54dcf0=>{const _0x5c0b6f=_0x1d6fda;this[_0x5c0b6f(0x194)](_0x402d77,_0x54dcf0)[_0x5c0b6f(0x216)](_0x5e305d[_0x54dcf0]);});}['toJSON'](){const _0x35f90e=_0x34066d;let _0x5a7fa0={};return this[_0x35f90e(0x183)]['forEach']((_0x1fcf1f,_0x268203)=>{const _0x16c3b7=_0x35f90e;_0x5a7fa0[_0x268203]={},_0x1fcf1f[_0x16c3b7(0x1fe)]((_0x3e0208,_0x164268)=>{_0x5a7fa0[_0x268203][_0x164268]=_0x3e0208['toJSON']();});}),_0x5a7fa0;}['fromJSON'](_0x56a7fc){const _0x88b59f=_0x34066d;Object[_0x88b59f(0x135)](_0x56a7fc)['forEach'](_0x4576dc=>{let _0x12fece=_0x56a7fc[_0x4576dc];Object['keys'](_0x12fece)['forEach'](_0x2d7d0b=>{const _0x331bdc=_0x2aa1;this[_0x331bdc(0x194)](_0x4576dc,_0x2d7d0b)[_0x331bdc(0x216)](_0x12fece[_0x2d7d0b]);});});}[_0x34066d(0x1ad)](){const _0x250ebc=_0x34066d;this[_0x250ebc(0x156)][_0x250ebc(0x1fa)]({'pluginName':_0x250ebc(0x1f8),'businesses':[_0xa7f297[_0x250ebc(0x20a)][_0x250ebc(0x163)]],'toJson':_0x290a62=>this[_0x250ebc(0x1b0)](_0x290a62),'parseJson':_0x27aa3e=>JSON[_0x250ebc(0x171)](_0x27aa3e),'onLoad':(_0x5ad7e5,_0x3b8ffa)=>{const _0x44ada5=_0x250ebc;this[_0x44ada5(0x142)](_0x5ad7e5,_0x3b8ffa);},'onUnLoad':_0xfaabb2=>{const _0x560031=_0x250ebc;let _0x17bf96=this[_0x560031(0x183)]['get'](_0xfaabb2);_0x17bf96&&(_0x17bf96[_0x560031(0x1fe)](_0x4daf98=>{const _0xa67239=_0x560031;_0x4daf98[_0xa67239(0x208)]();}),this['_shapeModelManagerMap'][_0x560031(0x12c)](_0xfaabb2));}});}[_0x34066d(0x208)](){const _0x4f02b8=_0x34066d;this['_shapeModelManagerMap'][_0x4f02b8(0x1fe)](_0x49b46e=>{const _0x479271=_0x4f02b8;_0x49b46e[_0x479271(0x1fe)](_0x207d51=>{const _0xbf1630=_0x479271;_0x207d51[_0xbf1630(0x208)]();});});}};_0xf4f77c=_0xd44f06([_0x359a36(0x0,_0xa7f297[_0x34066d(0x1c6)])],_0xf4f77c);let _0xd3002d={'id':_0x34066d(0x1fc),'type':_0xa7f297[_0x34066d(0x212)][_0x34066d(0x159)],'handler':(_0x31a2b8,_0x13f23d)=>{const _0x30fbb7=_0x34066d;let {unitId:_0x587748,subUnitId:_0x4450d1,shapeType:_0x334f49,shapeId:_0x1cb740,shapeName:_0x74c842,shapeData:_0x17fcd0}=_0x13f23d;return _0x31a2b8[_0x30fbb7(0x1bd)](_0xf4f77c)['insertShape'](_0x587748,_0x4450d1,_0x334f49,_0x1cb740,_0x17fcd0,_0x74c842),!0x0;}},_0xa468b3={'id':'sheet.mutation.remove-shape','type':_0xa7f297[_0x34066d(0x212)][_0x34066d(0x159)],'handler':(_0x225d7b,_0x35a9da)=>{const _0x276934=_0x34066d;let {unitId:_0xfef416,subUnitId:_0xafa4eb,shapeId:_0xf2aee3}=_0x35a9da;return _0x225d7b[_0x276934(0x1bd)](_0xf4f77c)[_0x276934(0x1ea)](_0xfef416,_0xafa4eb,_0xf2aee3),!0x0;}},_0x230cdc={'type':_0xa7f297[_0x34066d(0x212)][_0x34066d(0x182)],'id':'sheet.command.insert-shape','handler':(_0x3da7c3,_0x573722)=>{const _0x4492e5=_0x34066d;var _0x4bd523,_0x376b51,_0x1c1532,_0x13ad1a,_0x475949,_0x3291be,_0x519b8e;let _0x33a085=(0x0,_0x539446[_0x4492e5(0x177)])(_0x3da7c3[_0x4492e5(0x1bd)](_0xa7f297[_0x4492e5(0x17a)]),_0x573722);if(!_0x33a085)return!0x1;let _0x167d82=_0x3da7c3[_0x4492e5(0x1bd)](_0x539446[_0x4492e5(0x218)]),{unitId:_0x124b75,subUnitId:_0x40e6c1}=_0x33a085,_0xd571c4=_0x167d82[_0x4492e5(0x1ab)](_0x124b75,_0x40e6c1);if(!_0xd571c4)return!0x1;let _0x35fae4=_0x3da7c3['get'](_0xa7f297[_0x4492e5(0x20b)]),_0x5c7021=_0x3da7c3['get'](_0xa7f297[_0x4492e5(0x169)]),_0x3cc27b=_0x3da7c3[_0x4492e5(0x1bd)](_0x539446[_0x4492e5(0x187)]),_0x1e65b5=_0x3da7c3[_0x4492e5(0x1bd)](_0x25ca33[_0x4492e5(0x1d9)]),_0x1b92e9=_0x3da7c3['get'](_0xf4f77c),{shapeType:_0x297b6d,shapeData:_0x58ac49}=_0x573722,_0x3a72d3=_0x573722['shapeId']||(0x0,_0xa7f297[_0x4492e5(0x15f)])(),_0x4c30f5={'unitId':_0x124b75,'subUnitId':_0x40e6c1,'shapeId':_0x3a72d3,'shapeName':(_0x4bd523=_0x573722[_0x4492e5(0x149)])==null?(0x0,_0x31e983[_0x4492e5(0x196)])(_0x297b6d,_0x1b92e9['getShapeDisplayNames'](_0x124b75,_0x40e6c1)):_0x4bd523,'shapeType':_0x297b6d,'shapeData':_0x58ac49},_0x1e8dce=_0x573722[_0x4492e5(0x173)]||0xc8,_0x3595be=_0x573722[_0x4492e5(0x129)]||0xc8,_0x25ce8e=0x0,_0x5c6eb6=0x0;if(_0x573722['position']){let {x:_0x47f60b,y:_0x883eeb}=_0x573722['position'];_0x25ce8e=_0x47f60b,_0x5c6eb6=_0x883eeb;}else{if(_0x573722[_0x4492e5(0x157)]){let {startRow:_0xf8972d,startColumn:_0x5da432}=_0x573722[_0x4492e5(0x157)],_0x89e0ed=_0xd571c4['getCellWithCoordByIndex'](_0xf8972d,_0x5da432);_0x25ce8e=_0x89e0ed['startX']+0xa,_0x5c6eb6=_0x89e0ed[_0x4492e5(0x1f1)]+0xa;}}let _0x21cf36={'left':_0x25ce8e,'top':_0x5c6eb6,'width':_0x1e8dce,'height':_0x3595be,'angle':(_0x376b51=_0x573722[_0x4492e5(0x13a)])==null?0x0:_0x376b51,'flipX':(_0x1c1532=_0x573722['flipX'])==null?!0x1:_0x1c1532,'flipY':(_0x13ad1a=_0x573722[_0x4492e5(0x193)])==null?!0x1:_0x13ad1a},_0x51d533=(0x0,_0x25ca33[_0x4492e5(0x1a4)])(_0x21cf36,_0xd571c4),_0x204a8e=(0x0,_0x25ca33['transformToAxisAlignPosition'])(_0x21cf36,_0xd571c4),_0x5e9e09={'unitId':_0x124b75,'subUnitId':_0x40e6c1,'drawingId':_0x3a72d3,'drawingType':_0xa7f297[_0x4492e5(0x1dd)][_0x4492e5(0x1c9)],'name':_0x573722[_0x4492e5(0x1a0)],'description':_0x573722[_0x4492e5(0x172)],'sheetTransform':_0x51d533,'transform':_0x21cf36,'data':{'shapeType':_0x297b6d,'shapeData':_0x58ac49},'axisAlignSheetTransform':_0x204a8e,'allowTransform':!0x0,'hidden':_0x573722[_0x4492e5(0x20e)]===!0x1,'selectable':(_0x475949=_0x573722[_0x4492e5(0x181)])==null?!0x0:_0x475949};(0x0,_0x31e983[_0x4492e5(0x1e7)])(_0x297b6d)&&(_0x5e9e09['data'][_0x4492e5(0x197)]=!0x1,_0x5e9e09[_0x4492e5(0x1b7)][_0x4492e5(0x1b5)]=!0x1,_0x5e9e09[_0x4492e5(0x1b7)][_0x4492e5(0x1d5)]=!0x1,_0x5e9e09[_0x4492e5(0x1b7)][_0x4492e5(0x1eb)]=!0x1,_0x5e9e09[_0x4492e5(0x143)][_0x4492e5(0x1b5)]=!0x1,_0x5e9e09['transform'][_0x4492e5(0x1d5)]=!0x1,_0x5e9e09['transform'][_0x4492e5(0x1eb)]=!0x1);let {undo:_0x4ee266,redo:_0x9bd14d,objects:_0x26b222}=_0x1e65b5[_0x4492e5(0x1e6)]([_0x5e9e09]),_0x36fe8c=_0x3cc27b[_0x4492e5(0x155)]({'id':_0x25ca33[_0x4492e5(0x1e0)]['id'],'params':{'unitId':_0x124b75,'drawings':[_0x5e9e09]}}),_0x25dea4=[...(_0x3291be=_0x36fe8c[_0x4492e5(0x1d3)])==null?[]:_0x3291be,{'id':_0x25ca33[_0x4492e5(0x19f)]['id'],'params':{'unitId':_0x124b75,'subUnitId':_0x40e6c1,'op':_0x9bd14d,'objects':_0x26b222,'type':_0x25ca33[_0x4492e5(0x1ff)][_0x4492e5(0x1d6)]}},{'id':_0x25ca33[_0x4492e5(0x126)]['id'],'params':[_0x124b75]},..._0x36fe8c[_0x4492e5(0x18c)],{'id':_0xd3002d['id'],'params':_0x4c30f5}],_0x16958d=[{'id':_0xa468b3['id'],'params':{'unitId':_0x124b75,'subUnitId':_0x40e6c1,'shapeId':_0x3a72d3}},...(_0x519b8e=_0x36fe8c['preUndos'])==null?[]:_0x519b8e,{'id':_0x25ca33[_0x4492e5(0x19f)]['id'],'params':{'unitId':_0x124b75,'subUnitId':_0x40e6c1,'op':_0x4ee266,'objects':_0x26b222,'type':_0x25ca33[_0x4492e5(0x1ff)][_0x4492e5(0x1e2)]}},{'id':_0x25ca33[_0x4492e5(0x126)]['id'],'params':[_0x124b75]},..._0x36fe8c[_0x4492e5(0x191)]];return(0x0,_0xa7f297[_0x4492e5(0x1e1)])(_0x25dea4,_0x35fae4)[_0x4492e5(0x1f6)]?(_0x5c7021[_0x4492e5(0x1db)]({'unitID':_0x124b75,'undoMutations':_0x16958d,'redoMutations':_0x25dea4}),!0x0):!0x1;}},_0x56a7b5={'id':'sheet.mutation.update-shape-data','type':_0xa7f297[_0x34066d(0x212)][_0x34066d(0x159)],'handler':(_0x4dc443,_0x1db923)=>{const _0x4754a3=_0x34066d;let {unitId:_0x555811,subUnitId:_0x431d50,shapeType:_0x1465ff,shapeId:_0x5d2e98,shapeData:_0xeb412a}=_0x1db923,_0x3ba171=_0x4dc443[_0x4754a3(0x1bd)](_0xf4f77c)[_0x4754a3(0x1da)](_0x555811,_0x431d50,_0x5d2e98);return _0x3ba171&&(_0x1465ff!==void 0x0&&_0x3ba171['setShapeType'](_0x1465ff),_0xeb412a&&(_0x3ba171==null||_0x3ba171[_0x4754a3(0x210)](_0xeb412a,!0x0))),!0x0;}},_0x1fd9bb={'type':_0xa7f297['CommandType']['COMMAND'],'id':_0x34066d(0x1b9),'handler':(_0x275dae,_0x417cb4)=>{const _0x56c594=_0x34066d;var _0x34e6a8,_0x353bc6,_0xd387a5,_0x177a60,_0x3d3926;let _0x240600=(0x0,_0x539446['getSheetCommandTarget'])(_0x275dae[_0x56c594(0x1bd)](_0xa7f297[_0x56c594(0x17a)]),_0x417cb4);if(!_0x240600)return!0x1;let _0x292066=_0x275dae['get'](_0x539446[_0x56c594(0x218)]),{unitId:_0x21fecf,subUnitId:_0x406863}=_0x240600,_0x41204a=_0x292066[_0x56c594(0x1ab)](_0x21fecf,_0x406863);if(!_0x41204a)return!0x1;let _0x3432d9=_0x275dae[_0x56c594(0x1bd)](_0xf4f77c),{shapeId:_0x1623a8,shapeType:_0x5cc40c,shapeData:_0xc8439a,position:_0x333f5d,width:_0x288e6e,height:_0x1dcc60}=_0x417cb4,_0x1618c1=_0x3432d9[_0x56c594(0x1da)](_0x21fecf,_0x406863,_0x1623a8);if(!_0x1618c1)return!0x1;let _0xaa0c4=_0x275dae[_0x56c594(0x1bd)](_0xa7f297[_0x56c594(0x20b)]),_0x58f96e=_0x275dae[_0x56c594(0x1bd)](_0xa7f297['IUndoRedoService']),_0x2e57a4=_0x275dae[_0x56c594(0x1bd)](_0x539446[_0x56c594(0x187)]),_0x5903c0=_0x275dae[_0x56c594(0x1bd)](_0x25ca33[_0x56c594(0x1d9)]),_0x49ca27={'unitId':_0x21fecf,'subUnitId':_0x406863,'shapeId':_0x1623a8,'shapeType':_0x5cc40c,'shapeData':_0xc8439a},_0x4a1a67=_0x1618c1[_0x56c594(0x16a)](),_0x471aa8=_0x1618c1[_0x56c594(0x140)](),{x:_0x3c7226,y:_0x199722}=_0x333f5d,_0x1b884f={'left':_0x3c7226,'top':_0x199722,'width':_0x288e6e,'height':_0x1dcc60,'angle':(_0x34e6a8=_0x417cb4['rotation'])==null?0x0:_0x34e6a8,'flipX':(_0x353bc6=_0x417cb4[_0x56c594(0x192)])==null?!0x1:_0x353bc6,'flipY':(_0xd387a5=_0x417cb4[_0x56c594(0x193)])==null?!0x1:_0xd387a5},_0x18188e=(0x0,_0x25ca33['transformToDrawingPosition'])(_0x1b884f,_0x41204a),_0xb64a33=(0x0,_0x25ca33[_0x56c594(0x1ba)])(_0x1b884f,_0x41204a),_0x578f75={'unitId':_0x21fecf,'subUnitId':_0x406863,'drawingId':_0x1623a8,'drawingType':_0xa7f297[_0x56c594(0x1dd)]['DRAWING_SHAPE'],'name':_0x417cb4[_0x56c594(0x1a0)],'description':_0x417cb4[_0x56c594(0x172)],'sheetTransform':_0x18188e,'transform':_0x1b884f,'data':{'shapeType':_0x5cc40c,'shapeData':_0xc8439a},'axisAlignSheetTransform':_0xb64a33,'allowTransform':!0x0,'hidden':!_0x417cb4[_0x56c594(0x20e)],'selectable':_0x417cb4[_0x56c594(0x181)]};(0x0,_0x31e983[_0x56c594(0x1e7)])(_0x5cc40c)&&(_0x578f75[_0x56c594(0x1b7)][_0x56c594(0x197)]=!0x1,_0x578f75[_0x56c594(0x1b7)][_0x56c594(0x1b5)]=!0x1,_0x578f75[_0x56c594(0x1b7)][_0x56c594(0x1d5)]=!0x1,_0x578f75[_0x56c594(0x1b7)][_0x56c594(0x1eb)]=!0x1,_0x578f75['transform'][_0x56c594(0x1b5)]=!0x1,_0x578f75[_0x56c594(0x143)][_0x56c594(0x1d5)]=!0x1,_0x578f75['transform'][_0x56c594(0x1eb)]=!0x1);let {undo:_0x786eec,redo:_0x1ced60,objects:_0x17d993}=_0x5903c0['getBatchUpdateOp']([_0x578f75]),_0x22e04d=_0x2e57a4[_0x56c594(0x155)]({'id':_0x25ca33['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x21fecf,'drawings':[_0x578f75]}}),_0x28e40d=[...(_0x177a60=_0x22e04d['preRedos'])==null?[]:_0x177a60,{'id':_0x25ca33[_0x56c594(0x19f)]['id'],'params':{'unitId':_0x21fecf,'subUnitId':_0x406863,'op':_0x1ced60,'objects':_0x17d993,'type':_0x25ca33[_0x56c594(0x1ff)][_0x56c594(0x175)]}},{'id':_0x25ca33[_0x56c594(0x126)]['id'],'params':[_0x21fecf]},..._0x22e04d[_0x56c594(0x18c)],{'id':_0x56a7b5['id'],'params':_0x49ca27}],_0x2fbc6e=[...(_0x3d3926=_0x22e04d[_0x56c594(0x144)])==null?[]:_0x3d3926,{'id':_0x25ca33[_0x56c594(0x19f)]['id'],'params':{'unitId':_0x21fecf,'subUnitId':_0x406863,'op':_0x786eec,'objects':_0x17d993,'type':_0x25ca33[_0x56c594(0x1ff)][_0x56c594(0x175)]}},{'id':_0x25ca33[_0x56c594(0x126)]['id'],'params':[_0x21fecf]},..._0x22e04d[_0x56c594(0x191)],{'id':_0x56a7b5['id'],'params':{'unitId':_0x21fecf,'subUnitId':_0x406863,'shapeType':_0x4a1a67,'shapeId':_0x1623a8,'shapeData':_0x471aa8}}];return(0x0,_0xa7f297[_0x56c594(0x1e1)])(_0x28e40d,_0xaa0c4)[_0x56c594(0x1f6)]?(_0x58f96e[_0x56c594(0x1db)]({'unitID':_0x21fecf,'undoMutations':_0x2fbc6e,'redoMutations':_0x28e40d}),!0x0):!0x1;}},_0x22b430={'type':_0xa7f297[_0x34066d(0x212)]['COMMAND'],'id':_0x34066d(0x1ae),'handler':(_0x19bda9,_0x218378)=>{const _0x3cfde4=_0x34066d;var _0x5b4887,_0x39acc0;let _0x4d2dc6=(0x0,_0x539446[_0x3cfde4(0x177)])(_0x19bda9[_0x3cfde4(0x1bd)](_0xa7f297[_0x3cfde4(0x17a)]),_0x218378);if(!_0x4d2dc6)return!0x1;let _0x344bae=_0x19bda9['get'](_0x539446['SheetSkeletonService']),{unitId:_0x5522c3,subUnitId:_0x3acf32}=_0x4d2dc6,_0x417427=_0x344bae[_0x3cfde4(0x12e)](_0x5522c3,_0x3acf32);if(!_0x417427)return!0x1;let _0x2f8e1c=_0x19bda9[_0x3cfde4(0x1bd)](_0x25ca33['ISheetDrawingService']),{shapeId:_0xe710f,flipH:_0x3fe973,flipV:_0x5b1a41}=_0x218378,_0x3292ef=_0x2f8e1c[_0x3cfde4(0x18a)]({'unitId':_0x5522c3,'subUnitId':_0x3acf32,'drawingId':_0xe710f});if(!_0x3292ef)return!0x1;let _0x37a423=_0x19bda9['get'](_0xf4f77c)[_0x3cfde4(0x1da)](_0x5522c3,_0x3acf32,_0xe710f);if(!_0x37a423)return!0x1;let _0x211afb=_0x19bda9[_0x3cfde4(0x1bd)](_0xa7f297[_0x3cfde4(0x20b)]),_0xd5b1c3=_0x19bda9[_0x3cfde4(0x1bd)](_0xa7f297['IUndoRedoService']),_0x53bf55=_0x19bda9[_0x3cfde4(0x1bd)](_0x539446[_0x3cfde4(0x187)]),_0x4a470c={..._0x3292ef[_0x3cfde4(0x143)]};_0x3fe973!==void 0x0&&(_0x4a470c[_0x3cfde4(0x192)]=!_0x4a470c['flipX']),_0x5b1a41!==void 0x0&&(_0x4a470c[_0x3cfde4(0x193)]=!_0x4a470c[_0x3cfde4(0x193)]);let _0x1dc7f6=(0x0,_0x25ca33[_0x3cfde4(0x1a4)])(_0x4a470c,_0x417427),_0x15f553=(0x0,_0x25ca33[_0x3cfde4(0x1ba)])(_0x4a470c,_0x417427),_0x4fe163=_0x37a423['getShapeType'](),_0x58d0cb=_0x37a423[_0x3cfde4(0x140)](),_0x59c616={'unitId':_0x5522c3,'subUnitId':_0x3acf32,'drawingId':_0xe710f,'drawingType':_0xa7f297[_0x3cfde4(0x1dd)][_0x3cfde4(0x1c9)],'sheetTransform':_0x1dc7f6,'transform':_0x4a470c,'data':{'shapeType':_0x4fe163,'shapeData':_0x58d0cb},'axisAlignSheetTransform':_0x15f553,'allowTransform':!0x0},{undo:_0x393f08,redo:_0x39935e,objects:_0x34ec64}=_0x2f8e1c['getBatchUpdateOp']([_0x59c616]),_0x4a03a3=_0x53bf55[_0x3cfde4(0x155)]({'id':_0x25ca33[_0x3cfde4(0x195)]['id'],'params':{'unitId':_0x5522c3,'drawings':[_0x59c616]}}),_0x23cf06=[...(_0x5b4887=_0x4a03a3['preRedos'])==null?[]:_0x5b4887,{'id':_0x25ca33[_0x3cfde4(0x19f)]['id'],'params':{'unitId':_0x5522c3,'subUnitId':_0x3acf32,'op':_0x39935e,'objects':_0x34ec64,'type':_0x25ca33[_0x3cfde4(0x1ff)][_0x3cfde4(0x175)]}},{'id':_0x25ca33[_0x3cfde4(0x126)]['id'],'params':[_0x5522c3]},..._0x4a03a3['redos']],_0x5be735=[...(_0x39acc0=_0x4a03a3['preUndos'])==null?[]:_0x39acc0,{'id':_0x25ca33[_0x3cfde4(0x19f)]['id'],'params':{'unitId':_0x5522c3,'subUnitId':_0x3acf32,'op':_0x393f08,'objects':_0x34ec64,'type':_0x25ca33[_0x3cfde4(0x1ff)]['UPDATE']}},{'id':_0x25ca33[_0x3cfde4(0x126)]['id'],'params':[_0x5522c3]},..._0x4a03a3[_0x3cfde4(0x191)]];if((0x0,_0x31e983[_0x3cfde4(0x1e7)])(_0x4fe163)){let _0x26c830=_0x37a423[_0x3cfde4(0x13b)]();if(_0x26c830){let _0x11e7de={..._0x26c830};_0x11e7de[_0x3cfde4(0x1f5)]=void 0x0,_0x11e7de['to']=void 0x0,_0x23cf06['push']({'id':_0x56a7b5['id'],'params':{'unitId':_0x5522c3,'subUnitId':_0x3acf32,'shapeId':_0xe710f,'shapeType':_0x4fe163,'shapeData':{'relation':_0x11e7de}}}),_0x5be735['push']({'id':_0x56a7b5['id'],'params':{'unitId':_0x5522c3,'subUnitId':_0x3acf32,'shapeId':_0xe710f,'shapeType':_0x4fe163,'shapeData':{'relation':_0x26c830}}});}}return(0x0,_0xa7f297[_0x3cfde4(0x1e1)])(_0x23cf06,_0x211afb)['result']?(_0xd5b1c3[_0x3cfde4(0x1db)]({'unitID':_0x5522c3,'undoMutations':_0x5be735,'redoMutations':_0x23cf06}),!0x0):!0x1;}},_0x539900={'type':_0xa7f297[_0x34066d(0x212)][_0x34066d(0x182)],'id':'sheet.command.set-shape-rotate','handler':(_0x49ec56,_0x1bbd13)=>{const _0x9645ef=_0x34066d;var _0x35968a,_0x4356f3;let _0x4cb8f9=(0x0,_0x539446[_0x9645ef(0x177)])(_0x49ec56[_0x9645ef(0x1bd)](_0xa7f297[_0x9645ef(0x17a)]),_0x1bbd13);if(!_0x4cb8f9)return!0x1;let _0x56bb8c=_0x49ec56['get'](_0x539446['SheetSkeletonService']),{unitId:_0x28a162,subUnitId:_0x224be1}=_0x4cb8f9,_0x5f47f0=_0x56bb8c[_0x9645ef(0x12e)](_0x28a162,_0x224be1);if(!_0x5f47f0)return!0x1;let _0x101b55=_0x49ec56['get'](_0x25ca33[_0x9645ef(0x1d9)]),{shapeId:_0x220676,rotate:_0x476fdd}=_0x1bbd13,_0x1413f9=_0x101b55[_0x9645ef(0x18a)]({'unitId':_0x28a162,'subUnitId':_0x224be1,'drawingId':_0x220676});if(!_0x1413f9)return!0x1;let _0x426652=_0x49ec56[_0x9645ef(0x1bd)](_0xf4f77c)[_0x9645ef(0x1da)](_0x28a162,_0x224be1,_0x220676);if(!_0x426652)return!0x1;let _0x2dcca7=_0x49ec56[_0x9645ef(0x1bd)](_0xa7f297[_0x9645ef(0x20b)]),_0x3eaa75=_0x49ec56[_0x9645ef(0x1bd)](_0xa7f297[_0x9645ef(0x169)]),_0x583253=_0x49ec56[_0x9645ef(0x1bd)](_0x539446[_0x9645ef(0x187)]),_0x42f1e5={..._0x1413f9[_0x9645ef(0x143)]};_0x476fdd!==void 0x0&&(_0x42f1e5[_0x9645ef(0x213)]=(_0x42f1e5['angle']||0x0)+_0x476fdd);let _0xca8121=(0x0,_0x25ca33[_0x9645ef(0x1a4)])(_0x42f1e5,_0x5f47f0),_0x4b15a2=(0x0,_0x25ca33[_0x9645ef(0x1ba)])(_0x42f1e5,_0x5f47f0),_0x1f4156=_0x426652[_0x9645ef(0x16a)](),_0x2be693=_0x426652[_0x9645ef(0x140)](),_0x496fcc={'unitId':_0x28a162,'subUnitId':_0x224be1,'drawingId':_0x220676,'drawingType':_0xa7f297[_0x9645ef(0x1dd)][_0x9645ef(0x1c9)],'sheetTransform':_0xca8121,'transform':_0x42f1e5,'data':{'shapeType':_0x1f4156,'shapeData':_0x2be693},'axisAlignSheetTransform':_0x4b15a2,'allowTransform':!0x0},{undo:_0x1dc8b1,redo:_0x248a63,objects:_0x12d198}=_0x101b55[_0x9645ef(0x15b)]([_0x496fcc]),_0x4bb165=_0x583253['onCommandExecute']({'id':_0x25ca33[_0x9645ef(0x195)]['id'],'params':{'unitId':_0x28a162,'drawings':[_0x496fcc]}}),_0x5437cc=[...(_0x35968a=_0x4bb165[_0x9645ef(0x1d3)])==null?[]:_0x35968a,{'id':_0x25ca33[_0x9645ef(0x19f)]['id'],'params':{'unitId':_0x28a162,'subUnitId':_0x224be1,'op':_0x248a63,'objects':_0x12d198,'type':_0x25ca33[_0x9645ef(0x1ff)]['UPDATE']}},{'id':_0x25ca33['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x28a162]},..._0x4bb165[_0x9645ef(0x18c)]],_0x18ea7e=[...(_0x4356f3=_0x4bb165[_0x9645ef(0x144)])==null?[]:_0x4356f3,{'id':_0x25ca33[_0x9645ef(0x19f)]['id'],'params':{'unitId':_0x28a162,'subUnitId':_0x224be1,'op':_0x1dc8b1,'objects':_0x12d198,'type':_0x25ca33[_0x9645ef(0x1ff)][_0x9645ef(0x175)]}},{'id':_0x25ca33[_0x9645ef(0x126)]['id'],'params':[_0x28a162]},..._0x4bb165['undos']];return(0x0,_0xa7f297[_0x9645ef(0x1e1)])(_0x5437cc,_0x2dcca7)['result']?(_0x3eaa75[_0x9645ef(0x1db)]({'unitID':_0x28a162,'undoMutations':_0x18ea7e,'redoMutations':_0x5437cc}),!0x0):!0x1;}},_0x2d5b38={'type':_0xa7f297[_0x34066d(0x212)]['COMMAND'],'id':_0x34066d(0x122),'handler':(_0x4d948f,_0x3715f6)=>{const _0x553bc9=_0x34066d;var _0x492e85;let _0x16336c=(0x0,_0x539446['getSheetCommandTarget'])(_0x4d948f['get'](_0xa7f297[_0x553bc9(0x17a)]),_0x3715f6);if(!_0x16336c)return!0x1;let {unitId:_0x3cca6c,subUnitId:_0x5b7e32}=_0x16336c,{shapeId:_0x3d3bf1}=_0x3715f6,_0x271391=_0x4d948f['get'](_0xf4f77c)[_0x553bc9(0x1da)](_0x3cca6c,_0x5b7e32,_0x3d3bf1);if(!_0x271391)return!0x1;let _0x1f5a04=_0x271391[_0x553bc9(0x1cb)](),_0x40509d=(_0x492e85=_0x1f5a04==null?void 0x0:_0x1f5a04[_0x553bc9(0x1e5)])==null?!0x0:_0x492e85,_0x39ba8f=!_0x40509d,_0x24f8e7=_0x4d948f[_0x553bc9(0x1bd)](_0xa7f297[_0x553bc9(0x20b)]),_0x181e38=_0x4d948f[_0x553bc9(0x1bd)](_0xa7f297[_0x553bc9(0x169)]),_0x41c132={'unitId':_0x3cca6c,'subUnitId':_0x5b7e32,'shapeId':_0x3d3bf1,'shapeData':{'shapeText':{'isHorizontal':_0x39ba8f}}},_0x12f6aa={'unitId':_0x3cca6c,'subUnitId':_0x5b7e32,'shapeId':_0x3d3bf1,'shapeData':{'shapeText':{'isHorizontal':_0x40509d}}},_0x142158=[{'id':_0x56a7b5['id'],'params':_0x41c132}],_0x162447=[{'id':_0x56a7b5['id'],'params':_0x12f6aa}];return(0x0,_0xa7f297[_0x553bc9(0x1e1)])(_0x142158,_0x24f8e7)[_0x553bc9(0x1f6)]?(_0x181e38[_0x553bc9(0x1db)]({'unitID':_0x3cca6c,'undoMutations':_0x162447,'redoMutations':_0x142158}),!0x0):!0x1;}},_0x430b70={'type':_0xa7f297['CommandType'][_0x34066d(0x182)],'id':'sheet.command.update-connector-relation','handler':(_0x3ff076,_0xe13d1d)=>{const _0x1425e9=_0x34066d;var _0x245fc8,_0x41f267,_0x4af69e,_0x29dd68;let _0x3927e3=(0x0,_0x539446[_0x1425e9(0x177)])(_0x3ff076['get'](_0xa7f297['IUniverInstanceService']),_0xe13d1d);if(!_0x3927e3)return!0x1;let _0x347910=_0x3ff076['get'](_0x539446['SheetSkeletonService']),{unitId:_0x11296d,subUnitId:_0x20c2be}=_0x3927e3,_0x58194c=_0x347910[_0x1425e9(0x12e)](_0x11296d,_0x20c2be);if(!_0x58194c)return!0x1;let _0xc360b=_0x3ff076[_0x1425e9(0x1bd)](_0x25ca33[_0x1425e9(0x1d9)]),{connectorShapeId:_0x42cefe,width:_0x8176f1,height:_0xf2c826,left:_0x95928f,top:_0x262f4d,flipX:_0x26df58,flipY:_0x530fab,rotation:_0xab1152,oldAdjustValues:_0x23257e,newAdjustValues:_0x1bfe62,oldLineType:_0x3fe2a4,newLineType:_0x5eded5,oldRelation:_0x3cfa04,newRelation:_0x17c347}=_0xe13d1d,_0x55fa5b=_0xc360b[_0x1425e9(0x18a)]({'unitId':_0x11296d,'subUnitId':_0x20c2be,'drawingId':_0x42cefe});if(!_0x55fa5b)return!0x1;let _0x299dd3=_0x3ff076[_0x1425e9(0x1bd)](_0xf4f77c)[_0x1425e9(0x1da)](_0x11296d,_0x20c2be,_0x42cefe);if(!_0x299dd3)return!0x1;let _0x49d4fc=_0x3ff076['get'](_0xa7f297['ICommandService']),_0x3fa951=_0x3ff076[_0x1425e9(0x1bd)](_0xa7f297[_0x1425e9(0x169)]),_0xcdba30=_0x3ff076[_0x1425e9(0x1bd)](_0x539446['SheetInterceptorService']),_0x137f1d={..._0x55fa5b[_0x1425e9(0x143)],'width':_0x8176f1,'height':_0xf2c826,'left':_0x95928f,'top':_0x262f4d,'flipX':_0x26df58,'flipY':_0x530fab,'angle':(_0x245fc8=_0xab1152==null?(_0x41f267=_0x55fa5b['transform'])==null?void 0x0:_0x41f267[_0x1425e9(0x213)]:_0xab1152)==null?0x0:_0x245fc8},_0x55d1fa=(0x0,_0x25ca33[_0x1425e9(0x1a4)])(_0x137f1d,_0x58194c),_0x2005e4=(0x0,_0x25ca33[_0x1425e9(0x1ba)])(_0x137f1d,_0x58194c),_0x430bef=_0x299dd3[_0x1425e9(0x16a)](),_0x2eb81a=_0x299dd3[_0x1425e9(0x140)](),_0xc02612={'unitId':_0x11296d,'subUnitId':_0x20c2be,'drawingId':_0x42cefe,'drawingType':_0xa7f297[_0x1425e9(0x1dd)][_0x1425e9(0x1c9)],'sheetTransform':_0x55d1fa,'transform':_0x137f1d,'data':{'shapeType':_0x5eded5||_0x3fe2a4||_0x430bef,'shapeData':{..._0x2eb81a,'adjustValues':_0x1bfe62||_0x23257e||(_0x2eb81a==null?void 0x0:_0x2eb81a['adjustValues']),'relation':_0x17c347||_0x3cfa04||(_0x2eb81a==null?void 0x0:_0x2eb81a[_0x1425e9(0x20c)])}},'axisAlignSheetTransform':_0x2005e4,'allowTransform':!0x0},{undo:_0x566963,redo:_0x3ca349,objects:_0x4156f9}=_0xc360b['getBatchUpdateOp']([_0xc02612]),_0x31b92a=_0xcdba30[_0x1425e9(0x155)]({'id':_0x25ca33[_0x1425e9(0x195)]['id'],'params':{'unitId':_0x11296d,'drawings':[_0xc02612]}}),_0x506cd4=[...(_0x4af69e=_0x31b92a['preRedos'])==null?[]:_0x4af69e,{'id':_0x25ca33[_0x1425e9(0x19f)]['id'],'params':{'unitId':_0x11296d,'subUnitId':_0x20c2be,'op':_0x3ca349,'objects':_0x4156f9,'type':_0x25ca33[_0x1425e9(0x1ff)][_0x1425e9(0x175)]}},{'id':_0x25ca33['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x11296d]},..._0x31b92a[_0x1425e9(0x18c)],{'id':_0x56a7b5['id'],'params':{'unitId':_0x11296d,'subUnitId':_0x20c2be,'shapeId':_0x42cefe,'shapeType':_0x5eded5,'shapeData':{'adjustValues':_0x1bfe62,'relation':_0x17c347}}}],_0x3ba502=[...(_0x29dd68=_0x31b92a[_0x1425e9(0x144)])==null?[]:_0x29dd68,{'id':_0x25ca33[_0x1425e9(0x19f)]['id'],'params':{'unitId':_0x11296d,'subUnitId':_0x20c2be,'op':_0x566963,'objects':_0x4156f9,'type':_0x25ca33[_0x1425e9(0x1ff)][_0x1425e9(0x175)]}},{'id':_0x25ca33[_0x1425e9(0x126)]['id'],'params':[_0x11296d]},..._0x31b92a[_0x1425e9(0x191)],{'id':_0x56a7b5['id'],'params':{'unitId':_0x11296d,'subUnitId':_0x20c2be,'shapeId':_0x42cefe,'shapeType':_0x430bef,'shapeData':{..._0x2eb81a,'adjustValues':_0x23257e||(_0x2eb81a==null?void 0x0:_0x2eb81a[_0x1425e9(0x19d)]),'relation':_0x3cfa04||(_0x2eb81a==null?void 0x0:_0x2eb81a['relation'])}}}];return(0x0,_0xa7f297[_0x1425e9(0x1e1)])(_0x506cd4,_0x49d4fc)['result']?(_0x3fa951[_0x1425e9(0x1db)]({'unitID':_0x11296d,'undoMutations':_0x3ba502,'redoMutations':_0x506cd4}),!0x0):!0x1;}},_0x1e2f01={'type':_0xa7f297[_0x34066d(0x212)][_0x34066d(0x182)],'id':_0x34066d(0x16f),'handler':(_0x1ce96f,_0x1e537e)=>{const _0x2732b8=_0x34066d;var _0xde8520,_0x534c82;let _0x19b34=(0x0,_0x539446['getSheetCommandTarget'])(_0x1ce96f[_0x2732b8(0x1bd)](_0xa7f297[_0x2732b8(0x17a)]),_0x1e537e);if(!_0x19b34)return!0x1;let _0x26f31d=_0x1ce96f['get'](_0x539446[_0x2732b8(0x218)]),{unitId:_0x105099,subUnitId:_0x1bf4e1}=_0x19b34,_0xd58aa2=_0x26f31d[_0x2732b8(0x12e)](_0x105099,_0x1bf4e1);if(!_0xd58aa2)return!0x1;let _0x2a71b0=_0x1ce96f[_0x2732b8(0x1bd)](_0x25ca33[_0x2732b8(0x1d9)]),{shapeId:_0x51d6da,width:_0x363eba,height:_0x42bac7,left:_0x212b70,top:_0x556682,flipX:_0x37964b,flipY:_0x57e840,angle:_0x4a559d,oldAdjustValues:_0x52bea5,newAdjustValues:_0x24e1e4,oldLineType:_0x3ad21a,newLineType:_0x632bbd}=_0x1e537e,_0x5ccfea=_0x2a71b0[_0x2732b8(0x18a)]({'unitId':_0x105099,'subUnitId':_0x1bf4e1,'drawingId':_0x51d6da});if(!_0x5ccfea)return!0x1;let _0xc5cd00=_0x1ce96f[_0x2732b8(0x1bd)](_0xf4f77c)[_0x2732b8(0x1da)](_0x105099,_0x1bf4e1,_0x51d6da);if(!_0xc5cd00)return!0x1;let _0x4365f6=_0x1ce96f[_0x2732b8(0x1bd)](_0xa7f297['ICommandService']),_0x1b8060=_0x1ce96f['get'](_0xa7f297['IUndoRedoService']),_0x397316=_0x1ce96f[_0x2732b8(0x1bd)](_0x539446[_0x2732b8(0x187)]),_0x2f4626={..._0x5ccfea['transform'],'width':_0x363eba,'height':_0x42bac7,'left':_0x212b70,'top':_0x556682,'flipX':_0x37964b,'flipY':_0x57e840,'angle':_0x4a559d},_0x14e109=(0x0,_0x25ca33[_0x2732b8(0x1a4)])(_0x2f4626,_0xd58aa2),_0x3b79ce=(0x0,_0x25ca33[_0x2732b8(0x1ba)])(_0x2f4626,_0xd58aa2),_0x402ca1=_0xc5cd00[_0x2732b8(0x16a)](),_0x488b93=_0xc5cd00[_0x2732b8(0x140)](),_0x299bc0={'unitId':_0x105099,'subUnitId':_0x1bf4e1,'drawingId':_0x51d6da,'drawingType':_0xa7f297[_0x2732b8(0x1dd)]['DRAWING_SHAPE'],'sheetTransform':_0x14e109,'transform':_0x2f4626,'data':{'shapeType':_0x632bbd||_0x3ad21a||_0x402ca1,'shapeData':{..._0x488b93,'adjustValues':_0x24e1e4||_0x52bea5||(_0x488b93==null?void 0x0:_0x488b93[_0x2732b8(0x19d)])}},'axisAlignSheetTransform':_0x3b79ce,'allowTransform':!0x0},{undo:_0x195b5a,redo:_0x3c7615,objects:_0x5d48a8}=_0x2a71b0[_0x2732b8(0x15b)]([_0x299bc0]),_0x2884c0=_0x397316[_0x2732b8(0x155)]({'id':_0x25ca33[_0x2732b8(0x195)]['id'],'params':{'unitId':_0x105099,'drawings':[_0x299bc0]}}),_0x44043b=[...(_0xde8520=_0x2884c0[_0x2732b8(0x1d3)])==null?[]:_0xde8520,{'id':_0x25ca33[_0x2732b8(0x19f)]['id'],'params':{'unitId':_0x105099,'subUnitId':_0x1bf4e1,'op':_0x3c7615,'objects':_0x5d48a8,'type':_0x25ca33[_0x2732b8(0x1ff)][_0x2732b8(0x175)]}},{'id':_0x25ca33[_0x2732b8(0x126)]['id'],'params':[_0x105099]},..._0x2884c0[_0x2732b8(0x18c)],{'id':_0x56a7b5['id'],'params':{'unitId':_0x105099,'subUnitId':_0x1bf4e1,'shapeId':_0x51d6da,'shapeType':_0x632bbd,'shapeData':{'adjustValues':_0x24e1e4}}}],_0x84f53=[...(_0x534c82=_0x2884c0[_0x2732b8(0x144)])==null?[]:_0x534c82,{'id':_0x25ca33[_0x2732b8(0x19f)]['id'],'params':{'unitId':_0x105099,'subUnitId':_0x1bf4e1,'op':_0x195b5a,'objects':_0x5d48a8,'type':_0x25ca33[_0x2732b8(0x1ff)][_0x2732b8(0x175)]}},{'id':_0x25ca33[_0x2732b8(0x126)]['id'],'params':[_0x105099]},..._0x2884c0[_0x2732b8(0x191)],{'id':_0x56a7b5['id'],'params':{'unitId':_0x105099,'subUnitId':_0x1bf4e1,'shapeId':_0x51d6da,'shapeType':_0x402ca1,'shapeData':{..._0x488b93,'adjustValues':_0x52bea5||(_0x488b93==null?void 0x0:_0x488b93[_0x2732b8(0x19d)])}}}];return(0x0,_0xa7f297[_0x2732b8(0x1e1)])(_0x44043b,_0x4365f6)['result']?(_0x1b8060[_0x2732b8(0x1db)]({'unitID':_0x105099,'undoMutations':_0x84f53,'redoMutations':_0x44043b}),!0x0):!0x1;}},_0x1d875d={'id':'sheet.mutation.update-shape-type','type':_0xa7f297['CommandType'][_0x34066d(0x159)],'handler':(_0x2ddb13,_0x30cddf)=>{const _0x32b9a8=_0x34066d;let {unitId:_0x916325,subUnitId:_0x2762a0,shapeType:_0x3d3f64,shapeId:_0x2b26d0,shapeData:_0x2b455c}=_0x30cddf,_0x39b7c7=_0x2ddb13[_0x32b9a8(0x1bd)](_0xf4f77c)[_0x32b9a8(0x1da)](_0x916325,_0x2762a0,_0x2b26d0);return _0x39b7c7&&(_0x39b7c7[_0x32b9a8(0x1f9)](_0x3d3f64),_0x2b455c&&(_0x39b7c7==null||_0x39b7c7[_0x32b9a8(0x210)](_0x2b455c))),!0x0;}};var _0x287ee1=_0x34066d(0x1fd),_0x3021e3=_0x34066d(0x15e);let _0x49e0b4=class{constructor(_0x4043e5,_0x7958b7,_0x551a8d){const _0x29476d=_0x34066d;this['_commandService']=_0x4043e5,this[_0x29476d(0x147)]=_0x7958b7,this['_drawingService']=_0x551a8d,_0x554fe0(this,_0x29476d(0x12a),_0xa7f297[_0x29476d(0x20a)][_0x29476d(0x163)]);}['getShape'](_0x240ad1){const _0x3adadd=_0x34066d;var _0x46aba7,_0x255295,_0x4e0402,_0x19f72b,_0x5a876e,_0x21fcb7,_0x4d5e05,_0x2319bb,_0x52dc86;let _0x47b9fc=(_0x46aba7=this[_0x3adadd(0x1ee)][_0x3adadd(0x179)](_0x240ad1[_0x3adadd(0x174)],_0x240ad1[_0x3adadd(0x1f7)]))==null?void 0x0:_0x46aba7[_0x240ad1['shapeId']],_0x439bae=this['_shapeService'][_0x3adadd(0x16a)](_0x240ad1['unitId'],_0x240ad1[_0x3adadd(0x1f7)],_0x240ad1[_0x3adadd(0x160)]);if(!_0x47b9fc||_0x47b9fc[_0x3adadd(0x1f4)]!==_0xa7f297[_0x3adadd(0x1dd)][_0x3adadd(0x1c9)]||!_0x439bae)return null;let _0xdcdf3b=_0x47b9fc[_0x3adadd(0x143)];return{..._0x240ad1,'shapeType':_0x439bae,'shapeData':_0xa7f297[_0x3adadd(0x14e)][_0x3adadd(0x125)]((_0x255295=this[_0x3adadd(0x147)][_0x3adadd(0x138)](_0x240ad1['unitId'],_0x240ad1['subUnitId'],_0x240ad1[_0x3adadd(0x160)]))==null?{}:_0x255295),'name':_0x47b9fc[_0x3adadd(0x1a0)],'description':_0x47b9fc[_0x3adadd(0x172)],'visible':_0x47b9fc[_0x3adadd(0x13f)]!==!0x0,'selectable':_0x47b9fc[_0x3adadd(0x181)]!==!0x1,'transform':{'left':(_0x4e0402=_0xdcdf3b==null?void 0x0:_0xdcdf3b[_0x3adadd(0x1af)])==null?0x0:_0x4e0402,'top':(_0x19f72b=_0xdcdf3b==null?void 0x0:_0xdcdf3b[_0x3adadd(0x1a3)])==null?0x0:_0x19f72b,'width':(_0x5a876e=_0xdcdf3b==null?void 0x0:_0xdcdf3b[_0x3adadd(0x173)])==null?0xc8:_0x5a876e,'height':(_0x21fcb7=_0xdcdf3b==null?void 0x0:_0xdcdf3b['height'])==null?0xc8:_0x21fcb7,'rotation':(_0x4d5e05=_0xdcdf3b==null?void 0x0:_0xdcdf3b[_0x3adadd(0x213)])==null?0x0:_0x4d5e05,'flipX':(_0x2319bb=_0xdcdf3b==null?void 0x0:_0xdcdf3b[_0x3adadd(0x192)])==null?!0x1:_0x2319bb,'flipY':(_0x52dc86=_0xdcdf3b==null?void 0x0:_0xdcdf3b['flipY'])==null?!0x1:_0x52dc86}};}[_0x34066d(0x186)](_0x1c1f44){const _0x2595a3=_0x34066d;var _0x4d645a;let _0x44314f=(_0x4d645a=this[_0x2595a3(0x1ee)]['getDrawingData'](_0x1c1f44[_0x2595a3(0x174)],_0x1c1f44[_0x2595a3(0x1f7)]))==null?{}:_0x4d645a;return Object[_0x2595a3(0x19c)](_0x44314f)[_0x2595a3(0x136)](_0x39769a=>(_0x39769a==null?void 0x0:_0x39769a[_0x2595a3(0x1f4)])===_0xa7f297['DrawingTypeEnum'][_0x2595a3(0x1c9)])[_0x2595a3(0x14a)](_0x270dcd=>this['getShape']({..._0x1c1f44,'shapeId':_0x270dcd[_0x2595a3(0x1d2)]}))[_0x2595a3(0x136)](_0x5b6615=>!!_0x5b6615);}['createShape'](_0x406a0e,_0x516322){const _0x4c401f=_0x34066d;var _0x32ce82,_0x161c85,_0x36dabc,_0x254416,_0x1945d4,_0x108c68,_0x49352f,_0x42db86,_0x54e6b5,_0x14f967,_0x3b8f0d,_0x52af51,_0x52099d,_0x597396,_0x3e352b,_0x5c38c7,_0x5dfe1b,_0x353e65,_0x1f2fcc;let _0x1fc32e=(0x0,_0xa7f297['generateRandomId'])(),_0x389fbe={'left':(_0x32ce82=(_0x161c85=_0x516322[_0x4c401f(0x143)])==null?void 0x0:_0x161c85[_0x4c401f(0x1af)])==null?0x0:_0x32ce82,'top':(_0x36dabc=(_0x254416=_0x516322[_0x4c401f(0x143)])==null?void 0x0:_0x254416[_0x4c401f(0x1a3)])==null?0x0:_0x36dabc,'width':(_0x1945d4=(_0x108c68=_0x516322[_0x4c401f(0x143)])==null?void 0x0:_0x108c68[_0x4c401f(0x173)])==null?0xc8:_0x1945d4,'height':(_0x49352f=(_0x42db86=_0x516322[_0x4c401f(0x143)])==null?void 0x0:_0x42db86[_0x4c401f(0x129)])==null?0xc8:_0x49352f,'rotation':(_0x54e6b5=(_0x14f967=_0x516322['transform'])==null?void 0x0:_0x14f967[_0x4c401f(0x13a)])==null?0x0:_0x54e6b5,'flipX':(_0x3b8f0d=(_0x52af51=_0x516322[_0x4c401f(0x143)])==null?void 0x0:_0x52af51['flipX'])==null?!0x1:_0x3b8f0d,'flipY':(_0x52099d=(_0x597396=_0x516322['transform'])==null?void 0x0:_0x597396['flipY'])==null?!0x1:_0x52099d};return this[_0x4c401f(0x202)][_0x4c401f(0x1c1)](_0x230cdc['id'],{'unitId':_0x406a0e[_0x4c401f(0x174)],'subUnitId':_0x406a0e[_0x4c401f(0x1f7)],'shapeId':_0x1fc32e,'shapeType':_0x516322[_0x4c401f(0x19a)],'shapeData':_0x516322['shapeData'],'name':_0x516322['name'],'description':_0x516322[_0x4c401f(0x172)],'position':{'x':_0x389fbe['left'],'y':_0x389fbe[_0x4c401f(0x1a3)]},'width':_0x389fbe[_0x4c401f(0x173)],'height':_0x389fbe['height'],'rotation':_0x389fbe['rotation'],'flipX':_0x389fbe[_0x4c401f(0x192)],'flipY':_0x389fbe[_0x4c401f(0x193)],'visible':(_0x3e352b=_0x516322[_0x4c401f(0x20e)])==null?!0x0:_0x3e352b,'selectable':(_0x5c38c7=_0x516322[_0x4c401f(0x181)])==null?!0x0:_0x5c38c7})?{..._0x406a0e,'shapeId':_0x1fc32e,'shapeType':_0x516322[_0x4c401f(0x19a)],'shapeData':_0xa7f297[_0x4c401f(0x14e)][_0x4c401f(0x125)]((_0x5dfe1b=_0x516322[_0x4c401f(0x1e8)])==null?{}:_0x5dfe1b),'name':_0x516322[_0x4c401f(0x1a0)],'description':_0x516322['description'],'visible':(_0x353e65=_0x516322['visible'])==null?!0x0:_0x353e65,'selectable':(_0x1f2fcc=_0x516322[_0x4c401f(0x181)])==null?!0x0:_0x1f2fcc,'transform':_0x389fbe}:null;}['updateShape'](_0x2163c2,_0x5e4a80){const _0x492afd=_0x34066d;var _0x415a4b,_0x1b0ce4,_0x28e7da,_0x1c3889,_0x233089,_0x1f1b35;let _0x4408ed=this['getShape'](_0x2163c2);if(!_0x4408ed)return!0x1;let _0x328a66={..._0x4408ed[_0x492afd(0x143)],..._0x5e4a80['transform']};return this[_0x492afd(0x202)][_0x492afd(0x1c1)](_0x1fd9bb['id'],{'unitId':_0x2163c2[_0x492afd(0x174)],'subUnitId':_0x2163c2[_0x492afd(0x1f7)],'shapeId':_0x2163c2[_0x492afd(0x160)],'shapeType':(_0x415a4b=(_0x1b0ce4=_0x5e4a80[_0x492afd(0x19a)])==null?(_0x28e7da=_0x5e4a80[_0x492afd(0x1e8)])==null?void 0x0:_0x28e7da[_0x492afd(0x19a)]:_0x1b0ce4)==null?_0x4408ed['shapeType']:_0x415a4b,'shapeData':(_0x1c3889=_0x5e4a80[_0x492afd(0x1e8)])==null?_0x4408ed[_0x492afd(0x1e8)]:_0x1c3889,'position':{'x':_0x328a66['left'],'y':_0x328a66[_0x492afd(0x1a3)]},'width':_0x328a66[_0x492afd(0x173)],'height':_0x328a66['height'],'rotation':_0x328a66[_0x492afd(0x13a)],'flipX':_0x328a66[_0x492afd(0x192)],'flipY':_0x328a66[_0x492afd(0x193)],'name':_0x492afd(0x1a0)in _0x5e4a80?_0x5e4a80[_0x492afd(0x1a0)]:_0x4408ed['name'],'description':_0x492afd(0x172)in _0x5e4a80?_0x5e4a80['description']:_0x4408ed[_0x492afd(0x172)],'visible':(_0x233089=_0x5e4a80['visible'])==null?_0x4408ed[_0x492afd(0x20e)]:_0x233089,'selectable':(_0x1f1b35=_0x5e4a80['selectable'])==null?_0x4408ed[_0x492afd(0x181)]:_0x1f1b35});}['removeShape'](_0x50a726){const _0x3c92ef=_0x34066d;return this['_commandService'][_0x3c92ef(0x1c1)](_0x25ca33[_0x3c92ef(0x19b)]['id'],{'unitId':_0x50a726[_0x3c92ef(0x174)],'drawings':[{'unitId':_0x50a726[_0x3c92ef(0x174)],'subUnitId':_0x50a726['subUnitId'],'drawingId':_0x50a726[_0x3c92ef(0x160)],'drawingType':_0xa7f297[_0x3c92ef(0x1dd)][_0x3c92ef(0x1c9)]}]});}[_0x34066d(0x1cd)](_0x4b582b){const _0x3e54cb=_0x34066d;return this[_0x3e54cb(0x1b8)](_0x4b582b,_0xa7f297[_0x3e54cb(0x124)][_0x3e54cb(0x1df)]);}[_0x34066d(0x190)](_0x7ae61a){const _0x45b6ce=_0x34066d;return this['_arrange'](_0x7ae61a,_0xa7f297['ArrangeTypeEnum'][_0x45b6ce(0x1c0)]);}[_0x34066d(0x1de)](_0x532617){const _0x374df6=_0x34066d;return this['_arrange'](_0x532617,_0xa7f297[_0x374df6(0x124)]['backward']);}[_0x34066d(0x1cf)](_0x2b7a98){const _0x25a5f3=_0x34066d;return this[_0x25a5f3(0x1b8)](_0x2b7a98,_0xa7f297['ArrangeTypeEnum'][_0x25a5f3(0x209)]);}[_0x34066d(0x1b8)](_0x43d5ad,_0x3aad2e){const _0x83ce5e=_0x34066d;return this[_0x83ce5e(0x202)]['syncExecuteCommand'](_0x25ca33[_0x83ce5e(0x1bb)]['id'],{'unitId':_0x43d5ad[_0x83ce5e(0x174)],'subUnitId':_0x43d5ad['subUnitId'],'drawingIds':[_0x43d5ad[_0x83ce5e(0x160)]],'arrangeType':_0x3aad2e});}};_0x49e0b4=_0xd44f06([_0x359a36(0x0,_0xa7f297['ICommandService']),_0x359a36(0x1,(0x0,_0xa7f297[_0x34066d(0x1a9)])(_0xf4f77c)),_0x359a36(0x2,_0x25ca33[_0x34066d(0x1d9)])],_0x49e0b4);let _0x59092a={},_0x203020=class extends _0xa7f297[_0x34066d(0x1d7)]{constructor(_0x11d401,_0x56cc0e,_0x2b90ff,_0x341239,_0x37c52f,_0x5e1bff,_0x108f7a){const _0x2193c5=_0x34066d;super(),this['_commandService']=_0x11d401,this[_0x2193c5(0x184)]=_0x56cc0e,this['_sheetSkeletonService']=_0x2b90ff,this[_0x2193c5(0x134)]=_0x341239,this[_0x2193c5(0x13c)]=_0x37c52f,this['_shapeHostAdapterRegistry']=_0x5e1bff,this[_0x2193c5(0x1e3)](),this[_0x2193c5(0x13d)](),this[_0x2193c5(0x166)](this['_shapeHostAdapterRegistry'][_0x2193c5(0x1b1)](_0x108f7a));}[_0x34066d(0x1e3)](){const _0x29f1b1=_0x34066d;[_0x230cdc,_0x1fd9bb,_0x22b430,_0x539900,_0x2d5b38,_0x430b70,_0x1e2f01,_0xd3002d,_0xa468b3,_0x1d875d,_0x56a7b5][_0x29f1b1(0x1fe)](_0x1d6c04=>this[_0x29f1b1(0x166)](this['_commandService'][_0x29f1b1(0x120)](_0x1d6c04)));}[_0x34066d(0x13d)](){const _0x22b054=_0x34066d;this[_0x22b054(0x166)](this['_sheetInterceptorService'][_0x22b054(0x14d)]({'getMutations':_0xc029db=>{const _0x184c33=_0x22b054;if(_0xc029db['id']===_0x25ca33[_0x184c33(0x19b)]['id']){let {drawings:_0x291353}=_0xc029db[_0x184c33(0x1dc)],_0x55dd63=_0x291353[_0x184c33(0x136)](_0x15a653=>_0x15a653['drawingType']===_0xa7f297[_0x184c33(0x1dd)][_0x184c33(0x1c9)]);if(_0x55dd63[_0x184c33(0x1c3)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x401571=[],_0x520264=[];return _0x55dd63[_0x184c33(0x1fe)](_0x324f9b=>{const _0x3c28b5=_0x184c33;let {unitId:_0x3b1d20,subUnitId:_0x1d83a8,drawingId:_0x42d67d}=_0x324f9b,_0x37e1ae=this[_0x3c28b5(0x134)][_0x3c28b5(0x1da)](_0x3b1d20,_0x1d83a8,_0x42d67d);if(!_0x37e1ae)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x37e1ae);_0x401571[_0x3c28b5(0x1cc)]({'id':_0xa468b3['id'],'params':{'unitId':_0x3b1d20,'subUnitId':_0x1d83a8,'shapeId':_0x42d67d}}),_0x520264[_0x3c28b5(0x1cc)]({'id':_0xd3002d['id'],'params':{'unitId':_0x3b1d20,'subUnitId':_0x1d83a8,'shapeId':_0x42d67d,'shapeType':_0x37e1ae[_0x3c28b5(0x16a)](),'shapeData':_0x37e1ae['getShapeData']()}});let _0x57e1d1=this[_0x3c28b5(0x134)][_0x3c28b5(0x214)](_0x3b1d20,_0x1d83a8,_0x42d67d);if(_0x57e1d1)for(let _0x204bcb of _0x57e1d1){let _0x4c755=_0x204bcb[_0x3c28b5(0x199)],_0x4fef98=_0x204bcb[_0x3c28b5(0x1b6)],_0x352e65=_0x4fef98?{'from':void 0x0}:{'to':void 0x0},_0x4d519b=_0x4fef98?{'from':{'shapeId':_0x204bcb['shapeId'],'cxnIndex':_0x204bcb[_0x3c28b5(0x1a5)]}}:{'to':{'shapeId':_0x204bcb['shapeId'],'cxnIndex':_0x204bcb[_0x3c28b5(0x1a5)]}};_0x401571[_0x3c28b5(0x1cc)]({'id':_0x56a7b5['id'],'params':{'unitId':_0x3b1d20,'subUnitId':_0x1d83a8,'shapeId':_0x4c755,'shapeData':{'relation':_0x352e65}}}),_0x520264[_0x3c28b5(0x1cc)]({'id':_0x56a7b5['id'],'params':{'unitId':_0x3b1d20,'subUnitId':_0x1d83a8,'shapeId':_0x4c755,'shapeData':{'relation':_0x4d519b}}});}}),{'preRedos':_0x401571,'redos':[],'preUndos':[],'undos':_0x520264};}if(_0xc029db['id']===_0x25ca33[_0x184c33(0x195)]['id']){let {drawings:_0x36d062}=_0xc029db['params'],_0x1c17cd=_0x36d062['filter'](_0x25362d=>_0x25362d['drawingType']===_0xa7f297[_0x184c33(0x1dd)][_0x184c33(0x1c9)]);if(_0x1c17cd[_0x184c33(0x1c3)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x416239=[],_0x4bebe2=[];for(let _0x4164cd of _0x1c17cd){let {unitId:_0x15bfdf,subUnitId:_0x2a3c3a,drawingId:_0x560dda,transform:_0x38ce43}=_0x4164cd;if(!_0x15bfdf||!_0x2a3c3a||!_0x560dda||!_0x38ce43)continue;let _0x2e7c9e=this['_sheetsShapeService']['getShapeModel'](_0x15bfdf,_0x2a3c3a,_0x560dda);if(!_0x2e7c9e)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x2e7c9e);if((0x0,_0x31e983['isConnectorShape'])(_0x2e7c9e[_0x184c33(0x16a)]())){let _0x324c6f=this[_0x184c33(0x134)][_0x184c33(0x1aa)](_0x15bfdf,_0x2a3c3a,_0x560dda);_0x324c6f&&(_0x416239['push']({'id':_0x56a7b5['id'],'params':{'unitId':_0x15bfdf,'subUnitId':_0x2a3c3a,'shapeId':_0x560dda,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4bebe2['push']({'id':_0x56a7b5['id'],'params':{'unitId':_0x15bfdf,'subUnitId':_0x2a3c3a,'shapeId':_0x560dda,'shapeData':{'relation':_0x324c6f}}}));}else{let _0xd4f06b=this['_sheetsShapeService'][_0x184c33(0x214)](_0x15bfdf,_0x2a3c3a,_0x560dda);if(_0xd4f06b&&_0xd4f06b['length']>0x0)for(let _0x4ae542 of _0xd4f06b){let _0x4069bc=_0x4ae542[_0x184c33(0x199)],_0x974da3=_0x4ae542[_0x184c33(0x1b6)],_0x577ebe=this[_0x184c33(0x134)][_0x184c33(0x1da)](_0x15bfdf,_0x2a3c3a,_0x4069bc);if(!_0x577ebe)continue;let _0xcec15f=_0x577ebe[_0x184c33(0x132)](),_0x3f7ba8=_0x577ebe[_0x184c33(0x1bc)]();_0xcec15f&&_0x3f7ba8?this['_addLineRerouteUpdates'](_0x15bfdf,_0x2a3c3a,_0x4069bc,_0x577ebe,_0xcec15f,_0x3f7ba8,_0x416239,_0x4bebe2,_0x560dda,_0x38ce43):this[_0x184c33(0x1a7)](_0x15bfdf,_0x2a3c3a,_0x4069bc,_0x577ebe,_0x974da3?_0xcec15f:_0x3f7ba8,_0x974da3,_0x416239,_0x4bebe2,_0x560dda,_0x38ce43);}}}return{'preRedos':[],'redos':_0x416239,'preUndos':_0x4bebe2,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x34066d(0x1c8)](_0x3583fc,_0x5730bb,_0x36db7c,_0x448524,_0x22937a){const _0x4c0dbd=_0x34066d;if(!_0x5730bb||!_0x36db7c)return null;let {shapeId:_0x35607,cxnIndex:_0x453762}=_0x3583fc,_0x293eb1=this[_0x4c0dbd(0x134)][_0x4c0dbd(0x1da)](_0x5730bb,_0x36db7c,_0x35607);if(!_0x293eb1)return null;let _0x56e2dd=this[_0x4c0dbd(0x13c)][_0x4c0dbd(0x18a)]({'unitId':_0x5730bb,'subUnitId':_0x36db7c,'drawingId':_0x35607});if(!(_0x56e2dd!=null&&_0x56e2dd['transform']))return null;let {left:_0x26a6e3=0x0,top:_0x3944bc=0x0,width:_0x4919d8=0x0,height:_0x46f798=0x0,flipX:_0x210679=!0x1,flipY:_0x31d331=!0x1,angle:_0x4a3617}=_0x56e2dd[_0x4c0dbd(0x143)];if(_0x22937a&&_0x448524===_0x35607){var _0x2ed51d,_0x2379d4,_0xca2016,_0x5538a1,_0x2ec887,_0x46ab60,_0x576165;_0x26a6e3=(_0x2ed51d=_0x22937a[_0x4c0dbd(0x1af)])==null?_0x26a6e3:_0x2ed51d,_0x3944bc=(_0x2379d4=_0x22937a['top'])==null?_0x3944bc:_0x2379d4,_0x4919d8=(_0xca2016=_0x22937a[_0x4c0dbd(0x173)])==null?_0x4919d8:_0xca2016,_0x46f798=(_0x5538a1=_0x22937a[_0x4c0dbd(0x129)])==null?_0x46f798:_0x5538a1,_0x210679=(_0x2ec887=_0x22937a[_0x4c0dbd(0x192)])==null?_0x210679:_0x2ec887,_0x31d331=(_0x46ab60=_0x22937a[_0x4c0dbd(0x193)])==null?_0x31d331:_0x46ab60,_0x4a3617=(_0x576165=_0x22937a['angle'])==null?_0x4a3617:_0x576165;}_0x293eb1['updateContext']({'width':_0x4919d8,'height':_0x46f798});let _0x2d4104=_0x293eb1[_0x4c0dbd(0x17d)]()['find'](_0x5ae652=>_0x5ae652[_0x4c0dbd(0x18e)]===_0x453762);if(!_0x2d4104)return null;let _0x38b710=_0x210679?_0x4919d8-_0x2d4104['x']:_0x2d4104['x'],_0x1e9e10=_0x31d331?_0x46f798-_0x2d4104['y']:_0x2d4104['y'];if(_0x4a3617!==0x0&&_0x4a3617!=null){let _0x29e3c4=_0x4a3617*Math['PI']/0xb4,_0x979913=Math[_0x4c0dbd(0x180)](_0x29e3c4),_0x9d6660=Math[_0x4c0dbd(0x153)](_0x29e3c4),_0x43534a=_0x4919d8/0x2,_0x12b5b3=_0x46f798/0x2,_0x3c3739=_0x38b710-_0x43534a,_0x24bc5f=_0x1e9e10-_0x12b5b3;_0x38b710=_0x43534a+_0x3c3739*_0x979913-_0x24bc5f*_0x9d6660,_0x1e9e10=_0x12b5b3+_0x3c3739*_0x9d6660+_0x24bc5f*_0x979913;}_0x38b710+=_0x26a6e3,_0x1e9e10+=_0x3944bc;let _0x7c5b4a=_0x2d4104['ang']/0xea60;_0x210679&&(_0x7c5b4a=0xb4-_0x7c5b4a),_0x31d331&&(_0x7c5b4a=-_0x7c5b4a),_0x7c5b4a+=_0x4a3617||0x0,_0x7c5b4a=(_0x7c5b4a%0x168+0x168)%0x168;let _0x31d34a=(0x0,_0x31e983[_0x4c0dbd(0x20f)])({'left':_0x26a6e3,'top':_0x3944bc,'width':_0x4919d8,'height':_0x46f798},_0x4a3617||0x0);return{'point':{'x':_0x38b710,'y':_0x1e9e10},'angle':_0x7c5b4a,'bounds':_0x31d34a};}[_0x34066d(0x15d)](_0x293efb,_0x1ef3b5,_0x5aa44c,_0x299c79,_0x3b1714,_0x589819,_0x596264,_0x5d4e9d,_0x571ffe,_0x320811){const _0x51c5f7=_0x34066d;let _0x5999e9=this[_0x51c5f7(0x211)]['getSkeleton'](_0x293efb,_0x1ef3b5);if(!_0x5999e9)return;let _0x43f9bf=_0x299c79[_0x51c5f7(0x13b)](),_0x173597=_0x299c79['getAdjustNames'](),_0x17bd11={},_0x67827c={};_0x173597['forEach'](_0x13dce1=>{const _0x5bfdb3=_0x51c5f7;let _0x581ddd=_0x299c79[_0x5bfdb3(0x1ef)](_0x13dce1);_0x67827c[_0x13dce1]=_0x581ddd==null?0x0:_0x581ddd;});let _0x3848b1=this[_0x51c5f7(0x1c8)](_0x3b1714,_0x293efb,_0x1ef3b5,_0x571ffe,_0x320811),_0x3bc4a7=this[_0x51c5f7(0x1c8)](_0x589819,_0x293efb,_0x1ef3b5,_0x571ffe,_0x320811);if(_0x3848b1&&_0x3bc4a7){let _0x57fac4=_0x299c79['getShapeType'](),_0x10f217=(0x0,_0x31e983['routeConnectorLineShape'])(_0x3848b1,_0x3bc4a7,_0x57fac4),_0x27a2f0=_0x57fac4;if(_0x10f217){let _0x18b6a0=(0x0,_0x31e983[_0x51c5f7(0x127)])(_0x10f217,_0x299c79['getShapeType']()),_0x252f4d=this['_drawingManagerService']['getDrawingData'](_0x293efb,_0x1ef3b5);if(_0x252f4d&&_0x252f4d[_0x5aa44c]){let _0x3c78ca=_0x252f4d[_0x5aa44c];_0x27a2f0=_0x18b6a0[_0x51c5f7(0x150)];for(let [_0x49cda1,_0x211b15]of Object[_0x51c5f7(0x178)](_0x18b6a0[_0x51c5f7(0x19d)]))_0x17bd11[_0x49cda1]=_0x211b15;let _0x192353={..._0x3c78ca[_0x51c5f7(0x143)],'width':_0x18b6a0['worldRect'][_0x51c5f7(0x173)],'height':_0x18b6a0[_0x51c5f7(0x1ce)][_0x51c5f7(0x129)],'left':_0x18b6a0[_0x51c5f7(0x1ce)]['left'],'top':_0x18b6a0[_0x51c5f7(0x1ce)][_0x51c5f7(0x1a3)],'flipX':_0x18b6a0[_0x51c5f7(0x1ce)][_0x51c5f7(0x192)],'flipY':_0x18b6a0[_0x51c5f7(0x1ce)][_0x51c5f7(0x193)],'angle':_0x18b6a0[_0x51c5f7(0x13a)]},_0x5bd432=(0x0,_0x25ca33[_0x51c5f7(0x1a4)])(_0x192353,_0x5999e9),_0x4d6fa6=(0x0,_0x25ca33[_0x51c5f7(0x1ba)])(_0x192353,_0x5999e9),_0xcadc4d={'unitId':_0x293efb,'subUnitId':_0x1ef3b5,'drawingType':_0xa7f297[_0x51c5f7(0x1dd)][_0x51c5f7(0x1c9)],'drawingId':_0x5aa44c,'transform':_0x192353,'sheetTransform':_0x5bd432,'axisAlignSheetTransform':_0x4d6fa6},{unitId:_0x3aca6e,subUnitId:_0x4422ce,undo:_0x256f1a,redo:_0x51b6d2,objects:_0x48813a}=this[_0x51c5f7(0x13c)][_0x51c5f7(0x15b)]([_0xcadc4d]);_0x596264[_0x51c5f7(0x1cc)]({'id':_0x25ca33['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3aca6e,'subUnitId':_0x4422ce,'op':_0x51b6d2,'objects':_0x48813a,'type':_0x25ca33[_0x51c5f7(0x1ff)][_0x51c5f7(0x175)]}}),_0x5d4e9d[_0x51c5f7(0x1cc)]({'id':_0x25ca33[_0x51c5f7(0x19f)]['id'],'params':{'unitId':_0x3aca6e,'subUnitId':_0x4422ce,'op':_0x256f1a,'objects':_0x48813a,'type':_0x25ca33[_0x51c5f7(0x1ff)]['UPDATE']}});}_0x299c79[_0x51c5f7(0x17b)]();}_0x596264[_0x51c5f7(0x1cc)]({'id':_0x56a7b5['id'],'params':{'unitId':_0x293efb,'subUnitId':_0x1ef3b5,'shapeId':_0x5aa44c,'shapeType':_0x27a2f0,'shapeData':{'adjustValues':_0x17bd11,'relation':_0x43f9bf}}}),_0x5d4e9d[_0x51c5f7(0x1cc)]({'id':_0x56a7b5['id'],'params':{'unitId':_0x293efb,'subUnitId':_0x1ef3b5,'shapeId':_0x5aa44c,'shapeType':_0x57fac4,'shapeData':{'adjustValues':_0x67827c,'relation':_0x43f9bf}}});}}[_0x34066d(0x1a7)](_0x18f484,_0x248c63,_0x4918b1,_0x1c666e,_0x575c4f,_0x8e6a31,_0x364561,_0x42b7df,_0x566eb3,_0x2acac8){const _0x587966=_0x34066d;var _0xeb9d26;if(!_0x575c4f)return;let _0x1e818f=this[_0x587966(0x211)][_0x587966(0x12e)](_0x18f484,_0x248c63);if(!_0x1e818f)return;let _0x31b927=(_0xeb9d26=this[_0x587966(0x13c)][_0x587966(0x18a)]({'unitId':_0x18f484,'subUnitId':_0x248c63,'drawingId':_0x566eb3}))==null?void 0x0:_0xeb9d26['transform'];if(!_0x31b927)return;let _0xda1182=_0x31b927[_0x587966(0x1af)]!==_0x2acac8['left']||_0x31b927[_0x587966(0x1a3)]!==_0x2acac8[_0x587966(0x1a3)],_0x10e2b1=_0x31b927['width']!==_0x2acac8[_0x587966(0x173)]||_0x31b927[_0x587966(0x129)]!==_0x2acac8[_0x587966(0x129)],_0x82a2b3=_0x31b927[_0x587966(0x192)]!==_0x2acac8[_0x587966(0x192)]||_0x31b927[_0x587966(0x193)]!==_0x2acac8['flipY'],_0x4a20fc=_0x31b927[_0x587966(0x213)]!==_0x2acac8[_0x587966(0x213)];if(_0xda1182&&!_0x10e2b1&&!_0x82a2b3&&!_0x4a20fc){var _0x2e5bca,_0x34c149,_0x5b6a7f,_0x13fa01;let _0x5858ba=((_0x2e5bca=_0x2acac8[_0x587966(0x1af)])==null?0x0:_0x2e5bca)-((_0x34c149=_0x31b927[_0x587966(0x1af)])==null?0x0:_0x34c149),_0x35f207=((_0x5b6a7f=_0x2acac8[_0x587966(0x1a3)])==null?0x0:_0x5b6a7f)-((_0x13fa01=_0x31b927[_0x587966(0x1a3)])==null?0x0:_0x13fa01),_0x38b652=this[_0x587966(0x13c)]['getDrawingData'](_0x18f484,_0x248c63);if(_0x38b652&&_0x38b652[_0x4918b1]){var _0xd85220,_0xbcb9d4,_0x1f07b1,_0x39d121;let _0x4de183=_0x38b652[_0x4918b1],_0xeaa66e={..._0x4de183['transform'],'left':((_0xd85220=(_0xbcb9d4=_0x4de183[_0x587966(0x143)])==null?void 0x0:_0xbcb9d4[_0x587966(0x1af)])==null?0x0:_0xd85220)+_0x5858ba,'top':((_0x1f07b1=(_0x39d121=_0x4de183[_0x587966(0x143)])==null?void 0x0:_0x39d121[_0x587966(0x1a3)])==null?0x0:_0x1f07b1)+_0x35f207},_0x7a8ba6=(0x0,_0x25ca33[_0x587966(0x1a4)])(_0xeaa66e,_0x1e818f),_0x4d67df=(0x0,_0x25ca33[_0x587966(0x1ba)])(_0xeaa66e,_0x1e818f),_0x232aec={'unitId':_0x18f484,'subUnitId':_0x248c63,'drawingType':_0xa7f297[_0x587966(0x1dd)]['DRAWING_SHAPE'],'drawingId':_0x4918b1,'transform':_0xeaa66e,'sheetTransform':_0x7a8ba6,'axisAlignSheetTransform':_0x4d67df},{unitId:_0x51605a,subUnitId:_0x3f6e54,undo:_0x97b2ee,redo:_0x29da18,objects:_0x4db87f}=this[_0x587966(0x13c)][_0x587966(0x15b)]([_0x232aec]);_0x364561[_0x587966(0x1cc)]({'id':_0x25ca33[_0x587966(0x19f)]['id'],'params':{'unitId':_0x51605a,'subUnitId':_0x3f6e54,'op':_0x29da18,'objects':_0x4db87f,'type':_0x25ca33[_0x587966(0x1ff)]['UPDATE']}}),_0x42b7df[_0x587966(0x1cc)]({'id':_0x25ca33['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x51605a,'subUnitId':_0x3f6e54,'op':_0x97b2ee,'objects':_0x4db87f,'type':_0x25ca33['DrawingApplyType'][_0x587966(0x175)]}});}}else{let _0x476371=_0x1c666e['getStartConnectInfo'](),_0x112af5=_0x1c666e[_0x587966(0x1bc)]();this[_0x587966(0x15d)](_0x18f484,_0x248c63,_0x4918b1,_0x1c666e,_0x476371,_0x112af5,_0x364561,_0x42b7df,_0x566eb3,_0x2acac8);}}};_0x203020=_0xd44f06([_0x359a36(0x0,_0xa7f297['ICommandService']),_0x359a36(0x1,(0x0,_0xa7f297[_0x34066d(0x1a9)])(_0x539446[_0x34066d(0x187)])),_0x359a36(0x2,(0x0,_0xa7f297[_0x34066d(0x1a9)])(_0x539446[_0x34066d(0x218)])),_0x359a36(0x3,(0x0,_0xa7f297[_0x34066d(0x1a9)])(_0xf4f77c)),_0x359a36(0x4,(0x0,_0xa7f297['Inject'])(_0x5ec541[_0x34066d(0x14b)])),_0x359a36(0x5,(0x0,_0xa7f297['Inject'])(_0x31e983[_0x34066d(0x1e4)])),_0x359a36(0x6,(0x0,_0xa7f297[_0x34066d(0x1a9)])(_0x49e0b4))],_0x203020);let _0x190d40=class extends _0xa7f297[_0x34066d(0x1ca)]{constructor(_0x19df50=_0x59092a,_0x42b1fe,_0x56b2b2){const _0x192f4b=_0x34066d;super(),this[_0x192f4b(0x137)]=_0x19df50,this[_0x192f4b(0x198)]=_0x42b1fe,this[_0x192f4b(0x12b)]=_0x56b2b2;let {..._0x16917c}=(0x0,_0xa7f297[_0x192f4b(0x1b3)])({},_0x59092a,this['_config']);this['_configService'][_0x192f4b(0x12d)]('sheets-shape.config',_0x16917c);}[_0x34066d(0x161)](){const _0x3fccd4=_0x34066d;let _0x140888=this['_injector'];[[_0x2c75b3],[_0xf4f77c],[_0x49e0b4],[_0x203020]][_0x3fccd4(0x1fe)](_0x1a592b=>_0x140888[_0x3fccd4(0x16d)](_0x1a592b)),(0x0,_0xa7f297[_0x3fccd4(0x1c7)])(_0x140888,[[_0xf4f77c],[_0x203020]]);}};_0x554fe0(_0x190d40,_0x34066d(0x154),_0xa7f297[_0x34066d(0x20a)][_0x34066d(0x163)]),_0x554fe0(_0x190d40,_0x34066d(0x1c2),'SHEET_SHAPE_PLUGIN'),_0x554fe0(_0x190d40,_0x34066d(0x1c5),_0x287ee1),_0x554fe0(_0x190d40,_0x34066d(0x1ed),_0x3021e3),_0x190d40=_0xd44f06([(0x0,_0xa7f297[_0x34066d(0x1c4)])(_0x1ea6d9['UniverLicensePlugin'],_0x31e983[_0x34066d(0x18d)]),_0x359a36(0x1,(0x0,_0xa7f297[_0x34066d(0x1a9)])(_0xa7f297[_0x34066d(0x146)])),_0x359a36(0x2,_0xa7f297[_0x34066d(0x176)])],_0x190d40),_0x42025e[_0x34066d(0x158)]=0xc8,_0x42025e[_0x34066d(0x1bf)]=0xc8,_0x42025e[_0x34066d(0x1ec)]=_0x230cdc,_0x42025e[_0x34066d(0x123)]=_0xd3002d,_0x42025e[_0x34066d(0x19e)]=_0xa468b3,_0x42025e[_0x34066d(0x121)]=_0x1fd9bb,_0x42025e['SetSheetsShapeRotateCommand']=_0x539900,_0x42025e[_0x34066d(0x14f)]=_0x2d5b38,Object[_0x34066d(0x206)](_0x42025e,_0x34066d(0x16c),{'enumerable':!0x0,'get':function(){return _0xf4f77c;}}),_0x42025e[_0x34066d(0x203)]=_0x22b430,Object[_0x34066d(0x206)](_0x42025e,_0x34066d(0x217),{'enumerable':!0x0,'get':function(){return _0x190d40;}}),_0x42025e['UpdateConnectorRelationCommand']=_0x430b70,_0x42025e[_0x34066d(0x1a8)]=_0x1e2f01,_0x42025e[_0x34066d(0x1f0)]=_0x56a7b5,_0x42025e['UpdateSheetsShapeTypeMutation']=_0x1d875d;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-shape",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
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,17 +58,18 @@
|
|
|
58
58
|
"lib"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs-pro/engine-shape": "1.0.0-alpha.
|
|
62
|
-
"@univerjs-pro/license": "1.0.0-alpha.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets": "1.0.0-alpha.
|
|
66
|
-
"@univerjs/sheets
|
|
61
|
+
"@univerjs-pro/engine-shape": "1.0.0-alpha.4",
|
|
62
|
+
"@univerjs-pro/license": "1.0.0-alpha.4",
|
|
63
|
+
"@univerjs/drawing": "1.0.0-alpha.4",
|
|
64
|
+
"@univerjs/core": "1.0.0-alpha.4",
|
|
65
|
+
"@univerjs/sheets-drawing": "1.0.0-alpha.4",
|
|
66
|
+
"@univerjs/sheets": "1.0.0-alpha.4"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"typescript": "^6.0.3",
|
|
70
70
|
"vitest": "^4.1.10",
|
|
71
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
71
|
+
"@univerjs-infra/shared": "1.0.0-alpha.4",
|
|
72
|
+
"@univerjs/engine-render": "1.0.0-alpha.4"
|
|
72
73
|
},
|
|
73
74
|
"scripts": {
|
|
74
75
|
"test": "vitest run",
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import type { ICxnShapeData, IShapeRelationItem, ShapeArrowSizeEnum, ShapeArrowTypeEnum, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import type { Injector } from '@univerjs/core';
|
|
3
|
-
import type { IShapeBuilderInfo } from './f-shape';
|
|
4
|
-
import { FShape } from './f-shape';
|
|
5
|
-
/**
|
|
6
|
-
* The connector shape builder. It extends `FShape` and adds connector-specific properties
|
|
7
|
-
* such as start/end arrow types and sizes. Use `fWorksheet.newConnector()` to create a new connector builder.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
12
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
13
|
-
* if (!fWorksheet) return;
|
|
14
|
-
*
|
|
15
|
-
* // Create a straight connector with arrows
|
|
16
|
-
* const connectorInfo = fWorksheet.newConnector()
|
|
17
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
|
|
18
|
-
* .setPosition(1, 1, 0, 0)
|
|
19
|
-
* .setWidth(200)
|
|
20
|
-
* .setHeight(100)
|
|
21
|
-
* .setStartArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
22
|
-
* .setEndArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
23
|
-
* .setStrokeColor('#000000')
|
|
24
|
-
* .setStrokeWidth(2)
|
|
25
|
-
* .build();
|
|
26
|
-
* await fWorksheet.insertShape(connectorInfo);
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare class FConnectorShape extends FShape {
|
|
30
|
-
/**
|
|
31
|
-
* @property {ICxnShapeData} shapeData The connector shape data containing line styles, arrow settings, and connection info.
|
|
32
|
-
*/
|
|
33
|
-
shapeData: ICxnShapeData;
|
|
34
|
-
constructor(unitId: string, subUnitId: string, drawingId: string, injector: Injector);
|
|
35
|
-
setShapeType(shapeType: ShapeTypeEnum): this;
|
|
36
|
-
/**
|
|
37
|
-
* Sets the start arrow type of the connector line.
|
|
38
|
-
* @param {ShapeArrowTypeEnum} arrowType The arrow type for the start point. Which can be found from `univerAPI.Enum.ShapeArrowTypeEnum`.
|
|
39
|
-
* @returns {FConnectorShape} this builder, for chaining.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
44
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
45
|
-
* if (!fWorksheet) return;
|
|
46
|
-
*
|
|
47
|
-
* const connectorInfo = fWorksheet.newConnector()
|
|
48
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
|
|
49
|
-
* .setStartArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
50
|
-
* .setPosition(1, 1, 0, 0)
|
|
51
|
-
* .build();
|
|
52
|
-
* await fWorksheet.insertShape(connectorInfo);
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
setStartArrowType(arrowType: ShapeArrowTypeEnum): this;
|
|
56
|
-
/**
|
|
57
|
-
* Sets the end arrow type of the connector line.
|
|
58
|
-
* @param {ShapeArrowTypeEnum} arrowType The arrow type for the end point. Which can be found from `univerAPI.Enum.ShapeArrowTypeEnum`.
|
|
59
|
-
* @returns {FConnectorShape} this builder, for chaining.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```ts
|
|
63
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
64
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
65
|
-
* if (!fWorksheet) return;
|
|
66
|
-
*
|
|
67
|
-
* const connectorInfo = fWorksheet.newConnector()
|
|
68
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
|
|
69
|
-
* .setEndArrowType(univerAPI.Enum.ShapeArrowTypeEnum.StealthArrow)
|
|
70
|
-
* .setPosition(1, 1, 0, 0)
|
|
71
|
-
* .build();
|
|
72
|
-
* await fWorksheet.insertShape(connectorInfo);
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
setEndArrowType(arrowType: ShapeArrowTypeEnum): this;
|
|
76
|
-
/**
|
|
77
|
-
* Sets the start arrow size of the connector line.
|
|
78
|
-
* @param {ShapeArrowSizeEnum} arrowSize The arrow size for the start point.
|
|
79
|
-
* @returns {FConnectorShape} this builder, for chaining.
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```ts
|
|
83
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
84
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
85
|
-
* if (!fWorksheet) return;
|
|
86
|
-
*
|
|
87
|
-
* const connectorInfo = fWorksheet.newConnector()
|
|
88
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
|
|
89
|
-
* .setStartArrowType(univerAPI.Enum.ShapeArrowTypeEnum.OvalArrow)
|
|
90
|
-
* .setStartArrowSize(univerAPI.Enum.ShapeArrowSizeEnum.Large)
|
|
91
|
-
* .setPosition(1, 1, 0, 0)
|
|
92
|
-
* .setWidth(200)
|
|
93
|
-
* .build();
|
|
94
|
-
* await fWorksheet.insertShape(connectorInfo);
|
|
95
|
-
* ```
|
|
96
|
-
*/
|
|
97
|
-
setStartArrowSize(arrowSize: ShapeArrowSizeEnum): this;
|
|
98
|
-
/**
|
|
99
|
-
* Sets the end arrow size of the connector line.
|
|
100
|
-
* @param {ShapeArrowSizeEnum} arrowSize The arrow size for the end point.
|
|
101
|
-
* @returns {FConnectorShape} this builder, for chaining.
|
|
102
|
-
*
|
|
103
|
-
* @example
|
|
104
|
-
* ```ts
|
|
105
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
106
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
107
|
-
* if (!fWorksheet) return;
|
|
108
|
-
*
|
|
109
|
-
* const connectorInfo = fWorksheet.newConnector()
|
|
110
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
|
|
111
|
-
* .setEndArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
112
|
-
* .setEndArrowSize(univerAPI.Enum.ShapeArrowSizeEnum.Large)
|
|
113
|
-
* .setStrokeWidth(3)
|
|
114
|
-
* .setPosition(1, 1, 0, 0)
|
|
115
|
-
* .build();
|
|
116
|
-
* await fWorksheet.insertShape(connectorInfo);
|
|
117
|
-
* ```
|
|
118
|
-
*/
|
|
119
|
-
setEndArrowSize(arrowSize: ShapeArrowSizeEnum): this;
|
|
120
|
-
/**
|
|
121
|
-
* Builds the connector shape builder info. This method does not automatically draw the connector on top of the spreadsheet.
|
|
122
|
-
* A new connector must be inserted via `fWorksheet.insertShape(shapeInfo)`.
|
|
123
|
-
* @returns {IShapeBuilderInfo} The shape builder info containing all the accumulated properties.
|
|
124
|
-
*
|
|
125
|
-
* @example
|
|
126
|
-
* ```ts
|
|
127
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
128
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
129
|
-
* if (!fWorksheet) return;
|
|
130
|
-
*
|
|
131
|
-
* const connectorInfo = fWorksheet.newConnector()
|
|
132
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
|
|
133
|
-
* .setPosition(1, 1, 0, 0)
|
|
134
|
-
* .setWidth(200)
|
|
135
|
-
* .setHeight(100)
|
|
136
|
-
* .setStartArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
137
|
-
* .setEndArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
138
|
-
* .setStrokeColor('#000000')
|
|
139
|
-
* .setStrokeWidth(2)
|
|
140
|
-
* .build();
|
|
141
|
-
* await fWorksheet.insertShape(connectorInfo);
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
build(): IShapeBuilderInfo;
|
|
145
|
-
/**
|
|
146
|
-
* Returns the end connection info for this connector shape.
|
|
147
|
-
* If this connector's end point is connected to a basic shape, returns the target shape id and connection site index.
|
|
148
|
-
* @returns {IShapeRelationItem | null} The end connection info, or `null` if not connected.
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* ```ts
|
|
152
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
153
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
154
|
-
* if (!fWorksheet) return;
|
|
155
|
-
* const shapes = fWorksheet.getShapes();
|
|
156
|
-
* const connector = shapes.find((s) => s.isLineShape());
|
|
157
|
-
*
|
|
158
|
-
* if (connector) {
|
|
159
|
-
* const endInfo = connector.getEndConnectInfo();
|
|
160
|
-
* if (endInfo) {
|
|
161
|
-
* console.log(`End connected to shape ${endInfo.shapeId} at site ${endInfo.cxnIndex}`);
|
|
162
|
-
* }
|
|
163
|
-
* }
|
|
164
|
-
* ```
|
|
165
|
-
*/
|
|
166
|
-
getEndConnectInfo(): IShapeRelationItem | null;
|
|
167
|
-
/**
|
|
168
|
-
* Returns the start connection info for this connector shape.
|
|
169
|
-
* If this connector's start point is connected to a basic shape, returns the target shape id and connection site index.
|
|
170
|
-
* @returns {IShapeRelationItem | null} The start connection info, or `null` if not connected.
|
|
171
|
-
*
|
|
172
|
-
* @example
|
|
173
|
-
* ```ts
|
|
174
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
175
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
176
|
-
* if (!fWorksheet) return;
|
|
177
|
-
* const shapes = fWorksheet.getShapes();
|
|
178
|
-
* const connector = shapes.find((s) => s.isLineShape());
|
|
179
|
-
*
|
|
180
|
-
* if (connector) {
|
|
181
|
-
* const startInfo = connector.getStartConnectInfo();
|
|
182
|
-
* if (startInfo) {
|
|
183
|
-
* console.log(`Start connected to shape ${startInfo.shapeId} at site ${startInfo.cxnIndex}`);
|
|
184
|
-
* }
|
|
185
|
-
* }
|
|
186
|
-
* ```
|
|
187
|
-
*/
|
|
188
|
-
getStartConnectInfo(): IShapeRelationItem | null;
|
|
189
|
-
}
|