@univerjs-pro/sheets-shape 1.3.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- 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/controllers/sheets-shape.controller.d.ts +4 -1
- package/lib/types/models/shape-manager.d.ts +1 -0
- package/lib/types/services/sheet-shape-services.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +13 -13
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2f27(_0x2f08aa,_0x2858df){_0x2f08aa=_0x2f08aa-0x13f;const _0x3c4380=_0x3c43();let _0x2f2701=_0x3c4380[_0x2f08aa];return _0x2f2701;}function _0x3c43(){const _0x10b661=['MUTATION','range','COMMAND','ClearSheetDrawingTransformerOperation','Tools','toJSON','SetDrawingApplyMutation','formula','DEFAULT_SHAPE_WIDTH','sheet.mutation.insert-shape','_disposed','DependentOn','isLineShape','_deserializeShapeForUnit','function','deletes','front','_instanceService','Disposable','2898404eVKwNC','top','_applyUpdate','InsertSheetsShapeMutation','shapeChanged$','constructor','getShapeDisplayNames','lineType','flatMap','INSERT','getStartConnectInfo','sin','_configService','position','redos','_getConnectPointInfo','listShapes','getBasicShapeType','getShapeTextData','fill','IUniverInstanceService','entries','setShapeType','registerPluginResource','resizeEnabled','amd','forward','setConfig','height','UniverSheetsShapePlugin','flipY','syncExecuteCommand','58125958slFevG','_linesIds','filter','onCommandExecute','relation','140854uIobLT','parse','getName','ISheetDrawingService','SheetDrawingAnchorType','ArrangeTypeEnum','createShape','pushUndoRedo','getAdjustValueByName','interceptCommand','command','_planConnector','getOwnPropertyDescriptor','updateShape','1129870GJBBzI','listShapesInUnit','_resourcesManagerService','isFrom','pluginName','angle','SetSheetDrawingCommand','_sheetInterceptorService','bringToFront','clear','setShapeData','getBasicShapeRotateBound','backward','get','_serializeShapeForUnit','_shapes','UniverCore','preRedos','getEndConnectInfo','getBatchAddOp','DEFAULT_SHAPE_HEIGHT','width','InsertSheetDrawingCommand','UniverDrawingPlugin','getSheets','_groupIds','touchDependencies','@univerjs/sheets-drawing','computeConnectorRouteLayout','originals','back','getBasicShapeRelation','_planDeletes','rotation','getCellWithCoordByIndex','toStringTag','UniverProSheetsShape','cxnIndex','forEach','ICommandService','borderEnabled','_commandService','UniverInstanceType','onStarting','unitId','1.3.1','hidden','transformToDrawingPosition','ShapeModel','SetDrawingArrangeCommand','adjustValues','UPDATE','_config','getDrawingByParam','getSheetCommandTarget','sheet.mutation.update-shape-data','8345qYcTBs','resolveShapeConnectionPoint','createFreeConnectorPointInfo','disposeWithMe','from','_drawingManagerService','getShapeDataById','@univerjs/core','ensureSkeleton','Plugin','UpdateConnectorRelationCommand','UNIVER_SHEET','1XyaAJV','onCommandExecuted','UpdateSheetsShapeDataMutation','createDefaultInsertedShapeData','_initCommandInterceptor','removeShape','transform','fromJSON','isHorizontal','updates','ang','CommandType','getLineShapeRelation','@univerjs-pro/engine-shape','shapeType','length','SHEET_SHAPE_PLUGIN','transformToAxisAlignPosition','IConfigService','472xandfI','refresh','updateContext','_initCommands','sequenceExecute','1586652FtZFcW','has','generateRandomId','sheet.command.set-shape-drawing-data','UniverSheetsDrawingPlugin','params','addShape','subUnitId','_shapeService','_sheetsShapeService','getShape','IResourceManagerService','UniverSheetsDrawing','shapeData','decorate','index','DRAWING_SHAPE','rotateEnabled','visible','merge','@univerjs-pro/sheets-shape','getDrawingData','UniverProEngineShape','deepClone','undos','point','bringForward','getShapeModel','getUnit','sheet.command.update-line-shape-resize','SheetInterceptorService','flipX','map','SetSheetsShapeTextVerticalToggleCommand','iterator','setZOrder','_shapeHostAdapterRegistry','_resolveBinding','_injector','keys','data','preUndos','set','sheet.command.toggle-shape-flip','defineProperty','UniverSheets','lineShapeId','DrawingApplyType','startX','_sheetSkeletonService','insertShape','selectable','72eCEopK','SheetsShapeService','packageName','sheet.command.insert-shape','register','RemoveSheetsShapeMutation','_addLineRerouteUpdates','left','skeleton','UniverLicensePlugin','getAdjustNames','SetShapeDrawingDataCommand','@univerjs/sheets','sendToBack','DrawingTypeEnum','drawingType','UpdateSheetsShapeTypeMutation','worldRect','registerCommand','push','hostType','Module','sheet.command.set-shape-rotate','IUndoRedoService','getShapeRelation','Inject','ToggleSheetsShapeFlipCommand','_ensureShapeModelManager','Injector','_drawingService','add','_shapeModelManagerMap','REMOVE','getShapeTypeById','dispose','toPrimitive','string','description','getBatchUpdateOp','RemoveSheetDrawingCommand','_arrange','getSkeleton','SheetSkeletonService','getShapeData','_addLineFollowShapeUpdates','3852WYORVi','values','@univerjs/drawing','3000012pKynAZ','result','object','_toSnapshot','_shapeAdapter','prototype','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','isConnectorShape','name','symbol','getShapeType','call','delete','shapeId'];_0x3c43=function(){return _0x10b661;};return _0x3c43();}(function(_0x1d1bde,_0x331ff4){const _0x82f6f5=_0x2f27,_0x3aeb3c=_0x1d1bde();while(!![]){try{const _0x497255=-parseInt(_0x82f6f5(0x194))/0x1*(parseInt(_0x82f6f5(0x231))/0x2)+parseInt(_0x82f6f5(0x210))/0x3+-parseInt(_0x82f6f5(0x20d))/0x4*(parseInt(_0x82f6f5(0x188))/0x5)+-parseInt(_0x82f6f5(0x1ac))/0x6+-parseInt(_0x82f6f5(0x142))/0x7*(parseInt(_0x82f6f5(0x1a7))/0x8)+-parseInt(_0x82f6f5(0x1e0))/0x9*(parseInt(_0x82f6f5(0x150))/0xa)+parseInt(_0x82f6f5(0x251))/0xb;if(_0x497255===_0x331ff4)break;else _0x3aeb3c['push'](_0x3aeb3c['shift']());}catch(_0x202b68){_0x3aeb3c['push'](_0x3aeb3c['shift']());}}}(_0x3c43,0xd4f05),function(_0x4859bb,_0x792d96){const _0x419f5b=_0x2f27;typeof exports=='object'&&typeof module<'u'?_0x792d96(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==_0x419f5b(0x22c)&&define[_0x419f5b(0x24a)]?define(['exports',_0x419f5b(0x1a1),_0x419f5b(0x18f),_0x419f5b(0x1ec),_0x419f5b(0x16b),'@univerjs-pro/license',_0x419f5b(0x20f)],_0x792d96):(_0x4859bb=typeof globalThis<'u'?globalThis:_0x4859bb||self,_0x792d96(_0x4859bb[_0x419f5b(0x174)]={},_0x4859bb[_0x419f5b(0x1c2)],_0x4859bb[_0x419f5b(0x160)],_0x4859bb[_0x419f5b(0x1d9)],_0x4859bb[_0x419f5b(0x1b8)],_0x4859bb['UniverProLicense'],_0x4859bb['UniverDrawing']));}(this,function(_0x4fb725,_0x2de845,_0x2e9216,_0x411fa1,_0xdfae1c,_0xbe3b32,_0x1fdd07){const _0x3ab62d=_0x2f27;Object['defineProperty'](_0x4fb725,Symbol[_0x3ab62d(0x173)],{'value':_0x3ab62d(0x1f5)});function _0x137da5(_0x364c12){'@babel/helpers - typeof';const _0x41cfe4=_0x3ab62d;return _0x137da5=typeof Symbol==_0x41cfe4(0x22c)&&typeof Symbol[_0x41cfe4(0x1ce)]==_0x41cfe4(0x219)?function(_0x1caeac){return typeof _0x1caeac;}:function(_0x18cf5e){const _0x40044a=_0x41cfe4;return _0x18cf5e&&typeof Symbol==_0x40044a(0x22c)&&_0x18cf5e[_0x40044a(0x236)]===Symbol&&_0x18cf5e!==Symbol[_0x40044a(0x215)]?'symbol':typeof _0x18cf5e;},_0x137da5(_0x364c12);}function _0x16ef69(_0x1f3678,_0x233261){const _0x2150b4=_0x3ab62d;if(_0x137da5(_0x1f3678)!=_0x2150b4(0x212)||!_0x1f3678)return _0x1f3678;var _0x160756=_0x1f3678[Symbol[_0x2150b4(0x203)]];if(_0x160756!==void 0x0){var _0x553c31=_0x160756[_0x2150b4(0x21b)](_0x1f3678,_0x233261||'default');if(_0x137da5(_0x553c31)!=_0x2150b4(0x212))return _0x553c31;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x233261===_0x2150b4(0x204)?String:Number)(_0x1f3678);}function _0x12bb5c(_0x932e5f){const _0x32c315=_0x3ab62d;var _0x4cafc2=_0x16ef69(_0x932e5f,'string');return _0x137da5(_0x4cafc2)==_0x32c315(0x219)?_0x4cafc2:_0x4cafc2+'';}function _0x7ac35f(_0x5a1d8a,_0x2e0e42,_0xa8617a){const _0x411937=_0x3ab62d;return(_0x2e0e42=_0x12bb5c(_0x2e0e42))in _0x5a1d8a?Object[_0x411937(0x1d8)](_0x5a1d8a,_0x2e0e42,{'value':_0xa8617a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5a1d8a[_0x2e0e42]=_0xa8617a,_0x5a1d8a;}var _0x24085b=class extends _0x2e9216[_0x3ab62d(0x230)]{constructor(){super(),_0x7ac35f(this,'_shapes',new Map()),_0x7ac35f(this,'_linesIds',new Set()),_0x7ac35f(this,'_groupIds',new Set());}[_0x3ab62d(0x1b2)](_0x1f57cb,_0x290434,_0x26ee5d,_0x1c315c){const _0x503774=_0x3ab62d;let _0x1c9b4d=new _0x2de845[(_0x503774(0x180))](_0x1f57cb,_0x290434,_0x26ee5d,_0x1c315c);return this[_0x503774(0x15f)][_0x503774(0x1d6)](_0x290434,_0x1c9b4d),(0x0,_0x2de845['isConnectorShape'])(_0x1f57cb)&&this[_0x503774(0x252)][_0x503774(0x1fe)](_0x290434),_0x1c9b4d;}['getBasicShapeRelation'](_0x56dad7){const _0x19789d=_0x3ab62d;let _0x14f09a=[];for(let _0x479988 of this[_0x19789d(0x252)]){let _0x11575e=this[_0x19789d(0x15f)][_0x19789d(0x15d)](_0x479988);if(_0x11575e){let _0x4b1136=_0x11575e['getShapeRelation']();if(_0x4b1136){var _0x39781a,_0xce8d34;((_0x39781a=_0x4b1136[_0x19789d(0x18c)])==null?void 0x0:_0x39781a['shapeId'])===_0x56dad7&&_0x14f09a[_0x19789d(0x1f3)]({..._0x4b1136['from'],'lineShapeId':_0x479988,'isFrom':!0x0}),((_0xce8d34=_0x4b1136['to'])==null?void 0x0:_0xce8d34[_0x19789d(0x21d)])===_0x56dad7&&_0x14f09a[_0x19789d(0x1f3)]({..._0x4b1136['to'],'lineShapeId':_0x479988,'isFrom':!0x1});}}}return _0x14f09a;}[_0x3ab62d(0x1a0)](_0x453240){const _0x4f8091=_0x3ab62d;let _0x4b1514=this['_shapes'][_0x4f8091(0x15d)](_0x453240);if(_0x4b1514)return _0x4b1514[_0x4f8091(0x1f8)]();}[_0x3ab62d(0x21a)](_0x203fd0){const _0x41cb7e=_0x3ab62d;let _0x50cf4c=this[_0x41cb7e(0x15f)][_0x41cb7e(0x15d)](_0x203fd0);if(_0x50cf4c)return _0x50cf4c[_0x41cb7e(0x21a)]();}['hasShape'](_0x190642){const _0x5343c6=_0x3ab62d;return this[_0x5343c6(0x15f)][_0x5343c6(0x1ad)](_0x190642);}[_0x3ab62d(0x237)](){const _0x3a525e=_0x3ab62d;return Array['from'](this[_0x3a525e(0x15f)]['values']())[_0x3a525e(0x1cc)](_0x499370=>_0x499370[_0x3a525e(0x144)]()||_0x499370['getId']());}[_0x3ab62d(0x199)](_0x42aa2f){const _0x3d3bca=_0x3ab62d;let _0x9e2406=this[_0x3d3bca(0x15f)][_0x3d3bca(0x15d)](_0x42aa2f);_0x9e2406&&((0x0,_0x2de845['isConnectorShape'])(_0x9e2406[_0x3d3bca(0x21a)]())&&this[_0x3d3bca(0x252)][_0x3d3bca(0x21c)](_0x42aa2f),this[_0x3d3bca(0x15f)][_0x3d3bca(0x21c)](_0x42aa2f));}[_0x3ab62d(0x223)](){const _0x511b1f=_0x3ab62d;let _0x35d0d2=[];return this['_shapes'][_0x511b1f(0x176)](_0x56d2f9=>{const _0x30b535=_0x511b1f;_0x35d0d2[_0x30b535(0x1f3)](_0x56d2f9['toJSON']());}),_0x35d0d2;}[_0x3ab62d(0x19b)](_0x4d7304){const _0x4646e6=_0x3ab62d;for(let _0x44cafd of _0x4d7304){let {id:_0xd9cfca,shapeType:_0xad09e4,name:_0x266400}=_0x44cafd,_0x59dcb3=this['addShape'](_0xad09e4,_0xd9cfca,_0x44cafd[_0x4646e6(0x1b9)],_0x266400);_0x59dcb3&&_0x59dcb3[_0x4646e6(0x22a)]()&&this[_0x4646e6(0x252)]['add'](_0xd9cfca);}}[_0x3ab62d(0x202)](){const _0x8ec81a=_0x3ab62d;this[_0x8ec81a(0x228)]||(this['_shapes'][_0x8ec81a(0x176)](_0x5b5fce=>{_0x5b5fce['dispose']();}),this[_0x8ec81a(0x15f)][_0x8ec81a(0x159)](),this['_linesIds'][_0x8ec81a(0x159)](),this[_0x8ec81a(0x169)][_0x8ec81a(0x159)](),super[_0x8ec81a(0x202)]());}};function _0x39def9(_0x2b3627,_0xd8f515){return function(_0x1efb91,_0x4d1afc){_0xd8f515(_0x1efb91,_0x4d1afc,_0x2b3627);};}function _0x44edf5(_0x1a4761,_0x50cb7b,_0x16a83d,_0x173c7a){const _0x4e8fbb=_0x3ab62d;var _0x35f8a9=arguments[_0x4e8fbb(0x1a3)],_0x10f5b9=_0x35f8a9<0x3?_0x50cb7b:_0x173c7a===null?_0x173c7a=Object[_0x4e8fbb(0x14e)](_0x50cb7b,_0x16a83d):_0x173c7a,_0x52d39c;if(typeof Reflect==_0x4e8fbb(0x212)&&typeof Reflect[_0x4e8fbb(0x1ba)]==_0x4e8fbb(0x22c))_0x10f5b9=Reflect[_0x4e8fbb(0x1ba)](_0x1a4761,_0x50cb7b,_0x16a83d,_0x173c7a);else{for(var _0xe1ca31=_0x1a4761[_0x4e8fbb(0x1a3)]-0x1;_0xe1ca31>=0x0;_0xe1ca31--)(_0x52d39c=_0x1a4761[_0xe1ca31])&&(_0x10f5b9=(_0x35f8a9<0x3?_0x52d39c(_0x10f5b9):_0x35f8a9>0x3?_0x52d39c(_0x50cb7b,_0x16a83d,_0x10f5b9):_0x52d39c(_0x50cb7b,_0x16a83d))||_0x10f5b9);}return _0x35f8a9>0x3&&_0x10f5b9&&Object['defineProperty'](_0x50cb7b,_0x16a83d,_0x10f5b9),_0x10f5b9;}let _0x46f17a=class extends _0x2e9216['Disposable']{constructor(_0x60aaaf){const _0x2e21b2=_0x3ab62d;super(),this[_0x2e21b2(0x152)]=_0x60aaaf,_0x7ac35f(this,_0x2e21b2(0x1ff),new Map()),this['_initSnapshot']();}[_0x3ab62d(0x1fb)](_0xa161cd,_0x4b4659){const _0x2be289=_0x3ab62d;let _0x189002=this[_0x2be289(0x1ff)][_0x2be289(0x15d)](_0xa161cd);_0x189002||(_0x189002=new Map(),this[_0x2be289(0x1ff)][_0x2be289(0x1d6)](_0xa161cd,_0x189002));let _0x2542e2=_0x189002[_0x2be289(0x15d)](_0x4b4659);return _0x2542e2||(_0x2542e2=new _0x24085b(),_0x189002[_0x2be289(0x1d6)](_0x4b4659,_0x2542e2)),_0x2542e2;}[_0x3ab62d(0x1de)](_0x4c05e1,_0x45622,_0x2f4eb7,_0x154d76,_0x439b4e,_0x2d0ca2){const _0x13ca64=_0x3ab62d;this[_0x13ca64(0x1fb)](_0x4c05e1,_0x45622)[_0x13ca64(0x1b2)](_0x2f4eb7,_0x154d76,_0x439b4e,_0x2d0ca2);}[_0x3ab62d(0x199)](_0x22f61a,_0x47ede9,_0x1acbab){const _0x51b6fd=_0x3ab62d;this[_0x51b6fd(0x1fb)](_0x22f61a,_0x47ede9)[_0x51b6fd(0x199)](_0x1acbab);}[_0x3ab62d(0x242)](_0x4bc382,_0x38bbf4,_0x50cd22){const _0x2de8e3=_0x3ab62d;return this['_ensureShapeModelManager'](_0x4bc382,_0x38bbf4)[_0x2de8e3(0x21a)](_0x50cd22);}[_0x3ab62d(0x21a)](_0x292432,_0x1093bd,_0x1459e9){const _0x18f341=_0x3ab62d;return this[_0x18f341(0x1fb)](_0x292432,_0x1093bd)[_0x18f341(0x21a)](_0x1459e9);}['hasShape'](_0x5f52a5,_0x347c30,_0x5addd4){const _0x201dcd=_0x3ab62d;return this[_0x201dcd(0x1fb)](_0x5f52a5,_0x347c30)['hasShape'](_0x5addd4);}[_0x3ab62d(0x201)](_0x39dcb0,_0x4bab27,_0x1d0beb){const _0x21f825=_0x3ab62d;return this[_0x21f825(0x1fb)](_0x39dcb0,_0x4bab27)[_0x21f825(0x21a)](_0x1d0beb);}[_0x3ab62d(0x18e)](_0x3c10ad,_0x1a50df,_0x359f23){const _0x71ccec=_0x3ab62d;let _0x3a3c60=this[_0x71ccec(0x1fb)](_0x3c10ad,_0x1a50df);if(!_0x3a3c60[_0x71ccec(0x21a)](_0x359f23))return;let _0x31ad87=_0x3a3c60[_0x71ccec(0x15f)][_0x71ccec(0x15d)](_0x359f23);if(_0x31ad87)return _0x31ad87[_0x71ccec(0x20b)]();}[_0x3ab62d(0x237)](_0x3c4f96,_0x209765){const _0x233941=_0x3ab62d;return this[_0x233941(0x1fb)](_0x3c4f96,_0x209765)[_0x233941(0x237)]();}[_0x3ab62d(0x1c7)](_0x4fe815,_0x35bdf1,_0x20b206){const _0xb1d1eb=_0x3ab62d;return this[_0xb1d1eb(0x1fb)](_0x4fe815,_0x35bdf1)[_0xb1d1eb(0x15f)][_0xb1d1eb(0x15d)](_0x20b206);}[_0x3ab62d(0x16f)](_0x165478,_0x34795e,_0x30984e){const _0x102bef=_0x3ab62d;return this['_ensureShapeModelManager'](_0x165478,_0x34795e)[_0x102bef(0x16f)](_0x30984e);}['getLineShapeRelation'](_0x5f29f6,_0x56abfa,_0x42d9f9){const _0xfe1f20=_0x3ab62d;let _0x162247=this[_0xfe1f20(0x1fb)](_0x5f29f6,_0x56abfa)[_0xfe1f20(0x15f)]['get'](_0x42d9f9);if(_0x162247)return _0x162247[_0xfe1f20(0x1f8)]();}[_0x3ab62d(0x247)](){}[_0x3ab62d(0x15e)](_0x1d3f04){const _0x26e8f5=_0x3ab62d;let _0x3b4074={},_0x4155af=this['_shapeModelManagerMap'][_0x26e8f5(0x15d)](_0x1d3f04);return _0x4155af&&_0x4155af['forEach']((_0xfe5dc,_0x4a43c2)=>{const _0x431a9a=_0x26e8f5;let _0x4a18b9=_0xfe5dc[_0x431a9a(0x223)]();_0x4a18b9[_0x431a9a(0x1a3)]>0x0&&(_0x3b4074[_0x4a43c2]=_0x4a18b9);}),JSON['stringify'](_0x3b4074);}[_0x3ab62d(0x22b)](_0x4631f5,_0x31fc59){const _0x3fff89=_0x3ab62d;Object[_0x3fff89(0x1d3)](_0x31fc59)[_0x3fff89(0x176)](_0x262a8d=>{const _0x34378a=_0x3fff89;this[_0x34378a(0x1fb)](_0x4631f5,_0x262a8d)[_0x34378a(0x19b)](_0x31fc59[_0x262a8d]);});}['toJSON'](){const _0x3f33b6=_0x3ab62d;let _0x406717={};return this[_0x3f33b6(0x1ff)][_0x3f33b6(0x176)]((_0x49da8a,_0x22c039)=>{const _0x4001c2=_0x3f33b6;_0x406717[_0x22c039]={},_0x49da8a[_0x4001c2(0x176)]((_0xd5733f,_0x303d75)=>{const _0x5f1a83=_0x4001c2;_0x406717[_0x22c039][_0x303d75]=_0xd5733f[_0x5f1a83(0x223)]();});}),_0x406717;}[_0x3ab62d(0x19b)](_0xc931d){const _0x1c22c5=_0x3ab62d;Object['keys'](_0xc931d)[_0x1c22c5(0x176)](_0x3c3647=>{const _0x4db9f9=_0x1c22c5;let _0x50d4bf=_0xc931d[_0x3c3647];Object[_0x4db9f9(0x1d3)](_0x50d4bf)[_0x4db9f9(0x176)](_0x15e9bb=>{const _0x3b2d53=_0x4db9f9;this['_ensureShapeModelManager'](_0x3c3647,_0x15e9bb)[_0x3b2d53(0x19b)](_0x50d4bf[_0x15e9bb]);});});}['_initSnapshot'](){const _0xb6fd7b=_0x3ab62d;this[_0xb6fd7b(0x152)][_0xb6fd7b(0x248)]({'pluginName':_0xb6fd7b(0x1a4),'businesses':[_0x2e9216[_0xb6fd7b(0x17a)][_0xb6fd7b(0x193)]],'toJson':_0x1e0d72=>this['_serializeShapeForUnit'](_0x1e0d72),'parseJson':_0x251d8d=>JSON[_0xb6fd7b(0x143)](_0x251d8d),'onLoad':(_0x43f00a,_0x390cde)=>{const _0x1ba617=_0xb6fd7b;this[_0x1ba617(0x22b)](_0x43f00a,_0x390cde);},'onUnLoad':_0x2b0043=>{const _0x1cb4ad=_0xb6fd7b;let _0x41cf27=this['_shapeModelManagerMap']['get'](_0x2b0043);_0x41cf27&&(_0x41cf27[_0x1cb4ad(0x176)](_0xf66546=>{const _0x169108=_0x1cb4ad;_0xf66546[_0x169108(0x202)]();}),this['_shapeModelManagerMap']['delete'](_0x2b0043));}});}[_0x3ab62d(0x202)](){const _0x1225a3=_0x3ab62d;this['_shapeModelManagerMap'][_0x1225a3(0x176)](_0x386d0d=>{const _0x262029=_0x1225a3;_0x386d0d[_0x262029(0x176)](_0x436c8b=>{const _0x571bdc=_0x262029;_0x436c8b[_0x571bdc(0x202)]();});});}};_0x46f17a=_0x44edf5([_0x39def9(0x0,_0x2e9216[_0x3ab62d(0x1b7)])],_0x46f17a);let _0x248625={'id':_0x3ab62d(0x227),'type':_0x2e9216[_0x3ab62d(0x19f)][_0x3ab62d(0x21e)],'handler':(_0x40c896,_0x31b17f)=>{const _0x42cb40=_0x3ab62d;let {unitId:_0x2237e0,subUnitId:_0x203f8a,shapeType:_0x1871c8,shapeId:_0x530fa4,shapeName:_0x19c696,shapeData:_0x4779c9}=_0x31b17f;return _0x40c896['get'](_0x46f17a)[_0x42cb40(0x1de)](_0x2237e0,_0x203f8a,_0x1871c8,_0x530fa4,_0x2e9216['Tools'][_0x42cb40(0x1c3)](_0x4779c9),_0x19c696),!0x0;}},_0x1d33d0={'id':'sheet.mutation.remove-shape','type':_0x2e9216[_0x3ab62d(0x19f)][_0x3ab62d(0x21e)],'handler':(_0x4f4043,_0xf2940f)=>{const _0x270044=_0x3ab62d;let {unitId:_0x273db1,subUnitId:_0x1f02bc,shapeId:_0x5956ef}=_0xf2940f;return _0x4f4043[_0x270044(0x15d)](_0x46f17a)[_0x270044(0x199)](_0x273db1,_0x1f02bc,_0x5956ef),!0x0;}},_0x256812={'type':_0x2e9216['CommandType'][_0x3ab62d(0x220)],'id':_0x3ab62d(0x1e3),'handler':(_0x4e71d6,_0x26d355)=>{const _0x351204=_0x3ab62d;let _0x298f60=(0x0,_0x411fa1[_0x351204(0x186)])(_0x4e71d6[_0x351204(0x15d)](_0x2e9216[_0x351204(0x245)]),_0x26d355);if(!_0x298f60)return!0x1;let _0x200591=_0x4e71d6['get'](_0x411fa1[_0x351204(0x20a)]),{unitId:_0x4a111b,subUnitId:_0x310f81}=_0x298f60,_0x220554=_0x200591[_0x351204(0x190)](_0x4a111b,_0x310f81);if(!_0x220554)return!0x1;let _0x5c0fc=_0x4e71d6[_0x351204(0x15d)](_0x2e9216[_0x351204(0x177)]),_0x31cd9c=_0x4e71d6[_0x351204(0x15d)](_0x2e9216[_0x351204(0x1f7)]),_0x393dcc=_0x4e71d6['get'](_0x411fa1[_0x351204(0x1ca)]),_0x2e8fc9=_0x4e71d6[_0x351204(0x15d)](_0xdfae1c[_0x351204(0x145)]),_0x3b4398=_0x4e71d6['get'](_0x46f17a),{shapeType:_0x5d7dd7}=_0x26d355,_0xc8253e=_0x26d355[_0x351204(0x1b9)]??(0x0,_0x2de845[_0x351204(0x197)])(_0x5d7dd7),_0x375697=_0x26d355['shapeId']||(0x0,_0x2e9216['generateRandomId'])(),_0x5aea63={'unitId':_0x4a111b,'subUnitId':_0x310f81,'shapeId':_0x375697,'shapeName':_0x26d355['shapeName']??(0x0,_0x2de845['createUniqueShapeName'])(_0x5d7dd7,_0x3b4398['getShapeDisplayNames'](_0x4a111b,_0x310f81)),'shapeType':_0x5d7dd7,'shapeData':_0xc8253e},_0x5acc65=_0x26d355[_0x351204(0x165)]||0xc8,_0x1c956e=_0x26d355[_0x351204(0x24d)]||0xc8,_0xed6343=0x0,_0x3ccb9c=0x0;if(_0x26d355['position']){let {x:_0x41526e,y:_0xa40368}=_0x26d355[_0x351204(0x23e)];_0xed6343=_0x41526e,_0x3ccb9c=_0xa40368;}else{if(_0x26d355[_0x351204(0x21f)]){let {startRow:_0x54f418,startColumn:_0x383ac7}=_0x26d355[_0x351204(0x21f)],_0x1d20a3=_0x220554[_0x351204(0x172)](_0x54f418,_0x383ac7);_0xed6343=_0x1d20a3[_0x351204(0x1dc)]+0xa,_0x3ccb9c=_0x1d20a3['startY']+0xa;}}let _0x2f8c13={'left':_0xed6343,'top':_0x3ccb9c,'width':_0x5acc65,'height':_0x1c956e,'angle':_0x26d355['rotation']??0x0,'flipX':_0x26d355[_0x351204(0x1cb)]??!0x1,'flipY':_0x26d355[_0x351204(0x24f)]??!0x1},_0x1c6ad0=(0x0,_0xdfae1c[_0x351204(0x17f)])(_0x2f8c13,_0x220554),_0x14776b=(0x0,_0xdfae1c['transformToAxisAlignPosition'])(_0x2f8c13,_0x220554),_0x3c83ff={'unitId':_0x4a111b,'subUnitId':_0x310f81,'drawingId':_0x375697,'drawingType':_0x2e9216[_0x351204(0x1ee)][_0x351204(0x1bc)],'anchorType':_0xdfae1c[_0x351204(0x146)]['Both'],'name':_0x26d355[_0x351204(0x218)],'description':_0x26d355[_0x351204(0x205)],'sheetTransform':_0x1c6ad0,'transform':_0x2f8c13,'data':{'shapeType':_0x5d7dd7,'shapeData':_0xc8253e},'axisAlignSheetTransform':_0x14776b,'allowTransform':!0x0,'hidden':_0x26d355['visible']===!0x1,'selectable':_0x26d355['selectable']??!0x0};(0x0,_0x2de845[_0x351204(0x217)])(_0x5d7dd7)&&(_0x3c83ff[_0x351204(0x1d4)][_0x351204(0x244)]=!0x1,_0x3c83ff['data'][_0x351204(0x1bd)]=!0x1,_0x3c83ff[_0x351204(0x1d4)][_0x351204(0x249)]=!0x1,_0x3c83ff[_0x351204(0x1d4)]['borderEnabled']=!0x1,_0x3c83ff[_0x351204(0x19a)]['rotateEnabled']=!0x1,_0x3c83ff[_0x351204(0x19a)][_0x351204(0x249)]=!0x1,_0x3c83ff[_0x351204(0x19a)][_0x351204(0x178)]=!0x1);let {undo:_0x590d36,redo:_0x13072b,objects:_0x557226}=_0x2e8fc9[_0x351204(0x163)]([_0x3c83ff]),_0x2822e2=_0x393dcc[_0x351204(0x140)]({'id':_0xdfae1c[_0x351204(0x166)]['id'],'params':{'unitId':_0x4a111b,'drawings':[_0x3c83ff]}}),_0x4d735b=[..._0x2822e2['preRedos']??[],{'id':_0xdfae1c['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4a111b,'subUnitId':_0x310f81,'op':_0x13072b,'objects':_0x557226,'type':_0xdfae1c['DrawingApplyType'][_0x351204(0x23a)]}},{'id':_0xdfae1c[_0x351204(0x221)]['id'],'params':[_0x4a111b]},..._0x2822e2['redos'],{'id':_0x248625['id'],'params':_0x5aea63}],_0x336955=[{'id':_0x1d33d0['id'],'params':{'unitId':_0x4a111b,'subUnitId':_0x310f81,'shapeId':_0x375697}},..._0x2822e2[_0x351204(0x1d5)]??[],{'id':_0xdfae1c['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4a111b,'subUnitId':_0x310f81,'op':_0x590d36,'objects':_0x557226,'type':_0xdfae1c[_0x351204(0x1db)][_0x351204(0x200)]}},{'id':_0xdfae1c[_0x351204(0x221)]['id'],'params':[_0x4a111b]},..._0x2822e2[_0x351204(0x1c4)]];return(0x0,_0x2e9216[_0x351204(0x1ab)])(_0x4d735b,_0x5c0fc)[_0x351204(0x211)]?(_0x31cd9c[_0x351204(0x149)]({'unitID':_0x4a111b,'undoMutations':_0x336955,'redoMutations':_0x4d735b}),!0x0):!0x1;}},_0x3f9fc3={'id':_0x3ab62d(0x187),'type':_0x2e9216[_0x3ab62d(0x19f)][_0x3ab62d(0x21e)],'handler':(_0x52b3b5,_0x444433)=>{const _0x4f949e=_0x3ab62d;let {unitId:_0x56ab3a,subUnitId:_0x2bd485,shapeType:_0xb1c7de,shapeId:_0x55be85,shapeData:_0x5074c4,replace:_0x20d31b,formulaLastValueGuard:_0x29852a}=_0x444433,_0x457d5f=_0x52b3b5[_0x4f949e(0x15d)](_0x46f17a)['getShapeModel'](_0x56ab3a,_0x2bd485,_0x55be85);if(_0x457d5f){var _0x8beade;if(!(0x0,_0x2de845['canApplyShapeFormulaLastValue'])(_0x52b3b5,{'hostType':_0x2e9216[_0x4f949e(0x17a)][_0x4f949e(0x193)],'unitId':_0x56ab3a,'subUnitId':_0x2bd485,'shapeId':_0x55be85},(_0x8beade=_0x457d5f[_0x4f949e(0x20b)]()['formulaBinding'])==null?void 0x0:_0x8beade[_0x4f949e(0x225)],_0x29852a))return!0x0;_0xb1c7de!==void 0x0&&_0x457d5f[_0x4f949e(0x247)](_0xb1c7de),_0x5074c4&&(_0x457d5f==null||_0x457d5f[_0x4f949e(0x15a)](_0x2e9216[_0x4f949e(0x222)][_0x4f949e(0x1c3)](_0x5074c4),!_0x20d31b));}return!0x0;}},_0x4b6118={'type':_0x2e9216[_0x3ab62d(0x19f)]['COMMAND'],'id':_0x3ab62d(0x1af),'handler':(_0x58772f,_0x17deba)=>{const _0x567ddc=_0x3ab62d;let _0x6092dd=(0x0,_0x411fa1[_0x567ddc(0x186)])(_0x58772f[_0x567ddc(0x15d)](_0x2e9216[_0x567ddc(0x245)]),_0x17deba);if(!_0x6092dd)return!0x1;let _0x3c2711=_0x58772f[_0x567ddc(0x15d)](_0x411fa1['SheetSkeletonService']),{unitId:_0x4eba52,subUnitId:_0x447060}=_0x6092dd,_0x39ac66=_0x3c2711[_0x567ddc(0x190)](_0x4eba52,_0x447060);if(!_0x39ac66)return!0x1;let _0x397ff3=_0x58772f[_0x567ddc(0x15d)](_0x46f17a),{shapeId:_0x26770f,shapeType:_0x2fd92c,shapeData:_0x588466,position:_0x1b6afc,width:_0x58ad46,height:_0x448a56}=_0x17deba,_0x42253d=_0x397ff3[_0x567ddc(0x1c7)](_0x4eba52,_0x447060,_0x26770f);if(!_0x42253d)return!0x1;let _0x26e436=_0x58772f[_0x567ddc(0x15d)](_0x2e9216[_0x567ddc(0x177)]),_0x5b1b77=_0x58772f['get'](_0x2e9216['IUndoRedoService']),_0x51196a=_0x58772f[_0x567ddc(0x15d)](_0x411fa1[_0x567ddc(0x1ca)]),_0x17123a=_0x58772f[_0x567ddc(0x15d)](_0xdfae1c['ISheetDrawingService']),_0x20f993={'unitId':_0x4eba52,'subUnitId':_0x447060,'shapeId':_0x26770f,'shapeType':_0x2fd92c,'shapeData':_0x588466,'replace':!0x0},_0x51b6f2=_0x42253d['getShapeType'](),_0xad67d5=_0x42253d[_0x567ddc(0x20b)](),{x:_0x3a50d9,y:_0x2db966}=_0x1b6afc,_0x22cada={'left':_0x3a50d9,'top':_0x2db966,'width':_0x58ad46,'height':_0x448a56,'angle':_0x17deba['rotation']??0x0,'flipX':_0x17deba[_0x567ddc(0x1cb)]??!0x1,'flipY':_0x17deba[_0x567ddc(0x24f)]??!0x1},_0x5c2a12=(0x0,_0xdfae1c[_0x567ddc(0x17f)])(_0x22cada,_0x39ac66),_0x570658=(0x0,_0xdfae1c[_0x567ddc(0x1a5)])(_0x22cada,_0x39ac66),_0x525dfa={'unitId':_0x4eba52,'subUnitId':_0x447060,'drawingId':_0x26770f,'drawingType':_0x2e9216[_0x567ddc(0x1ee)][_0x567ddc(0x1bc)],'name':_0x17deba[_0x567ddc(0x218)],'description':_0x17deba[_0x567ddc(0x205)],'sheetTransform':_0x5c2a12,'transform':_0x22cada,'data':{'shapeType':_0x2fd92c,'shapeData':_0x588466},'axisAlignSheetTransform':_0x570658,'allowTransform':!0x0,'hidden':!_0x17deba[_0x567ddc(0x1be)],'selectable':_0x17deba[_0x567ddc(0x1df)]};(0x0,_0x2de845['isConnectorShape'])(_0x2fd92c)&&(_0x525dfa[_0x567ddc(0x1d4)]['fill']=!0x1,_0x525dfa[_0x567ddc(0x1d4)]['rotateEnabled']=!0x1,_0x525dfa[_0x567ddc(0x1d4)][_0x567ddc(0x249)]=!0x1,_0x525dfa[_0x567ddc(0x1d4)]['borderEnabled']=!0x1,_0x525dfa[_0x567ddc(0x19a)][_0x567ddc(0x1bd)]=!0x1,_0x525dfa[_0x567ddc(0x19a)][_0x567ddc(0x249)]=!0x1,_0x525dfa[_0x567ddc(0x19a)][_0x567ddc(0x178)]=!0x1);let {undo:_0x512037,redo:_0x52f2e0,objects:_0x3aa3a7}=_0x17123a['getBatchUpdateOp']([_0x525dfa]),_0x4b573f=_0x51196a[_0x567ddc(0x140)]({'id':_0xdfae1c[_0x567ddc(0x156)]['id'],'params':{'unitId':_0x4eba52,'drawings':[_0x525dfa]}}),_0x45dd43=[..._0x4b573f[_0x567ddc(0x161)]??[],{'id':_0xdfae1c[_0x567ddc(0x224)]['id'],'params':{'unitId':_0x4eba52,'subUnitId':_0x447060,'op':_0x52f2e0,'objects':_0x3aa3a7,'type':_0xdfae1c[_0x567ddc(0x1db)][_0x567ddc(0x183)]}},{'id':_0xdfae1c[_0x567ddc(0x221)]['id'],'params':[_0x4eba52]},..._0x4b573f[_0x567ddc(0x23f)],{'id':_0x3f9fc3['id'],'params':_0x20f993}],_0x86224d=[..._0x4b573f[_0x567ddc(0x1d5)]??[],{'id':_0xdfae1c[_0x567ddc(0x224)]['id'],'params':{'unitId':_0x4eba52,'subUnitId':_0x447060,'op':_0x512037,'objects':_0x3aa3a7,'type':_0xdfae1c['DrawingApplyType'][_0x567ddc(0x183)]}},{'id':_0xdfae1c[_0x567ddc(0x221)]['id'],'params':[_0x4eba52]},..._0x4b573f['undos'],{'id':_0x3f9fc3['id'],'params':{'unitId':_0x4eba52,'subUnitId':_0x447060,'shapeType':_0x51b6f2,'shapeId':_0x26770f,'shapeData':_0xad67d5,'replace':!0x0}}];return(0x0,_0x2e9216[_0x567ddc(0x1ab)])(_0x45dd43,_0x26e436)[_0x567ddc(0x211)]?(_0x5b1b77['pushUndoRedo']({'unitID':_0x4eba52,'undoMutations':_0x86224d,'redoMutations':_0x45dd43}),!0x0):!0x1;}},_0x2539ce={'type':_0x2e9216[_0x3ab62d(0x19f)][_0x3ab62d(0x220)],'id':_0x3ab62d(0x1d7),'handler':(_0xaa0db4,_0x4c10f8)=>{const _0x519b8a=_0x3ab62d;let _0x14530e=(0x0,_0x411fa1[_0x519b8a(0x186)])(_0xaa0db4[_0x519b8a(0x15d)](_0x2e9216[_0x519b8a(0x245)]),_0x4c10f8);if(!_0x14530e)return!0x1;let _0x1e2ed5=_0xaa0db4['get'](_0x411fa1[_0x519b8a(0x20a)]),{unitId:_0x135be3,subUnitId:_0x2ef4e0}=_0x14530e,_0x3a2521=_0x1e2ed5[_0x519b8a(0x209)](_0x135be3,_0x2ef4e0);if(!_0x3a2521)return!0x1;let _0x716e99=_0xaa0db4[_0x519b8a(0x15d)](_0xdfae1c['ISheetDrawingService']),{shapeId:_0x326b53,flipH:_0x39adcc,flipV:_0x66d8c0}=_0x4c10f8,_0x2acdc9=_0x716e99['getDrawingByParam']({'unitId':_0x135be3,'subUnitId':_0x2ef4e0,'drawingId':_0x326b53});if(!_0x2acdc9)return!0x1;let _0x4cd887=_0xaa0db4[_0x519b8a(0x15d)](_0x46f17a)[_0x519b8a(0x1c7)](_0x135be3,_0x2ef4e0,_0x326b53);if(!_0x4cd887)return!0x1;let _0x2e2bac=_0xaa0db4[_0x519b8a(0x15d)](_0x2e9216[_0x519b8a(0x177)]),_0x254287=_0xaa0db4[_0x519b8a(0x15d)](_0x2e9216[_0x519b8a(0x1f7)]),_0x3c1af2=_0xaa0db4[_0x519b8a(0x15d)](_0x411fa1['SheetInterceptorService']),_0x4bb346={..._0x2acdc9[_0x519b8a(0x19a)]};_0x39adcc!==void 0x0&&(_0x4bb346['flipX']=!_0x4bb346[_0x519b8a(0x1cb)]),_0x66d8c0!==void 0x0&&(_0x4bb346[_0x519b8a(0x24f)]=!_0x4bb346[_0x519b8a(0x24f)]);let _0x5698b9=(0x0,_0xdfae1c[_0x519b8a(0x17f)])(_0x4bb346,_0x3a2521),_0x9d75ed=(0x0,_0xdfae1c[_0x519b8a(0x1a5)])(_0x4bb346,_0x3a2521),_0x5dfdfe=_0x4cd887['getShapeType'](),_0xe83e4c=_0x4cd887[_0x519b8a(0x20b)](),_0xc48951={'unitId':_0x135be3,'subUnitId':_0x2ef4e0,'drawingId':_0x326b53,'drawingType':_0x2e9216[_0x519b8a(0x1ee)][_0x519b8a(0x1bc)],'sheetTransform':_0x5698b9,'transform':_0x4bb346,'data':{'shapeType':_0x5dfdfe,'shapeData':_0xe83e4c},'axisAlignSheetTransform':_0x9d75ed,'allowTransform':!0x0},{undo:_0x2c054e,redo:_0x4edc8e,objects:_0x4f8921}=_0x716e99['getBatchUpdateOp']([_0xc48951]),_0x445824=_0x3c1af2[_0x519b8a(0x140)]({'id':_0xdfae1c[_0x519b8a(0x156)]['id'],'params':{'unitId':_0x135be3,'drawings':[_0xc48951]}}),_0x3c2a05=[..._0x445824[_0x519b8a(0x161)]??[],{'id':_0xdfae1c[_0x519b8a(0x224)]['id'],'params':{'unitId':_0x135be3,'subUnitId':_0x2ef4e0,'op':_0x4edc8e,'objects':_0x4f8921,'type':_0xdfae1c['DrawingApplyType'][_0x519b8a(0x183)]}},{'id':_0xdfae1c['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x135be3]},..._0x445824['redos']],_0x1d8190=[..._0x445824[_0x519b8a(0x1d5)]??[],{'id':_0xdfae1c[_0x519b8a(0x224)]['id'],'params':{'unitId':_0x135be3,'subUnitId':_0x2ef4e0,'op':_0x2c054e,'objects':_0x4f8921,'type':_0xdfae1c[_0x519b8a(0x1db)][_0x519b8a(0x183)]}},{'id':_0xdfae1c[_0x519b8a(0x221)]['id'],'params':[_0x135be3]},..._0x445824['undos']];if((0x0,_0x2de845[_0x519b8a(0x217)])(_0x5dfdfe)){let _0x56dbf9=_0x4cd887[_0x519b8a(0x1f8)]();if(_0x56dbf9){let _0x30235f={..._0x56dbf9};_0x30235f[_0x519b8a(0x18c)]=void 0x0,_0x30235f['to']=void 0x0,_0x3c2a05[_0x519b8a(0x1f3)]({'id':_0x3f9fc3['id'],'params':{'unitId':_0x135be3,'subUnitId':_0x2ef4e0,'shapeId':_0x326b53,'shapeType':_0x5dfdfe,'shapeData':{'relation':_0x30235f}}}),_0x1d8190[_0x519b8a(0x1f3)]({'id':_0x3f9fc3['id'],'params':{'unitId':_0x135be3,'subUnitId':_0x2ef4e0,'shapeId':_0x326b53,'shapeType':_0x5dfdfe,'shapeData':{'relation':_0x56dbf9}}});}}return(0x0,_0x2e9216[_0x519b8a(0x1ab)])(_0x3c2a05,_0x2e2bac)[_0x519b8a(0x211)]?(_0x254287[_0x519b8a(0x149)]({'unitID':_0x135be3,'undoMutations':_0x1d8190,'redoMutations':_0x3c2a05}),!0x0):!0x1;}},_0x3c907e={'type':_0x2e9216[_0x3ab62d(0x19f)]['COMMAND'],'id':_0x3ab62d(0x1f6),'handler':(_0x215d87,_0x42808a)=>{const _0x8b0459=_0x3ab62d;let _0x49546c=(0x0,_0x411fa1[_0x8b0459(0x186)])(_0x215d87['get'](_0x2e9216[_0x8b0459(0x245)]),_0x42808a);if(!_0x49546c)return!0x1;let _0x4fe626=_0x215d87[_0x8b0459(0x15d)](_0x411fa1[_0x8b0459(0x20a)]),{unitId:_0x3d9679,subUnitId:_0x4c5a50}=_0x49546c,_0x4836b3=_0x4fe626[_0x8b0459(0x209)](_0x3d9679,_0x4c5a50);if(!_0x4836b3)return!0x1;let _0x4fc10f=_0x215d87[_0x8b0459(0x15d)](_0xdfae1c[_0x8b0459(0x145)]),{shapeId:_0x107bd5,rotate:_0x2fc6d2}=_0x42808a,_0x426ca3=_0x4fc10f[_0x8b0459(0x185)]({'unitId':_0x3d9679,'subUnitId':_0x4c5a50,'drawingId':_0x107bd5});if(!_0x426ca3)return!0x1;let _0x5750cd=_0x215d87[_0x8b0459(0x15d)](_0x46f17a)['getShapeModel'](_0x3d9679,_0x4c5a50,_0x107bd5);if(!_0x5750cd)return!0x1;let _0x4f2fa9=_0x215d87[_0x8b0459(0x15d)](_0x2e9216[_0x8b0459(0x177)]),_0x4301be=_0x215d87[_0x8b0459(0x15d)](_0x2e9216[_0x8b0459(0x1f7)]),_0x14826c=_0x215d87[_0x8b0459(0x15d)](_0x411fa1[_0x8b0459(0x1ca)]),_0x1f5137={..._0x426ca3[_0x8b0459(0x19a)]};_0x2fc6d2!==void 0x0&&(_0x1f5137[_0x8b0459(0x155)]=(_0x1f5137[_0x8b0459(0x155)]||0x0)+_0x2fc6d2);let _0x38f1fa=(0x0,_0xdfae1c[_0x8b0459(0x17f)])(_0x1f5137,_0x4836b3),_0x3abeb1=(0x0,_0xdfae1c[_0x8b0459(0x1a5)])(_0x1f5137,_0x4836b3),_0x16416f=_0x5750cd[_0x8b0459(0x21a)](),_0x4ba9f3=_0x5750cd[_0x8b0459(0x20b)](),_0x1b4403={'unitId':_0x3d9679,'subUnitId':_0x4c5a50,'drawingId':_0x107bd5,'drawingType':_0x2e9216[_0x8b0459(0x1ee)][_0x8b0459(0x1bc)],'sheetTransform':_0x38f1fa,'transform':_0x1f5137,'data':{'shapeType':_0x16416f,'shapeData':_0x4ba9f3},'axisAlignSheetTransform':_0x3abeb1,'allowTransform':!0x0},{undo:_0x10cfdb,redo:_0x3bab14,objects:_0x131fc4}=_0x4fc10f['getBatchUpdateOp']([_0x1b4403]),_0x5394dd=_0x14826c[_0x8b0459(0x140)]({'id':_0xdfae1c['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x3d9679,'drawings':[_0x1b4403]}}),_0x223ad8=[..._0x5394dd[_0x8b0459(0x161)]??[],{'id':_0xdfae1c[_0x8b0459(0x224)]['id'],'params':{'unitId':_0x3d9679,'subUnitId':_0x4c5a50,'op':_0x3bab14,'objects':_0x131fc4,'type':_0xdfae1c[_0x8b0459(0x1db)][_0x8b0459(0x183)]}},{'id':_0xdfae1c['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x3d9679]},..._0x5394dd['redos']],_0x44d32d=[..._0x5394dd['preUndos']??[],{'id':_0xdfae1c['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3d9679,'subUnitId':_0x4c5a50,'op':_0x10cfdb,'objects':_0x131fc4,'type':_0xdfae1c[_0x8b0459(0x1db)][_0x8b0459(0x183)]}},{'id':_0xdfae1c[_0x8b0459(0x221)]['id'],'params':[_0x3d9679]},..._0x5394dd[_0x8b0459(0x1c4)]];return(0x0,_0x2e9216['sequenceExecute'])(_0x223ad8,_0x4f2fa9)[_0x8b0459(0x211)]?(_0x4301be[_0x8b0459(0x149)]({'unitID':_0x3d9679,'undoMutations':_0x44d32d,'redoMutations':_0x223ad8}),!0x0):!0x1;}},_0x3a51f9={'type':_0x2e9216['CommandType']['COMMAND'],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0xf4c202,_0x4fe934)=>{const _0x640c11=_0x3ab62d;let _0x27b19a=(0x0,_0x411fa1['getSheetCommandTarget'])(_0xf4c202[_0x640c11(0x15d)](_0x2e9216[_0x640c11(0x245)]),_0x4fe934);if(!_0x27b19a)return!0x1;let {unitId:_0x5a0e1a,subUnitId:_0x3ef3ed}=_0x27b19a,{shapeId:_0x4cf214}=_0x4fe934,_0x35cd1e=_0xf4c202[_0x640c11(0x15d)](_0x46f17a)[_0x640c11(0x1c7)](_0x5a0e1a,_0x3ef3ed,_0x4cf214);if(!_0x35cd1e)return!0x1;let _0x4c79ca=_0x35cd1e[_0x640c11(0x243)](),_0x5b1114=(_0x4c79ca==null?void 0x0:_0x4c79ca[_0x640c11(0x19c)])??!0x0,_0x3183c5=!_0x5b1114,_0x3f32ae=_0xf4c202[_0x640c11(0x15d)](_0x2e9216[_0x640c11(0x177)]),_0x1329a0=_0xf4c202[_0x640c11(0x15d)](_0x2e9216[_0x640c11(0x1f7)]),_0x553e75={'unitId':_0x5a0e1a,'subUnitId':_0x3ef3ed,'shapeId':_0x4cf214,'shapeData':{'shapeText':{'isHorizontal':_0x3183c5}}},_0x15489f={'unitId':_0x5a0e1a,'subUnitId':_0x3ef3ed,'shapeId':_0x4cf214,'shapeData':{'shapeText':{'isHorizontal':_0x5b1114}}},_0x2c546e=[{'id':_0x3f9fc3['id'],'params':_0x553e75}],_0x17c4d3=[{'id':_0x3f9fc3['id'],'params':_0x15489f}];return(0x0,_0x2e9216[_0x640c11(0x1ab)])(_0x2c546e,_0x3f32ae)['result']?(_0x1329a0[_0x640c11(0x149)]({'unitID':_0x5a0e1a,'undoMutations':_0x17c4d3,'redoMutations':_0x2c546e}),!0x0):!0x1;}},_0x502b37={'type':_0x2e9216[_0x3ab62d(0x19f)][_0x3ab62d(0x220)],'id':'sheet.command.update-connector-relation','handler':(_0x237ede,_0x3fdff7)=>{const _0x77fb5b=_0x3ab62d;var _0x212645;let _0x12fa1e=(0x0,_0x411fa1[_0x77fb5b(0x186)])(_0x237ede['get'](_0x2e9216[_0x77fb5b(0x245)]),_0x3fdff7);if(!_0x12fa1e)return!0x1;let _0x1be0a4=_0x237ede[_0x77fb5b(0x15d)](_0x411fa1[_0x77fb5b(0x20a)]),{unitId:_0xd40ad3,subUnitId:_0x518e15}=_0x12fa1e,_0x4b647c=_0x1be0a4[_0x77fb5b(0x209)](_0xd40ad3,_0x518e15);if(!_0x4b647c)return!0x1;let _0x4e1247=_0x237ede[_0x77fb5b(0x15d)](_0xdfae1c['ISheetDrawingService']),{connectorShapeId:_0x1e3a3d,width:_0x3a398c,height:_0x368a39,left:_0x3e1f00,top:_0x6edb10,flipX:_0x744f4b,flipY:_0x28ab5a,rotation:_0x5b5c97,oldAdjustValues:_0x1ccdef,newAdjustValues:_0x5138a1,oldLineType:_0x2b167d,newLineType:_0x98632a,oldRelation:_0x275cb1,newRelation:_0x3d0959}=_0x3fdff7,_0x1e0aeb=_0x4e1247[_0x77fb5b(0x185)]({'unitId':_0xd40ad3,'subUnitId':_0x518e15,'drawingId':_0x1e3a3d});if(!_0x1e0aeb)return!0x1;let _0x2965ed=_0x237ede[_0x77fb5b(0x15d)](_0x46f17a)[_0x77fb5b(0x1c7)](_0xd40ad3,_0x518e15,_0x1e3a3d);if(!_0x2965ed)return!0x1;let _0x23a814=_0x237ede['get'](_0x2e9216[_0x77fb5b(0x177)]),_0x4eeb6c=_0x237ede['get'](_0x2e9216[_0x77fb5b(0x1f7)]),_0x1f7bc9=_0x237ede['get'](_0x411fa1[_0x77fb5b(0x1ca)]),_0x52eeac={..._0x1e0aeb['transform'],'width':_0x3a398c,'height':_0x368a39,'left':_0x3e1f00,'top':_0x6edb10,'flipX':_0x744f4b,'flipY':_0x28ab5a,'angle':_0x5b5c97??((_0x212645=_0x1e0aeb[_0x77fb5b(0x19a)])==null?void 0x0:_0x212645[_0x77fb5b(0x155)])??0x0},_0x5c82ef=(0x0,_0xdfae1c[_0x77fb5b(0x17f)])(_0x52eeac,_0x4b647c),_0x30d820=(0x0,_0xdfae1c[_0x77fb5b(0x1a5)])(_0x52eeac,_0x4b647c),_0x273f60=_0x2965ed['getShapeType'](),_0x5beaaa=_0x2965ed[_0x77fb5b(0x20b)](),_0xab19c0={'unitId':_0xd40ad3,'subUnitId':_0x518e15,'drawingId':_0x1e3a3d,'drawingType':_0x2e9216[_0x77fb5b(0x1ee)]['DRAWING_SHAPE'],'sheetTransform':_0x5c82ef,'transform':_0x52eeac,'data':{'shapeType':_0x98632a||_0x2b167d||_0x273f60,'shapeData':{..._0x5beaaa,'adjustValues':_0x5138a1||_0x1ccdef||(_0x5beaaa==null?void 0x0:_0x5beaaa[_0x77fb5b(0x182)]),'relation':_0x3d0959||_0x275cb1||(_0x5beaaa==null?void 0x0:_0x5beaaa[_0x77fb5b(0x141)])}},'axisAlignSheetTransform':_0x30d820,'allowTransform':!0x0},{undo:_0x63aff6,redo:_0x58cc69,objects:_0x11f51f}=_0x4e1247[_0x77fb5b(0x206)]([_0xab19c0]),_0xaaff18=_0x1f7bc9[_0x77fb5b(0x140)]({'id':_0xdfae1c[_0x77fb5b(0x156)]['id'],'params':{'unitId':_0xd40ad3,'drawings':[_0xab19c0]}}),_0x130f01=[..._0xaaff18[_0x77fb5b(0x161)]??[],{'id':_0xdfae1c[_0x77fb5b(0x224)]['id'],'params':{'unitId':_0xd40ad3,'subUnitId':_0x518e15,'op':_0x58cc69,'objects':_0x11f51f,'type':_0xdfae1c['DrawingApplyType'][_0x77fb5b(0x183)]}},{'id':_0xdfae1c[_0x77fb5b(0x221)]['id'],'params':[_0xd40ad3]},..._0xaaff18[_0x77fb5b(0x23f)],{'id':_0x3f9fc3['id'],'params':{'unitId':_0xd40ad3,'subUnitId':_0x518e15,'shapeId':_0x1e3a3d,'shapeType':_0x98632a,'shapeData':{'adjustValues':_0x5138a1,'relation':_0x3d0959}}}],_0x2b4512=[..._0xaaff18[_0x77fb5b(0x1d5)]??[],{'id':_0xdfae1c[_0x77fb5b(0x224)]['id'],'params':{'unitId':_0xd40ad3,'subUnitId':_0x518e15,'op':_0x63aff6,'objects':_0x11f51f,'type':_0xdfae1c[_0x77fb5b(0x1db)][_0x77fb5b(0x183)]}},{'id':_0xdfae1c[_0x77fb5b(0x221)]['id'],'params':[_0xd40ad3]},..._0xaaff18[_0x77fb5b(0x1c4)],{'id':_0x3f9fc3['id'],'params':{'unitId':_0xd40ad3,'subUnitId':_0x518e15,'shapeId':_0x1e3a3d,'shapeType':_0x273f60,'shapeData':{..._0x5beaaa,'adjustValues':_0x1ccdef||(_0x5beaaa==null?void 0x0:_0x5beaaa[_0x77fb5b(0x182)]),'relation':_0x275cb1||(_0x5beaaa==null?void 0x0:_0x5beaaa['relation'])}}}];return(0x0,_0x2e9216[_0x77fb5b(0x1ab)])(_0x130f01,_0x23a814)[_0x77fb5b(0x211)]?(_0x4eeb6c[_0x77fb5b(0x149)]({'unitID':_0xd40ad3,'undoMutations':_0x2b4512,'redoMutations':_0x130f01}),!0x0):!0x1;}},_0x504d72={'type':_0x2e9216[_0x3ab62d(0x19f)][_0x3ab62d(0x220)],'id':_0x3ab62d(0x1c9),'handler':(_0x29e250,_0x26e464)=>{const _0x10e941=_0x3ab62d;let _0x1d6f4f=(0x0,_0x411fa1[_0x10e941(0x186)])(_0x29e250[_0x10e941(0x15d)](_0x2e9216[_0x10e941(0x245)]),_0x26e464);if(!_0x1d6f4f)return!0x1;let _0x15e9f4=_0x29e250[_0x10e941(0x15d)](_0x411fa1[_0x10e941(0x20a)]),{unitId:_0x2e73f6,subUnitId:_0x195711}=_0x1d6f4f,_0x3e9a9a=_0x15e9f4['getSkeleton'](_0x2e73f6,_0x195711);if(!_0x3e9a9a)return!0x1;let _0x5b1b8a=_0x29e250['get'](_0xdfae1c[_0x10e941(0x145)]),{shapeId:_0x1d621a,width:_0xd1d7a1,height:_0x2d7b95,left:_0x52e038,top:_0x4c0522,flipX:_0x1fd13e,flipY:_0x994363,angle:_0x5170dd,oldAdjustValues:_0x10eb44,newAdjustValues:_0xde6ac6,oldLineType:_0x30cd68,newLineType:_0x3c51ec}=_0x26e464,_0x3d39ec=_0x5b1b8a[_0x10e941(0x185)]({'unitId':_0x2e73f6,'subUnitId':_0x195711,'drawingId':_0x1d621a});if(!_0x3d39ec)return!0x1;let _0x571f76=_0x29e250[_0x10e941(0x15d)](_0x46f17a)[_0x10e941(0x1c7)](_0x2e73f6,_0x195711,_0x1d621a);if(!_0x571f76)return!0x1;let _0x355245=_0x29e250['get'](_0x2e9216[_0x10e941(0x177)]),_0x1c7d4b=_0x29e250['get'](_0x2e9216[_0x10e941(0x1f7)]),_0x3f72cb=_0x29e250[_0x10e941(0x15d)](_0x411fa1['SheetInterceptorService']),_0x12d28e={..._0x3d39ec[_0x10e941(0x19a)],'width':_0xd1d7a1,'height':_0x2d7b95,'left':_0x52e038,'top':_0x4c0522,'flipX':_0x1fd13e,'flipY':_0x994363,'angle':_0x5170dd},_0x3fd6b7=(0x0,_0xdfae1c[_0x10e941(0x17f)])(_0x12d28e,_0x3e9a9a),_0x362f3e=(0x0,_0xdfae1c[_0x10e941(0x1a5)])(_0x12d28e,_0x3e9a9a),_0x5a1c35=_0x571f76[_0x10e941(0x21a)](),_0x4b762c=_0x571f76[_0x10e941(0x20b)](),_0x32cceb={'unitId':_0x2e73f6,'subUnitId':_0x195711,'drawingId':_0x1d621a,'drawingType':_0x2e9216[_0x10e941(0x1ee)]['DRAWING_SHAPE'],'sheetTransform':_0x3fd6b7,'transform':_0x12d28e,'data':{'shapeType':_0x3c51ec||_0x30cd68||_0x5a1c35,'shapeData':{..._0x4b762c,'adjustValues':_0xde6ac6||_0x10eb44||(_0x4b762c==null?void 0x0:_0x4b762c[_0x10e941(0x182)])}},'axisAlignSheetTransform':_0x362f3e,'allowTransform':!0x0},{undo:_0x4ba634,redo:_0x245dc4,objects:_0x3b252b}=_0x5b1b8a['getBatchUpdateOp']([_0x32cceb]),_0x59a638=_0x3f72cb[_0x10e941(0x140)]({'id':_0xdfae1c[_0x10e941(0x156)]['id'],'params':{'unitId':_0x2e73f6,'drawings':[_0x32cceb]}}),_0x41faae=[..._0x59a638[_0x10e941(0x161)]??[],{'id':_0xdfae1c['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2e73f6,'subUnitId':_0x195711,'op':_0x245dc4,'objects':_0x3b252b,'type':_0xdfae1c[_0x10e941(0x1db)]['UPDATE']}},{'id':_0xdfae1c[_0x10e941(0x221)]['id'],'params':[_0x2e73f6]},..._0x59a638[_0x10e941(0x23f)],{'id':_0x3f9fc3['id'],'params':{'unitId':_0x2e73f6,'subUnitId':_0x195711,'shapeId':_0x1d621a,'shapeType':_0x3c51ec,'shapeData':{'adjustValues':_0xde6ac6}}}],_0x2f389b=[..._0x59a638[_0x10e941(0x1d5)]??[],{'id':_0xdfae1c[_0x10e941(0x224)]['id'],'params':{'unitId':_0x2e73f6,'subUnitId':_0x195711,'op':_0x4ba634,'objects':_0x3b252b,'type':_0xdfae1c[_0x10e941(0x1db)]['UPDATE']}},{'id':_0xdfae1c[_0x10e941(0x221)]['id'],'params':[_0x2e73f6]},..._0x59a638[_0x10e941(0x1c4)],{'id':_0x3f9fc3['id'],'params':{'unitId':_0x2e73f6,'subUnitId':_0x195711,'shapeId':_0x1d621a,'shapeType':_0x5a1c35,'shapeData':{..._0x4b762c,'adjustValues':_0x10eb44||(_0x4b762c==null?void 0x0:_0x4b762c['adjustValues'])}}}];return(0x0,_0x2e9216[_0x10e941(0x1ab)])(_0x41faae,_0x355245)[_0x10e941(0x211)]?(_0x1c7d4b['pushUndoRedo']({'unitID':_0x2e73f6,'undoMutations':_0x2f389b,'redoMutations':_0x41faae}),!0x0):!0x1;}},_0x17d7d5={'id':'sheet.mutation.update-shape-type','type':_0x2e9216[_0x3ab62d(0x19f)][_0x3ab62d(0x21e)],'handler':(_0x5760e4,_0x3b1031)=>{const _0x5270f8=_0x3ab62d;let {unitId:_0x364387,subUnitId:_0x378d4b,shapeType:_0x223ef5,shapeId:_0x2ceeb7,shapeData:_0x1523e4}=_0x3b1031,_0x111143=_0x5760e4[_0x5270f8(0x15d)](_0x46f17a)['getShapeModel'](_0x364387,_0x378d4b,_0x2ceeb7);return _0x111143&&(_0x111143[_0x5270f8(0x247)](_0x223ef5),_0x1523e4&&(_0x111143==null||_0x111143[_0x5270f8(0x15a)](_0x1523e4))),!0x0;}};var _0x236355=_0x3ab62d(0x1c0),_0x3d921e=_0x3ab62d(0x17d);function _0x21c305(_0x4baf15){const _0x13467f=_0x3ab62d;var _0x551129,_0x26c1f2,_0x353b6e,_0x2b99da,_0x372b89,_0x45eeaa,_0x5d2671;return{'left':((_0x551129=_0x4baf15[_0x13467f(0x19a)])==null?void 0x0:_0x551129[_0x13467f(0x1e7)])??0x0,'top':((_0x26c1f2=_0x4baf15[_0x13467f(0x19a)])==null?void 0x0:_0x26c1f2[_0x13467f(0x232)])??0x0,'width':((_0x353b6e=_0x4baf15[_0x13467f(0x19a)])==null?void 0x0:_0x353b6e['width'])??0xc8,'height':((_0x2b99da=_0x4baf15[_0x13467f(0x19a)])==null?void 0x0:_0x2b99da[_0x13467f(0x24d)])??0xc8,'rotation':((_0x372b89=_0x4baf15[_0x13467f(0x19a)])==null?void 0x0:_0x372b89['rotation'])??0x0,'flipX':((_0x45eeaa=_0x4baf15[_0x13467f(0x19a)])==null?void 0x0:_0x45eeaa[_0x13467f(0x1cb)])??!0x1,'flipY':((_0x5d2671=_0x4baf15[_0x13467f(0x19a)])==null?void 0x0:_0x5d2671[_0x13467f(0x24f)])??!0x1};}let _0x23c3c7=class{constructor(_0x251f05,_0x54d1f3,_0x173d47,_0x2a8942){const _0x5b871a=_0x3ab62d;this[_0x5b871a(0x179)]=_0x251f05,this[_0x5b871a(0x1b4)]=_0x54d1f3,this[_0x5b871a(0x1fd)]=_0x173d47,this['_instanceService']=_0x2a8942,_0x7ac35f(this,'hostType',_0x2e9216[_0x5b871a(0x17a)][_0x5b871a(0x193)]);}get[_0x3ab62d(0x235)](){return{'subscribe':_0x2647ab=>{const _0x2b70dd=_0x2f27;let _0x468878=this['_commandService'][_0x2b70dd(0x195)](_0x4650d3=>{const _0x1e657b=_0x2b70dd;(_0x4650d3['id']===_0x248625['id']||_0x4650d3['id']===_0x1d33d0['id']||_0x4650d3['id']===_0x3f9fc3['id']||_0x4650d3['id']===_0x17d7d5['id'])&&_0x2647ab({'unitId':_0x4650d3['params'][_0x1e657b(0x17c)]});});return{'unsubscribe':()=>_0x468878['dispose']()};}};}[_0x3ab62d(0x1b6)](_0x4258f5){const _0x44377f=_0x3ab62d;var _0x5a60ec;let _0x542193=(_0x5a60ec=this['_drawingService']['getDrawingData'](_0x4258f5[_0x44377f(0x17c)],_0x4258f5[_0x44377f(0x1b3)]))==null?void 0x0:_0x5a60ec[_0x4258f5['shapeId']],_0x266251=this[_0x44377f(0x1b4)][_0x44377f(0x21a)](_0x4258f5[_0x44377f(0x17c)],_0x4258f5[_0x44377f(0x1b3)],_0x4258f5[_0x44377f(0x21d)]);if(!_0x542193||_0x542193['drawingType']!==_0x2e9216[_0x44377f(0x1ee)]['DRAWING_SHAPE']||!_0x266251)return null;let _0x146382=_0x542193[_0x44377f(0x19a)];return{..._0x4258f5,'shapeType':_0x266251,'shapeData':_0x2e9216['Tools'][_0x44377f(0x1c3)](this[_0x44377f(0x1b4)][_0x44377f(0x18e)](_0x4258f5[_0x44377f(0x17c)],_0x4258f5[_0x44377f(0x1b3)],_0x4258f5[_0x44377f(0x21d)])??{}),'name':_0x542193[_0x44377f(0x218)],'description':_0x542193['description'],'visible':_0x542193[_0x44377f(0x17e)]!==!0x0,'selectable':_0x542193[_0x44377f(0x1df)]!==!0x1,'transform':{'left':(_0x146382==null?void 0x0:_0x146382['left'])??0x0,'top':(_0x146382==null?void 0x0:_0x146382['top'])??0x0,'width':(_0x146382==null?void 0x0:_0x146382[_0x44377f(0x165)])??0xc8,'height':(_0x146382==null?void 0x0:_0x146382[_0x44377f(0x24d)])??0xc8,'rotation':(_0x146382==null?void 0x0:_0x146382[_0x44377f(0x155)])??0x0,'flipX':(_0x146382==null?void 0x0:_0x146382[_0x44377f(0x1cb)])??!0x1,'flipY':(_0x146382==null?void 0x0:_0x146382[_0x44377f(0x24f)])??!0x1}};}[_0x3ab62d(0x241)](_0x37b5cc){const _0x3631d9=_0x3ab62d;let _0x3964b7=this[_0x3631d9(0x1fd)][_0x3631d9(0x1c1)](_0x37b5cc[_0x3631d9(0x17c)],_0x37b5cc[_0x3631d9(0x1b3)])??{};return Object[_0x3631d9(0x20e)](_0x3964b7)[_0x3631d9(0x13f)](_0x163261=>(_0x163261==null?void 0x0:_0x163261[_0x3631d9(0x1ef)])===_0x2e9216[_0x3631d9(0x1ee)]['DRAWING_SHAPE'])['map'](_0xc1d170=>this['getShape']({..._0x37b5cc,'shapeId':_0xc1d170['drawingId']}))[_0x3631d9(0x13f)](_0x2adc19=>!!_0x2adc19);}[_0x3ab62d(0x151)](_0x2556a0){const _0x148b07=_0x3ab62d;let _0x53246a=this[_0x148b07(0x22f)][_0x148b07(0x1c8)](_0x2556a0,_0x2e9216['UniverInstanceType']['UNIVER_SHEET']);return(_0x53246a==null?void 0x0:_0x53246a[_0x148b07(0x168)]()[_0x148b07(0x239)](_0x1bdf8d=>this[_0x148b07(0x241)]({'hostType':this[_0x148b07(0x1f4)],'unitId':_0x2556a0,'subUnitId':_0x1bdf8d['getSheetId']()})))??[];}[_0x3ab62d(0x148)](_0x4fb823,_0x51f4ca){const _0x10d8b9=_0x3ab62d;let _0x4f7dc2=(0x0,_0x2e9216[_0x10d8b9(0x1ae)])(),_0x10c3fe=_0x21c305(_0x51f4ca),_0xd6d3a7=_0x2e9216[_0x10d8b9(0x222)][_0x10d8b9(0x1c3)](_0x51f4ca[_0x10d8b9(0x1b9)]??(0x0,_0x2de845[_0x10d8b9(0x197)])(_0x51f4ca['shapeType']));return this[_0x10d8b9(0x179)][_0x10d8b9(0x250)](_0x256812['id'],{'unitId':_0x4fb823[_0x10d8b9(0x17c)],'subUnitId':_0x4fb823[_0x10d8b9(0x1b3)],'shapeId':_0x4f7dc2,'shapeType':_0x51f4ca['shapeType'],'shapeData':_0xd6d3a7,'name':_0x51f4ca[_0x10d8b9(0x218)],'description':_0x51f4ca[_0x10d8b9(0x205)],'position':{'x':_0x10c3fe[_0x10d8b9(0x1e7)],'y':_0x10c3fe[_0x10d8b9(0x232)]},'width':_0x10c3fe[_0x10d8b9(0x165)],'height':_0x10c3fe[_0x10d8b9(0x24d)],'rotation':_0x10c3fe[_0x10d8b9(0x171)],'flipX':_0x10c3fe['flipX'],'flipY':_0x10c3fe[_0x10d8b9(0x24f)],'visible':_0x51f4ca[_0x10d8b9(0x1be)]??!0x0,'selectable':_0x51f4ca['selectable']??!0x0})?{..._0x4fb823,'shapeId':_0x4f7dc2,'shapeType':_0x51f4ca[_0x10d8b9(0x1a2)],'shapeData':_0xd6d3a7,'name':_0x51f4ca[_0x10d8b9(0x218)],'description':_0x51f4ca[_0x10d8b9(0x205)],'visible':_0x51f4ca['visible']??!0x0,'selectable':_0x51f4ca[_0x10d8b9(0x1df)]??!0x0,'transform':_0x10c3fe}:null;}[_0x3ab62d(0x14f)](_0x25f22d,_0x50b7ea){const _0x5845cb=_0x3ab62d;var _0x4fa403;let _0x771e46=this[_0x5845cb(0x1b6)](_0x25f22d);if(!_0x771e46)return!0x1;let _0x4a247c={..._0x771e46[_0x5845cb(0x19a)],..._0x50b7ea['transform']};return this[_0x5845cb(0x179)]['syncExecuteCommand'](_0x4b6118['id'],{'unitId':_0x25f22d[_0x5845cb(0x17c)],'subUnitId':_0x25f22d[_0x5845cb(0x1b3)],'shapeId':_0x25f22d['shapeId'],'shapeType':_0x50b7ea[_0x5845cb(0x1a2)]??((_0x4fa403=_0x50b7ea['shapeData'])==null?void 0x0:_0x4fa403[_0x5845cb(0x1a2)])??_0x771e46['shapeType'],'shapeData':_0x50b7ea[_0x5845cb(0x1b9)]??_0x771e46[_0x5845cb(0x1b9)],'position':{'x':_0x4a247c[_0x5845cb(0x1e7)],'y':_0x4a247c['top']},'width':_0x4a247c['width'],'height':_0x4a247c[_0x5845cb(0x24d)],'rotation':_0x4a247c[_0x5845cb(0x171)],'flipX':_0x4a247c['flipX'],'flipY':_0x4a247c[_0x5845cb(0x24f)],'name':_0x5845cb(0x218)in _0x50b7ea?_0x50b7ea[_0x5845cb(0x218)]:_0x771e46[_0x5845cb(0x218)],'description':_0x5845cb(0x205)in _0x50b7ea?_0x50b7ea[_0x5845cb(0x205)]:_0x771e46['description'],'visible':_0x50b7ea[_0x5845cb(0x1be)]??_0x771e46[_0x5845cb(0x1be)],'selectable':_0x50b7ea['selectable']??_0x771e46['selectable']});}['createFormulaLastValueMutation'](_0xda0ca3,_0x2067fa,_0x48c480){const _0x5a361c=_0x3ab62d;let _0x378bd9=this[_0x5a361c(0x1b6)](_0xda0ca3),_0x530267=_0x378bd9==null?void 0x0:_0x378bd9['shapeData']['formulaBinding'];return!_0x378bd9||!_0x530267?null:{'id':_0x3f9fc3['id'],'params':{'unitId':_0xda0ca3['unitId'],'subUnitId':_0xda0ca3[_0x5a361c(0x1b3)],'shapeId':_0xda0ca3[_0x5a361c(0x21d)],'shapeData':{..._0x378bd9['shapeData'],'formulaBinding':{..._0x530267,'lastValue':_0x2e9216['Tools']['deepClone'](_0x48c480)}},'replace':!0x0,'formulaLastValueGuard':_0x2067fa}};}[_0x3ab62d(0x199)](_0x34e88b){const _0x314b91=_0x3ab62d;return this[_0x314b91(0x179)]['syncExecuteCommand'](_0xdfae1c['RemoveSheetDrawingCommand']['id'],{'unitId':_0x34e88b[_0x314b91(0x17c)],'drawings':[{'unitId':_0x34e88b[_0x314b91(0x17c)],'subUnitId':_0x34e88b[_0x314b91(0x1b3)],'drawingId':_0x34e88b['shapeId'],'drawingType':_0x2e9216[_0x314b91(0x1ee)][_0x314b91(0x1bc)]}]});}[_0x3ab62d(0x158)](_0x366666){const _0x3db6fa=_0x3ab62d;return this[_0x3db6fa(0x208)](_0x366666,_0x2e9216[_0x3db6fa(0x147)][_0x3db6fa(0x22e)]);}[_0x3ab62d(0x1c6)](_0x1cb0e6){const _0x5ecb4d=_0x3ab62d;return this[_0x5ecb4d(0x208)](_0x1cb0e6,_0x2e9216[_0x5ecb4d(0x147)][_0x5ecb4d(0x24b)]);}['sendBackward'](_0x104b16){const _0x4879e1=_0x3ab62d;return this[_0x4879e1(0x208)](_0x104b16,_0x2e9216['ArrangeTypeEnum'][_0x4879e1(0x15c)]);}[_0x3ab62d(0x1ed)](_0xd5cb4b){const _0x21ab1a=_0x3ab62d;return this[_0x21ab1a(0x208)](_0xd5cb4b,_0x2e9216[_0x21ab1a(0x147)][_0x21ab1a(0x16e)]);}[_0x3ab62d(0x1cf)](_0x490e72,_0x472219){const _0x296742=_0x3ab62d;return this['_commandService'][_0x296742(0x250)](_0xdfae1c[_0x296742(0x181)]['id'],{'unitId':_0x490e72[_0x296742(0x17c)],'subUnitId':_0x490e72[_0x296742(0x1b3)],'drawingIds':[_0x490e72['shapeId']],'zOrder':_0x472219});}[_0x3ab62d(0x208)](_0x57b9c9,_0x52b2a2){const _0x59e108=_0x3ab62d;return this[_0x59e108(0x179)][_0x59e108(0x250)](_0xdfae1c[_0x59e108(0x181)]['id'],{'unitId':_0x57b9c9[_0x59e108(0x17c)],'subUnitId':_0x57b9c9[_0x59e108(0x1b3)],'drawingIds':[_0x57b9c9[_0x59e108(0x21d)]],'arrangeType':_0x52b2a2});}};_0x23c3c7=_0x44edf5([_0x39def9(0x0,_0x2e9216[_0x3ab62d(0x177)]),_0x39def9(0x1,(0x0,_0x2e9216[_0x3ab62d(0x1f9)])(_0x46f17a)),_0x39def9(0x2,_0xdfae1c[_0x3ab62d(0x145)]),_0x39def9(0x3,_0x2e9216[_0x3ab62d(0x245)])],_0x23c3c7);let _0x34edc7={},_0xeecd86=class extends _0x2e9216['Disposable']{constructor(_0x33714f,_0x1b3750,_0x5b77ef,_0x1479cb,_0x52d06f,_0x4b7da3,_0x18a285){const _0x4b21b2=_0x3ab62d;super(),this['_commandService']=_0x33714f,this['_sheetInterceptorService']=_0x1b3750,this[_0x4b21b2(0x1dd)]=_0x5b77ef,this[_0x4b21b2(0x1b5)]=_0x1479cb,this[_0x4b21b2(0x18d)]=_0x52d06f,this['_shapeHostAdapterRegistry']=_0x4b7da3,this[_0x4b21b2(0x1aa)](),this['_initCommandInterceptor'](),this[_0x4b21b2(0x18b)](this[_0x4b21b2(0x1d0)][_0x4b21b2(0x1e4)](_0x18a285));}[_0x3ab62d(0x1aa)](){const _0xd59fbf=_0x3ab62d;[_0x256812,_0x4b6118,_0x2539ce,_0x3c907e,_0x3a51f9,_0x502b37,_0x504d72,_0x248625,_0x1d33d0,_0x17d7d5,_0x3f9fc3][_0xd59fbf(0x176)](_0x5b2e9d=>this['disposeWithMe'](this['_commandService'][_0xd59fbf(0x1f2)](_0x5b2e9d)));}[_0x3ab62d(0x198)](){const _0x3c38ec=_0x3ab62d;this[_0x3c38ec(0x18b)](this[_0x3c38ec(0x157)][_0x3c38ec(0x14b)]({'getMutations':_0x122b2f=>{const _0x141825=_0x3c38ec;if(_0x122b2f['id']===_0xdfae1c[_0x141825(0x207)]['id']){let {drawings:_0x1c869c}=_0x122b2f[_0x141825(0x1b1)],_0x276266=_0x1c869c[_0x141825(0x13f)](_0x47fc0e=>_0x47fc0e[_0x141825(0x1ef)]===_0x2e9216[_0x141825(0x1ee)][_0x141825(0x1bc)]);if(_0x276266['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x474029=[],_0x5b8407=[];return _0x276266[_0x141825(0x176)](_0xec99dc=>{const _0x39e7f6=_0x141825;let {unitId:_0x2b321e,subUnitId:_0x12c626,drawingId:_0x55f6d6}=_0xec99dc,_0x48eea7=this[_0x39e7f6(0x1b5)][_0x39e7f6(0x1c7)](_0x2b321e,_0x12c626,_0x55f6d6);if(!_0x48eea7)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x48eea7);_0x474029[_0x39e7f6(0x1f3)]({'id':_0x1d33d0['id'],'params':{'unitId':_0x2b321e,'subUnitId':_0x12c626,'shapeId':_0x55f6d6}}),_0x5b8407['push']({'id':_0x248625['id'],'params':{'unitId':_0x2b321e,'subUnitId':_0x12c626,'shapeId':_0x55f6d6,'shapeType':_0x48eea7[_0x39e7f6(0x21a)](),'shapeData':_0x48eea7[_0x39e7f6(0x20b)]()}});let _0x2e57f5=this[_0x39e7f6(0x1b5)][_0x39e7f6(0x16f)](_0x2b321e,_0x12c626,_0x55f6d6);if(_0x2e57f5)for(let _0x4e1fde of _0x2e57f5){let _0x237374=_0x4e1fde['lineShapeId'],_0x27866b=_0x4e1fde[_0x39e7f6(0x153)],_0x1b168a=_0x27866b?{'from':void 0x0}:{'to':void 0x0},_0x4ecbc4=_0x27866b?{'from':{'shapeId':_0x4e1fde[_0x39e7f6(0x21d)],'cxnIndex':_0x4e1fde[_0x39e7f6(0x175)]}}:{'to':{'shapeId':_0x4e1fde[_0x39e7f6(0x21d)],'cxnIndex':_0x4e1fde[_0x39e7f6(0x175)]}};_0x474029[_0x39e7f6(0x1f3)]({'id':_0x3f9fc3['id'],'params':{'unitId':_0x2b321e,'subUnitId':_0x12c626,'shapeId':_0x237374,'shapeData':{'relation':_0x1b168a}}}),_0x5b8407['push']({'id':_0x3f9fc3['id'],'params':{'unitId':_0x2b321e,'subUnitId':_0x12c626,'shapeId':_0x237374,'shapeData':{'relation':_0x4ecbc4}}});}}),{'preRedos':_0x474029,'redos':[],'preUndos':[],'undos':_0x5b8407};}if(_0x122b2f['id']===_0xdfae1c[_0x141825(0x156)]['id']){let {drawings:_0x79ba82}=_0x122b2f[_0x141825(0x1b1)],_0x5d6ae4=_0x79ba82[_0x141825(0x13f)](_0x1a978b=>_0x1a978b[_0x141825(0x1ef)]===_0x2e9216[_0x141825(0x1ee)][_0x141825(0x1bc)]);if(_0x5d6ae4[_0x141825(0x1a3)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1679da=[],_0x3d15c5=[];for(let _0x3c3bfc of _0x5d6ae4){let {unitId:_0x1d43f5,subUnitId:_0x144d77,drawingId:_0x333f06,transform:_0x5cbc82}=_0x3c3bfc;if(!_0x1d43f5||!_0x144d77||!_0x333f06||!_0x5cbc82)continue;let _0x3df61a=this['_sheetsShapeService'][_0x141825(0x1c7)](_0x1d43f5,_0x144d77,_0x333f06);if(!_0x3df61a)throw TypeError(_0x141825(0x216)+_0x3df61a);let _0x3c42c3=_0x3df61a[_0x141825(0x21a)]();if((0x0,_0x2de845['isConnectorShape'])(_0x3c42c3)){let _0x5f4f5e=this[_0x141825(0x1b5)][_0x141825(0x1a0)](_0x1d43f5,_0x144d77,_0x333f06);_0x5f4f5e&&(_0x1679da['push']({'id':_0x3f9fc3['id'],'params':{'unitId':_0x1d43f5,'subUnitId':_0x144d77,'shapeId':_0x333f06,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x3d15c5[_0x141825(0x1f3)]({'id':_0x3f9fc3['id'],'params':{'unitId':_0x1d43f5,'subUnitId':_0x144d77,'shapeId':_0x333f06,'shapeData':{'relation':_0x5f4f5e}}}));}else{let _0x32f627=this['_sheetsShapeService'][_0x141825(0x16f)](_0x1d43f5,_0x144d77,_0x333f06);if(_0x32f627&&_0x32f627[_0x141825(0x1a3)]>0x0)for(let _0x20295f of _0x32f627){let _0x10bb89=_0x20295f[_0x141825(0x1da)],_0x2052b4=_0x20295f['isFrom'],_0x4c0413=this[_0x141825(0x1b5)][_0x141825(0x1c7)](_0x1d43f5,_0x144d77,_0x10bb89);if(!_0x4c0413)continue;let _0x3e78a0=_0x4c0413[_0x141825(0x23b)](),_0x9ea042=_0x4c0413['getEndConnectInfo']();_0x3e78a0&&_0x9ea042?this[_0x141825(0x1e6)](_0x1d43f5,_0x144d77,_0x10bb89,_0x4c0413,_0x3e78a0,_0x9ea042,_0x1679da,_0x3d15c5,_0x333f06,_0x5cbc82):this[_0x141825(0x20c)](_0x1d43f5,_0x144d77,_0x10bb89,_0x4c0413,_0x2052b4?_0x3e78a0:_0x9ea042,_0x2052b4,_0x1679da,_0x3d15c5,_0x333f06,_0x5cbc82);}}}return{'preRedos':[],'redos':_0x1679da,'preUndos':_0x3d15c5,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3ab62d(0x240)](_0x37164e,_0x20d0a3,_0x4eb197,_0x265b27,_0x5031a8){const _0x3a9438=_0x3ab62d;if(!_0x20d0a3||!_0x4eb197)return null;let {shapeId:_0x4979d4,cxnIndex:_0x572ee9}=_0x37164e,_0x2ca97d=this[_0x3a9438(0x1b5)][_0x3a9438(0x1c7)](_0x20d0a3,_0x4eb197,_0x4979d4);if(!_0x2ca97d)return null;let _0x3ee1d3=this['_drawingManagerService'][_0x3a9438(0x185)]({'unitId':_0x20d0a3,'subUnitId':_0x4eb197,'drawingId':_0x4979d4});if(!(_0x3ee1d3!=null&&_0x3ee1d3['transform']))return null;let {left:_0x15116e=0x0,top:_0x39470c=0x0,width:_0x38ec59=0x0,height:_0x107e97=0x0,flipX:_0x3973a5=!0x1,flipY:_0x395c64=!0x1,angle:_0x10a915}=_0x3ee1d3[_0x3a9438(0x19a)];_0x5031a8&&_0x265b27===_0x4979d4&&(_0x15116e=_0x5031a8['left']??_0x15116e,_0x39470c=_0x5031a8[_0x3a9438(0x232)]??_0x39470c,_0x38ec59=_0x5031a8[_0x3a9438(0x165)]??_0x38ec59,_0x107e97=_0x5031a8[_0x3a9438(0x24d)]??_0x107e97,_0x3973a5=_0x5031a8[_0x3a9438(0x1cb)]??_0x3973a5,_0x395c64=_0x5031a8[_0x3a9438(0x24f)]??_0x395c64,_0x10a915=_0x5031a8[_0x3a9438(0x155)]??_0x10a915),_0x2ca97d[_0x3a9438(0x1a9)]({'width':_0x38ec59,'height':_0x107e97});let _0x106b2d=_0x2ca97d['getConnectionSiteList']()['find'](_0x18d2c5=>_0x18d2c5[_0x3a9438(0x1bb)]===_0x572ee9);if(!_0x106b2d)return null;let _0xfdfca0=_0x3973a5?_0x38ec59-_0x106b2d['x']:_0x106b2d['x'],_0x2e51d8=_0x395c64?_0x107e97-_0x106b2d['y']:_0x106b2d['y'];if(_0x10a915!==0x0&&_0x10a915!=null){let _0x9cf7ed=_0x10a915*Math['PI']/0xb4,_0x375175=Math['cos'](_0x9cf7ed),_0x507a83=Math[_0x3a9438(0x23c)](_0x9cf7ed),_0xe45b09=_0x38ec59/0x2,_0x43c153=_0x107e97/0x2,_0x1ce955=_0xfdfca0-_0xe45b09,_0x38a1d3=_0x2e51d8-_0x43c153;_0xfdfca0=_0xe45b09+_0x1ce955*_0x375175-_0x38a1d3*_0x507a83,_0x2e51d8=_0x43c153+_0x1ce955*_0x507a83+_0x38a1d3*_0x375175;}_0xfdfca0+=_0x15116e,_0x2e51d8+=_0x39470c;let _0x2ddc91=_0x106b2d[_0x3a9438(0x19e)]/0xea60;_0x3973a5&&(_0x2ddc91=0xb4-_0x2ddc91),_0x395c64&&(_0x2ddc91=-_0x2ddc91),_0x2ddc91+=_0x10a915||0x0,_0x2ddc91=(_0x2ddc91%0x168+0x168)%0x168;let _0x2d330d=(0x0,_0x2de845[_0x3a9438(0x15b)])({'left':_0x15116e,'top':_0x39470c,'width':_0x38ec59,'height':_0x107e97},_0x10a915||0x0);return{'point':{'x':_0xfdfca0,'y':_0x2e51d8},'angle':_0x2ddc91,'bounds':_0x2d330d};}[_0x3ab62d(0x1e6)](_0x14afb3,_0x15c8fd,_0x13024a,_0x28d6ce,_0x57479c,_0x32b55c,_0x22c37e,_0x214690,_0x2c2f66,_0x2d9a78){const _0x32813f=_0x3ab62d;let _0x10432b=this[_0x32813f(0x1dd)][_0x32813f(0x209)](_0x14afb3,_0x15c8fd);if(!_0x10432b)return;let _0x11d75a=_0x28d6ce[_0x32813f(0x1f8)](),_0x8bdb8b=_0x28d6ce[_0x32813f(0x1ea)](),_0xbbce2e={},_0x5c7d21={};_0x8bdb8b['forEach'](_0x927d90=>{const _0x5194d5=_0x32813f;let _0x33562c=_0x28d6ce[_0x5194d5(0x14a)](_0x927d90);_0x5c7d21[_0x927d90]=_0x33562c??0x0;});let _0x3f5fec=this[_0x32813f(0x240)](_0x57479c,_0x14afb3,_0x15c8fd,_0x2c2f66,_0x2d9a78),_0x4c290b=this[_0x32813f(0x240)](_0x32b55c,_0x14afb3,_0x15c8fd,_0x2c2f66,_0x2d9a78);if(_0x3f5fec&&_0x4c290b){let _0x4f4a37=_0x28d6ce[_0x32813f(0x21a)](),_0x11ac8b=(0x0,_0x2de845['routeConnectorLineShape'])(_0x3f5fec,_0x4c290b,_0x4f4a37),_0x2f7c61=_0x4f4a37;if(_0x11ac8b){let _0x5cb623=(0x0,_0x2de845[_0x32813f(0x16c)])(_0x11ac8b,_0x28d6ce[_0x32813f(0x21a)]()),_0x16f8fc=this[_0x32813f(0x18d)][_0x32813f(0x1c1)](_0x14afb3,_0x15c8fd);if(_0x16f8fc&&_0x16f8fc[_0x13024a]){let _0x49a83b=_0x16f8fc[_0x13024a];_0x2f7c61=_0x5cb623[_0x32813f(0x238)];for(let [_0x31b27f,_0x429872]of Object[_0x32813f(0x246)](_0x5cb623['adjustValues']))_0xbbce2e[_0x31b27f]=_0x429872;let _0x33899c={..._0x49a83b['transform'],'width':_0x5cb623[_0x32813f(0x1f1)][_0x32813f(0x165)],'height':_0x5cb623['worldRect'][_0x32813f(0x24d)],'left':_0x5cb623[_0x32813f(0x1f1)]['left'],'top':_0x5cb623['worldRect']['top'],'flipX':_0x5cb623[_0x32813f(0x1f1)][_0x32813f(0x1cb)],'flipY':_0x5cb623[_0x32813f(0x1f1)]['flipY'],'angle':_0x5cb623[_0x32813f(0x171)]},_0x3513f4=(0x0,_0xdfae1c[_0x32813f(0x17f)])(_0x33899c,_0x10432b),_0xc51817=(0x0,_0xdfae1c['transformToAxisAlignPosition'])(_0x33899c,_0x10432b),_0x5566b1={'unitId':_0x14afb3,'subUnitId':_0x15c8fd,'drawingType':_0x2e9216[_0x32813f(0x1ee)][_0x32813f(0x1bc)],'drawingId':_0x13024a,'transform':_0x33899c,'sheetTransform':_0x3513f4,'axisAlignSheetTransform':_0xc51817},{unitId:_0x31a6db,subUnitId:_0x16e430,undo:_0x1054c8,redo:_0x2ad70f,objects:_0x2a87ca}=this[_0x32813f(0x18d)]['getBatchUpdateOp']([_0x5566b1]);_0x22c37e['push']({'id':_0xdfae1c[_0x32813f(0x224)]['id'],'params':{'unitId':_0x31a6db,'subUnitId':_0x16e430,'op':_0x2ad70f,'objects':_0x2a87ca,'type':_0xdfae1c['DrawingApplyType'][_0x32813f(0x183)]}}),_0x214690['push']({'id':_0xdfae1c[_0x32813f(0x224)]['id'],'params':{'unitId':_0x31a6db,'subUnitId':_0x16e430,'op':_0x1054c8,'objects':_0x2a87ca,'type':_0xdfae1c[_0x32813f(0x1db)][_0x32813f(0x183)]}});}_0x28d6ce['removeLinePoints']();}_0x22c37e['push']({'id':_0x3f9fc3['id'],'params':{'unitId':_0x14afb3,'subUnitId':_0x15c8fd,'shapeId':_0x13024a,'shapeType':_0x2f7c61,'shapeData':{'adjustValues':_0xbbce2e,'relation':_0x11d75a}}}),_0x214690[_0x32813f(0x1f3)]({'id':_0x3f9fc3['id'],'params':{'unitId':_0x14afb3,'subUnitId':_0x15c8fd,'shapeId':_0x13024a,'shapeType':_0x4f4a37,'shapeData':{'adjustValues':_0x5c7d21,'relation':_0x11d75a}}});}}[_0x3ab62d(0x20c)](_0x5bf172,_0x3f3c86,_0x5554aa,_0x4b444c,_0x1eb9ce,_0x46f8a4,_0x5f2bde,_0x1e2b2b,_0xc17d16,_0x4af2ea){const _0x5cbaa2=_0x3ab62d;var _0x2f8811;if(!_0x1eb9ce)return;let _0x3260fa=this[_0x5cbaa2(0x1dd)][_0x5cbaa2(0x209)](_0x5bf172,_0x3f3c86);if(!_0x3260fa)return;let _0x52646c=(_0x2f8811=this['_drawingManagerService'][_0x5cbaa2(0x185)]({'unitId':_0x5bf172,'subUnitId':_0x3f3c86,'drawingId':_0xc17d16}))==null?void 0x0:_0x2f8811[_0x5cbaa2(0x19a)];if(!_0x52646c)return;let _0x5c909b=_0x52646c['left']!==_0x4af2ea[_0x5cbaa2(0x1e7)]||_0x52646c[_0x5cbaa2(0x232)]!==_0x4af2ea[_0x5cbaa2(0x232)],_0x188dac=_0x52646c[_0x5cbaa2(0x165)]!==_0x4af2ea[_0x5cbaa2(0x165)]||_0x52646c[_0x5cbaa2(0x24d)]!==_0x4af2ea[_0x5cbaa2(0x24d)],_0x137b03=_0x52646c['flipX']!==_0x4af2ea['flipX']||_0x52646c['flipY']!==_0x4af2ea[_0x5cbaa2(0x24f)],_0x568803=_0x52646c[_0x5cbaa2(0x155)]!==_0x4af2ea[_0x5cbaa2(0x155)];if(_0x5c909b&&!_0x188dac&&!_0x137b03&&!_0x568803){let _0x100b42=(_0x4af2ea[_0x5cbaa2(0x1e7)]??0x0)-(_0x52646c[_0x5cbaa2(0x1e7)]??0x0),_0x379f12=(_0x4af2ea[_0x5cbaa2(0x232)]??0x0)-(_0x52646c[_0x5cbaa2(0x232)]??0x0),_0x4cc945=this[_0x5cbaa2(0x18d)][_0x5cbaa2(0x1c1)](_0x5bf172,_0x3f3c86);if(_0x4cc945&&_0x4cc945[_0x5554aa]){var _0x318c4f,_0x2529b4;let _0x3168e2=_0x4cc945[_0x5554aa],_0x2eb5fd={..._0x3168e2[_0x5cbaa2(0x19a)],'left':(((_0x318c4f=_0x3168e2['transform'])==null?void 0x0:_0x318c4f[_0x5cbaa2(0x1e7)])??0x0)+_0x100b42,'top':(((_0x2529b4=_0x3168e2[_0x5cbaa2(0x19a)])==null?void 0x0:_0x2529b4['top'])??0x0)+_0x379f12},_0x264175=(0x0,_0xdfae1c[_0x5cbaa2(0x17f)])(_0x2eb5fd,_0x3260fa),_0x5c34c4=(0x0,_0xdfae1c[_0x5cbaa2(0x1a5)])(_0x2eb5fd,_0x3260fa),_0x2106a3={'unitId':_0x5bf172,'subUnitId':_0x3f3c86,'drawingType':_0x2e9216['DrawingTypeEnum'][_0x5cbaa2(0x1bc)],'drawingId':_0x5554aa,'transform':_0x2eb5fd,'sheetTransform':_0x264175,'axisAlignSheetTransform':_0x5c34c4},{unitId:_0x5d15bb,subUnitId:_0x105fc2,undo:_0x2a1078,redo:_0x23df55,objects:_0x1278d2}=this[_0x5cbaa2(0x18d)][_0x5cbaa2(0x206)]([_0x2106a3]);_0x5f2bde[_0x5cbaa2(0x1f3)]({'id':_0xdfae1c[_0x5cbaa2(0x224)]['id'],'params':{'unitId':_0x5d15bb,'subUnitId':_0x105fc2,'op':_0x23df55,'objects':_0x1278d2,'type':_0xdfae1c[_0x5cbaa2(0x1db)][_0x5cbaa2(0x183)]}}),_0x1e2b2b[_0x5cbaa2(0x1f3)]({'id':_0xdfae1c['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5d15bb,'subUnitId':_0x105fc2,'op':_0x2a1078,'objects':_0x1278d2,'type':_0xdfae1c['DrawingApplyType'][_0x5cbaa2(0x183)]}});}}else{let _0x114c01=_0x4b444c[_0x5cbaa2(0x23b)](),_0x3ef922=_0x4b444c[_0x5cbaa2(0x162)]();this['_addLineRerouteUpdates'](_0x5bf172,_0x3f3c86,_0x5554aa,_0x4b444c,_0x114c01,_0x3ef922,_0x5f2bde,_0x1e2b2b,_0xc17d16,_0x4af2ea);}}};_0xeecd86=_0x44edf5([_0x39def9(0x0,_0x2e9216[_0x3ab62d(0x177)]),_0x39def9(0x1,(0x0,_0x2e9216['Inject'])(_0x411fa1['SheetInterceptorService'])),_0x39def9(0x2,(0x0,_0x2e9216[_0x3ab62d(0x1f9)])(_0x411fa1[_0x3ab62d(0x20a)])),_0x39def9(0x3,(0x0,_0x2e9216[_0x3ab62d(0x1f9)])(_0x46f17a)),_0x39def9(0x4,(0x0,_0x2e9216[_0x3ab62d(0x1f9)])(_0x1fdd07['IDrawingManagerService'])),_0x39def9(0x5,(0x0,_0x2e9216['Inject'])(_0x2de845['IShapeHostAdapterRegistry'])),_0x39def9(0x6,(0x0,_0x2e9216[_0x3ab62d(0x1f9)])(_0x23c3c7))],_0xeecd86);let _0x37b72b=class extends _0x2e9216[_0x3ab62d(0x230)]{constructor(_0x364103,_0x427266,_0x934886){const _0x477946=_0x3ab62d;super(),this[_0x477946(0x1b4)]=_0x364103,this[_0x477946(0x214)]=_0x427266,this[_0x477946(0x18b)](_0x934886[_0x477946(0x1e4)](this));}['transform'](_0x3933fd){const _0x35e334=_0x3ab62d;let _0x48e691={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x35e334(0x170)](_0x3933fd,_0x48e691);for(let [_0x165119,_0x444886]of _0x3933fd[_0x35e334(0x16d)])this[_0x35e334(0x14d)](_0x3933fd,_0x165119,_0x444886,_0x48e691);return _0x48e691;}[_0x3ab62d(0x170)](_0x4b0989,_0xfd2825){const _0x30773c=_0x3ab62d;if(_0x4b0989['mode']===_0x30773c(0x14c))for(let _0xe7d698 of _0x4b0989['deletes']){let _0x58b82e=_0x4b0989[_0x30773c(0x16d)]['get'](_0xe7d698),_0x468273=this['_shapeService'][_0x30773c(0x1c7)](_0x4b0989['unitId'],_0x4b0989[_0x30773c(0x1b3)],_0xe7d698);(_0x58b82e==null?void 0x0:_0x58b82e[_0x30773c(0x1ef)])===_0x2e9216['DrawingTypeEnum'][_0x30773c(0x1bc)]&&_0x468273&&(_0xfd2825[_0x30773c(0x161)][_0x30773c(0x1f3)]({'id':_0x1d33d0['id'],'params':{'unitId':_0x4b0989[_0x30773c(0x17c)],'subUnitId':_0x4b0989['subUnitId'],'shapeId':_0xe7d698}}),_0xfd2825[_0x30773c(0x1c4)]['push']({'id':_0x248625['id'],'params':{'unitId':_0x4b0989['unitId'],'subUnitId':_0x4b0989[_0x30773c(0x1b3)],'shapeId':_0xe7d698,'shapeName':_0x468273[_0x30773c(0x144)](),'shapeType':_0x468273[_0x30773c(0x21a)](),'shapeData':_0x2e9216[_0x30773c(0x222)][_0x30773c(0x1c3)](_0x468273['getShapeData']())}}));}}[_0x3ab62d(0x14d)](_0xe50e83,_0x45cfd7,_0x3e9368,_0x2711f1){const _0x53eede=_0x3ab62d;if(_0x3e9368[_0x53eede(0x1ef)]!==_0x2e9216[_0x53eede(0x1ee)][_0x53eede(0x1bc)]||_0xe50e83['deletes'][_0x53eede(0x1ad)](_0x45cfd7))return;let _0x4dcf07=this['_shapeService'][_0x53eede(0x1c7)](_0xe50e83[_0x53eede(0x17c)],_0xe50e83[_0x53eede(0x1b3)],_0x45cfd7);if(!_0x4dcf07||!(0x0,_0x2de845[_0x53eede(0x217)])(_0x4dcf07['getShapeType']()))return;let _0x2dd095=_0x4dcf07[_0x53eede(0x1f8)]();if(!(_0xe50e83[_0x53eede(0x19d)][_0x53eede(0x1ad)](_0x45cfd7)||_0x2dd095!=null&&_0x2dd095['from']&&(_0xe50e83[_0x53eede(0x19d)]['has'](_0x2dd095[_0x53eede(0x18c)][_0x53eede(0x21d)])||_0xe50e83['deletes'][_0x53eede(0x1ad)](_0x2dd095[_0x53eede(0x18c)][_0x53eede(0x21d)]))||_0x2dd095!=null&&_0x2dd095['to']&&(_0xe50e83[_0x53eede(0x19d)][_0x53eede(0x1ad)](_0x2dd095['to'][_0x53eede(0x21d)])||_0xe50e83[_0x53eede(0x22d)]['has'](_0x2dd095['to'][_0x53eede(0x21d)]))))return;let _0x28e4dd=_0xe50e83[_0x53eede(0x19d)]['get'](_0x45cfd7)??_0x3e9368,_0x57ae9e=this[_0x53eede(0x213)](_0xe50e83,_0x28e4dd);if(!_0x57ae9e)return;let _0x5b0db7=(0x0,_0x2de845['resolveConnectorRoutePoints'])(_0x57ae9e);if(_0x5b0db7['length']<0x2)return;let _0x5dc3ff=_0x2e9216[_0x53eede(0x222)][_0x53eede(0x1c3)](_0x2dd095??{}),_0x34c5de=_0x5dc3ff['from']&&this[_0x53eede(0x1d1)](_0xe50e83,_0x5dc3ff[_0x53eede(0x18c)]['shapeId'],_0x5dc3ff[_0x53eede(0x18c)][_0x53eede(0x175)]),_0x747df4=_0x5dc3ff['to']&&this[_0x53eede(0x1d1)](_0xe50e83,_0x5dc3ff['to'][_0x53eede(0x21d)],_0x5dc3ff['to'][_0x53eede(0x175)]);_0x5dc3ff[_0x53eede(0x18c)]&&!_0x34c5de&&delete _0x5dc3ff[_0x53eede(0x18c)],_0x5dc3ff['to']&&!_0x747df4&&delete _0x5dc3ff['to'];let _0x1bad13=_0x34c5de||(0x0,_0x2de845[_0x53eede(0x18a)])((_0x747df4==null?void 0x0:_0x747df4[_0x53eede(0x1c5)])??_0x5b0db7[_0x5b0db7[_0x53eede(0x1a3)]-0x1],_0x5b0db7[0x0]),_0x56f188=_0x747df4||(0x0,_0x2de845['createFreeConnectorPointInfo'])((_0x34c5de==null?void 0x0:_0x34c5de[_0x53eede(0x1c5)])??_0x5b0db7[0x0],_0x5b0db7[_0x5b0db7['length']-0x1]),_0x3503a0=(0x0,_0x2de845['buildConnectorEndpointUpdate'])(_0x57ae9e,_0x1bad13,_0x56f188,_0x5dc3ff);_0x3503a0!=null&&_0x3503a0['transform']&&_0x3503a0[_0x53eede(0x1a2)]&&_0x3503a0[_0x53eede(0x1b9)]&&(this['_applyUpdate'](_0xe50e83,_0x28e4dd,_0x3503a0),_0xe50e83['mode']===_0x53eede(0x1a8)?(_0x4dcf07[_0x53eede(0x247)](_0x3503a0[_0x53eede(0x1a2)]),_0x4dcf07['setShapeData'](_0x2e9216[_0x53eede(0x222)][_0x53eede(0x1c3)](_0x3503a0[_0x53eede(0x1b9)]),!0x1)):(_0x2711f1[_0x53eede(0x23f)][_0x53eede(0x1f3)]({'id':_0x3f9fc3['id'],'params':{'unitId':_0xe50e83['unitId'],'subUnitId':_0xe50e83[_0x53eede(0x1b3)],'shapeId':_0x45cfd7,'shapeType':_0x3503a0[_0x53eede(0x1a2)],'shapeData':_0x2e9216[_0x53eede(0x222)][_0x53eede(0x1c3)](_0x3503a0[_0x53eede(0x1b9)]),'replace':!0x0}}),_0x2711f1['undos']['push']({'id':_0x3f9fc3['id'],'params':{'unitId':_0xe50e83[_0x53eede(0x17c)],'subUnitId':_0xe50e83['subUnitId'],'shapeId':_0x45cfd7,'shapeType':_0x4dcf07[_0x53eede(0x21a)](),'shapeData':_0x2e9216[_0x53eede(0x222)][_0x53eede(0x1c3)](_0x4dcf07['getShapeData']()),'replace':!0x0}})));}[_0x3ab62d(0x1d1)](_0x4467c5,_0x580643,_0x3af9c6){const _0x5a832e=_0x3ab62d;if(_0x4467c5[_0x5a832e(0x22d)][_0x5a832e(0x1ad)](_0x580643))return null;let _0x51f7f5=_0x4467c5[_0x5a832e(0x19d)][_0x5a832e(0x15d)](_0x580643)??_0x4467c5[_0x5a832e(0x16d)][_0x5a832e(0x15d)](_0x580643);if(!_0x51f7f5)return null;let _0x5c8303=this[_0x5a832e(0x213)](_0x4467c5,_0x51f7f5);return _0x5c8303?(0x0,_0x2de845[_0x5a832e(0x189)])(_0x5c8303,_0x3af9c6):null;}['_toSnapshot'](_0x165dc3,_0x4e83a4){const _0x28013d=_0x3ab62d;let _0x47795e={'hostType':_0x2e9216[_0x28013d(0x17a)]['UNIVER_SHEET'],'unitId':_0x165dc3[_0x28013d(0x17c)],'subUnitId':_0x165dc3['subUnitId'],'shapeId':_0x4e83a4['drawingId']},_0x5cb52b=this[_0x28013d(0x214)]['getShape'](_0x47795e);return!_0x5cb52b||!_0x4e83a4['transform']?null:{..._0x5cb52b,'transform':{'left':_0x4e83a4[_0x28013d(0x19a)][_0x28013d(0x1e7)]??0x0,'top':_0x4e83a4[_0x28013d(0x19a)][_0x28013d(0x232)]??0x0,'width':_0x4e83a4['transform'][_0x28013d(0x165)]??0x0,'height':_0x4e83a4[_0x28013d(0x19a)][_0x28013d(0x24d)]??0x0,'rotation':_0x4e83a4[_0x28013d(0x19a)][_0x28013d(0x155)]??0x0,'flipX':_0x4e83a4[_0x28013d(0x19a)][_0x28013d(0x1cb)]??!0x1,'flipY':_0x4e83a4[_0x28013d(0x19a)][_0x28013d(0x24f)]??!0x1}};}[_0x3ab62d(0x233)](_0x4b8afc,_0x186a6b,_0x1c15f3){const _0x306816=_0x3ab62d;let _0x5e5930=_0x186a6b,_0x8d5277={..._0x186a6b[_0x306816(0x19a)],'left':_0x1c15f3[_0x306816(0x19a)][_0x306816(0x1e7)],'top':_0x1c15f3[_0x306816(0x19a)][_0x306816(0x232)],'width':_0x1c15f3[_0x306816(0x19a)][_0x306816(0x165)],'height':_0x1c15f3['transform'][_0x306816(0x24d)],'angle':_0x1c15f3['transform']['rotation'],'flipX':_0x1c15f3[_0x306816(0x19a)][_0x306816(0x1cb)],'flipY':_0x1c15f3['transform'][_0x306816(0x24f)]},_0x2acc6f={..._0x5e5930,'transform':_0x8d5277,'sheetTransform':(0x0,_0xdfae1c['transformToDrawingPosition'])(_0x8d5277,_0x4b8afc[_0x306816(0x1e8)]),'axisAlignSheetTransform':(0x0,_0xdfae1c[_0x306816(0x1a5)])(_0x8d5277,_0x4b8afc[_0x306816(0x1e8)]),'data':{..._0x5e5930[_0x306816(0x1d4)],'shapeType':_0x1c15f3[_0x306816(0x1a2)],'shapeData':_0x2e9216['Tools']['deepClone'](_0x1c15f3[_0x306816(0x1b9)])}};_0x4b8afc[_0x306816(0x19d)][_0x306816(0x1d6)](_0x186a6b['drawingId'],_0x2acc6f);}};_0x37b72b=_0x44edf5([_0x39def9(0x0,(0x0,_0x2e9216[_0x3ab62d(0x1f9)])(_0x46f17a)),_0x39def9(0x1,(0x0,_0x2e9216[_0x3ab62d(0x1f9)])(_0x23c3c7)),_0x39def9(0x2,(0x0,_0x2e9216['Inject'])(_0xdfae1c['SheetDrawingTransformPlanService']))],_0x37b72b);let _0x2713bb=class extends _0x2e9216[_0x3ab62d(0x191)]{constructor(_0x315ed1=_0x34edc7,_0x58b5a1,_0x31e808){const _0x1dd4b6=_0x3ab62d;super(),this['_config']=_0x315ed1,this[_0x1dd4b6(0x1d2)]=_0x58b5a1,this[_0x1dd4b6(0x23d)]=_0x31e808;let {..._0x36093f}=(0x0,_0x2e9216[_0x1dd4b6(0x1bf)])({},_0x34edc7,this[_0x1dd4b6(0x184)]);this[_0x1dd4b6(0x23d)][_0x1dd4b6(0x24c)]('sheets-shape.config',_0x36093f);}[_0x3ab62d(0x17b)](){const _0x3a66fd=_0x3ab62d;let _0x3303b5=this[_0x3a66fd(0x1d2)];[[_0x24085b],[_0x46f17a],[_0x23c3c7],[_0x37b72b],[_0xeecd86]][_0x3a66fd(0x176)](_0x12acb5=>_0x3303b5[_0x3a66fd(0x1fe)](_0x12acb5)),(0x0,_0x2e9216[_0x3a66fd(0x16a)])(_0x3303b5,[[_0x46f17a],[_0x37b72b],[_0xeecd86]]);}};_0x7ac35f(_0x2713bb,'type',_0x2e9216[_0x3ab62d(0x17a)]['UNIVER_SHEET']),_0x7ac35f(_0x2713bb,_0x3ab62d(0x154),_0x3ab62d(0x1a4)),_0x7ac35f(_0x2713bb,_0x3ab62d(0x1e2),_0x236355),_0x7ac35f(_0x2713bb,'version',_0x3d921e),_0x2713bb=_0x44edf5([(0x0,_0x2e9216[_0x3ab62d(0x229)])(_0xbe3b32[_0x3ab62d(0x1e9)],_0x1fdd07[_0x3ab62d(0x167)],_0x2de845['UniverShapePlugin'],_0x411fa1['UniverSheetsPlugin'],_0xdfae1c[_0x3ab62d(0x1b0)]),_0x39def9(0x1,(0x0,_0x2e9216[_0x3ab62d(0x1f9)])(_0x2e9216[_0x3ab62d(0x1fc)])),_0x39def9(0x2,_0x2e9216[_0x3ab62d(0x1a6)])],_0x2713bb),_0x4fb725[_0x3ab62d(0x164)]=0xc8,_0x4fb725[_0x3ab62d(0x226)]=0xc8,_0x4fb725['InsertShapeCommand']=_0x256812,_0x4fb725[_0x3ab62d(0x234)]=_0x248625,_0x4fb725[_0x3ab62d(0x1e5)]=_0x1d33d0,_0x4fb725[_0x3ab62d(0x1eb)]=_0x4b6118,_0x4fb725['SetSheetsShapeRotateCommand']=_0x3c907e,_0x4fb725[_0x3ab62d(0x1cd)]=_0x3a51f9,Object['defineProperty'](_0x4fb725,_0x3ab62d(0x1e1),{'enumerable':!0x0,'get':function(){return _0x46f17a;}}),_0x4fb725[_0x3ab62d(0x1fa)]=_0x2539ce,Object[_0x3ab62d(0x1d8)](_0x4fb725,_0x3ab62d(0x24e),{'enumerable':!0x0,'get':function(){return _0x2713bb;}}),_0x4fb725[_0x3ab62d(0x192)]=_0x502b37,_0x4fb725['UpdateLineShapeResizeCommand']=_0x504d72,_0x4fb725[_0x3ab62d(0x196)]=_0x3f9fc3,_0x4fb725[_0x3ab62d(0x1f0)]=_0x17d7d5;}));
|
|
1
|
+
function _0x2d21(_0x289afe,_0x2871ba){_0x289afe=_0x289afe-0x144;const _0x5518f3=_0x5518();let _0x2d212f=_0x5518f3[_0x289afe];return _0x2d212f;}(function(_0x3a15dc,_0x253593){const _0x2398f7=_0x2d21,_0x23d57e=_0x3a15dc();while(!![]){try{const _0x5c395e=parseInt(_0x2398f7(0x14f))/0x1+-parseInt(_0x2398f7(0x254))/0x2*(parseInt(_0x2398f7(0x194))/0x3)+parseInt(_0x2398f7(0x187))/0x4*(parseInt(_0x2398f7(0x230))/0x5)+parseInt(_0x2398f7(0x22b))/0x6*(-parseInt(_0x2398f7(0x211))/0x7)+-parseInt(_0x2398f7(0x1b0))/0x8*(parseInt(_0x2398f7(0x15b))/0x9)+parseInt(_0x2398f7(0x219))/0xa+-parseInt(_0x2398f7(0x1dc))/0xb*(-parseInt(_0x2398f7(0x268))/0xc);if(_0x5c395e===_0x253593)break;else _0x23d57e['push'](_0x23d57e['shift']());}catch(_0x4f6434){_0x23d57e['push'](_0x23d57e['shift']());}}}(_0x5518,0x20cc9),function(_0x48a9cf,_0x137678){const _0xec092c=_0x2d21;typeof exports==_0xec092c(0x218)&&typeof module<'u'?_0x137678(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define[_0xec092c(0x240)]?define(['exports',_0xec092c(0x1e7),_0xec092c(0x1e3),'@univerjs/sheets',_0xec092c(0x182),_0xec092c(0x1a1),_0xec092c(0x263)],_0x137678):(_0x48a9cf=typeof globalThis<'u'?globalThis:_0x48a9cf||self,_0x137678(_0x48a9cf[_0xec092c(0x237)]={},_0x48a9cf[_0xec092c(0x23c)],_0x48a9cf['UniverCore'],_0x48a9cf[_0xec092c(0x17e)],_0x48a9cf['UniverSheetsDrawing'],_0x48a9cf[_0xec092c(0x19e)],_0x48a9cf[_0xec092c(0x19d)]));}(this,function(_0x7e2a2a,_0x529ffa,_0x31f88e,_0x249c30,_0x591f3b,_0x5bf904,_0x3bd08b){const _0x55692e=_0x2d21;Object[_0x55692e(0x1c5)](_0x7e2a2a,Symbol[_0x55692e(0x163)],{'value':'Module'});function _0xafda57(_0x4b1c77){'@babel/helpers - typeof';const _0x35d702=_0x55692e;return _0xafda57=typeof Symbol==_0x35d702(0x175)&&typeof Symbol[_0x35d702(0x1cd)]==_0x35d702(0x261)?function(_0xbd442b){return typeof _0xbd442b;}:function(_0x1131f4){const _0x131986=_0x35d702;return _0x1131f4&&typeof Symbol==_0x131986(0x175)&&_0x1131f4['constructor']===Symbol&&_0x1131f4!==Symbol['prototype']?_0x131986(0x261):typeof _0x1131f4;},_0xafda57(_0x4b1c77);}function _0x3af3c3(_0x5a9eb8,_0x5500f7){const _0x4402ca=_0x55692e;if(_0xafda57(_0x5a9eb8)!=_0x4402ca(0x218)||!_0x5a9eb8)return _0x5a9eb8;var _0x424f4f;if(typeof Symbol<'u'&&(_0x424f4f=_0x5a9eb8[Symbol[_0x4402ca(0x1fb)]])!==void 0x0){var _0x1b750c=_0x424f4f['call'](_0x5a9eb8,_0x5500f7||'default');if(_0xafda57(_0x1b750c)!=_0x4402ca(0x218))return _0x1b750c;throw TypeError(_0x4402ca(0x223));}return(_0x5500f7==='string'?String:Number)(_0x5a9eb8);}function _0x5dbb82(_0x387fe5){const _0x8e0ac=_0x55692e;var _0x4a531c=_0x3af3c3(_0x387fe5,_0x8e0ac(0x150));return _0xafda57(_0x4a531c)=='symbol'?_0x4a531c:_0x4a531c+'';}function _0x1f3d42(_0x4043ec,_0x459add,_0xcde2a3){return(_0x459add=_0x5dbb82(_0x459add))in _0x4043ec?Object['defineProperty'](_0x4043ec,_0x459add,{'value':_0xcde2a3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4043ec[_0x459add]=_0xcde2a3,_0x4043ec;}var _0x2d46ab=class extends _0x31f88e[_0x55692e(0x1ef)]{constructor(){const _0x7438f9=_0x55692e;super(),_0x1f3d42(this,'_shapes',new Map()),_0x1f3d42(this,'_linesIds',new Set()),_0x1f3d42(this,_0x7438f9(0x1c6),new Set());}[_0x55692e(0x1f7)](_0x2c9e95,_0x7c429b,_0x5973d5,_0x2dd91b){const _0x4cffb7=_0x55692e;let _0x4fa476=new _0x529ffa[(_0x4cffb7(0x204))](_0x2c9e95,_0x7c429b,_0x5973d5,_0x2dd91b);return this[_0x4cffb7(0x1c3)][_0x4cffb7(0x269)](_0x7c429b,_0x4fa476),(0x0,_0x529ffa[_0x4cffb7(0x185)])(_0x2c9e95)&&this[_0x4cffb7(0x217)][_0x4cffb7(0x265)](_0x7c429b),_0x4fa476;}['getBasicShapeRelation'](_0x1f88c9){const _0x2ed93b=_0x55692e;let _0xfa01f1=[];for(let _0xa0467a of this['_linesIds']){let _0x2ba3a3=this['_shapes'][_0x2ed93b(0x162)](_0xa0467a);if(_0x2ba3a3){let _0x597c52=_0x2ba3a3[_0x2ed93b(0x1d0)]();if(_0x597c52){var _0x3eb00c,_0x4e2e23;((_0x3eb00c=_0x597c52[_0x2ed93b(0x160)])==null?void 0x0:_0x3eb00c[_0x2ed93b(0x1e0)])===_0x1f88c9&&_0xfa01f1[_0x2ed93b(0x1b4)]({..._0x597c52[_0x2ed93b(0x160)],'lineShapeId':_0xa0467a,'isFrom':!0x0}),((_0x4e2e23=_0x597c52['to'])==null?void 0x0:_0x4e2e23[_0x2ed93b(0x1e0)])===_0x1f88c9&&_0xfa01f1[_0x2ed93b(0x1b4)]({..._0x597c52['to'],'lineShapeId':_0xa0467a,'isFrom':!0x1});}}}return _0xfa01f1;}[_0x55692e(0x1bc)](_0x2c0150){const _0x1d0490=_0x55692e;let _0x5d9118=this[_0x1d0490(0x1c3)][_0x1d0490(0x162)](_0x2c0150);if(_0x5d9118)return _0x5d9118[_0x1d0490(0x1d0)]();}['getShapeType'](_0x31e9ec){const _0x1a7285=_0x55692e;let _0x109889=this['_shapes'][_0x1a7285(0x162)](_0x31e9ec);if(_0x109889)return _0x109889['getShapeType']();}[_0x55692e(0x156)](_0x578c5a){const _0x5706d3=_0x55692e;return this['_shapes'][_0x5706d3(0x1e4)](_0x578c5a);}[_0x55692e(0x1d7)](){const _0x22f442=_0x55692e;return Array[_0x22f442(0x160)](this['_shapes']['values']())[_0x22f442(0x1f5)](_0x51d3fe=>_0x51d3fe[_0x22f442(0x220)]()||_0x51d3fe[_0x22f442(0x188)]());}[_0x55692e(0x15e)](_0x5e604a,_0x3104c9){const _0x170c13=_0x55692e;let _0x2d2563=this[_0x170c13(0x1c3)]['get'](_0x3104c9);return!_0x2d2563||_0x5e604a[_0x170c13(0x156)](_0x3104c9)?!0x1:(this[_0x170c13(0x1b3)](_0x3104c9),_0x5e604a['_shapes']['set'](_0x3104c9,_0x2d2563),(0x0,_0x529ffa[_0x170c13(0x185)])(_0x2d2563[_0x170c13(0x168)]())&&_0x5e604a['_linesIds'][_0x170c13(0x265)](_0x3104c9),!0x0);}[_0x55692e(0x1b3)](_0x1cd368){const _0x2af627=_0x55692e;let _0x390ba8=this[_0x2af627(0x1c3)][_0x2af627(0x162)](_0x1cd368);_0x390ba8&&((0x0,_0x529ffa[_0x2af627(0x185)])(_0x390ba8[_0x2af627(0x168)]())&&this[_0x2af627(0x217)][_0x2af627(0x21a)](_0x1cd368),this[_0x2af627(0x1c3)][_0x2af627(0x21a)](_0x1cd368));}[_0x55692e(0x233)](){const _0x2bbb6b=_0x55692e;let _0x247050=[];return this[_0x2bbb6b(0x1c3)][_0x2bbb6b(0x235)](_0x2b0968=>{const _0xb9a4f3=_0x2bbb6b;_0x247050[_0xb9a4f3(0x1b4)](_0x2b0968[_0xb9a4f3(0x233)]());}),_0x247050;}[_0x55692e(0x17b)](_0x22db59){const _0x3f8530=_0x55692e;for(let _0x17811d of _0x22db59){let {id:_0x2c374e,shapeType:_0x8d6bf5,name:_0x5bdb06}=_0x17811d,_0x156e92=this[_0x3f8530(0x1f7)](_0x8d6bf5,_0x2c374e,_0x17811d[_0x3f8530(0x267)],_0x5bdb06);_0x156e92&&_0x156e92[_0x3f8530(0x193)]()&&this[_0x3f8530(0x217)]['add'](_0x2c374e);}}[_0x55692e(0x1ed)](){const _0x5697a5=_0x55692e;this[_0x5697a5(0x177)]||(this[_0x5697a5(0x1c3)]['forEach'](_0x1c5991=>{const _0x423b6a=_0x5697a5;_0x1c5991[_0x423b6a(0x1ed)]();}),this[_0x5697a5(0x1c3)][_0x5697a5(0x1f0)](),this[_0x5697a5(0x217)][_0x5697a5(0x1f0)](),this[_0x5697a5(0x1c6)][_0x5697a5(0x1f0)](),super[_0x5697a5(0x1ed)]());}};function _0x2f171d(_0x9c453,_0x288f09){return function(_0x439b2f,_0x5f4d9f){_0x288f09(_0x439b2f,_0x5f4d9f,_0x9c453);};}function _0x42fc2d(_0xacc313,_0x59ffb5,_0x13123f,_0x13c38b){const _0x44ae6f=_0x55692e;var _0x15d24b=arguments[_0x44ae6f(0x260)],_0x5606f5=_0x15d24b<0x3?_0x59ffb5:_0x13c38b===null?_0x13c38b=Object[_0x44ae6f(0x259)](_0x59ffb5,_0x13123f):_0x13c38b,_0x4b42cb;if(typeof Reflect=='object'&&typeof Reflect[_0x44ae6f(0x228)]==_0x44ae6f(0x175))_0x5606f5=Reflect[_0x44ae6f(0x228)](_0xacc313,_0x59ffb5,_0x13123f,_0x13c38b);else{for(var _0x1550dd=_0xacc313[_0x44ae6f(0x260)]-0x1;_0x1550dd>=0x0;_0x1550dd--)(_0x4b42cb=_0xacc313[_0x1550dd])&&(_0x5606f5=(_0x15d24b<0x3?_0x4b42cb(_0x5606f5):_0x15d24b>0x3?_0x4b42cb(_0x59ffb5,_0x13123f,_0x5606f5):_0x4b42cb(_0x59ffb5,_0x13123f))||_0x5606f5);}return _0x15d24b>0x3&&_0x5606f5&&Object[_0x44ae6f(0x1c5)](_0x59ffb5,_0x13123f,_0x5606f5),_0x5606f5;}let _0x30ea20=class extends _0x31f88e[_0x55692e(0x1ef)]{constructor(_0x4b42c2){const _0x453bb1=_0x55692e;super(),this['_resourcesManagerService']=_0x4b42c2,_0x1f3d42(this,_0x453bb1(0x21b),new Map()),this['_initSnapshot']();}[_0x55692e(0x238)](_0x3f1c7a,_0x36072b){const _0x5dcdcc=_0x55692e;let _0x4d4ad0=this[_0x5dcdcc(0x21b)][_0x5dcdcc(0x162)](_0x3f1c7a);_0x4d4ad0||(_0x4d4ad0=new Map(),this[_0x5dcdcc(0x21b)][_0x5dcdcc(0x269)](_0x3f1c7a,_0x4d4ad0));let _0x17dd43=_0x4d4ad0[_0x5dcdcc(0x162)](_0x36072b);return _0x17dd43||(_0x17dd43=new _0x2d46ab(),_0x4d4ad0[_0x5dcdcc(0x269)](_0x36072b,_0x17dd43)),_0x17dd43;}[_0x55692e(0x258)](_0x2c4f34,_0x5c7fea,_0x188f37,_0x3cba97,_0x437b74,_0x4a7e6b){const _0x534275=_0x55692e;this[_0x534275(0x238)](_0x2c4f34,_0x5c7fea)[_0x534275(0x1f7)](_0x188f37,_0x3cba97,_0x437b74,_0x4a7e6b);}[_0x55692e(0x157)](_0x3f532d,_0x6e7ab,_0x3b5017,_0xee227){const _0x5c8c38=_0x55692e;var _0x59b8c7;let _0x49cb73=(_0x59b8c7=this[_0x5c8c38(0x21b)][_0x5c8c38(0x162)](_0x3f532d))==null?void 0x0:_0x59b8c7['get'](_0x6e7ab);return!_0x49cb73||_0x6e7ab===_0x3b5017?!0x1:_0x49cb73['transferShapeTo'](this[_0x5c8c38(0x238)](_0x3f532d,_0x3b5017),_0xee227);}['removeShape'](_0x4b5948,_0x775e9d,_0x53a4b2){const _0x1c7122=_0x55692e;this[_0x1c7122(0x238)](_0x4b5948,_0x775e9d)[_0x1c7122(0x1b3)](_0x53a4b2);}[_0x55692e(0x25a)](_0x3d387a,_0x1d9e8c,_0x57075c){const _0x2583d5=_0x55692e;return this[_0x2583d5(0x238)](_0x3d387a,_0x1d9e8c)[_0x2583d5(0x168)](_0x57075c);}[_0x55692e(0x168)](_0x176dba,_0x48e3fe,_0x688aac){const _0x2e70e9=_0x55692e;return this[_0x2e70e9(0x238)](_0x176dba,_0x48e3fe)[_0x2e70e9(0x168)](_0x688aac);}[_0x55692e(0x156)](_0x96bac5,_0x417334,_0x298b46){const _0xfd38b6=_0x55692e;return this['_ensureShapeModelManager'](_0x96bac5,_0x417334)[_0xfd38b6(0x156)](_0x298b46);}[_0x55692e(0x252)](_0x295072,_0x20f675,_0x1bba25){const _0x39e1a2=_0x55692e;return this[_0x39e1a2(0x238)](_0x295072,_0x20f675)['getShapeType'](_0x1bba25);}[_0x55692e(0x198)](_0x1c7916,_0x5d8481,_0x50f293){const _0x1ae81a=_0x55692e;let _0x18934a=this[_0x1ae81a(0x238)](_0x1c7916,_0x5d8481);if(!_0x18934a['getShapeType'](_0x50f293))return;let _0xcb758e=_0x18934a[_0x1ae81a(0x1c3)][_0x1ae81a(0x162)](_0x50f293);if(_0xcb758e)return _0xcb758e['getShapeData']();}[_0x55692e(0x1d7)](_0x2b6716,_0x2dd2a2){const _0x1d2f0f=_0x55692e;return this['_ensureShapeModelManager'](_0x2b6716,_0x2dd2a2)[_0x1d2f0f(0x1d7)]();}[_0x55692e(0x234)](_0x491793,_0x9cb11e,_0x3ef6c4){const _0xd5ba46=_0x55692e;return this[_0xd5ba46(0x238)](_0x491793,_0x9cb11e)[_0xd5ba46(0x1c3)]['get'](_0x3ef6c4);}[_0x55692e(0x231)](_0x149a51,_0xc4ac8,_0x494577){const _0x28f1d2=_0x55692e;return this[_0x28f1d2(0x238)](_0x149a51,_0xc4ac8)[_0x28f1d2(0x231)](_0x494577);}[_0x55692e(0x1bc)](_0x2cdd77,_0x12f424,_0x142c16){const _0x2d7d06=_0x55692e;let _0x935158=this[_0x2d7d06(0x238)](_0x2cdd77,_0x12f424)['_shapes'][_0x2d7d06(0x162)](_0x142c16);if(_0x935158)return _0x935158[_0x2d7d06(0x1d0)]();}[_0x55692e(0x18e)](){}[_0x55692e(0x22a)](_0x23a2a6){const _0x506d1f=_0x55692e;let _0x45bd1b={},_0x4fba45=this[_0x506d1f(0x21b)][_0x506d1f(0x162)](_0x23a2a6);return _0x4fba45&&_0x4fba45[_0x506d1f(0x235)]((_0x11bf30,_0x5090f4)=>{const _0x38f142=_0x506d1f;let _0xe179c1=_0x11bf30['toJSON']();_0xe179c1[_0x38f142(0x260)]>0x0&&(_0x45bd1b[_0x5090f4]=_0xe179c1);}),JSON[_0x506d1f(0x17f)](_0x45bd1b);}[_0x55692e(0x1e9)](_0x3a40f6,_0x436384){const _0x110a2f=_0x55692e;Object[_0x110a2f(0x14c)](_0x436384)[_0x110a2f(0x235)](_0x54fc99=>{const _0x7f83ae=_0x110a2f;this[_0x7f83ae(0x238)](_0x3a40f6,_0x54fc99)[_0x7f83ae(0x17b)](_0x436384[_0x54fc99]);});}['toJSON'](){const _0x196caf=_0x55692e;let _0x330a4b={};return this[_0x196caf(0x21b)][_0x196caf(0x235)]((_0x524f9c,_0x5bcc1c)=>{const _0x176c0a=_0x196caf;_0x330a4b[_0x5bcc1c]={},_0x524f9c[_0x176c0a(0x235)]((_0x1869b0,_0x4e131c)=>{const _0x42f50f=_0x176c0a;_0x330a4b[_0x5bcc1c][_0x4e131c]=_0x1869b0[_0x42f50f(0x233)]();});}),_0x330a4b;}['fromJSON'](_0x5085ef){const _0x115209=_0x55692e;Object[_0x115209(0x14c)](_0x5085ef)[_0x115209(0x235)](_0x1421d4=>{const _0x26a3c7=_0x115209;let _0x4aa018=_0x5085ef[_0x1421d4];Object['keys'](_0x4aa018)[_0x26a3c7(0x235)](_0x251765=>{const _0x3b5a3c=_0x26a3c7;this[_0x3b5a3c(0x238)](_0x1421d4,_0x251765)['fromJSON'](_0x4aa018[_0x251765]);});});}['_initSnapshot'](){const _0x27a1fc=_0x55692e;this['_resourcesManagerService']['registerPluginResource']({'pluginName':_0x27a1fc(0x25f),'businesses':[_0x31f88e[_0x27a1fc(0x207)][_0x27a1fc(0x1fa)]],'toJson':_0x51e3b2=>this[_0x27a1fc(0x22a)](_0x51e3b2),'parseJson':_0x3fab41=>JSON[_0x27a1fc(0x19b)](_0x3fab41),'onLoad':(_0x37dd87,_0x43a7bb)=>{const _0x3fa4b9=_0x27a1fc;this[_0x3fa4b9(0x1e9)](_0x37dd87,_0x43a7bb);},'onUnLoad':_0x493e27=>{const _0x241651=_0x27a1fc;let _0x3e3142=this['_shapeModelManagerMap']['get'](_0x493e27);_0x3e3142&&(_0x3e3142[_0x241651(0x235)](_0x44fa0e=>{const _0x27e96b=_0x241651;_0x44fa0e[_0x27e96b(0x1ed)]();}),this[_0x241651(0x21b)][_0x241651(0x21a)](_0x493e27));}});}[_0x55692e(0x1ed)](){const _0x4a8e94=_0x55692e;this[_0x4a8e94(0x21b)][_0x4a8e94(0x235)](_0x35cd08=>{_0x35cd08['forEach'](_0x100ad2=>{_0x100ad2['dispose']();});});}};_0x30ea20=_0x42fc2d([_0x2f171d(0x0,_0x31f88e[_0x55692e(0x144)])],_0x30ea20);let _0x225abf={'id':'sheet.mutation.insert-shape','type':_0x31f88e['CommandType'][_0x55692e(0x20a)],'handler':(_0x5a370c,_0x500fc4)=>{const _0x27798e=_0x55692e;let {unitId:_0x12cd5b,subUnitId:_0x298e02,shapeType:_0x42fe35,shapeId:_0x17a112,shapeName:_0x466ba5,shapeData:_0x19e650}=_0x500fc4;return _0x5a370c[_0x27798e(0x162)](_0x30ea20)['insertShape'](_0x12cd5b,_0x298e02,_0x42fe35,_0x17a112,_0x31f88e[_0x27798e(0x25c)][_0x27798e(0x174)](_0x19e650),_0x466ba5),!0x0;}},_0x10dcea={'id':'sheet.mutation.remove-shape','type':_0x31f88e['CommandType'][_0x55692e(0x20a)],'handler':(_0x2cbcc6,_0x5b9589)=>{const _0x3772d7=_0x55692e;let {unitId:_0x276475,subUnitId:_0x1ca0cb,shapeId:_0x3b7c49}=_0x5b9589;return _0x2cbcc6[_0x3772d7(0x162)](_0x30ea20)['removeShape'](_0x276475,_0x1ca0cb,_0x3b7c49),!0x0;}},_0xe55bf9={'type':_0x31f88e[_0x55692e(0x213)]['COMMAND'],'id':_0x55692e(0x24a),'handler':(_0x2bd78d,_0x26c008)=>{const _0x4f1fc9=_0x55692e;let _0x3cbe51=(0x0,_0x249c30[_0x4f1fc9(0x171)])(_0x2bd78d[_0x4f1fc9(0x162)](_0x31f88e[_0x4f1fc9(0x1e1)]),_0x26c008);if(!_0x3cbe51)return!0x1;let {unitId:_0x29a4af,subUnitId:_0x32b167,worksheet:_0x2280c9}=_0x3cbe51,_0x124e7e=_0x2280c9[_0x4f1fc9(0x23b)]()[_0x4f1fc9(0x21e)]??_0x31f88e[_0x4f1fc9(0x246)]['GRID'],_0x5c5752=_0x124e7e===_0x31f88e['SheetTypes']['CHART'];if(!_0x5c5752&&_0x124e7e!==_0x31f88e[_0x4f1fc9(0x246)]['GRID'])return!0x1;let _0x15e43e=_0x5c5752?void 0x0:_0x2bd78d[_0x4f1fc9(0x162)](_0x249c30[_0x4f1fc9(0x251)])[_0x4f1fc9(0x178)](_0x29a4af,_0x32b167);if(!_0x5c5752&&!_0x15e43e)return!0x1;let _0x421d88=_0x5c5752?_0x26c008[_0x4f1fc9(0x1f2)]??0xc8:_0x26c008[_0x4f1fc9(0x1f2)]||0xc8,_0x4be946=_0x5c5752?_0x26c008['height']??0xc8:_0x26c008[_0x4f1fc9(0x173)]||0xc8,{position:_0x5997fc}=_0x26c008;if(_0x5c5752&&(!Number[_0x4f1fc9(0x241)](_0x421d88)||!Number[_0x4f1fc9(0x241)](_0x4be946)||_0x421d88<=0x0||_0x4be946<=0x0||_0x5997fc&&(!Number[_0x4f1fc9(0x241)](_0x5997fc['x'])||!Number[_0x4f1fc9(0x241)](_0x5997fc['y']))))return!0x1;let _0xef82e8=_0x2bd78d[_0x4f1fc9(0x162)](_0x31f88e[_0x4f1fc9(0x1ee)]),_0x51505c=_0x2bd78d[_0x4f1fc9(0x162)](_0x31f88e['IUndoRedoService']),_0x5ad173=_0x2bd78d[_0x4f1fc9(0x162)](_0x249c30[_0x4f1fc9(0x1b2)]),_0x31c29c=_0x2bd78d['get'](_0x591f3b[_0x4f1fc9(0x1f4)]),_0x3c0626=_0x2bd78d[_0x4f1fc9(0x162)](_0x30ea20),{shapeType:_0x3f8c48}=_0x26c008,_0x32961d=_0x26c008['shapeData']??(0x0,_0x529ffa[_0x4f1fc9(0x20b)])(_0x3f8c48),_0x352bd8=_0x26c008[_0x4f1fc9(0x1e0)]||(0x0,_0x31f88e[_0x4f1fc9(0x169)])(),_0x140168={'unitId':_0x29a4af,'subUnitId':_0x32b167,'shapeId':_0x352bd8,'shapeName':_0x26c008[_0x4f1fc9(0x14b)]??(0x0,_0x529ffa[_0x4f1fc9(0x196)])(_0x3f8c48,_0x3c0626[_0x4f1fc9(0x1d7)](_0x29a4af,_0x32b167)),'shapeType':_0x3f8c48,'shapeData':_0x32961d},_0x47537c=0x0,_0x2f6ea7=0x0;if(_0x26c008[_0x4f1fc9(0x1cf)]){let {x:_0xf24f07,y:_0x1c880c}=_0x26c008[_0x4f1fc9(0x1cf)];_0x47537c=_0xf24f07,_0x2f6ea7=_0x1c880c;}else{if(_0x26c008[_0x4f1fc9(0x257)]&&_0x15e43e){let {startRow:_0x270bfb,startColumn:_0x499843}=_0x26c008[_0x4f1fc9(0x257)],_0x24a897=_0x15e43e[_0x4f1fc9(0x227)](_0x270bfb,_0x499843);_0x47537c=_0x24a897['startX']+0xa,_0x2f6ea7=_0x24a897[_0x4f1fc9(0x145)]+0xa;}}let _0x563947={'left':_0x47537c,'top':_0x2f6ea7,'width':_0x421d88,'height':_0x4be946,'angle':_0x26c008[_0x4f1fc9(0x18a)]??0x0,'flipX':_0x26c008[_0x4f1fc9(0x161)]??!0x1,'flipY':_0x26c008[_0x4f1fc9(0x1a9)]??!0x1},_0x211e73={'row':0x0,'column':0x0,'rowOffset':0x0,'columnOffset':0x0},_0x2133e7=_0x15e43e?(0x0,_0x591f3b[_0x4f1fc9(0x1aa)])(_0x563947,_0x15e43e):{'from':_0x211e73,'to':_0x211e73},_0x228c34=_0x15e43e?(0x0,_0x591f3b[_0x4f1fc9(0x225)])(_0x563947,_0x15e43e):_0x2133e7,_0x270bfe={'unitId':_0x29a4af,'subUnitId':_0x32b167,'drawingId':_0x352bd8,'drawingType':_0x31f88e[_0x4f1fc9(0x1d9)][_0x4f1fc9(0x256)],'anchorType':_0x591f3b['SheetDrawingAnchorType'][_0x4f1fc9(0x19a)],'name':_0x26c008['name'],'description':_0x26c008[_0x4f1fc9(0x197)],'sheetTransform':_0x2133e7,'transform':_0x563947,'data':{'shapeType':_0x3f8c48,'shapeData':_0x32961d},'axisAlignSheetTransform':_0x228c34,'allowTransform':!0x0,'hidden':_0x26c008[_0x4f1fc9(0x14d)]===!0x1,'selectable':_0x26c008[_0x4f1fc9(0x147)]??!0x0};if(_0x5c5752){let _0x2908f0=(0x0,_0x591f3b['applySheetDrawingPlacement'])(_0x270bfe,{'kind':_0x591f3b['SheetDrawingAnchorType'][_0x4f1fc9(0x1f3)],'left':_0x47537c,'top':_0x2f6ea7,'width':_0x421d88,'height':_0x4be946});_0x270bfe={..._0x270bfe,'anchorType':_0x2908f0[_0x4f1fc9(0x23f)],'transform':_0x2908f0['transform'],'sheetTransform':_0x2908f0['sheetTransform'],'axisAlignSheetTransform':_0x2908f0['axisAlignSheetTransform']};}(0x0,_0x529ffa[_0x4f1fc9(0x185)])(_0x3f8c48)&&(_0x270bfe[_0x4f1fc9(0x20c)][_0x4f1fc9(0x191)]=!0x1,_0x270bfe[_0x4f1fc9(0x20c)][_0x4f1fc9(0x1dd)]=!0x1,_0x270bfe[_0x4f1fc9(0x20c)][_0x4f1fc9(0x226)]=!0x1,_0x270bfe[_0x4f1fc9(0x20c)][_0x4f1fc9(0x1e6)]=!0x1,_0x270bfe[_0x4f1fc9(0x1f9)][_0x4f1fc9(0x1dd)]=!0x1,_0x270bfe[_0x4f1fc9(0x1f9)][_0x4f1fc9(0x226)]=!0x1,_0x270bfe[_0x4f1fc9(0x1f9)]['borderEnabled']=!0x1);let {undo:_0x8ad368,redo:_0x5383c0,objects:_0x395e62}=_0x31c29c[_0x4f1fc9(0x236)]([_0x270bfe]),_0x4c9c4b=_0x5ad173[_0x4f1fc9(0x1c1)]({'id':_0x591f3b[_0x4f1fc9(0x23d)]['id'],'params':{'unitId':_0x29a4af,'drawings':[_0x270bfe]}}),_0x4fb104=[..._0x4c9c4b[_0x4f1fc9(0x1b8)]??[],{'id':_0x591f3b[_0x4f1fc9(0x152)]['id'],'params':{'unitId':_0x29a4af,'subUnitId':_0x32b167,'op':_0x5383c0,'objects':_0x395e62,'type':_0x591f3b['DrawingApplyType'][_0x4f1fc9(0x148)]}},{'id':_0x591f3b['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x29a4af]},..._0x4c9c4b['redos'],{'id':_0x225abf['id'],'params':_0x140168}],_0x336a13=[{'id':_0x10dcea['id'],'params':{'unitId':_0x29a4af,'subUnitId':_0x32b167,'shapeId':_0x352bd8}},..._0x4c9c4b[_0x4f1fc9(0x1d6)]??[],{'id':_0x591f3b[_0x4f1fc9(0x152)]['id'],'params':{'unitId':_0x29a4af,'subUnitId':_0x32b167,'op':_0x8ad368,'objects':_0x395e62,'type':_0x591f3b[_0x4f1fc9(0x166)][_0x4f1fc9(0x201)]}},{'id':_0x591f3b[_0x4f1fc9(0x1a7)]['id'],'params':[_0x29a4af]},..._0x4c9c4b['undos']];return(0x0,_0x31f88e[_0x4f1fc9(0x250)])(_0x4fb104,_0xef82e8)[_0x4f1fc9(0x1de)]?(_0x51505c[_0x4f1fc9(0x189)]({'unitID':_0x29a4af,'undoMutations':_0x336a13,'redoMutations':_0x4fb104}),!0x0):!0x1;}},_0x33666f={'id':_0x55692e(0x244),'type':_0x31f88e[_0x55692e(0x213)][_0x55692e(0x20a)],'handler':(_0x1214ed,_0x4633fc)=>{const _0xd44a75=_0x55692e;let {unitId:_0x1b9a9c,subUnitId:_0x3d280e,shapeType:_0x1bcc0d,shapeId:_0x2aed94,shapeData:_0x515b2c,replace:_0x229213,formulaLastValueGuard:_0x5a34ad}=_0x4633fc,_0x45916d=_0x1214ed[_0xd44a75(0x162)](_0x30ea20)[_0xd44a75(0x234)](_0x1b9a9c,_0x3d280e,_0x2aed94);if(_0x45916d){var _0x3f33de;if(!(0x0,_0x529ffa[_0xd44a75(0x186)])(_0x1214ed,{'hostType':_0x31f88e['UniverInstanceType'][_0xd44a75(0x1fa)],'unitId':_0x1b9a9c,'subUnitId':_0x3d280e,'shapeId':_0x2aed94},(_0x3f33de=_0x45916d[_0xd44a75(0x255)]()['formulaBinding'])==null?void 0x0:_0x3f33de['formula'],_0x5a34ad))return!0x0;_0x1bcc0d!==void 0x0&&_0x45916d[_0xd44a75(0x18e)](_0x1bcc0d),_0x515b2c&&(_0x45916d==null||_0x45916d['setShapeData'](_0x31f88e[_0xd44a75(0x25c)][_0xd44a75(0x174)](_0x515b2c),!_0x229213));}return!0x0;}},_0xe79fa7={'type':_0x31f88e['CommandType'][_0x55692e(0x24e)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x327728,_0x25b9cd)=>{const _0x39c5e8=_0x55692e;let _0x1856e0=(0x0,_0x249c30['getSheetCommandTarget'])(_0x327728[_0x39c5e8(0x162)](_0x31f88e[_0x39c5e8(0x1e1)]),_0x25b9cd);if(!_0x1856e0)return!0x1;let _0x23aa9=_0x327728[_0x39c5e8(0x162)](_0x249c30[_0x39c5e8(0x251)]),{unitId:_0x19b123,subUnitId:_0x228938}=_0x1856e0,_0x27faa5=_0x23aa9[_0x39c5e8(0x178)](_0x19b123,_0x228938);if(!_0x27faa5)return!0x1;let _0x589613=_0x327728[_0x39c5e8(0x162)](_0x30ea20),{shapeId:_0xbd56c0,shapeType:_0x3c8ffb,shapeData:_0x517efc,position:_0x51794a,width:_0x301bc2,height:_0x268746}=_0x25b9cd,_0xff8620=_0x589613['getShapeModel'](_0x19b123,_0x228938,_0xbd56c0);if(!_0xff8620)return!0x1;let _0x205269=_0x327728[_0x39c5e8(0x162)](_0x31f88e[_0x39c5e8(0x1ee)]),_0x5a13b0=_0x327728[_0x39c5e8(0x162)](_0x31f88e[_0x39c5e8(0x1d3)]),_0x2c3265=_0x327728['get'](_0x249c30[_0x39c5e8(0x1b2)]),_0x4c82db=_0x327728['get'](_0x591f3b[_0x39c5e8(0x1f4)]),_0x5be7aa={'unitId':_0x19b123,'subUnitId':_0x228938,'shapeId':_0xbd56c0,'shapeType':_0x3c8ffb,'shapeData':_0x517efc,'replace':!0x0},_0x487522=_0xff8620[_0x39c5e8(0x168)](),_0xd592f5=_0xff8620[_0x39c5e8(0x255)](),{x:_0x310823,y:_0x5a7d8e}=_0x51794a,_0x56d7cb={'left':_0x310823,'top':_0x5a7d8e,'width':_0x301bc2,'height':_0x268746,'angle':_0x25b9cd[_0x39c5e8(0x18a)]??0x0,'flipX':_0x25b9cd[_0x39c5e8(0x161)]??!0x1,'flipY':_0x25b9cd['flipY']??!0x1},_0x1c9cfd=(0x0,_0x591f3b['transformToDrawingPosition'])(_0x56d7cb,_0x27faa5),_0x540473=(0x0,_0x591f3b['transformToAxisAlignPosition'])(_0x56d7cb,_0x27faa5),_0x2de8be={'unitId':_0x19b123,'subUnitId':_0x228938,'drawingId':_0xbd56c0,'drawingType':_0x31f88e[_0x39c5e8(0x1d9)][_0x39c5e8(0x256)],'name':_0x25b9cd['name'],'description':_0x25b9cd[_0x39c5e8(0x197)],'sheetTransform':_0x1c9cfd,'transform':_0x56d7cb,'data':{'shapeType':_0x3c8ffb,'shapeData':_0x517efc},'axisAlignSheetTransform':_0x540473,'allowTransform':!0x0,'hidden':!_0x25b9cd[_0x39c5e8(0x14d)],'selectable':_0x25b9cd['selectable']};(0x0,_0x529ffa[_0x39c5e8(0x185)])(_0x3c8ffb)&&(_0x2de8be['data']['fill']=!0x1,_0x2de8be['data'][_0x39c5e8(0x1dd)]=!0x1,_0x2de8be[_0x39c5e8(0x20c)][_0x39c5e8(0x226)]=!0x1,_0x2de8be[_0x39c5e8(0x20c)][_0x39c5e8(0x1e6)]=!0x1,_0x2de8be[_0x39c5e8(0x1f9)][_0x39c5e8(0x1dd)]=!0x1,_0x2de8be[_0x39c5e8(0x1f9)][_0x39c5e8(0x226)]=!0x1,_0x2de8be['transform'][_0x39c5e8(0x1e6)]=!0x1);let {undo:_0x46193b,redo:_0x25a7d1,objects:_0xfef499}=_0x4c82db[_0x39c5e8(0x1ad)]([_0x2de8be]),_0x32628b=_0x2c3265['onCommandExecute']({'id':_0x591f3b['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x19b123,'drawings':[_0x2de8be]}}),_0x2d3a97=[..._0x32628b['preRedos']??[],{'id':_0x591f3b[_0x39c5e8(0x152)]['id'],'params':{'unitId':_0x19b123,'subUnitId':_0x228938,'op':_0x25a7d1,'objects':_0xfef499,'type':_0x591f3b[_0x39c5e8(0x166)][_0x39c5e8(0x1a8)]}},{'id':_0x591f3b[_0x39c5e8(0x1a7)]['id'],'params':[_0x19b123]},..._0x32628b['redos'],{'id':_0x33666f['id'],'params':_0x5be7aa}],_0x2d0351=[..._0x32628b[_0x39c5e8(0x1d6)]??[],{'id':_0x591f3b[_0x39c5e8(0x152)]['id'],'params':{'unitId':_0x19b123,'subUnitId':_0x228938,'op':_0x46193b,'objects':_0xfef499,'type':_0x591f3b[_0x39c5e8(0x166)]['UPDATE']}},{'id':_0x591f3b[_0x39c5e8(0x1a7)]['id'],'params':[_0x19b123]},..._0x32628b['undos'],{'id':_0x33666f['id'],'params':{'unitId':_0x19b123,'subUnitId':_0x228938,'shapeType':_0x487522,'shapeId':_0xbd56c0,'shapeData':_0xd592f5,'replace':!0x0}}];return(0x0,_0x31f88e[_0x39c5e8(0x250)])(_0x2d3a97,_0x205269)[_0x39c5e8(0x1de)]?(_0x5a13b0['pushUndoRedo']({'unitID':_0x19b123,'undoMutations':_0x2d0351,'redoMutations':_0x2d3a97}),!0x0):!0x1;}},_0xdc799={'type':_0x31f88e['CommandType'][_0x55692e(0x24e)],'id':_0x55692e(0x248),'handler':(_0x3eaaa1,_0x800699)=>{const _0x3f9c14=_0x55692e;let _0x4ab0b4=(0x0,_0x249c30['getSheetCommandTarget'])(_0x3eaaa1[_0x3f9c14(0x162)](_0x31f88e['IUniverInstanceService']),_0x800699);if(!_0x4ab0b4)return!0x1;let _0x2ef83e=_0x3eaaa1['get'](_0x249c30[_0x3f9c14(0x251)]),{unitId:_0x5df1ef,subUnitId:_0x27d2c1}=_0x4ab0b4,_0x1bee25=_0x2ef83e[_0x3f9c14(0x20f)](_0x5df1ef,_0x27d2c1);if(!_0x1bee25)return!0x1;let _0x2f6e59=_0x3eaaa1[_0x3f9c14(0x162)](_0x591f3b[_0x3f9c14(0x1f4)]),{shapeId:_0x5247a0,flipH:_0x14ec50,flipV:_0x5de7bb}=_0x800699,_0x5ea181=_0x2f6e59['getDrawingByParam']({'unitId':_0x5df1ef,'subUnitId':_0x27d2c1,'drawingId':_0x5247a0});if(!_0x5ea181)return!0x1;let _0x58c1ac=_0x3eaaa1['get'](_0x30ea20)[_0x3f9c14(0x234)](_0x5df1ef,_0x27d2c1,_0x5247a0);if(!_0x58c1ac)return!0x1;let _0xdf6ac6=_0x3eaaa1[_0x3f9c14(0x162)](_0x31f88e['ICommandService']),_0x43812f=_0x3eaaa1['get'](_0x31f88e[_0x3f9c14(0x1d3)]),_0x2edb5a=_0x3eaaa1[_0x3f9c14(0x162)](_0x249c30[_0x3f9c14(0x1b2)]),_0x3dfa09={..._0x5ea181['transform']};_0x14ec50!==void 0x0&&(_0x3dfa09[_0x3f9c14(0x161)]=!_0x3dfa09['flipX']),_0x5de7bb!==void 0x0&&(_0x3dfa09[_0x3f9c14(0x1a9)]=!_0x3dfa09[_0x3f9c14(0x1a9)]);let _0x1db67d=(0x0,_0x591f3b[_0x3f9c14(0x1aa)])(_0x3dfa09,_0x1bee25),_0x2890=(0x0,_0x591f3b[_0x3f9c14(0x225)])(_0x3dfa09,_0x1bee25),_0x291aa4=_0x58c1ac['getShapeType'](),_0x1f6f00=_0x58c1ac['getShapeData'](),_0xa355c4={'unitId':_0x5df1ef,'subUnitId':_0x27d2c1,'drawingId':_0x5247a0,'drawingType':_0x31f88e['DrawingTypeEnum'][_0x3f9c14(0x256)],'sheetTransform':_0x1db67d,'transform':_0x3dfa09,'data':{'shapeType':_0x291aa4,'shapeData':_0x1f6f00},'axisAlignSheetTransform':_0x2890,'allowTransform':!0x0},{undo:_0x351643,redo:_0x45f474,objects:_0x4eebce}=_0x2f6e59[_0x3f9c14(0x1ad)]([_0xa355c4]),_0x4309fe=_0x2edb5a[_0x3f9c14(0x1c1)]({'id':_0x591f3b['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x5df1ef,'drawings':[_0xa355c4]}}),_0x240dd1=[..._0x4309fe['preRedos']??[],{'id':_0x591f3b[_0x3f9c14(0x152)]['id'],'params':{'unitId':_0x5df1ef,'subUnitId':_0x27d2c1,'op':_0x45f474,'objects':_0x4eebce,'type':_0x591f3b[_0x3f9c14(0x166)][_0x3f9c14(0x1a8)]}},{'id':_0x591f3b['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5df1ef]},..._0x4309fe[_0x3f9c14(0x1df)]],_0x1a074c=[..._0x4309fe['preUndos']??[],{'id':_0x591f3b['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5df1ef,'subUnitId':_0x27d2c1,'op':_0x351643,'objects':_0x4eebce,'type':_0x591f3b['DrawingApplyType'][_0x3f9c14(0x1a8)]}},{'id':_0x591f3b[_0x3f9c14(0x1a7)]['id'],'params':[_0x5df1ef]},..._0x4309fe[_0x3f9c14(0x1da)]];if((0x0,_0x529ffa[_0x3f9c14(0x185)])(_0x291aa4)){let _0x15f9d7=_0x58c1ac[_0x3f9c14(0x1d0)]();if(_0x15f9d7){let _0x4363c9={..._0x15f9d7};_0x4363c9[_0x3f9c14(0x160)]=void 0x0,_0x4363c9['to']=void 0x0,_0x240dd1['push']({'id':_0x33666f['id'],'params':{'unitId':_0x5df1ef,'subUnitId':_0x27d2c1,'shapeId':_0x5247a0,'shapeType':_0x291aa4,'shapeData':{'relation':_0x4363c9}}}),_0x1a074c[_0x3f9c14(0x1b4)]({'id':_0x33666f['id'],'params':{'unitId':_0x5df1ef,'subUnitId':_0x27d2c1,'shapeId':_0x5247a0,'shapeType':_0x291aa4,'shapeData':{'relation':_0x15f9d7}}});}}return(0x0,_0x31f88e['sequenceExecute'])(_0x240dd1,_0xdf6ac6)['result']?(_0x43812f[_0x3f9c14(0x189)]({'unitID':_0x5df1ef,'undoMutations':_0x1a074c,'redoMutations':_0x240dd1}),!0x0):!0x1;}},_0x4a30db={'type':_0x31f88e[_0x55692e(0x213)]['COMMAND'],'id':'sheet.command.set-shape-rotate','handler':(_0xde2ba6,_0x48a682)=>{const _0x10f5aa=_0x55692e;let _0x1bcf41=(0x0,_0x249c30['getSheetCommandTarget'])(_0xde2ba6['get'](_0x31f88e[_0x10f5aa(0x1e1)]),_0x48a682);if(!_0x1bcf41)return!0x1;let _0x33b5da=_0xde2ba6[_0x10f5aa(0x162)](_0x249c30[_0x10f5aa(0x251)]),{unitId:_0x77d1cd,subUnitId:_0x3797f1}=_0x1bcf41,_0x42bd10=_0x33b5da[_0x10f5aa(0x20f)](_0x77d1cd,_0x3797f1);if(!_0x42bd10)return!0x1;let _0x4b0c11=_0xde2ba6[_0x10f5aa(0x162)](_0x591f3b['ISheetDrawingService']),{shapeId:_0x161bf6,rotate:_0x1dcc81}=_0x48a682,_0x3de711=_0x4b0c11[_0x10f5aa(0x239)]({'unitId':_0x77d1cd,'subUnitId':_0x3797f1,'drawingId':_0x161bf6});if(!_0x3de711)return!0x1;let _0x1cf5c2=_0xde2ba6[_0x10f5aa(0x162)](_0x30ea20)['getShapeModel'](_0x77d1cd,_0x3797f1,_0x161bf6);if(!_0x1cf5c2)return!0x1;let _0x345974=_0xde2ba6[_0x10f5aa(0x162)](_0x31f88e['ICommandService']),_0x83ed56=_0xde2ba6[_0x10f5aa(0x162)](_0x31f88e[_0x10f5aa(0x1d3)]),_0x5395f5=_0xde2ba6['get'](_0x249c30[_0x10f5aa(0x1b2)]),_0x53079e={..._0x3de711[_0x10f5aa(0x1f9)]};_0x1dcc81!==void 0x0&&(_0x53079e[_0x10f5aa(0x214)]=(_0x53079e[_0x10f5aa(0x214)]||0x0)+_0x1dcc81);let _0x112656=(0x0,_0x591f3b[_0x10f5aa(0x1aa)])(_0x53079e,_0x42bd10),_0x550339=(0x0,_0x591f3b[_0x10f5aa(0x225)])(_0x53079e,_0x42bd10),_0x42623b=_0x1cf5c2[_0x10f5aa(0x168)](),_0x5a9a29=_0x1cf5c2['getShapeData'](),_0x55fac8={'unitId':_0x77d1cd,'subUnitId':_0x3797f1,'drawingId':_0x161bf6,'drawingType':_0x31f88e[_0x10f5aa(0x1d9)]['DRAWING_SHAPE'],'sheetTransform':_0x112656,'transform':_0x53079e,'data':{'shapeType':_0x42623b,'shapeData':_0x5a9a29},'axisAlignSheetTransform':_0x550339,'allowTransform':!0x0},{undo:_0x3b5801,redo:_0x59ba01,objects:_0x50d34b}=_0x4b0c11[_0x10f5aa(0x1ad)]([_0x55fac8]),_0x37f704=_0x5395f5[_0x10f5aa(0x1c1)]({'id':_0x591f3b[_0x10f5aa(0x1bf)]['id'],'params':{'unitId':_0x77d1cd,'drawings':[_0x55fac8]}}),_0x227e29=[..._0x37f704[_0x10f5aa(0x1b8)]??[],{'id':_0x591f3b[_0x10f5aa(0x152)]['id'],'params':{'unitId':_0x77d1cd,'subUnitId':_0x3797f1,'op':_0x59ba01,'objects':_0x50d34b,'type':_0x591f3b['DrawingApplyType'][_0x10f5aa(0x1a8)]}},{'id':_0x591f3b[_0x10f5aa(0x1a7)]['id'],'params':[_0x77d1cd]},..._0x37f704['redos']],_0x2fda37=[..._0x37f704[_0x10f5aa(0x1d6)]??[],{'id':_0x591f3b['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x77d1cd,'subUnitId':_0x3797f1,'op':_0x3b5801,'objects':_0x50d34b,'type':_0x591f3b[_0x10f5aa(0x166)][_0x10f5aa(0x1a8)]}},{'id':_0x591f3b['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x77d1cd]},..._0x37f704[_0x10f5aa(0x1da)]];return(0x0,_0x31f88e[_0x10f5aa(0x250)])(_0x227e29,_0x345974)[_0x10f5aa(0x1de)]?(_0x83ed56[_0x10f5aa(0x189)]({'unitID':_0x77d1cd,'undoMutations':_0x2fda37,'redoMutations':_0x227e29}),!0x0):!0x1;}},_0x18882d={'type':_0x31f88e[_0x55692e(0x213)]['COMMAND'],'id':_0x55692e(0x190),'handler':(_0x5e9c56,_0xd4f72b)=>{const _0x2af7b6=_0x55692e;let _0x4a64e9=(0x0,_0x249c30[_0x2af7b6(0x171)])(_0x5e9c56['get'](_0x31f88e[_0x2af7b6(0x1e1)]),_0xd4f72b);if(!_0x4a64e9)return!0x1;let {unitId:_0x1c489b,subUnitId:_0xf431b6}=_0x4a64e9,{shapeId:_0x7cabb3}=_0xd4f72b,_0x5c8b3b=_0x5e9c56[_0x2af7b6(0x162)](_0x30ea20)['getShapeModel'](_0x1c489b,_0xf431b6,_0x7cabb3);if(!_0x5c8b3b)return!0x1;let _0xe7b289=_0x5c8b3b[_0x2af7b6(0x200)](),_0x55ca41=(_0xe7b289==null?void 0x0:_0xe7b289[_0x2af7b6(0x1e8)])??!0x0,_0xee70cc=!_0x55ca41,_0x32fb50=_0x5e9c56[_0x2af7b6(0x162)](_0x31f88e[_0x2af7b6(0x1ee)]),_0x108757=_0x5e9c56['get'](_0x31f88e[_0x2af7b6(0x1d3)]),_0x4a5c03={'unitId':_0x1c489b,'subUnitId':_0xf431b6,'shapeId':_0x7cabb3,'shapeData':{'shapeText':{'isHorizontal':_0xee70cc}}},_0x1e0589={'unitId':_0x1c489b,'subUnitId':_0xf431b6,'shapeId':_0x7cabb3,'shapeData':{'shapeText':{'isHorizontal':_0x55ca41}}},_0x4c1eea=[{'id':_0x33666f['id'],'params':_0x4a5c03}],_0x3bd367=[{'id':_0x33666f['id'],'params':_0x1e0589}];return(0x0,_0x31f88e[_0x2af7b6(0x250)])(_0x4c1eea,_0x32fb50)[_0x2af7b6(0x1de)]?(_0x108757['pushUndoRedo']({'unitID':_0x1c489b,'undoMutations':_0x3bd367,'redoMutations':_0x4c1eea}),!0x0):!0x1;}},_0x7541bd={'type':_0x31f88e[_0x55692e(0x213)][_0x55692e(0x24e)],'id':_0x55692e(0x221),'handler':(_0x3cd6dc,_0x7604)=>{const _0x2e7748=_0x55692e;var _0x71e6f5;let _0x525023=(0x0,_0x249c30['getSheetCommandTarget'])(_0x3cd6dc[_0x2e7748(0x162)](_0x31f88e[_0x2e7748(0x1e1)]),_0x7604);if(!_0x525023)return!0x1;let _0xb8eaae=_0x3cd6dc[_0x2e7748(0x162)](_0x249c30[_0x2e7748(0x251)]),{unitId:_0x48b856,subUnitId:_0x4f8948}=_0x525023,_0x14cdb2=_0xb8eaae[_0x2e7748(0x20f)](_0x48b856,_0x4f8948);if(!_0x14cdb2)return!0x1;let _0x38ca73=_0x3cd6dc[_0x2e7748(0x162)](_0x591f3b['ISheetDrawingService']),{connectorShapeId:_0x29afb6,width:_0x52a9d1,height:_0x2cbeb8,left:_0xe55f8a,top:_0x535e5e,flipX:_0xc1486f,flipY:_0x3ab4d4,rotation:_0x5d2fce,oldAdjustValues:_0x52d94f,newAdjustValues:_0x2b31c2,oldLineType:_0x42f8c4,newLineType:_0xbc8d11,oldRelation:_0x328785,newRelation:_0x1ce8e3}=_0x7604,_0x257b5f=_0x38ca73[_0x2e7748(0x239)]({'unitId':_0x48b856,'subUnitId':_0x4f8948,'drawingId':_0x29afb6});if(!_0x257b5f)return!0x1;let _0x32057b=_0x3cd6dc['get'](_0x30ea20)['getShapeModel'](_0x48b856,_0x4f8948,_0x29afb6);if(!_0x32057b)return!0x1;let _0x1caae1=_0x3cd6dc[_0x2e7748(0x162)](_0x31f88e['ICommandService']),_0x74ad35=_0x3cd6dc[_0x2e7748(0x162)](_0x31f88e[_0x2e7748(0x1d3)]),_0x11956b=_0x3cd6dc['get'](_0x249c30[_0x2e7748(0x1b2)]),_0x1da041={..._0x257b5f[_0x2e7748(0x1f9)],'width':_0x52a9d1,'height':_0x2cbeb8,'left':_0xe55f8a,'top':_0x535e5e,'flipX':_0xc1486f,'flipY':_0x3ab4d4,'angle':_0x5d2fce??((_0x71e6f5=_0x257b5f[_0x2e7748(0x1f9)])==null?void 0x0:_0x71e6f5[_0x2e7748(0x214)])??0x0},_0x56c260=(0x0,_0x591f3b[_0x2e7748(0x1aa)])(_0x1da041,_0x14cdb2),_0x289244=(0x0,_0x591f3b[_0x2e7748(0x225)])(_0x1da041,_0x14cdb2),_0x37e8e1=_0x32057b[_0x2e7748(0x168)](),_0x2526d1=_0x32057b['getShapeData'](),_0x286936={'unitId':_0x48b856,'subUnitId':_0x4f8948,'drawingId':_0x29afb6,'drawingType':_0x31f88e[_0x2e7748(0x1d9)][_0x2e7748(0x256)],'sheetTransform':_0x56c260,'transform':_0x1da041,'data':{'shapeType':_0xbc8d11||_0x42f8c4||_0x37e8e1,'shapeData':{..._0x2526d1,'adjustValues':_0x2b31c2||_0x52d94f||(_0x2526d1==null?void 0x0:_0x2526d1[_0x2e7748(0x14a)]),'relation':_0x1ce8e3||_0x328785||(_0x2526d1==null?void 0x0:_0x2526d1['relation'])}},'axisAlignSheetTransform':_0x289244,'allowTransform':!0x0},{undo:_0x52a6fd,redo:_0xb58c08,objects:_0x54c105}=_0x38ca73[_0x2e7748(0x1ad)]([_0x286936]),_0x5542a0=_0x11956b[_0x2e7748(0x1c1)]({'id':_0x591f3b['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x48b856,'drawings':[_0x286936]}}),_0x43d1f2=[..._0x5542a0[_0x2e7748(0x1b8)]??[],{'id':_0x591f3b['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x48b856,'subUnitId':_0x4f8948,'op':_0xb58c08,'objects':_0x54c105,'type':_0x591f3b[_0x2e7748(0x166)][_0x2e7748(0x1a8)]}},{'id':_0x591f3b[_0x2e7748(0x1a7)]['id'],'params':[_0x48b856]},..._0x5542a0['redos'],{'id':_0x33666f['id'],'params':{'unitId':_0x48b856,'subUnitId':_0x4f8948,'shapeId':_0x29afb6,'shapeType':_0xbc8d11,'shapeData':{'adjustValues':_0x2b31c2,'relation':_0x1ce8e3}}}],_0x14409f=[..._0x5542a0[_0x2e7748(0x1d6)]??[],{'id':_0x591f3b[_0x2e7748(0x152)]['id'],'params':{'unitId':_0x48b856,'subUnitId':_0x4f8948,'op':_0x52a6fd,'objects':_0x54c105,'type':_0x591f3b['DrawingApplyType'][_0x2e7748(0x1a8)]}},{'id':_0x591f3b[_0x2e7748(0x1a7)]['id'],'params':[_0x48b856]},..._0x5542a0[_0x2e7748(0x1da)],{'id':_0x33666f['id'],'params':{'unitId':_0x48b856,'subUnitId':_0x4f8948,'shapeId':_0x29afb6,'shapeType':_0x37e8e1,'shapeData':{..._0x2526d1,'adjustValues':_0x52d94f||(_0x2526d1==null?void 0x0:_0x2526d1[_0x2e7748(0x14a)]),'relation':_0x328785||(_0x2526d1==null?void 0x0:_0x2526d1[_0x2e7748(0x1d4)])}}}];return(0x0,_0x31f88e[_0x2e7748(0x250)])(_0x43d1f2,_0x1caae1)[_0x2e7748(0x1de)]?(_0x74ad35[_0x2e7748(0x189)]({'unitID':_0x48b856,'undoMutations':_0x14409f,'redoMutations':_0x43d1f2}),!0x0):!0x1;}},_0x47e0a4={'type':_0x31f88e[_0x55692e(0x213)][_0x55692e(0x24e)],'id':_0x55692e(0x21f),'handler':(_0x2d3e15,_0x324a6d)=>{const _0x5a8c49=_0x55692e;let _0x33bf91=(0x0,_0x249c30[_0x5a8c49(0x171)])(_0x2d3e15['get'](_0x31f88e[_0x5a8c49(0x1e1)]),_0x324a6d);if(!_0x33bf91)return!0x1;let _0x434a3a=_0x2d3e15['get'](_0x249c30[_0x5a8c49(0x251)]),{unitId:_0x4b4a9f,subUnitId:_0x224ede}=_0x33bf91,_0x183d5e=_0x434a3a[_0x5a8c49(0x20f)](_0x4b4a9f,_0x224ede);if(!_0x183d5e)return!0x1;let _0x5dd3cf=_0x2d3e15[_0x5a8c49(0x162)](_0x591f3b[_0x5a8c49(0x1f4)]),{shapeId:_0x3661ef,width:_0x112cc6,height:_0x564e45,left:_0x1eb208,top:_0xc47c4c,flipX:_0x4e212b,flipY:_0x556e90,angle:_0x29eceb,oldAdjustValues:_0x18db13,newAdjustValues:_0x2e6dd4,oldLineType:_0x244657,newLineType:_0x2ab863}=_0x324a6d,_0x4ebd6d=_0x5dd3cf['getDrawingByParam']({'unitId':_0x4b4a9f,'subUnitId':_0x224ede,'drawingId':_0x3661ef});if(!_0x4ebd6d)return!0x1;let _0x3fdf85=_0x2d3e15[_0x5a8c49(0x162)](_0x30ea20)[_0x5a8c49(0x234)](_0x4b4a9f,_0x224ede,_0x3661ef);if(!_0x3fdf85)return!0x1;let _0x2ad021=_0x2d3e15['get'](_0x31f88e[_0x5a8c49(0x1ee)]),_0xe7912b=_0x2d3e15[_0x5a8c49(0x162)](_0x31f88e[_0x5a8c49(0x1d3)]),_0x255ac5=_0x2d3e15[_0x5a8c49(0x162)](_0x249c30[_0x5a8c49(0x1b2)]),_0x565ea4={..._0x4ebd6d[_0x5a8c49(0x1f9)],'width':_0x112cc6,'height':_0x564e45,'left':_0x1eb208,'top':_0xc47c4c,'flipX':_0x4e212b,'flipY':_0x556e90,'angle':_0x29eceb},_0x451900=(0x0,_0x591f3b[_0x5a8c49(0x1aa)])(_0x565ea4,_0x183d5e),_0x4736d9=(0x0,_0x591f3b[_0x5a8c49(0x225)])(_0x565ea4,_0x183d5e),_0x39a871=_0x3fdf85[_0x5a8c49(0x168)](),_0x45cc52=_0x3fdf85['getShapeData'](),_0x1b52a4={'unitId':_0x4b4a9f,'subUnitId':_0x224ede,'drawingId':_0x3661ef,'drawingType':_0x31f88e[_0x5a8c49(0x1d9)]['DRAWING_SHAPE'],'sheetTransform':_0x451900,'transform':_0x565ea4,'data':{'shapeType':_0x2ab863||_0x244657||_0x39a871,'shapeData':{..._0x45cc52,'adjustValues':_0x2e6dd4||_0x18db13||(_0x45cc52==null?void 0x0:_0x45cc52[_0x5a8c49(0x14a)])}},'axisAlignSheetTransform':_0x4736d9,'allowTransform':!0x0},{undo:_0x39aade,redo:_0x4a71df,objects:_0x35a302}=_0x5dd3cf[_0x5a8c49(0x1ad)]([_0x1b52a4]),_0x467b76=_0x255ac5[_0x5a8c49(0x1c1)]({'id':_0x591f3b['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x4b4a9f,'drawings':[_0x1b52a4]}}),_0x2bf7ab=[..._0x467b76[_0x5a8c49(0x1b8)]??[],{'id':_0x591f3b[_0x5a8c49(0x152)]['id'],'params':{'unitId':_0x4b4a9f,'subUnitId':_0x224ede,'op':_0x4a71df,'objects':_0x35a302,'type':_0x591f3b[_0x5a8c49(0x166)][_0x5a8c49(0x1a8)]}},{'id':_0x591f3b['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x4b4a9f]},..._0x467b76[_0x5a8c49(0x1df)],{'id':_0x33666f['id'],'params':{'unitId':_0x4b4a9f,'subUnitId':_0x224ede,'shapeId':_0x3661ef,'shapeType':_0x2ab863,'shapeData':{'adjustValues':_0x2e6dd4}}}],_0x12bca4=[..._0x467b76[_0x5a8c49(0x1d6)]??[],{'id':_0x591f3b['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4b4a9f,'subUnitId':_0x224ede,'op':_0x39aade,'objects':_0x35a302,'type':_0x591f3b['DrawingApplyType'][_0x5a8c49(0x1a8)]}},{'id':_0x591f3b[_0x5a8c49(0x1a7)]['id'],'params':[_0x4b4a9f]},..._0x467b76['undos'],{'id':_0x33666f['id'],'params':{'unitId':_0x4b4a9f,'subUnitId':_0x224ede,'shapeId':_0x3661ef,'shapeType':_0x39a871,'shapeData':{..._0x45cc52,'adjustValues':_0x18db13||(_0x45cc52==null?void 0x0:_0x45cc52[_0x5a8c49(0x14a)])}}}];return(0x0,_0x31f88e['sequenceExecute'])(_0x2bf7ab,_0x2ad021)['result']?(_0xe7912b['pushUndoRedo']({'unitID':_0x4b4a9f,'undoMutations':_0x12bca4,'redoMutations':_0x2bf7ab}),!0x0):!0x1;}},_0x1c1ca3={'id':_0x55692e(0x183),'type':_0x31f88e['CommandType'][_0x55692e(0x20a)],'handler':(_0x251266,_0xafc7a4)=>{const _0x4de3ef=_0x55692e;let {unitId:_0xf88c2a,subUnitId:_0x254c21,shapeType:_0x163bf3,shapeId:_0x489508,shapeData:_0x1737d3}=_0xafc7a4,_0x4b5cdc=_0x251266[_0x4de3ef(0x162)](_0x30ea20)[_0x4de3ef(0x234)](_0xf88c2a,_0x254c21,_0x489508);return _0x4b5cdc&&(_0x4b5cdc[_0x4de3ef(0x18e)](_0x163bf3),_0x1737d3&&(_0x4b5cdc==null||_0x4b5cdc[_0x4de3ef(0x154)](_0x1737d3))),!0x0;}};var _0x4f337b=_0x55692e(0x1f6),_0xfbb6ce='1.5.0';function _0x92c5df(_0x4c0a44){const _0x5c5060=_0x55692e;var _0x362cf8,_0x1ef6da,_0x31afa4,_0x3e7aa5,_0x1a7a9b,_0x72bd89,_0x34784b;return{'left':((_0x362cf8=_0x4c0a44[_0x5c5060(0x1f9)])==null?void 0x0:_0x362cf8['left'])??0x0,'top':((_0x1ef6da=_0x4c0a44[_0x5c5060(0x1f9)])==null?void 0x0:_0x1ef6da[_0x5c5060(0x170)])??0x0,'width':((_0x31afa4=_0x4c0a44[_0x5c5060(0x1f9)])==null?void 0x0:_0x31afa4[_0x5c5060(0x1f2)])??0xc8,'height':((_0x3e7aa5=_0x4c0a44[_0x5c5060(0x1f9)])==null?void 0x0:_0x3e7aa5[_0x5c5060(0x173)])??0xc8,'rotation':((_0x1a7a9b=_0x4c0a44[_0x5c5060(0x1f9)])==null?void 0x0:_0x1a7a9b[_0x5c5060(0x18a)])??0x0,'flipX':((_0x72bd89=_0x4c0a44['transform'])==null?void 0x0:_0x72bd89[_0x5c5060(0x161)])??!0x1,'flipY':((_0x34784b=_0x4c0a44[_0x5c5060(0x1f9)])==null?void 0x0:_0x34784b[_0x5c5060(0x1a9)])??!0x1};}let _0x64a8ba=class{constructor(_0x4f6a22,_0x1d19d2,_0x4a5fac,_0x1947f9){const _0x46c38d=_0x55692e;this['_commandService']=_0x4f6a22,this[_0x46c38d(0x146)]=_0x1d19d2,this[_0x46c38d(0x1a5)]=_0x4a5fac,this['_instanceService']=_0x1947f9,_0x1f3d42(this,_0x46c38d(0x17a),_0x31f88e[_0x46c38d(0x207)]['UNIVER_SHEET']);}get[_0x55692e(0x215)](){return{'subscribe':_0x34e164=>{const _0x5ead7b=_0x2d21;let _0xa2ba25=this[_0x5ead7b(0x1ba)]['onCommandExecuted'](_0xaebe99=>{const _0x330b85=_0x5ead7b;(_0xaebe99['id']===_0x225abf['id']||_0xaebe99['id']===_0x10dcea['id']||_0xaebe99['id']===_0x33666f['id']||_0xaebe99['id']===_0x1c1ca3['id'])&&_0x34e164({'unitId':_0xaebe99['params'][_0x330b85(0x180)]});});return{'unsubscribe':()=>_0xa2ba25[_0x5ead7b(0x1ed)]()};}};}[_0x55692e(0x19f)](_0x4f683d){const _0x5d0677=_0x55692e;var _0x527f75;let _0x17177a=(_0x527f75=this['_drawingService'][_0x5d0677(0x212)](_0x4f683d[_0x5d0677(0x180)],_0x4f683d[_0x5d0677(0x1c2)]))==null?void 0x0:_0x527f75[_0x4f683d[_0x5d0677(0x1e0)]],_0x24f8d3=this['_shapeService'][_0x5d0677(0x168)](_0x4f683d[_0x5d0677(0x180)],_0x4f683d[_0x5d0677(0x1c2)],_0x4f683d[_0x5d0677(0x1e0)]);if(!_0x17177a||_0x17177a[_0x5d0677(0x164)]!==_0x31f88e[_0x5d0677(0x1d9)]['DRAWING_SHAPE']||!_0x24f8d3)return null;let _0x9b8781=_0x17177a[_0x5d0677(0x1f9)];return{..._0x4f683d,'shapeType':_0x24f8d3,'shapeData':_0x31f88e[_0x5d0677(0x25c)]['deepClone'](this[_0x5d0677(0x146)][_0x5d0677(0x198)](_0x4f683d['unitId'],_0x4f683d[_0x5d0677(0x1c2)],_0x4f683d[_0x5d0677(0x1e0)])??{}),'name':_0x17177a[_0x5d0677(0x1b5)],'description':_0x17177a['description'],'visible':_0x17177a[_0x5d0677(0x202)]!==!0x0,'selectable':_0x17177a['selectable']!==!0x1,'transform':{'left':(_0x9b8781==null?void 0x0:_0x9b8781[_0x5d0677(0x17d)])??0x0,'top':(_0x9b8781==null?void 0x0:_0x9b8781[_0x5d0677(0x170)])??0x0,'width':(_0x9b8781==null?void 0x0:_0x9b8781[_0x5d0677(0x1f2)])??0xc8,'height':(_0x9b8781==null?void 0x0:_0x9b8781[_0x5d0677(0x173)])??0xc8,'rotation':(_0x9b8781==null?void 0x0:_0x9b8781[_0x5d0677(0x214)])??0x0,'flipX':(_0x9b8781==null?void 0x0:_0x9b8781['flipX'])??!0x1,'flipY':(_0x9b8781==null?void 0x0:_0x9b8781[_0x5d0677(0x1a9)])??!0x1}};}[_0x55692e(0x165)](_0x4fbd85){const _0x1a44c3=_0x55692e;let _0x275f6f=this['_drawingService'][_0x1a44c3(0x212)](_0x4fbd85[_0x1a44c3(0x180)],_0x4fbd85[_0x1a44c3(0x1c2)])??{};return Object['values'](_0x275f6f)[_0x1a44c3(0x172)](_0x2f1ab6=>(_0x2f1ab6==null?void 0x0:_0x2f1ab6['drawingType'])===_0x31f88e['DrawingTypeEnum'][_0x1a44c3(0x256)])[_0x1a44c3(0x1f5)](_0x3bee0d=>this[_0x1a44c3(0x19f)]({..._0x4fbd85,'shapeId':_0x3bee0d[_0x1a44c3(0x1f8)]}))[_0x1a44c3(0x172)](_0x410f10=>!!_0x410f10);}[_0x55692e(0x21c)](_0x1cb1b8){const _0x29766e=_0x55692e;let _0xbf28e7=this[_0x29766e(0x206)][_0x29766e(0x232)](_0x1cb1b8,_0x31f88e['UniverInstanceType'][_0x29766e(0x1fa)]);return(_0xbf28e7==null?void 0x0:_0xbf28e7[_0x29766e(0x176)]()[_0x29766e(0x1d1)](_0x3a8dbd=>this[_0x29766e(0x165)]({'hostType':this[_0x29766e(0x17a)],'unitId':_0x1cb1b8,'subUnitId':_0x3a8dbd['getSheetId']()})))??[];}[_0x55692e(0x16b)](_0x3cc1cd,_0x4de297){const _0x5f3eea=_0x55692e;let _0x26964e=(0x0,_0x31f88e[_0x5f3eea(0x169)])(),_0x17d1fa=_0x92c5df(_0x4de297),_0x21605c=_0x31f88e[_0x5f3eea(0x25c)][_0x5f3eea(0x174)](_0x4de297[_0x5f3eea(0x267)]??(0x0,_0x529ffa[_0x5f3eea(0x20b)])(_0x4de297['shapeType']));return this[_0x5f3eea(0x1ba)][_0x5f3eea(0x153)](_0xe55bf9['id'],{'unitId':_0x3cc1cd[_0x5f3eea(0x180)],'subUnitId':_0x3cc1cd[_0x5f3eea(0x1c2)],'shapeId':_0x26964e,'shapeType':_0x4de297['shapeType'],'shapeData':_0x21605c,'name':_0x4de297[_0x5f3eea(0x1b5)],'description':_0x4de297[_0x5f3eea(0x197)],'position':{'x':_0x17d1fa[_0x5f3eea(0x17d)],'y':_0x17d1fa['top']},'width':_0x17d1fa[_0x5f3eea(0x1f2)],'height':_0x17d1fa[_0x5f3eea(0x173)],'rotation':_0x17d1fa[_0x5f3eea(0x18a)],'flipX':_0x17d1fa[_0x5f3eea(0x161)],'flipY':_0x17d1fa[_0x5f3eea(0x1a9)],'visible':_0x4de297['visible']??!0x0,'selectable':_0x4de297[_0x5f3eea(0x147)]??!0x0})?{..._0x3cc1cd,'shapeId':_0x26964e,'shapeType':_0x4de297[_0x5f3eea(0x151)],'shapeData':_0x21605c,'name':_0x4de297[_0x5f3eea(0x1b5)],'description':_0x4de297[_0x5f3eea(0x197)],'visible':_0x4de297[_0x5f3eea(0x14d)]??!0x0,'selectable':_0x4de297['selectable']??!0x0,'transform':_0x17d1fa}:null;}[_0x55692e(0x209)](_0x3334c0,_0x4d4564){const _0x1eb41b=_0x55692e;var _0x1d4071;let _0x446150=this[_0x1eb41b(0x19f)](_0x3334c0);if(!_0x446150)return!0x1;let _0x1e74fa={..._0x446150[_0x1eb41b(0x1f9)],..._0x4d4564['transform']};return this[_0x1eb41b(0x1ba)][_0x1eb41b(0x153)](_0xe79fa7['id'],{'unitId':_0x3334c0[_0x1eb41b(0x180)],'subUnitId':_0x3334c0['subUnitId'],'shapeId':_0x3334c0['shapeId'],'shapeType':_0x4d4564['shapeType']??((_0x1d4071=_0x4d4564[_0x1eb41b(0x267)])==null?void 0x0:_0x1d4071['shapeType'])??_0x446150[_0x1eb41b(0x151)],'shapeData':_0x4d4564[_0x1eb41b(0x267)]??_0x446150['shapeData'],'position':{'x':_0x1e74fa[_0x1eb41b(0x17d)],'y':_0x1e74fa['top']},'width':_0x1e74fa[_0x1eb41b(0x1f2)],'height':_0x1e74fa['height'],'rotation':_0x1e74fa['rotation'],'flipX':_0x1e74fa['flipX'],'flipY':_0x1e74fa[_0x1eb41b(0x1a9)],'name':_0x1eb41b(0x1b5)in _0x4d4564?_0x4d4564[_0x1eb41b(0x1b5)]:_0x446150[_0x1eb41b(0x1b5)],'description':_0x1eb41b(0x197)in _0x4d4564?_0x4d4564[_0x1eb41b(0x197)]:_0x446150[_0x1eb41b(0x197)],'visible':_0x4d4564[_0x1eb41b(0x14d)]??_0x446150[_0x1eb41b(0x14d)],'selectable':_0x4d4564[_0x1eb41b(0x147)]??_0x446150[_0x1eb41b(0x147)]});}[_0x55692e(0x24b)](_0xa8b6b9,_0x29bd52,_0x2b42ca){const _0x146db3=_0x55692e;let _0x2d0db0=this[_0x146db3(0x19f)](_0xa8b6b9),_0x363e2d=_0x2d0db0==null?void 0x0:_0x2d0db0[_0x146db3(0x267)][_0x146db3(0x15d)];return!_0x2d0db0||!_0x363e2d?null:{'id':_0x33666f['id'],'params':{'unitId':_0xa8b6b9[_0x146db3(0x180)],'subUnitId':_0xa8b6b9[_0x146db3(0x1c2)],'shapeId':_0xa8b6b9[_0x146db3(0x1e0)],'shapeData':{..._0x2d0db0['shapeData'],'formulaBinding':{..._0x363e2d,'lastValue':_0x31f88e[_0x146db3(0x25c)][_0x146db3(0x174)](_0x2b42ca)}},'replace':!0x0,'formulaLastValueGuard':_0x29bd52}};}[_0x55692e(0x1b3)](_0x2c86f5){const _0x771194=_0x55692e;return this['_commandService'][_0x771194(0x153)](_0x591f3b[_0x771194(0x203)]['id'],{'unitId':_0x2c86f5[_0x771194(0x180)],'drawings':[{'unitId':_0x2c86f5['unitId'],'subUnitId':_0x2c86f5[_0x771194(0x1c2)],'drawingId':_0x2c86f5[_0x771194(0x1e0)],'drawingType':_0x31f88e['DrawingTypeEnum'][_0x771194(0x256)]}]});}[_0x55692e(0x159)](_0x10ad95){const _0x2687e3=_0x55692e;return this[_0x2687e3(0x205)](_0x10ad95,_0x31f88e[_0x2687e3(0x1f1)]['front']);}[_0x55692e(0x15c)](_0x315691){const _0x10b3ed=_0x55692e;return this['_arrange'](_0x315691,_0x31f88e[_0x10b3ed(0x1f1)][_0x10b3ed(0x1fe)]);}[_0x55692e(0x1a0)](_0x58b2c6){const _0x5a844f=_0x55692e;return this[_0x5a844f(0x205)](_0x58b2c6,_0x31f88e[_0x5a844f(0x1f1)][_0x5a844f(0x1b1)]);}[_0x55692e(0x1ca)](_0x5dfec7){const _0x59dae8=_0x55692e;return this['_arrange'](_0x5dfec7,_0x31f88e[_0x59dae8(0x1f1)][_0x59dae8(0x1fd)]);}[_0x55692e(0x1bb)](_0x139c53,_0x33c929){const _0x41d702=_0x55692e;return this['_commandService'][_0x41d702(0x153)](_0x591f3b[_0x41d702(0x1ea)]['id'],{'unitId':_0x139c53[_0x41d702(0x180)],'subUnitId':_0x139c53['subUnitId'],'drawingIds':[_0x139c53['shapeId']],'zOrder':_0x33c929});}[_0x55692e(0x205)](_0x5a27f4,_0x4700a2){const _0x200b0c=_0x55692e;return this[_0x200b0c(0x1ba)][_0x200b0c(0x153)](_0x591f3b[_0x200b0c(0x1ea)]['id'],{'unitId':_0x5a27f4['unitId'],'subUnitId':_0x5a27f4['subUnitId'],'drawingIds':[_0x5a27f4[_0x200b0c(0x1e0)]],'arrangeType':_0x4700a2});}};_0x64a8ba=_0x42fc2d([_0x2f171d(0x0,_0x31f88e[_0x55692e(0x1ee)]),_0x2f171d(0x1,(0x0,_0x31f88e[_0x55692e(0x22e)])(_0x30ea20)),_0x2f171d(0x2,_0x591f3b['ISheetDrawingService']),_0x2f171d(0x3,_0x31f88e[_0x55692e(0x1e1)])],_0x64a8ba);let _0x20a52c={},_0x5d2670=class extends _0x31f88e[_0x55692e(0x1ef)]{constructor(_0x372978,_0x40e16b,_0x384c02,_0x2bfdc9,_0x144cb1,_0x468c8c,_0x3cff04,_0x266866){const _0x23cfa7=_0x55692e;super(),this['_commandService']=_0x372978,this[_0x23cfa7(0x1a2)]=_0x40e16b,this[_0x23cfa7(0x184)]=_0x384c02,this[_0x23cfa7(0x16f)]=_0x2bfdc9,this['_sheetsShapeService']=_0x144cb1,this[_0x23cfa7(0x1e2)]=_0x468c8c,this[_0x23cfa7(0x15a)]=_0x3cff04,this[_0x23cfa7(0x247)](),this[_0x23cfa7(0x1c8)](),this[_0x23cfa7(0x25e)](this['_shapeHostAdapterRegistry'][_0x23cfa7(0x16c)](_0x266866));}[_0x55692e(0x247)](){const _0x51c95b=_0x55692e;[_0xe55bf9,_0xe79fa7,_0xdc799,_0x4a30db,_0x18882d,_0x7541bd,_0x47e0a4,_0x225abf,_0x10dcea,_0x1c1ca3,_0x33666f][_0x51c95b(0x235)](_0x35c575=>this[_0x51c95b(0x25e)](this[_0x51c95b(0x1ba)][_0x51c95b(0x1ae)](_0x35c575)));}[_0x55692e(0x1c8)](){const _0x8ed39c=_0x55692e;this[_0x8ed39c(0x25e)](this[_0x8ed39c(0x1a2)][_0x8ed39c(0x167)]({'getMutations':_0x21d816=>{const _0x2cb640=_0x8ed39c;if(_0x21d816['id']===_0x591f3b['RemoveSheetDrawingCommand']['id']){let {drawings:_0x3206e4}=_0x21d816[_0x2cb640(0x16d)],_0x2e890e=_0x3206e4[_0x2cb640(0x172)](_0x5d2ae3=>_0x5d2ae3[_0x2cb640(0x164)]===_0x31f88e['DrawingTypeEnum'][_0x2cb640(0x256)]);if(_0x2e890e['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3d8e69=[],_0x4be2fc=[];return _0x2e890e[_0x2cb640(0x235)](_0x4fae08=>{const _0x179598=_0x2cb640;let {unitId:_0x1db502,subUnitId:_0x34d101,drawingId:_0x36a542}=_0x4fae08,_0x2c1fad=this['_sheetsShapeService'][_0x179598(0x234)](_0x1db502,_0x34d101,_0x36a542);if(!_0x2c1fad)throw TypeError(_0x179598(0x1a6)+_0x2c1fad);_0x3d8e69[_0x179598(0x1b4)]({'id':_0x10dcea['id'],'params':{'unitId':_0x1db502,'subUnitId':_0x34d101,'shapeId':_0x36a542}}),_0x4be2fc[_0x179598(0x1b4)]({'id':_0x225abf['id'],'params':{'unitId':_0x1db502,'subUnitId':_0x34d101,'shapeId':_0x36a542,'shapeType':_0x2c1fad[_0x179598(0x168)](),'shapeData':_0x2c1fad[_0x179598(0x255)]()}});let _0x5a84cb=this[_0x179598(0x16a)][_0x179598(0x231)](_0x1db502,_0x34d101,_0x36a542);if(_0x5a84cb)for(let _0x3830f3 of _0x5a84cb){let _0x59c2b3=_0x3830f3[_0x179598(0x1be)],_0x58531f=_0x3830f3[_0x179598(0x19c)],_0x35bc33=_0x58531f?{'from':void 0x0}:{'to':void 0x0},_0x4e9045=_0x58531f?{'from':{'shapeId':_0x3830f3[_0x179598(0x1e0)],'cxnIndex':_0x3830f3[_0x179598(0x222)]}}:{'to':{'shapeId':_0x3830f3[_0x179598(0x1e0)],'cxnIndex':_0x3830f3[_0x179598(0x222)]}};_0x3d8e69[_0x179598(0x1b4)]({'id':_0x33666f['id'],'params':{'unitId':_0x1db502,'subUnitId':_0x34d101,'shapeId':_0x59c2b3,'shapeData':{'relation':_0x35bc33}}}),_0x4be2fc[_0x179598(0x1b4)]({'id':_0x33666f['id'],'params':{'unitId':_0x1db502,'subUnitId':_0x34d101,'shapeId':_0x59c2b3,'shapeData':{'relation':_0x4e9045}}});}}),{'preRedos':_0x3d8e69,'redos':[],'preUndos':[],'undos':_0x4be2fc};}let _0x27b047=this[_0x2cb640(0x18c)](_0x21d816);if(_0x27b047){let _0x448f29=_0x27b047[_0x2cb640(0x172)](_0x5aca7b=>_0x5aca7b[_0x2cb640(0x164)]===_0x31f88e[_0x2cb640(0x1d9)]['DRAWING_SHAPE']);if(_0x448f29[_0x2cb640(0x260)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4a66aa=[],_0x39d9b4=[];for(let _0xfa15f6 of _0x448f29){let {unitId:_0x3060b6,subUnitId:_0x4c20b3,drawingId:_0x386a54,transform:_0x5b88c2}=_0xfa15f6;if(!_0x3060b6||!_0x4c20b3||!_0x386a54||!_0x5b88c2)continue;let _0x21a9cb=this['_sheetsShapeService']['getShapeModel'](_0x3060b6,_0x4c20b3,_0x386a54);if(!_0x21a9cb)throw TypeError(_0x2cb640(0x1a6)+_0x21a9cb);let _0x6a4454=_0x21a9cb['getShapeType']();if((0x0,_0x529ffa[_0x2cb640(0x185)])(_0x6a4454)){let _0x27b851=this[_0x2cb640(0x16a)]['getLineShapeRelation'](_0x3060b6,_0x4c20b3,_0x386a54);_0x27b851&&(_0x4a66aa['push']({'id':_0x33666f['id'],'params':{'unitId':_0x3060b6,'subUnitId':_0x4c20b3,'shapeId':_0x386a54,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x39d9b4[_0x2cb640(0x1b4)]({'id':_0x33666f['id'],'params':{'unitId':_0x3060b6,'subUnitId':_0x4c20b3,'shapeId':_0x386a54,'shapeData':{'relation':_0x27b851}}}));}else{let _0x2acf80=this[_0x2cb640(0x16a)][_0x2cb640(0x231)](_0x3060b6,_0x4c20b3,_0x386a54);if(_0x2acf80&&_0x2acf80[_0x2cb640(0x260)]>0x0)for(let _0x4106b2 of _0x2acf80){let _0x3e2604=_0x4106b2[_0x2cb640(0x1be)],_0x328788=_0x4106b2[_0x2cb640(0x19c)],_0x39b064=this[_0x2cb640(0x16a)]['getShapeModel'](_0x3060b6,_0x4c20b3,_0x3e2604);if(!_0x39b064)continue;let _0x664fc7=_0x39b064[_0x2cb640(0x158)](),_0x51b59d=_0x39b064['getEndConnectInfo']();_0x664fc7&&_0x51b59d?this[_0x2cb640(0x24c)](_0x3060b6,_0x4c20b3,_0x3e2604,_0x39b064,_0x664fc7,_0x51b59d,_0x4a66aa,_0x39d9b4,_0x386a54,_0x5b88c2):this[_0x2cb640(0x1b6)](_0x3060b6,_0x4c20b3,_0x3e2604,_0x39b064,_0x328788?_0x664fc7:_0x51b59d,_0x328788,_0x4a66aa,_0x39d9b4,_0x386a54,_0x5b88c2);}}}return{'preRedos':[],'redos':_0x4a66aa,'preUndos':_0x39d9b4,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x55692e(0x18c)](_0x1d6ea3){const _0x541b46=_0x55692e;if(_0x1d6ea3['id']===_0x591f3b[_0x541b46(0x1bf)]['id'])return _0x1d6ea3[_0x541b46(0x16d)]['drawings'];if(_0x1d6ea3['id']===_0x591f3b['SetSheetDrawingPlacementCommand']['id']){let _0x108679=_0x1d6ea3[_0x541b46(0x16d)],_0xe3ced3=_0x108679[_0x541b46(0x1c9)][_0x541b46(0x1cc)](({placement:_0x4c3dea})=>_0x4c3dea[_0x541b46(0x1a4)]===_0x591f3b[_0x541b46(0x243)]['None'])?void 0x0:this[_0x541b46(0x184)]['ensureSkeleton'](_0x108679['unitId'],_0x108679[_0x541b46(0x1c2)]),_0x1ad49e=[];for(let {drawingId:_0x5f3963,placement:_0x51f9fe}of _0x108679[_0x541b46(0x1c9)]){let _0xefbafa=this[_0x541b46(0x16f)][_0x541b46(0x239)]({'unitId':_0x108679[_0x541b46(0x180)],'subUnitId':_0x108679[_0x541b46(0x1c2)],'drawingId':_0x5f3963});(_0xefbafa==null?void 0x0:_0xefbafa['drawingType'])===_0x31f88e[_0x541b46(0x1d9)][_0x541b46(0x256)]&&_0x1ad49e['push']((0x0,_0x591f3b[_0x541b46(0x1af)])(_0xefbafa,_0x51f9fe,_0xe3ced3));}return _0x1ad49e;}return null;}[_0x55692e(0x1d8)](_0x283ff6,_0x1df8c5,_0x1e0048,_0x91a394,_0x256d61){const _0x20b8ec=_0x55692e;if(!_0x1df8c5||!_0x1e0048)return null;let {shapeId:_0x5417ec,cxnIndex:_0xadbb9c}=_0x283ff6,_0x110a83=this['_sheetsShapeService'][_0x20b8ec(0x234)](_0x1df8c5,_0x1e0048,_0x5417ec);if(!_0x110a83)return null;let _0x274311=this[_0x20b8ec(0x1e2)]['getDrawingByParam']({'unitId':_0x1df8c5,'subUnitId':_0x1e0048,'drawingId':_0x5417ec});if(!(_0x274311!=null&&_0x274311[_0x20b8ec(0x1f9)]))return null;let {left:_0x229653=0x0,top:_0x157e66=0x0,width:_0x240f63=0x0,height:_0x935b7d=0x0,flipX:_0x16c27f=!0x1,flipY:_0x21dd26=!0x1,angle:_0x161ccb}=_0x274311[_0x20b8ec(0x1f9)];_0x256d61&&_0x91a394===_0x5417ec&&(_0x229653=_0x256d61[_0x20b8ec(0x17d)]??_0x229653,_0x157e66=_0x256d61['top']??_0x157e66,_0x240f63=_0x256d61['width']??_0x240f63,_0x935b7d=_0x256d61[_0x20b8ec(0x173)]??_0x935b7d,_0x16c27f=_0x256d61[_0x20b8ec(0x161)]??_0x16c27f,_0x21dd26=_0x256d61[_0x20b8ec(0x1a9)]??_0x21dd26,_0x161ccb=_0x256d61[_0x20b8ec(0x214)]??_0x161ccb),_0x110a83[_0x20b8ec(0x25d)]({'width':_0x240f63,'height':_0x935b7d});let _0x2a9fa1=_0x110a83['getConnectionSiteList']()[_0x20b8ec(0x15f)](_0x14ac47=>_0x14ac47[_0x20b8ec(0x208)]===_0xadbb9c);if(!_0x2a9fa1)return null;let _0x456b5e=_0x16c27f?_0x240f63-_0x2a9fa1['x']:_0x2a9fa1['x'],_0x5477e4=_0x21dd26?_0x935b7d-_0x2a9fa1['y']:_0x2a9fa1['y'];if(_0x161ccb!==0x0&&_0x161ccb!=null){let _0x23d831=_0x161ccb*Math['PI']/0xb4,_0x5bbe8d=Math[_0x20b8ec(0x195)](_0x23d831),_0x132d2f=Math['sin'](_0x23d831),_0x185cfa=_0x240f63/0x2,_0x330aec=_0x935b7d/0x2,_0x52e78c=_0x456b5e-_0x185cfa,_0x4cbe4a=_0x5477e4-_0x330aec;_0x456b5e=_0x185cfa+_0x52e78c*_0x5bbe8d-_0x4cbe4a*_0x132d2f,_0x5477e4=_0x330aec+_0x52e78c*_0x132d2f+_0x4cbe4a*_0x5bbe8d;}_0x456b5e+=_0x229653,_0x5477e4+=_0x157e66;let _0x4a0925=_0x2a9fa1['ang']/0xea60;_0x16c27f&&(_0x4a0925=0xb4-_0x4a0925),_0x21dd26&&(_0x4a0925=-_0x4a0925),_0x4a0925+=_0x161ccb||0x0,_0x4a0925=(_0x4a0925%0x168+0x168)%0x168;let _0x2e9812=(0x0,_0x529ffa[_0x20b8ec(0x18d)])({'left':_0x229653,'top':_0x157e66,'width':_0x240f63,'height':_0x935b7d},_0x161ccb||0x0);return{'point':{'x':_0x456b5e,'y':_0x5477e4},'angle':_0x4a0925,'bounds':_0x2e9812};}['_addLineRerouteUpdates'](_0x2e045e,_0x574f04,_0x2d2fd4,_0x4e1ce7,_0x3784cb,_0x297d4d,_0x3c5300,_0x570d3c,_0x266d11,_0x574e4d){const _0x2adeb4=_0x55692e;let _0x2a889e=this['_sheetSkeletonService'][_0x2adeb4(0x20f)](_0x2e045e,_0x574f04);if(!_0x2a889e)return;let _0x1ed5fb=_0x4e1ce7['getShapeRelation'](),_0x872c75=_0x4e1ce7[_0x2adeb4(0x24f)](),_0x283966={},_0x3b5bf3={};_0x872c75[_0x2adeb4(0x235)](_0x3d5b95=>{const _0x46ac0a=_0x2adeb4;let _0x406b64=_0x4e1ce7[_0x46ac0a(0x216)](_0x3d5b95);_0x3b5bf3[_0x3d5b95]=_0x406b64??0x0;});let _0x44ae1d=this[_0x2adeb4(0x1d8)](_0x3784cb,_0x2e045e,_0x574f04,_0x266d11,_0x574e4d),_0x47205e=this[_0x2adeb4(0x1d8)](_0x297d4d,_0x2e045e,_0x574f04,_0x266d11,_0x574e4d);if(_0x44ae1d&&_0x47205e){let _0x7da9f9=_0x4e1ce7[_0x2adeb4(0x168)](),_0x4c4152=(0x0,_0x529ffa[_0x2adeb4(0x1ab)])(_0x44ae1d,_0x47205e,_0x7da9f9),_0x522f97=_0x7da9f9;if(_0x4c4152){let _0x5cb05c=(0x0,_0x529ffa[_0x2adeb4(0x22d)])(_0x4c4152,_0x4e1ce7['getShapeType']()),_0x2df548=this[_0x2adeb4(0x1e2)]['getDrawingData'](_0x2e045e,_0x574f04);if(_0x2df548&&_0x2df548[_0x2d2fd4]){let _0x42d5b7=_0x2df548[_0x2d2fd4];_0x522f97=_0x5cb05c[_0x2adeb4(0x242)];for(let [_0x113a8f,_0x1252d5]of Object[_0x2adeb4(0x1c4)](_0x5cb05c[_0x2adeb4(0x14a)]))_0x283966[_0x113a8f]=_0x1252d5;let _0x582b57={..._0x42d5b7[_0x2adeb4(0x1f9)],'width':_0x5cb05c[_0x2adeb4(0x249)][_0x2adeb4(0x1f2)],'height':_0x5cb05c[_0x2adeb4(0x249)]['height'],'left':_0x5cb05c[_0x2adeb4(0x249)]['left'],'top':_0x5cb05c[_0x2adeb4(0x249)][_0x2adeb4(0x170)],'flipX':_0x5cb05c[_0x2adeb4(0x249)]['flipX'],'flipY':_0x5cb05c['worldRect'][_0x2adeb4(0x1a9)],'angle':_0x5cb05c[_0x2adeb4(0x18a)]},_0x3e3641=(0x0,_0x591f3b[_0x2adeb4(0x1aa)])(_0x582b57,_0x2a889e),_0x5c2c30=(0x0,_0x591f3b[_0x2adeb4(0x225)])(_0x582b57,_0x2a889e),_0x38129d={'unitId':_0x2e045e,'subUnitId':_0x574f04,'drawingType':_0x31f88e[_0x2adeb4(0x1d9)][_0x2adeb4(0x256)],'drawingId':_0x2d2fd4,'transform':_0x582b57,'sheetTransform':_0x3e3641,'axisAlignSheetTransform':_0x5c2c30},{unitId:_0x38bf71,subUnitId:_0x1ff2d5,undo:_0x248a6f,redo:_0x17f4a4,objects:_0x1e3009}=this[_0x2adeb4(0x1e2)]['getBatchUpdateOp']([_0x38129d]);_0x3c5300[_0x2adeb4(0x1b4)]({'id':_0x591f3b[_0x2adeb4(0x152)]['id'],'params':{'unitId':_0x38bf71,'subUnitId':_0x1ff2d5,'op':_0x17f4a4,'objects':_0x1e3009,'type':_0x591f3b[_0x2adeb4(0x166)][_0x2adeb4(0x1a8)]}}),_0x570d3c[_0x2adeb4(0x1b4)]({'id':_0x591f3b['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x38bf71,'subUnitId':_0x1ff2d5,'op':_0x248a6f,'objects':_0x1e3009,'type':_0x591f3b[_0x2adeb4(0x166)][_0x2adeb4(0x1a8)]}});}_0x4e1ce7[_0x2adeb4(0x1ec)]();}_0x3c5300[_0x2adeb4(0x1b4)]({'id':_0x33666f['id'],'params':{'unitId':_0x2e045e,'subUnitId':_0x574f04,'shapeId':_0x2d2fd4,'shapeType':_0x522f97,'shapeData':{'adjustValues':_0x283966,'relation':_0x1ed5fb}}}),_0x570d3c[_0x2adeb4(0x1b4)]({'id':_0x33666f['id'],'params':{'unitId':_0x2e045e,'subUnitId':_0x574f04,'shapeId':_0x2d2fd4,'shapeType':_0x7da9f9,'shapeData':{'adjustValues':_0x3b5bf3,'relation':_0x1ed5fb}}});}}[_0x55692e(0x1b6)](_0x14ce24,_0x2c8b40,_0x3a0de1,_0x4bc60b,_0x2c2ef1,_0x2cd232,_0x21c4d0,_0x291278,_0x5a8e9c,_0x29defe){const _0x2a2632=_0x55692e;var _0x332fc1;if(!_0x2c2ef1)return;let _0x26b71c=this[_0x2a2632(0x184)][_0x2a2632(0x20f)](_0x14ce24,_0x2c8b40);if(!_0x26b71c)return;let _0x7c8df5=(_0x332fc1=this['_drawingManagerService'][_0x2a2632(0x239)]({'unitId':_0x14ce24,'subUnitId':_0x2c8b40,'drawingId':_0x5a8e9c}))==null?void 0x0:_0x332fc1['transform'];if(!_0x7c8df5)return;let _0x5d700f=_0x7c8df5['left']!==_0x29defe[_0x2a2632(0x17d)]||_0x7c8df5[_0x2a2632(0x170)]!==_0x29defe['top'],_0x586303=_0x7c8df5['width']!==_0x29defe[_0x2a2632(0x1f2)]||_0x7c8df5[_0x2a2632(0x173)]!==_0x29defe['height'],_0x473edd=_0x7c8df5[_0x2a2632(0x161)]!==_0x29defe[_0x2a2632(0x161)]||_0x7c8df5[_0x2a2632(0x1a9)]!==_0x29defe[_0x2a2632(0x1a9)],_0x14428c=_0x7c8df5['angle']!==_0x29defe[_0x2a2632(0x214)];if(_0x5d700f&&!_0x586303&&!_0x473edd&&!_0x14428c){let _0x189bf9=(_0x29defe[_0x2a2632(0x17d)]??0x0)-(_0x7c8df5[_0x2a2632(0x17d)]??0x0),_0x305e55=(_0x29defe['top']??0x0)-(_0x7c8df5[_0x2a2632(0x170)]??0x0),_0x15e0c5=this[_0x2a2632(0x1e2)]['getDrawingData'](_0x14ce24,_0x2c8b40);if(_0x15e0c5&&_0x15e0c5[_0x3a0de1]){var _0x452c65,_0x38bafc;let _0x1ea1df=_0x15e0c5[_0x3a0de1],_0x1846f={..._0x1ea1df['transform'],'left':(((_0x452c65=_0x1ea1df[_0x2a2632(0x1f9)])==null?void 0x0:_0x452c65[_0x2a2632(0x17d)])??0x0)+_0x189bf9,'top':(((_0x38bafc=_0x1ea1df[_0x2a2632(0x1f9)])==null?void 0x0:_0x38bafc[_0x2a2632(0x170)])??0x0)+_0x305e55},_0xdcd6d=(0x0,_0x591f3b['transformToDrawingPosition'])(_0x1846f,_0x26b71c),_0xb3aa27=(0x0,_0x591f3b[_0x2a2632(0x225)])(_0x1846f,_0x26b71c),_0x4c9a51={'unitId':_0x14ce24,'subUnitId':_0x2c8b40,'drawingType':_0x31f88e['DrawingTypeEnum'][_0x2a2632(0x256)],'drawingId':_0x3a0de1,'transform':_0x1846f,'sheetTransform':_0xdcd6d,'axisAlignSheetTransform':_0xb3aa27},{unitId:_0x3e3435,subUnitId:_0x2ec9e2,undo:_0x28bb86,redo:_0x3f9f93,objects:_0x150417}=this['_drawingManagerService'][_0x2a2632(0x1ad)]([_0x4c9a51]);_0x21c4d0[_0x2a2632(0x1b4)]({'id':_0x591f3b['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3e3435,'subUnitId':_0x2ec9e2,'op':_0x3f9f93,'objects':_0x150417,'type':_0x591f3b[_0x2a2632(0x166)][_0x2a2632(0x1a8)]}}),_0x291278[_0x2a2632(0x1b4)]({'id':_0x591f3b[_0x2a2632(0x152)]['id'],'params':{'unitId':_0x3e3435,'subUnitId':_0x2ec9e2,'op':_0x28bb86,'objects':_0x150417,'type':_0x591f3b[_0x2a2632(0x166)]['UPDATE']}});}}else{let _0x362e55=_0x4bc60b[_0x2a2632(0x158)](),_0x7db761=_0x4bc60b['getEndConnectInfo']();this[_0x2a2632(0x24c)](_0x14ce24,_0x2c8b40,_0x3a0de1,_0x4bc60b,_0x362e55,_0x7db761,_0x21c4d0,_0x291278,_0x5a8e9c,_0x29defe);}}};_0x5d2670=_0x42fc2d([_0x2f171d(0x0,_0x31f88e[_0x55692e(0x1ee)]),_0x2f171d(0x1,(0x0,_0x31f88e[_0x55692e(0x22e)])(_0x249c30['SheetInterceptorService'])),_0x2f171d(0x2,(0x0,_0x31f88e['Inject'])(_0x249c30['SheetSkeletonService'])),_0x2f171d(0x3,(0x0,_0x31f88e[_0x55692e(0x22e)])(_0x591f3b[_0x55692e(0x1f4)])),_0x2f171d(0x4,(0x0,_0x31f88e['Inject'])(_0x30ea20)),_0x2f171d(0x5,(0x0,_0x31f88e[_0x55692e(0x22e)])(_0x3bd08b[_0x55692e(0x18b)])),_0x2f171d(0x6,(0x0,_0x31f88e[_0x55692e(0x22e)])(_0x529ffa[_0x55692e(0x14e)])),_0x2f171d(0x7,(0x0,_0x31f88e[_0x55692e(0x22e)])(_0x64a8ba))],_0x5d2670);let _0x26521f=class extends _0x31f88e[_0x55692e(0x1ef)]{constructor(_0x31bede,_0x350220,_0x4dbf68){const _0x168377=_0x55692e;super(),this[_0x168377(0x146)]=_0x31bede,this[_0x168377(0x1ac)]=_0x350220,this['disposeWithMe'](_0x4dbf68[_0x168377(0x16c)](this));}[_0x55692e(0x1f9)](_0x26bdc8){const _0x1ff8f2=_0x55692e;let _0x475374={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x1ff8f2(0x17c)](_0x26bdc8,_0x475374);for(let [_0x54c064,_0x64c5cd]of _0x26bdc8[_0x1ff8f2(0x1d2)])this[_0x1ff8f2(0x1eb)](_0x26bdc8,_0x54c064,_0x64c5cd,_0x475374);return _0x475374;}[_0x55692e(0x17c)](_0x39ff2f,_0x55df51){const _0x3d9cb9=_0x55692e;if(_0x39ff2f[_0x3d9cb9(0x264)]===_0x3d9cb9(0x149))for(let _0x1596b4 of _0x39ff2f[_0x3d9cb9(0x1db)]){let _0x321194=_0x39ff2f[_0x3d9cb9(0x1d2)][_0x3d9cb9(0x162)](_0x1596b4),_0x386975=this['_shapeService'][_0x3d9cb9(0x234)](_0x39ff2f[_0x3d9cb9(0x180)],_0x39ff2f[_0x3d9cb9(0x1c2)],_0x1596b4);(_0x321194==null?void 0x0:_0x321194['drawingType'])===_0x31f88e[_0x3d9cb9(0x1d9)][_0x3d9cb9(0x256)]&&_0x386975&&(_0x55df51[_0x3d9cb9(0x1b8)][_0x3d9cb9(0x1b4)]({'id':_0x10dcea['id'],'params':{'unitId':_0x39ff2f[_0x3d9cb9(0x180)],'subUnitId':_0x39ff2f[_0x3d9cb9(0x1c2)],'shapeId':_0x1596b4}}),_0x55df51[_0x3d9cb9(0x1da)][_0x3d9cb9(0x1b4)]({'id':_0x225abf['id'],'params':{'unitId':_0x39ff2f[_0x3d9cb9(0x180)],'subUnitId':_0x39ff2f[_0x3d9cb9(0x1c2)],'shapeId':_0x1596b4,'shapeName':_0x386975['getName'](),'shapeType':_0x386975[_0x3d9cb9(0x168)](),'shapeData':_0x31f88e['Tools']['deepClone'](_0x386975[_0x3d9cb9(0x255)]())}}));}}['_planConnector'](_0x87707e,_0x110ecf,_0x102fc0,_0x24f2a8){const _0x3bf79c=_0x55692e;if(_0x102fc0[_0x3bf79c(0x164)]!==_0x31f88e[_0x3bf79c(0x1d9)][_0x3bf79c(0x256)]||_0x87707e['deletes'][_0x3bf79c(0x1e4)](_0x110ecf))return;let _0x2c94fe=this[_0x3bf79c(0x146)]['getShapeModel'](_0x87707e[_0x3bf79c(0x180)],_0x87707e[_0x3bf79c(0x1c2)],_0x110ecf);if(!_0x2c94fe||!(0x0,_0x529ffa['isConnectorShape'])(_0x2c94fe[_0x3bf79c(0x168)]()))return;let _0x2ce090=_0x2c94fe[_0x3bf79c(0x1d0)]();if(!(_0x87707e[_0x3bf79c(0x199)][_0x3bf79c(0x1e4)](_0x110ecf)||_0x2ce090!=null&&_0x2ce090[_0x3bf79c(0x160)]&&(_0x87707e[_0x3bf79c(0x199)]['has'](_0x2ce090[_0x3bf79c(0x160)][_0x3bf79c(0x1e0)])||_0x87707e[_0x3bf79c(0x1db)][_0x3bf79c(0x1e4)](_0x2ce090[_0x3bf79c(0x160)][_0x3bf79c(0x1e0)]))||_0x2ce090!=null&&_0x2ce090['to']&&(_0x87707e[_0x3bf79c(0x199)][_0x3bf79c(0x1e4)](_0x2ce090['to'][_0x3bf79c(0x1e0)])||_0x87707e[_0x3bf79c(0x1db)]['has'](_0x2ce090['to'][_0x3bf79c(0x1e0)]))))return;let _0x56e32a=_0x87707e['updates'][_0x3bf79c(0x162)](_0x110ecf)??_0x102fc0,_0x41e7c2=this[_0x3bf79c(0x192)](_0x87707e,_0x56e32a);if(!_0x41e7c2)return;let _0x56e09c=(0x0,_0x529ffa[_0x3bf79c(0x1fc)])(_0x41e7c2);if(_0x56e09c[_0x3bf79c(0x260)]<0x2)return;let _0x16e35c=_0x31f88e[_0x3bf79c(0x25c)][_0x3bf79c(0x174)](_0x2ce090??{}),_0x3c4d17=_0x16e35c['from']&&this[_0x3bf79c(0x1b9)](_0x87707e,_0x16e35c['from'][_0x3bf79c(0x1e0)],_0x16e35c[_0x3bf79c(0x160)][_0x3bf79c(0x222)]),_0x44be01=_0x16e35c['to']&&this[_0x3bf79c(0x1b9)](_0x87707e,_0x16e35c['to']['shapeId'],_0x16e35c['to'][_0x3bf79c(0x222)]);_0x16e35c[_0x3bf79c(0x160)]&&!_0x3c4d17&&delete _0x16e35c[_0x3bf79c(0x160)],_0x16e35c['to']&&!_0x44be01&&delete _0x16e35c['to'];let _0x21cc96=_0x3c4d17||(0x0,_0x529ffa['createFreeConnectorPointInfo'])((_0x44be01==null?void 0x0:_0x44be01[_0x3bf79c(0x18f)])??_0x56e09c[_0x56e09c[_0x3bf79c(0x260)]-0x1],_0x56e09c[0x0]),_0x4b39a3=_0x44be01||(0x0,_0x529ffa['createFreeConnectorPointInfo'])((_0x3c4d17==null?void 0x0:_0x3c4d17[_0x3bf79c(0x18f)])??_0x56e09c[0x0],_0x56e09c[_0x56e09c[_0x3bf79c(0x260)]-0x1]),_0x2a6b8e=(0x0,_0x529ffa[_0x3bf79c(0x22c)])(_0x41e7c2,_0x21cc96,_0x4b39a3,_0x16e35c);_0x2a6b8e!=null&&_0x2a6b8e['transform']&&_0x2a6b8e[_0x3bf79c(0x151)]&&_0x2a6b8e[_0x3bf79c(0x267)]&&(this[_0x3bf79c(0x229)](_0x87707e,_0x56e32a,_0x2a6b8e),_0x87707e[_0x3bf79c(0x264)]===_0x3bf79c(0x24d)?(_0x2c94fe[_0x3bf79c(0x18e)](_0x2a6b8e['shapeType']),_0x2c94fe[_0x3bf79c(0x154)](_0x31f88e['Tools'][_0x3bf79c(0x174)](_0x2a6b8e[_0x3bf79c(0x267)]),!0x1)):(_0x24f2a8['redos'][_0x3bf79c(0x1b4)]({'id':_0x33666f['id'],'params':{'unitId':_0x87707e[_0x3bf79c(0x180)],'subUnitId':_0x87707e[_0x3bf79c(0x1c2)],'shapeId':_0x110ecf,'shapeType':_0x2a6b8e[_0x3bf79c(0x151)],'shapeData':_0x31f88e[_0x3bf79c(0x25c)][_0x3bf79c(0x174)](_0x2a6b8e[_0x3bf79c(0x267)]),'replace':!0x0}}),_0x24f2a8['undos'][_0x3bf79c(0x1b4)]({'id':_0x33666f['id'],'params':{'unitId':_0x87707e['unitId'],'subUnitId':_0x87707e['subUnitId'],'shapeId':_0x110ecf,'shapeType':_0x2c94fe[_0x3bf79c(0x168)](),'shapeData':_0x31f88e['Tools'][_0x3bf79c(0x174)](_0x2c94fe[_0x3bf79c(0x255)]()),'replace':!0x0}})));}[_0x55692e(0x1b9)](_0x187190,_0x270ec6,_0x58a97e){const _0x4c79ed=_0x55692e;if(_0x187190['deletes'][_0x4c79ed(0x1e4)](_0x270ec6))return null;let _0x3040f7=_0x187190[_0x4c79ed(0x199)][_0x4c79ed(0x162)](_0x270ec6)??_0x187190['originals'][_0x4c79ed(0x162)](_0x270ec6);if(!_0x3040f7)return null;let _0x373b3b=this[_0x4c79ed(0x192)](_0x187190,_0x3040f7);return _0x373b3b?(0x0,_0x529ffa[_0x4c79ed(0x224)])(_0x373b3b,_0x58a97e):null;}[_0x55692e(0x192)](_0x43e4b3,_0x598d85){const _0x481756=_0x55692e;let _0x502ad2={'hostType':_0x31f88e[_0x481756(0x207)]['UNIVER_SHEET'],'unitId':_0x43e4b3[_0x481756(0x180)],'subUnitId':_0x43e4b3['subUnitId'],'shapeId':_0x598d85['drawingId']},_0x579c57=this[_0x481756(0x1ac)]['getShape'](_0x502ad2);return!_0x579c57||!_0x598d85[_0x481756(0x1f9)]?null:{..._0x579c57,'transform':{'left':_0x598d85[_0x481756(0x1f9)]['left']??0x0,'top':_0x598d85[_0x481756(0x1f9)][_0x481756(0x170)]??0x0,'width':_0x598d85[_0x481756(0x1f9)][_0x481756(0x1f2)]??0x0,'height':_0x598d85[_0x481756(0x1f9)][_0x481756(0x173)]??0x0,'rotation':_0x598d85['transform']['angle']??0x0,'flipX':_0x598d85[_0x481756(0x1f9)][_0x481756(0x161)]??!0x1,'flipY':_0x598d85[_0x481756(0x1f9)][_0x481756(0x1a9)]??!0x1}};}[_0x55692e(0x229)](_0x39a5bf,_0x1ec9e7,_0x3312d2){const _0x566efb=_0x55692e;let _0x498dab=_0x1ec9e7,_0x5aba8d={..._0x1ec9e7['transform'],'left':_0x3312d2['transform'][_0x566efb(0x17d)],'top':_0x3312d2[_0x566efb(0x1f9)][_0x566efb(0x170)],'width':_0x3312d2['transform'][_0x566efb(0x1f2)],'height':_0x3312d2[_0x566efb(0x1f9)][_0x566efb(0x173)],'angle':_0x3312d2[_0x566efb(0x1f9)][_0x566efb(0x18a)],'flipX':_0x3312d2[_0x566efb(0x1f9)][_0x566efb(0x161)],'flipY':_0x3312d2['transform'][_0x566efb(0x1a9)]},_0x427a39={..._0x498dab,'transform':_0x5aba8d,'sheetTransform':(0x0,_0x591f3b[_0x566efb(0x1aa)])(_0x5aba8d,_0x39a5bf[_0x566efb(0x1a3)]),'axisAlignSheetTransform':(0x0,_0x591f3b[_0x566efb(0x225)])(_0x5aba8d,_0x39a5bf[_0x566efb(0x1a3)]),'data':{..._0x498dab[_0x566efb(0x20c)],'shapeType':_0x3312d2[_0x566efb(0x151)],'shapeData':_0x31f88e[_0x566efb(0x25c)][_0x566efb(0x174)](_0x3312d2['shapeData'])}};_0x39a5bf[_0x566efb(0x199)][_0x566efb(0x269)](_0x1ec9e7['drawingId'],_0x427a39);}};_0x26521f=_0x42fc2d([_0x2f171d(0x0,(0x0,_0x31f88e[_0x55692e(0x22e)])(_0x30ea20)),_0x2f171d(0x1,(0x0,_0x31f88e[_0x55692e(0x22e)])(_0x64a8ba)),_0x2f171d(0x2,(0x0,_0x31f88e[_0x55692e(0x22e)])(_0x591f3b[_0x55692e(0x16e)]))],_0x26521f);let _0xf1de78=class extends _0x31f88e[_0x55692e(0x210)]{constructor(_0x36eace=_0x20a52c,_0x4d6f97,_0x4b4c73){const _0x415dbb=_0x55692e;super(),this[_0x415dbb(0x1ff)]=_0x36eace,this[_0x415dbb(0x1c0)]=_0x4d6f97,this['_configService']=_0x4b4c73;let {..._0xd648b6}=(0x0,_0x31f88e['merge'])({},_0x20a52c,this[_0x415dbb(0x1ff)]);this['_configService'][_0x415dbb(0x1cb)](_0x415dbb(0x266),_0xd648b6);}['onStarting'](){const _0x3bb1cd=_0x55692e;let _0x4b7ac2=this[_0x3bb1cd(0x1c0)];[[_0x2d46ab],[_0x30ea20],[_0x64a8ba],[_0x26521f],[_0x5d2670]][_0x3bb1cd(0x235)](_0x2ce7f0=>_0x4b7ac2[_0x3bb1cd(0x265)](_0x2ce7f0)),(0x0,_0x31f88e['touchDependencies'])(_0x4b7ac2,[[_0x30ea20],[_0x26521f],[_0x5d2670]]);}};_0x1f3d42(_0xf1de78,'type',_0x31f88e[_0x55692e(0x207)]['UNIVER_SHEET']),_0x1f3d42(_0xf1de78,_0x55692e(0x20d),'SHEET_SHAPE_PLUGIN'),_0x1f3d42(_0xf1de78,_0x55692e(0x20e),_0x4f337b),_0x1f3d42(_0xf1de78,_0x55692e(0x1ce),_0xfbb6ce),_0xf1de78=_0x42fc2d([(0x0,_0x31f88e['DependentOn'])(_0x5bf904[_0x55692e(0x1d5)],_0x3bd08b[_0x55692e(0x25b)],_0x529ffa['UniverShapePlugin'],_0x249c30['UniverSheetsPlugin'],_0x591f3b[_0x55692e(0x1b7)]),_0x2f171d(0x1,(0x0,_0x31f88e[_0x55692e(0x22e)])(_0x31f88e['Injector'])),_0x2f171d(0x2,_0x31f88e['IConfigService'])],_0xf1de78),_0x7e2a2a[_0x55692e(0x23a)]=0xc8,_0x7e2a2a[_0x55692e(0x253)]=0xc8,_0x7e2a2a[_0x55692e(0x22f)]=_0xe55bf9,_0x7e2a2a['InsertSheetsShapeMutation']=_0x225abf,_0x7e2a2a[_0x55692e(0x179)]=_0x10dcea,_0x7e2a2a[_0x55692e(0x23e)]=_0xe79fa7,_0x7e2a2a[_0x55692e(0x21d)]=_0x4a30db,_0x7e2a2a[_0x55692e(0x1bd)]=_0x18882d,Object['defineProperty'](_0x7e2a2a,_0x55692e(0x155),{'enumerable':!0x0,'get':function(){return _0x30ea20;}}),_0x7e2a2a[_0x55692e(0x245)]=_0xdc799,Object[_0x55692e(0x1c5)](_0x7e2a2a,_0x55692e(0x262),{'enumerable':!0x0,'get':function(){return _0xf1de78;}}),_0x7e2a2a['UpdateConnectorRelationCommand']=_0x7541bd,_0x7e2a2a[_0x55692e(0x1e5)]=_0x47e0a4,_0x7e2a2a[_0x55692e(0x181)]=_0x33666f,_0x7e2a2a[_0x55692e(0x1c7)]=_0x1c1ca3;}));function _0x5518(){const _0x57aef1=['anchorType','amd','isFinite','lineType','SheetDrawingAnchorType','sheet.mutation.update-shape-data','ToggleSheetsShapeFlipCommand','SheetTypes','_initCommands','sheet.command.toggle-shape-flip','worldRect','sheet.command.insert-shape','createFormulaLastValueMutation','_addLineRerouteUpdates','refresh','COMMAND','getAdjustNames','sequenceExecute','SheetSkeletonService','getShapeTypeById','DEFAULT_SHAPE_WIDTH','1018QgXDMb','getShapeData','DRAWING_SHAPE','range','insertShape','getOwnPropertyDescriptor','getBasicShapeType','UniverDrawingPlugin','Tools','updateContext','disposeWithMe','SHEET_SHAPE_PLUGIN','length','symbol','UniverSheetsShapePlugin','@univerjs/drawing','mode','add','sheets-shape.config','shapeData','384oLlRED','set','IResourceManagerService','startY','_shapeService','selectable','INSERT','command','adjustValues','shapeName','keys','visible','IShapeHostAdapterRegistry','174501pxFmJL','string','shapeType','SetDrawingApplyMutation','syncExecuteCommand','setShapeData','SheetsShapeService','hasShape','rehostShape','getStartConnectInfo','bringToFront','_shapeHostAdapterRegistry','576flTzot','bringForward','formulaBinding','transferShapeTo','find','from','flipX','get','toStringTag','drawingType','listShapes','DrawingApplyType','interceptCommand','getShapeType','generateRandomId','_sheetsShapeService','createShape','register','params','SheetDrawingTransformPlanService','_sheetDrawingService','top','getSheetCommandTarget','filter','height','deepClone','function','getSheets','_disposed','ensureSkeleton','RemoveSheetsShapeMutation','hostType','fromJSON','_planDeletes','left','UniverSheets','stringify','unitId','UpdateSheetsShapeDataMutation','@univerjs/sheets-drawing','sheet.mutation.update-shape-type','_sheetSkeletonService','isConnectorShape','canApplyShapeFormulaLastValue','12368CRPOmh','getId','pushUndoRedo','rotation','IDrawingManagerService','_getDrawingUpdates','getBasicShapeRotateBound','setShapeType','point','sheet.command.set-shape-text-vertical-toggle','fill','_toSnapshot','isLineShape','159oIDqbw','cos','createUniqueShapeName','description','getShapeDataById','updates','Both','parse','isFrom','UniverDrawing','UniverProLicense','getShape','sendBackward','@univerjs-pro/license','_sheetInterceptorService','skeleton','kind','_drawingService','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','ClearSheetDrawingTransformerOperation','UPDATE','flipY','transformToDrawingPosition','routeConnectorLineShape','_shapeAdapter','getBatchUpdateOp','registerCommand','applySheetDrawingPlacement','25808QBDbGF','backward','SheetInterceptorService','removeShape','push','name','_addLineFollowShapeUpdates','UniverSheetsDrawingPlugin','preRedos','_resolveBinding','_commandService','setZOrder','getLineShapeRelation','SetSheetsShapeTextVerticalToggleCommand','lineShapeId','SetSheetDrawingCommand','_injector','onCommandExecute','subUnitId','_shapes','entries','defineProperty','_groupIds','UpdateSheetsShapeTypeMutation','_initCommandInterceptor','drawings','sendToBack','setConfig','every','iterator','version','position','getShapeRelation','flatMap','originals','IUndoRedoService','relation','UniverLicensePlugin','preUndos','getShapeDisplayNames','_getConnectPointInfo','DrawingTypeEnum','undos','deletes','36850zTzheS','rotateEnabled','result','redos','shapeId','IUniverInstanceService','_drawingManagerService','@univerjs/core','has','UpdateLineShapeResizeCommand','borderEnabled','@univerjs-pro/engine-shape','isHorizontal','_deserializeShapeForUnit','SetDrawingArrangeCommand','_planConnector','removeLinePoints','dispose','ICommandService','Disposable','clear','ArrangeTypeEnum','width','None','ISheetDrawingService','map','@univerjs-pro/sheets-shape','addShape','drawingId','transform','UNIVER_SHEET','toPrimitive','resolveConnectorRoutePoints','back','forward','_config','getShapeTextData','REMOVE','hidden','RemoveSheetDrawingCommand','ShapeModel','_arrange','_instanceService','UniverInstanceType','index','updateShape','MUTATION','createDefaultInsertedShapeData','data','pluginName','packageName','getSkeleton','Plugin','139636spkajJ','getDrawingData','CommandType','angle','shapeChanged$','getAdjustValueByName','_linesIds','object','329210HsBUeX','delete','_shapeModelManagerMap','listShapesInUnit','SetSheetsShapeRotateCommand','type','sheet.command.update-line-shape-resize','getName','sheet.command.update-connector-relation','cxnIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','resolveShapeConnectionPoint','transformToAxisAlignPosition','resizeEnabled','getCellWithCoordByIndex','decorate','_applyUpdate','_serializeShapeForUnit','24rxoXwU','buildConnectorEndpointUpdate','computeConnectorRouteLayout','Inject','InsertShapeCommand','215OoTXOS','getBasicShapeRelation','getUnit','toJSON','getShapeModel','forEach','getBatchAddOp','UniverProSheetsShape','_ensureShapeModelManager','getDrawingByParam','DEFAULT_SHAPE_HEIGHT','getConfig','UniverProEngineShape','InsertSheetDrawingCommand','SetShapeDrawingDataCommand'];_0x5518=function(){return _0x57aef1;};return _0x5518();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-shape",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
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,26 +58,26 @@
|
|
|
58
58
|
"lib"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs-pro/engine-shape": "1.
|
|
62
|
-
"@univerjs-pro/license": "1.
|
|
63
|
-
"@univerjs/core": "1.
|
|
64
|
-
"@univerjs/drawing": "1.
|
|
65
|
-
"@univerjs/sheets": "1.
|
|
66
|
-
"@univerjs/sheets-drawing": "1.
|
|
61
|
+
"@univerjs-pro/engine-shape": "1.5.0",
|
|
62
|
+
"@univerjs-pro/license": "1.5.0",
|
|
63
|
+
"@univerjs/core": "1.5.0",
|
|
64
|
+
"@univerjs/drawing": "1.5.0",
|
|
65
|
+
"@univerjs/sheets": "1.5.0",
|
|
66
|
+
"@univerjs/sheets-drawing": "1.5.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@univerjs-infra/shared": "1.
|
|
70
|
-
"@univerjs/engine-render": "1.
|
|
71
|
-
"
|
|
72
|
-
"vitest": "^5.0
|
|
69
|
+
"@univerjs-infra/shared": "1.5.0",
|
|
70
|
+
"@univerjs/engine-render": "1.5.0",
|
|
71
|
+
"tsrs": "0.23.0-ts7.1.0-beta",
|
|
72
|
+
"vitest": "^5.1.0"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
75
|
"test": "vitest run",
|
|
76
76
|
"test:watch": "vitest",
|
|
77
77
|
"coverage": "vitest run --coverage",
|
|
78
|
-
"typecheck": "
|
|
78
|
+
"typecheck": "tsrs --noEmit",
|
|
79
79
|
"build:bundle": "univer-cli build",
|
|
80
|
-
"build:types": "
|
|
80
|
+
"build:types": "tsrs -p tsconfig.node.json",
|
|
81
81
|
"build": "pnpm run build:bundle && pnpm run build:types"
|
|
82
82
|
},
|
|
83
83
|
"module": "./lib/es/index.js"
|