@univerjs-pro/sheets-shape 0.24.0 → 0.25.0-insiders.20260608-e4336f7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3a184f=_0x4815;(function(_0x4c5fbe,_0x335f9b){const _0x44b59b=_0x4815,_0x480c64=_0x4c5fbe();while(!![]){try{const _0x47e475=-parseInt(_0x44b59b(0x136))/0x1*(-parseInt(_0x44b59b(0x19b))/0x2)+parseInt(_0x44b59b(0x166))/0x3*(-parseInt(_0x44b59b(0x146))/0x4)+parseInt(_0x44b59b(0x156))/0x5+parseInt(_0x44b59b(0x148))/0x6*(parseInt(_0x44b59b(0x15a))/0x7)+parseInt(_0x44b59b(0x13b))/0x8+-parseInt(_0x44b59b(0x1a0))/0x9*(parseInt(_0x44b59b(0x121))/0xa)+-parseInt(_0x44b59b(0x177))/0xb;if(_0x47e475===_0x335f9b)break;else _0x480c64['push'](_0x480c64['shift']());}catch(_0x278da8){_0x480c64['push'](_0x480c64['shift']());}}}(_0x4d57,0x8d891));import{ShapeModel as _0x4e9e09,computeConnectorRouteLayout as _0x2856f6,getBasicShapeRotateBound as _0x5e7c0a,isConnectorShape as _0x711ab1,routeConnectorLineShape as _0x3ff60f}from'@univerjs-pro/engine-shape';import{CommandType as _0x353930,DependentOn as _0x8500a4,Disposable as _0x24c5b2,DrawingTypeEnum as _0x123f9a,ICommandService as _0x27fb22,IConfigService as _0x59fdba,IResourceManagerService as _0x3863ee,IUndoRedoService as _0x1e7ecc,IUniverInstanceService as _0x40f73c,Inject as _0x14913b,Injector as _0x378ab6,Plugin as _0x1916d8,UniverInstanceType as _0x5e7a6a,generateRandomId as _0x31fc7d,merge as _0x2fb6e3,sequenceExecute as _0x3f0ae0,touchDependencies as _0x47b815}from'@univerjs/core';import{SheetInterceptorService as _0x1d917b,SheetSkeletonService as _0x40d9b8,getSheetCommandTarget as _0x2792d1}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x2c533f,DrawingApplyType as _0x597b08,ISheetDrawingService as _0x39f882,InsertSheetDrawingCommand as _0x4d513b,RemoveSheetDrawingCommand as _0x3e5d52,SetDrawingApplyMutation as _0x25204a,SetSheetDrawingCommand as _0x1c5703,transformToAxisAlignPosition as _0x107177,transformToDrawingPosition as _0x5b629c}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x3c411b}from'@univerjs-pro/license';import{IDrawingManagerService as _0x2841a3}from'@univerjs/drawing';const I=0xc8,L=0xc8;function R(_0x1e7fb4){'@babel/helpers - typeof';const _0x1dc65c=_0x4815;return R=typeof Symbol==_0x1dc65c(0x14b)&&typeof Symbol['iterator']=='symbol'?function(_0x259273){return typeof _0x259273;}:function(_0x5975be){const _0x5e1df5=_0x1dc65c;return _0x5975be&&typeof Symbol==_0x5e1df5(0x14b)&&_0x5975be['constructor']===Symbol&&_0x5975be!==Symbol[_0x5e1df5(0x137)]?_0x5e1df5(0x18e):typeof _0x5975be;},R(_0x1e7fb4);}function _0x4d57(){const _0x30b844=['getShapeDataById','114tKPent','_shapes','sheet.command.set-shape-drawing-data','function','getOwnPropertyDescriptor','setShapeData','cos','redos','sheet.mutation.remove-shape','_initCommandInterceptor','removeShape','borderEnabled','preUndos','resizeEnabled','1122525BaXOhr','call','delete','interceptCommand','59941BbxQxG','sheet.command.update-shape-type','UPDATE','_shapeModelManagerMap','has','fill','0.24.0','transform','_sheetsShapeService','_configService','getCellIndexAndOffsetByPosition','set','9iWwLDh','_addLineFollowShapeUpdates','ang','pluginName','sheet.command.set-shape-rotate','_config','sheet.command.update-line-shape-resize','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','default','_sheetInterceptorService','MUTATION','find','string','getShapeType','isFrom','_deserializeShapeForUnit','sheet.command.update-connector-relation','247533hJKyDs','getBatchAddOp','width','from','_initCommands','COMMAND','addShape','range','getAdjustNames','_commandService','setShapeType','getShapeModel','preRedos','insertShape','result','getSkeleton','height','top','getShapeRelation','onCommandExecute','_linesIds','stringify','relation','symbol','getLineShapeRelation','shapeData','disposeWithMe','_getConnectPointInfo','adjustValues','object','undos','getDrawingData','_groupIds','getStartConnectInfo','pushUndoRedo','shapeId','140212tQiLAu','sheet.mutation.insert-shape','toJSON','onStarting','drawingType','18RtFnkr','UNIVER_SHEET','DRAWING_SHAPE','angle','startX','length','get','_sheetSkeletonService','startY','worldRect','SHEET_SHAPE_PLUGIN','getShapeData','flipY','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','index','every','keys','getEndConnectInfo','version','entries','_addLineRerouteUpdates','rotateEnabled','position','sheet.mutation.update-shape-type','sheets-shape.config','parse','277450PqOdZp','decorate','_serializeShapeForUnit','_drawingManagerService','filter','sheet.mutation.update-shape-data','lineShapeId','getConnectionSiteList','registerCommand','_initSnapshot','clear','flipX','updateContext','forEach','getDrawingByParam','data','left','REMOVE','ensureSkeleton','removeLinePoints','hasShape','9LTOxak','prototype','assign','sheet.command.set-shape-text-vertical-toggle','fromJSON','935096xqAFbO','add','getBatchUpdateOp','push','cxnIndex','isLineShape','getBasicShapeRelation','dispose','_ensureShapeModelManager','_resourcesManagerService','params','636428TKVyVa'];_0x4d57=function(){return _0x30b844;};return _0x4d57();}function z(_0x2e8319,_0x529466){const _0x5ef0f1=_0x4815;if(R(_0x2e8319)!=_0x5ef0f1(0x194)||!_0x2e8319)return _0x2e8319;var _0x3df257=_0x2e8319[Symbol['toPrimitive']];if(_0x3df257!==void 0x0){var _0x41d307=_0x3df257[_0x5ef0f1(0x157)](_0x2e8319,_0x529466||_0x5ef0f1(0x16e));if(R(_0x41d307)!=_0x5ef0f1(0x194))return _0x41d307;throw TypeError(_0x5ef0f1(0x114));}return(_0x529466===_0x5ef0f1(0x172)?String:Number)(_0x2e8319);}function B(_0x5c8fff){const _0x28fbbc=_0x4815;var _0x15854a=z(_0x5c8fff,'string');return R(_0x15854a)==_0x28fbbc(0x18e)?_0x15854a:_0x15854a+'';}function V(_0x2942cf,_0x33e74d,_0x1476c7){return(_0x33e74d=B(_0x33e74d))in _0x2942cf?Object['defineProperty'](_0x2942cf,_0x33e74d,{'value':_0x1476c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2942cf[_0x33e74d]=_0x1476c7,_0x2942cf;}var H=class extends _0x24c5b2{constructor(){const _0x3c3570=_0x4815;super(),V(this,_0x3c3570(0x149),new Map()),V(this,'_linesIds',new Set()),V(this,_0x3c3570(0x197),new Set());}[_0x3a184f(0x17d)](_0x4f7a34,_0x449575,_0x5e77a7){const _0x66d55c=_0x3a184f;let _0x43ef93=new _0x4e9e09(_0x4f7a34,_0x449575,_0x5e77a7);return this[_0x66d55c(0x149)]['set'](_0x449575,_0x43ef93),_0x711ab1(_0x4f7a34)&&this[_0x66d55c(0x18b)]['add'](_0x449575),_0x43ef93;}[_0x3a184f(0x141)](_0x46bf35){const _0xf60f99=_0x3a184f;let _0x3a8d3e=[];for(let _0x1a58e2 of this[_0xf60f99(0x18b)]){let _0x40bd67=this[_0xf60f99(0x149)][_0xf60f99(0x1a6)](_0x1a58e2);if(_0x40bd67){let _0x123670=_0x40bd67['getShapeRelation']();if(_0x123670){var _0x53808c,_0x3ce24d;((_0x53808c=_0x123670[_0xf60f99(0x17a)])==null?void 0x0:_0x53808c[_0xf60f99(0x19a)])===_0x46bf35&&_0x3a8d3e['push']({..._0x123670[_0xf60f99(0x17a)],'lineShapeId':_0x1a58e2,'isFrom':!0x0}),((_0x3ce24d=_0x123670['to'])==null?void 0x0:_0x3ce24d[_0xf60f99(0x19a)])===_0x46bf35&&_0x3a8d3e[_0xf60f99(0x13e)]({..._0x123670['to'],'lineShapeId':_0x1a58e2,'isFrom':!0x1});}}}return _0x3a8d3e;}[_0x3a184f(0x18f)](_0x29d7d0){const _0x5b86a3=_0x3a184f;let _0x3a8312=this[_0x5b86a3(0x149)][_0x5b86a3(0x1a6)](_0x29d7d0);if(_0x3a8312)return _0x3a8312[_0x5b86a3(0x189)]();}[_0x3a184f(0x173)](_0x2b36ee){const _0x7cdbf6=_0x3a184f;let _0x415bce=this['_shapes'][_0x7cdbf6(0x1a6)](_0x2b36ee);if(_0x415bce)return _0x415bce['getShapeType']();}[_0x3a184f(0x135)](_0x4cf9b8){const _0x392f7c=_0x3a184f;return this['_shapes'][_0x392f7c(0x15e)](_0x4cf9b8);}[_0x3a184f(0x152)](_0xdf5cce){const _0x5d1991=_0x3a184f;let _0x13dee7=this[_0x5d1991(0x149)][_0x5d1991(0x1a6)](_0xdf5cce);_0x13dee7&&(_0x711ab1(_0x13dee7[_0x5d1991(0x173)]())&&this[_0x5d1991(0x18b)][_0x5d1991(0x158)](_0xdf5cce),this['_shapes'][_0x5d1991(0x158)](_0xdf5cce));}[_0x3a184f(0x19d)](){const _0x4699fa=_0x3a184f;let _0x5af2b1=[];return this[_0x4699fa(0x149)][_0x4699fa(0x12e)](_0x23f705=>{const _0x223123=_0x4699fa;_0x5af2b1[_0x223123(0x13e)](_0x23f705[_0x223123(0x19d)]());}),_0x5af2b1;}[_0x3a184f(0x13a)](_0x5e09e0){const _0x3f974b=_0x3a184f;for(let _0x3ead05 of _0x5e09e0){let {id:_0x12b973,shapeType:_0x491f4a}=_0x3ead05,_0x54c329=this[_0x3f974b(0x17d)](_0x491f4a,_0x12b973,_0x3ead05[_0x3f974b(0x190)]);_0x54c329&&_0x54c329[_0x3f974b(0x140)]()&&this['_linesIds'][_0x3f974b(0x13c)](_0x12b973);}}['dispose'](){const _0x3f8112=_0x3a184f;this['_disposed']||(this[_0x3f8112(0x149)][_0x3f8112(0x12e)](_0x10a6dd=>{_0x10a6dd['dispose']();}),this[_0x3f8112(0x149)]['clear'](),this['_linesIds'][_0x3f8112(0x12b)](),this[_0x3f8112(0x197)][_0x3f8112(0x12b)](),super[_0x3f8112(0x142)]());}};function U(_0x127638,_0x17f8b5){return function(_0x409674,_0x212dc8){_0x17f8b5(_0x409674,_0x212dc8,_0x127638);};}function _0x4815(_0x1a46b5,_0x39276e){_0x1a46b5=_0x1a46b5-0x113;const _0x4d5784=_0x4d57();let _0x48152d=_0x4d5784[_0x1a46b5];return _0x48152d;}function W(_0x27f351,_0x43c426,_0x34c90d,_0x4cf620){const _0x3b370a=_0x3a184f;var _0x5a152c=arguments[_0x3b370a(0x1a5)],_0xfc864f=_0x5a152c<0x3?_0x43c426:_0x4cf620===null?_0x4cf620=Object[_0x3b370a(0x14c)](_0x43c426,_0x34c90d):_0x4cf620,_0x409ae4;if(typeof Reflect=='object'&&typeof Reflect[_0x3b370a(0x122)]=='function')_0xfc864f=Reflect[_0x3b370a(0x122)](_0x27f351,_0x43c426,_0x34c90d,_0x4cf620);else{for(var _0x3636e9=_0x27f351[_0x3b370a(0x1a5)]-0x1;_0x3636e9>=0x0;_0x3636e9--)(_0x409ae4=_0x27f351[_0x3636e9])&&(_0xfc864f=(_0x5a152c<0x3?_0x409ae4(_0xfc864f):_0x5a152c>0x3?_0x409ae4(_0x43c426,_0x34c90d,_0xfc864f):_0x409ae4(_0x43c426,_0x34c90d))||_0xfc864f);}return _0x5a152c>0x3&&_0xfc864f&&Object['defineProperty'](_0x43c426,_0x34c90d,_0xfc864f),_0xfc864f;}let G=class extends _0x24c5b2{constructor(_0x385135){const _0x13f710=_0x3a184f;super(),this[_0x13f710(0x144)]=_0x385135,V(this,_0x13f710(0x15d),new Map()),this[_0x13f710(0x12a)]();}[_0x3a184f(0x143)](_0x27e1ec,_0x5df65f){const _0x92faae=_0x3a184f;let _0x1c6e7b=this[_0x92faae(0x15d)][_0x92faae(0x1a6)](_0x27e1ec);_0x1c6e7b||(_0x1c6e7b=new Map(),this[_0x92faae(0x15d)][_0x92faae(0x165)](_0x27e1ec,_0x1c6e7b));let _0x175d70=_0x1c6e7b[_0x92faae(0x1a6)](_0x5df65f);return _0x175d70||(_0x175d70=new H(),_0x1c6e7b[_0x92faae(0x165)](_0x5df65f,_0x175d70)),_0x175d70;}['insertShape'](_0x1b1874,_0x3c7b21,_0x30081b,_0x5587a8,_0x446ade){const _0x5d2161=_0x3a184f;this[_0x5d2161(0x143)](_0x1b1874,_0x3c7b21)[_0x5d2161(0x17d)](_0x30081b,_0x5587a8,_0x446ade);}[_0x3a184f(0x152)](_0x49c350,_0x2ccc9a,_0x779b4c){const _0x19d6ce=_0x3a184f;this[_0x19d6ce(0x143)](_0x49c350,_0x2ccc9a)['removeShape'](_0x779b4c);}['getBasicShapeType'](_0x3cf4fa,_0x4c0c62,_0x28885e){const _0x262c11=_0x3a184f;return this['_ensureShapeModelManager'](_0x3cf4fa,_0x4c0c62)[_0x262c11(0x173)](_0x28885e);}['getShapeType'](_0x4e55f7,_0x3da808,_0x111c30){const _0x26022=_0x3a184f;return this['_ensureShapeModelManager'](_0x4e55f7,_0x3da808)[_0x26022(0x173)](_0x111c30);}[_0x3a184f(0x135)](_0x1203d7,_0x40aacb,_0xb1d3fb){const _0x51565f=_0x3a184f;return this[_0x51565f(0x143)](_0x1203d7,_0x40aacb)[_0x51565f(0x135)](_0xb1d3fb);}['getShapeTypeById'](_0x171db9,_0xc3a43c,_0x3b083e){const _0x28cfee=_0x3a184f;return this[_0x28cfee(0x143)](_0x171db9,_0xc3a43c)[_0x28cfee(0x173)](_0x3b083e);}[_0x3a184f(0x147)](_0x153cfa,_0x20f4b2,_0x421867){const _0x125959=_0x3a184f;let _0x10c282=this[_0x125959(0x143)](_0x153cfa,_0x20f4b2);if(!_0x10c282[_0x125959(0x173)](_0x421867))return;let _0x2df216=_0x10c282[_0x125959(0x149)]['get'](_0x421867);if(_0x2df216)return _0x2df216[_0x125959(0x1ab)]();}[_0x3a184f(0x182)](_0x51744c,_0x4dc035,_0x38b99d){const _0x29ada0=_0x3a184f;return this[_0x29ada0(0x143)](_0x51744c,_0x4dc035)[_0x29ada0(0x149)]['get'](_0x38b99d);}[_0x3a184f(0x141)](_0x14f7fd,_0x4a6ba9,_0x5819e5){const _0x4b07ad=_0x3a184f;return this[_0x4b07ad(0x143)](_0x14f7fd,_0x4a6ba9)[_0x4b07ad(0x141)](_0x5819e5);}[_0x3a184f(0x18f)](_0x3a1210,_0x34e9a8,_0x4b5beb){const _0x19009d=_0x3a184f;let _0x47bed3=this[_0x19009d(0x143)](_0x3a1210,_0x34e9a8)['_shapes'][_0x19009d(0x1a6)](_0x4b5beb);if(_0x47bed3)return _0x47bed3[_0x19009d(0x189)]();}[_0x3a184f(0x181)](){}[_0x3a184f(0x123)](_0x22f676){const _0x516cff=_0x3a184f;let _0x23938c={},_0x322aed=this[_0x516cff(0x15d)][_0x516cff(0x1a6)](_0x22f676);return _0x322aed&&_0x322aed[_0x516cff(0x12e)]((_0x205235,_0x41f3c1)=>{const _0x3061bc=_0x516cff;let _0x3841a2=_0x205235[_0x3061bc(0x19d)]();_0x3841a2[_0x3061bc(0x1a5)]>0x0&&(_0x23938c[_0x41f3c1]=_0x3841a2);}),JSON[_0x516cff(0x18c)](_0x23938c);}[_0x3a184f(0x175)](_0x3bd8b0,_0x26d7fe){const _0x494bc9=_0x3a184f;Object['keys'](_0x26d7fe)[_0x494bc9(0x12e)](_0xaf67e6=>{const _0x40abd8=_0x494bc9;this[_0x40abd8(0x143)](_0x3bd8b0,_0xaf67e6)[_0x40abd8(0x13a)](_0x26d7fe[_0xaf67e6]);});}[_0x3a184f(0x19d)](){const _0x572cf0=_0x3a184f;let _0xd89738={};return this[_0x572cf0(0x15d)][_0x572cf0(0x12e)]((_0x37c432,_0x14d89d)=>{const _0x521711=_0x572cf0;_0xd89738[_0x14d89d]={},_0x37c432[_0x521711(0x12e)]((_0x2d8d21,_0x448ec0)=>{const _0x183c38=_0x521711;_0xd89738[_0x14d89d][_0x448ec0]=_0x2d8d21[_0x183c38(0x19d)]();});}),_0xd89738;}[_0x3a184f(0x13a)](_0x1afe8e){const _0x27fbfc=_0x3a184f;Object['keys'](_0x1afe8e)[_0x27fbfc(0x12e)](_0x158725=>{const _0x21dcfc=_0x27fbfc;let _0x2843aa=_0x1afe8e[_0x158725];Object[_0x21dcfc(0x117)](_0x2843aa)[_0x21dcfc(0x12e)](_0x1d50ad=>{const _0x51dd46=_0x21dcfc;this[_0x51dd46(0x143)](_0x158725,_0x1d50ad)['fromJSON'](_0x2843aa[_0x1d50ad]);});});}[_0x3a184f(0x12a)](){const _0x5c6638=_0x3a184f;this[_0x5c6638(0x144)]['registerPluginResource']({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x5e7a6a[_0x5c6638(0x1a1)]],'toJson':_0x1e1564=>this[_0x5c6638(0x123)](_0x1e1564),'parseJson':_0x44a26c=>JSON[_0x5c6638(0x120)](_0x44a26c),'onLoad':(_0x11b444,_0x1843c2)=>{const _0x2e901b=_0x5c6638;this[_0x2e901b(0x175)](_0x11b444,_0x1843c2);},'onUnLoad':_0x510e16=>{const _0x513309=_0x5c6638;let _0x2377e0=this[_0x513309(0x15d)][_0x513309(0x1a6)](_0x510e16);_0x2377e0&&(_0x2377e0[_0x513309(0x12e)](_0x681535=>{const _0x1d124a=_0x513309;_0x681535[_0x1d124a(0x142)]();}),this[_0x513309(0x15d)][_0x513309(0x158)](_0x510e16));}});}[_0x3a184f(0x142)](){const _0x4b9303=_0x3a184f;this['_shapeModelManagerMap'][_0x4b9303(0x12e)](_0x3c8fb=>{const _0x51426b=_0x4b9303;_0x3c8fb[_0x51426b(0x12e)](_0xef9a54=>{_0xef9a54['dispose']();});});}};G=W([U(0x0,_0x3863ee)],G);const K={'id':_0x3a184f(0x19c),'type':_0x353930[_0x3a184f(0x170)],'handler':(_0x1f7f83,_0x38f528)=>{const _0x930aa8=_0x3a184f;let {unitId:_0x59b21f,subUnitId:_0x30485a,shapeType:_0xebd56a,shapeId:_0x1c564f,shapeData:_0x3f7b2a}=_0x38f528;return _0x1f7f83[_0x930aa8(0x1a6)](G)[_0x930aa8(0x184)](_0x59b21f,_0x30485a,_0xebd56a,_0x1c564f,_0x3f7b2a),!0x0;}},q={'id':_0x3a184f(0x150),'type':_0x353930[_0x3a184f(0x170)],'handler':(_0x570f20,_0x4670c2)=>{const _0x25ddcd=_0x3a184f;let {unitId:_0x2e338a,subUnitId:_0x4f81fe,shapeId:_0x1ab9b9}=_0x4670c2;return _0x570f20[_0x25ddcd(0x1a6)](G)[_0x25ddcd(0x152)](_0x2e338a,_0x4f81fe,_0x1ab9b9),!0x0;}},J={'type':_0x353930[_0x3a184f(0x17c)],'id':'sheet.command.insert-shape','handler':(_0x4d9f48,_0x55a69d)=>{const _0x337bf7=_0x3a184f;var _0x25c3a5,_0x13889c;let _0x217e1b=_0x2792d1(_0x4d9f48['get'](_0x40f73c),_0x55a69d);if(!_0x217e1b)return!0x1;let _0x1fbc28=_0x4d9f48['get'](_0x40d9b8),{unitId:_0x9d3603,subUnitId:_0x38bade}=_0x217e1b,_0x2acb1c=_0x1fbc28[_0x337bf7(0x133)](_0x9d3603,_0x38bade);if(!_0x2acb1c)return!0x1;let _0x103657=_0x4d9f48[_0x337bf7(0x1a6)](_0x27fb22),_0x140091=_0x4d9f48['get'](_0x1e7ecc),_0x5d2270=_0x4d9f48['get'](_0x1d917b),_0x25f9a6=_0x4d9f48['get'](_0x39f882),{shapeType:_0x2851c8,shapeData:_0x225859}=_0x55a69d,_0xbde33f=_0x55a69d['shapeId']||_0x31fc7d(),_0x3fae70={'unitId':_0x9d3603,'subUnitId':_0x38bade,'shapeId':_0xbde33f,'shapeType':_0x2851c8,'shapeData':_0x225859},_0x32c443=_0x55a69d[_0x337bf7(0x179)]||0xc8,_0x2f978e=_0x55a69d[_0x337bf7(0x187)]||0xc8,_0x11e4d8=0x0,_0x27fcda=0x0,_0x48058d={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x4708e2={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x55a69d[_0x337bf7(0x11d)]){let {x:_0x5b14bd,y:_0x38b9a5}=_0x55a69d['position'];_0x11e4d8=_0x5b14bd,_0x27fcda=_0x38b9a5,_0x48058d=_0x2acb1c[_0x337bf7(0x164)](_0x5b14bd,_0x38b9a5),_0x4708e2=_0x2acb1c[_0x337bf7(0x164)](_0x5b14bd+_0x32c443,_0x38b9a5+_0x2f978e);}else{if(_0x55a69d['range']){let {startRow:_0x2ab7e5,startColumn:_0x1646b1}=_0x55a69d[_0x337bf7(0x17e)];_0x48058d={'row':_0x2ab7e5,'rowOffset':0xa,'column':_0x1646b1,'columnOffset':0xa};let _0x1904e7=_0x2acb1c['getCellWithCoordByIndex'](_0x2ab7e5,_0x1646b1);_0x11e4d8=_0x1904e7[_0x337bf7(0x1a4)]+0xa,_0x27fcda=_0x1904e7[_0x337bf7(0x1a8)]+0xa,_0x4708e2=_0x2acb1c[_0x337bf7(0x164)](_0x11e4d8+_0x32c443,_0x27fcda+_0x2f978e);}}let _0x4875ca={'from':_0x48058d,'to':_0x4708e2},_0xd17438={'unitId':_0x9d3603,'subUnitId':_0x38bade,'drawingId':_0xbde33f,'drawingType':_0x123f9a['DRAWING_SHAPE'],'sheetTransform':_0x4875ca,'transform':{'left':_0x11e4d8,'top':_0x27fcda,'width':_0x32c443,'height':_0x2f978e},'data':{'shapeType':_0x2851c8,'shapeData':_0x225859},'axisAlignSheetTransform':_0x4875ca,'allowTransform':!0x0};_0x711ab1(_0x2851c8)&&(_0xd17438[_0x337bf7(0x130)][_0x337bf7(0x15f)]=!0x1,_0xd17438[_0x337bf7(0x130)][_0x337bf7(0x11c)]=!0x1,_0xd17438[_0x337bf7(0x130)]['resizeEnabled']=!0x1,_0xd17438[_0x337bf7(0x130)][_0x337bf7(0x153)]=!0x1,_0xd17438['transform'][_0x337bf7(0x11c)]=!0x1,_0xd17438[_0x337bf7(0x161)][_0x337bf7(0x155)]=!0x1,_0xd17438['transform']['borderEnabled']=!0x1);let {undo:_0x1a1b94,redo:_0x5881f3,objects:_0x37aab6}=_0x25f9a6[_0x337bf7(0x178)]([_0xd17438]),_0x5f2dcb=_0x5d2270['onCommandExecute']({'id':_0x4d513b['id'],'params':{'unitId':_0x9d3603,'drawings':[_0xd17438]}}),_0x356969=[...(_0x25c3a5=_0x5f2dcb['preRedos'])==null?[]:_0x25c3a5,{'id':_0x25204a['id'],'params':{'unitId':_0x9d3603,'subUnitId':_0x38bade,'op':_0x5881f3,'objects':_0x37aab6,'type':_0x597b08['INSERT']}},{'id':_0x2c533f['id'],'params':[_0x9d3603]},..._0x5f2dcb[_0x337bf7(0x14f)],{'id':K['id'],'params':_0x3fae70}],_0x1f83d0=[{'id':q['id'],'params':{'unitId':_0x9d3603,'subUnitId':_0x38bade,'shapeId':_0xbde33f}},...(_0x13889c=_0x5f2dcb[_0x337bf7(0x154)])==null?[]:_0x13889c,{'id':_0x25204a['id'],'params':{'unitId':_0x9d3603,'subUnitId':_0x38bade,'op':_0x1a1b94,'objects':_0x37aab6,'type':_0x597b08[_0x337bf7(0x132)]}},{'id':_0x2c533f['id'],'params':[_0x9d3603]},..._0x5f2dcb['undos']];return _0x3f0ae0(_0x356969,_0x103657)['result']?(_0x140091['pushUndoRedo']({'unitID':_0x9d3603,'undoMutations':_0x1f83d0,'redoMutations':_0x356969}),!0x0):!0x1;}},Y={'id':_0x3a184f(0x126),'type':_0x353930[_0x3a184f(0x170)],'handler':(_0x1f9c33,_0xcb5c53)=>{const _0x5900ce=_0x3a184f;let {unitId:_0x312c57,subUnitId:_0x51ce84,shapeType:_0x52111e,shapeId:_0x25efa6,shapeData:_0x31a303}=_0xcb5c53,_0x5482da=_0x1f9c33['get'](G)[_0x5900ce(0x182)](_0x312c57,_0x51ce84,_0x25efa6);return _0x5482da&&(_0x52111e!==void 0x0&&_0x5482da[_0x5900ce(0x181)](_0x52111e),_0x31a303&&(_0x5482da==null||_0x5482da[_0x5900ce(0x14d)](_0x31a303,!0x0))),!0x0;}},ee={'type':_0x353930['COMMAND'],'id':_0x3a184f(0x14a),'handler':(_0x151e36,_0x25658b)=>{const _0x1a61d3=_0x3a184f;var _0x51976a,_0x4c2027;let _0x2805f3=_0x2792d1(_0x151e36[_0x1a61d3(0x1a6)](_0x40f73c),_0x25658b);if(!_0x2805f3)return!0x1;let _0x2e9e6c=_0x151e36[_0x1a61d3(0x1a6)](_0x40d9b8),{unitId:_0x235eab,subUnitId:_0x5421e9}=_0x2805f3,_0x22ac00=_0x2e9e6c[_0x1a61d3(0x133)](_0x235eab,_0x5421e9);if(!_0x22ac00)return!0x1;let _0xf4bff4=_0x151e36[_0x1a61d3(0x1a6)](G),{shapeId:_0x457b63,shapeType:_0x2ce9ae,shapeData:_0x370c0a,position:_0x1f99fa,width:_0x3f5227,height:_0x3b7a9e}=_0x25658b,_0x19434f=_0xf4bff4[_0x1a61d3(0x182)](_0x235eab,_0x5421e9,_0x457b63);if(!_0x19434f)return!0x1;let _0x2c70f9=_0x151e36[_0x1a61d3(0x1a6)](_0x27fb22),_0x514c31=_0x151e36['get'](_0x1e7ecc),_0x40e896=_0x151e36[_0x1a61d3(0x1a6)](_0x1d917b),_0x3cd78e=_0x151e36[_0x1a61d3(0x1a6)](_0x39f882),_0x1f63c2={'unitId':_0x235eab,'subUnitId':_0x5421e9,'shapeId':_0x457b63,'shapeType':_0x2ce9ae,'shapeData':_0x370c0a},_0x4b983b=_0x19434f[_0x1a61d3(0x173)](),_0x2197ea=_0x19434f[_0x1a61d3(0x1ab)](),{x:_0x2edd4b,y:_0x57482a}=_0x1f99fa,_0xb8ff5a={'from':_0x22ac00[_0x1a61d3(0x164)](_0x2edd4b,_0x57482a),'to':_0x22ac00[_0x1a61d3(0x164)](_0x2edd4b+_0x3f5227,_0x57482a+_0x3b7a9e)},_0x2d6c9c={'unitId':_0x235eab,'subUnitId':_0x5421e9,'drawingId':_0x457b63,'drawingType':_0x123f9a[_0x1a61d3(0x1a2)],'sheetTransform':_0xb8ff5a,'transform':{'left':_0x2edd4b,'top':_0x57482a,'width':_0x3f5227,'height':_0x3b7a9e},'data':{'shapeType':_0x2ce9ae,'shapeData':_0x370c0a},'axisAlignSheetTransform':_0xb8ff5a,'allowTransform':!0x0};_0x711ab1(_0x2ce9ae)&&(_0x2d6c9c[_0x1a61d3(0x130)]['fill']=!0x1,_0x2d6c9c[_0x1a61d3(0x130)][_0x1a61d3(0x11c)]=!0x1,_0x2d6c9c['data'][_0x1a61d3(0x155)]=!0x1,_0x2d6c9c['data'][_0x1a61d3(0x153)]=!0x1,_0x2d6c9c['transform'][_0x1a61d3(0x11c)]=!0x1,_0x2d6c9c[_0x1a61d3(0x161)][_0x1a61d3(0x155)]=!0x1,_0x2d6c9c[_0x1a61d3(0x161)][_0x1a61d3(0x153)]=!0x1);let {undo:_0x26052b,redo:_0x29f6c9,objects:_0x95a0a6}=_0x3cd78e[_0x1a61d3(0x13d)]([_0x2d6c9c]),_0x1b65ac=_0x40e896[_0x1a61d3(0x18a)]({'id':_0x1c5703['id'],'params':{'unitId':_0x235eab,'drawings':[_0x2d6c9c]}}),_0x4f4cf8=[...(_0x51976a=_0x1b65ac[_0x1a61d3(0x183)])==null?[]:_0x51976a,{'id':_0x25204a['id'],'params':{'unitId':_0x235eab,'subUnitId':_0x5421e9,'op':_0x29f6c9,'objects':_0x95a0a6,'type':_0x597b08[_0x1a61d3(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x235eab]},..._0x1b65ac[_0x1a61d3(0x14f)],{'id':Y['id'],'params':_0x1f63c2}],_0x32108a=[...(_0x4c2027=_0x1b65ac['preUndos'])==null?[]:_0x4c2027,{'id':_0x25204a['id'],'params':{'unitId':_0x235eab,'subUnitId':_0x5421e9,'op':_0x26052b,'objects':_0x95a0a6,'type':_0x597b08[_0x1a61d3(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x235eab]},..._0x1b65ac[_0x1a61d3(0x195)],{'id':Y['id'],'params':{'unitId':_0x235eab,'subUnitId':_0x5421e9,'shapeType':_0x4b983b,'shapeId':_0x457b63,'shapeData':_0x2197ea}}];return _0x3f0ae0(_0x4f4cf8,_0x2c70f9)[_0x1a61d3(0x185)]?(_0x514c31[_0x1a61d3(0x199)]({'unitID':_0x235eab,'undoMutations':_0x32108a,'redoMutations':_0x4f4cf8}),!0x0):!0x1;}},te={'type':_0x353930['COMMAND'],'id':'sheet.command.toggle-shape-flip','handler':(_0x4aff08,_0x981567)=>{const _0x2d32ed=_0x3a184f;var _0x2f79c4,_0x1f2c46;let _0x2f2deb=_0x2792d1(_0x4aff08[_0x2d32ed(0x1a6)](_0x40f73c),_0x981567);if(!_0x2f2deb)return!0x1;let _0x6be591=_0x4aff08[_0x2d32ed(0x1a6)](_0x40d9b8),{unitId:_0x432a8a,subUnitId:_0x3b8801}=_0x2f2deb,_0x28355e=_0x6be591[_0x2d32ed(0x186)](_0x432a8a,_0x3b8801);if(!_0x28355e)return!0x1;let _0x320b3b=_0x4aff08[_0x2d32ed(0x1a6)](_0x39f882),{shapeId:_0x338df1,flipH:_0x303d53,flipV:_0x4bd4b6}=_0x981567,_0x329490=_0x320b3b[_0x2d32ed(0x12f)]({'unitId':_0x432a8a,'subUnitId':_0x3b8801,'drawingId':_0x338df1});if(!_0x329490)return!0x1;let _0x4eabe3=_0x4aff08[_0x2d32ed(0x1a6)](G)['getShapeModel'](_0x432a8a,_0x3b8801,_0x338df1);if(!_0x4eabe3)return!0x1;let _0x116ddf=_0x4aff08[_0x2d32ed(0x1a6)](_0x27fb22),_0x180d75=_0x4aff08[_0x2d32ed(0x1a6)](_0x1e7ecc),_0x3490df=_0x4aff08[_0x2d32ed(0x1a6)](_0x1d917b),_0x3addfd={..._0x329490['transform']};_0x303d53!==void 0x0&&(_0x3addfd[_0x2d32ed(0x12c)]=!_0x3addfd[_0x2d32ed(0x12c)]),_0x4bd4b6!==void 0x0&&(_0x3addfd['flipY']=!_0x3addfd[_0x2d32ed(0x113)]);let _0x103998=_0x5b629c(_0x3addfd,_0x28355e),_0xbba810=_0x107177(_0x3addfd,_0x28355e),_0x505e68=_0x4eabe3[_0x2d32ed(0x173)](),_0x2bfae2=_0x4eabe3['getShapeData'](),_0x38b526={'unitId':_0x432a8a,'subUnitId':_0x3b8801,'drawingId':_0x338df1,'drawingType':_0x123f9a[_0x2d32ed(0x1a2)],'sheetTransform':_0x103998,'transform':_0x3addfd,'data':{'shapeType':_0x505e68,'shapeData':_0x2bfae2},'axisAlignSheetTransform':_0xbba810,'allowTransform':!0x0},{undo:_0x4cf7db,redo:_0x34ab4d,objects:_0x2d722e}=_0x320b3b[_0x2d32ed(0x13d)]([_0x38b526]),_0x4e15a0=_0x3490df[_0x2d32ed(0x18a)]({'id':_0x1c5703['id'],'params':{'unitId':_0x432a8a,'drawings':[_0x38b526]}}),_0x1a0ed3=[...(_0x2f79c4=_0x4e15a0[_0x2d32ed(0x183)])==null?[]:_0x2f79c4,{'id':_0x25204a['id'],'params':{'unitId':_0x432a8a,'subUnitId':_0x3b8801,'op':_0x34ab4d,'objects':_0x2d722e,'type':_0x597b08[_0x2d32ed(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x432a8a]},..._0x4e15a0['redos']],_0x44db1d=[...(_0x1f2c46=_0x4e15a0[_0x2d32ed(0x154)])==null?[]:_0x1f2c46,{'id':_0x25204a['id'],'params':{'unitId':_0x432a8a,'subUnitId':_0x3b8801,'op':_0x4cf7db,'objects':_0x2d722e,'type':_0x597b08[_0x2d32ed(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x432a8a]},..._0x4e15a0[_0x2d32ed(0x195)]];if(_0x711ab1(_0x505e68)){let _0x3c3ac1=_0x4eabe3['getShapeRelation']();if(_0x3c3ac1){let _0xb465e5={..._0x3c3ac1};_0xb465e5['from']=void 0x0,_0xb465e5['to']=void 0x0,_0x1a0ed3['push']({'id':Y['id'],'params':{'unitId':_0x432a8a,'subUnitId':_0x3b8801,'shapeId':_0x338df1,'shapeType':_0x505e68,'shapeData':{'relation':_0xb465e5}}}),_0x44db1d[_0x2d32ed(0x13e)]({'id':Y['id'],'params':{'unitId':_0x432a8a,'subUnitId':_0x3b8801,'shapeId':_0x338df1,'shapeType':_0x505e68,'shapeData':{'relation':_0x3c3ac1}}});}}return _0x3f0ae0(_0x1a0ed3,_0x116ddf)[_0x2d32ed(0x185)]?(_0x180d75['pushUndoRedo']({'unitID':_0x432a8a,'undoMutations':_0x44db1d,'redoMutations':_0x1a0ed3}),!0x0):!0x1;}},X={'type':_0x353930['COMMAND'],'id':_0x3a184f(0x16a),'handler':(_0x4e5dc5,_0x53c907)=>{const _0x1fe8c5=_0x3a184f;var _0x4ec0ac,_0x523cd8;let _0x39bc04=_0x2792d1(_0x4e5dc5['get'](_0x40f73c),_0x53c907);if(!_0x39bc04)return!0x1;let _0x4918a6=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x40d9b8),{unitId:_0x18a8d4,subUnitId:_0x29f4f3}=_0x39bc04,_0x2286c3=_0x4918a6[_0x1fe8c5(0x186)](_0x18a8d4,_0x29f4f3);if(!_0x2286c3)return!0x1;let _0x286a03=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x39f882),{shapeId:_0x509d34,rotate:_0x973a5}=_0x53c907,_0x102d3f=_0x286a03[_0x1fe8c5(0x12f)]({'unitId':_0x18a8d4,'subUnitId':_0x29f4f3,'drawingId':_0x509d34});if(!_0x102d3f)return!0x1;let _0x55bfc4=_0x4e5dc5['get'](G)['getShapeModel'](_0x18a8d4,_0x29f4f3,_0x509d34);if(!_0x55bfc4)return!0x1;let _0x10f880=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x27fb22),_0x4505e2=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x1e7ecc),_0x3cfa04=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x1d917b),_0x1d353a={..._0x102d3f[_0x1fe8c5(0x161)]};_0x973a5!==void 0x0&&(_0x1d353a[_0x1fe8c5(0x1a3)]=(_0x1d353a[_0x1fe8c5(0x1a3)]||0x0)+_0x973a5);let _0x627fff=_0x5b629c(_0x1d353a,_0x2286c3),_0x204d2e=_0x107177(_0x1d353a,_0x2286c3),_0x5a7350=_0x55bfc4[_0x1fe8c5(0x173)](),_0x188caf=_0x55bfc4['getShapeData'](),_0x5b9db2={'unitId':_0x18a8d4,'subUnitId':_0x29f4f3,'drawingId':_0x509d34,'drawingType':_0x123f9a[_0x1fe8c5(0x1a2)],'sheetTransform':_0x627fff,'transform':_0x1d353a,'data':{'shapeType':_0x5a7350,'shapeData':_0x188caf},'axisAlignSheetTransform':_0x204d2e,'allowTransform':!0x0},{undo:_0x2bb91c,redo:_0x521643,objects:_0x4c131d}=_0x286a03['getBatchUpdateOp']([_0x5b9db2]),_0x3baa7f=_0x3cfa04['onCommandExecute']({'id':_0x1c5703['id'],'params':{'unitId':_0x18a8d4,'drawings':[_0x5b9db2]}}),_0x47b9a4=[...(_0x4ec0ac=_0x3baa7f[_0x1fe8c5(0x183)])==null?[]:_0x4ec0ac,{'id':_0x25204a['id'],'params':{'unitId':_0x18a8d4,'subUnitId':_0x29f4f3,'op':_0x521643,'objects':_0x4c131d,'type':_0x597b08[_0x1fe8c5(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x18a8d4]},..._0x3baa7f[_0x1fe8c5(0x14f)]],_0x4dec91=[...(_0x523cd8=_0x3baa7f[_0x1fe8c5(0x154)])==null?[]:_0x523cd8,{'id':_0x25204a['id'],'params':{'unitId':_0x18a8d4,'subUnitId':_0x29f4f3,'op':_0x2bb91c,'objects':_0x4c131d,'type':_0x597b08[_0x1fe8c5(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x18a8d4]},..._0x3baa7f[_0x1fe8c5(0x195)]];return _0x3f0ae0(_0x47b9a4,_0x10f880)[_0x1fe8c5(0x185)]?(_0x4505e2[_0x1fe8c5(0x199)]({'unitID':_0x18a8d4,'undoMutations':_0x4dec91,'redoMutations':_0x47b9a4}),!0x0):!0x1;}},Z={'type':_0x353930[_0x3a184f(0x17c)],'id':_0x3a184f(0x139),'handler':(_0x168738,_0x490206)=>{const _0xb78bb6=_0x3a184f;var _0x73a9d5;let _0x5ea308=_0x2792d1(_0x168738[_0xb78bb6(0x1a6)](_0x40f73c),_0x490206);if(!_0x5ea308)return!0x1;let {unitId:_0x599693,subUnitId:_0x4da870}=_0x5ea308,{shapeId:_0x397957}=_0x490206,_0x58f49b=_0x168738[_0xb78bb6(0x1a6)](G)[_0xb78bb6(0x182)](_0x599693,_0x4da870,_0x397957);if(!_0x58f49b)return!0x1;let _0x44c977=_0x58f49b['getShapeTextData'](),_0x206301=(_0x73a9d5=_0x44c977==null?void 0x0:_0x44c977['isHorizontal'])==null?!0x0:_0x73a9d5,_0x4fd1b5=!_0x206301,_0x2cc954=_0x168738[_0xb78bb6(0x1a6)](_0x27fb22),_0x49a0da=_0x168738['get'](_0x1e7ecc),_0x5e4d18={'unitId':_0x599693,'subUnitId':_0x4da870,'shapeId':_0x397957,'shapeData':{'shapeText':{'isHorizontal':_0x4fd1b5}}},_0xa334a3={'unitId':_0x599693,'subUnitId':_0x4da870,'shapeId':_0x397957,'shapeData':{'shapeText':{'isHorizontal':_0x206301}}},_0x5a7886=[{'id':Y['id'],'params':_0x5e4d18}],_0x30f133=[{'id':Y['id'],'params':_0xa334a3}];return _0x3f0ae0(_0x5a7886,_0x2cc954)[_0xb78bb6(0x185)]?(_0x49a0da[_0xb78bb6(0x199)]({'unitID':_0x599693,'undoMutations':_0x30f133,'redoMutations':_0x5a7886}),!0x0):!0x1;}},ne={'type':_0x353930[_0x3a184f(0x17c)],'id':_0x3a184f(0x176),'handler':(_0x136d52,_0x4fa08c)=>{const _0x321f1d=_0x3a184f;var _0x304ded,_0x4d0f55,_0x29d787,_0xe0de00;let _0x5994e9=_0x2792d1(_0x136d52[_0x321f1d(0x1a6)](_0x40f73c),_0x4fa08c);if(!_0x5994e9)return!0x1;let _0x28378b=_0x136d52[_0x321f1d(0x1a6)](_0x40d9b8),{unitId:_0x5299fc,subUnitId:_0x180441}=_0x5994e9,_0x4b666d=_0x28378b[_0x321f1d(0x186)](_0x5299fc,_0x180441);if(!_0x4b666d)return!0x1;let _0x1c1932=_0x136d52[_0x321f1d(0x1a6)](_0x39f882),{connectorShapeId:_0x31f485,width:_0x38b798,height:_0x5491b3,left:_0x276efb,top:_0xb142da,flipX:_0x286f52,flipY:_0x339b57,rotation:_0x1575ae,oldAdjustValues:_0x447e89,newAdjustValues:_0x2d0646,oldLineType:_0xcb1f6b,newLineType:_0x4af916,oldRelation:_0x4b530d,newRelation:_0x36827e}=_0x4fa08c,_0x3d89cf=_0x1c1932['getDrawingByParam']({'unitId':_0x5299fc,'subUnitId':_0x180441,'drawingId':_0x31f485});if(!_0x3d89cf)return!0x1;let _0x41ec22=_0x136d52[_0x321f1d(0x1a6)](G)[_0x321f1d(0x182)](_0x5299fc,_0x180441,_0x31f485);if(!_0x41ec22)return!0x1;let _0x4878f4=_0x136d52[_0x321f1d(0x1a6)](_0x27fb22),_0x117973=_0x136d52[_0x321f1d(0x1a6)](_0x1e7ecc),_0x296541=_0x136d52[_0x321f1d(0x1a6)](_0x1d917b),_0x41ec5b={..._0x3d89cf[_0x321f1d(0x161)],'width':_0x38b798,'height':_0x5491b3,'left':_0x276efb,'top':_0xb142da,'flipX':_0x286f52,'flipY':_0x339b57,'angle':(_0x304ded=_0x1575ae==null?(_0x4d0f55=_0x3d89cf[_0x321f1d(0x161)])==null?void 0x0:_0x4d0f55[_0x321f1d(0x1a3)]:_0x1575ae)==null?0x0:_0x304ded},_0x15e45f=_0x5b629c(_0x41ec5b,_0x4b666d),_0x55435e=_0x107177(_0x41ec5b,_0x4b666d),_0x5c91ee=_0x41ec22['getShapeType'](),_0x581454=_0x41ec22['getShapeData'](),_0x40258d={'unitId':_0x5299fc,'subUnitId':_0x180441,'drawingId':_0x31f485,'drawingType':_0x123f9a[_0x321f1d(0x1a2)],'sheetTransform':_0x15e45f,'transform':_0x41ec5b,'data':{'shapeType':_0x4af916||_0xcb1f6b||_0x5c91ee,'shapeData':{..._0x581454,'adjustValues':_0x2d0646||_0x447e89||(_0x581454==null?void 0x0:_0x581454[_0x321f1d(0x193)]),'relation':_0x36827e||_0x4b530d||(_0x581454==null?void 0x0:_0x581454[_0x321f1d(0x18d)])}},'axisAlignSheetTransform':_0x55435e,'allowTransform':!0x0},{undo:_0x185018,redo:_0x530d61,objects:_0x3404bb}=_0x1c1932['getBatchUpdateOp']([_0x40258d]),_0x51b02d=_0x296541[_0x321f1d(0x18a)]({'id':_0x1c5703['id'],'params':{'unitId':_0x5299fc,'drawings':[_0x40258d]}}),_0x5a4d12=[...(_0x29d787=_0x51b02d[_0x321f1d(0x183)])==null?[]:_0x29d787,{'id':_0x25204a['id'],'params':{'unitId':_0x5299fc,'subUnitId':_0x180441,'op':_0x530d61,'objects':_0x3404bb,'type':_0x597b08['UPDATE']}},{'id':_0x2c533f['id'],'params':[_0x5299fc]},..._0x51b02d['redos'],{'id':Y['id'],'params':{'unitId':_0x5299fc,'subUnitId':_0x180441,'shapeId':_0x31f485,'shapeType':_0x4af916,'shapeData':{'adjustValues':_0x2d0646,'relation':_0x36827e}}}],_0x1352ca=[...(_0xe0de00=_0x51b02d[_0x321f1d(0x154)])==null?[]:_0xe0de00,{'id':_0x25204a['id'],'params':{'unitId':_0x5299fc,'subUnitId':_0x180441,'op':_0x185018,'objects':_0x3404bb,'type':_0x597b08[_0x321f1d(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x5299fc]},..._0x51b02d[_0x321f1d(0x195)],{'id':Y['id'],'params':{'unitId':_0x5299fc,'subUnitId':_0x180441,'shapeId':_0x31f485,'shapeType':_0x5c91ee,'shapeData':{..._0x581454,'adjustValues':_0x447e89||(_0x581454==null?void 0x0:_0x581454['adjustValues']),'relation':_0x4b530d||(_0x581454==null?void 0x0:_0x581454['relation'])}}}];return _0x3f0ae0(_0x5a4d12,_0x4878f4)[_0x321f1d(0x185)]?(_0x117973['pushUndoRedo']({'unitID':_0x5299fc,'undoMutations':_0x1352ca,'redoMutations':_0x5a4d12}),!0x0):!0x1;}},re={'type':_0x353930[_0x3a184f(0x17c)],'id':_0x3a184f(0x16c),'handler':(_0x1f480f,_0x5cf9f3)=>{const _0x5b0bfb=_0x3a184f;var _0x360baf,_0x401fc7;let _0x3f8285=_0x2792d1(_0x1f480f[_0x5b0bfb(0x1a6)](_0x40f73c),_0x5cf9f3);if(!_0x3f8285)return!0x1;let _0x41aab2=_0x1f480f[_0x5b0bfb(0x1a6)](_0x40d9b8),{unitId:_0x4a9a9d,subUnitId:_0x1e6e8f}=_0x3f8285,_0x22b177=_0x41aab2[_0x5b0bfb(0x186)](_0x4a9a9d,_0x1e6e8f);if(!_0x22b177)return!0x1;let _0x46378e=_0x1f480f[_0x5b0bfb(0x1a6)](_0x39f882),{shapeId:_0x588867,width:_0x170a38,height:_0x58c15e,left:_0x51b87c,top:_0xd2d5ac,flipX:_0x53a31d,flipY:_0x5b438f,angle:_0x1ad7c7,oldAdjustValues:_0x2cb737,newAdjustValues:_0xc35bee,oldLineType:_0x27ce98,newLineType:_0x40aa5d}=_0x5cf9f3,_0x12ea4d=_0x46378e[_0x5b0bfb(0x12f)]({'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'drawingId':_0x588867});if(!_0x12ea4d)return!0x1;let _0x419033=_0x1f480f[_0x5b0bfb(0x1a6)](G)['getShapeModel'](_0x4a9a9d,_0x1e6e8f,_0x588867);if(!_0x419033)return!0x1;let _0xb3c4ce=_0x1f480f[_0x5b0bfb(0x1a6)](_0x27fb22),_0x458b4a=_0x1f480f['get'](_0x1e7ecc),_0x4eb71d=_0x1f480f['get'](_0x1d917b),_0xf1742e={..._0x12ea4d[_0x5b0bfb(0x161)],'width':_0x170a38,'height':_0x58c15e,'left':_0x51b87c,'top':_0xd2d5ac,'flipX':_0x53a31d,'flipY':_0x5b438f,'angle':_0x1ad7c7},_0x460217=_0x5b629c(_0xf1742e,_0x22b177),_0x1c74b7=_0x107177(_0xf1742e,_0x22b177),_0x12fff3=_0x419033[_0x5b0bfb(0x173)](),_0x663597=_0x419033[_0x5b0bfb(0x1ab)](),_0x3c5666={'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'drawingId':_0x588867,'drawingType':_0x123f9a[_0x5b0bfb(0x1a2)],'sheetTransform':_0x460217,'transform':_0xf1742e,'data':{'shapeType':_0x40aa5d||_0x27ce98||_0x12fff3,'shapeData':{..._0x663597,'adjustValues':_0xc35bee||_0x2cb737||(_0x663597==null?void 0x0:_0x663597[_0x5b0bfb(0x193)])}},'axisAlignSheetTransform':_0x1c74b7,'allowTransform':!0x0},{undo:_0x4b3064,redo:_0x3dbfd2,objects:_0x5dc28a}=_0x46378e[_0x5b0bfb(0x13d)]([_0x3c5666]),_0x34bf57=_0x4eb71d['onCommandExecute']({'id':_0x1c5703['id'],'params':{'unitId':_0x4a9a9d,'drawings':[_0x3c5666]}}),_0x31f6e7=[...(_0x360baf=_0x34bf57['preRedos'])==null?[]:_0x360baf,{'id':_0x25204a['id'],'params':{'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'op':_0x3dbfd2,'objects':_0x5dc28a,'type':_0x597b08['UPDATE']}},{'id':_0x2c533f['id'],'params':[_0x4a9a9d]},..._0x34bf57[_0x5b0bfb(0x14f)],{'id':Y['id'],'params':{'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'shapeId':_0x588867,'shapeType':_0x40aa5d,'shapeData':{'adjustValues':_0xc35bee}}}],_0x45fb49=[...(_0x401fc7=_0x34bf57[_0x5b0bfb(0x154)])==null?[]:_0x401fc7,{'id':_0x25204a['id'],'params':{'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'op':_0x4b3064,'objects':_0x5dc28a,'type':_0x597b08[_0x5b0bfb(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x4a9a9d]},..._0x34bf57['undos'],{'id':Y['id'],'params':{'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'shapeId':_0x588867,'shapeType':_0x12fff3,'shapeData':{..._0x663597,'adjustValues':_0x2cb737||(_0x663597==null?void 0x0:_0x663597[_0x5b0bfb(0x193)])}}}];return _0x3f0ae0(_0x31f6e7,_0xb3c4ce)[_0x5b0bfb(0x185)]?(_0x458b4a['pushUndoRedo']({'unitID':_0x4a9a9d,'undoMutations':_0x45fb49,'redoMutations':_0x31f6e7}),!0x0):!0x1;}},Q={'id':_0x3a184f(0x11e),'type':_0x353930[_0x3a184f(0x170)],'handler':(_0x1133a4,_0x2c5ac7)=>{const _0x27ae5a=_0x3a184f;let {unitId:_0x33308b,subUnitId:_0x8249b5,shapeType:_0x4978e8,shapeId:_0x215edd,shapeData:_0x1b7f10}=_0x2c5ac7,_0x4b744b=_0x1133a4[_0x27ae5a(0x1a6)](G)[_0x27ae5a(0x182)](_0x33308b,_0x8249b5,_0x215edd);return _0x4b744b&&(_0x4b744b[_0x27ae5a(0x181)](_0x4978e8),_0x1b7f10&&(_0x4b744b==null||_0x4b744b[_0x27ae5a(0x14d)](_0x1b7f10))),!0x0;}},ie={'id':_0x3a184f(0x15b),'type':_0x353930[_0x3a184f(0x17c)],'handler':(_0x495809,_0x934799)=>{const _0x3f63f9=_0x3a184f;if(!_0x934799)return!0x1;let _0x34b3a5=_0x495809['get'](_0x27fb22),_0x294644=_0x495809[_0x3f63f9(0x1a6)](G),_0x2d4f5b=_0x495809[_0x3f63f9(0x1a6)](_0x1e7ecc),_0x17df6c=[],_0x4c5199=[],{unitId:_0x3c7281,subUnitId:_0x1db864,shapeId:_0x53e010,shapeType:_0xd0e356,shapeData:_0x5ec1fd}=_0x934799,_0x8672c2=_0x294644[_0x3f63f9(0x182)](_0x3c7281,_0x1db864,_0x53e010);if(_0x8672c2){let _0x400ee5=_0x8672c2['getShapeType'](),_0xfd1e60=Object[_0x3f63f9(0x138)]({},_0x8672c2[_0x3f63f9(0x1ab)]()),_0x4374b0={'unitId':_0x3c7281,'subUnitId':_0x1db864,'shapeId':_0x53e010,'shapeType':_0xd0e356,'shapeData':_0x5ec1fd},_0x47e62c={'unitId':_0x3c7281,'subUnitId':_0x1db864,'shapeId':_0x53e010,'shapeType':_0x400ee5,'shapeData':_0xfd1e60};return _0x17df6c[_0x3f63f9(0x13e)]({'id':Q['id'],'params':_0x4374b0}),_0x4c5199[_0x3f63f9(0x13e)]({'id':Q['id'],'params':_0x47e62c}),_0x17df6c[_0x3f63f9(0x116)](_0x1c29bd=>_0x34b3a5['syncExecuteCommand'](_0x1c29bd['id'],_0x1c29bd[_0x3f63f9(0x145)]))&&_0x2d4f5b['pushUndoRedo']({'unitID':_0x3c7281,'redoMutations':[..._0x17df6c],'undoMutations':[..._0x4c5199]}),!0x0;}return!0x1;}};var ae='@univerjs-pro/sheets-shape',oe=_0x3a184f(0x160);const se=_0x3a184f(0x11f);Symbol(se);const ce={};let le=class extends _0x24c5b2{constructor(_0x1dc1a0,_0x7a20ea,_0x486921,_0x2c6534,_0x10e2ee){const _0x51d6bc=_0x3a184f;super(),this[_0x51d6bc(0x180)]=_0x1dc1a0,this[_0x51d6bc(0x16f)]=_0x7a20ea,this[_0x51d6bc(0x1a7)]=_0x486921,this[_0x51d6bc(0x162)]=_0x2c6534,this[_0x51d6bc(0x124)]=_0x10e2ee,this[_0x51d6bc(0x17b)](),this[_0x51d6bc(0x151)]();}[_0x3a184f(0x17b)](){const _0x16ad58=_0x3a184f;[J,ee,te,X,Z,ne,re,K,q,Q,Y][_0x16ad58(0x12e)](_0x41fbf4=>this[_0x16ad58(0x191)](this[_0x16ad58(0x180)][_0x16ad58(0x129)](_0x41fbf4)));}['_initCommandInterceptor'](){const _0x30d632=_0x3a184f;this[_0x30d632(0x191)](this[_0x30d632(0x16f)][_0x30d632(0x159)]({'getMutations':_0x1ea33d=>{const _0x204f58=_0x30d632;if(_0x1ea33d['id']===_0x3e5d52['id']){let {drawings:_0x270280}=_0x1ea33d[_0x204f58(0x145)],_0x1820cc=_0x270280[_0x204f58(0x125)](_0x48acd5=>_0x48acd5['drawingType']===_0x123f9a['DRAWING_SHAPE']);if(_0x1820cc[_0x204f58(0x1a5)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0xd28b9b=[],_0x384e69=[];return _0x1820cc['forEach'](_0x2c08f6=>{const _0x11a355=_0x204f58;let {unitId:_0x26dc1a,subUnitId:_0x111a3d,drawingId:_0x252e27}=_0x2c08f6,_0x237d0b=this['_sheetsShapeService']['getShapeModel'](_0x26dc1a,_0x111a3d,_0x252e27);if(!_0x237d0b)throw TypeError(_0x11a355(0x16d)+_0x237d0b);_0xd28b9b[_0x11a355(0x13e)]({'id':q['id'],'params':{'unitId':_0x26dc1a,'subUnitId':_0x111a3d,'shapeId':_0x252e27}}),_0x384e69['push']({'id':K['id'],'params':{'unitId':_0x26dc1a,'subUnitId':_0x111a3d,'shapeId':_0x252e27,'shapeType':_0x237d0b[_0x11a355(0x173)](),'shapeData':_0x237d0b[_0x11a355(0x1ab)]()}});let _0x228fd3=this['_sheetsShapeService'][_0x11a355(0x141)](_0x26dc1a,_0x111a3d,_0x252e27);if(_0x228fd3)for(let _0x2327e0 of _0x228fd3){let _0x9f6ba3=_0x2327e0[_0x11a355(0x127)],_0x285e7b=_0x2327e0[_0x11a355(0x174)],_0x1cad23=_0x285e7b?{'from':void 0x0}:{'to':void 0x0},_0x14e943=_0x285e7b?{'from':{'shapeId':_0x2327e0[_0x11a355(0x19a)],'cxnIndex':_0x2327e0[_0x11a355(0x13f)]}}:{'to':{'shapeId':_0x2327e0[_0x11a355(0x19a)],'cxnIndex':_0x2327e0[_0x11a355(0x13f)]}};_0xd28b9b[_0x11a355(0x13e)]({'id':Y['id'],'params':{'unitId':_0x26dc1a,'subUnitId':_0x111a3d,'shapeId':_0x9f6ba3,'shapeData':{'relation':_0x1cad23}}}),_0x384e69[_0x11a355(0x13e)]({'id':Y['id'],'params':{'unitId':_0x26dc1a,'subUnitId':_0x111a3d,'shapeId':_0x9f6ba3,'shapeData':{'relation':_0x14e943}}});}}),{'preRedos':_0xd28b9b,'redos':[],'preUndos':[],'undos':_0x384e69};}if(_0x1ea33d['id']===_0x1c5703['id']){let {drawings:_0x482f82}=_0x1ea33d[_0x204f58(0x145)],_0x48e43b=_0x482f82[_0x204f58(0x125)](_0x2ec4fb=>_0x2ec4fb[_0x204f58(0x19f)]===_0x123f9a['DRAWING_SHAPE']);if(_0x48e43b[_0x204f58(0x1a5)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1b1c60=[],_0x4c4b12=[];for(let _0x49e0c0 of _0x48e43b){let {unitId:_0x15a74a,subUnitId:_0x46640a,drawingId:_0x736b7e,transform:_0x41a753}=_0x49e0c0;if(!_0x15a74a||!_0x46640a||!_0x736b7e||!_0x41a753)continue;let _0x3a2fdc=this[_0x204f58(0x162)][_0x204f58(0x182)](_0x15a74a,_0x46640a,_0x736b7e);if(!_0x3a2fdc)throw TypeError(_0x204f58(0x16d)+_0x3a2fdc);if(_0x711ab1(_0x3a2fdc['getShapeType']())){let _0x2a9def=this[_0x204f58(0x162)][_0x204f58(0x18f)](_0x15a74a,_0x46640a,_0x736b7e);_0x2a9def&&(_0x1b1c60[_0x204f58(0x13e)]({'id':Y['id'],'params':{'unitId':_0x15a74a,'subUnitId':_0x46640a,'shapeId':_0x736b7e,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4c4b12[_0x204f58(0x13e)]({'id':Y['id'],'params':{'unitId':_0x15a74a,'subUnitId':_0x46640a,'shapeId':_0x736b7e,'shapeData':{'relation':_0x2a9def}}}));}else{let _0x5bbd2b=this['_sheetsShapeService'][_0x204f58(0x141)](_0x15a74a,_0x46640a,_0x736b7e);if(_0x5bbd2b&&_0x5bbd2b['length']>0x0)for(let _0x488771 of _0x5bbd2b){let _0x42d73e=_0x488771['lineShapeId'],_0x1243ca=_0x488771[_0x204f58(0x174)],_0x48a3f1=this[_0x204f58(0x162)][_0x204f58(0x182)](_0x15a74a,_0x46640a,_0x42d73e);if(!_0x48a3f1)continue;let _0x3f1583=_0x48a3f1[_0x204f58(0x198)](),_0x40ff0b=_0x48a3f1[_0x204f58(0x118)]();_0x3f1583&&_0x40ff0b?this['_addLineRerouteUpdates'](_0x15a74a,_0x46640a,_0x42d73e,_0x48a3f1,_0x3f1583,_0x40ff0b,_0x1b1c60,_0x4c4b12,_0x736b7e,_0x41a753):this[_0x204f58(0x167)](_0x15a74a,_0x46640a,_0x42d73e,_0x48a3f1,_0x1243ca?_0x3f1583:_0x40ff0b,_0x1243ca,_0x1b1c60,_0x4c4b12,_0x736b7e,_0x41a753);}}}return{'preRedos':[],'redos':_0x1b1c60,'preUndos':_0x4c4b12,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3a184f(0x192)](_0x6cd8d9,_0x5d0ce9,_0x46479e,_0x22c157,_0x4a3c72){const _0x3ca78a=_0x3a184f;if(!_0x5d0ce9||!_0x46479e)return null;let {shapeId:_0x2f751c,cxnIndex:_0x1acf9d}=_0x6cd8d9,_0x6e799=this[_0x3ca78a(0x162)][_0x3ca78a(0x182)](_0x5d0ce9,_0x46479e,_0x2f751c);if(!_0x6e799)return null;let _0x33a816=this[_0x3ca78a(0x124)][_0x3ca78a(0x12f)]({'unitId':_0x5d0ce9,'subUnitId':_0x46479e,'drawingId':_0x2f751c});if(!(_0x33a816!=null&&_0x33a816[_0x3ca78a(0x161)]))return null;let {left:_0x2b6856=0x0,top:_0x5a55fc=0x0,width:_0x2633a8=0x0,height:_0x1bae60=0x0,flipX:_0x4f362e=!0x1,flipY:_0x2fc6f3=!0x1,angle:_0x489913}=_0x33a816[_0x3ca78a(0x161)];if(_0x4a3c72&&_0x22c157===_0x2f751c){var _0x1a087e,_0x9e285b,_0x3bd779,_0x598fbd,_0x17df4a,_0x46f2bb,_0x44e124;_0x2b6856=(_0x1a087e=_0x4a3c72[_0x3ca78a(0x131)])==null?_0x2b6856:_0x1a087e,_0x5a55fc=(_0x9e285b=_0x4a3c72[_0x3ca78a(0x188)])==null?_0x5a55fc:_0x9e285b,_0x2633a8=(_0x3bd779=_0x4a3c72[_0x3ca78a(0x179)])==null?_0x2633a8:_0x3bd779,_0x1bae60=(_0x598fbd=_0x4a3c72[_0x3ca78a(0x187)])==null?_0x1bae60:_0x598fbd,_0x4f362e=(_0x17df4a=_0x4a3c72[_0x3ca78a(0x12c)])==null?_0x4f362e:_0x17df4a,_0x2fc6f3=(_0x46f2bb=_0x4a3c72[_0x3ca78a(0x113)])==null?_0x2fc6f3:_0x46f2bb,_0x489913=(_0x44e124=_0x4a3c72[_0x3ca78a(0x1a3)])==null?_0x489913:_0x44e124;}_0x6e799[_0x3ca78a(0x12d)]({'width':_0x2633a8,'height':_0x1bae60});let _0xf3797a=_0x6e799[_0x3ca78a(0x128)]()[_0x3ca78a(0x171)](_0x4ede54=>_0x4ede54[_0x3ca78a(0x115)]===_0x1acf9d);if(!_0xf3797a)return null;let _0x5700e9=_0x4f362e?_0x2633a8-_0xf3797a['x']:_0xf3797a['x'],_0xacd598=_0x2fc6f3?_0x1bae60-_0xf3797a['y']:_0xf3797a['y'];if(_0x489913!==0x0&&_0x489913!=null){let _0x571137=_0x489913*Math['PI']/0xb4,_0x43a5a4=Math[_0x3ca78a(0x14e)](_0x571137),_0x2c4de0=Math['sin'](_0x571137),_0x2e07d5=_0x2633a8/0x2,_0x3a6c2b=_0x1bae60/0x2,_0x27f36a=_0x5700e9-_0x2e07d5,_0x437a3c=_0xacd598-_0x3a6c2b;_0x5700e9=_0x2e07d5+_0x27f36a*_0x43a5a4-_0x437a3c*_0x2c4de0,_0xacd598=_0x3a6c2b+_0x27f36a*_0x2c4de0+_0x437a3c*_0x43a5a4;}_0x5700e9+=_0x2b6856,_0xacd598+=_0x5a55fc;let _0x96f53e=_0xf3797a[_0x3ca78a(0x168)]/0xea60;_0x4f362e&&(_0x96f53e=0xb4-_0x96f53e),_0x2fc6f3&&(_0x96f53e=-_0x96f53e),_0x96f53e+=_0x489913||0x0,_0x96f53e=(_0x96f53e%0x168+0x168)%0x168;let _0x8a48d=_0x5e7c0a({'left':_0x2b6856,'top':_0x5a55fc,'width':_0x2633a8,'height':_0x1bae60},_0x489913||0x0);return{'point':{'x':_0x5700e9,'y':_0xacd598},'angle':_0x96f53e,'bounds':_0x8a48d};}[_0x3a184f(0x11b)](_0x96f936,_0x226e52,_0xa7f9bd,_0x551b16,_0x51e9ba,_0x286338,_0x46c5f3,_0x1020a0,_0x26050b,_0x554563){const _0x938ed3=_0x3a184f;let _0x97f887=this['_sheetSkeletonService'][_0x938ed3(0x186)](_0x96f936,_0x226e52);if(!_0x97f887)return;let _0x1361c2=_0x551b16['getShapeRelation'](),_0xb64df0=_0x551b16[_0x938ed3(0x17f)](),_0x483efb={},_0x1c742e={};_0xb64df0[_0x938ed3(0x12e)](_0x3e21da=>{let _0x1a885c=_0x551b16['getAdjustValueByName'](_0x3e21da);_0x1c742e[_0x3e21da]=_0x1a885c==null?0x0:_0x1a885c;});let _0x2445f5=this[_0x938ed3(0x192)](_0x51e9ba,_0x96f936,_0x226e52,_0x26050b,_0x554563),_0x25507c=this['_getConnectPointInfo'](_0x286338,_0x96f936,_0x226e52,_0x26050b,_0x554563);if(_0x2445f5&&_0x25507c){let _0x1cece7=_0x551b16[_0x938ed3(0x173)](),_0x48c3dc=_0x3ff60f(_0x2445f5,_0x25507c,_0x1cece7),_0x50adfa=_0x1cece7;if(_0x48c3dc){let _0x58953a=_0x2856f6(_0x48c3dc,_0x551b16['getShapeType']()),_0x3a465f=this[_0x938ed3(0x124)][_0x938ed3(0x196)](_0x96f936,_0x226e52);if(_0x3a465f&&_0x3a465f[_0xa7f9bd]){let _0x15a3b3=_0x3a465f[_0xa7f9bd];_0x50adfa=_0x58953a['lineType'];for(let [_0x2f6dc2,_0x5b646d]of Object[_0x938ed3(0x11a)](_0x58953a[_0x938ed3(0x193)]))_0x483efb[_0x2f6dc2]=_0x5b646d;let _0x16924d={..._0x15a3b3[_0x938ed3(0x161)],'width':_0x58953a[_0x938ed3(0x1a9)]['width'],'height':_0x58953a[_0x938ed3(0x1a9)][_0x938ed3(0x187)],'left':_0x58953a[_0x938ed3(0x1a9)][_0x938ed3(0x131)],'top':_0x58953a[_0x938ed3(0x1a9)][_0x938ed3(0x188)],'flipX':_0x58953a['worldRect'][_0x938ed3(0x12c)],'flipY':_0x58953a[_0x938ed3(0x1a9)][_0x938ed3(0x113)],'angle':_0x58953a['rotation']},_0x50d120=_0x5b629c(_0x16924d,_0x97f887),_0x19d0a7=_0x107177(_0x16924d,_0x97f887),_0x4c8ae0={'unitId':_0x96f936,'subUnitId':_0x226e52,'drawingType':_0x123f9a['DRAWING_SHAPE'],'drawingId':_0xa7f9bd,'transform':_0x16924d,'sheetTransform':_0x50d120,'axisAlignSheetTransform':_0x19d0a7},{unitId:_0x11aa67,subUnitId:_0x5b638d,undo:_0x5ab79b,redo:_0x10440e,objects:_0x3df361}=this[_0x938ed3(0x124)][_0x938ed3(0x13d)]([_0x4c8ae0]);_0x46c5f3['push']({'id':_0x25204a['id'],'params':{'unitId':_0x11aa67,'subUnitId':_0x5b638d,'op':_0x10440e,'objects':_0x3df361,'type':_0x597b08[_0x938ed3(0x15c)]}}),_0x1020a0[_0x938ed3(0x13e)]({'id':_0x25204a['id'],'params':{'unitId':_0x11aa67,'subUnitId':_0x5b638d,'op':_0x5ab79b,'objects':_0x3df361,'type':_0x597b08['UPDATE']}});}_0x551b16[_0x938ed3(0x134)]();}_0x46c5f3[_0x938ed3(0x13e)]({'id':Y['id'],'params':{'unitId':_0x96f936,'subUnitId':_0x226e52,'shapeId':_0xa7f9bd,'shapeType':_0x50adfa,'shapeData':{'adjustValues':_0x483efb,'relation':_0x1361c2}}}),_0x1020a0[_0x938ed3(0x13e)]({'id':Y['id'],'params':{'unitId':_0x96f936,'subUnitId':_0x226e52,'shapeId':_0xa7f9bd,'shapeType':_0x1cece7,'shapeData':{'adjustValues':_0x1c742e,'relation':_0x1361c2}}});}}[_0x3a184f(0x167)](_0x51f77e,_0x5abb7d,_0x2ccbd7,_0x25d05a,_0x22e6f7,_0x48a4a1,_0x219ea7,_0xc31eb9,_0x471290,_0x4fd8b2){const _0x4edb1a=_0x3a184f;var _0xa5e4c3;if(!_0x22e6f7)return;let _0x5de468=this['_sheetSkeletonService'][_0x4edb1a(0x186)](_0x51f77e,_0x5abb7d);if(!_0x5de468)return;let _0x3cb33d=(_0xa5e4c3=this[_0x4edb1a(0x124)]['getDrawingByParam']({'unitId':_0x51f77e,'subUnitId':_0x5abb7d,'drawingId':_0x471290}))==null?void 0x0:_0xa5e4c3['transform'];if(!_0x3cb33d)return;let _0x3f1dd9=_0x3cb33d[_0x4edb1a(0x131)]!==_0x4fd8b2['left']||_0x3cb33d[_0x4edb1a(0x188)]!==_0x4fd8b2[_0x4edb1a(0x188)],_0x11d64b=_0x3cb33d[_0x4edb1a(0x179)]!==_0x4fd8b2['width']||_0x3cb33d['height']!==_0x4fd8b2['height'],_0x5488eb=_0x3cb33d['flipX']!==_0x4fd8b2[_0x4edb1a(0x12c)]||_0x3cb33d[_0x4edb1a(0x113)]!==_0x4fd8b2[_0x4edb1a(0x113)],_0x7f1563=_0x3cb33d[_0x4edb1a(0x1a3)]!==_0x4fd8b2[_0x4edb1a(0x1a3)];if(_0x3f1dd9&&!_0x11d64b&&!_0x5488eb&&!_0x7f1563){var _0x5e0a26,_0x1739a5,_0x513f5e,_0x3ee93d;let _0x4fcd97=((_0x5e0a26=_0x4fd8b2['left'])==null?0x0:_0x5e0a26)-((_0x1739a5=_0x3cb33d[_0x4edb1a(0x131)])==null?0x0:_0x1739a5),_0x575b9e=((_0x513f5e=_0x4fd8b2[_0x4edb1a(0x188)])==null?0x0:_0x513f5e)-((_0x3ee93d=_0x3cb33d[_0x4edb1a(0x188)])==null?0x0:_0x3ee93d),_0xc2a84=this[_0x4edb1a(0x124)][_0x4edb1a(0x196)](_0x51f77e,_0x5abb7d);if(_0xc2a84&&_0xc2a84[_0x2ccbd7]){var _0x5da9d4,_0x10785b,_0x135c38,_0x3f0b5c;let _0x13ad5d=_0xc2a84[_0x2ccbd7],_0x5c2a23={..._0x13ad5d['transform'],'left':((_0x5da9d4=(_0x10785b=_0x13ad5d[_0x4edb1a(0x161)])==null?void 0x0:_0x10785b[_0x4edb1a(0x131)])==null?0x0:_0x5da9d4)+_0x4fcd97,'top':((_0x135c38=(_0x3f0b5c=_0x13ad5d[_0x4edb1a(0x161)])==null?void 0x0:_0x3f0b5c['top'])==null?0x0:_0x135c38)+_0x575b9e},_0x482877=_0x5b629c(_0x5c2a23,_0x5de468),_0x3fddc3=_0x107177(_0x5c2a23,_0x5de468),_0x17d995={'unitId':_0x51f77e,'subUnitId':_0x5abb7d,'drawingType':_0x123f9a['DRAWING_SHAPE'],'drawingId':_0x2ccbd7,'transform':_0x5c2a23,'sheetTransform':_0x482877,'axisAlignSheetTransform':_0x3fddc3},{unitId:_0x171aca,subUnitId:_0x48a2aa,undo:_0x4ad4b8,redo:_0x22e497,objects:_0x26282c}=this['_drawingManagerService']['getBatchUpdateOp']([_0x17d995]);_0x219ea7[_0x4edb1a(0x13e)]({'id':_0x25204a['id'],'params':{'unitId':_0x171aca,'subUnitId':_0x48a2aa,'op':_0x22e497,'objects':_0x26282c,'type':_0x597b08[_0x4edb1a(0x15c)]}}),_0xc31eb9['push']({'id':_0x25204a['id'],'params':{'unitId':_0x171aca,'subUnitId':_0x48a2aa,'op':_0x4ad4b8,'objects':_0x26282c,'type':_0x597b08[_0x4edb1a(0x15c)]}});}}else{let _0x18da3c=_0x25d05a[_0x4edb1a(0x198)](),_0x4bc225=_0x25d05a[_0x4edb1a(0x118)]();this[_0x4edb1a(0x11b)](_0x51f77e,_0x5abb7d,_0x2ccbd7,_0x25d05a,_0x18da3c,_0x4bc225,_0x219ea7,_0xc31eb9,_0x471290,_0x4fd8b2);}}};le=W([U(0x0,_0x27fb22),U(0x1,_0x14913b(_0x1d917b)),U(0x2,_0x14913b(_0x40d9b8)),U(0x3,_0x14913b(G)),U(0x4,_0x14913b(_0x2841a3))],le);let $=class extends _0x1916d8{constructor(_0x2c54e8=ce,_0x3e8e51,_0x3564a4,_0x301fbd){const _0x2dbcaf=_0x3a184f;super(),this[_0x2dbcaf(0x16b)]=_0x2c54e8,this['_injector']=_0x3e8e51,this[_0x2dbcaf(0x180)]=_0x3564a4,this[_0x2dbcaf(0x163)]=_0x301fbd;let {..._0x2e07cc}=_0x2fb6e3({},ce,this[_0x2dbcaf(0x16b)]);this[_0x2dbcaf(0x163)]['setConfig'](se,_0x2e07cc);}[_0x3a184f(0x19e)](){const _0x1683db=_0x3a184f;let _0x4d71cc=this['_injector'];[[H],[G],[le]][_0x1683db(0x12e)](_0x19ab22=>_0x4d71cc['add'](_0x19ab22)),_0x47b815(_0x4d71cc,[[G],[le]]);}};V($,'type',_0x5e7a6a['UNIVER_SHEET']),V($,_0x3a184f(0x169),_0x3a184f(0x1aa)),V($,'packageName',ae),V($,_0x3a184f(0x119),oe),$=W([_0x8500a4(_0x3c411b),U(0x1,_0x14913b(_0x378ab6)),U(0x2,_0x27fb22),U(0x3,_0x59fdba)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
1
+ const _0x3064c3=_0x16c8;(function(_0x238fd7,_0x2d7608){const _0x239db0=_0x16c8,_0x2de2a9=_0x238fd7();while(!![]){try{const _0x8ce7a8=-parseInt(_0x239db0(0x15f))/0x1+parseInt(_0x239db0(0x16c))/0x2*(parseInt(_0x239db0(0x11f))/0x3)+-parseInt(_0x239db0(0x148))/0x4*(-parseInt(_0x239db0(0x166))/0x5)+-parseInt(_0x239db0(0x188))/0x6*(-parseInt(_0x239db0(0x184))/0x7)+-parseInt(_0x239db0(0x13e))/0x8+parseInt(_0x239db0(0x136))/0x9+parseInt(_0x239db0(0x121))/0xa;if(_0x8ce7a8===_0x2d7608)break;else _0x2de2a9['push'](_0x2de2a9['shift']());}catch(_0x381317){_0x2de2a9['push'](_0x2de2a9['shift']());}}}(_0x2ec8,0xbb2c2));import{ShapeModel as _0x527c79,computeConnectorRouteLayout as _0x5e4898,getBasicShapeRotateBound as _0x33aac3,isConnectorShape as _0x547139,routeConnectorLineShape as _0x340a1c}from'@univerjs-pro/engine-shape';import{CommandType as _0x37f9be,DependentOn as _0xf41773,Disposable as _0x2aaa5f,DrawingTypeEnum as _0x58419a,ICommandService as _0x54956e,IConfigService as _0x315041,IResourceManagerService as _0x4aeec2,IUndoRedoService as _0x1ee9eb,IUniverInstanceService as _0x37b176,Inject as _0x30ed8c,Injector as _0x14135b,Plugin as _0x35a19d,UniverInstanceType as _0x19509d,generateRandomId as _0xd3057d,merge as _0x4d5faa,sequenceExecute as _0x454d50,touchDependencies as _0x386802}from'@univerjs/core';import{SheetInterceptorService as _0x1bf91c,SheetSkeletonService as _0x5f556d,getSheetCommandTarget as _0x4143f6}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x8d2dc3,DrawingApplyType as _0x59c59f,ISheetDrawingService as _0x27fa21,InsertSheetDrawingCommand as _0x3232ed,RemoveSheetDrawingCommand as _0x27f815,SetDrawingApplyMutation as _0x494fdb,SetSheetDrawingCommand as _0x100aa3,transformToAxisAlignPosition as _0x254c3a,transformToDrawingPosition as _0x3c93f3}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x10c7c2}from'@univerjs-pro/license';import{IDrawingManagerService as _0x1fa7de}from'@univerjs/drawing';const I=0xc8,L=0xc8;function R(_0xf36294){'@babel/helpers - typeof';const _0x5473f2=_0x16c8;return R=typeof Symbol==_0x5473f2(0x133)&&typeof Symbol[_0x5473f2(0x12e)]=='symbol'?function(_0x175b47){return typeof _0x175b47;}:function(_0x10b043){const _0x722dce=_0x5473f2;return _0x10b043&&typeof Symbol=='function'&&_0x10b043['constructor']===Symbol&&_0x10b043!==Symbol['prototype']?_0x722dce(0x173):typeof _0x10b043;},R(_0xf36294);}function z(_0xf6b653,_0x4e9f0b){const _0x45ee09=_0x16c8;if(R(_0xf6b653)!=_0x45ee09(0x18c)||!_0xf6b653)return _0xf6b653;var _0x2b7a54=_0xf6b653[Symbol[_0x45ee09(0x169)]];if(_0x2b7a54!==void 0x0){var _0x1da6c4=_0x2b7a54[_0x45ee09(0x101)](_0xf6b653,_0x4e9f0b||_0x45ee09(0x113));if(R(_0x1da6c4)!=_0x45ee09(0x18c))return _0x1da6c4;throw TypeError(_0x45ee09(0x144));}return(_0x4e9f0b===_0x45ee09(0x160)?String:Number)(_0xf6b653);}function B(_0x388830){const _0x1b8974=_0x16c8;var _0x2edad5=z(_0x388830,'string');return R(_0x2edad5)==_0x1b8974(0x173)?_0x2edad5:_0x2edad5+'';}function V(_0x41b74d,_0x5ae3ea,_0x28c28b){const _0x21f56b=_0x16c8;return(_0x5ae3ea=B(_0x5ae3ea))in _0x41b74d?Object[_0x21f56b(0x139)](_0x41b74d,_0x5ae3ea,{'value':_0x28c28b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41b74d[_0x5ae3ea]=_0x28c28b,_0x41b74d;}var H=class extends _0x2aaa5f{constructor(){const _0x5167b7=_0x16c8;super(),V(this,_0x5167b7(0x115),new Map()),V(this,_0x5167b7(0x178),new Set()),V(this,_0x5167b7(0x17f),new Set());}[_0x3064c3(0x15d)](_0x5447e8,_0x4774a0,_0x1d6e9f){const _0x52ea43=_0x3064c3;let _0x505ebf=new _0x527c79(_0x5447e8,_0x4774a0,_0x1d6e9f);return this['_shapes']['set'](_0x4774a0,_0x505ebf),_0x547139(_0x5447e8)&&this[_0x52ea43(0x178)][_0x52ea43(0x176)](_0x4774a0),_0x505ebf;}[_0x3064c3(0x18e)](_0x21440e){const _0x58ee4a=_0x3064c3;let _0x68f800=[];for(let _0xbd9302 of this[_0x58ee4a(0x178)]){let _0x6570ac=this[_0x58ee4a(0x115)][_0x58ee4a(0x117)](_0xbd9302);if(_0x6570ac){let _0x14a7c3=_0x6570ac[_0x58ee4a(0x17c)]();if(_0x14a7c3){var _0x2bd233,_0x490fb1;((_0x2bd233=_0x14a7c3[_0x58ee4a(0x197)])==null?void 0x0:_0x2bd233[_0x58ee4a(0x120)])===_0x21440e&&_0x68f800[_0x58ee4a(0x11e)]({..._0x14a7c3['from'],'lineShapeId':_0xbd9302,'isFrom':!0x0}),((_0x490fb1=_0x14a7c3['to'])==null?void 0x0:_0x490fb1[_0x58ee4a(0x120)])===_0x21440e&&_0x68f800[_0x58ee4a(0x11e)]({..._0x14a7c3['to'],'lineShapeId':_0xbd9302,'isFrom':!0x1});}}}return _0x68f800;}[_0x3064c3(0x17e)](_0xa9b607){const _0x44da96=_0x3064c3;let _0x39ed77=this['_shapes'][_0x44da96(0x117)](_0xa9b607);if(_0x39ed77)return _0x39ed77[_0x44da96(0x17c)]();}['getShapeType'](_0x570bae){const _0x3a3df5=_0x3064c3;let _0x2a0f6c=this[_0x3a3df5(0x115)][_0x3a3df5(0x117)](_0x570bae);if(_0x2a0f6c)return _0x2a0f6c[_0x3a3df5(0x17d)]();}['hasShape'](_0x378772){const _0x2bdd42=_0x3064c3;return this[_0x2bdd42(0x115)][_0x2bdd42(0x10a)](_0x378772);}[_0x3064c3(0x157)](_0x471f71){const _0x56627b=_0x3064c3;let _0x8ee5ce=this[_0x56627b(0x115)]['get'](_0x471f71);_0x8ee5ce&&(_0x547139(_0x8ee5ce[_0x56627b(0x17d)]())&&this[_0x56627b(0x178)]['delete'](_0x471f71),this[_0x56627b(0x115)][_0x56627b(0x109)](_0x471f71));}['toJSON'](){const _0x595da5=_0x3064c3;let _0x2ae412=[];return this['_shapes'][_0x595da5(0x143)](_0x1d7f05=>{const _0x403e5f=_0x595da5;_0x2ae412[_0x403e5f(0x11e)](_0x1d7f05['toJSON']());}),_0x2ae412;}[_0x3064c3(0x11d)](_0x5ee104){const _0x535b0a=_0x3064c3;for(let _0x1b6caa of _0x5ee104){let {id:_0x2dc1bb,shapeType:_0x4925ea}=_0x1b6caa,_0x4330dc=this['addShape'](_0x4925ea,_0x2dc1bb,_0x1b6caa[_0x535b0a(0x15e)]);_0x4330dc&&_0x4330dc[_0x535b0a(0x15a)]()&&this[_0x535b0a(0x178)][_0x535b0a(0x176)](_0x2dc1bb);}}[_0x3064c3(0x123)](){const _0x3fe8e2=_0x3064c3;this['_disposed']||(this[_0x3fe8e2(0x115)][_0x3fe8e2(0x143)](_0x1c056c=>{_0x1c056c['dispose']();}),this[_0x3fe8e2(0x115)]['clear'](),this[_0x3fe8e2(0x178)][_0x3fe8e2(0x17b)](),this['_groupIds'][_0x3fe8e2(0x17b)](),super[_0x3fe8e2(0x123)]());}};function U(_0x9b98c5,_0x4a0969){return function(_0x33ce11,_0x587547){_0x4a0969(_0x33ce11,_0x587547,_0x9b98c5);};}function W(_0xd838d1,_0x2b508c,_0x4135db,_0x207f4c){const _0x3a4c53=_0x3064c3;var _0x32d71e=arguments['length'],_0x5668f9=_0x32d71e<0x3?_0x2b508c:_0x207f4c===null?_0x207f4c=Object[_0x3a4c53(0x13f)](_0x2b508c,_0x4135db):_0x207f4c,_0x244180;if(typeof Reflect=='object'&&typeof Reflect[_0x3a4c53(0x134)]=='function')_0x5668f9=Reflect[_0x3a4c53(0x134)](_0xd838d1,_0x2b508c,_0x4135db,_0x207f4c);else{for(var _0x558942=_0xd838d1[_0x3a4c53(0x118)]-0x1;_0x558942>=0x0;_0x558942--)(_0x244180=_0xd838d1[_0x558942])&&(_0x5668f9=(_0x32d71e<0x3?_0x244180(_0x5668f9):_0x32d71e>0x3?_0x244180(_0x2b508c,_0x4135db,_0x5668f9):_0x244180(_0x2b508c,_0x4135db))||_0x5668f9);}return _0x32d71e>0x3&&_0x5668f9&&Object[_0x3a4c53(0x139)](_0x2b508c,_0x4135db,_0x5668f9),_0x5668f9;}let G=class extends _0x2aaa5f{constructor(_0x520195){const _0x442840=_0x3064c3;super(),this[_0x442840(0x18f)]=_0x520195,V(this,'_shapeModelManagerMap',new Map()),this[_0x442840(0x112)]();}[_0x3064c3(0x119)](_0x3edcf7,_0x2d6723){const _0x39eece=_0x3064c3;let _0x375181=this['_shapeModelManagerMap'][_0x39eece(0x117)](_0x3edcf7);_0x375181||(_0x375181=new Map(),this[_0x39eece(0x10e)][_0x39eece(0x132)](_0x3edcf7,_0x375181));let _0x1c1e07=_0x375181[_0x39eece(0x117)](_0x2d6723);return _0x1c1e07||(_0x1c1e07=new H(),_0x375181['set'](_0x2d6723,_0x1c1e07)),_0x1c1e07;}[_0x3064c3(0x171)](_0x35b6f3,_0x4d3741,_0x649353,_0x26ef5c,_0xcc3847){const _0x3193e7=_0x3064c3;this['_ensureShapeModelManager'](_0x35b6f3,_0x4d3741)[_0x3193e7(0x15d)](_0x649353,_0x26ef5c,_0xcc3847);}[_0x3064c3(0x157)](_0xd67347,_0x5e6383,_0x320f9c){const _0x365772=_0x3064c3;this[_0x365772(0x119)](_0xd67347,_0x5e6383)[_0x365772(0x157)](_0x320f9c);}[_0x3064c3(0x102)](_0x4045be,_0x4d9fe1,_0x2f3b12){const _0x8cfb3b=_0x3064c3;return this[_0x8cfb3b(0x119)](_0x4045be,_0x4d9fe1)[_0x8cfb3b(0x17d)](_0x2f3b12);}[_0x3064c3(0x17d)](_0x37d949,_0x1e01ce,_0xe3b069){const _0x4f9953=_0x3064c3;return this[_0x4f9953(0x119)](_0x37d949,_0x1e01ce)[_0x4f9953(0x17d)](_0xe3b069);}['hasShape'](_0x2a32cb,_0xb10db8,_0x1f3ad3){const _0x23332e=_0x3064c3;return this[_0x23332e(0x119)](_0x2a32cb,_0xb10db8)[_0x23332e(0x150)](_0x1f3ad3);}[_0x3064c3(0x105)](_0x1fb654,_0x3bf620,_0xf29a6f){const _0x64e876=_0x3064c3;return this[_0x64e876(0x119)](_0x1fb654,_0x3bf620)[_0x64e876(0x17d)](_0xf29a6f);}['getShapeDataById'](_0x249781,_0x4f33e8,_0x2ff7f2){const _0x48dae8=_0x3064c3;let _0x4bfc1d=this[_0x48dae8(0x119)](_0x249781,_0x4f33e8);if(!_0x4bfc1d[_0x48dae8(0x17d)](_0x2ff7f2))return;let _0x54b8c7=_0x4bfc1d['_shapes'][_0x48dae8(0x117)](_0x2ff7f2);if(_0x54b8c7)return _0x54b8c7[_0x48dae8(0x162)]();}['getShapeModel'](_0x4d4b1d,_0x33f0c9,_0x54fa8b){const _0x4ef96f=_0x3064c3;return this[_0x4ef96f(0x119)](_0x4d4b1d,_0x33f0c9)[_0x4ef96f(0x115)][_0x4ef96f(0x117)](_0x54fa8b);}[_0x3064c3(0x18e)](_0x348d3c,_0x3d49c3,_0x2629ff){const _0x3e16e5=_0x3064c3;return this[_0x3e16e5(0x119)](_0x348d3c,_0x3d49c3)[_0x3e16e5(0x18e)](_0x2629ff);}[_0x3064c3(0x17e)](_0x349f92,_0x1e4e03,_0x76e797){const _0x103e4d=_0x3064c3;let _0x1ac845=this[_0x103e4d(0x119)](_0x349f92,_0x1e4e03)['_shapes'][_0x103e4d(0x117)](_0x76e797);if(_0x1ac845)return _0x1ac845[_0x103e4d(0x17c)]();}[_0x3064c3(0x111)](){}[_0x3064c3(0x190)](_0x43e840){const _0x1e3fe=_0x3064c3;let _0x3e026b={},_0x1eeda5=this[_0x1e3fe(0x10e)][_0x1e3fe(0x117)](_0x43e840);return _0x1eeda5&&_0x1eeda5[_0x1e3fe(0x143)]((_0x1e8911,_0x2662c9)=>{const _0x80e0c7=_0x1e3fe;let _0x2b9761=_0x1e8911[_0x80e0c7(0x14e)]();_0x2b9761[_0x80e0c7(0x118)]>0x0&&(_0x3e026b[_0x2662c9]=_0x2b9761);}),JSON[_0x1e3fe(0x14f)](_0x3e026b);}[_0x3064c3(0x15b)](_0xd8881a,_0x212c79){const _0x4f123a=_0x3064c3;Object['keys'](_0x212c79)[_0x4f123a(0x143)](_0x4fc2b9=>{const _0x493e6b=_0x4f123a;this[_0x493e6b(0x119)](_0xd8881a,_0x4fc2b9)['fromJSON'](_0x212c79[_0x4fc2b9]);});}['toJSON'](){const _0x12d5d3=_0x3064c3;let _0x1787c1={};return this[_0x12d5d3(0x10e)][_0x12d5d3(0x143)]((_0x277e4a,_0x5418d2)=>{const _0x3a126c=_0x12d5d3;_0x1787c1[_0x5418d2]={},_0x277e4a[_0x3a126c(0x143)]((_0x23b2de,_0x326654)=>{const _0x2dfb87=_0x3a126c;_0x1787c1[_0x5418d2][_0x326654]=_0x23b2de[_0x2dfb87(0x14e)]();});}),_0x1787c1;}[_0x3064c3(0x11d)](_0x173dd3){const _0x35df52=_0x3064c3;Object[_0x35df52(0x16e)](_0x173dd3)[_0x35df52(0x143)](_0xbf1c2e=>{const _0x5a971c=_0x35df52;let _0x5c15c2=_0x173dd3[_0xbf1c2e];Object[_0x5a971c(0x16e)](_0x5c15c2)[_0x5a971c(0x143)](_0x9798e5=>{const _0x4686c8=_0x5a971c;this['_ensureShapeModelManager'](_0xbf1c2e,_0x9798e5)[_0x4686c8(0x11d)](_0x5c15c2[_0x9798e5]);});});}[_0x3064c3(0x112)](){const _0x324bf0=_0x3064c3;this[_0x324bf0(0x18f)]['registerPluginResource']({'pluginName':_0x324bf0(0x10f),'businesses':[_0x19509d[_0x324bf0(0x174)]],'toJson':_0x3843fa=>this[_0x324bf0(0x190)](_0x3843fa),'parseJson':_0x2695cd=>JSON[_0x324bf0(0x110)](_0x2695cd),'onLoad':(_0x4294a9,_0x3bb6a1)=>{this['_deserializeShapeForUnit'](_0x4294a9,_0x3bb6a1);},'onUnLoad':_0x110c7b=>{const _0x2afdeb=_0x324bf0;let _0x469021=this[_0x2afdeb(0x10e)][_0x2afdeb(0x117)](_0x110c7b);_0x469021&&(_0x469021[_0x2afdeb(0x143)](_0x482548=>{const _0x407884=_0x2afdeb;_0x482548[_0x407884(0x123)]();}),this[_0x2afdeb(0x10e)][_0x2afdeb(0x109)](_0x110c7b));}});}['dispose'](){const _0xbded50=_0x3064c3;this[_0xbded50(0x10e)][_0xbded50(0x143)](_0x24492a=>{const _0x3c1660=_0xbded50;_0x24492a[_0x3c1660(0x143)](_0x4e75a4=>{const _0x1b729e=_0x3c1660;_0x4e75a4[_0x1b729e(0x123)]();});});}};G=W([U(0x0,_0x4aeec2)],G);const K={'id':'sheet.mutation.insert-shape','type':_0x37f9be[_0x3064c3(0x135)],'handler':(_0x4307ef,_0x11922b)=>{const _0x1d3d2d=_0x3064c3;let {unitId:_0x36c185,subUnitId:_0x529ea7,shapeType:_0x17ee4b,shapeId:_0x43b447,shapeData:_0x59e943}=_0x11922b;return _0x4307ef['get'](G)[_0x1d3d2d(0x171)](_0x36c185,_0x529ea7,_0x17ee4b,_0x43b447,_0x59e943),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x37f9be[_0x3064c3(0x135)],'handler':(_0x12dbe6,_0x11c161)=>{const _0x4ae0f9=_0x3064c3;let {unitId:_0x4baa42,subUnitId:_0x55cc88,shapeId:_0x5514e1}=_0x11c161;return _0x12dbe6[_0x4ae0f9(0x117)](G)[_0x4ae0f9(0x157)](_0x4baa42,_0x55cc88,_0x5514e1),!0x0;}},J={'type':_0x37f9be[_0x3064c3(0x163)],'id':_0x3064c3(0x10c),'handler':(_0x4bc5b6,_0x4a840e)=>{const _0x1dcae5=_0x3064c3;var _0x46d0a4,_0x30634d;let _0x37eaaa=_0x4143f6(_0x4bc5b6[_0x1dcae5(0x117)](_0x37b176),_0x4a840e);if(!_0x37eaaa)return!0x1;let _0x2ff31b=_0x4bc5b6['get'](_0x5f556d),{unitId:_0x4abf3d,subUnitId:_0x45a974}=_0x37eaaa,_0x137eaf=_0x2ff31b[_0x1dcae5(0x18a)](_0x4abf3d,_0x45a974);if(!_0x137eaf)return!0x1;let _0x15b89b=_0x4bc5b6[_0x1dcae5(0x117)](_0x54956e),_0x4da22f=_0x4bc5b6[_0x1dcae5(0x117)](_0x1ee9eb),_0x30b5f4=_0x4bc5b6[_0x1dcae5(0x117)](_0x1bf91c),_0x3dc31d=_0x4bc5b6[_0x1dcae5(0x117)](_0x27fa21),{shapeType:_0x1e2acd,shapeData:_0x4bd32c}=_0x4a840e,_0x1a6eb0=_0x4a840e['shapeId']||_0xd3057d(),_0x32cdbe={'unitId':_0x4abf3d,'subUnitId':_0x45a974,'shapeId':_0x1a6eb0,'shapeType':_0x1e2acd,'shapeData':_0x4bd32c},_0x497b02=_0x4a840e['width']||0xc8,_0x1d8f74=_0x4a840e[_0x1dcae5(0x19a)]||0xc8,_0x51d879=0x0,_0x30d836=0x0,_0x5747a0={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x52e817={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x4a840e[_0x1dcae5(0x168)]){let {x:_0xba0f97,y:_0x31ab79}=_0x4a840e[_0x1dcae5(0x168)];_0x51d879=_0xba0f97,_0x30d836=_0x31ab79,_0x5747a0=_0x137eaf['getCellIndexAndOffsetByPosition'](_0xba0f97,_0x31ab79),_0x52e817=_0x137eaf['getCellIndexAndOffsetByPosition'](_0xba0f97+_0x497b02,_0x31ab79+_0x1d8f74);}else{if(_0x4a840e[_0x1dcae5(0x17a)]){let {startRow:_0x914cfe,startColumn:_0xd768e3}=_0x4a840e[_0x1dcae5(0x17a)];_0x5747a0={'row':_0x914cfe,'rowOffset':0xa,'column':_0xd768e3,'columnOffset':0xa};let _0xbff300=_0x137eaf[_0x1dcae5(0x177)](_0x914cfe,_0xd768e3);_0x51d879=_0xbff300[_0x1dcae5(0x175)]+0xa,_0x30d836=_0xbff300[_0x1dcae5(0x153)]+0xa,_0x52e817=_0x137eaf[_0x1dcae5(0x16d)](_0x51d879+_0x497b02,_0x30d836+_0x1d8f74);}}let _0xccbc06={'from':_0x5747a0,'to':_0x52e817},_0x11c95f={'unitId':_0x4abf3d,'subUnitId':_0x45a974,'drawingId':_0x1a6eb0,'drawingType':_0x58419a['DRAWING_SHAPE'],'sheetTransform':_0xccbc06,'transform':{'left':_0x51d879,'top':_0x30d836,'width':_0x497b02,'height':_0x1d8f74},'data':{'shapeType':_0x1e2acd,'shapeData':_0x4bd32c},'axisAlignSheetTransform':_0xccbc06,'allowTransform':!0x0};_0x547139(_0x1e2acd)&&(_0x11c95f[_0x1dcae5(0x130)][_0x1dcae5(0x172)]=!0x1,_0x11c95f[_0x1dcae5(0x130)]['rotateEnabled']=!0x1,_0x11c95f[_0x1dcae5(0x130)]['resizeEnabled']=!0x1,_0x11c95f[_0x1dcae5(0x130)][_0x1dcae5(0x14c)]=!0x1,_0x11c95f[_0x1dcae5(0x199)][_0x1dcae5(0x194)]=!0x1,_0x11c95f['transform'][_0x1dcae5(0x16b)]=!0x1,_0x11c95f[_0x1dcae5(0x199)][_0x1dcae5(0x14c)]=!0x1);let {undo:_0x1bb522,redo:_0x3fc092,objects:_0x3b3689}=_0x3dc31d['getBatchAddOp']([_0x11c95f]),_0x3685e1=_0x30b5f4[_0x1dcae5(0x182)]({'id':_0x3232ed['id'],'params':{'unitId':_0x4abf3d,'drawings':[_0x11c95f]}}),_0x29362d=[...(_0x46d0a4=_0x3685e1[_0x1dcae5(0x108)])==null?[]:_0x46d0a4,{'id':_0x494fdb['id'],'params':{'unitId':_0x4abf3d,'subUnitId':_0x45a974,'op':_0x3fc092,'objects':_0x3b3689,'type':_0x59c59f[_0x1dcae5(0x196)]}},{'id':_0x8d2dc3['id'],'params':[_0x4abf3d]},..._0x3685e1[_0x1dcae5(0x189)],{'id':K['id'],'params':_0x32cdbe}],_0x463dbe=[{'id':q['id'],'params':{'unitId':_0x4abf3d,'subUnitId':_0x45a974,'shapeId':_0x1a6eb0}},...(_0x30634d=_0x3685e1[_0x1dcae5(0x14a)])==null?[]:_0x30634d,{'id':_0x494fdb['id'],'params':{'unitId':_0x4abf3d,'subUnitId':_0x45a974,'op':_0x1bb522,'objects':_0x3b3689,'type':_0x59c59f['REMOVE']}},{'id':_0x8d2dc3['id'],'params':[_0x4abf3d]},..._0x3685e1[_0x1dcae5(0x187)]];return _0x454d50(_0x29362d,_0x15b89b)[_0x1dcae5(0x10d)]?(_0x4da22f[_0x1dcae5(0x154)]({'unitID':_0x4abf3d,'undoMutations':_0x463dbe,'redoMutations':_0x29362d}),!0x0):!0x1;}},Y={'id':_0x3064c3(0x11c),'type':_0x37f9be[_0x3064c3(0x135)],'handler':(_0x4b6b3f,_0x4355b0)=>{const _0x39847f=_0x3064c3;let {unitId:_0x5aca0b,subUnitId:_0x4553a2,shapeType:_0x28e0fd,shapeId:_0x487fb2,shapeData:_0x3dde98}=_0x4355b0,_0x40a8cc=_0x4b6b3f['get'](G)[_0x39847f(0x192)](_0x5aca0b,_0x4553a2,_0x487fb2);return _0x40a8cc&&(_0x28e0fd!==void 0x0&&_0x40a8cc['setShapeType'](_0x28e0fd),_0x3dde98&&(_0x40a8cc==null||_0x40a8cc[_0x39847f(0x15c)](_0x3dde98,!0x0))),!0x0;}},ee={'type':_0x37f9be[_0x3064c3(0x163)],'id':_0x3064c3(0x179),'handler':(_0x2ae709,_0x371f86)=>{const _0x5ba651=_0x3064c3;var _0x504267,_0x51c9fc;let _0x151663=_0x4143f6(_0x2ae709[_0x5ba651(0x117)](_0x37b176),_0x371f86);if(!_0x151663)return!0x1;let _0x38c789=_0x2ae709[_0x5ba651(0x117)](_0x5f556d),{unitId:_0x1962ba,subUnitId:_0x30177c}=_0x151663,_0x57af7c=_0x38c789[_0x5ba651(0x18a)](_0x1962ba,_0x30177c);if(!_0x57af7c)return!0x1;let _0x57c335=_0x2ae709[_0x5ba651(0x117)](G),{shapeId:_0x24429b,shapeType:_0x1d4440,shapeData:_0x2e248a,position:_0x474272,width:_0x208363,height:_0x4eb8de}=_0x371f86,_0x4b7044=_0x57c335[_0x5ba651(0x192)](_0x1962ba,_0x30177c,_0x24429b);if(!_0x4b7044)return!0x1;let _0x53a5de=_0x2ae709[_0x5ba651(0x117)](_0x54956e),_0x59970e=_0x2ae709[_0x5ba651(0x117)](_0x1ee9eb),_0x3aa241=_0x2ae709['get'](_0x1bf91c),_0x5a8f22=_0x2ae709[_0x5ba651(0x117)](_0x27fa21),_0x3014d4={'unitId':_0x1962ba,'subUnitId':_0x30177c,'shapeId':_0x24429b,'shapeType':_0x1d4440,'shapeData':_0x2e248a},_0x1c2048=_0x4b7044[_0x5ba651(0x17d)](),_0x39e213=_0x4b7044[_0x5ba651(0x162)](),{x:_0x12ae0f,y:_0x38279f}=_0x474272,_0x1d28f9={'from':_0x57af7c[_0x5ba651(0x16d)](_0x12ae0f,_0x38279f),'to':_0x57af7c[_0x5ba651(0x16d)](_0x12ae0f+_0x208363,_0x38279f+_0x4eb8de)},_0x43247b={'unitId':_0x1962ba,'subUnitId':_0x30177c,'drawingId':_0x24429b,'drawingType':_0x58419a['DRAWING_SHAPE'],'sheetTransform':_0x1d28f9,'transform':{'left':_0x12ae0f,'top':_0x38279f,'width':_0x208363,'height':_0x4eb8de},'data':{'shapeType':_0x1d4440,'shapeData':_0x2e248a},'axisAlignSheetTransform':_0x1d28f9,'allowTransform':!0x0};_0x547139(_0x1d4440)&&(_0x43247b[_0x5ba651(0x130)]['fill']=!0x1,_0x43247b['data'][_0x5ba651(0x194)]=!0x1,_0x43247b[_0x5ba651(0x130)][_0x5ba651(0x16b)]=!0x1,_0x43247b['data'][_0x5ba651(0x14c)]=!0x1,_0x43247b['transform']['rotateEnabled']=!0x1,_0x43247b[_0x5ba651(0x199)]['resizeEnabled']=!0x1,_0x43247b[_0x5ba651(0x199)][_0x5ba651(0x14c)]=!0x1);let {undo:_0x4f9908,redo:_0x1d60e3,objects:_0x8a80de}=_0x5a8f22[_0x5ba651(0x124)]([_0x43247b]),_0x19273a=_0x3aa241[_0x5ba651(0x182)]({'id':_0x100aa3['id'],'params':{'unitId':_0x1962ba,'drawings':[_0x43247b]}}),_0x2b8edf=[...(_0x504267=_0x19273a[_0x5ba651(0x108)])==null?[]:_0x504267,{'id':_0x494fdb['id'],'params':{'unitId':_0x1962ba,'subUnitId':_0x30177c,'op':_0x1d60e3,'objects':_0x8a80de,'type':_0x59c59f['UPDATE']}},{'id':_0x8d2dc3['id'],'params':[_0x1962ba]},..._0x19273a[_0x5ba651(0x189)],{'id':Y['id'],'params':_0x3014d4}],_0xeb2ba8=[...(_0x51c9fc=_0x19273a[_0x5ba651(0x14a)])==null?[]:_0x51c9fc,{'id':_0x494fdb['id'],'params':{'unitId':_0x1962ba,'subUnitId':_0x30177c,'op':_0x4f9908,'objects':_0x8a80de,'type':_0x59c59f[_0x5ba651(0x152)]}},{'id':_0x8d2dc3['id'],'params':[_0x1962ba]},..._0x19273a[_0x5ba651(0x187)],{'id':Y['id'],'params':{'unitId':_0x1962ba,'subUnitId':_0x30177c,'shapeType':_0x1c2048,'shapeId':_0x24429b,'shapeData':_0x39e213}}];return _0x454d50(_0x2b8edf,_0x53a5de)[_0x5ba651(0x10d)]?(_0x59970e[_0x5ba651(0x154)]({'unitID':_0x1962ba,'undoMutations':_0xeb2ba8,'redoMutations':_0x2b8edf}),!0x0):!0x1;}},te={'type':_0x37f9be[_0x3064c3(0x163)],'id':_0x3064c3(0x13c),'handler':(_0x171e0a,_0x5c0f5a)=>{const _0xf5b6ef=_0x3064c3;var _0x283419,_0x3384e9;let _0x2a5ab5=_0x4143f6(_0x171e0a[_0xf5b6ef(0x117)](_0x37b176),_0x5c0f5a);if(!_0x2a5ab5)return!0x1;let _0x4a491c=_0x171e0a[_0xf5b6ef(0x117)](_0x5f556d),{unitId:_0x1cfa99,subUnitId:_0x19c7ee}=_0x2a5ab5,_0x206e60=_0x4a491c[_0xf5b6ef(0x13d)](_0x1cfa99,_0x19c7ee);if(!_0x206e60)return!0x1;let _0x5c4e2f=_0x171e0a['get'](_0x27fa21),{shapeId:_0x5cad1e,flipH:_0x4487b0,flipV:_0x52fc6f}=_0x5c0f5a,_0x3bb578=_0x5c4e2f[_0xf5b6ef(0x180)]({'unitId':_0x1cfa99,'subUnitId':_0x19c7ee,'drawingId':_0x5cad1e});if(!_0x3bb578)return!0x1;let _0x2f83c9=_0x171e0a[_0xf5b6ef(0x117)](G)[_0xf5b6ef(0x192)](_0x1cfa99,_0x19c7ee,_0x5cad1e);if(!_0x2f83c9)return!0x1;let _0xc5f5bc=_0x171e0a[_0xf5b6ef(0x117)](_0x54956e),_0x43ad68=_0x171e0a[_0xf5b6ef(0x117)](_0x1ee9eb),_0x57df1a=_0x171e0a[_0xf5b6ef(0x117)](_0x1bf91c),_0x1e75b5={..._0x3bb578[_0xf5b6ef(0x199)]};_0x4487b0!==void 0x0&&(_0x1e75b5[_0xf5b6ef(0x198)]=!_0x1e75b5['flipX']),_0x52fc6f!==void 0x0&&(_0x1e75b5[_0xf5b6ef(0x191)]=!_0x1e75b5[_0xf5b6ef(0x191)]);let _0x20643d=_0x3c93f3(_0x1e75b5,_0x206e60),_0x2d1595=_0x254c3a(_0x1e75b5,_0x206e60),_0x433102=_0x2f83c9['getShapeType'](),_0x36500e=_0x2f83c9['getShapeData'](),_0x57cbb5={'unitId':_0x1cfa99,'subUnitId':_0x19c7ee,'drawingId':_0x5cad1e,'drawingType':_0x58419a[_0xf5b6ef(0x129)],'sheetTransform':_0x20643d,'transform':_0x1e75b5,'data':{'shapeType':_0x433102,'shapeData':_0x36500e},'axisAlignSheetTransform':_0x2d1595,'allowTransform':!0x0},{undo:_0x3f4fef,redo:_0x31e6a9,objects:_0x290a91}=_0x5c4e2f['getBatchUpdateOp']([_0x57cbb5]),_0x579c2f=_0x57df1a['onCommandExecute']({'id':_0x100aa3['id'],'params':{'unitId':_0x1cfa99,'drawings':[_0x57cbb5]}}),_0x464df5=[...(_0x283419=_0x579c2f['preRedos'])==null?[]:_0x283419,{'id':_0x494fdb['id'],'params':{'unitId':_0x1cfa99,'subUnitId':_0x19c7ee,'op':_0x31e6a9,'objects':_0x290a91,'type':_0x59c59f[_0xf5b6ef(0x152)]}},{'id':_0x8d2dc3['id'],'params':[_0x1cfa99]},..._0x579c2f[_0xf5b6ef(0x189)]],_0xbe90e=[...(_0x3384e9=_0x579c2f[_0xf5b6ef(0x14a)])==null?[]:_0x3384e9,{'id':_0x494fdb['id'],'params':{'unitId':_0x1cfa99,'subUnitId':_0x19c7ee,'op':_0x3f4fef,'objects':_0x290a91,'type':_0x59c59f[_0xf5b6ef(0x152)]}},{'id':_0x8d2dc3['id'],'params':[_0x1cfa99]},..._0x579c2f[_0xf5b6ef(0x187)]];if(_0x547139(_0x433102)){let _0x3482d2=_0x2f83c9['getShapeRelation']();if(_0x3482d2){let _0x20d941={..._0x3482d2};_0x20d941[_0xf5b6ef(0x197)]=void 0x0,_0x20d941['to']=void 0x0,_0x464df5['push']({'id':Y['id'],'params':{'unitId':_0x1cfa99,'subUnitId':_0x19c7ee,'shapeId':_0x5cad1e,'shapeType':_0x433102,'shapeData':{'relation':_0x20d941}}}),_0xbe90e[_0xf5b6ef(0x11e)]({'id':Y['id'],'params':{'unitId':_0x1cfa99,'subUnitId':_0x19c7ee,'shapeId':_0x5cad1e,'shapeType':_0x433102,'shapeData':{'relation':_0x3482d2}}});}}return _0x454d50(_0x464df5,_0xc5f5bc)[_0xf5b6ef(0x10d)]?(_0x43ad68[_0xf5b6ef(0x154)]({'unitID':_0x1cfa99,'undoMutations':_0xbe90e,'redoMutations':_0x464df5}),!0x0):!0x1;}},X={'type':_0x37f9be[_0x3064c3(0x163)],'id':_0x3064c3(0x193),'handler':(_0x5dfd58,_0x487bf2)=>{const _0x553d2f=_0x3064c3;var _0x397929,_0x21446a;let _0x577adb=_0x4143f6(_0x5dfd58[_0x553d2f(0x117)](_0x37b176),_0x487bf2);if(!_0x577adb)return!0x1;let _0x30e13b=_0x5dfd58['get'](_0x5f556d),{unitId:_0xd9902e,subUnitId:_0x106878}=_0x577adb,_0x35b84e=_0x30e13b[_0x553d2f(0x13d)](_0xd9902e,_0x106878);if(!_0x35b84e)return!0x1;let _0x2e416c=_0x5dfd58[_0x553d2f(0x117)](_0x27fa21),{shapeId:_0x1b5da7,rotate:_0x2cdc6e}=_0x487bf2,_0x3a4a58=_0x2e416c[_0x553d2f(0x180)]({'unitId':_0xd9902e,'subUnitId':_0x106878,'drawingId':_0x1b5da7});if(!_0x3a4a58)return!0x1;let _0x48fd98=_0x5dfd58['get'](G)[_0x553d2f(0x192)](_0xd9902e,_0x106878,_0x1b5da7);if(!_0x48fd98)return!0x1;let _0x5b5372=_0x5dfd58[_0x553d2f(0x117)](_0x54956e),_0x809ba5=_0x5dfd58[_0x553d2f(0x117)](_0x1ee9eb),_0x592b5e=_0x5dfd58[_0x553d2f(0x117)](_0x1bf91c),_0x2cddcf={..._0x3a4a58[_0x553d2f(0x199)]};_0x2cdc6e!==void 0x0&&(_0x2cddcf[_0x553d2f(0x12d)]=(_0x2cddcf['angle']||0x0)+_0x2cdc6e);let _0x3f91bf=_0x3c93f3(_0x2cddcf,_0x35b84e),_0x3732b1=_0x254c3a(_0x2cddcf,_0x35b84e),_0x3a13e3=_0x48fd98[_0x553d2f(0x17d)](),_0x3adef7=_0x48fd98[_0x553d2f(0x162)](),_0x31811f={'unitId':_0xd9902e,'subUnitId':_0x106878,'drawingId':_0x1b5da7,'drawingType':_0x58419a[_0x553d2f(0x129)],'sheetTransform':_0x3f91bf,'transform':_0x2cddcf,'data':{'shapeType':_0x3a13e3,'shapeData':_0x3adef7},'axisAlignSheetTransform':_0x3732b1,'allowTransform':!0x0},{undo:_0x22a7cd,redo:_0x146131,objects:_0x2d6410}=_0x2e416c[_0x553d2f(0x124)]([_0x31811f]),_0x9ae0a1=_0x592b5e[_0x553d2f(0x182)]({'id':_0x100aa3['id'],'params':{'unitId':_0xd9902e,'drawings':[_0x31811f]}}),_0x4bd3c8=[...(_0x397929=_0x9ae0a1[_0x553d2f(0x108)])==null?[]:_0x397929,{'id':_0x494fdb['id'],'params':{'unitId':_0xd9902e,'subUnitId':_0x106878,'op':_0x146131,'objects':_0x2d6410,'type':_0x59c59f[_0x553d2f(0x152)]}},{'id':_0x8d2dc3['id'],'params':[_0xd9902e]},..._0x9ae0a1['redos']],_0x10f0d6=[...(_0x21446a=_0x9ae0a1[_0x553d2f(0x14a)])==null?[]:_0x21446a,{'id':_0x494fdb['id'],'params':{'unitId':_0xd9902e,'subUnitId':_0x106878,'op':_0x22a7cd,'objects':_0x2d6410,'type':_0x59c59f[_0x553d2f(0x152)]}},{'id':_0x8d2dc3['id'],'params':[_0xd9902e]},..._0x9ae0a1[_0x553d2f(0x187)]];return _0x454d50(_0x4bd3c8,_0x5b5372)['result']?(_0x809ba5[_0x553d2f(0x154)]({'unitID':_0xd9902e,'undoMutations':_0x10f0d6,'redoMutations':_0x4bd3c8}),!0x0):!0x1;}},Z={'type':_0x37f9be['COMMAND'],'id':_0x3064c3(0x127),'handler':(_0x5d1e5c,_0x3b506d)=>{const _0x52e845=_0x3064c3;var _0x459f08;let _0x43682a=_0x4143f6(_0x5d1e5c[_0x52e845(0x117)](_0x37b176),_0x3b506d);if(!_0x43682a)return!0x1;let {unitId:_0x3c0640,subUnitId:_0x316026}=_0x43682a,{shapeId:_0x22545a}=_0x3b506d,_0x8f7417=_0x5d1e5c[_0x52e845(0x117)](G)[_0x52e845(0x192)](_0x3c0640,_0x316026,_0x22545a);if(!_0x8f7417)return!0x1;let _0x19fd43=_0x8f7417[_0x52e845(0x137)](),_0x135091=(_0x459f08=_0x19fd43==null?void 0x0:_0x19fd43['isHorizontal'])==null?!0x0:_0x459f08,_0x28c8da=!_0x135091,_0x19a033=_0x5d1e5c['get'](_0x54956e),_0x5c71ea=_0x5d1e5c[_0x52e845(0x117)](_0x1ee9eb),_0x20dccd={'unitId':_0x3c0640,'subUnitId':_0x316026,'shapeId':_0x22545a,'shapeData':{'shapeText':{'isHorizontal':_0x28c8da}}},_0x3882a4={'unitId':_0x3c0640,'subUnitId':_0x316026,'shapeId':_0x22545a,'shapeData':{'shapeText':{'isHorizontal':_0x135091}}},_0x35e6c6=[{'id':Y['id'],'params':_0x20dccd}],_0x11c28e=[{'id':Y['id'],'params':_0x3882a4}];return _0x454d50(_0x35e6c6,_0x19a033)[_0x52e845(0x10d)]?(_0x5c71ea[_0x52e845(0x154)]({'unitID':_0x3c0640,'undoMutations':_0x11c28e,'redoMutations':_0x35e6c6}),!0x0):!0x1;}},ne={'type':_0x37f9be[_0x3064c3(0x163)],'id':_0x3064c3(0x195),'handler':(_0x178ee1,_0xcb4d4e)=>{const _0x26b357=_0x3064c3;var _0x3e24ce,_0x5d237d,_0x11ee20,_0x1a6173;let _0x1bc930=_0x4143f6(_0x178ee1[_0x26b357(0x117)](_0x37b176),_0xcb4d4e);if(!_0x1bc930)return!0x1;let _0x9bd037=_0x178ee1[_0x26b357(0x117)](_0x5f556d),{unitId:_0x9e320c,subUnitId:_0x9d8e}=_0x1bc930,_0x2a53c4=_0x9bd037[_0x26b357(0x13d)](_0x9e320c,_0x9d8e);if(!_0x2a53c4)return!0x1;let _0xdbc597=_0x178ee1[_0x26b357(0x117)](_0x27fa21),{connectorShapeId:_0x10cc29,width:_0x43bcf1,height:_0x56ea87,left:_0x1f5a01,top:_0x3905f0,flipX:_0x1d52f6,flipY:_0x4ef2d4,rotation:_0x482a32,oldAdjustValues:_0x50b768,newAdjustValues:_0x4d36de,oldLineType:_0x790561,newLineType:_0x1afcfd,oldRelation:_0x47086f,newRelation:_0x24e2e0}=_0xcb4d4e,_0x16e018=_0xdbc597['getDrawingByParam']({'unitId':_0x9e320c,'subUnitId':_0x9d8e,'drawingId':_0x10cc29});if(!_0x16e018)return!0x1;let _0x417a35=_0x178ee1[_0x26b357(0x117)](G)['getShapeModel'](_0x9e320c,_0x9d8e,_0x10cc29);if(!_0x417a35)return!0x1;let _0x52b4f7=_0x178ee1[_0x26b357(0x117)](_0x54956e),_0x4c8e18=_0x178ee1[_0x26b357(0x117)](_0x1ee9eb),_0x491ee2=_0x178ee1[_0x26b357(0x117)](_0x1bf91c),_0x260654={..._0x16e018[_0x26b357(0x199)],'width':_0x43bcf1,'height':_0x56ea87,'left':_0x1f5a01,'top':_0x3905f0,'flipX':_0x1d52f6,'flipY':_0x4ef2d4,'angle':(_0x3e24ce=_0x482a32==null?(_0x5d237d=_0x16e018['transform'])==null?void 0x0:_0x5d237d[_0x26b357(0x12d)]:_0x482a32)==null?0x0:_0x3e24ce},_0x2504fe=_0x3c93f3(_0x260654,_0x2a53c4),_0x378a28=_0x254c3a(_0x260654,_0x2a53c4),_0x13f91a=_0x417a35['getShapeType'](),_0x4a5534=_0x417a35['getShapeData'](),_0x32a189={'unitId':_0x9e320c,'subUnitId':_0x9d8e,'drawingId':_0x10cc29,'drawingType':_0x58419a[_0x26b357(0x129)],'sheetTransform':_0x2504fe,'transform':_0x260654,'data':{'shapeType':_0x1afcfd||_0x790561||_0x13f91a,'shapeData':{..._0x4a5534,'adjustValues':_0x4d36de||_0x50b768||(_0x4a5534==null?void 0x0:_0x4a5534['adjustValues']),'relation':_0x24e2e0||_0x47086f||(_0x4a5534==null?void 0x0:_0x4a5534[_0x26b357(0x104)])}},'axisAlignSheetTransform':_0x378a28,'allowTransform':!0x0},{undo:_0x58230f,redo:_0xc7475,objects:_0x3f1c47}=_0xdbc597[_0x26b357(0x124)]([_0x32a189]),_0xc5c57=_0x491ee2[_0x26b357(0x182)]({'id':_0x100aa3['id'],'params':{'unitId':_0x9e320c,'drawings':[_0x32a189]}}),_0x20ac5b=[...(_0x11ee20=_0xc5c57[_0x26b357(0x108)])==null?[]:_0x11ee20,{'id':_0x494fdb['id'],'params':{'unitId':_0x9e320c,'subUnitId':_0x9d8e,'op':_0xc7475,'objects':_0x3f1c47,'type':_0x59c59f[_0x26b357(0x152)]}},{'id':_0x8d2dc3['id'],'params':[_0x9e320c]},..._0xc5c57[_0x26b357(0x189)],{'id':Y['id'],'params':{'unitId':_0x9e320c,'subUnitId':_0x9d8e,'shapeId':_0x10cc29,'shapeType':_0x1afcfd,'shapeData':{'adjustValues':_0x4d36de,'relation':_0x24e2e0}}}],_0x2a15c1=[...(_0x1a6173=_0xc5c57[_0x26b357(0x14a)])==null?[]:_0x1a6173,{'id':_0x494fdb['id'],'params':{'unitId':_0x9e320c,'subUnitId':_0x9d8e,'op':_0x58230f,'objects':_0x3f1c47,'type':_0x59c59f[_0x26b357(0x152)]}},{'id':_0x8d2dc3['id'],'params':[_0x9e320c]},..._0xc5c57[_0x26b357(0x187)],{'id':Y['id'],'params':{'unitId':_0x9e320c,'subUnitId':_0x9d8e,'shapeId':_0x10cc29,'shapeType':_0x13f91a,'shapeData':{..._0x4a5534,'adjustValues':_0x50b768||(_0x4a5534==null?void 0x0:_0x4a5534['adjustValues']),'relation':_0x47086f||(_0x4a5534==null?void 0x0:_0x4a5534[_0x26b357(0x104)])}}}];return _0x454d50(_0x20ac5b,_0x52b4f7)['result']?(_0x4c8e18[_0x26b357(0x154)]({'unitID':_0x9e320c,'undoMutations':_0x2a15c1,'redoMutations':_0x20ac5b}),!0x0):!0x1;}},re={'type':_0x37f9be[_0x3064c3(0x163)],'id':_0x3064c3(0x167),'handler':(_0x4ec11f,_0x3f2538)=>{const _0x17d3c6=_0x3064c3;var _0x459995,_0x450e12;let _0x4466c3=_0x4143f6(_0x4ec11f[_0x17d3c6(0x117)](_0x37b176),_0x3f2538);if(!_0x4466c3)return!0x1;let _0x4aaff3=_0x4ec11f[_0x17d3c6(0x117)](_0x5f556d),{unitId:_0x2033a0,subUnitId:_0x565694}=_0x4466c3,_0x46d211=_0x4aaff3['getSkeleton'](_0x2033a0,_0x565694);if(!_0x46d211)return!0x1;let _0x467705=_0x4ec11f[_0x17d3c6(0x117)](_0x27fa21),{shapeId:_0xda1e3a,width:_0x1d4e6c,height:_0x22a8dd,left:_0x381f4a,top:_0x162a79,flipX:_0x3186d5,flipY:_0x4d2d87,angle:_0x46b1c7,oldAdjustValues:_0x484c1d,newAdjustValues:_0x316f93,oldLineType:_0x197112,newLineType:_0x5c41ca}=_0x3f2538,_0x582b14=_0x467705[_0x17d3c6(0x180)]({'unitId':_0x2033a0,'subUnitId':_0x565694,'drawingId':_0xda1e3a});if(!_0x582b14)return!0x1;let _0x548ea3=_0x4ec11f[_0x17d3c6(0x117)](G)['getShapeModel'](_0x2033a0,_0x565694,_0xda1e3a);if(!_0x548ea3)return!0x1;let _0x1bddbd=_0x4ec11f['get'](_0x54956e),_0x5aa8d9=_0x4ec11f['get'](_0x1ee9eb),_0x1ed125=_0x4ec11f[_0x17d3c6(0x117)](_0x1bf91c),_0x260e4b={..._0x582b14[_0x17d3c6(0x199)],'width':_0x1d4e6c,'height':_0x22a8dd,'left':_0x381f4a,'top':_0x162a79,'flipX':_0x3186d5,'flipY':_0x4d2d87,'angle':_0x46b1c7},_0x16bc43=_0x3c93f3(_0x260e4b,_0x46d211),_0x1ae1f4=_0x254c3a(_0x260e4b,_0x46d211),_0x4093fb=_0x548ea3['getShapeType'](),_0x40ace2=_0x548ea3['getShapeData'](),_0x1bafc9={'unitId':_0x2033a0,'subUnitId':_0x565694,'drawingId':_0xda1e3a,'drawingType':_0x58419a[_0x17d3c6(0x129)],'sheetTransform':_0x16bc43,'transform':_0x260e4b,'data':{'shapeType':_0x5c41ca||_0x197112||_0x4093fb,'shapeData':{..._0x40ace2,'adjustValues':_0x316f93||_0x484c1d||(_0x40ace2==null?void 0x0:_0x40ace2[_0x17d3c6(0x128)])}},'axisAlignSheetTransform':_0x1ae1f4,'allowTransform':!0x0},{undo:_0xbdbfa3,redo:_0x1f0854,objects:_0x482476}=_0x467705['getBatchUpdateOp']([_0x1bafc9]),_0x25d34a=_0x1ed125[_0x17d3c6(0x182)]({'id':_0x100aa3['id'],'params':{'unitId':_0x2033a0,'drawings':[_0x1bafc9]}}),_0x128207=[...(_0x459995=_0x25d34a[_0x17d3c6(0x108)])==null?[]:_0x459995,{'id':_0x494fdb['id'],'params':{'unitId':_0x2033a0,'subUnitId':_0x565694,'op':_0x1f0854,'objects':_0x482476,'type':_0x59c59f[_0x17d3c6(0x152)]}},{'id':_0x8d2dc3['id'],'params':[_0x2033a0]},..._0x25d34a[_0x17d3c6(0x189)],{'id':Y['id'],'params':{'unitId':_0x2033a0,'subUnitId':_0x565694,'shapeId':_0xda1e3a,'shapeType':_0x5c41ca,'shapeData':{'adjustValues':_0x316f93}}}],_0x5d7129=[...(_0x450e12=_0x25d34a[_0x17d3c6(0x14a)])==null?[]:_0x450e12,{'id':_0x494fdb['id'],'params':{'unitId':_0x2033a0,'subUnitId':_0x565694,'op':_0xbdbfa3,'objects':_0x482476,'type':_0x59c59f['UPDATE']}},{'id':_0x8d2dc3['id'],'params':[_0x2033a0]},..._0x25d34a[_0x17d3c6(0x187)],{'id':Y['id'],'params':{'unitId':_0x2033a0,'subUnitId':_0x565694,'shapeId':_0xda1e3a,'shapeType':_0x4093fb,'shapeData':{..._0x40ace2,'adjustValues':_0x484c1d||(_0x40ace2==null?void 0x0:_0x40ace2[_0x17d3c6(0x128)])}}}];return _0x454d50(_0x128207,_0x1bddbd)[_0x17d3c6(0x10d)]?(_0x5aa8d9['pushUndoRedo']({'unitID':_0x2033a0,'undoMutations':_0x5d7129,'redoMutations':_0x128207}),!0x0):!0x1;}},Q={'id':_0x3064c3(0x141),'type':_0x37f9be[_0x3064c3(0x135)],'handler':(_0x53a344,_0x59c945)=>{const _0x4a5a28=_0x3064c3;let {unitId:_0x4411bd,subUnitId:_0x2db91a,shapeType:_0x51a53a,shapeId:_0x4fed41,shapeData:_0x3694bf}=_0x59c945,_0x189ee3=_0x53a344[_0x4a5a28(0x117)](G)[_0x4a5a28(0x192)](_0x4411bd,_0x2db91a,_0x4fed41);return _0x189ee3&&(_0x189ee3[_0x4a5a28(0x111)](_0x51a53a),_0x3694bf&&(_0x189ee3==null||_0x189ee3[_0x4a5a28(0x15c)](_0x3694bf))),!0x0;}},ie={'id':_0x3064c3(0x106),'type':_0x37f9be[_0x3064c3(0x163)],'handler':(_0x330f71,_0x509d26)=>{const _0x3a603e=_0x3064c3;if(!_0x509d26)return!0x1;let _0xaf443d=_0x330f71[_0x3a603e(0x117)](_0x54956e),_0x4b3b1e=_0x330f71[_0x3a603e(0x117)](G),_0x41ba8c=_0x330f71[_0x3a603e(0x117)](_0x1ee9eb),_0x2bae9a=[],_0x120e3c=[],{unitId:_0x48085f,subUnitId:_0x153cb9,shapeId:_0x2fa7f6,shapeType:_0x26cebe,shapeData:_0x5837b9}=_0x509d26,_0x49adc2=_0x4b3b1e[_0x3a603e(0x192)](_0x48085f,_0x153cb9,_0x2fa7f6);if(_0x49adc2){let _0x166a0b=_0x49adc2[_0x3a603e(0x17d)](),_0x388a33=Object['assign']({},_0x49adc2[_0x3a603e(0x162)]()),_0x2082e0={'unitId':_0x48085f,'subUnitId':_0x153cb9,'shapeId':_0x2fa7f6,'shapeType':_0x26cebe,'shapeData':_0x5837b9},_0x43dfbe={'unitId':_0x48085f,'subUnitId':_0x153cb9,'shapeId':_0x2fa7f6,'shapeType':_0x166a0b,'shapeData':_0x388a33};return _0x2bae9a[_0x3a603e(0x11e)]({'id':Q['id'],'params':_0x2082e0}),_0x120e3c[_0x3a603e(0x11e)]({'id':Q['id'],'params':_0x43dfbe}),_0x2bae9a[_0x3a603e(0x19b)](_0x2ced89=>_0xaf443d[_0x3a603e(0x13b)](_0x2ced89['id'],_0x2ced89[_0x3a603e(0x126)]))&&_0x41ba8c[_0x3a603e(0x154)]({'unitID':_0x48085f,'redoMutations':[..._0x2bae9a],'undoMutations':[..._0x120e3c]}),!0x0;}return!0x1;}};function _0x16c8(_0x59cc82,_0x472da4){_0x59cc82=_0x59cc82-0x101;const _0x2ec8c0=_0x2ec8();let _0x16c89d=_0x2ec8c0[_0x59cc82];return _0x16c89d;}var ae=_0x3064c3(0x138),oe='0.25.0-insiders.20260608-e4336f7';const se={};let ce=class extends _0x2aaa5f{constructor(_0x581cf5,_0x534980,_0x4523fc,_0x39fcd3,_0x343fc7){const _0x527e7e=_0x3064c3;super(),this[_0x527e7e(0x107)]=_0x581cf5,this[_0x527e7e(0x159)]=_0x534980,this['_sheetSkeletonService']=_0x4523fc,this[_0x527e7e(0x186)]=_0x39fcd3,this['_drawingManagerService']=_0x343fc7,this[_0x527e7e(0x181)](),this['_initCommandInterceptor']();}[_0x3064c3(0x181)](){const _0x458972=_0x3064c3;[J,ee,te,X,Z,ne,re,K,q,Q,Y][_0x458972(0x143)](_0xb6dea=>this['disposeWithMe'](this[_0x458972(0x107)][_0x458972(0x155)](_0xb6dea)));}[_0x3064c3(0x151)](){const _0x290caa=_0x3064c3;this[_0x290caa(0x14d)](this[_0x290caa(0x159)][_0x290caa(0x16f)]({'getMutations':_0x3c20a1=>{const _0xc24b08=_0x290caa;if(_0x3c20a1['id']===_0x27f815['id']){let {drawings:_0x220684}=_0x3c20a1[_0xc24b08(0x126)],_0x287888=_0x220684[_0xc24b08(0x165)](_0x2a7a57=>_0x2a7a57['drawingType']===_0x58419a['DRAWING_SHAPE']);if(_0x287888[_0xc24b08(0x118)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x587499=[],_0x2f5b6f=[];return _0x287888[_0xc24b08(0x143)](_0x3cee6e=>{const _0x4f12ab=_0xc24b08;let {unitId:_0x37ebfb,subUnitId:_0x5451e3,drawingId:_0x2f26e0}=_0x3cee6e,_0x23b2b1=this[_0x4f12ab(0x186)]['getShapeModel'](_0x37ebfb,_0x5451e3,_0x2f26e0);if(!_0x23b2b1)throw TypeError(_0x4f12ab(0x10b)+_0x23b2b1);_0x587499[_0x4f12ab(0x11e)]({'id':q['id'],'params':{'unitId':_0x37ebfb,'subUnitId':_0x5451e3,'shapeId':_0x2f26e0}}),_0x2f5b6f['push']({'id':K['id'],'params':{'unitId':_0x37ebfb,'subUnitId':_0x5451e3,'shapeId':_0x2f26e0,'shapeType':_0x23b2b1[_0x4f12ab(0x17d)](),'shapeData':_0x23b2b1['getShapeData']()}});let _0x53d953=this[_0x4f12ab(0x186)]['getBasicShapeRelation'](_0x37ebfb,_0x5451e3,_0x2f26e0);if(_0x53d953)for(let _0x16017d of _0x53d953){let _0x1fa169=_0x16017d[_0x4f12ab(0x19c)],_0x38f46f=_0x16017d[_0x4f12ab(0x14b)],_0x2c1496=_0x38f46f?{'from':void 0x0}:{'to':void 0x0},_0x131789=_0x38f46f?{'from':{'shapeId':_0x16017d[_0x4f12ab(0x120)],'cxnIndex':_0x16017d[_0x4f12ab(0x158)]}}:{'to':{'shapeId':_0x16017d['shapeId'],'cxnIndex':_0x16017d[_0x4f12ab(0x158)]}};_0x587499['push']({'id':Y['id'],'params':{'unitId':_0x37ebfb,'subUnitId':_0x5451e3,'shapeId':_0x1fa169,'shapeData':{'relation':_0x2c1496}}}),_0x2f5b6f[_0x4f12ab(0x11e)]({'id':Y['id'],'params':{'unitId':_0x37ebfb,'subUnitId':_0x5451e3,'shapeId':_0x1fa169,'shapeData':{'relation':_0x131789}}});}}),{'preRedos':_0x587499,'redos':[],'preUndos':[],'undos':_0x2f5b6f};}if(_0x3c20a1['id']===_0x100aa3['id']){let {drawings:_0x1bafef}=_0x3c20a1[_0xc24b08(0x126)],_0x1f9db0=_0x1bafef[_0xc24b08(0x165)](_0x1b2c5c=>_0x1b2c5c[_0xc24b08(0x12c)]===_0x58419a[_0xc24b08(0x129)]);if(_0x1f9db0[_0xc24b08(0x118)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x118249=[],_0x497161=[];for(let _0x377e0e of _0x1f9db0){let {unitId:_0x20a77d,subUnitId:_0x51559f,drawingId:_0x103744,transform:_0x3faf9f}=_0x377e0e;if(!_0x20a77d||!_0x51559f||!_0x103744||!_0x3faf9f)continue;let _0x321310=this[_0xc24b08(0x186)]['getShapeModel'](_0x20a77d,_0x51559f,_0x103744);if(!_0x321310)throw TypeError(_0xc24b08(0x10b)+_0x321310);if(_0x547139(_0x321310[_0xc24b08(0x17d)]())){let _0x2efe9d=this[_0xc24b08(0x186)][_0xc24b08(0x17e)](_0x20a77d,_0x51559f,_0x103744);_0x2efe9d&&(_0x118249[_0xc24b08(0x11e)]({'id':Y['id'],'params':{'unitId':_0x20a77d,'subUnitId':_0x51559f,'shapeId':_0x103744,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x497161[_0xc24b08(0x11e)]({'id':Y['id'],'params':{'unitId':_0x20a77d,'subUnitId':_0x51559f,'shapeId':_0x103744,'shapeData':{'relation':_0x2efe9d}}}));}else{let _0x53decd=this[_0xc24b08(0x186)][_0xc24b08(0x18e)](_0x20a77d,_0x51559f,_0x103744);if(_0x53decd&&_0x53decd[_0xc24b08(0x118)]>0x0)for(let _0x504e1f of _0x53decd){let _0xb693=_0x504e1f[_0xc24b08(0x19c)],_0x49dd41=_0x504e1f['isFrom'],_0x53454a=this[_0xc24b08(0x186)][_0xc24b08(0x192)](_0x20a77d,_0x51559f,_0xb693);if(!_0x53454a)continue;let _0xfd7476=_0x53454a[_0xc24b08(0x170)](),_0x103c0b=_0x53454a[_0xc24b08(0x18b)]();_0xfd7476&&_0x103c0b?this['_addLineRerouteUpdates'](_0x20a77d,_0x51559f,_0xb693,_0x53454a,_0xfd7476,_0x103c0b,_0x118249,_0x497161,_0x103744,_0x3faf9f):this[_0xc24b08(0x114)](_0x20a77d,_0x51559f,_0xb693,_0x53454a,_0x49dd41?_0xfd7476:_0x103c0b,_0x49dd41,_0x118249,_0x497161,_0x103744,_0x3faf9f);}}}return{'preRedos':[],'redos':_0x118249,'preUndos':_0x497161,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3064c3(0x146)](_0x52658a,_0x458061,_0x3e89b4,_0x4c005b,_0x45825c){const _0x170026=_0x3064c3;if(!_0x458061||!_0x3e89b4)return null;let {shapeId:_0x534a37,cxnIndex:_0x337e92}=_0x52658a,_0x598a73=this[_0x170026(0x186)][_0x170026(0x192)](_0x458061,_0x3e89b4,_0x534a37);if(!_0x598a73)return null;let _0x2e4a66=this[_0x170026(0x131)]['getDrawingByParam']({'unitId':_0x458061,'subUnitId':_0x3e89b4,'drawingId':_0x534a37});if(!(_0x2e4a66!=null&&_0x2e4a66[_0x170026(0x199)]))return null;let {left:_0x4cd3f7=0x0,top:_0x493459=0x0,width:_0x2cf925=0x0,height:_0x495be2=0x0,flipX:_0x37a0d7=!0x1,flipY:_0x26ce59=!0x1,angle:_0x42db7e}=_0x2e4a66[_0x170026(0x199)];if(_0x45825c&&_0x4c005b===_0x534a37){var _0x4dafb7,_0x234c78,_0x316f5b,_0x53b8c8,_0x436abe,_0x5c5ea8,_0x14343f;_0x4cd3f7=(_0x4dafb7=_0x45825c['left'])==null?_0x4cd3f7:_0x4dafb7,_0x493459=(_0x234c78=_0x45825c['top'])==null?_0x493459:_0x234c78,_0x2cf925=(_0x316f5b=_0x45825c[_0x170026(0x161)])==null?_0x2cf925:_0x316f5b,_0x495be2=(_0x53b8c8=_0x45825c[_0x170026(0x19a)])==null?_0x495be2:_0x53b8c8,_0x37a0d7=(_0x436abe=_0x45825c[_0x170026(0x198)])==null?_0x37a0d7:_0x436abe,_0x26ce59=(_0x5c5ea8=_0x45825c[_0x170026(0x191)])==null?_0x26ce59:_0x5c5ea8,_0x42db7e=(_0x14343f=_0x45825c[_0x170026(0x12d)])==null?_0x42db7e:_0x14343f;}_0x598a73[_0x170026(0x16a)]({'width':_0x2cf925,'height':_0x495be2});let _0x533e63=_0x598a73['getConnectionSiteList']()[_0x170026(0x11a)](_0x6aadde=>_0x6aadde['index']===_0x337e92);if(!_0x533e63)return null;let _0xf7f135=_0x37a0d7?_0x2cf925-_0x533e63['x']:_0x533e63['x'],_0x140dba=_0x26ce59?_0x495be2-_0x533e63['y']:_0x533e63['y'];if(_0x42db7e!==0x0&&_0x42db7e!=null){let _0x48a48a=_0x42db7e*Math['PI']/0xb4,_0x28f073=Math[_0x170026(0x18d)](_0x48a48a),_0x26e4fc=Math['sin'](_0x48a48a),_0x36db55=_0x2cf925/0x2,_0x3373b7=_0x495be2/0x2,_0x1dc055=_0xf7f135-_0x36db55,_0x50ea2c=_0x140dba-_0x3373b7;_0xf7f135=_0x36db55+_0x1dc055*_0x28f073-_0x50ea2c*_0x26e4fc,_0x140dba=_0x3373b7+_0x1dc055*_0x26e4fc+_0x50ea2c*_0x28f073;}_0xf7f135+=_0x4cd3f7,_0x140dba+=_0x493459;let _0x18ad81=_0x533e63[_0x170026(0x164)]/0xea60;_0x37a0d7&&(_0x18ad81=0xb4-_0x18ad81),_0x26ce59&&(_0x18ad81=-_0x18ad81),_0x18ad81+=_0x42db7e||0x0,_0x18ad81=(_0x18ad81%0x168+0x168)%0x168;let _0x7af288=_0x33aac3({'left':_0x4cd3f7,'top':_0x493459,'width':_0x2cf925,'height':_0x495be2},_0x42db7e||0x0);return{'point':{'x':_0xf7f135,'y':_0x140dba},'angle':_0x18ad81,'bounds':_0x7af288};}[_0x3064c3(0x142)](_0x56beb0,_0x245733,_0x3c5bca,_0x531996,_0x1e2679,_0x35b44e,_0x5c78e3,_0x39b720,_0xb4c7cc,_0x14fa4b){const _0x1e3b42=_0x3064c3;let _0x2bc955=this[_0x1e3b42(0x183)][_0x1e3b42(0x13d)](_0x56beb0,_0x245733);if(!_0x2bc955)return;let _0x4890ba=_0x531996[_0x1e3b42(0x17c)](),_0x2c612c=_0x531996[_0x1e3b42(0x140)](),_0x570239={},_0x18170c={};_0x2c612c['forEach'](_0x508df6=>{let _0x456622=_0x531996['getAdjustValueByName'](_0x508df6);_0x18170c[_0x508df6]=_0x456622==null?0x0:_0x456622;});let _0x474669=this['_getConnectPointInfo'](_0x1e2679,_0x56beb0,_0x245733,_0xb4c7cc,_0x14fa4b),_0x3cbaf0=this[_0x1e3b42(0x146)](_0x35b44e,_0x56beb0,_0x245733,_0xb4c7cc,_0x14fa4b);if(_0x474669&&_0x3cbaf0){let _0x325fce=_0x531996[_0x1e3b42(0x17d)](),_0xd1155f=_0x340a1c(_0x474669,_0x3cbaf0,_0x325fce),_0x35feae=_0x325fce;if(_0xd1155f){let _0x3e45f4=_0x5e4898(_0xd1155f,_0x531996['getShapeType']()),_0xcbf4e9=this[_0x1e3b42(0x131)][_0x1e3b42(0x125)](_0x56beb0,_0x245733);if(_0xcbf4e9&&_0xcbf4e9[_0x3c5bca]){let _0x363d8a=_0xcbf4e9[_0x3c5bca];_0x35feae=_0x3e45f4[_0x1e3b42(0x122)];for(let [_0x2f32c8,_0x52b5aa]of Object[_0x1e3b42(0x12b)](_0x3e45f4[_0x1e3b42(0x128)]))_0x570239[_0x2f32c8]=_0x52b5aa;let _0x5d496d={..._0x363d8a['transform'],'width':_0x3e45f4[_0x1e3b42(0x103)]['width'],'height':_0x3e45f4['worldRect'][_0x1e3b42(0x19a)],'left':_0x3e45f4['worldRect'][_0x1e3b42(0x149)],'top':_0x3e45f4[_0x1e3b42(0x103)]['top'],'flipX':_0x3e45f4[_0x1e3b42(0x103)][_0x1e3b42(0x198)],'flipY':_0x3e45f4['worldRect'][_0x1e3b42(0x191)],'angle':_0x3e45f4[_0x1e3b42(0x11b)]},_0x3f20fa=_0x3c93f3(_0x5d496d,_0x2bc955),_0x32e4b7=_0x254c3a(_0x5d496d,_0x2bc955),_0x36f5ac={'unitId':_0x56beb0,'subUnitId':_0x245733,'drawingType':_0x58419a[_0x1e3b42(0x129)],'drawingId':_0x3c5bca,'transform':_0x5d496d,'sheetTransform':_0x3f20fa,'axisAlignSheetTransform':_0x32e4b7},{unitId:_0x108723,subUnitId:_0x3b45e0,undo:_0x45ae83,redo:_0x55bb63,objects:_0x2875c6}=this[_0x1e3b42(0x131)][_0x1e3b42(0x124)]([_0x36f5ac]);_0x5c78e3['push']({'id':_0x494fdb['id'],'params':{'unitId':_0x108723,'subUnitId':_0x3b45e0,'op':_0x55bb63,'objects':_0x2875c6,'type':_0x59c59f[_0x1e3b42(0x152)]}}),_0x39b720['push']({'id':_0x494fdb['id'],'params':{'unitId':_0x108723,'subUnitId':_0x3b45e0,'op':_0x45ae83,'objects':_0x2875c6,'type':_0x59c59f[_0x1e3b42(0x152)]}});}_0x531996[_0x1e3b42(0x19d)]();}_0x5c78e3[_0x1e3b42(0x11e)]({'id':Y['id'],'params':{'unitId':_0x56beb0,'subUnitId':_0x245733,'shapeId':_0x3c5bca,'shapeType':_0x35feae,'shapeData':{'adjustValues':_0x570239,'relation':_0x4890ba}}}),_0x39b720[_0x1e3b42(0x11e)]({'id':Y['id'],'params':{'unitId':_0x56beb0,'subUnitId':_0x245733,'shapeId':_0x3c5bca,'shapeType':_0x325fce,'shapeData':{'adjustValues':_0x18170c,'relation':_0x4890ba}}});}}[_0x3064c3(0x114)](_0x527ff2,_0x44faf8,_0x48b7e5,_0x369d00,_0x353b49,_0x57833c,_0x1b15de,_0x3997a7,_0x54b6f7,_0x5296c8){const _0x28fc23=_0x3064c3;var _0x57a414;if(!_0x353b49)return;let _0x474099=this[_0x28fc23(0x183)][_0x28fc23(0x13d)](_0x527ff2,_0x44faf8);if(!_0x474099)return;let _0x5998fd=(_0x57a414=this[_0x28fc23(0x131)][_0x28fc23(0x180)]({'unitId':_0x527ff2,'subUnitId':_0x44faf8,'drawingId':_0x54b6f7}))==null?void 0x0:_0x57a414['transform'];if(!_0x5998fd)return;let _0x1de6ff=_0x5998fd['left']!==_0x5296c8[_0x28fc23(0x149)]||_0x5998fd[_0x28fc23(0x12a)]!==_0x5296c8[_0x28fc23(0x12a)],_0x11a444=_0x5998fd[_0x28fc23(0x161)]!==_0x5296c8[_0x28fc23(0x161)]||_0x5998fd['height']!==_0x5296c8[_0x28fc23(0x19a)],_0x2fa0e3=_0x5998fd[_0x28fc23(0x198)]!==_0x5296c8[_0x28fc23(0x198)]||_0x5998fd['flipY']!==_0x5296c8[_0x28fc23(0x191)],_0x242121=_0x5998fd[_0x28fc23(0x12d)]!==_0x5296c8[_0x28fc23(0x12d)];if(_0x1de6ff&&!_0x11a444&&!_0x2fa0e3&&!_0x242121){var _0x29d9ad,_0x39eed1,_0x6f208b,_0x5e8aae;let _0x4000f0=((_0x29d9ad=_0x5296c8[_0x28fc23(0x149)])==null?0x0:_0x29d9ad)-((_0x39eed1=_0x5998fd[_0x28fc23(0x149)])==null?0x0:_0x39eed1),_0xb6911d=((_0x6f208b=_0x5296c8[_0x28fc23(0x12a)])==null?0x0:_0x6f208b)-((_0x5e8aae=_0x5998fd[_0x28fc23(0x12a)])==null?0x0:_0x5e8aae),_0x6a4ba9=this['_drawingManagerService'][_0x28fc23(0x125)](_0x527ff2,_0x44faf8);if(_0x6a4ba9&&_0x6a4ba9[_0x48b7e5]){var _0x22f73d,_0x4e908c,_0x3760ab,_0x4cc0c5;let _0x238eb9=_0x6a4ba9[_0x48b7e5],_0x3d2167={..._0x238eb9[_0x28fc23(0x199)],'left':((_0x22f73d=(_0x4e908c=_0x238eb9[_0x28fc23(0x199)])==null?void 0x0:_0x4e908c[_0x28fc23(0x149)])==null?0x0:_0x22f73d)+_0x4000f0,'top':((_0x3760ab=(_0x4cc0c5=_0x238eb9['transform'])==null?void 0x0:_0x4cc0c5[_0x28fc23(0x12a)])==null?0x0:_0x3760ab)+_0xb6911d},_0x5c3a6e=_0x3c93f3(_0x3d2167,_0x474099),_0x49fc51=_0x254c3a(_0x3d2167,_0x474099),_0xefd74a={'unitId':_0x527ff2,'subUnitId':_0x44faf8,'drawingType':_0x58419a['DRAWING_SHAPE'],'drawingId':_0x48b7e5,'transform':_0x3d2167,'sheetTransform':_0x5c3a6e,'axisAlignSheetTransform':_0x49fc51},{unitId:_0x1f5739,subUnitId:_0xbb0884,undo:_0x3dc62a,redo:_0x21801c,objects:_0x57bd43}=this[_0x28fc23(0x131)][_0x28fc23(0x124)]([_0xefd74a]);_0x1b15de[_0x28fc23(0x11e)]({'id':_0x494fdb['id'],'params':{'unitId':_0x1f5739,'subUnitId':_0xbb0884,'op':_0x21801c,'objects':_0x57bd43,'type':_0x59c59f['UPDATE']}}),_0x3997a7[_0x28fc23(0x11e)]({'id':_0x494fdb['id'],'params':{'unitId':_0x1f5739,'subUnitId':_0xbb0884,'op':_0x3dc62a,'objects':_0x57bd43,'type':_0x59c59f[_0x28fc23(0x152)]}});}}else{let _0x98db1=_0x369d00[_0x28fc23(0x170)](),_0xab25a3=_0x369d00[_0x28fc23(0x18b)]();this[_0x28fc23(0x142)](_0x527ff2,_0x44faf8,_0x48b7e5,_0x369d00,_0x98db1,_0xab25a3,_0x1b15de,_0x3997a7,_0x54b6f7,_0x5296c8);}}};ce=W([U(0x0,_0x54956e),U(0x1,_0x30ed8c(_0x1bf91c)),U(0x2,_0x30ed8c(_0x5f556d)),U(0x3,_0x30ed8c(G)),U(0x4,_0x30ed8c(_0x1fa7de))],ce);function _0x2ec8(){const _0x29153f=['isLineShape','_deserializeShapeForUnit','setShapeData','addShape','shapeData','413595NUUOiP','string','width','getShapeData','COMMAND','ang','filter','140cVnREY','sheet.command.update-line-shape-resize','position','toPrimitive','updateContext','resizeEnabled','553618ZsUacM','getCellIndexAndOffsetByPosition','keys','interceptCommand','getStartConnectInfo','insertShape','fill','symbol','UNIVER_SHEET','startX','add','getCellWithCoordByIndex','_linesIds','sheet.command.set-shape-drawing-data','range','clear','getShapeRelation','getShapeType','getLineShapeRelation','_groupIds','getDrawingByParam','_initCommands','onCommandExecute','_sheetSkeletonService','7wsaBft','setConfig','_sheetsShapeService','undos','155586lfLYqJ','redos','ensureSkeleton','getEndConnectInfo','object','cos','getBasicShapeRelation','_resourcesManagerService','_serializeShapeForUnit','flipY','getShapeModel','sheet.command.set-shape-rotate','rotateEnabled','sheet.command.update-connector-relation','INSERT','from','flipX','transform','height','every','lineShapeId','removeLinePoints','call','getBasicShapeType','worldRect','relation','getShapeTypeById','sheet.command.update-shape-type','_commandService','preRedos','delete','has','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','sheet.command.insert-shape','result','_shapeModelManagerMap','SHEET_SHAPE_PLUGIN','parse','setShapeType','_initSnapshot','default','_addLineFollowShapeUpdates','_shapes','packageName','get','length','_ensureShapeModelManager','find','rotation','sheet.mutation.update-shape-data','fromJSON','push','3BxauaA','shapeId','12805050gmLgIu','lineType','dispose','getBatchUpdateOp','getDrawingData','params','sheet.command.set-shape-text-vertical-toggle','adjustValues','DRAWING_SHAPE','top','entries','drawingType','angle','iterator','pluginName','data','_drawingManagerService','set','function','decorate','MUTATION','2901024mMBSIR','getShapeTextData','@univerjs-pro/sheets-shape','defineProperty','_configService','syncExecuteCommand','sheet.command.toggle-shape-flip','getSkeleton','7263552XqCBeq','getOwnPropertyDescriptor','getAdjustNames','sheet.mutation.update-shape-type','_addLineRerouteUpdates','forEach','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','version','_getConnectPointInfo','_config','26088AXfLPS','left','preUndos','isFrom','borderEnabled','disposeWithMe','toJSON','stringify','hasShape','_initCommandInterceptor','UPDATE','startY','pushUndoRedo','registerCommand','_injector','removeShape','cxnIndex','_sheetInterceptorService'];_0x2ec8=function(){return _0x29153f;};return _0x2ec8();}let $=class extends _0x35a19d{constructor(_0x2a8b1f=se,_0x58836f,_0x5a9ed3,_0x32e6ea){const _0x35012e=_0x3064c3;super(),this[_0x35012e(0x147)]=_0x2a8b1f,this['_injector']=_0x58836f,this[_0x35012e(0x107)]=_0x5a9ed3,this[_0x35012e(0x13a)]=_0x32e6ea;let {..._0x3102b4}=_0x4d5faa({},se,this[_0x35012e(0x147)]);this['_configService'][_0x35012e(0x185)]('sheets-shape.config',_0x3102b4);}['onStarting'](){const _0x4f9eba=_0x3064c3;let _0x42ef62=this[_0x4f9eba(0x156)];[[H],[G],[ce]][_0x4f9eba(0x143)](_0x35c4b7=>_0x42ef62['add'](_0x35c4b7)),_0x386802(_0x42ef62,[[G],[ce]]);}};V($,'type',_0x19509d[_0x3064c3(0x174)]),V($,_0x3064c3(0x12f),_0x3064c3(0x10f)),V($,_0x3064c3(0x116),ae),V($,_0x3064c3(0x145),oe),$=W([_0xf41773(_0x10c7c2),U(0x1,_0x30ed8c(_0x14135b)),U(0x2,_0x54956e),U(0x3,_0x315041)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
@@ -1,18 +1,3 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
1
  import type { ILineType, IShapeRelation } from '@univerjs-pro/engine-shape';
17
2
  import type { ICommand } from '@univerjs/core';
18
3
  import type { ISheetCommandSharedParams } from '@univerjs/sheets';
@@ -9,7 +9,8 @@ import { FShape } from './f-shape';
9
9
  * @example
10
10
  * ```ts
11
11
  * const fWorkbook = univerAPI.getActiveWorkbook();
12
- * const fWorksheet = fWorkbook.getActiveSheet();
12
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
13
+ * if (!fWorksheet) return;
13
14
  *
14
15
  * // Create a straight connector with arrows
15
16
  * const connectorInfo = fWorksheet.newConnector()
@@ -40,7 +41,8 @@ export declare class FConnectorShape extends FShape {
40
41
  * @example
41
42
  * ```ts
42
43
  * const fWorkbook = univerAPI.getActiveWorkbook();
43
- * const fWorksheet = fWorkbook.getActiveSheet();
44
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
45
+ * if (!fWorksheet) return;
44
46
  *
45
47
  * const connectorInfo = fWorksheet.newConnector()
46
48
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
@@ -59,7 +61,8 @@ export declare class FConnectorShape extends FShape {
59
61
  * @example
60
62
  * ```ts
61
63
  * const fWorkbook = univerAPI.getActiveWorkbook();
62
- * const fWorksheet = fWorkbook.getActiveSheet();
64
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
65
+ * if (!fWorksheet) return;
63
66
  *
64
67
  * const connectorInfo = fWorksheet.newConnector()
65
68
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
@@ -78,7 +81,8 @@ export declare class FConnectorShape extends FShape {
78
81
  * @example
79
82
  * ```ts
80
83
  * const fWorkbook = univerAPI.getActiveWorkbook();
81
- * const fWorksheet = fWorkbook.getActiveSheet();
84
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
85
+ * if (!fWorksheet) return;
82
86
  *
83
87
  * const connectorInfo = fWorksheet.newConnector()
84
88
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
@@ -99,7 +103,8 @@ export declare class FConnectorShape extends FShape {
99
103
  * @example
100
104
  * ```ts
101
105
  * const fWorkbook = univerAPI.getActiveWorkbook();
102
- * const fWorksheet = fWorkbook.getActiveSheet();
106
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
107
+ * if (!fWorksheet) return;
103
108
  *
104
109
  * const connectorInfo = fWorksheet.newConnector()
105
110
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
@@ -120,7 +125,8 @@ export declare class FConnectorShape extends FShape {
120
125
  * @example
121
126
  * ```ts
122
127
  * const fWorkbook = univerAPI.getActiveWorkbook();
123
- * const fWorksheet = fWorkbook.getActiveSheet();
128
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
129
+ * if (!fWorksheet) return;
124
130
  *
125
131
  * const connectorInfo = fWorksheet.newConnector()
126
132
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
@@ -144,7 +150,8 @@ export declare class FConnectorShape extends FShape {
144
150
  * @example
145
151
  * ```ts
146
152
  * const fWorkbook = univerAPI.getActiveWorkbook();
147
- * const fWorksheet = fWorkbook.getActiveSheet();
153
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
154
+ * if (!fWorksheet) return;
148
155
  * const shapes = fWorksheet.getShapes();
149
156
  * const connector = shapes.find((s) => s.isLineShape());
150
157
  *
@@ -165,7 +172,8 @@ export declare class FConnectorShape extends FShape {
165
172
  * @example
166
173
  * ```ts
167
174
  * const fWorkbook = univerAPI.getActiveWorkbook();
168
- * const fWorksheet = fWorkbook.getActiveSheet();
175
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
176
+ * if (!fWorksheet) return;
169
177
  * const shapes = fWorksheet.getShapes();
170
178
  * const connector = shapes.find((s) => s.isLineShape());
171
179
  *
@@ -10,7 +10,8 @@ export interface IFSheetsShapeEnumMixin {
10
10
  * @example
11
11
  * ```ts
12
12
  * const fWorkbook = univerAPI.getActiveWorkbook();
13
- * const fWorksheet = fWorkbook.getActiveSheet();
13
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
14
+ * if (!fWorksheet) return;
14
15
  *
15
16
  * // Create a rectangle shape.
16
17
  * const shapeInfo = fWorksheet.newShape()
@@ -28,7 +29,8 @@ export interface IFSheetsShapeEnumMixin {
28
29
  * @example
29
30
  * ```ts
30
31
  * const fWorkbook = univerAPI.getActiveWorkbook();
31
- * const fWorksheet = fWorkbook.getActiveSheet();
32
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
33
+ * if (!fWorksheet) return;
32
34
  *
33
35
  * // Create a rectangle shape with solid fill.
34
36
  * const shapeInfo = fWorksheet.newShape()
@@ -47,7 +49,8 @@ export interface IFSheetsShapeEnumMixin {
47
49
  * @example
48
50
  * ```ts
49
51
  * const fWorkbook = univerAPI.getActiveWorkbook();
50
- * const fWorksheet = fWorkbook.getActiveSheet();
52
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
53
+ * if (!fWorksheet) return;
51
54
  *
52
55
  * // Create a rectangle shape with linear gradient fill.
53
56
  * const shapeInfo = fWorksheet.newShape()
@@ -75,7 +78,8 @@ export interface IFSheetsShapeEnumMixin {
75
78
  * @example
76
79
  * ```ts
77
80
  * const fWorkbook = univerAPI.getActiveWorkbook();
78
- * const fWorksheet = fWorkbook.getActiveSheet();
81
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
82
+ * if (!fWorksheet) return;
79
83
  *
80
84
  * // Create a rectangle shape with solid line stroke type.
81
85
  * const shapeInfo = fWorksheet.newShape()
@@ -95,7 +99,8 @@ export interface IFSheetsShapeEnumMixin {
95
99
  * @example
96
100
  * ```ts
97
101
  * const fWorkbook = univerAPI.getActiveWorkbook();
98
- * const fWorksheet = fWorkbook.getActiveSheet();
102
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
103
+ * if (!fWorksheet) return;
99
104
  *
100
105
  * // Create a rectangle shape with dashed stroke.
101
106
  * const shapeInfo = fWorksheet.newShape()
@@ -114,7 +119,8 @@ export interface IFSheetsShapeEnumMixin {
114
119
  * @example
115
120
  * ```ts
116
121
  * const fWorkbook = univerAPI.getActiveWorkbook();
117
- * const fWorksheet = fWorkbook.getActiveSheet();
122
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
123
+ * if (!fWorksheet) return;
118
124
  *
119
125
  * // Create a rectangle shape with round line cap.
120
126
  * const shapeInfo = fWorksheet.newShape()
@@ -133,7 +139,8 @@ export interface IFSheetsShapeEnumMixin {
133
139
  * @example
134
140
  * ```ts
135
141
  * const fWorkbook = univerAPI.getActiveWorkbook();
136
- * const fWorksheet = fWorkbook.getActiveSheet();
142
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
143
+ * if (!fWorksheet) return;
137
144
  *
138
145
  * // Create a rectangle shape with round line join.
139
146
  * const shapeInfo = fWorksheet.newShape()
@@ -152,7 +159,8 @@ export interface IFSheetsShapeEnumMixin {
152
159
  * @example
153
160
  * ```ts
154
161
  * const fWorkbook = univerAPI.getActiveWorkbook();
155
- * const fWorksheet = fWorkbook.getActiveSheet();
162
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
163
+ * if (!fWorksheet) return;
156
164
  *
157
165
  * // Create a line shape with arrow type.
158
166
  * const shapeInfo = fWorksheet.newConnector()
@@ -172,7 +180,8 @@ export interface IFSheetsShapeEnumMixin {
172
180
  * @example
173
181
  * ```ts
174
182
  * const fWorkbook = univerAPI.getActiveWorkbook();
175
- * const fWorksheet = fWorkbook.getActiveSheet();
183
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
184
+ * if (!fWorksheet) return;
176
185
  * // Create a line shape with arrow size.
177
186
  * const shapeInfo = fWorksheet.newConnector()
178
187
  * .setShapeType(univerAPI.Enum.ShapeTypeEnum.BentConnector3)