@univerjs-pro/sheets-shape 0.25.0 → 1.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1a417c=_0x6126;(function(_0x1af039,_0x59c209){const _0x53dc21=_0x6126,_0x493f5c=_0x1af039();while(!![]){try{const _0x583380=parseInt(_0x53dc21(0x1f3))/0x1*(-parseInt(_0x53dc21(0x24f))/0x2)+-parseInt(_0x53dc21(0x1e7))/0x3*(parseInt(_0x53dc21(0x20b))/0x4)+parseInt(_0x53dc21(0x264))/0x5*(-parseInt(_0x53dc21(0x1df))/0x6)+-parseInt(_0x53dc21(0x20d))/0x7+parseInt(_0x53dc21(0x24c))/0x8*(-parseInt(_0x53dc21(0x267))/0x9)+parseInt(_0x53dc21(0x1e6))/0xa+-parseInt(_0x53dc21(0x208))/0xb*(-parseInt(_0x53dc21(0x216))/0xc);if(_0x583380===_0x59c209)break;else _0x493f5c['push'](_0x493f5c['shift']());}catch(_0x390e0c){_0x493f5c['push'](_0x493f5c['shift']());}}}(_0x20c3,0x5cae0));import{ShapeModel as _0x35c2ea,computeConnectorRouteLayout as _0x4d5188,getBasicShapeRotateBound as _0x4dd2cd,isConnectorShape as _0x33d47c,routeConnectorLineShape as _0x29d7a4}from'@univerjs-pro/engine-shape';import{CommandType as _0x5229c7,DependentOn as _0x4c451e,Disposable as _0x4e5f9f,DrawingTypeEnum as _0x5d2b71,ICommandService as _0x285fd2,IConfigService as _0x3c3bf5,IResourceManagerService as _0x5cf65e,IUndoRedoService as _0x2b286c,IUniverInstanceService as _0x32f2cd,Inject as _0xca6a11,Injector as _0x4e72d8,Plugin as _0x2582f4,UniverInstanceType as _0x26716f,generateRandomId as _0x26ccda,merge as _0x3c605c,sequenceExecute as _0x3ffddd,touchDependencies as _0x5c294e}from'@univerjs/core';import{SheetInterceptorService as _0x19401e,SheetSkeletonService as _0x55630f,getSheetCommandTarget as _0x4e7fb4}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0xeb678b,DrawingApplyType as _0x5af201,ISheetDrawingService as _0x3339be,InsertSheetDrawingCommand as _0x1696e3,RemoveSheetDrawingCommand as _0x56569e,SetDrawingApplyMutation as _0x2ae4cd,SetSheetDrawingCommand as _0x28e6ad,transformToAxisAlignPosition as _0x64f7c2,transformToDrawingPosition as _0x5aa0b0}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x3785ee}from'@univerjs-pro/license';import{IDrawingManagerService as _0x525c29}from'@univerjs/drawing';const I=0xc8,L=0xc8;function _0x20c3(){const _0x59e26b=['drawingType','_configService','filter','removeLinePoints','flipX','212442IlXkNc','COMMAND','getShapeTypeById','getShapeData','get','_getConnectPointInfo','UPDATE','3057090SWRZXr','3dVGcCs','from','getCellWithCoordByIndex','set','length','cxnIndex','setShapeData','lineShapeId','setShapeType','interceptCommand','shapeData','isLineShape','326342pCcrEg','ensureSkeleton','delete','_resourcesManagerService','sheet.mutation.update-shape-data','left','sheet.mutation.update-shape-type','pushUndoRedo','getShapeModel','undos','has','decorate','adjustValues','_shapes','fill','preRedos','function','getDrawingByParam','_drawingManagerService','rotation','sheet.command.set-shape-drawing-data','21086725EDQeKT','_addLineFollowShapeUpdates','registerPluginResource','2628968iLlTjf','result','1771728cZeLpR','onStarting','defineProperty','getBasicShapeRelation','borderEnabled','top','SHEET_SHAPE_PLUGIN','sheet.command.update-shape-type','_initCommands','12yqPwoF','_linesIds','assign','syncExecuteCommand','_groupIds','flipY','shapeId','string','sin','getShapeType','@univerjs-pro/sheets-shape','UNIVER_SHEET','getShapeRelation','clear','sheet.command.update-connector-relation','height','sheet.command.update-line-shape-resize','forEach','data','rotateEnabled','getDrawingData','onCommandExecute','isFrom','resizeEnabled','default','getCellIndexAndOffsetByPosition','_disposed','MUTATION','getSkeleton','disposeWithMe','sheet.mutation.insert-shape','_sheetsShapeService','getStartConnectInfo','_sheetSkeletonService','REMOVE','_commandService','getLineShapeRelation','redos','params','INSERT','find','pluginName','_sheetInterceptorService','ang','preUndos','_initCommandInterceptor','_injector','removeShape','toJSON','dispose','packageName','lineType','angle','sheet.command.set-shape-rotate','8LxudKx','_deserializeShapeForUnit','worldRect','2ggRwEG','getConnectionSiteList','DRAWING_SHAPE','startX','_ensureShapeModelManager','range','getBatchUpdateOp','addShape','getEndConnectInfo','type','toPrimitive','position','getAdjustValueByName','fromJSON','add','insertShape','isHorizontal','prototype','_addLineRerouteUpdates','symbol','getAdjustNames','5hpcMcw','_shapeModelManagerMap','push','5138757bbUSbw','relation','iterator','setConfig','object','startY','hasShape','constructor','width','transform','keys','_config','getShapeTextData','sheet.command.set-shape-text-vertical-toggle'];_0x20c3=function(){return _0x59e26b;};return _0x20c3();}function R(_0x88740d){'@babel/helpers - typeof';const _0x3734b3=_0x6126;return R=typeof Symbol==_0x3734b3(0x203)&&typeof Symbol[_0x3734b3(0x269)]==_0x3734b3(0x262)?function(_0x57e190){return typeof _0x57e190;}:function(_0x1f6fc8){const _0xe52e73=_0x3734b3;return _0x1f6fc8&&typeof Symbol==_0xe52e73(0x203)&&_0x1f6fc8[_0xe52e73(0x26e)]===Symbol&&_0x1f6fc8!==Symbol[_0xe52e73(0x260)]?_0xe52e73(0x262):typeof _0x1f6fc8;},R(_0x88740d);}function z(_0x5eee0e,_0x599c1a){const _0x999ee4=_0x6126;if(R(_0x5eee0e)!=_0x999ee4(0x26b)||!_0x5eee0e)return _0x5eee0e;var _0x2762e5=_0x5eee0e[Symbol[_0x999ee4(0x259)]];if(_0x2762e5!==void 0x0){var _0x26255e=_0x2762e5['call'](_0x5eee0e,_0x599c1a||_0x999ee4(0x22e));if(R(_0x26255e)!='object')return _0x26255e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x599c1a===_0x999ee4(0x21d)?String:Number)(_0x5eee0e);}function B(_0x59eab9){const _0x301ba2=_0x6126;var _0x1df4eb=z(_0x59eab9,_0x301ba2(0x21d));return R(_0x1df4eb)=='symbol'?_0x1df4eb:_0x1df4eb+'';}function V(_0x30c52f,_0x402147,_0x2887f6){const _0x3c4aaf=_0x6126;return(_0x402147=B(_0x402147))in _0x30c52f?Object[_0x3c4aaf(0x20f)](_0x30c52f,_0x402147,{'value':_0x2887f6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x30c52f[_0x402147]=_0x2887f6,_0x30c52f;}var H=class extends _0x4e5f9f{constructor(){const _0x34700f=_0x6126;super(),V(this,_0x34700f(0x200),new Map()),V(this,_0x34700f(0x217),new Set()),V(this,'_groupIds',new Set());}[_0x1a417c(0x256)](_0x1076ac,_0x136093,_0x443021){const _0x103611=_0x1a417c;let _0x1b0e48=new _0x35c2ea(_0x1076ac,_0x136093,_0x443021);return this[_0x103611(0x200)]['set'](_0x136093,_0x1b0e48),_0x33d47c(_0x1076ac)&&this[_0x103611(0x217)][_0x103611(0x25d)](_0x136093),_0x1b0e48;}[_0x1a417c(0x210)](_0x5af173){const _0x1971ed=_0x1a417c;let _0x4f0144=[];for(let _0x169008 of this[_0x1971ed(0x217)]){let _0x5103b9=this['_shapes'][_0x1971ed(0x1e3)](_0x169008);if(_0x5103b9){let _0x521976=_0x5103b9[_0x1971ed(0x222)]();if(_0x521976){var _0x1ff969,_0x30d652;((_0x1ff969=_0x521976[_0x1971ed(0x1e8)])==null?void 0x0:_0x1ff969[_0x1971ed(0x21c)])===_0x5af173&&_0x4f0144[_0x1971ed(0x266)]({..._0x521976[_0x1971ed(0x1e8)],'lineShapeId':_0x169008,'isFrom':!0x0}),((_0x30d652=_0x521976['to'])==null?void 0x0:_0x30d652[_0x1971ed(0x21c)])===_0x5af173&&_0x4f0144[_0x1971ed(0x266)]({..._0x521976['to'],'lineShapeId':_0x169008,'isFrom':!0x1});}}}return _0x4f0144;}[_0x1a417c(0x23a)](_0x1a0607){const _0x157313=_0x1a417c;let _0x1bda51=this[_0x157313(0x200)]['get'](_0x1a0607);if(_0x1bda51)return _0x1bda51[_0x157313(0x222)]();}[_0x1a417c(0x21f)](_0x2f30c3){const _0x17ba17=_0x1a417c;let _0x491e1f=this[_0x17ba17(0x200)]['get'](_0x2f30c3);if(_0x491e1f)return _0x491e1f[_0x17ba17(0x21f)]();}['hasShape'](_0x37bbd6){const _0x512c10=_0x1a417c;return this[_0x512c10(0x200)][_0x512c10(0x1fd)](_0x37bbd6);}[_0x1a417c(0x245)](_0x32c936){const _0x3841f5=_0x1a417c;let _0x34052c=this[_0x3841f5(0x200)]['get'](_0x32c936);_0x34052c&&(_0x33d47c(_0x34052c[_0x3841f5(0x21f)]())&&this[_0x3841f5(0x217)]['delete'](_0x32c936),this[_0x3841f5(0x200)][_0x3841f5(0x1f5)](_0x32c936));}['toJSON'](){const _0x20eb57=_0x1a417c;let _0x1d234d=[];return this['_shapes'][_0x20eb57(0x227)](_0x270762=>{_0x1d234d['push'](_0x270762['toJSON']());}),_0x1d234d;}[_0x1a417c(0x25c)](_0x31e6c6){const _0x55cae0=_0x1a417c;for(let _0x49fdd1 of _0x31e6c6){let {id:_0x3fe395,shapeType:_0x515ccf}=_0x49fdd1,_0x342c36=this[_0x55cae0(0x256)](_0x515ccf,_0x3fe395,_0x49fdd1[_0x55cae0(0x1f1)]);_0x342c36&&_0x342c36[_0x55cae0(0x1f2)]()&&this[_0x55cae0(0x217)][_0x55cae0(0x25d)](_0x3fe395);}}[_0x1a417c(0x247)](){const _0x22f7fd=_0x1a417c;this[_0x22f7fd(0x230)]||(this[_0x22f7fd(0x200)][_0x22f7fd(0x227)](_0x4f57aa=>{const _0xbc8bd0=_0x22f7fd;_0x4f57aa[_0xbc8bd0(0x247)]();}),this['_shapes']['clear'](),this['_linesIds'][_0x22f7fd(0x223)](),this[_0x22f7fd(0x21a)][_0x22f7fd(0x223)](),super[_0x22f7fd(0x247)]());}};function U(_0x22c5b4,_0x1325e1){return function(_0x2e5034,_0xf56a6a){_0x1325e1(_0x2e5034,_0xf56a6a,_0x22c5b4);};}function W(_0xc6bf37,_0x32c429,_0x439ed9,_0x3f9c50){const _0x17c0db=_0x1a417c;var _0x3594ee=arguments[_0x17c0db(0x1eb)],_0x283dc0=_0x3594ee<0x3?_0x32c429:_0x3f9c50===null?_0x3f9c50=Object['getOwnPropertyDescriptor'](_0x32c429,_0x439ed9):_0x3f9c50,_0x4c65de;if(typeof Reflect==_0x17c0db(0x26b)&&typeof Reflect[_0x17c0db(0x1fe)]==_0x17c0db(0x203))_0x283dc0=Reflect[_0x17c0db(0x1fe)](_0xc6bf37,_0x32c429,_0x439ed9,_0x3f9c50);else{for(var _0x492eee=_0xc6bf37[_0x17c0db(0x1eb)]-0x1;_0x492eee>=0x0;_0x492eee--)(_0x4c65de=_0xc6bf37[_0x492eee])&&(_0x283dc0=(_0x3594ee<0x3?_0x4c65de(_0x283dc0):_0x3594ee>0x3?_0x4c65de(_0x32c429,_0x439ed9,_0x283dc0):_0x4c65de(_0x32c429,_0x439ed9))||_0x283dc0);}return _0x3594ee>0x3&&_0x283dc0&&Object[_0x17c0db(0x20f)](_0x32c429,_0x439ed9,_0x283dc0),_0x283dc0;}let G=class extends _0x4e5f9f{constructor(_0x36bf1f){const _0x102ff2=_0x1a417c;super(),this['_resourcesManagerService']=_0x36bf1f,V(this,_0x102ff2(0x265),new Map()),this['_initSnapshot']();}[_0x1a417c(0x253)](_0x3b87dd,_0x2cd931){const _0x1f162a=_0x1a417c;let _0x38f176=this[_0x1f162a(0x265)][_0x1f162a(0x1e3)](_0x3b87dd);_0x38f176||(_0x38f176=new Map(),this[_0x1f162a(0x265)][_0x1f162a(0x1ea)](_0x3b87dd,_0x38f176));let _0x396231=_0x38f176[_0x1f162a(0x1e3)](_0x2cd931);return _0x396231||(_0x396231=new H(),_0x38f176['set'](_0x2cd931,_0x396231)),_0x396231;}['insertShape'](_0x5f31db,_0x4a69a0,_0x18d581,_0x1b7570,_0x34394a){const _0x5a93ce=_0x1a417c;this[_0x5a93ce(0x253)](_0x5f31db,_0x4a69a0)[_0x5a93ce(0x256)](_0x18d581,_0x1b7570,_0x34394a);}[_0x1a417c(0x245)](_0x1b660b,_0x2e6b8e,_0x2d2cc3){const _0x4b7c20=_0x1a417c;this['_ensureShapeModelManager'](_0x1b660b,_0x2e6b8e)[_0x4b7c20(0x245)](_0x2d2cc3);}['getBasicShapeType'](_0x307af0,_0x2e96c6,_0xa8e032){const _0x4b8075=_0x1a417c;return this[_0x4b8075(0x253)](_0x307af0,_0x2e96c6)[_0x4b8075(0x21f)](_0xa8e032);}[_0x1a417c(0x21f)](_0x4624df,_0x3976fe,_0x339567){const _0x1cd31e=_0x1a417c;return this[_0x1cd31e(0x253)](_0x4624df,_0x3976fe)['getShapeType'](_0x339567);}[_0x1a417c(0x26d)](_0x46196d,_0x54161b,_0x9a316){const _0x21f226=_0x1a417c;return this['_ensureShapeModelManager'](_0x46196d,_0x54161b)[_0x21f226(0x26d)](_0x9a316);}[_0x1a417c(0x1e1)](_0x349bb6,_0x10dd3c,_0x37a502){const _0x4b5772=_0x1a417c;return this['_ensureShapeModelManager'](_0x349bb6,_0x10dd3c)[_0x4b5772(0x21f)](_0x37a502);}['getShapeDataById'](_0x2e461f,_0x4af949,_0x34af3e){const _0x142a5e=_0x1a417c;let _0x2ca2b5=this[_0x142a5e(0x253)](_0x2e461f,_0x4af949);if(!_0x2ca2b5[_0x142a5e(0x21f)](_0x34af3e))return;let _0x2b65a3=_0x2ca2b5[_0x142a5e(0x200)]['get'](_0x34af3e);if(_0x2b65a3)return _0x2b65a3[_0x142a5e(0x1e2)]();}[_0x1a417c(0x1fb)](_0x2a0098,_0x5a7d89,_0x4b4d23){const _0x58eb2c=_0x1a417c;return this[_0x58eb2c(0x253)](_0x2a0098,_0x5a7d89)[_0x58eb2c(0x200)][_0x58eb2c(0x1e3)](_0x4b4d23);}[_0x1a417c(0x210)](_0x1714fd,_0x2e3659,_0x3d7a97){const _0x413f9c=_0x1a417c;return this[_0x413f9c(0x253)](_0x1714fd,_0x2e3659)[_0x413f9c(0x210)](_0x3d7a97);}[_0x1a417c(0x23a)](_0x3812e9,_0x58b3b7,_0x557e6f){const _0x58bdd8=_0x1a417c;let _0x10ef65=this[_0x58bdd8(0x253)](_0x3812e9,_0x58b3b7)['_shapes'][_0x58bdd8(0x1e3)](_0x557e6f);if(_0x10ef65)return _0x10ef65['getShapeRelation']();}[_0x1a417c(0x1ef)](){}['_serializeShapeForUnit'](_0x2a0afb){const _0x2e7ce9=_0x1a417c;let _0x5e4d69={},_0x471aee=this['_shapeModelManagerMap'][_0x2e7ce9(0x1e3)](_0x2a0afb);return _0x471aee&&_0x471aee['forEach']((_0xa44e1a,_0x3e7208)=>{const _0x4b91ab=_0x2e7ce9;let _0x397582=_0xa44e1a['toJSON']();_0x397582[_0x4b91ab(0x1eb)]>0x0&&(_0x5e4d69[_0x3e7208]=_0x397582);}),JSON['stringify'](_0x5e4d69);}[_0x1a417c(0x24d)](_0x3c6889,_0x120a42){const _0x464d68=_0x1a417c;Object[_0x464d68(0x271)](_0x120a42)['forEach'](_0x2a7e4c=>{const _0x31eae3=_0x464d68;this[_0x31eae3(0x253)](_0x3c6889,_0x2a7e4c)[_0x31eae3(0x25c)](_0x120a42[_0x2a7e4c]);});}[_0x1a417c(0x246)](){const _0x162a4f=_0x1a417c;let _0x46316d={};return this[_0x162a4f(0x265)][_0x162a4f(0x227)]((_0x680fe9,_0xf683d8)=>{const _0x58c4e5=_0x162a4f;_0x46316d[_0xf683d8]={},_0x680fe9[_0x58c4e5(0x227)]((_0x51c3fb,_0x2311e7)=>{const _0x5420f8=_0x58c4e5;_0x46316d[_0xf683d8][_0x2311e7]=_0x51c3fb[_0x5420f8(0x246)]();});}),_0x46316d;}[_0x1a417c(0x25c)](_0x263172){const _0x1f9c14=_0x1a417c;Object[_0x1f9c14(0x271)](_0x263172)['forEach'](_0x42fcbb=>{const _0x3bb30b=_0x1f9c14;let _0x48077c=_0x263172[_0x42fcbb];Object[_0x3bb30b(0x271)](_0x48077c)['forEach'](_0x14675e=>{const _0x16a2ac=_0x3bb30b;this['_ensureShapeModelManager'](_0x42fcbb,_0x14675e)[_0x16a2ac(0x25c)](_0x48077c[_0x14675e]);});});}['_initSnapshot'](){const _0x4c01be=_0x1a417c;this[_0x4c01be(0x1f6)][_0x4c01be(0x20a)]({'pluginName':_0x4c01be(0x213),'businesses':[_0x26716f[_0x4c01be(0x221)]],'toJson':_0x1876f0=>this['_serializeShapeForUnit'](_0x1876f0),'parseJson':_0x302c48=>JSON['parse'](_0x302c48),'onLoad':(_0x1dcd75,_0x343f5c)=>{const _0x5b4390=_0x4c01be;this[_0x5b4390(0x24d)](_0x1dcd75,_0x343f5c);},'onUnLoad':_0x56099f=>{const _0x2e3ddb=_0x4c01be;let _0x15b681=this[_0x2e3ddb(0x265)][_0x2e3ddb(0x1e3)](_0x56099f);_0x15b681&&(_0x15b681[_0x2e3ddb(0x227)](_0xd40976=>{_0xd40976['dispose']();}),this[_0x2e3ddb(0x265)][_0x2e3ddb(0x1f5)](_0x56099f));}});}[_0x1a417c(0x247)](){const _0x43ca59=_0x1a417c;this[_0x43ca59(0x265)][_0x43ca59(0x227)](_0x2b4128=>{const _0x543e1e=_0x43ca59;_0x2b4128[_0x543e1e(0x227)](_0x2b4c35=>{const _0x34dd98=_0x543e1e;_0x2b4c35[_0x34dd98(0x247)]();});});}};G=W([U(0x0,_0x5cf65e)],G);const K={'id':_0x1a417c(0x234),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0x304eaf,_0x4c2700)=>{const _0xc298f7=_0x1a417c;let {unitId:_0xf68612,subUnitId:_0x1c654c,shapeType:_0x3f57a3,shapeId:_0xdd5791,shapeData:_0xdfdb0e}=_0x4c2700;return _0x304eaf['get'](G)[_0xc298f7(0x25e)](_0xf68612,_0x1c654c,_0x3f57a3,_0xdd5791,_0xdfdb0e),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0xe11b2d,_0x54f305)=>{const _0x276549=_0x1a417c;let {unitId:_0x19d9e1,subUnitId:_0x2aeca6,shapeId:_0x245937}=_0x54f305;return _0xe11b2d[_0x276549(0x1e3)](G)['removeShape'](_0x19d9e1,_0x2aeca6,_0x245937),!0x0;}},J={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':'sheet.command.insert-shape','handler':(_0x2ba2fc,_0x31f9ca)=>{const _0x4fa7b5=_0x1a417c;var _0x38314d,_0x47bae3;let _0xdb837a=_0x4e7fb4(_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x32f2cd),_0x31f9ca);if(!_0xdb837a)return!0x1;let _0x1e8385=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x55630f),{unitId:_0x80cbc6,subUnitId:_0x416819}=_0xdb837a,_0xfb05ce=_0x1e8385[_0x4fa7b5(0x1f4)](_0x80cbc6,_0x416819);if(!_0xfb05ce)return!0x1;let _0x54d16b=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x285fd2),_0x43f14f=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x2b286c),_0x27ddad=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x19401e),_0x216816=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x3339be),{shapeType:_0x5a1df7,shapeData:_0x30eb61}=_0x31f9ca,_0xa9a114=_0x31f9ca[_0x4fa7b5(0x21c)]||_0x26ccda(),_0x3b571e={'unitId':_0x80cbc6,'subUnitId':_0x416819,'shapeId':_0xa9a114,'shapeType':_0x5a1df7,'shapeData':_0x30eb61},_0x17ac8d=_0x31f9ca['width']||0xc8,_0x102a2f=_0x31f9ca[_0x4fa7b5(0x225)]||0xc8,_0x41c408=0x0,_0x1a12fe=0x0,_0x12d03b={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x5c6648={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x31f9ca[_0x4fa7b5(0x25a)]){let {x:_0xdbc707,y:_0x4d8dc8}=_0x31f9ca[_0x4fa7b5(0x25a)];_0x41c408=_0xdbc707,_0x1a12fe=_0x4d8dc8,_0x12d03b=_0xfb05ce[_0x4fa7b5(0x22f)](_0xdbc707,_0x4d8dc8),_0x5c6648=_0xfb05ce['getCellIndexAndOffsetByPosition'](_0xdbc707+_0x17ac8d,_0x4d8dc8+_0x102a2f);}else{if(_0x31f9ca[_0x4fa7b5(0x254)]){let {startRow:_0x1e8f11,startColumn:_0x3d5757}=_0x31f9ca[_0x4fa7b5(0x254)];_0x12d03b={'row':_0x1e8f11,'rowOffset':0xa,'column':_0x3d5757,'columnOffset':0xa};let _0xf5a39c=_0xfb05ce[_0x4fa7b5(0x1e9)](_0x1e8f11,_0x3d5757);_0x41c408=_0xf5a39c[_0x4fa7b5(0x252)]+0xa,_0x1a12fe=_0xf5a39c[_0x4fa7b5(0x26c)]+0xa,_0x5c6648=_0xfb05ce['getCellIndexAndOffsetByPosition'](_0x41c408+_0x17ac8d,_0x1a12fe+_0x102a2f);}}let _0xc32fa0={'from':_0x12d03b,'to':_0x5c6648},_0x3bc7cc={'unitId':_0x80cbc6,'subUnitId':_0x416819,'drawingId':_0xa9a114,'drawingType':_0x5d2b71[_0x4fa7b5(0x251)],'sheetTransform':_0xc32fa0,'transform':{'left':_0x41c408,'top':_0x1a12fe,'width':_0x17ac8d,'height':_0x102a2f},'data':{'shapeType':_0x5a1df7,'shapeData':_0x30eb61},'axisAlignSheetTransform':_0xc32fa0,'allowTransform':!0x0};_0x33d47c(_0x5a1df7)&&(_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x201)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x229)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x22d)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x211)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x229)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x22d)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x211)]=!0x1);let {undo:_0x1217fe,redo:_0x432c15,objects:_0x1ceee0}=_0x216816['getBatchAddOp']([_0x3bc7cc]),_0x5c6787=_0x27ddad[_0x4fa7b5(0x22b)]({'id':_0x1696e3['id'],'params':{'unitId':_0x80cbc6,'drawings':[_0x3bc7cc]}}),_0x301b18=[...(_0x38314d=_0x5c6787['preRedos'])==null?[]:_0x38314d,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'op':_0x432c15,'objects':_0x1ceee0,'type':_0x5af201[_0x4fa7b5(0x23d)]}},{'id':_0xeb678b['id'],'params':[_0x80cbc6]},..._0x5c6787[_0x4fa7b5(0x23b)],{'id':K['id'],'params':_0x3b571e}],_0x1f2d66=[{'id':q['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'shapeId':_0xa9a114}},...(_0x47bae3=_0x5c6787[_0x4fa7b5(0x242)])==null?[]:_0x47bae3,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'op':_0x1217fe,'objects':_0x1ceee0,'type':_0x5af201[_0x4fa7b5(0x238)]}},{'id':_0xeb678b['id'],'params':[_0x80cbc6]},..._0x5c6787[_0x4fa7b5(0x1fc)]];return _0x3ffddd(_0x301b18,_0x54d16b)['result']?(_0x43f14f[_0x4fa7b5(0x1fa)]({'unitID':_0x80cbc6,'undoMutations':_0x1f2d66,'redoMutations':_0x301b18}),!0x0):!0x1;}},Y={'id':_0x1a417c(0x1f7),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0x44c20b,_0x572229)=>{const _0x262566=_0x1a417c;let {unitId:_0x3dec78,subUnitId:_0x3a37c0,shapeType:_0x551e6e,shapeId:_0x26b26c,shapeData:_0x56b75c}=_0x572229,_0x3073c0=_0x44c20b[_0x262566(0x1e3)](G)[_0x262566(0x1fb)](_0x3dec78,_0x3a37c0,_0x26b26c);return _0x3073c0&&(_0x551e6e!==void 0x0&&_0x3073c0[_0x262566(0x1ef)](_0x551e6e),_0x56b75c&&(_0x3073c0==null||_0x3073c0[_0x262566(0x1ed)](_0x56b75c,!0x0))),!0x0;}},ee={'type':_0x5229c7['COMMAND'],'id':_0x1a417c(0x207),'handler':(_0x25f3e5,_0x4fa513)=>{const _0x121781=_0x1a417c;var _0x41e207,_0x5f0fc0;let _0x3b94d9=_0x4e7fb4(_0x25f3e5[_0x121781(0x1e3)](_0x32f2cd),_0x4fa513);if(!_0x3b94d9)return!0x1;let _0x794d89=_0x25f3e5[_0x121781(0x1e3)](_0x55630f),{unitId:_0x324c08,subUnitId:_0x35d162}=_0x3b94d9,_0x3a2ea4=_0x794d89[_0x121781(0x1f4)](_0x324c08,_0x35d162);if(!_0x3a2ea4)return!0x1;let _0xd45d0=_0x25f3e5['get'](G),{shapeId:_0x4f2886,shapeType:_0x29d377,shapeData:_0x5b7a5c,position:_0x19fad0,width:_0x35139f,height:_0x227ff0}=_0x4fa513,_0xf2720f=_0xd45d0[_0x121781(0x1fb)](_0x324c08,_0x35d162,_0x4f2886);if(!_0xf2720f)return!0x1;let _0x5301e7=_0x25f3e5[_0x121781(0x1e3)](_0x285fd2),_0x41f52c=_0x25f3e5['get'](_0x2b286c),_0xac465b=_0x25f3e5[_0x121781(0x1e3)](_0x19401e),_0x34fe8b=_0x25f3e5[_0x121781(0x1e3)](_0x3339be),_0x48217f={'unitId':_0x324c08,'subUnitId':_0x35d162,'shapeId':_0x4f2886,'shapeType':_0x29d377,'shapeData':_0x5b7a5c},_0x11f98e=_0xf2720f[_0x121781(0x21f)](),_0xf19aa=_0xf2720f[_0x121781(0x1e2)](),{x:_0x34753f,y:_0x27c09c}=_0x19fad0,_0x4dc017={'from':_0x3a2ea4[_0x121781(0x22f)](_0x34753f,_0x27c09c),'to':_0x3a2ea4[_0x121781(0x22f)](_0x34753f+_0x35139f,_0x27c09c+_0x227ff0)},_0x25e3c3={'unitId':_0x324c08,'subUnitId':_0x35d162,'drawingId':_0x4f2886,'drawingType':_0x5d2b71[_0x121781(0x251)],'sheetTransform':_0x4dc017,'transform':{'left':_0x34753f,'top':_0x27c09c,'width':_0x35139f,'height':_0x227ff0},'data':{'shapeType':_0x29d377,'shapeData':_0x5b7a5c},'axisAlignSheetTransform':_0x4dc017,'allowTransform':!0x0};_0x33d47c(_0x29d377)&&(_0x25e3c3[_0x121781(0x228)]['fill']=!0x1,_0x25e3c3[_0x121781(0x228)]['rotateEnabled']=!0x1,_0x25e3c3[_0x121781(0x228)][_0x121781(0x22d)]=!0x1,_0x25e3c3[_0x121781(0x228)][_0x121781(0x211)]=!0x1,_0x25e3c3[_0x121781(0x270)]['rotateEnabled']=!0x1,_0x25e3c3['transform'][_0x121781(0x22d)]=!0x1,_0x25e3c3[_0x121781(0x270)][_0x121781(0x211)]=!0x1);let {undo:_0x3011f0,redo:_0x59842b,objects:_0x408aaa}=_0x34fe8b[_0x121781(0x255)]([_0x25e3c3]),_0x2acf25=_0xac465b[_0x121781(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x324c08,'drawings':[_0x25e3c3]}}),_0x52398b=[...(_0x41e207=_0x2acf25[_0x121781(0x202)])==null?[]:_0x41e207,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'op':_0x59842b,'objects':_0x408aaa,'type':_0x5af201[_0x121781(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x324c08]},..._0x2acf25[_0x121781(0x23b)],{'id':Y['id'],'params':_0x48217f}],_0x4d9df7=[...(_0x5f0fc0=_0x2acf25['preUndos'])==null?[]:_0x5f0fc0,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'op':_0x3011f0,'objects':_0x408aaa,'type':_0x5af201[_0x121781(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x324c08]},..._0x2acf25['undos'],{'id':Y['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'shapeType':_0x11f98e,'shapeId':_0x4f2886,'shapeData':_0xf19aa}}];return _0x3ffddd(_0x52398b,_0x5301e7)[_0x121781(0x20c)]?(_0x41f52c[_0x121781(0x1fa)]({'unitID':_0x324c08,'undoMutations':_0x4d9df7,'redoMutations':_0x52398b}),!0x0):!0x1;}},te={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':'sheet.command.toggle-shape-flip','handler':(_0x5cb20a,_0x611ab)=>{const _0x1b76c9=_0x1a417c;var _0x5a1eab,_0x2bfa82;let _0x57379f=_0x4e7fb4(_0x5cb20a[_0x1b76c9(0x1e3)](_0x32f2cd),_0x611ab);if(!_0x57379f)return!0x1;let _0x23b108=_0x5cb20a[_0x1b76c9(0x1e3)](_0x55630f),{unitId:_0x2829ff,subUnitId:_0x121a21}=_0x57379f,_0x18cefd=_0x23b108['getSkeleton'](_0x2829ff,_0x121a21);if(!_0x18cefd)return!0x1;let _0x494f66=_0x5cb20a[_0x1b76c9(0x1e3)](_0x3339be),{shapeId:_0x30ddf0,flipH:_0x476179,flipV:_0x92049a}=_0x611ab,_0x3e9126=_0x494f66[_0x1b76c9(0x204)]({'unitId':_0x2829ff,'subUnitId':_0x121a21,'drawingId':_0x30ddf0});if(!_0x3e9126)return!0x1;let _0x56d84e=_0x5cb20a[_0x1b76c9(0x1e3)](G)[_0x1b76c9(0x1fb)](_0x2829ff,_0x121a21,_0x30ddf0);if(!_0x56d84e)return!0x1;let _0x2ba86b=_0x5cb20a[_0x1b76c9(0x1e3)](_0x285fd2),_0x2ee72e=_0x5cb20a[_0x1b76c9(0x1e3)](_0x2b286c),_0x3088b4=_0x5cb20a[_0x1b76c9(0x1e3)](_0x19401e),_0x370a8f={..._0x3e9126['transform']};_0x476179!==void 0x0&&(_0x370a8f[_0x1b76c9(0x1de)]=!_0x370a8f['flipX']),_0x92049a!==void 0x0&&(_0x370a8f['flipY']=!_0x370a8f['flipY']);let _0x342bb7=_0x5aa0b0(_0x370a8f,_0x18cefd),_0x4bc0dc=_0x64f7c2(_0x370a8f,_0x18cefd),_0x189819=_0x56d84e['getShapeType'](),_0x29e43b=_0x56d84e[_0x1b76c9(0x1e2)](),_0x50d6e1={'unitId':_0x2829ff,'subUnitId':_0x121a21,'drawingId':_0x30ddf0,'drawingType':_0x5d2b71['DRAWING_SHAPE'],'sheetTransform':_0x342bb7,'transform':_0x370a8f,'data':{'shapeType':_0x189819,'shapeData':_0x29e43b},'axisAlignSheetTransform':_0x4bc0dc,'allowTransform':!0x0},{undo:_0x394073,redo:_0x527173,objects:_0x140f85}=_0x494f66[_0x1b76c9(0x255)]([_0x50d6e1]),_0x9e178d=_0x3088b4['onCommandExecute']({'id':_0x28e6ad['id'],'params':{'unitId':_0x2829ff,'drawings':[_0x50d6e1]}}),_0x2de0f5=[...(_0x5a1eab=_0x9e178d[_0x1b76c9(0x202)])==null?[]:_0x5a1eab,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'op':_0x527173,'objects':_0x140f85,'type':_0x5af201[_0x1b76c9(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x2829ff]},..._0x9e178d[_0x1b76c9(0x23b)]],_0x8aedea=[...(_0x2bfa82=_0x9e178d[_0x1b76c9(0x242)])==null?[]:_0x2bfa82,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'op':_0x394073,'objects':_0x140f85,'type':_0x5af201[_0x1b76c9(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x2829ff]},..._0x9e178d['undos']];if(_0x33d47c(_0x189819)){let _0x320e1e=_0x56d84e[_0x1b76c9(0x222)]();if(_0x320e1e){let _0x396653={..._0x320e1e};_0x396653[_0x1b76c9(0x1e8)]=void 0x0,_0x396653['to']=void 0x0,_0x2de0f5[_0x1b76c9(0x266)]({'id':Y['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'shapeId':_0x30ddf0,'shapeType':_0x189819,'shapeData':{'relation':_0x396653}}}),_0x8aedea['push']({'id':Y['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'shapeId':_0x30ddf0,'shapeType':_0x189819,'shapeData':{'relation':_0x320e1e}}});}}return _0x3ffddd(_0x2de0f5,_0x2ba86b)['result']?(_0x2ee72e[_0x1b76c9(0x1fa)]({'unitID':_0x2829ff,'undoMutations':_0x8aedea,'redoMutations':_0x2de0f5}),!0x0):!0x1;}},X={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x24b),'handler':(_0x28644a,_0x5a2a2d)=>{const _0x554f10=_0x1a417c;var _0x41bd3c,_0x46762e;let _0x49133e=_0x4e7fb4(_0x28644a['get'](_0x32f2cd),_0x5a2a2d);if(!_0x49133e)return!0x1;let _0x2bb625=_0x28644a[_0x554f10(0x1e3)](_0x55630f),{unitId:_0x553e95,subUnitId:_0x154d85}=_0x49133e,_0xb79bcd=_0x2bb625['getSkeleton'](_0x553e95,_0x154d85);if(!_0xb79bcd)return!0x1;let _0x6b443c=_0x28644a[_0x554f10(0x1e3)](_0x3339be),{shapeId:_0x44af2e,rotate:_0x57c366}=_0x5a2a2d,_0x5f3865=_0x6b443c['getDrawingByParam']({'unitId':_0x553e95,'subUnitId':_0x154d85,'drawingId':_0x44af2e});if(!_0x5f3865)return!0x1;let _0x32f9a8=_0x28644a['get'](G)[_0x554f10(0x1fb)](_0x553e95,_0x154d85,_0x44af2e);if(!_0x32f9a8)return!0x1;let _0x30237b=_0x28644a[_0x554f10(0x1e3)](_0x285fd2),_0x1349e2=_0x28644a[_0x554f10(0x1e3)](_0x2b286c),_0x8ad80d=_0x28644a['get'](_0x19401e),_0x8580c5={..._0x5f3865['transform']};_0x57c366!==void 0x0&&(_0x8580c5[_0x554f10(0x24a)]=(_0x8580c5[_0x554f10(0x24a)]||0x0)+_0x57c366);let _0x3bfefe=_0x5aa0b0(_0x8580c5,_0xb79bcd),_0x2c5ac3=_0x64f7c2(_0x8580c5,_0xb79bcd),_0x3557bc=_0x32f9a8[_0x554f10(0x21f)](),_0x8d4750=_0x32f9a8[_0x554f10(0x1e2)](),_0x3f1806={'unitId':_0x553e95,'subUnitId':_0x154d85,'drawingId':_0x44af2e,'drawingType':_0x5d2b71[_0x554f10(0x251)],'sheetTransform':_0x3bfefe,'transform':_0x8580c5,'data':{'shapeType':_0x3557bc,'shapeData':_0x8d4750},'axisAlignSheetTransform':_0x2c5ac3,'allowTransform':!0x0},{undo:_0x4827ae,redo:_0x428c23,objects:_0x3e06be}=_0x6b443c[_0x554f10(0x255)]([_0x3f1806]),_0x5d762a=_0x8ad80d[_0x554f10(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x553e95,'drawings':[_0x3f1806]}}),_0x20a710=[...(_0x41bd3c=_0x5d762a[_0x554f10(0x202)])==null?[]:_0x41bd3c,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x553e95,'subUnitId':_0x154d85,'op':_0x428c23,'objects':_0x3e06be,'type':_0x5af201['UPDATE']}},{'id':_0xeb678b['id'],'params':[_0x553e95]},..._0x5d762a[_0x554f10(0x23b)]],_0x5263df=[...(_0x46762e=_0x5d762a[_0x554f10(0x242)])==null?[]:_0x46762e,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x553e95,'subUnitId':_0x154d85,'op':_0x4827ae,'objects':_0x3e06be,'type':_0x5af201[_0x554f10(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x553e95]},..._0x5d762a[_0x554f10(0x1fc)]];return _0x3ffddd(_0x20a710,_0x30237b)[_0x554f10(0x20c)]?(_0x1349e2[_0x554f10(0x1fa)]({'unitID':_0x553e95,'undoMutations':_0x5263df,'redoMutations':_0x20a710}),!0x0):!0x1;}},Z={'type':_0x5229c7['COMMAND'],'id':_0x1a417c(0x274),'handler':(_0x40c3b1,_0xb7750b)=>{const _0x10f733=_0x1a417c;var _0x5667b1;let _0x223af0=_0x4e7fb4(_0x40c3b1['get'](_0x32f2cd),_0xb7750b);if(!_0x223af0)return!0x1;let {unitId:_0xbd1495,subUnitId:_0xde5fed}=_0x223af0,{shapeId:_0x18ddee}=_0xb7750b,_0x17393a=_0x40c3b1[_0x10f733(0x1e3)](G)[_0x10f733(0x1fb)](_0xbd1495,_0xde5fed,_0x18ddee);if(!_0x17393a)return!0x1;let _0x41fd74=_0x17393a[_0x10f733(0x273)](),_0x40723b=(_0x5667b1=_0x41fd74==null?void 0x0:_0x41fd74[_0x10f733(0x25f)])==null?!0x0:_0x5667b1,_0x50ccf9=!_0x40723b,_0x7015d6=_0x40c3b1[_0x10f733(0x1e3)](_0x285fd2),_0x53e6a4=_0x40c3b1['get'](_0x2b286c),_0x9a582a={'unitId':_0xbd1495,'subUnitId':_0xde5fed,'shapeId':_0x18ddee,'shapeData':{'shapeText':{'isHorizontal':_0x50ccf9}}},_0x582c5a={'unitId':_0xbd1495,'subUnitId':_0xde5fed,'shapeId':_0x18ddee,'shapeData':{'shapeText':{'isHorizontal':_0x40723b}}},_0x188c92=[{'id':Y['id'],'params':_0x9a582a}],_0x363d82=[{'id':Y['id'],'params':_0x582c5a}];return _0x3ffddd(_0x188c92,_0x7015d6)[_0x10f733(0x20c)]?(_0x53e6a4[_0x10f733(0x1fa)]({'unitID':_0xbd1495,'undoMutations':_0x363d82,'redoMutations':_0x188c92}),!0x0):!0x1;}},ne={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x224),'handler':(_0x281ccc,_0xd70ecf)=>{const _0x44fbb2=_0x1a417c;var _0x5b8c1a,_0x1f4e13,_0xd2ebcb,_0x43f8ad;let _0x259fcb=_0x4e7fb4(_0x281ccc['get'](_0x32f2cd),_0xd70ecf);if(!_0x259fcb)return!0x1;let _0x2e4351=_0x281ccc[_0x44fbb2(0x1e3)](_0x55630f),{unitId:_0x42b3da,subUnitId:_0x3f7cfe}=_0x259fcb,_0x346cad=_0x2e4351[_0x44fbb2(0x232)](_0x42b3da,_0x3f7cfe);if(!_0x346cad)return!0x1;let _0x153fdb=_0x281ccc['get'](_0x3339be),{connectorShapeId:_0x56f11a,width:_0x1c7fc0,height:_0x3084a0,left:_0x381635,top:_0x45ce36,flipX:_0x2d124a,flipY:_0x5119c8,rotation:_0x486b46,oldAdjustValues:_0x4a0fec,newAdjustValues:_0x305717,oldLineType:_0x348e6d,newLineType:_0x2717e4,oldRelation:_0x29efcf,newRelation:_0x559353}=_0xd70ecf,_0x530582=_0x153fdb[_0x44fbb2(0x204)]({'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'drawingId':_0x56f11a});if(!_0x530582)return!0x1;let _0x2c30e1=_0x281ccc['get'](G)[_0x44fbb2(0x1fb)](_0x42b3da,_0x3f7cfe,_0x56f11a);if(!_0x2c30e1)return!0x1;let _0x4fcafd=_0x281ccc['get'](_0x285fd2),_0x2e121d=_0x281ccc[_0x44fbb2(0x1e3)](_0x2b286c),_0x3c03cd=_0x281ccc[_0x44fbb2(0x1e3)](_0x19401e),_0x1cc722={..._0x530582[_0x44fbb2(0x270)],'width':_0x1c7fc0,'height':_0x3084a0,'left':_0x381635,'top':_0x45ce36,'flipX':_0x2d124a,'flipY':_0x5119c8,'angle':(_0x5b8c1a=_0x486b46==null?(_0x1f4e13=_0x530582['transform'])==null?void 0x0:_0x1f4e13['angle']:_0x486b46)==null?0x0:_0x5b8c1a},_0x55ba4f=_0x5aa0b0(_0x1cc722,_0x346cad),_0x438902=_0x64f7c2(_0x1cc722,_0x346cad),_0x554184=_0x2c30e1[_0x44fbb2(0x21f)](),_0x320562=_0x2c30e1['getShapeData'](),_0x1b8d70={'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'drawingId':_0x56f11a,'drawingType':_0x5d2b71[_0x44fbb2(0x251)],'sheetTransform':_0x55ba4f,'transform':_0x1cc722,'data':{'shapeType':_0x2717e4||_0x348e6d||_0x554184,'shapeData':{..._0x320562,'adjustValues':_0x305717||_0x4a0fec||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x1ff)]),'relation':_0x559353||_0x29efcf||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x268)])}},'axisAlignSheetTransform':_0x438902,'allowTransform':!0x0},{undo:_0x2a033f,redo:_0x4eac24,objects:_0x15ac96}=_0x153fdb[_0x44fbb2(0x255)]([_0x1b8d70]),_0x17c644=_0x3c03cd[_0x44fbb2(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x42b3da,'drawings':[_0x1b8d70]}}),_0x400615=[...(_0xd2ebcb=_0x17c644[_0x44fbb2(0x202)])==null?[]:_0xd2ebcb,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'op':_0x4eac24,'objects':_0x15ac96,'type':_0x5af201[_0x44fbb2(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x42b3da]},..._0x17c644[_0x44fbb2(0x23b)],{'id':Y['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'shapeId':_0x56f11a,'shapeType':_0x2717e4,'shapeData':{'adjustValues':_0x305717,'relation':_0x559353}}}],_0x23d56b=[...(_0x43f8ad=_0x17c644[_0x44fbb2(0x242)])==null?[]:_0x43f8ad,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'op':_0x2a033f,'objects':_0x15ac96,'type':_0x5af201[_0x44fbb2(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x42b3da]},..._0x17c644[_0x44fbb2(0x1fc)],{'id':Y['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'shapeId':_0x56f11a,'shapeType':_0x554184,'shapeData':{..._0x320562,'adjustValues':_0x4a0fec||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x1ff)]),'relation':_0x29efcf||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x268)])}}}];return _0x3ffddd(_0x400615,_0x4fcafd)[_0x44fbb2(0x20c)]?(_0x2e121d[_0x44fbb2(0x1fa)]({'unitID':_0x42b3da,'undoMutations':_0x23d56b,'redoMutations':_0x400615}),!0x0):!0x1;}},re={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x226),'handler':(_0x179eb9,_0x1d20e0)=>{const _0x1f46fc=_0x1a417c;var _0x444b38,_0x945df8;let _0x3bee41=_0x4e7fb4(_0x179eb9['get'](_0x32f2cd),_0x1d20e0);if(!_0x3bee41)return!0x1;let _0xaed240=_0x179eb9[_0x1f46fc(0x1e3)](_0x55630f),{unitId:_0x1c7458,subUnitId:_0xaf6b67}=_0x3bee41,_0x2a3353=_0xaed240[_0x1f46fc(0x232)](_0x1c7458,_0xaf6b67);if(!_0x2a3353)return!0x1;let _0x6a74d5=_0x179eb9['get'](_0x3339be),{shapeId:_0x13bf73,width:_0x551ddb,height:_0x3ba555,left:_0x58f644,top:_0x49181e,flipX:_0x3c0877,flipY:_0x5ec63f,angle:_0x9615b1,oldAdjustValues:_0x8787ef,newAdjustValues:_0x4b7309,oldLineType:_0x5f3707,newLineType:_0x56df5c}=_0x1d20e0,_0x46c9a0=_0x6a74d5[_0x1f46fc(0x204)]({'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'drawingId':_0x13bf73});if(!_0x46c9a0)return!0x1;let _0x39a1cb=_0x179eb9[_0x1f46fc(0x1e3)](G)[_0x1f46fc(0x1fb)](_0x1c7458,_0xaf6b67,_0x13bf73);if(!_0x39a1cb)return!0x1;let _0x5ea497=_0x179eb9[_0x1f46fc(0x1e3)](_0x285fd2),_0x53c996=_0x179eb9[_0x1f46fc(0x1e3)](_0x2b286c),_0x5a968e=_0x179eb9[_0x1f46fc(0x1e3)](_0x19401e),_0x32624f={..._0x46c9a0[_0x1f46fc(0x270)],'width':_0x551ddb,'height':_0x3ba555,'left':_0x58f644,'top':_0x49181e,'flipX':_0x3c0877,'flipY':_0x5ec63f,'angle':_0x9615b1},_0x422cd1=_0x5aa0b0(_0x32624f,_0x2a3353),_0x13dd7b=_0x64f7c2(_0x32624f,_0x2a3353),_0x4153a9=_0x39a1cb[_0x1f46fc(0x21f)](),_0x2b1504=_0x39a1cb['getShapeData'](),_0x451fcd={'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'drawingId':_0x13bf73,'drawingType':_0x5d2b71[_0x1f46fc(0x251)],'sheetTransform':_0x422cd1,'transform':_0x32624f,'data':{'shapeType':_0x56df5c||_0x5f3707||_0x4153a9,'shapeData':{..._0x2b1504,'adjustValues':_0x4b7309||_0x8787ef||(_0x2b1504==null?void 0x0:_0x2b1504[_0x1f46fc(0x1ff)])}},'axisAlignSheetTransform':_0x13dd7b,'allowTransform':!0x0},{undo:_0x3992a0,redo:_0x1afe83,objects:_0xad2196}=_0x6a74d5['getBatchUpdateOp']([_0x451fcd]),_0x321aa6=_0x5a968e[_0x1f46fc(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x1c7458,'drawings':[_0x451fcd]}}),_0x5d1f59=[...(_0x444b38=_0x321aa6[_0x1f46fc(0x202)])==null?[]:_0x444b38,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'op':_0x1afe83,'objects':_0xad2196,'type':_0x5af201['UPDATE']}},{'id':_0xeb678b['id'],'params':[_0x1c7458]},..._0x321aa6[_0x1f46fc(0x23b)],{'id':Y['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'shapeId':_0x13bf73,'shapeType':_0x56df5c,'shapeData':{'adjustValues':_0x4b7309}}}],_0x48a918=[...(_0x945df8=_0x321aa6[_0x1f46fc(0x242)])==null?[]:_0x945df8,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'op':_0x3992a0,'objects':_0xad2196,'type':_0x5af201[_0x1f46fc(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x1c7458]},..._0x321aa6[_0x1f46fc(0x1fc)],{'id':Y['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'shapeId':_0x13bf73,'shapeType':_0x4153a9,'shapeData':{..._0x2b1504,'adjustValues':_0x8787ef||(_0x2b1504==null?void 0x0:_0x2b1504[_0x1f46fc(0x1ff)])}}}];return _0x3ffddd(_0x5d1f59,_0x5ea497)[_0x1f46fc(0x20c)]?(_0x53c996[_0x1f46fc(0x1fa)]({'unitID':_0x1c7458,'undoMutations':_0x48a918,'redoMutations':_0x5d1f59}),!0x0):!0x1;}},Q={'id':_0x1a417c(0x1f9),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0xcf97ef,_0x336992)=>{const _0x3de8e9=_0x1a417c;let {unitId:_0x2e014e,subUnitId:_0x2047fc,shapeType:_0x5149d3,shapeId:_0x4f91b8,shapeData:_0x4382d0}=_0x336992,_0x94378e=_0xcf97ef[_0x3de8e9(0x1e3)](G)['getShapeModel'](_0x2e014e,_0x2047fc,_0x4f91b8);return _0x94378e&&(_0x94378e[_0x3de8e9(0x1ef)](_0x5149d3),_0x4382d0&&(_0x94378e==null||_0x94378e[_0x3de8e9(0x1ed)](_0x4382d0))),!0x0;}},ie={'id':_0x1a417c(0x214),'type':_0x5229c7['COMMAND'],'handler':(_0x15121c,_0x440aa2)=>{const _0x2ef0d8=_0x1a417c;if(!_0x440aa2)return!0x1;let _0x5395c7=_0x15121c[_0x2ef0d8(0x1e3)](_0x285fd2),_0x385cd9=_0x15121c[_0x2ef0d8(0x1e3)](G),_0x401623=_0x15121c['get'](_0x2b286c),_0x402505=[],_0x5c9294=[],{unitId:_0xa4dddb,subUnitId:_0x1f93cc,shapeId:_0x30b388,shapeType:_0x3653e2,shapeData:_0x47f8bb}=_0x440aa2,_0x1d6c8a=_0x385cd9['getShapeModel'](_0xa4dddb,_0x1f93cc,_0x30b388);if(_0x1d6c8a){let _0x4f6366=_0x1d6c8a[_0x2ef0d8(0x21f)](),_0x200651=Object[_0x2ef0d8(0x218)]({},_0x1d6c8a['getShapeData']()),_0x1781a4={'unitId':_0xa4dddb,'subUnitId':_0x1f93cc,'shapeId':_0x30b388,'shapeType':_0x3653e2,'shapeData':_0x47f8bb},_0x15188c={'unitId':_0xa4dddb,'subUnitId':_0x1f93cc,'shapeId':_0x30b388,'shapeType':_0x4f6366,'shapeData':_0x200651};return _0x402505[_0x2ef0d8(0x266)]({'id':Q['id'],'params':_0x1781a4}),_0x5c9294[_0x2ef0d8(0x266)]({'id':Q['id'],'params':_0x15188c}),_0x402505['every'](_0x1c5831=>_0x5395c7[_0x2ef0d8(0x219)](_0x1c5831['id'],_0x1c5831[_0x2ef0d8(0x23c)]))&&_0x401623[_0x2ef0d8(0x1fa)]({'unitID':_0xa4dddb,'redoMutations':[..._0x402505],'undoMutations':[..._0x5c9294]}),!0x0;}return!0x1;}};var ae=_0x1a417c(0x220),oe='0.25.0';const se={};function _0x6126(_0x250eaf,_0x4f7ded){_0x250eaf=_0x250eaf-0x1dd;const _0x20c38f=_0x20c3();let _0x61267a=_0x20c38f[_0x250eaf];return _0x61267a;}let ce=class extends _0x4e5f9f{constructor(_0x1c34d1,_0x16fd8b,_0x5757bc,_0x2c171d,_0x354eb){const _0x5a3f8e=_0x1a417c;super(),this['_commandService']=_0x1c34d1,this['_sheetInterceptorService']=_0x16fd8b,this[_0x5a3f8e(0x237)]=_0x5757bc,this[_0x5a3f8e(0x235)]=_0x2c171d,this[_0x5a3f8e(0x205)]=_0x354eb,this[_0x5a3f8e(0x215)](),this[_0x5a3f8e(0x243)]();}[_0x1a417c(0x215)](){const _0x2a8e82=_0x1a417c;[J,ee,te,X,Z,ne,re,K,q,Q,Y]['forEach'](_0x4291e2=>this[_0x2a8e82(0x233)](this[_0x2a8e82(0x239)]['registerCommand'](_0x4291e2)));}[_0x1a417c(0x243)](){const _0x336936=_0x1a417c;this[_0x336936(0x233)](this[_0x336936(0x240)][_0x336936(0x1f0)]({'getMutations':_0x2629dd=>{const _0x447a8b=_0x336936;if(_0x2629dd['id']===_0x56569e['id']){let {drawings:_0x324b1f}=_0x2629dd[_0x447a8b(0x23c)],_0x1ec6c5=_0x324b1f[_0x447a8b(0x277)](_0x933da2=>_0x933da2[_0x447a8b(0x275)]===_0x5d2b71['DRAWING_SHAPE']);if(_0x1ec6c5['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x210ed2=[],_0x4b4a80=[];return _0x1ec6c5[_0x447a8b(0x227)](_0xb4676c=>{const _0x3f368f=_0x447a8b;let {unitId:_0x4c5234,subUnitId:_0xf2de3b,drawingId:_0x5cc650}=_0xb4676c,_0x233796=this[_0x3f368f(0x235)][_0x3f368f(0x1fb)](_0x4c5234,_0xf2de3b,_0x5cc650);if(!_0x233796)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x233796);_0x210ed2['push']({'id':q['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x5cc650}}),_0x4b4a80[_0x3f368f(0x266)]({'id':K['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x5cc650,'shapeType':_0x233796[_0x3f368f(0x21f)](),'shapeData':_0x233796[_0x3f368f(0x1e2)]()}});let _0x49b2ef=this[_0x3f368f(0x235)]['getBasicShapeRelation'](_0x4c5234,_0xf2de3b,_0x5cc650);if(_0x49b2ef)for(let _0x1e7608 of _0x49b2ef){let _0x1627cc=_0x1e7608['lineShapeId'],_0x2c574d=_0x1e7608[_0x3f368f(0x22c)],_0x43e7b5=_0x2c574d?{'from':void 0x0}:{'to':void 0x0},_0x9d1fbd=_0x2c574d?{'from':{'shapeId':_0x1e7608[_0x3f368f(0x21c)],'cxnIndex':_0x1e7608[_0x3f368f(0x1ec)]}}:{'to':{'shapeId':_0x1e7608['shapeId'],'cxnIndex':_0x1e7608[_0x3f368f(0x1ec)]}};_0x210ed2[_0x3f368f(0x266)]({'id':Y['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x1627cc,'shapeData':{'relation':_0x43e7b5}}}),_0x4b4a80[_0x3f368f(0x266)]({'id':Y['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x1627cc,'shapeData':{'relation':_0x9d1fbd}}});}}),{'preRedos':_0x210ed2,'redos':[],'preUndos':[],'undos':_0x4b4a80};}if(_0x2629dd['id']===_0x28e6ad['id']){let {drawings:_0x3448a1}=_0x2629dd[_0x447a8b(0x23c)],_0x320eaa=_0x3448a1[_0x447a8b(0x277)](_0x1ca393=>_0x1ca393[_0x447a8b(0x275)]===_0x5d2b71[_0x447a8b(0x251)]);if(_0x320eaa[_0x447a8b(0x1eb)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x192802=[],_0x226f08=[];for(let _0x5c84ab of _0x320eaa){let {unitId:_0x3c697f,subUnitId:_0x72bc90,drawingId:_0x242779,transform:_0x42bbac}=_0x5c84ab;if(!_0x3c697f||!_0x72bc90||!_0x242779||!_0x42bbac)continue;let _0xab2293=this[_0x447a8b(0x235)]['getShapeModel'](_0x3c697f,_0x72bc90,_0x242779);if(!_0xab2293)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0xab2293);if(_0x33d47c(_0xab2293[_0x447a8b(0x21f)]())){let _0x17e2f7=this[_0x447a8b(0x235)]['getLineShapeRelation'](_0x3c697f,_0x72bc90,_0x242779);_0x17e2f7&&(_0x192802[_0x447a8b(0x266)]({'id':Y['id'],'params':{'unitId':_0x3c697f,'subUnitId':_0x72bc90,'shapeId':_0x242779,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x226f08[_0x447a8b(0x266)]({'id':Y['id'],'params':{'unitId':_0x3c697f,'subUnitId':_0x72bc90,'shapeId':_0x242779,'shapeData':{'relation':_0x17e2f7}}}));}else{let _0x5b2092=this[_0x447a8b(0x235)][_0x447a8b(0x210)](_0x3c697f,_0x72bc90,_0x242779);if(_0x5b2092&&_0x5b2092[_0x447a8b(0x1eb)]>0x0)for(let _0x5b579b of _0x5b2092){let _0x36a511=_0x5b579b[_0x447a8b(0x1ee)],_0x20bf07=_0x5b579b['isFrom'],_0x254a8b=this['_sheetsShapeService'][_0x447a8b(0x1fb)](_0x3c697f,_0x72bc90,_0x36a511);if(!_0x254a8b)continue;let _0x51d917=_0x254a8b[_0x447a8b(0x236)](),_0x1250ab=_0x254a8b['getEndConnectInfo']();_0x51d917&&_0x1250ab?this['_addLineRerouteUpdates'](_0x3c697f,_0x72bc90,_0x36a511,_0x254a8b,_0x51d917,_0x1250ab,_0x192802,_0x226f08,_0x242779,_0x42bbac):this['_addLineFollowShapeUpdates'](_0x3c697f,_0x72bc90,_0x36a511,_0x254a8b,_0x20bf07?_0x51d917:_0x1250ab,_0x20bf07,_0x192802,_0x226f08,_0x242779,_0x42bbac);}}}return{'preRedos':[],'redos':_0x192802,'preUndos':_0x226f08,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1a417c(0x1e4)](_0x456d00,_0x2d5650,_0xc7cab,_0x10f6bd,_0x4bb40b){const _0x46459e=_0x1a417c;if(!_0x2d5650||!_0xc7cab)return null;let {shapeId:_0x31faf7,cxnIndex:_0x2bbe61}=_0x456d00,_0x319ddd=this[_0x46459e(0x235)]['getShapeModel'](_0x2d5650,_0xc7cab,_0x31faf7);if(!_0x319ddd)return null;let _0x3df61f=this['_drawingManagerService'][_0x46459e(0x204)]({'unitId':_0x2d5650,'subUnitId':_0xc7cab,'drawingId':_0x31faf7});if(!(_0x3df61f!=null&&_0x3df61f[_0x46459e(0x270)]))return null;let {left:_0x1af3c2=0x0,top:_0x3f3b12=0x0,width:_0x45fa6f=0x0,height:_0x124df6=0x0,flipX:_0x1a364c=!0x1,flipY:_0x28c5cd=!0x1,angle:_0x5b5c27}=_0x3df61f[_0x46459e(0x270)];if(_0x4bb40b&&_0x10f6bd===_0x31faf7){var _0x3e3a70,_0x55da7b,_0x165853,_0x2094e2,_0x4c3618,_0x39a84e,_0x5e9360;_0x1af3c2=(_0x3e3a70=_0x4bb40b[_0x46459e(0x1f8)])==null?_0x1af3c2:_0x3e3a70,_0x3f3b12=(_0x55da7b=_0x4bb40b[_0x46459e(0x212)])==null?_0x3f3b12:_0x55da7b,_0x45fa6f=(_0x165853=_0x4bb40b[_0x46459e(0x26f)])==null?_0x45fa6f:_0x165853,_0x124df6=(_0x2094e2=_0x4bb40b[_0x46459e(0x225)])==null?_0x124df6:_0x2094e2,_0x1a364c=(_0x4c3618=_0x4bb40b[_0x46459e(0x1de)])==null?_0x1a364c:_0x4c3618,_0x28c5cd=(_0x39a84e=_0x4bb40b[_0x46459e(0x21b)])==null?_0x28c5cd:_0x39a84e,_0x5b5c27=(_0x5e9360=_0x4bb40b['angle'])==null?_0x5b5c27:_0x5e9360;}_0x319ddd['updateContext']({'width':_0x45fa6f,'height':_0x124df6});let _0x249d85=_0x319ddd[_0x46459e(0x250)]()[_0x46459e(0x23e)](_0x413488=>_0x413488['index']===_0x2bbe61);if(!_0x249d85)return null;let _0x379d0c=_0x1a364c?_0x45fa6f-_0x249d85['x']:_0x249d85['x'],_0x2df45c=_0x28c5cd?_0x124df6-_0x249d85['y']:_0x249d85['y'];if(_0x5b5c27!==0x0&&_0x5b5c27!=null){let _0x1a3923=_0x5b5c27*Math['PI']/0xb4,_0x365ab2=Math['cos'](_0x1a3923),_0x295438=Math[_0x46459e(0x21e)](_0x1a3923),_0x3c17fa=_0x45fa6f/0x2,_0xbcf8f7=_0x124df6/0x2,_0x18ba76=_0x379d0c-_0x3c17fa,_0xa09374=_0x2df45c-_0xbcf8f7;_0x379d0c=_0x3c17fa+_0x18ba76*_0x365ab2-_0xa09374*_0x295438,_0x2df45c=_0xbcf8f7+_0x18ba76*_0x295438+_0xa09374*_0x365ab2;}_0x379d0c+=_0x1af3c2,_0x2df45c+=_0x3f3b12;let _0x2d9db4=_0x249d85[_0x46459e(0x241)]/0xea60;_0x1a364c&&(_0x2d9db4=0xb4-_0x2d9db4),_0x28c5cd&&(_0x2d9db4=-_0x2d9db4),_0x2d9db4+=_0x5b5c27||0x0,_0x2d9db4=(_0x2d9db4%0x168+0x168)%0x168;let _0x2ec983=_0x4dd2cd({'left':_0x1af3c2,'top':_0x3f3b12,'width':_0x45fa6f,'height':_0x124df6},_0x5b5c27||0x0);return{'point':{'x':_0x379d0c,'y':_0x2df45c},'angle':_0x2d9db4,'bounds':_0x2ec983};}[_0x1a417c(0x261)](_0x123318,_0x28c24f,_0x49d29e,_0x210dfa,_0x2c7f2f,_0x26fcb1,_0x382c04,_0x6a903f,_0x4f4597,_0x15da44){const _0x285b99=_0x1a417c;let _0x2b93f7=this[_0x285b99(0x237)][_0x285b99(0x232)](_0x123318,_0x28c24f);if(!_0x2b93f7)return;let _0x411791=_0x210dfa[_0x285b99(0x222)](),_0x8a3cd2=_0x210dfa[_0x285b99(0x263)](),_0x5d989e={},_0x11cff3={};_0x8a3cd2[_0x285b99(0x227)](_0x2fa32d=>{const _0x2fb358=_0x285b99;let _0x5880f4=_0x210dfa[_0x2fb358(0x25b)](_0x2fa32d);_0x11cff3[_0x2fa32d]=_0x5880f4==null?0x0:_0x5880f4;});let _0x3d6205=this[_0x285b99(0x1e4)](_0x2c7f2f,_0x123318,_0x28c24f,_0x4f4597,_0x15da44),_0x1f003e=this['_getConnectPointInfo'](_0x26fcb1,_0x123318,_0x28c24f,_0x4f4597,_0x15da44);if(_0x3d6205&&_0x1f003e){let _0x425945=_0x210dfa[_0x285b99(0x21f)](),_0x4bba85=_0x29d7a4(_0x3d6205,_0x1f003e,_0x425945),_0x11e967=_0x425945;if(_0x4bba85){let _0x55711f=_0x4d5188(_0x4bba85,_0x210dfa[_0x285b99(0x21f)]()),_0x5cd76a=this['_drawingManagerService'][_0x285b99(0x22a)](_0x123318,_0x28c24f);if(_0x5cd76a&&_0x5cd76a[_0x49d29e]){let _0x16e584=_0x5cd76a[_0x49d29e];_0x11e967=_0x55711f[_0x285b99(0x249)];for(let [_0xac3bcd,_0x2009aa]of Object['entries'](_0x55711f[_0x285b99(0x1ff)]))_0x5d989e[_0xac3bcd]=_0x2009aa;let _0x10f768={..._0x16e584['transform'],'width':_0x55711f[_0x285b99(0x24e)]['width'],'height':_0x55711f[_0x285b99(0x24e)]['height'],'left':_0x55711f['worldRect']['left'],'top':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x212)],'flipX':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x1de)],'flipY':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x21b)],'angle':_0x55711f[_0x285b99(0x206)]},_0x11ce2e=_0x5aa0b0(_0x10f768,_0x2b93f7),_0x4e7fc0=_0x64f7c2(_0x10f768,_0x2b93f7),_0x2a0437={'unitId':_0x123318,'subUnitId':_0x28c24f,'drawingType':_0x5d2b71['DRAWING_SHAPE'],'drawingId':_0x49d29e,'transform':_0x10f768,'sheetTransform':_0x11ce2e,'axisAlignSheetTransform':_0x4e7fc0},{unitId:_0x4f61de,subUnitId:_0x28af05,undo:_0x4cc391,redo:_0xa26139,objects:_0x24621c}=this[_0x285b99(0x205)]['getBatchUpdateOp']([_0x2a0437]);_0x382c04[_0x285b99(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x4f61de,'subUnitId':_0x28af05,'op':_0xa26139,'objects':_0x24621c,'type':_0x5af201[_0x285b99(0x1e5)]}}),_0x6a903f['push']({'id':_0x2ae4cd['id'],'params':{'unitId':_0x4f61de,'subUnitId':_0x28af05,'op':_0x4cc391,'objects':_0x24621c,'type':_0x5af201[_0x285b99(0x1e5)]}});}_0x210dfa[_0x285b99(0x1dd)]();}_0x382c04[_0x285b99(0x266)]({'id':Y['id'],'params':{'unitId':_0x123318,'subUnitId':_0x28c24f,'shapeId':_0x49d29e,'shapeType':_0x11e967,'shapeData':{'adjustValues':_0x5d989e,'relation':_0x411791}}}),_0x6a903f[_0x285b99(0x266)]({'id':Y['id'],'params':{'unitId':_0x123318,'subUnitId':_0x28c24f,'shapeId':_0x49d29e,'shapeType':_0x425945,'shapeData':{'adjustValues':_0x11cff3,'relation':_0x411791}}});}}[_0x1a417c(0x209)](_0x46efac,_0x57f5da,_0x3b5998,_0x388b5d,_0x2ac881,_0x4c28f2,_0x2d17e8,_0x37747e,_0x244542,_0x40e793){const _0x3958b9=_0x1a417c;var _0x308f88;if(!_0x2ac881)return;let _0x59daa0=this[_0x3958b9(0x237)]['getSkeleton'](_0x46efac,_0x57f5da);if(!_0x59daa0)return;let _0x22b10a=(_0x308f88=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x46efac,'subUnitId':_0x57f5da,'drawingId':_0x244542}))==null?void 0x0:_0x308f88[_0x3958b9(0x270)];if(!_0x22b10a)return;let _0x21d4e0=_0x22b10a['left']!==_0x40e793[_0x3958b9(0x1f8)]||_0x22b10a[_0x3958b9(0x212)]!==_0x40e793[_0x3958b9(0x212)],_0x22247b=_0x22b10a['width']!==_0x40e793[_0x3958b9(0x26f)]||_0x22b10a['height']!==_0x40e793[_0x3958b9(0x225)],_0x4af8c4=_0x22b10a['flipX']!==_0x40e793[_0x3958b9(0x1de)]||_0x22b10a[_0x3958b9(0x21b)]!==_0x40e793[_0x3958b9(0x21b)],_0xabf556=_0x22b10a[_0x3958b9(0x24a)]!==_0x40e793['angle'];if(_0x21d4e0&&!_0x22247b&&!_0x4af8c4&&!_0xabf556){var _0x417a2e,_0x40085e,_0x4dfa1d,_0x1d2677;let _0xc64819=((_0x417a2e=_0x40e793[_0x3958b9(0x1f8)])==null?0x0:_0x417a2e)-((_0x40085e=_0x22b10a['left'])==null?0x0:_0x40085e),_0x3a3cb6=((_0x4dfa1d=_0x40e793['top'])==null?0x0:_0x4dfa1d)-((_0x1d2677=_0x22b10a['top'])==null?0x0:_0x1d2677),_0x4e4f36=this[_0x3958b9(0x205)][_0x3958b9(0x22a)](_0x46efac,_0x57f5da);if(_0x4e4f36&&_0x4e4f36[_0x3b5998]){var _0x17bf1b,_0x46b0f4,_0x547609,_0x30d34e;let _0x27192a=_0x4e4f36[_0x3b5998],_0x18ed8a={..._0x27192a[_0x3958b9(0x270)],'left':((_0x17bf1b=(_0x46b0f4=_0x27192a[_0x3958b9(0x270)])==null?void 0x0:_0x46b0f4[_0x3958b9(0x1f8)])==null?0x0:_0x17bf1b)+_0xc64819,'top':((_0x547609=(_0x30d34e=_0x27192a[_0x3958b9(0x270)])==null?void 0x0:_0x30d34e[_0x3958b9(0x212)])==null?0x0:_0x547609)+_0x3a3cb6},_0x22913f=_0x5aa0b0(_0x18ed8a,_0x59daa0),_0xe4493d=_0x64f7c2(_0x18ed8a,_0x59daa0),_0x5df928={'unitId':_0x46efac,'subUnitId':_0x57f5da,'drawingType':_0x5d2b71[_0x3958b9(0x251)],'drawingId':_0x3b5998,'transform':_0x18ed8a,'sheetTransform':_0x22913f,'axisAlignSheetTransform':_0xe4493d},{unitId:_0x18fba4,subUnitId:_0x1ad7b6,undo:_0x1f0300,redo:_0x52345d,objects:_0x1c91c7}=this[_0x3958b9(0x205)][_0x3958b9(0x255)]([_0x5df928]);_0x2d17e8[_0x3958b9(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x18fba4,'subUnitId':_0x1ad7b6,'op':_0x52345d,'objects':_0x1c91c7,'type':_0x5af201[_0x3958b9(0x1e5)]}}),_0x37747e[_0x3958b9(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x18fba4,'subUnitId':_0x1ad7b6,'op':_0x1f0300,'objects':_0x1c91c7,'type':_0x5af201[_0x3958b9(0x1e5)]}});}}else{let _0x392a41=_0x388b5d['getStartConnectInfo'](),_0x301a17=_0x388b5d[_0x3958b9(0x257)]();this['_addLineRerouteUpdates'](_0x46efac,_0x57f5da,_0x3b5998,_0x388b5d,_0x392a41,_0x301a17,_0x2d17e8,_0x37747e,_0x244542,_0x40e793);}}};ce=W([U(0x0,_0x285fd2),U(0x1,_0xca6a11(_0x19401e)),U(0x2,_0xca6a11(_0x55630f)),U(0x3,_0xca6a11(G)),U(0x4,_0xca6a11(_0x525c29))],ce);let $=class extends _0x2582f4{constructor(_0x14e772=se,_0x3d9d93,_0x5de1fc,_0xe65d15){const _0x508a9d=_0x1a417c;super(),this[_0x508a9d(0x272)]=_0x14e772,this[_0x508a9d(0x244)]=_0x3d9d93,this[_0x508a9d(0x239)]=_0x5de1fc,this[_0x508a9d(0x276)]=_0xe65d15;let {..._0x1fa749}=_0x3c605c({},se,this['_config']);this['_configService'][_0x508a9d(0x26a)]('sheets-shape.config',_0x1fa749);}[_0x1a417c(0x20e)](){const _0xd1d204=_0x1a417c;let _0x334b64=this[_0xd1d204(0x244)];[[H],[G],[ce]]['forEach'](_0xa41ef5=>_0x334b64[_0xd1d204(0x25d)](_0xa41ef5)),_0x5c294e(_0x334b64,[[G],[ce]]);}};V($,_0x1a417c(0x258),_0x26716f[_0x1a417c(0x221)]),V($,_0x1a417c(0x23f),_0x1a417c(0x213)),V($,_0x1a417c(0x248),ae),V($,'version',oe),$=W([_0x4c451e(_0x3785ee),U(0x1,_0xca6a11(_0x4e72d8)),U(0x2,_0x285fd2),U(0x3,_0x3c3bf5)],$);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 _0x59fa14=_0x5da5;(function(_0x2a82bb,_0x4fc7ce){const _0x17a6d8=_0x5da5,_0x52f73f=_0x2a82bb();while(!![]){try{const _0x12b990=parseInt(_0x17a6d8(0x13d))/0x1*(parseInt(_0x17a6d8(0xe7))/0x2)+parseInt(_0x17a6d8(0x128))/0x3*(parseInt(_0x17a6d8(0xed))/0x4)+-parseInt(_0x17a6d8(0x138))/0x5*(-parseInt(_0x17a6d8(0x15b))/0x6)+-parseInt(_0x17a6d8(0x124))/0x7*(parseInt(_0x17a6d8(0x100))/0x8)+-parseInt(_0x17a6d8(0x12f))/0x9*(parseInt(_0x17a6d8(0x122))/0xa)+parseInt(_0x17a6d8(0x151))/0xb+-parseInt(_0x17a6d8(0x173))/0xc*(parseInt(_0x17a6d8(0x10e))/0xd);if(_0x12b990===_0x4fc7ce)break;else _0x52f73f['push'](_0x52f73f['shift']());}catch(_0x1da32c){_0x52f73f['push'](_0x52f73f['shift']());}}}(_0x12da,0x1c159));import{ShapeModel as _0x5173db,computeConnectorRouteLayout as _0x1e57a6,createUniqueShapeName as _0x80e9ad,getBasicShapeRotateBound as _0x23c33d,isConnectorShape as _0xf81d44,routeConnectorLineShape as _0x2a847c}from'@univerjs-pro/engine-shape';import{CommandType as _0x2bf4ff,DependentOn as _0x4b3f23,Disposable as _0x1b87a1,DrawingTypeEnum as _0x34bc84,ICommandService as _0x5448b6,IConfigService as _0x3dfdf2,IResourceManagerService as _0x42568c,IUndoRedoService as _0x2e3ab6,IUniverInstanceService as _0xa3f088,Inject as _0x4e1507,Injector as _0x213482,Plugin as _0x43f10e,UniverInstanceType as _0x4f7fa0,generateRandomId as _0x1c7b18,merge as _0x375fc4,sequenceExecute as _0x20d2b6,touchDependencies as _0x38b51a}from'@univerjs/core';import{SheetInterceptorService as _0x1b2525,SheetSkeletonService as _0x44b292,getSheetCommandTarget as _0x58348b}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x1d1aa4,DrawingApplyType as _0x1e39cb,ISheetDrawingService as _0x2a5b18,InsertSheetDrawingCommand as _0x5f1f6d,RemoveSheetDrawingCommand as _0x56657d,SetDrawingApplyMutation as _0x4f132c,SetSheetDrawingCommand as _0x3319d6,transformToAxisAlignPosition as _0x2b6c1d,transformToDrawingPosition as _0x383801}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x10db9b}from'@univerjs-pro/license';import{IDrawingManagerService as _0x1b9e92}from'@univerjs/drawing';const L=0xc8,R=0xc8;function z(_0x589a13){'@babel/helpers - typeof';const _0x3d1b6e=_0x5da5;return z=typeof Symbol==_0x3d1b6e(0x132)&&typeof Symbol[_0x3d1b6e(0x139)]==_0x3d1b6e(0x175)?function(_0x1c6bfa){return typeof _0x1c6bfa;}:function(_0x530b54){const _0x516de9=_0x3d1b6e;return _0x530b54&&typeof Symbol=='function'&&_0x530b54[_0x516de9(0xd3)]===Symbol&&_0x530b54!==Symbol['prototype']?_0x516de9(0x175):typeof _0x530b54;},z(_0x589a13);}function B(_0x529faf,_0x473d47){const _0x2d531f=_0x5da5;if(z(_0x529faf)!=_0x2d531f(0x116)||!_0x529faf)return _0x529faf;var _0x38c5f4=_0x529faf[Symbol[_0x2d531f(0x10a)]];if(_0x38c5f4!==void 0x0){var _0x543cbc=_0x38c5f4[_0x2d531f(0x103)](_0x529faf,_0x473d47||_0x2d531f(0x129));if(z(_0x543cbc)!='object')return _0x543cbc;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x473d47===_0x2d531f(0xd9)?String:Number)(_0x529faf);}function _0x12da(){const _0x5bf92d=['sin','stringify','version','getId','pushUndoRedo','getBasicShapeType','_sheetsShapeService','21078XhWntU','hasShape','left','cxnIndex','getBasicShapeRelation','redos','getBatchAddOp','COMMAND','addShape','MUTATION','getShapeModel','position','_serializeShapeForUnit','getEndConnectInfo','getShapeType','_initCommandInterceptor','fromJSON','undos','defineProperty','top','_initSnapshot','from','sheet.command.update-connector-relation','getShapeTextData','624mGPvsl','isLineShape','symbol','flipX','fill','transform','_sheetInterceptorService','_deserializeShapeForUnit','constructor','_shapeModelManagerMap','_config','data','getDrawingData','entries','string','sheet.mutation.update-shape-data','updateContext','push','startX','_initCommands','drawingType','width','getAdjustValueByName','_linesIds','getShapeTypeById','1.0.0-alpha.0','angle','registerCommand','4CosnIv','getBatchUpdateOp','borderEnabled','registerPluginResource','removeLinePoints','_commandService','8kglpFH','sheet.mutation.update-shape-type','delete','pluginName','@univerjs-pro/sheets-shape','packageName','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','onCommandExecute','_sheetSkeletonService','resizeEnabled','getName','range','relation','sheet.command.set-shape-text-vertical-toggle','_groupIds','lineShapeId','shapeId','set','cos','23032FWeVpj','sheet.command.update-shape-type','INSERT','call','sheet.command.insert-shape','getShapeRelation','result','DRAWING_SHAPE','forEach','preUndos','toPrimitive','getCellWithCoordByIndex','_addLineRerouteUpdates','flipY','87022OwEklM','_shapes','_disposed','UNIVER_SHEET','rotateEnabled','add','getOwnPropertyDescriptor','SHEET_SHAPE_PLUGIN','object','shapeName','getShapeData','_ensureShapeModelManager','isHorizontal','_configService','params','get','filter','_getConnectPointInfo','onStarting','keys','10kLykie','_addLineFollowShapeUpdates','392ZWsDQy','isFrom','index','removeShape','340635mpFTIl','default','adjustValues','syncExecuteCommand','clear','getDrawingByParam','dispose','421956chYznU','REMOVE','_injector','function','_drawingManagerService','sheet.command.set-shape-drawing-data','parse','values','setShapeData','265qTAniv','iterator','ensureSkeleton','length','getShapeDisplayNames','45829NVzEHw','setConfig','sheet.command.set-shape-rotate','getAdjustNames','startY','toJSON','decorate','assign','interceptCommand','UPDATE','getSkeleton','sheet.command.update-line-shape-resize','getLineShapeRelation','getStartConnectInfo','height','getConnectionSiteList','worldRect','disposeWithMe','getCellIndexAndOffsetByPosition','preRedos','1829212VzlITu','insertShape','setShapeType'];_0x12da=function(){return _0x5bf92d;};return _0x12da();}function V(_0x4baf2f){const _0xaa8a72=_0x5da5;var _0xa3ef51=B(_0x4baf2f,_0xaa8a72(0xd9));return z(_0xa3ef51)==_0xaa8a72(0x175)?_0xa3ef51:_0xa3ef51+'';}function H(_0x46620b,_0x454051,_0x3fac31){const _0xe328=_0x5da5;return(_0x454051=V(_0x454051))in _0x46620b?Object[_0xe328(0x16d)](_0x46620b,_0x454051,{'value':_0x3fac31,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46620b[_0x454051]=_0x3fac31,_0x46620b;}var U=class extends _0x1b87a1{constructor(){const _0x2ba043=_0x5da5;super(),H(this,'_shapes',new Map()),H(this,_0x2ba043(0xe2),new Set()),H(this,_0x2ba043(0xfb),new Set());}[_0x59fa14(0x163)](_0x2fbd16,_0x39f490,_0x27c640,_0x3d4c65){const _0xa6a7e4=_0x59fa14;let _0x113abe=new _0x5173db(_0x2fbd16,_0x39f490,_0x27c640,_0x3d4c65);return this['_shapes'][_0xa6a7e4(0xfe)](_0x39f490,_0x113abe),_0xf81d44(_0x2fbd16)&&this['_linesIds'][_0xa6a7e4(0x113)](_0x39f490),_0x113abe;}[_0x59fa14(0x15f)](_0x81cb40){const _0xaaf059=_0x59fa14;let _0x5bb80b=[];for(let _0x31f47b of this[_0xaaf059(0xe2)]){let _0x3c287d=this[_0xaaf059(0x10f)]['get'](_0x31f47b);if(_0x3c287d){let _0x13902f=_0x3c287d['getShapeRelation']();if(_0x13902f){var _0x127848,_0x28411f;((_0x127848=_0x13902f['from'])==null?void 0x0:_0x127848['shapeId'])===_0x81cb40&&_0x5bb80b['push']({..._0x13902f[_0xaaf059(0x170)],'lineShapeId':_0x31f47b,'isFrom':!0x0}),((_0x28411f=_0x13902f['to'])==null?void 0x0:_0x28411f[_0xaaf059(0xfd)])===_0x81cb40&&_0x5bb80b['push']({..._0x13902f['to'],'lineShapeId':_0x31f47b,'isFrom':!0x1});}}}return _0x5bb80b;}['getLineShapeRelation'](_0x2afe8c){const _0xe9ac78=_0x59fa14;let _0x5bbbaf=this[_0xe9ac78(0x10f)][_0xe9ac78(0x11d)](_0x2afe8c);if(_0x5bbbaf)return _0x5bbbaf[_0xe9ac78(0x105)]();}[_0x59fa14(0x169)](_0x31616b){const _0x57b7ab=_0x59fa14;let _0x19e58b=this[_0x57b7ab(0x10f)][_0x57b7ab(0x11d)](_0x31616b);if(_0x19e58b)return _0x19e58b[_0x57b7ab(0x169)]();}['hasShape'](_0x4d152b){return this['_shapes']['has'](_0x4d152b);}[_0x59fa14(0x13c)](){const _0x5067b2=_0x59fa14;return Array[_0x5067b2(0x170)](this[_0x5067b2(0x10f)][_0x5067b2(0x136)]())['map'](_0x524546=>_0x524546[_0x5067b2(0xf7)]()||_0x524546[_0x5067b2(0x157)]());}[_0x59fa14(0x127)](_0x15d81e){const _0x26adad=_0x59fa14;let _0x1cceac=this[_0x26adad(0x10f)][_0x26adad(0x11d)](_0x15d81e);_0x1cceac&&(_0xf81d44(_0x1cceac[_0x26adad(0x169)]())&&this['_linesIds']['delete'](_0x15d81e),this['_shapes'][_0x26adad(0xef)](_0x15d81e));}['toJSON'](){const _0x3e614b=_0x59fa14;let _0x382218=[];return this['_shapes'][_0x3e614b(0x108)](_0xe1e039=>{const _0x283d63=_0x3e614b;_0x382218[_0x283d63(0xdc)](_0xe1e039[_0x283d63(0x142)]());}),_0x382218;}[_0x59fa14(0x16b)](_0x12ced7){const _0x2cabde=_0x59fa14;for(let _0x162f3b of _0x12ced7){let {id:_0x3f53f1,shapeType:_0x3b0f39,name:_0x37d5f1}=_0x162f3b,_0x23c3d7=this[_0x2cabde(0x163)](_0x3b0f39,_0x3f53f1,_0x162f3b['shapeData'],_0x37d5f1);_0x23c3d7&&_0x23c3d7[_0x2cabde(0x174)]()&&this[_0x2cabde(0xe2)][_0x2cabde(0x113)](_0x3f53f1);}}[_0x59fa14(0x12e)](){const _0x482673=_0x59fa14;this[_0x482673(0x110)]||(this[_0x482673(0x10f)][_0x482673(0x108)](_0x1ec3c2=>{_0x1ec3c2['dispose']();}),this[_0x482673(0x10f)][_0x482673(0x12c)](),this[_0x482673(0xe2)][_0x482673(0x12c)](),this[_0x482673(0xfb)][_0x482673(0x12c)](),super['dispose']());}};function W(_0xf51404,_0x4c7eac){return function(_0x36764e,_0x3c0a30){_0x4c7eac(_0x36764e,_0x3c0a30,_0xf51404);};}function G(_0x359faf,_0x87e38c,_0xe0461,_0x1c6682){const _0x37afee=_0x59fa14;var _0x1bf62d=arguments[_0x37afee(0x13b)],_0x2d3a11=_0x1bf62d<0x3?_0x87e38c:_0x1c6682===null?_0x1c6682=Object[_0x37afee(0x114)](_0x87e38c,_0xe0461):_0x1c6682,_0x3d1c07;if(typeof Reflect==_0x37afee(0x116)&&typeof Reflect[_0x37afee(0x143)]==_0x37afee(0x132))_0x2d3a11=Reflect['decorate'](_0x359faf,_0x87e38c,_0xe0461,_0x1c6682);else{for(var _0x1174db=_0x359faf[_0x37afee(0x13b)]-0x1;_0x1174db>=0x0;_0x1174db--)(_0x3d1c07=_0x359faf[_0x1174db])&&(_0x2d3a11=(_0x1bf62d<0x3?_0x3d1c07(_0x2d3a11):_0x1bf62d>0x3?_0x3d1c07(_0x87e38c,_0xe0461,_0x2d3a11):_0x3d1c07(_0x87e38c,_0xe0461))||_0x2d3a11);}return _0x1bf62d>0x3&&_0x2d3a11&&Object[_0x37afee(0x16d)](_0x87e38c,_0xe0461,_0x2d3a11),_0x2d3a11;}let K=class extends _0x1b87a1{constructor(_0x1d7e9e){const _0x26a325=_0x59fa14;super(),this['_resourcesManagerService']=_0x1d7e9e,H(this,_0x26a325(0xd4),new Map()),this['_initSnapshot']();}[_0x59fa14(0x119)](_0x3df9f9,_0x108b97){const _0x3030a4=_0x59fa14;let _0xc3730b=this[_0x3030a4(0xd4)][_0x3030a4(0x11d)](_0x3df9f9);_0xc3730b||(_0xc3730b=new Map(),this[_0x3030a4(0xd4)][_0x3030a4(0xfe)](_0x3df9f9,_0xc3730b));let _0x405e91=_0xc3730b[_0x3030a4(0x11d)](_0x108b97);return _0x405e91||(_0x405e91=new U(),_0xc3730b[_0x3030a4(0xfe)](_0x108b97,_0x405e91)),_0x405e91;}[_0x59fa14(0x152)](_0x1ccfef,_0x2d10e3,_0x2238f8,_0x1bf0b8,_0x2bce59,_0xd5609c){const _0xc6154f=_0x59fa14;this[_0xc6154f(0x119)](_0x1ccfef,_0x2d10e3)[_0xc6154f(0x163)](_0x2238f8,_0x1bf0b8,_0x2bce59,_0xd5609c);}[_0x59fa14(0x127)](_0x19a9a4,_0x45379b,_0xcc2061){const _0x496cc4=_0x59fa14;this['_ensureShapeModelManager'](_0x19a9a4,_0x45379b)[_0x496cc4(0x127)](_0xcc2061);}[_0x59fa14(0x159)](_0x401593,_0xcdba09,_0x43925b){const _0x51bdfe=_0x59fa14;return this[_0x51bdfe(0x119)](_0x401593,_0xcdba09)['getShapeType'](_0x43925b);}['getShapeType'](_0x8e943d,_0x4f4b32,_0xba1d2e){const _0x350bd7=_0x59fa14;return this[_0x350bd7(0x119)](_0x8e943d,_0x4f4b32)['getShapeType'](_0xba1d2e);}['hasShape'](_0x1ac7dd,_0x18c631,_0x2e04a3){const _0x333b8b=_0x59fa14;return this[_0x333b8b(0x119)](_0x1ac7dd,_0x18c631)[_0x333b8b(0x15c)](_0x2e04a3);}[_0x59fa14(0xe3)](_0xd1d6bd,_0x16535c,_0x27e829){const _0x3dd738=_0x59fa14;return this[_0x3dd738(0x119)](_0xd1d6bd,_0x16535c)['getShapeType'](_0x27e829);}['getShapeDataById'](_0x1bf469,_0x11882c,_0x5b08a7){const _0x523835=_0x59fa14;let _0x588346=this[_0x523835(0x119)](_0x1bf469,_0x11882c);if(!_0x588346['getShapeType'](_0x5b08a7))return;let _0x4e96a8=_0x588346['_shapes']['get'](_0x5b08a7);if(_0x4e96a8)return _0x4e96a8[_0x523835(0x118)]();}['getShapeDisplayNames'](_0x161068,_0x503b03){const _0x3ff91f=_0x59fa14;return this[_0x3ff91f(0x119)](_0x161068,_0x503b03)[_0x3ff91f(0x13c)]();}[_0x59fa14(0x165)](_0x179c24,_0x577f5b,_0x3a5def){const _0x3fd471=_0x59fa14;return this[_0x3fd471(0x119)](_0x179c24,_0x577f5b)[_0x3fd471(0x10f)]['get'](_0x3a5def);}[_0x59fa14(0x15f)](_0x48232b,_0x3f31ec,_0x2238ac){const _0x24ca9b=_0x59fa14;return this['_ensureShapeModelManager'](_0x48232b,_0x3f31ec)[_0x24ca9b(0x15f)](_0x2238ac);}[_0x59fa14(0x149)](_0x553437,_0x4decff,_0x65ba34){const _0x3be558=_0x59fa14;let _0x2ee0a5=this[_0x3be558(0x119)](_0x553437,_0x4decff)[_0x3be558(0x10f)]['get'](_0x65ba34);if(_0x2ee0a5)return _0x2ee0a5['getShapeRelation']();}[_0x59fa14(0x153)](){}[_0x59fa14(0x167)](_0x9fce08){const _0x1b5681=_0x59fa14;let _0x473fa4={},_0x421d1b=this['_shapeModelManagerMap']['get'](_0x9fce08);return _0x421d1b&&_0x421d1b[_0x1b5681(0x108)]((_0x1f084c,_0x482307)=>{const _0x2c7c78=_0x1b5681;let _0x1f77f9=_0x1f084c[_0x2c7c78(0x142)]();_0x1f77f9[_0x2c7c78(0x13b)]>0x0&&(_0x473fa4[_0x482307]=_0x1f77f9);}),JSON[_0x1b5681(0x155)](_0x473fa4);}['_deserializeShapeForUnit'](_0x73560c,_0x531a5c){const _0x11e9c1=_0x59fa14;Object[_0x11e9c1(0x121)](_0x531a5c)[_0x11e9c1(0x108)](_0x454794=>{const _0x319d77=_0x11e9c1;this[_0x319d77(0x119)](_0x73560c,_0x454794)[_0x319d77(0x16b)](_0x531a5c[_0x454794]);});}['toJSON'](){const _0x19a317=_0x59fa14;let _0x33badc={};return this[_0x19a317(0xd4)][_0x19a317(0x108)]((_0x2bd1e4,_0x5a8bd1)=>{const _0x26c4f0=_0x19a317;_0x33badc[_0x5a8bd1]={},_0x2bd1e4[_0x26c4f0(0x108)]((_0x5b3381,_0x1b0fc3)=>{const _0x3d052d=_0x26c4f0;_0x33badc[_0x5a8bd1][_0x1b0fc3]=_0x5b3381[_0x3d052d(0x142)]();});}),_0x33badc;}[_0x59fa14(0x16b)](_0x5c51ad){Object['keys'](_0x5c51ad)['forEach'](_0x3e468f=>{const _0x2f0ffd=_0x5da5;let _0x6f878c=_0x5c51ad[_0x3e468f];Object[_0x2f0ffd(0x121)](_0x6f878c)[_0x2f0ffd(0x108)](_0x453bd1=>{const _0x2346f3=_0x2f0ffd;this['_ensureShapeModelManager'](_0x3e468f,_0x453bd1)[_0x2346f3(0x16b)](_0x6f878c[_0x453bd1]);});});}[_0x59fa14(0x16f)](){const _0x6ac398=_0x59fa14;this['_resourcesManagerService'][_0x6ac398(0xea)]({'pluginName':_0x6ac398(0x115),'businesses':[_0x4f7fa0[_0x6ac398(0x111)]],'toJson':_0x5d59cc=>this[_0x6ac398(0x167)](_0x5d59cc),'parseJson':_0xd8601b=>JSON[_0x6ac398(0x135)](_0xd8601b),'onLoad':(_0x445b45,_0x2964c4)=>{const _0x4742c6=_0x6ac398;this[_0x4742c6(0xd2)](_0x445b45,_0x2964c4);},'onUnLoad':_0x161747=>{const _0x3f175e=_0x6ac398;let _0x100f1f=this[_0x3f175e(0xd4)]['get'](_0x161747);_0x100f1f&&(_0x100f1f[_0x3f175e(0x108)](_0x94ec0f=>{const _0x4d38ce=_0x3f175e;_0x94ec0f[_0x4d38ce(0x12e)]();}),this[_0x3f175e(0xd4)][_0x3f175e(0xef)](_0x161747));}});}[_0x59fa14(0x12e)](){this['_shapeModelManagerMap']['forEach'](_0x440e29=>{const _0x2b435c=_0x5da5;_0x440e29[_0x2b435c(0x108)](_0x461309=>{const _0x4b26ba=_0x2b435c;_0x461309[_0x4b26ba(0x12e)]();});});}};K=G([W(0x0,_0x42568c)],K);const q={'id':'sheet.mutation.insert-shape','type':_0x2bf4ff[_0x59fa14(0x164)],'handler':(_0x1c6335,_0x244e9d)=>{const _0x422874=_0x59fa14;let {unitId:_0x596cdb,subUnitId:_0x312d38,shapeType:_0x571115,shapeId:_0x4b76e9,shapeName:_0xde643f,shapeData:_0x1ba273}=_0x244e9d;return _0x1c6335['get'](K)[_0x422874(0x152)](_0x596cdb,_0x312d38,_0x571115,_0x4b76e9,_0x1ba273,_0xde643f),!0x0;}},J={'id':'sheet.mutation.remove-shape','type':_0x2bf4ff[_0x59fa14(0x164)],'handler':(_0x1c99c7,_0x154aa7)=>{const _0x87554b=_0x59fa14;let {unitId:_0x2615be,subUnitId:_0x58db55,shapeId:_0x5bcea9}=_0x154aa7;return _0x1c99c7[_0x87554b(0x11d)](K)[_0x87554b(0x127)](_0x2615be,_0x58db55,_0x5bcea9),!0x0;}},Y={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':_0x59fa14(0x104),'handler':(_0x369be6,_0x3dd3ee)=>{const _0xa93bf3=_0x59fa14;var _0x191f08,_0xc066a5,_0x480517;let _0x2cd679=_0x58348b(_0x369be6[_0xa93bf3(0x11d)](_0xa3f088),_0x3dd3ee);if(!_0x2cd679)return!0x1;let _0x5bb598=_0x369be6['get'](_0x44b292),{unitId:_0xd22f4a,subUnitId:_0x211b57}=_0x2cd679,_0x738ec9=_0x5bb598[_0xa93bf3(0x13a)](_0xd22f4a,_0x211b57);if(!_0x738ec9)return!0x1;let _0x1082bf=_0x369be6[_0xa93bf3(0x11d)](_0x5448b6),_0x1913b0=_0x369be6[_0xa93bf3(0x11d)](_0x2e3ab6),_0x3ff03f=_0x369be6[_0xa93bf3(0x11d)](_0x1b2525),_0x1fd3f2=_0x369be6['get'](_0x2a5b18),_0x19f018=_0x369be6[_0xa93bf3(0x11d)](K),{shapeType:_0x428bc8,shapeData:_0x1c5421}=_0x3dd3ee,_0x5c9724=_0x3dd3ee[_0xa93bf3(0xfd)]||_0x1c7b18(),_0x330e2d={'unitId':_0xd22f4a,'subUnitId':_0x211b57,'shapeId':_0x5c9724,'shapeName':(_0x191f08=_0x3dd3ee[_0xa93bf3(0x117)])==null?_0x80e9ad(_0x428bc8,_0x19f018[_0xa93bf3(0x13c)](_0xd22f4a,_0x211b57)):_0x191f08,'shapeType':_0x428bc8,'shapeData':_0x1c5421},_0x563498=_0x3dd3ee[_0xa93bf3(0xe0)]||0xc8,_0x3dea64=_0x3dd3ee[_0xa93bf3(0x14b)]||0xc8,_0x13e227=0x0,_0x444e7=0x0,_0x17e3d3={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x3e81f9={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x3dd3ee[_0xa93bf3(0x166)]){let {x:_0x1cb8a3,y:_0x27b109}=_0x3dd3ee[_0xa93bf3(0x166)];_0x13e227=_0x1cb8a3,_0x444e7=_0x27b109,_0x17e3d3=_0x738ec9[_0xa93bf3(0x14f)](_0x1cb8a3,_0x27b109),_0x3e81f9=_0x738ec9['getCellIndexAndOffsetByPosition'](_0x1cb8a3+_0x563498,_0x27b109+_0x3dea64);}else{if(_0x3dd3ee[_0xa93bf3(0xf8)]){let {startRow:_0x39e057,startColumn:_0x3e5bf4}=_0x3dd3ee[_0xa93bf3(0xf8)];_0x17e3d3={'row':_0x39e057,'rowOffset':0xa,'column':_0x3e5bf4,'columnOffset':0xa};let _0x891f7=_0x738ec9[_0xa93bf3(0x10b)](_0x39e057,_0x3e5bf4);_0x13e227=_0x891f7[_0xa93bf3(0xdd)]+0xa,_0x444e7=_0x891f7[_0xa93bf3(0x141)]+0xa,_0x3e81f9=_0x738ec9['getCellIndexAndOffsetByPosition'](_0x13e227+_0x563498,_0x444e7+_0x3dea64);}}let _0x4f56ca={'from':_0x17e3d3,'to':_0x3e81f9},_0x46587f={'unitId':_0xd22f4a,'subUnitId':_0x211b57,'drawingId':_0x5c9724,'drawingType':_0x34bc84[_0xa93bf3(0x107)],'sheetTransform':_0x4f56ca,'transform':{'left':_0x13e227,'top':_0x444e7,'width':_0x563498,'height':_0x3dea64},'data':{'shapeType':_0x428bc8,'shapeData':_0x1c5421},'axisAlignSheetTransform':_0x4f56ca,'allowTransform':!0x0};_0xf81d44(_0x428bc8)&&(_0x46587f[_0xa93bf3(0xd6)]['fill']=!0x1,_0x46587f[_0xa93bf3(0xd6)][_0xa93bf3(0x112)]=!0x1,_0x46587f['data'][_0xa93bf3(0xf6)]=!0x1,_0x46587f[_0xa93bf3(0xd6)][_0xa93bf3(0xe9)]=!0x1,_0x46587f[_0xa93bf3(0x178)][_0xa93bf3(0x112)]=!0x1,_0x46587f[_0xa93bf3(0x178)][_0xa93bf3(0xf6)]=!0x1,_0x46587f[_0xa93bf3(0x178)]['borderEnabled']=!0x1);let {undo:_0xc2cb6a,redo:_0x348512,objects:_0x154101}=_0x1fd3f2[_0xa93bf3(0x161)]([_0x46587f]),_0x521f55=_0x3ff03f[_0xa93bf3(0xf4)]({'id':_0x5f1f6d['id'],'params':{'unitId':_0xd22f4a,'drawings':[_0x46587f]}}),_0x2d31dc=[...(_0xc066a5=_0x521f55[_0xa93bf3(0x150)])==null?[]:_0xc066a5,{'id':_0x4f132c['id'],'params':{'unitId':_0xd22f4a,'subUnitId':_0x211b57,'op':_0x348512,'objects':_0x154101,'type':_0x1e39cb[_0xa93bf3(0x102)]}},{'id':_0x1d1aa4['id'],'params':[_0xd22f4a]},..._0x521f55[_0xa93bf3(0x160)],{'id':q['id'],'params':_0x330e2d}],_0x5c5863=[{'id':J['id'],'params':{'unitId':_0xd22f4a,'subUnitId':_0x211b57,'shapeId':_0x5c9724}},...(_0x480517=_0x521f55[_0xa93bf3(0x109)])==null?[]:_0x480517,{'id':_0x4f132c['id'],'params':{'unitId':_0xd22f4a,'subUnitId':_0x211b57,'op':_0xc2cb6a,'objects':_0x154101,'type':_0x1e39cb[_0xa93bf3(0x130)]}},{'id':_0x1d1aa4['id'],'params':[_0xd22f4a]},..._0x521f55[_0xa93bf3(0x16c)]];return _0x20d2b6(_0x2d31dc,_0x1082bf)[_0xa93bf3(0x106)]?(_0x1913b0[_0xa93bf3(0x158)]({'unitID':_0xd22f4a,'undoMutations':_0x5c5863,'redoMutations':_0x2d31dc}),!0x0):!0x1;}},X={'id':_0x59fa14(0xda),'type':_0x2bf4ff[_0x59fa14(0x164)],'handler':(_0x55bba9,_0x4c5b1b)=>{const _0x259afa=_0x59fa14;let {unitId:_0x11a010,subUnitId:_0x628b5b,shapeType:_0x2c73c7,shapeId:_0x45ddf4,shapeData:_0x4e5db4}=_0x4c5b1b,_0x4ff8aa=_0x55bba9[_0x259afa(0x11d)](K)[_0x259afa(0x165)](_0x11a010,_0x628b5b,_0x45ddf4);return _0x4ff8aa&&(_0x2c73c7!==void 0x0&&_0x4ff8aa[_0x259afa(0x153)](_0x2c73c7),_0x4e5db4&&(_0x4ff8aa==null||_0x4ff8aa[_0x259afa(0x137)](_0x4e5db4,!0x0))),!0x0;}},ee={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':_0x59fa14(0x134),'handler':(_0x1e0f26,_0x5cd1b0)=>{const _0x4782c7=_0x59fa14;var _0x76f09e,_0x2c5edf;let _0x52440b=_0x58348b(_0x1e0f26[_0x4782c7(0x11d)](_0xa3f088),_0x5cd1b0);if(!_0x52440b)return!0x1;let _0xc4ca90=_0x1e0f26[_0x4782c7(0x11d)](_0x44b292),{unitId:_0x1f6865,subUnitId:_0x5e0377}=_0x52440b,_0x1f69fb=_0xc4ca90[_0x4782c7(0x13a)](_0x1f6865,_0x5e0377);if(!_0x1f69fb)return!0x1;let _0x12ff64=_0x1e0f26[_0x4782c7(0x11d)](K),{shapeId:_0x46c217,shapeType:_0x23611b,shapeData:_0xb93b66,position:_0x4408f1,width:_0x393d5d,height:_0x717ec4}=_0x5cd1b0,_0x305772=_0x12ff64[_0x4782c7(0x165)](_0x1f6865,_0x5e0377,_0x46c217);if(!_0x305772)return!0x1;let _0x571905=_0x1e0f26[_0x4782c7(0x11d)](_0x5448b6),_0x15676b=_0x1e0f26[_0x4782c7(0x11d)](_0x2e3ab6),_0x5396cd=_0x1e0f26['get'](_0x1b2525),_0x1d2fda=_0x1e0f26['get'](_0x2a5b18),_0x5eef24={'unitId':_0x1f6865,'subUnitId':_0x5e0377,'shapeId':_0x46c217,'shapeType':_0x23611b,'shapeData':_0xb93b66},_0x38a3a0=_0x305772[_0x4782c7(0x169)](),_0x2ba991=_0x305772[_0x4782c7(0x118)](),{x:_0x29bc30,y:_0x4486a2}=_0x4408f1,_0x3517ba={'from':_0x1f69fb[_0x4782c7(0x14f)](_0x29bc30,_0x4486a2),'to':_0x1f69fb[_0x4782c7(0x14f)](_0x29bc30+_0x393d5d,_0x4486a2+_0x717ec4)},_0x4dc0bd={'unitId':_0x1f6865,'subUnitId':_0x5e0377,'drawingId':_0x46c217,'drawingType':_0x34bc84[_0x4782c7(0x107)],'sheetTransform':_0x3517ba,'transform':{'left':_0x29bc30,'top':_0x4486a2,'width':_0x393d5d,'height':_0x717ec4},'data':{'shapeType':_0x23611b,'shapeData':_0xb93b66},'axisAlignSheetTransform':_0x3517ba,'allowTransform':!0x0};_0xf81d44(_0x23611b)&&(_0x4dc0bd[_0x4782c7(0xd6)][_0x4782c7(0x177)]=!0x1,_0x4dc0bd[_0x4782c7(0xd6)][_0x4782c7(0x112)]=!0x1,_0x4dc0bd[_0x4782c7(0xd6)][_0x4782c7(0xf6)]=!0x1,_0x4dc0bd[_0x4782c7(0xd6)][_0x4782c7(0xe9)]=!0x1,_0x4dc0bd[_0x4782c7(0x178)][_0x4782c7(0x112)]=!0x1,_0x4dc0bd[_0x4782c7(0x178)][_0x4782c7(0xf6)]=!0x1,_0x4dc0bd[_0x4782c7(0x178)][_0x4782c7(0xe9)]=!0x1);let {undo:_0x582f38,redo:_0x280910,objects:_0x22efa1}=_0x1d2fda[_0x4782c7(0xe8)]([_0x4dc0bd]),_0x371070=_0x5396cd['onCommandExecute']({'id':_0x3319d6['id'],'params':{'unitId':_0x1f6865,'drawings':[_0x4dc0bd]}}),_0x4b90f4=[...(_0x76f09e=_0x371070[_0x4782c7(0x150)])==null?[]:_0x76f09e,{'id':_0x4f132c['id'],'params':{'unitId':_0x1f6865,'subUnitId':_0x5e0377,'op':_0x280910,'objects':_0x22efa1,'type':_0x1e39cb[_0x4782c7(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x1f6865]},..._0x371070[_0x4782c7(0x160)],{'id':X['id'],'params':_0x5eef24}],_0x2251a9=[...(_0x2c5edf=_0x371070[_0x4782c7(0x109)])==null?[]:_0x2c5edf,{'id':_0x4f132c['id'],'params':{'unitId':_0x1f6865,'subUnitId':_0x5e0377,'op':_0x582f38,'objects':_0x22efa1,'type':_0x1e39cb[_0x4782c7(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x1f6865]},..._0x371070[_0x4782c7(0x16c)],{'id':X['id'],'params':{'unitId':_0x1f6865,'subUnitId':_0x5e0377,'shapeType':_0x38a3a0,'shapeId':_0x46c217,'shapeData':_0x2ba991}}];return _0x20d2b6(_0x4b90f4,_0x571905)[_0x4782c7(0x106)]?(_0x15676b[_0x4782c7(0x158)]({'unitID':_0x1f6865,'undoMutations':_0x2251a9,'redoMutations':_0x4b90f4}),!0x0):!0x1;}},Z={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':'sheet.command.toggle-shape-flip','handler':(_0x4a9884,_0x113077)=>{const _0x57de88=_0x59fa14;var _0x5d66cc,_0x499500;let _0x1b057e=_0x58348b(_0x4a9884[_0x57de88(0x11d)](_0xa3f088),_0x113077);if(!_0x1b057e)return!0x1;let _0x286ab2=_0x4a9884[_0x57de88(0x11d)](_0x44b292),{unitId:_0x1f2823,subUnitId:_0x3b52a1}=_0x1b057e,_0x1fa012=_0x286ab2['getSkeleton'](_0x1f2823,_0x3b52a1);if(!_0x1fa012)return!0x1;let _0xa2339b=_0x4a9884[_0x57de88(0x11d)](_0x2a5b18),{shapeId:_0x4d3525,flipH:_0x38181d,flipV:_0x50b212}=_0x113077,_0x3af48d=_0xa2339b[_0x57de88(0x12d)]({'unitId':_0x1f2823,'subUnitId':_0x3b52a1,'drawingId':_0x4d3525});if(!_0x3af48d)return!0x1;let _0x3beb2b=_0x4a9884[_0x57de88(0x11d)](K)[_0x57de88(0x165)](_0x1f2823,_0x3b52a1,_0x4d3525);if(!_0x3beb2b)return!0x1;let _0x2a7d87=_0x4a9884[_0x57de88(0x11d)](_0x5448b6),_0x52d23a=_0x4a9884[_0x57de88(0x11d)](_0x2e3ab6),_0x3f819c=_0x4a9884['get'](_0x1b2525),_0x38fdeb={..._0x3af48d[_0x57de88(0x178)]};_0x38181d!==void 0x0&&(_0x38fdeb[_0x57de88(0x176)]=!_0x38fdeb['flipX']),_0x50b212!==void 0x0&&(_0x38fdeb[_0x57de88(0x10d)]=!_0x38fdeb[_0x57de88(0x10d)]);let _0x41d2c7=_0x383801(_0x38fdeb,_0x1fa012),_0x492643=_0x2b6c1d(_0x38fdeb,_0x1fa012),_0x40cf61=_0x3beb2b[_0x57de88(0x169)](),_0x1ae3c1=_0x3beb2b[_0x57de88(0x118)](),_0x40b249={'unitId':_0x1f2823,'subUnitId':_0x3b52a1,'drawingId':_0x4d3525,'drawingType':_0x34bc84[_0x57de88(0x107)],'sheetTransform':_0x41d2c7,'transform':_0x38fdeb,'data':{'shapeType':_0x40cf61,'shapeData':_0x1ae3c1},'axisAlignSheetTransform':_0x492643,'allowTransform':!0x0},{undo:_0x5bec44,redo:_0xa831a8,objects:_0x56f527}=_0xa2339b[_0x57de88(0xe8)]([_0x40b249]),_0x4627a9=_0x3f819c[_0x57de88(0xf4)]({'id':_0x3319d6['id'],'params':{'unitId':_0x1f2823,'drawings':[_0x40b249]}}),_0x4b0848=[...(_0x5d66cc=_0x4627a9[_0x57de88(0x150)])==null?[]:_0x5d66cc,{'id':_0x4f132c['id'],'params':{'unitId':_0x1f2823,'subUnitId':_0x3b52a1,'op':_0xa831a8,'objects':_0x56f527,'type':_0x1e39cb[_0x57de88(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x1f2823]},..._0x4627a9[_0x57de88(0x160)]],_0x55799e=[...(_0x499500=_0x4627a9[_0x57de88(0x109)])==null?[]:_0x499500,{'id':_0x4f132c['id'],'params':{'unitId':_0x1f2823,'subUnitId':_0x3b52a1,'op':_0x5bec44,'objects':_0x56f527,'type':_0x1e39cb['UPDATE']}},{'id':_0x1d1aa4['id'],'params':[_0x1f2823]},..._0x4627a9[_0x57de88(0x16c)]];if(_0xf81d44(_0x40cf61)){let _0x2d5580=_0x3beb2b[_0x57de88(0x105)]();if(_0x2d5580){let _0x23c6c4={..._0x2d5580};_0x23c6c4['from']=void 0x0,_0x23c6c4['to']=void 0x0,_0x4b0848[_0x57de88(0xdc)]({'id':X['id'],'params':{'unitId':_0x1f2823,'subUnitId':_0x3b52a1,'shapeId':_0x4d3525,'shapeType':_0x40cf61,'shapeData':{'relation':_0x23c6c4}}}),_0x55799e['push']({'id':X['id'],'params':{'unitId':_0x1f2823,'subUnitId':_0x3b52a1,'shapeId':_0x4d3525,'shapeType':_0x40cf61,'shapeData':{'relation':_0x2d5580}}});}}return _0x20d2b6(_0x4b0848,_0x2a7d87)[_0x57de88(0x106)]?(_0x52d23a[_0x57de88(0x158)]({'unitID':_0x1f2823,'undoMutations':_0x55799e,'redoMutations':_0x4b0848}),!0x0):!0x1;}},Q={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':_0x59fa14(0x13f),'handler':(_0x238a22,_0xc9e27f)=>{const _0x4daaab=_0x59fa14;var _0x51517a,_0x3780d0;let _0x11cadf=_0x58348b(_0x238a22[_0x4daaab(0x11d)](_0xa3f088),_0xc9e27f);if(!_0x11cadf)return!0x1;let _0x38ce04=_0x238a22[_0x4daaab(0x11d)](_0x44b292),{unitId:_0x17f450,subUnitId:_0x5d4a1f}=_0x11cadf,_0x2eb0d4=_0x38ce04[_0x4daaab(0x147)](_0x17f450,_0x5d4a1f);if(!_0x2eb0d4)return!0x1;let _0x591b33=_0x238a22[_0x4daaab(0x11d)](_0x2a5b18),{shapeId:_0x3e1e4b,rotate:_0x441b85}=_0xc9e27f,_0x208f84=_0x591b33['getDrawingByParam']({'unitId':_0x17f450,'subUnitId':_0x5d4a1f,'drawingId':_0x3e1e4b});if(!_0x208f84)return!0x1;let _0x5aebfd=_0x238a22['get'](K)[_0x4daaab(0x165)](_0x17f450,_0x5d4a1f,_0x3e1e4b);if(!_0x5aebfd)return!0x1;let _0x6f88b7=_0x238a22['get'](_0x5448b6),_0x4eecd1=_0x238a22[_0x4daaab(0x11d)](_0x2e3ab6),_0x3ca63e=_0x238a22[_0x4daaab(0x11d)](_0x1b2525),_0x4e5a23={..._0x208f84['transform']};_0x441b85!==void 0x0&&(_0x4e5a23[_0x4daaab(0xe5)]=(_0x4e5a23[_0x4daaab(0xe5)]||0x0)+_0x441b85);let _0x54f64a=_0x383801(_0x4e5a23,_0x2eb0d4),_0x183b5b=_0x2b6c1d(_0x4e5a23,_0x2eb0d4),_0x442835=_0x5aebfd[_0x4daaab(0x169)](),_0x829da7=_0x5aebfd[_0x4daaab(0x118)](),_0x17ca20={'unitId':_0x17f450,'subUnitId':_0x5d4a1f,'drawingId':_0x3e1e4b,'drawingType':_0x34bc84[_0x4daaab(0x107)],'sheetTransform':_0x54f64a,'transform':_0x4e5a23,'data':{'shapeType':_0x442835,'shapeData':_0x829da7},'axisAlignSheetTransform':_0x183b5b,'allowTransform':!0x0},{undo:_0x48b12e,redo:_0x214c91,objects:_0x22346d}=_0x591b33[_0x4daaab(0xe8)]([_0x17ca20]),_0x42a418=_0x3ca63e[_0x4daaab(0xf4)]({'id':_0x3319d6['id'],'params':{'unitId':_0x17f450,'drawings':[_0x17ca20]}}),_0x25aa48=[...(_0x51517a=_0x42a418[_0x4daaab(0x150)])==null?[]:_0x51517a,{'id':_0x4f132c['id'],'params':{'unitId':_0x17f450,'subUnitId':_0x5d4a1f,'op':_0x214c91,'objects':_0x22346d,'type':_0x1e39cb[_0x4daaab(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x17f450]},..._0x42a418[_0x4daaab(0x160)]],_0x6abe09=[...(_0x3780d0=_0x42a418[_0x4daaab(0x109)])==null?[]:_0x3780d0,{'id':_0x4f132c['id'],'params':{'unitId':_0x17f450,'subUnitId':_0x5d4a1f,'op':_0x48b12e,'objects':_0x22346d,'type':_0x1e39cb[_0x4daaab(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x17f450]},..._0x42a418[_0x4daaab(0x16c)]];return _0x20d2b6(_0x25aa48,_0x6f88b7)[_0x4daaab(0x106)]?(_0x4eecd1['pushUndoRedo']({'unitID':_0x17f450,'undoMutations':_0x6abe09,'redoMutations':_0x25aa48}),!0x0):!0x1;}},te={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':_0x59fa14(0xfa),'handler':(_0x2404d0,_0x4efc7a)=>{const _0x43529c=_0x59fa14;var _0x1f26b4;let _0x19cab0=_0x58348b(_0x2404d0['get'](_0xa3f088),_0x4efc7a);if(!_0x19cab0)return!0x1;let {unitId:_0x475c05,subUnitId:_0x53846d}=_0x19cab0,{shapeId:_0x20f14e}=_0x4efc7a,_0x5c3de0=_0x2404d0[_0x43529c(0x11d)](K)['getShapeModel'](_0x475c05,_0x53846d,_0x20f14e);if(!_0x5c3de0)return!0x1;let _0x1b3c4c=_0x5c3de0[_0x43529c(0x172)](),_0x309542=(_0x1f26b4=_0x1b3c4c==null?void 0x0:_0x1b3c4c[_0x43529c(0x11a)])==null?!0x0:_0x1f26b4,_0x41040d=!_0x309542,_0x48ee22=_0x2404d0[_0x43529c(0x11d)](_0x5448b6),_0x13fa03=_0x2404d0[_0x43529c(0x11d)](_0x2e3ab6),_0x163342={'unitId':_0x475c05,'subUnitId':_0x53846d,'shapeId':_0x20f14e,'shapeData':{'shapeText':{'isHorizontal':_0x41040d}}},_0x189e75={'unitId':_0x475c05,'subUnitId':_0x53846d,'shapeId':_0x20f14e,'shapeData':{'shapeText':{'isHorizontal':_0x309542}}},_0x4d7e6c=[{'id':X['id'],'params':_0x163342}],_0x2827c2=[{'id':X['id'],'params':_0x189e75}];return _0x20d2b6(_0x4d7e6c,_0x48ee22)[_0x43529c(0x106)]?(_0x13fa03['pushUndoRedo']({'unitID':_0x475c05,'undoMutations':_0x2827c2,'redoMutations':_0x4d7e6c}),!0x0):!0x1;}},ne={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':_0x59fa14(0x171),'handler':(_0x2f1526,_0x5cfe79)=>{const _0x1034bd=_0x59fa14;var _0x1fff29,_0xdf9a7b,_0x3c8b9e,_0x5eb5b1;let _0x19d46d=_0x58348b(_0x2f1526[_0x1034bd(0x11d)](_0xa3f088),_0x5cfe79);if(!_0x19d46d)return!0x1;let _0x17d692=_0x2f1526[_0x1034bd(0x11d)](_0x44b292),{unitId:_0x14862b,subUnitId:_0x5e534d}=_0x19d46d,_0x1d1807=_0x17d692[_0x1034bd(0x147)](_0x14862b,_0x5e534d);if(!_0x1d1807)return!0x1;let _0x10f65a=_0x2f1526[_0x1034bd(0x11d)](_0x2a5b18),{connectorShapeId:_0x57a136,width:_0x4bb71c,height:_0x51a710,left:_0xead19a,top:_0x5e0420,flipX:_0x3cb747,flipY:_0x56e357,rotation:_0xbbaaa5,oldAdjustValues:_0x1184aa,newAdjustValues:_0x50c185,oldLineType:_0x419c8d,newLineType:_0x5e2a83,oldRelation:_0x5eb4ae,newRelation:_0x593b2a}=_0x5cfe79,_0x217de7=_0x10f65a['getDrawingByParam']({'unitId':_0x14862b,'subUnitId':_0x5e534d,'drawingId':_0x57a136});if(!_0x217de7)return!0x1;let _0x389062=_0x2f1526[_0x1034bd(0x11d)](K)[_0x1034bd(0x165)](_0x14862b,_0x5e534d,_0x57a136);if(!_0x389062)return!0x1;let _0x152323=_0x2f1526[_0x1034bd(0x11d)](_0x5448b6),_0x403a76=_0x2f1526[_0x1034bd(0x11d)](_0x2e3ab6),_0x10e9a0=_0x2f1526[_0x1034bd(0x11d)](_0x1b2525),_0x4f64fd={..._0x217de7[_0x1034bd(0x178)],'width':_0x4bb71c,'height':_0x51a710,'left':_0xead19a,'top':_0x5e0420,'flipX':_0x3cb747,'flipY':_0x56e357,'angle':(_0x1fff29=_0xbbaaa5==null?(_0xdf9a7b=_0x217de7[_0x1034bd(0x178)])==null?void 0x0:_0xdf9a7b[_0x1034bd(0xe5)]:_0xbbaaa5)==null?0x0:_0x1fff29},_0x160780=_0x383801(_0x4f64fd,_0x1d1807),_0x5f5d56=_0x2b6c1d(_0x4f64fd,_0x1d1807),_0x333e71=_0x389062[_0x1034bd(0x169)](),_0x5833c4=_0x389062[_0x1034bd(0x118)](),_0x5068e2={'unitId':_0x14862b,'subUnitId':_0x5e534d,'drawingId':_0x57a136,'drawingType':_0x34bc84[_0x1034bd(0x107)],'sheetTransform':_0x160780,'transform':_0x4f64fd,'data':{'shapeType':_0x5e2a83||_0x419c8d||_0x333e71,'shapeData':{..._0x5833c4,'adjustValues':_0x50c185||_0x1184aa||(_0x5833c4==null?void 0x0:_0x5833c4[_0x1034bd(0x12a)]),'relation':_0x593b2a||_0x5eb4ae||(_0x5833c4==null?void 0x0:_0x5833c4[_0x1034bd(0xf9)])}},'axisAlignSheetTransform':_0x5f5d56,'allowTransform':!0x0},{undo:_0x1b4613,redo:_0x1b3260,objects:_0x544611}=_0x10f65a[_0x1034bd(0xe8)]([_0x5068e2]),_0x2a891b=_0x10e9a0[_0x1034bd(0xf4)]({'id':_0x3319d6['id'],'params':{'unitId':_0x14862b,'drawings':[_0x5068e2]}}),_0x3ea867=[...(_0x3c8b9e=_0x2a891b[_0x1034bd(0x150)])==null?[]:_0x3c8b9e,{'id':_0x4f132c['id'],'params':{'unitId':_0x14862b,'subUnitId':_0x5e534d,'op':_0x1b3260,'objects':_0x544611,'type':_0x1e39cb[_0x1034bd(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x14862b]},..._0x2a891b['redos'],{'id':X['id'],'params':{'unitId':_0x14862b,'subUnitId':_0x5e534d,'shapeId':_0x57a136,'shapeType':_0x5e2a83,'shapeData':{'adjustValues':_0x50c185,'relation':_0x593b2a}}}],_0xc64d36=[...(_0x5eb5b1=_0x2a891b[_0x1034bd(0x109)])==null?[]:_0x5eb5b1,{'id':_0x4f132c['id'],'params':{'unitId':_0x14862b,'subUnitId':_0x5e534d,'op':_0x1b4613,'objects':_0x544611,'type':_0x1e39cb[_0x1034bd(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x14862b]},..._0x2a891b[_0x1034bd(0x16c)],{'id':X['id'],'params':{'unitId':_0x14862b,'subUnitId':_0x5e534d,'shapeId':_0x57a136,'shapeType':_0x333e71,'shapeData':{..._0x5833c4,'adjustValues':_0x1184aa||(_0x5833c4==null?void 0x0:_0x5833c4['adjustValues']),'relation':_0x5eb4ae||(_0x5833c4==null?void 0x0:_0x5833c4[_0x1034bd(0xf9)])}}}];return _0x20d2b6(_0x3ea867,_0x152323)[_0x1034bd(0x106)]?(_0x403a76[_0x1034bd(0x158)]({'unitID':_0x14862b,'undoMutations':_0xc64d36,'redoMutations':_0x3ea867}),!0x0):!0x1;}},re={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':_0x59fa14(0x148),'handler':(_0x578848,_0x33ba67)=>{const _0x389a65=_0x59fa14;var _0xfa1114,_0xd45582;let _0x135042=_0x58348b(_0x578848[_0x389a65(0x11d)](_0xa3f088),_0x33ba67);if(!_0x135042)return!0x1;let _0xe28fdf=_0x578848[_0x389a65(0x11d)](_0x44b292),{unitId:_0x260490,subUnitId:_0x27c2a4}=_0x135042,_0x273f5f=_0xe28fdf[_0x389a65(0x147)](_0x260490,_0x27c2a4);if(!_0x273f5f)return!0x1;let _0x2bb157=_0x578848[_0x389a65(0x11d)](_0x2a5b18),{shapeId:_0x2307bb,width:_0xe12d5,height:_0x4cdaa4,left:_0x5b0fea,top:_0x2a3f0a,flipX:_0x24cec6,flipY:_0x119e66,angle:_0x484586,oldAdjustValues:_0x57dc4b,newAdjustValues:_0x1a5c88,oldLineType:_0x406952,newLineType:_0x50d2cf}=_0x33ba67,_0x247982=_0x2bb157[_0x389a65(0x12d)]({'unitId':_0x260490,'subUnitId':_0x27c2a4,'drawingId':_0x2307bb});if(!_0x247982)return!0x1;let _0xe30a14=_0x578848[_0x389a65(0x11d)](K)['getShapeModel'](_0x260490,_0x27c2a4,_0x2307bb);if(!_0xe30a14)return!0x1;let _0x2edbfc=_0x578848[_0x389a65(0x11d)](_0x5448b6),_0x41f1cc=_0x578848[_0x389a65(0x11d)](_0x2e3ab6),_0x3b55de=_0x578848[_0x389a65(0x11d)](_0x1b2525),_0x64830e={..._0x247982[_0x389a65(0x178)],'width':_0xe12d5,'height':_0x4cdaa4,'left':_0x5b0fea,'top':_0x2a3f0a,'flipX':_0x24cec6,'flipY':_0x119e66,'angle':_0x484586},_0x32408f=_0x383801(_0x64830e,_0x273f5f),_0x2eec74=_0x2b6c1d(_0x64830e,_0x273f5f),_0x4295bc=_0xe30a14[_0x389a65(0x169)](),_0x5b667a=_0xe30a14[_0x389a65(0x118)](),_0xeb8449={'unitId':_0x260490,'subUnitId':_0x27c2a4,'drawingId':_0x2307bb,'drawingType':_0x34bc84[_0x389a65(0x107)],'sheetTransform':_0x32408f,'transform':_0x64830e,'data':{'shapeType':_0x50d2cf||_0x406952||_0x4295bc,'shapeData':{..._0x5b667a,'adjustValues':_0x1a5c88||_0x57dc4b||(_0x5b667a==null?void 0x0:_0x5b667a[_0x389a65(0x12a)])}},'axisAlignSheetTransform':_0x2eec74,'allowTransform':!0x0},{undo:_0x18fad8,redo:_0x2f21fe,objects:_0xdc8951}=_0x2bb157['getBatchUpdateOp']([_0xeb8449]),_0x3436d5=_0x3b55de[_0x389a65(0xf4)]({'id':_0x3319d6['id'],'params':{'unitId':_0x260490,'drawings':[_0xeb8449]}}),_0x1fcac4=[...(_0xfa1114=_0x3436d5[_0x389a65(0x150)])==null?[]:_0xfa1114,{'id':_0x4f132c['id'],'params':{'unitId':_0x260490,'subUnitId':_0x27c2a4,'op':_0x2f21fe,'objects':_0xdc8951,'type':_0x1e39cb[_0x389a65(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x260490]},..._0x3436d5[_0x389a65(0x160)],{'id':X['id'],'params':{'unitId':_0x260490,'subUnitId':_0x27c2a4,'shapeId':_0x2307bb,'shapeType':_0x50d2cf,'shapeData':{'adjustValues':_0x1a5c88}}}],_0x37c39a=[...(_0xd45582=_0x3436d5[_0x389a65(0x109)])==null?[]:_0xd45582,{'id':_0x4f132c['id'],'params':{'unitId':_0x260490,'subUnitId':_0x27c2a4,'op':_0x18fad8,'objects':_0xdc8951,'type':_0x1e39cb[_0x389a65(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x260490]},..._0x3436d5[_0x389a65(0x16c)],{'id':X['id'],'params':{'unitId':_0x260490,'subUnitId':_0x27c2a4,'shapeId':_0x2307bb,'shapeType':_0x4295bc,'shapeData':{..._0x5b667a,'adjustValues':_0x57dc4b||(_0x5b667a==null?void 0x0:_0x5b667a['adjustValues'])}}}];return _0x20d2b6(_0x1fcac4,_0x2edbfc)[_0x389a65(0x106)]?(_0x41f1cc[_0x389a65(0x158)]({'unitID':_0x260490,'undoMutations':_0x37c39a,'redoMutations':_0x1fcac4}),!0x0):!0x1;}},$={'id':_0x59fa14(0xee),'type':_0x2bf4ff['MUTATION'],'handler':(_0x57aff2,_0x400b80)=>{const _0x31e041=_0x59fa14;let {unitId:_0x4b9e21,subUnitId:_0x224e67,shapeType:_0xd690d3,shapeId:_0x5ddf09,shapeData:_0x7c0029}=_0x400b80,_0x5df0fb=_0x57aff2[_0x31e041(0x11d)](K)[_0x31e041(0x165)](_0x4b9e21,_0x224e67,_0x5ddf09);return _0x5df0fb&&(_0x5df0fb[_0x31e041(0x153)](_0xd690d3),_0x7c0029&&(_0x5df0fb==null||_0x5df0fb[_0x31e041(0x137)](_0x7c0029))),!0x0;}},ie={'id':_0x59fa14(0x101),'type':_0x2bf4ff['COMMAND'],'handler':(_0x25631e,_0x16a8bf)=>{const _0x3b1fa0=_0x59fa14;if(!_0x16a8bf)return!0x1;let _0x2589cb=_0x25631e[_0x3b1fa0(0x11d)](_0x5448b6),_0x2298db=_0x25631e[_0x3b1fa0(0x11d)](K),_0x589e0b=_0x25631e[_0x3b1fa0(0x11d)](_0x2e3ab6),_0x30b337=[],_0x21384b=[],{unitId:_0x1cfaa3,subUnitId:_0x19fcf7,shapeId:_0x50c9d8,shapeType:_0x4765fd,shapeData:_0x561854}=_0x16a8bf,_0x4eec4d=_0x2298db[_0x3b1fa0(0x165)](_0x1cfaa3,_0x19fcf7,_0x50c9d8);if(_0x4eec4d){let _0x1249b2=_0x4eec4d[_0x3b1fa0(0x169)](),_0x32f845=Object[_0x3b1fa0(0x144)]({},_0x4eec4d[_0x3b1fa0(0x118)]()),_0x95b5c6={'unitId':_0x1cfaa3,'subUnitId':_0x19fcf7,'shapeId':_0x50c9d8,'shapeType':_0x4765fd,'shapeData':_0x561854},_0x2b8a3e={'unitId':_0x1cfaa3,'subUnitId':_0x19fcf7,'shapeId':_0x50c9d8,'shapeType':_0x1249b2,'shapeData':_0x32f845};return _0x30b337[_0x3b1fa0(0xdc)]({'id':$['id'],'params':_0x95b5c6}),_0x21384b['push']({'id':$['id'],'params':_0x2b8a3e}),_0x30b337['every'](_0x4a914e=>_0x2589cb[_0x3b1fa0(0x12b)](_0x4a914e['id'],_0x4a914e['params']))&&_0x589e0b[_0x3b1fa0(0x158)]({'unitID':_0x1cfaa3,'redoMutations':[..._0x30b337],'undoMutations':[..._0x21384b]}),!0x0;}return!0x1;}};var ae=_0x59fa14(0xf1),oe=_0x59fa14(0xe4);const se={};let ce=class extends _0x1b87a1{constructor(_0x3ec498,_0x2137a1,_0x4f53b2,_0x3b6005,_0x4355cd){const _0x423ba0=_0x59fa14;super(),this[_0x423ba0(0xec)]=_0x3ec498,this['_sheetInterceptorService']=_0x2137a1,this[_0x423ba0(0xf5)]=_0x4f53b2,this[_0x423ba0(0x15a)]=_0x3b6005,this[_0x423ba0(0x133)]=_0x4355cd,this['_initCommands'](),this[_0x423ba0(0x16a)]();}[_0x59fa14(0xde)](){const _0x482234=_0x59fa14;[Y,ee,Z,Q,te,ne,re,q,J,$,X]['forEach'](_0x23e94d=>this[_0x482234(0x14e)](this[_0x482234(0xec)][_0x482234(0xe6)](_0x23e94d)));}[_0x59fa14(0x16a)](){const _0x26b335=_0x59fa14;this[_0x26b335(0x14e)](this[_0x26b335(0x179)][_0x26b335(0x145)]({'getMutations':_0x1066b2=>{const _0x1db18b=_0x26b335;if(_0x1066b2['id']===_0x56657d['id']){let {drawings:_0x10150d}=_0x1066b2[_0x1db18b(0x11c)],_0x3cc534=_0x10150d[_0x1db18b(0x11e)](_0x3ee899=>_0x3ee899[_0x1db18b(0xdf)]===_0x34bc84[_0x1db18b(0x107)]);if(_0x3cc534[_0x1db18b(0x13b)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3c628e=[],_0x2efe0c=[];return _0x3cc534[_0x1db18b(0x108)](_0x2e49b2=>{const _0x25e81e=_0x1db18b;let {unitId:_0x114189,subUnitId:_0x3c9e9a,drawingId:_0x4fffc5}=_0x2e49b2,_0x56e68c=this[_0x25e81e(0x15a)]['getShapeModel'](_0x114189,_0x3c9e9a,_0x4fffc5);if(!_0x56e68c)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x56e68c);_0x3c628e[_0x25e81e(0xdc)]({'id':J['id'],'params':{'unitId':_0x114189,'subUnitId':_0x3c9e9a,'shapeId':_0x4fffc5}}),_0x2efe0c[_0x25e81e(0xdc)]({'id':q['id'],'params':{'unitId':_0x114189,'subUnitId':_0x3c9e9a,'shapeId':_0x4fffc5,'shapeType':_0x56e68c[_0x25e81e(0x169)](),'shapeData':_0x56e68c[_0x25e81e(0x118)]()}});let _0x18e361=this['_sheetsShapeService'][_0x25e81e(0x15f)](_0x114189,_0x3c9e9a,_0x4fffc5);if(_0x18e361)for(let _0x22c319 of _0x18e361){let _0xa39591=_0x22c319['lineShapeId'],_0x34254d=_0x22c319[_0x25e81e(0x125)],_0x5349ca=_0x34254d?{'from':void 0x0}:{'to':void 0x0},_0x721ad3=_0x34254d?{'from':{'shapeId':_0x22c319[_0x25e81e(0xfd)],'cxnIndex':_0x22c319['cxnIndex']}}:{'to':{'shapeId':_0x22c319[_0x25e81e(0xfd)],'cxnIndex':_0x22c319[_0x25e81e(0x15e)]}};_0x3c628e[_0x25e81e(0xdc)]({'id':X['id'],'params':{'unitId':_0x114189,'subUnitId':_0x3c9e9a,'shapeId':_0xa39591,'shapeData':{'relation':_0x5349ca}}}),_0x2efe0c[_0x25e81e(0xdc)]({'id':X['id'],'params':{'unitId':_0x114189,'subUnitId':_0x3c9e9a,'shapeId':_0xa39591,'shapeData':{'relation':_0x721ad3}}});}}),{'preRedos':_0x3c628e,'redos':[],'preUndos':[],'undos':_0x2efe0c};}if(_0x1066b2['id']===_0x3319d6['id']){let {drawings:_0x10e4c1}=_0x1066b2['params'],_0x23e91a=_0x10e4c1[_0x1db18b(0x11e)](_0x5bdfdd=>_0x5bdfdd['drawingType']===_0x34bc84[_0x1db18b(0x107)]);if(_0x23e91a[_0x1db18b(0x13b)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x567104=[],_0x1836c2=[];for(let _0x325222 of _0x23e91a){let {unitId:_0x477f95,subUnitId:_0x2bd887,drawingId:_0x4e56a2,transform:_0x5a5914}=_0x325222;if(!_0x477f95||!_0x2bd887||!_0x4e56a2||!_0x5a5914)continue;let _0x164c3c=this[_0x1db18b(0x15a)][_0x1db18b(0x165)](_0x477f95,_0x2bd887,_0x4e56a2);if(!_0x164c3c)throw TypeError(_0x1db18b(0xf3)+_0x164c3c);if(_0xf81d44(_0x164c3c[_0x1db18b(0x169)]())){let _0x45ab25=this[_0x1db18b(0x15a)]['getLineShapeRelation'](_0x477f95,_0x2bd887,_0x4e56a2);_0x45ab25&&(_0x567104[_0x1db18b(0xdc)]({'id':X['id'],'params':{'unitId':_0x477f95,'subUnitId':_0x2bd887,'shapeId':_0x4e56a2,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x1836c2[_0x1db18b(0xdc)]({'id':X['id'],'params':{'unitId':_0x477f95,'subUnitId':_0x2bd887,'shapeId':_0x4e56a2,'shapeData':{'relation':_0x45ab25}}}));}else{let _0x4aee66=this[_0x1db18b(0x15a)][_0x1db18b(0x15f)](_0x477f95,_0x2bd887,_0x4e56a2);if(_0x4aee66&&_0x4aee66[_0x1db18b(0x13b)]>0x0)for(let _0x5dbb1c of _0x4aee66){let _0x258d55=_0x5dbb1c[_0x1db18b(0xfc)],_0x4de61b=_0x5dbb1c[_0x1db18b(0x125)],_0x488106=this[_0x1db18b(0x15a)][_0x1db18b(0x165)](_0x477f95,_0x2bd887,_0x258d55);if(!_0x488106)continue;let _0x4dab86=_0x488106[_0x1db18b(0x14a)](),_0x3f48ea=_0x488106[_0x1db18b(0x168)]();_0x4dab86&&_0x3f48ea?this[_0x1db18b(0x10c)](_0x477f95,_0x2bd887,_0x258d55,_0x488106,_0x4dab86,_0x3f48ea,_0x567104,_0x1836c2,_0x4e56a2,_0x5a5914):this[_0x1db18b(0x123)](_0x477f95,_0x2bd887,_0x258d55,_0x488106,_0x4de61b?_0x4dab86:_0x3f48ea,_0x4de61b,_0x567104,_0x1836c2,_0x4e56a2,_0x5a5914);}}}return{'preRedos':[],'redos':_0x567104,'preUndos':_0x1836c2,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x3191bb,_0x3fec81,_0x1d5832,_0x147519,_0x5431d6){const _0x398405=_0x59fa14;if(!_0x3fec81||!_0x1d5832)return null;let {shapeId:_0x3de6d8,cxnIndex:_0x4c17ce}=_0x3191bb,_0x5740b9=this[_0x398405(0x15a)][_0x398405(0x165)](_0x3fec81,_0x1d5832,_0x3de6d8);if(!_0x5740b9)return null;let _0x48cf09=this[_0x398405(0x133)][_0x398405(0x12d)]({'unitId':_0x3fec81,'subUnitId':_0x1d5832,'drawingId':_0x3de6d8});if(!(_0x48cf09!=null&&_0x48cf09[_0x398405(0x178)]))return null;let {left:_0x51c024=0x0,top:_0x54cde9=0x0,width:_0x3b9c21=0x0,height:_0xd36fae=0x0,flipX:_0x57565c=!0x1,flipY:_0x15fa5b=!0x1,angle:_0x23f2f0}=_0x48cf09[_0x398405(0x178)];if(_0x5431d6&&_0x147519===_0x3de6d8){var _0x31c1e8,_0x3db845,_0x3e6ea7,_0x5ee76d,_0x5e19ce,_0x5e382e,_0x392a0c;_0x51c024=(_0x31c1e8=_0x5431d6[_0x398405(0x15d)])==null?_0x51c024:_0x31c1e8,_0x54cde9=(_0x3db845=_0x5431d6[_0x398405(0x16e)])==null?_0x54cde9:_0x3db845,_0x3b9c21=(_0x3e6ea7=_0x5431d6[_0x398405(0xe0)])==null?_0x3b9c21:_0x3e6ea7,_0xd36fae=(_0x5ee76d=_0x5431d6['height'])==null?_0xd36fae:_0x5ee76d,_0x57565c=(_0x5e19ce=_0x5431d6['flipX'])==null?_0x57565c:_0x5e19ce,_0x15fa5b=(_0x5e382e=_0x5431d6[_0x398405(0x10d)])==null?_0x15fa5b:_0x5e382e,_0x23f2f0=(_0x392a0c=_0x5431d6['angle'])==null?_0x23f2f0:_0x392a0c;}_0x5740b9[_0x398405(0xdb)]({'width':_0x3b9c21,'height':_0xd36fae});let _0x2be9eb=_0x5740b9[_0x398405(0x14c)]()['find'](_0xc11a17=>_0xc11a17[_0x398405(0x126)]===_0x4c17ce);if(!_0x2be9eb)return null;let _0x392c4e=_0x57565c?_0x3b9c21-_0x2be9eb['x']:_0x2be9eb['x'],_0x196d34=_0x15fa5b?_0xd36fae-_0x2be9eb['y']:_0x2be9eb['y'];if(_0x23f2f0!==0x0&&_0x23f2f0!=null){let _0x3cee41=_0x23f2f0*Math['PI']/0xb4,_0x6294b4=Math[_0x398405(0xff)](_0x3cee41),_0x411c1b=Math[_0x398405(0x154)](_0x3cee41),_0x10c528=_0x3b9c21/0x2,_0x524f3d=_0xd36fae/0x2,_0x472bbc=_0x392c4e-_0x10c528,_0x34d3c1=_0x196d34-_0x524f3d;_0x392c4e=_0x10c528+_0x472bbc*_0x6294b4-_0x34d3c1*_0x411c1b,_0x196d34=_0x524f3d+_0x472bbc*_0x411c1b+_0x34d3c1*_0x6294b4;}_0x392c4e+=_0x51c024,_0x196d34+=_0x54cde9;let _0x6ef22c=_0x2be9eb['ang']/0xea60;_0x57565c&&(_0x6ef22c=0xb4-_0x6ef22c),_0x15fa5b&&(_0x6ef22c=-_0x6ef22c),_0x6ef22c+=_0x23f2f0||0x0,_0x6ef22c=(_0x6ef22c%0x168+0x168)%0x168;let _0x3db4b0=_0x23c33d({'left':_0x51c024,'top':_0x54cde9,'width':_0x3b9c21,'height':_0xd36fae},_0x23f2f0||0x0);return{'point':{'x':_0x392c4e,'y':_0x196d34},'angle':_0x6ef22c,'bounds':_0x3db4b0};}[_0x59fa14(0x10c)](_0x118ca1,_0x19ec9d,_0x5bef29,_0x246341,_0x56bf4f,_0x2b7fd1,_0x8699e0,_0x7cea18,_0xc2c7e9,_0x1d5ac2){const _0x51a498=_0x59fa14;let _0x171321=this[_0x51a498(0xf5)][_0x51a498(0x147)](_0x118ca1,_0x19ec9d);if(!_0x171321)return;let _0x1f7347=_0x246341[_0x51a498(0x105)](),_0x1bb68e=_0x246341[_0x51a498(0x140)](),_0x1d159c={},_0x1cb32b={};_0x1bb68e[_0x51a498(0x108)](_0x35df21=>{const _0x1fd485=_0x51a498;let _0x11bd29=_0x246341[_0x1fd485(0xe1)](_0x35df21);_0x1cb32b[_0x35df21]=_0x11bd29==null?0x0:_0x11bd29;});let _0x3c97ae=this[_0x51a498(0x11f)](_0x56bf4f,_0x118ca1,_0x19ec9d,_0xc2c7e9,_0x1d5ac2),_0x3741d0=this['_getConnectPointInfo'](_0x2b7fd1,_0x118ca1,_0x19ec9d,_0xc2c7e9,_0x1d5ac2);if(_0x3c97ae&&_0x3741d0){let _0x3cbf9c=_0x246341[_0x51a498(0x169)](),_0x2c96d3=_0x2a847c(_0x3c97ae,_0x3741d0,_0x3cbf9c),_0x3b9dab=_0x3cbf9c;if(_0x2c96d3){let _0x505d3b=_0x1e57a6(_0x2c96d3,_0x246341['getShapeType']()),_0x1668a8=this['_drawingManagerService'][_0x51a498(0xd7)](_0x118ca1,_0x19ec9d);if(_0x1668a8&&_0x1668a8[_0x5bef29]){let _0x220ba6=_0x1668a8[_0x5bef29];_0x3b9dab=_0x505d3b['lineType'];for(let [_0x10a3ee,_0x356947]of Object[_0x51a498(0xd8)](_0x505d3b[_0x51a498(0x12a)]))_0x1d159c[_0x10a3ee]=_0x356947;let _0x239250={..._0x220ba6[_0x51a498(0x178)],'width':_0x505d3b[_0x51a498(0x14d)][_0x51a498(0xe0)],'height':_0x505d3b['worldRect']['height'],'left':_0x505d3b['worldRect']['left'],'top':_0x505d3b[_0x51a498(0x14d)][_0x51a498(0x16e)],'flipX':_0x505d3b[_0x51a498(0x14d)][_0x51a498(0x176)],'flipY':_0x505d3b[_0x51a498(0x14d)][_0x51a498(0x10d)],'angle':_0x505d3b['rotation']},_0x566d9a=_0x383801(_0x239250,_0x171321),_0x2d6edc=_0x2b6c1d(_0x239250,_0x171321),_0x33d557={'unitId':_0x118ca1,'subUnitId':_0x19ec9d,'drawingType':_0x34bc84['DRAWING_SHAPE'],'drawingId':_0x5bef29,'transform':_0x239250,'sheetTransform':_0x566d9a,'axisAlignSheetTransform':_0x2d6edc},{unitId:_0x68129f,subUnitId:_0x434194,undo:_0x43e5c1,redo:_0x2fe350,objects:_0xd00923}=this[_0x51a498(0x133)][_0x51a498(0xe8)]([_0x33d557]);_0x8699e0[_0x51a498(0xdc)]({'id':_0x4f132c['id'],'params':{'unitId':_0x68129f,'subUnitId':_0x434194,'op':_0x2fe350,'objects':_0xd00923,'type':_0x1e39cb[_0x51a498(0x146)]}}),_0x7cea18[_0x51a498(0xdc)]({'id':_0x4f132c['id'],'params':{'unitId':_0x68129f,'subUnitId':_0x434194,'op':_0x43e5c1,'objects':_0xd00923,'type':_0x1e39cb[_0x51a498(0x146)]}});}_0x246341[_0x51a498(0xeb)]();}_0x8699e0['push']({'id':X['id'],'params':{'unitId':_0x118ca1,'subUnitId':_0x19ec9d,'shapeId':_0x5bef29,'shapeType':_0x3b9dab,'shapeData':{'adjustValues':_0x1d159c,'relation':_0x1f7347}}}),_0x7cea18[_0x51a498(0xdc)]({'id':X['id'],'params':{'unitId':_0x118ca1,'subUnitId':_0x19ec9d,'shapeId':_0x5bef29,'shapeType':_0x3cbf9c,'shapeData':{'adjustValues':_0x1cb32b,'relation':_0x1f7347}}});}}[_0x59fa14(0x123)](_0x4fc646,_0x113448,_0x3bc2ee,_0x54093f,_0x45bd31,_0x4a9160,_0x19ef44,_0x210223,_0x3c1cda,_0x2618df){const _0x44971f=_0x59fa14;var _0xd8c81;if(!_0x45bd31)return;let _0x5e873e=this['_sheetSkeletonService'][_0x44971f(0x147)](_0x4fc646,_0x113448);if(!_0x5e873e)return;let _0x1dbe55=(_0xd8c81=this[_0x44971f(0x133)][_0x44971f(0x12d)]({'unitId':_0x4fc646,'subUnitId':_0x113448,'drawingId':_0x3c1cda}))==null?void 0x0:_0xd8c81[_0x44971f(0x178)];if(!_0x1dbe55)return;let _0x3c61b8=_0x1dbe55[_0x44971f(0x15d)]!==_0x2618df[_0x44971f(0x15d)]||_0x1dbe55[_0x44971f(0x16e)]!==_0x2618df['top'],_0x31b08e=_0x1dbe55[_0x44971f(0xe0)]!==_0x2618df[_0x44971f(0xe0)]||_0x1dbe55['height']!==_0x2618df['height'],_0x59fec3=_0x1dbe55[_0x44971f(0x176)]!==_0x2618df[_0x44971f(0x176)]||_0x1dbe55[_0x44971f(0x10d)]!==_0x2618df['flipY'],_0x461b1f=_0x1dbe55[_0x44971f(0xe5)]!==_0x2618df[_0x44971f(0xe5)];if(_0x3c61b8&&!_0x31b08e&&!_0x59fec3&&!_0x461b1f){var _0x1e1e07,_0x23e901,_0x552e68,_0x31e995;let _0x2850ef=((_0x1e1e07=_0x2618df['left'])==null?0x0:_0x1e1e07)-((_0x23e901=_0x1dbe55[_0x44971f(0x15d)])==null?0x0:_0x23e901),_0x320b68=((_0x552e68=_0x2618df[_0x44971f(0x16e)])==null?0x0:_0x552e68)-((_0x31e995=_0x1dbe55['top'])==null?0x0:_0x31e995),_0x595b9f=this[_0x44971f(0x133)][_0x44971f(0xd7)](_0x4fc646,_0x113448);if(_0x595b9f&&_0x595b9f[_0x3bc2ee]){var _0x50fce6,_0x4a8b8b,_0x262391,_0x9b8f29;let _0x4c34ba=_0x595b9f[_0x3bc2ee],_0x14069c={..._0x4c34ba[_0x44971f(0x178)],'left':((_0x50fce6=(_0x4a8b8b=_0x4c34ba[_0x44971f(0x178)])==null?void 0x0:_0x4a8b8b['left'])==null?0x0:_0x50fce6)+_0x2850ef,'top':((_0x262391=(_0x9b8f29=_0x4c34ba[_0x44971f(0x178)])==null?void 0x0:_0x9b8f29[_0x44971f(0x16e)])==null?0x0:_0x262391)+_0x320b68},_0x47f073=_0x383801(_0x14069c,_0x5e873e),_0x276f96=_0x2b6c1d(_0x14069c,_0x5e873e),_0x2eec14={'unitId':_0x4fc646,'subUnitId':_0x113448,'drawingType':_0x34bc84[_0x44971f(0x107)],'drawingId':_0x3bc2ee,'transform':_0x14069c,'sheetTransform':_0x47f073,'axisAlignSheetTransform':_0x276f96},{unitId:_0x4b1169,subUnitId:_0x6b0d3,undo:_0x23de87,redo:_0x2e93ea,objects:_0x3f696c}=this['_drawingManagerService'][_0x44971f(0xe8)]([_0x2eec14]);_0x19ef44['push']({'id':_0x4f132c['id'],'params':{'unitId':_0x4b1169,'subUnitId':_0x6b0d3,'op':_0x2e93ea,'objects':_0x3f696c,'type':_0x1e39cb['UPDATE']}}),_0x210223[_0x44971f(0xdc)]({'id':_0x4f132c['id'],'params':{'unitId':_0x4b1169,'subUnitId':_0x6b0d3,'op':_0x23de87,'objects':_0x3f696c,'type':_0x1e39cb[_0x44971f(0x146)]}});}}else{let _0x13a36c=_0x54093f[_0x44971f(0x14a)](),_0x33941b=_0x54093f[_0x44971f(0x168)]();this[_0x44971f(0x10c)](_0x4fc646,_0x113448,_0x3bc2ee,_0x54093f,_0x13a36c,_0x33941b,_0x19ef44,_0x210223,_0x3c1cda,_0x2618df);}}};function _0x5da5(_0x353fbe,_0x412ffd){_0x353fbe=_0x353fbe-0xd2;const _0x12daf1=_0x12da();let _0x5da5e9=_0x12daf1[_0x353fbe];return _0x5da5e9;}ce=G([W(0x0,_0x5448b6),W(0x1,_0x4e1507(_0x1b2525)),W(0x2,_0x4e1507(_0x44b292)),W(0x3,_0x4e1507(K)),W(0x4,_0x4e1507(_0x1b9e92))],ce);let le=class extends _0x43f10e{constructor(_0x33673e=se,_0x51f76f,_0x1dffa5,_0xbd46ea){const _0x33ed5b=_0x59fa14;super(),this[_0x33ed5b(0xd5)]=_0x33673e,this[_0x33ed5b(0x131)]=_0x51f76f,this[_0x33ed5b(0xec)]=_0x1dffa5,this[_0x33ed5b(0x11b)]=_0xbd46ea;let {..._0x275b43}=_0x375fc4({},se,this[_0x33ed5b(0xd5)]);this[_0x33ed5b(0x11b)][_0x33ed5b(0x13e)]('sheets-shape.config',_0x275b43);}[_0x59fa14(0x120)](){const _0x327c1e=_0x59fa14;let _0x16c7e1=this[_0x327c1e(0x131)];[[U],[K],[ce]][_0x327c1e(0x108)](_0x2d7af5=>_0x16c7e1['add'](_0x2d7af5)),_0x38b51a(_0x16c7e1,[[K],[ce]]);}};H(le,'type',_0x4f7fa0['UNIVER_SHEET']),H(le,_0x59fa14(0xf0),_0x59fa14(0x115)),H(le,_0x59fa14(0xf2),ae),H(le,_0x59fa14(0x156),oe),le=G([_0x4b3f23(_0x10db9b),W(0x1,_0x4e1507(_0x213482)),W(0x2,_0x5448b6),W(0x3,_0x3dfdf2)],le);export{R as DEFAULT_SHAPE_HEIGHT,L as DEFAULT_SHAPE_WIDTH,Y as InsertShapeCommand,q as InsertSheetsShapeMutation,J as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,Q as SetSheetsShapeRotateCommand,te as SetSheetsShapeTextVerticalToggleCommand,K as SheetsShapeService,Z as ToggleSheetsShapeFlipCommand,le as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,X as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,$ as UpdateSheetsShapeTypeMutation};
@@ -3,6 +3,7 @@ import type { ICommand, IRange } from '@univerjs/core';
3
3
  import type { ISheetCommandSharedParams } from '@univerjs/sheets';
4
4
  export interface IInsertSheetsShapeCommandParams extends ISheetCommandSharedParams {
5
5
  shapeType: ShapeTypeEnum;
6
+ shapeName?: string;
6
7
  range?: IRange;
7
8
  position?: {
8
9
  x: number;
@@ -3,6 +3,7 @@ import type { IMutation } from '@univerjs/core';
3
3
  import type { ISheetCommandSharedParams } from '@univerjs/sheets';
4
4
  export interface IInsertSheetsShapeMutationParams extends ISheetCommandSharedParams {
5
5
  shapeId: string;
6
+ shapeName?: string;
6
7
  shapeType: ShapeTypeEnum;
7
8
  shapeData?: IShapeData;
8
9
  }
@@ -167,6 +167,36 @@ export declare class FShape {
167
167
  * ```
168
168
  */
169
169
  setShapeType(shapeType: ShapeTypeEnum): this;
170
+ /**
171
+ * Sets the full shape data for the shape.
172
+ * @param {IShapeData} shapeData The shape data containing type, fill, stroke, text, geometry, adjustment values, and connector data.
173
+ * @returns {FShape} this builder, for chaining.
174
+ *
175
+ * @example
176
+ * ```ts
177
+ * const fWorkbook = univerAPI.getActiveWorkbook();
178
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
179
+ * if (!fWorksheet) return;
180
+ *
181
+ * const shapeInfo = fWorksheet.newShape()
182
+ * .setShapeData({
183
+ * shapeType: univerAPI.Enum.ShapeTypeEnum.Rect,
184
+ * fill: {
185
+ * fillType: univerAPI.Enum.ShapeFillEnum.SolidFill,
186
+ * color: '#ff0000',
187
+ * },
188
+ * shapeText: {
189
+ * isRichText: false,
190
+ * isHorizontal: true,
191
+ * text: 'Sheet shape',
192
+ * },
193
+ * })
194
+ * .setPosition(1, 1, 0, 0)
195
+ * .build();
196
+ * await fWorksheet.insertShape(shapeInfo);
197
+ * ```
198
+ */
199
+ setShapeData(shapeData: IShapeData): this;
170
200
  /**
171
201
  * Sets the solid fill style for the shape.
172
202
  * @param {string} color The fill color, e.g., '#ff0000'. If not specified, it will default to '#156082'.If the opacity is set both, the color string should be hex string or rgb string, the color like 'red' will not work.
@@ -191,7 +221,7 @@ export declare class FShape {
191
221
  /**
192
222
  * Sets the gradient fill style for the shape.
193
223
  * @param {ShapeGradientTypeEnum} shapeGradientType The gradient type. Which can be found from `univerAPI.Enum.ShapeGradientTypeEnum`.
194
- * @param {Array<{ position: number; color: string }>} colorStops An array of gradient color stops. Each stop has a `position` (0 to 1) and a `color` (e.g., '#ff0000').
224
+ * @param {Array<{ position: number; color: string; opacity?: number }>} colorStops An array of gradient color stops. Each stop has a `position` (0 to 1), a `color` (e.g., '#ff0000'), and optional `opacity` (0 to 1).
195
225
  * @param {number} [gradientAngle] The angle of the gradient in degrees (e.g., 0 for left-to-right, 90 for top-to-bottom).
196
226
  * @returns {FShape} this builder, for chaining.
197
227
  *
@@ -220,6 +250,7 @@ export declare class FShape {
220
250
  setShapeGradientFill(shapeGradientType: ShapeGradientTypeEnum, colorStops: Array<{
221
251
  position: number;
222
252
  color: string;
253
+ opacity?: number;
223
254
  }>, gradientAngle?: number): this;
224
255
  /**
225
256
  * Removes the fill from the shape, making it transparent.
@@ -1,15 +1,27 @@
1
- export { type IInsertSheetsShapeCommandParams, InsertShapeCommand } from './commands/command/add-shape.command';
2
- export { type ISetShapeDrawingDataCommandParams, SetShapeDrawingDataCommand } from './commands/command/set-shape-drawing-data.command';
3
- export { type IUpdateSheetsShapeFlipCommandParams, ToggleSheetsShapeFlipCommand } from './commands/command/set-shape-flip.command';
4
- export { type IUpdateSheetsShapeRotateCommandParams, SetSheetsShapeRotateCommand } from './commands/command/set-shape-rotate.command';
5
- export { type ISetSheetsShapeTextVerticalToggleCommandParams, SetSheetsShapeTextVerticalToggleCommand } from './commands/command/set-shape-text-vertical-toggle.command';
6
- export { type IUpdateConnectorRelationCommandParams, UpdateConnectorRelationCommand } from './commands/command/update-connector-relation.command';
7
- export { type IUpdateSheetsShapeResizeCommandParams, UpdateLineShapeResizeCommand } from './commands/command/update-line-shape-resize.command';
8
- export { type IUpdateSheetsShapeTypeCommandParams, UpdateSheetsShapeTypeCommand } from './commands/command/update-shape-type.command';
9
- export { type IInsertSheetsShapeMutationParams, InsertSheetsShapeMutation } from './commands/mutation/add-shape.mutation';
10
- export { type IRemoveSheetsShapeMutationParams, RemoveSheetsShapeMutation } from './commands/mutation/remove-shape.mutation';
11
- export { type IUpdateSheetsShapeDataMutationParams, UpdateSheetsShapeDataMutation } from './commands/mutation/update-shape-data.mutation';
12
- export { type IUpdateSheetsShapeTypeMutationParams, UpdateSheetsShapeTypeMutation } from './commands/mutation/update-shape-type.mutation';
1
+ export { InsertShapeCommand } from './commands/command/add-shape.command';
2
+ export type { IInsertSheetsShapeCommandParams } from './commands/command/add-shape.command';
3
+ export { SetShapeDrawingDataCommand } from './commands/command/set-shape-drawing-data.command';
4
+ export type { ISetShapeDrawingDataCommandParams } from './commands/command/set-shape-drawing-data.command';
5
+ export { ToggleSheetsShapeFlipCommand } from './commands/command/set-shape-flip.command';
6
+ export type { IUpdateSheetsShapeFlipCommandParams } from './commands/command/set-shape-flip.command';
7
+ export { SetSheetsShapeRotateCommand } from './commands/command/set-shape-rotate.command';
8
+ export type { IUpdateSheetsShapeRotateCommandParams } from './commands/command/set-shape-rotate.command';
9
+ export { SetSheetsShapeTextVerticalToggleCommand } from './commands/command/set-shape-text-vertical-toggle.command';
10
+ export type { ISetSheetsShapeTextVerticalToggleCommandParams, } from './commands/command/set-shape-text-vertical-toggle.command';
11
+ export { UpdateConnectorRelationCommand } from './commands/command/update-connector-relation.command';
12
+ export type { IUpdateConnectorRelationCommandParams } from './commands/command/update-connector-relation.command';
13
+ export { UpdateLineShapeResizeCommand } from './commands/command/update-line-shape-resize.command';
14
+ export type { IUpdateSheetsShapeResizeCommandParams } from './commands/command/update-line-shape-resize.command';
15
+ export { UpdateSheetsShapeTypeCommand } from './commands/command/update-shape-type.command';
16
+ export type { IUpdateSheetsShapeTypeCommandParams } from './commands/command/update-shape-type.command';
17
+ export { InsertSheetsShapeMutation } from './commands/mutation/add-shape.mutation';
18
+ export type { IInsertSheetsShapeMutationParams } from './commands/mutation/add-shape.mutation';
19
+ export { RemoveSheetsShapeMutation } from './commands/mutation/remove-shape.mutation';
20
+ export type { IRemoveSheetsShapeMutationParams } from './commands/mutation/remove-shape.mutation';
21
+ export { UpdateSheetsShapeDataMutation } from './commands/mutation/update-shape-data.mutation';
22
+ export type { IUpdateSheetsShapeDataMutationParams } from './commands/mutation/update-shape-data.mutation';
23
+ export { UpdateSheetsShapeTypeMutation } from './commands/mutation/update-shape-type.mutation';
24
+ export type { IUpdateSheetsShapeTypeMutationParams } from './commands/mutation/update-shape-type.mutation';
13
25
  export { DEFAULT_SHAPE_HEIGHT, DEFAULT_SHAPE_WIDTH } from './common/const';
14
26
  export type { IDrawingShapeData, ISheetShapeDrawingParam } from './common/types';
15
27
  export { UniverSheetsShapePlugin } from './plugin';
@@ -10,7 +10,7 @@ export declare class SheetShapeModelManager extends Disposable {
10
10
  _linesIds: Set<string>;
11
11
  _groupIds: Set<string>;
12
12
  constructor();
13
- addShape(shapeType: ShapeTypeEnum, id: string, shapeData?: IShapeData): ShapeModel;
13
+ addShape(shapeType: ShapeTypeEnum, id: string, shapeData?: IShapeData, name?: string): ShapeModel;
14
14
  /**
15
15
  * Get all shape relations associated with a basic shape
16
16
  * @param {string} id The basic shape ID
@@ -25,6 +25,7 @@ export declare class SheetShapeModelManager extends Disposable {
25
25
  getLineShapeRelation(lineShapeId: string): IShapeRelation | undefined;
26
26
  getShapeType(id: string): ShapeTypeEnum | undefined;
27
27
  hasShape(id: string): boolean;
28
+ getShapeDisplayNames(): string[];
28
29
  removeShape(id: string): void;
29
30
  toJSON(): IShapeJSONData[];
30
31
  fromJSON(data: IShapeJSONData[]): void;
@@ -1,4 +1,4 @@
1
- import type { IUniverSheetsShapeConfig } from './controllers/config.schema';
1
+ import type { IUniverSheetsShapeConfig } from './config/config';
2
2
  import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
3
  export declare class UniverSheetsShapePlugin extends Plugin {
4
4
  private readonly _config;
@@ -9,15 +9,16 @@ export declare class SheetsShapeService extends Disposable {
9
9
  private _shapeModelManagerMap;
10
10
  constructor(_resourcesManagerService: IResourceManagerService);
11
11
  private _ensureShapeModelManager;
12
- insertShape(unitId: string, subUnitId: string, shapeType: ShapeTypeEnum, shapeId: string, shapeData?: IShapeData): void;
12
+ insertShape(unitId: string, subUnitId: string, shapeType: ShapeTypeEnum, shapeId: string, shapeData?: IShapeData, name?: string): void;
13
13
  removeShape(unitId: string, subUnitId: string, shapeId: string): void;
14
14
  getBasicShapeType(unitId: string, subUnitId: string, shapeId: string): ShapeTypeEnum | undefined;
15
15
  getShapeType(unitId: string, subUnitId: string, shapeId: string): ShapeTypeEnum | undefined;
16
16
  hasShape(unitId: string, subUnitId: string, shapeId: string): boolean;
17
17
  getShapeTypeById(unitId: string, subUnitId: string, shapeId: string): ShapeTypeEnum | undefined;
18
18
  getShapeDataById(unitId: string, subUnitId: string, shapeId: string): IShapeData | undefined;
19
+ getShapeDisplayNames(unitId: string, subUnitId: string): string[];
19
20
  getShapeModel(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").ShapeModel | undefined;
20
- getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("../model/shape-manager").IShapeRelationItemWithLineId[];
21
+ getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("../models/shape-manager").IShapeRelationItemWithLineId[];
21
22
  getLineShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").IShapeRelation | undefined;
22
23
  setShapeType(): void;
23
24
  private _serializeShapeForUnit;