@univerjs-pro/sheets-shape 0.15.3-insiders.20260131-cbd5fac → 0.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2d9039=_0x4b7f;(function(_0x216084,_0x38a547){const _0x2c5cd9=_0x4b7f,_0x13c51d=_0x216084();while(!![]){try{const _0x4d0205=parseInt(_0x2c5cd9(0x1a3))/0x1*(-parseInt(_0x2c5cd9(0x16d))/0x2)+-parseInt(_0x2c5cd9(0x17b))/0x3*(parseInt(_0x2c5cd9(0x1b2))/0x4)+-parseInt(_0x2c5cd9(0x173))/0x5*(-parseInt(_0x2c5cd9(0x182))/0x6)+parseInt(_0x2c5cd9(0x183))/0x7+parseInt(_0x2c5cd9(0x198))/0x8+-parseInt(_0x2c5cd9(0x194))/0x9*(parseInt(_0x2c5cd9(0x15e))/0xa)+-parseInt(_0x2c5cd9(0x166))/0xb*(parseInt(_0x2c5cd9(0x15b))/0xc);if(_0x4d0205===_0x38a547)break;else _0x13c51d['push'](_0x13c51d['shift']());}catch(_0x4ecd45){_0x13c51d['push'](_0x13c51d['shift']());}}}(_0x4ab1,0xcaaea));var D=Object['defineProperty'],C=(_0x409463,_0x4da7dc,_0x368815)=>_0x4da7dc in _0x409463?D(_0x409463,_0x4da7dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x368815}):_0x409463[_0x4da7dc]=_0x368815,S=(_0x4fffca,_0xebd487,_0x2377d3)=>C(_0x4fffca,typeof _0xebd487!=_0x2d9039(0x1b3)?_0xebd487+'':_0xebd487,_0x2377d3);function _0x4b7f(_0x55a830,_0x397790){_0x55a830=_0x55a830-0x159;const _0x4ab147=_0x4ab1();let _0x4b7fe0=_0x4ab147[_0x55a830];return _0x4b7fe0;}Object[_0x2d9039(0x164)](exports,Symbol['toStringTag'],{'value':_0x2d9039(0x180)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');function _0x4ab1(){const _0x20ff36=['264BclcHn','from','ShapeModel','getBasicShapeType','add','_serializeShapeForUnit','SHEET_SHAPE_PLUGIN','2940386mDmhXu','length','dispose','has','DependentOn','getShapeData','23935fZLvho','UNIVER_SHEET','_deserializeShapeForUnit','clear','getOwnPropertyDescriptor','IConfigService','_disposed','type','2274mHKsAP','Inject','RemoveSheetsShapeMutation','toJSON','keys','Module','sheet.mutation.update-shape-type','1962bFgJtb','3125920KCqkZp','_resourcesManagerService','shapeData','push','_linesIds','COMMAND','pushUndoRedo','IUndoRedoService','addShape','UniverSheetsShapePlugin','syncExecuteCommand','_injector','IResourceManagerService','forEach','sheets-shape.config','stringify','setConfig','946557rtFDLh','setShapeType','getLineShapeRelation','registerCommand','11407264uZibpq','SheetsShapeServices','_configService','registerPluginResource','onStarting','delete','insertShape','_shapeModelManagerMap','_shapes','isLineShape','CommandType','1Wxrtcc','fromJSON','getShapeDataById','_initSnapshot','setShapeData','get','UniverInstanceType','_initCommands','every','onRendered','MUTATION','params','Injector','merge','isConnectorShape','1916EFCUwm','symbol','_config','getShapeRelation','ICommandService','getShapeModel','_ensureShapeModelManager','Plugin','_commandService','UniverLicensePlugin','sheet.mutation.update-shape-data','getShapeTypeById','176832WoVGvI','set','getShapeType','40qQgiRq','parse','Disposable','hasShape','_groupIds','pluginName','defineProperty','removeShape'];_0x4ab1=function(){return _0x20ff36;};return _0x4ab1();}class f extends p[_0x2d9039(0x160)]{constructor(){const _0x458330=_0x2d9039;super(),S(this,'_shapes',new Map()),S(this,_0x458330(0x187),new Set()),S(this,_0x458330(0x162),new Set());}['addShape'](_0x344c5e,_0x32bfda,_0x5442a4){const _0x285972=_0x2d9039,_0x2e0f81=new l[(_0x285972(0x168))](_0x344c5e,_0x32bfda,_0x5442a4);return this[_0x285972(0x1a0)][_0x285972(0x15c)](_0x32bfda,_0x2e0f81),l[_0x285972(0x1b1)](_0x344c5e)&&this[_0x285972(0x187)][_0x285972(0x16a)](_0x32bfda),_0x2e0f81;}['getBasicShapeRelation'](_0x549600){const _0x4779d8=_0x2d9039;var _0x1c3215,_0x24d7b0;const _0x16074d=[];for(const _0x3748c8 of this[_0x4779d8(0x187)]){const _0x57ab83=this[_0x4779d8(0x1a0)][_0x4779d8(0x1a8)](_0x3748c8);if(_0x57ab83){const _0x10a874=_0x57ab83[_0x4779d8(0x1b5)]();_0x10a874&&(((_0x1c3215=_0x10a874[_0x4779d8(0x167)])==null?void 0x0:_0x1c3215['shapeId'])===_0x549600&&_0x16074d['push']({..._0x10a874['from'],'lineShapeId':_0x3748c8,'isFrom':!0x0}),((_0x24d7b0=_0x10a874['to'])==null?void 0x0:_0x24d7b0['shapeId'])===_0x549600&&_0x16074d['push']({..._0x10a874['to'],'lineShapeId':_0x3748c8,'isFrom':!0x1}));}}return _0x16074d;}[_0x2d9039(0x196)](_0x14af45){const _0x469e14=_0x2d9039,_0x28a8b2=this['_shapes'][_0x469e14(0x1a8)](_0x14af45);if(_0x28a8b2)return _0x28a8b2[_0x469e14(0x1b5)]();}[_0x2d9039(0x15d)](_0x175c57){const _0x38e9e6=_0x2d9039,_0xb6f351=this[_0x38e9e6(0x1a0)]['get'](_0x175c57);if(_0xb6f351)return _0xb6f351['getShapeType']();}['hasShape'](_0x130dcc){const _0x25777f=_0x2d9039;return this[_0x25777f(0x1a0)][_0x25777f(0x170)](_0x130dcc);}[_0x2d9039(0x165)](_0x42984f){const _0x4c0614=_0x2d9039,_0x5c3c36=this['_shapes'][_0x4c0614(0x1a8)](_0x42984f);_0x5c3c36&&(l['isConnectorShape'](_0x5c3c36[_0x4c0614(0x15d)]())&&this[_0x4c0614(0x187)][_0x4c0614(0x19d)](_0x42984f),this[_0x4c0614(0x1a0)]['delete'](_0x42984f));}[_0x2d9039(0x17e)](){const _0x41629d=_0x2d9039,_0x5e622f=[];return this['_shapes'][_0x41629d(0x190)](_0x15498d=>{const _0x5913b6=_0x41629d;_0x5e622f['push'](_0x15498d[_0x5913b6(0x17e)]());}),_0x5e622f;}['fromJSON'](_0x25324d){const _0x331ab3=_0x2d9039;for(const _0x1a3fdb of _0x25324d){const {id:_0x193b38,shapeType:_0xfab9a8}=_0x1a3fdb,_0x54b4ad=this[_0x331ab3(0x18b)](_0xfab9a8,_0x193b38,_0x1a3fdb[_0x331ab3(0x185)]);_0x54b4ad&&_0x54b4ad[_0x331ab3(0x1a1)]()&&this[_0x331ab3(0x187)][_0x331ab3(0x16a)](_0x193b38);}}[_0x2d9039(0x16f)](){const _0x71ad7c=_0x2d9039;this[_0x71ad7c(0x179)]||(this[_0x71ad7c(0x1a0)]['forEach'](_0x23558a=>{const _0x2c809a=_0x71ad7c;_0x23558a[_0x2c809a(0x16f)]();}),this[_0x71ad7c(0x1a0)]['clear'](),this['_linesIds'][_0x71ad7c(0x176)](),this[_0x71ad7c(0x162)][_0x71ad7c(0x176)](),super['dispose']());}}var R=Object[_0x2d9039(0x177)],J=(_0x5bd820,_0x438917,_0x3b2a31,_0x1140f5)=>{const _0x2661bb=_0x2d9039;for(var _0x5dbf89=_0x1140f5>0x1?void 0x0:_0x1140f5?R(_0x438917,_0x3b2a31):_0x438917,_0x4550c3=_0x5bd820[_0x2661bb(0x16e)]-0x1,_0xcffa0a;_0x4550c3>=0x0;_0x4550c3--)(_0xcffa0a=_0x5bd820[_0x4550c3])&&(_0x5dbf89=_0xcffa0a(_0x5dbf89)||_0x5dbf89);return _0x5dbf89;},j=(_0x2ed4e5,_0x368c62)=>(_0x3ce84f,_0x5ccd1e)=>_0x368c62(_0x3ce84f,_0x5ccd1e,_0x2ed4e5);const w=_0x2d9039(0x16c);exports[_0x2d9039(0x199)]=class extends p['Disposable']{constructor(_0xbe5bbb){const _0x23620d=_0x2d9039;super(),S(this,_0x23620d(0x19f),new Map()),(this['_resourcesManagerService']=_0xbe5bbb,this[_0x23620d(0x1a6)]());}[_0x2d9039(0x1b8)](_0x24c891,_0x4678ed){const _0x49d73a=_0x2d9039;let _0xf06b8c=this[_0x49d73a(0x19f)][_0x49d73a(0x1a8)](_0x24c891);_0xf06b8c||(_0xf06b8c=new Map(),this[_0x49d73a(0x19f)][_0x49d73a(0x15c)](_0x24c891,_0xf06b8c));let _0x2c36d7=_0xf06b8c[_0x49d73a(0x1a8)](_0x4678ed);return _0x2c36d7||(_0x2c36d7=new f(),_0xf06b8c[_0x49d73a(0x15c)](_0x4678ed,_0x2c36d7)),_0x2c36d7;}[_0x2d9039(0x19e)](_0x19682a,_0x3b8d9a,_0x18e5c4,_0x2e5d70,_0x2cf7f3){const _0x13d650=_0x2d9039;this[_0x13d650(0x1b8)](_0x19682a,_0x3b8d9a)[_0x13d650(0x18b)](_0x18e5c4,_0x2e5d70,_0x2cf7f3);}[_0x2d9039(0x165)](_0x582a55,_0x1f164c,_0x3725b9){this['_ensureShapeModelManager'](_0x582a55,_0x1f164c)['removeShape'](_0x3725b9);}[_0x2d9039(0x169)](_0x37ea56,_0x44245b,_0x333762){const _0x22378c=_0x2d9039;return this[_0x22378c(0x1b8)](_0x37ea56,_0x44245b)[_0x22378c(0x15d)](_0x333762);}[_0x2d9039(0x15d)](_0xf0af41,_0x54260c,_0x1eb57f){const _0x4bb2e4=_0x2d9039;return this[_0x4bb2e4(0x1b8)](_0xf0af41,_0x54260c)[_0x4bb2e4(0x15d)](_0x1eb57f);}[_0x2d9039(0x161)](_0x4beb2e,_0x250cb4,_0x314da6){const _0x3371a4=_0x2d9039;return this[_0x3371a4(0x1b8)](_0x4beb2e,_0x250cb4)[_0x3371a4(0x161)](_0x314da6);}[_0x2d9039(0x15a)](_0x2d1ec8,_0x2a6017,_0x436597){const _0x4b509a=_0x2d9039;return this[_0x4b509a(0x1b8)](_0x2d1ec8,_0x2a6017)['getShapeType'](_0x436597);}[_0x2d9039(0x1a5)](_0x4c8adb,_0xe521c0,_0x221666){const _0x2d0a4c=_0x2d9039,_0x2285b2=this[_0x2d0a4c(0x1b8)](_0x4c8adb,_0xe521c0);if(!_0x2285b2[_0x2d0a4c(0x15d)](_0x221666))return;const _0x30d214=_0x2285b2[_0x2d0a4c(0x1a0)][_0x2d0a4c(0x1a8)](_0x221666);if(_0x30d214)return _0x30d214[_0x2d0a4c(0x172)]();}[_0x2d9039(0x1b7)](_0x1ed548,_0x485c58,_0x4a485e){const _0x767bc=_0x2d9039;return this[_0x767bc(0x1b8)](_0x1ed548,_0x485c58)['_shapes']['get'](_0x4a485e);}['getBasicShapeRelation'](_0x3388aa,_0x176ddb,_0x1ebda6){const _0x1ac5a1=_0x2d9039;return this[_0x1ac5a1(0x1b8)](_0x3388aa,_0x176ddb)['getBasicShapeRelation'](_0x1ebda6);}['getLineShapeRelation'](_0x52811a,_0x170ec0,_0x1c79c2){const _0x131a6f=_0x2d9039,_0x15210b=this[_0x131a6f(0x1b8)](_0x52811a,_0x170ec0)['_shapes']['get'](_0x1c79c2);if(_0x15210b)return _0x15210b[_0x131a6f(0x1b5)]();}[_0x2d9039(0x195)](){}[_0x2d9039(0x16b)](_0x163df6){const _0x395b61=_0x2d9039,_0x174088={},_0x393454=this['_shapeModelManagerMap'][_0x395b61(0x1a8)](_0x163df6);return _0x393454&&_0x393454['forEach']((_0x2dde27,_0x33dad7)=>{const _0x4936f4=_0x395b61;_0x174088[_0x33dad7]=_0x2dde27[_0x4936f4(0x17e)]();}),JSON[_0x395b61(0x192)](_0x174088);}[_0x2d9039(0x175)](_0x46f59b,_0x5e55ca){const _0x3ed859=_0x2d9039;Object[_0x3ed859(0x17f)](_0x5e55ca)['forEach'](_0x5410ef=>{const _0x4a8a9c=_0x3ed859;this[_0x4a8a9c(0x1b8)](_0x46f59b,_0x5410ef)[_0x4a8a9c(0x1a4)](_0x5e55ca[_0x5410ef]);});}['toJSON'](){const _0x46fb8f=_0x2d9039,_0x4494e0={};return this[_0x46fb8f(0x19f)][_0x46fb8f(0x190)]((_0x4509d5,_0x289ad7)=>{const _0x54ca34=_0x46fb8f;_0x4494e0[_0x289ad7]={},_0x4509d5[_0x54ca34(0x190)]((_0x2d2f11,_0x596882)=>{_0x4494e0[_0x289ad7][_0x596882]=_0x2d2f11['toJSON']();});}),_0x4494e0;}[_0x2d9039(0x1a4)](_0x5dd390){const _0x4a3b55=_0x2d9039;Object[_0x4a3b55(0x17f)](_0x5dd390)[_0x4a3b55(0x190)](_0x22d53b=>{const _0x45e6da=_0x4a3b55,_0x529ab6=_0x5dd390[_0x22d53b];Object['keys'](_0x529ab6)[_0x45e6da(0x190)](_0x35e9d6=>{const _0x4d6b8d=_0x45e6da;this[_0x4d6b8d(0x1b8)](_0x22d53b,_0x35e9d6)['fromJSON'](_0x529ab6[_0x35e9d6]);});});}[_0x2d9039(0x1a6)](){const _0x51b1b1=_0x2d9039;this[_0x51b1b1(0x184)][_0x51b1b1(0x19b)]({'pluginName':w,'businesses':[p[_0x51b1b1(0x1a9)][_0x51b1b1(0x174)]],'toJson':_0x2894ff=>this[_0x51b1b1(0x16b)](_0x2894ff),'parseJson':_0x4b62e1=>JSON[_0x51b1b1(0x15f)](_0x4b62e1),'onLoad':(_0x301c34,_0x4f2555)=>{this['_deserializeShapeForUnit'](_0x301c34,_0x4f2555);},'onUnLoad':_0x635dba=>{const _0x37afc1=_0x51b1b1,_0x25855a=this[_0x37afc1(0x19f)][_0x37afc1(0x1a8)](_0x635dba);_0x25855a&&(_0x25855a[_0x37afc1(0x190)](_0x25b33e=>{const _0x1e88e1=_0x37afc1;_0x25b33e[_0x1e88e1(0x16f)]();}),this[_0x37afc1(0x19f)]['delete'](_0x635dba));}});}['dispose'](){const _0x3f41a3=_0x2d9039;this['_shapeModelManagerMap'][_0x3f41a3(0x190)](_0x38eec9=>{const _0x3afb95=_0x3f41a3;_0x38eec9[_0x3afb95(0x190)](_0x476631=>{const _0xc4ba36=_0x3afb95;_0x476631[_0xc4ba36(0x16f)]();});});}},exports[_0x2d9039(0x199)]=J([j(0x0,p[_0x2d9039(0x18f)])],exports[_0x2d9039(0x199)]);const d={'id':_0x2d9039(0x181),'type':p[_0x2d9039(0x1a2)]['MUTATION'],'handler':(_0x529fa6,_0x435dde)=>{const _0x3530e6=_0x2d9039,{unitId:_0x2d97da,subUnitId:_0x17d24b,shapeType:_0xa8b645,shapeId:_0x1d68de,shapeData:_0x1298c9}=_0x435dde,_0x599c87=_0x529fa6['get'](exports[_0x3530e6(0x199)])[_0x3530e6(0x1b7)](_0x2d97da,_0x17d24b,_0x1d68de);return _0x599c87&&(_0x599c87[_0x3530e6(0x195)](_0xa8b645),_0x1298c9&&(_0x599c87==null||_0x599c87[_0x3530e6(0x1a7)](_0x1298c9))),!0x0;}},H={'id':'sheet.command.update-shape-type','type':p[_0x2d9039(0x1a2)][_0x2d9039(0x188)],'handler':(_0x3d03e6,_0x45f77d)=>{const _0x15fca=_0x2d9039;if(!_0x45f77d)return!0x1;const _0x69bfd9=_0x3d03e6[_0x15fca(0x1a8)](p[_0x15fca(0x1b6)]),_0x19bf51=_0x3d03e6[_0x15fca(0x1a8)](exports[_0x15fca(0x199)]),_0x4fd0f9=_0x3d03e6[_0x15fca(0x1a8)](p[_0x15fca(0x18a)]),_0x4f19ec=[],_0x22048b=[],{unitId:_0x4a15b8,subUnitId:_0x5c46e9,shapeId:_0x97d5da,shapeType:_0x522054,shapeData:_0xbdccd4}=_0x45f77d,_0x46bad0=_0x19bf51[_0x15fca(0x1b7)](_0x4a15b8,_0x5c46e9,_0x97d5da);if(_0x46bad0){const _0x400fe4=_0x46bad0['getShapeType'](),_0x2c78ce=Object['assign']({},_0x46bad0[_0x15fca(0x172)]()),_0x1e39b1={'unitId':_0x4a15b8,'subUnitId':_0x5c46e9,'shapeId':_0x97d5da,'shapeType':_0x522054,'shapeData':_0xbdccd4},_0x522b31={'unitId':_0x4a15b8,'subUnitId':_0x5c46e9,'shapeId':_0x97d5da,'shapeType':_0x400fe4,'shapeData':_0x2c78ce};return _0x4f19ec['push']({'id':d['id'],'params':_0x1e39b1}),_0x22048b[_0x15fca(0x186)]({'id':d['id'],'params':_0x522b31}),_0x4f19ec[_0x15fca(0x1ab)](_0x223817=>_0x69bfd9[_0x15fca(0x18d)](_0x223817['id'],_0x223817[_0x15fca(0x1ae)]))&&_0x4fd0f9[_0x15fca(0x189)]({'unitID':_0x4a15b8,'redoMutations':[..._0x4f19ec],'undoMutations':[..._0x22048b]}),!0x0;}return!0x1;}},m={'id':'sheet.mutation.insert-shape','type':p[_0x2d9039(0x1a2)][_0x2d9039(0x1ad)],'handler':(_0x3afc47,_0x6343ca)=>{const _0x323494=_0x2d9039,{unitId:_0x1a5e70,subUnitId:_0x4304c9,shapeType:_0x28a8fc,shapeId:_0x1c467c,shapeData:_0x493e29}=_0x6343ca;return _0x3afc47[_0x323494(0x1a8)](exports[_0x323494(0x199)])[_0x323494(0x19e)](_0x1a5e70,_0x4304c9,_0x28a8fc,_0x1c467c,_0x493e29),!0x0;}},v={'id':'sheet.mutation.remove-shape','type':p[_0x2d9039(0x1a2)][_0x2d9039(0x1ad)],'handler':(_0x4cc9e6,_0x392977)=>{const _0x52ad0e=_0x2d9039,{unitId:_0x2c22df,subUnitId:_0x13b6c1,shapeId:_0x4d13a5}=_0x392977;return _0x4cc9e6[_0x52ad0e(0x1a8)](exports[_0x52ad0e(0x199)])['removeShape'](_0x2c22df,_0x13b6c1,_0x4d13a5),!0x0;}},y={'id':_0x2d9039(0x159),'type':p[_0x2d9039(0x1a2)]['MUTATION'],'handler':(_0x1f2644,_0xc7ee71)=>{const _0x142dc4=_0x2d9039,{unitId:_0x1375d5,subUnitId:_0x1f4b30,shapeType:_0x2fe614,shapeId:_0x3184d7,shapeData:_0x2a11fe}=_0xc7ee71,_0x202cc4=_0x1f2644[_0x142dc4(0x1a8)](exports['SheetsShapeServices'])['getShapeModel'](_0x1375d5,_0x1f4b30,_0x3184d7);return _0x202cc4&&(_0x2fe614!==void 0x0&&_0x202cc4['setShapeType'](_0x2fe614),_0x2a11fe&&(_0x202cc4==null||_0x202cc4[_0x142dc4(0x1a7)](_0x2a11fe,!0x0))),!0x0;}},A=_0x2d9039(0x191),_={};var L=Object[_0x2d9039(0x164)],F=Object[_0x2d9039(0x177)],B=(_0x5f2ca3,_0x49c3bf,_0x39cda5)=>_0x49c3bf in _0x5f2ca3?L(_0x5f2ca3,_0x49c3bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39cda5}):_0x5f2ca3[_0x49c3bf]=_0x39cda5,G=(_0x3fdd12,_0x255aed,_0x17e2e1,_0xa3bb43)=>{for(var _0x5db6b5=_0xa3bb43>0x1?void 0x0:_0xa3bb43?F(_0x255aed,_0x17e2e1):_0x255aed,_0x1001e5=_0x3fdd12['length']-0x1,_0x36f04b;_0x1001e5>=0x0;_0x1001e5--)(_0x36f04b=_0x3fdd12[_0x1001e5])&&(_0x5db6b5=_0x36f04b(_0x5db6b5)||_0x5db6b5);return _0x5db6b5;},g=(_0x30aef8,_0x4dc125)=>(_0x336831,_0x1247d7)=>_0x4dc125(_0x336831,_0x1247d7,_0x30aef8),T=(_0x46a129,_0x112478,_0x14c910)=>B(_0x46a129,typeof _0x112478!='symbol'?_0x112478+'':_0x112478,_0x14c910);const x=_0x2d9039(0x16c);exports[_0x2d9039(0x18c)]=class extends p[_0x2d9039(0x1b9)]{constructor(_0x592161=_,_0x3ebdb7,_0x5a153d,_0x51865e){const _0x55e435=_0x2d9039;super(),this[_0x55e435(0x1b4)]=_0x592161,this[_0x55e435(0x18e)]=_0x3ebdb7,this[_0x55e435(0x1ba)]=_0x5a153d,this[_0x55e435(0x19a)]=_0x51865e;const {..._0x13a36b}=p[_0x55e435(0x1b0)]({},_,this[_0x55e435(0x1b4)]);this['_configService'][_0x55e435(0x193)](A,_0x13a36b),this[_0x55e435(0x1aa)]();}[_0x2d9039(0x1ac)](){const _0x10a7f0=_0x2d9039;p['touchDependencies'](this[_0x10a7f0(0x18e)],[]);}[_0x2d9039(0x19c)](){const _0x21f865=_0x2d9039,_0x4445aa=this[_0x21f865(0x18e)];[[f],[exports['SheetsShapeServices']]][_0x21f865(0x190)](_0xefd47f=>_0x4445aa[_0x21f865(0x16a)](_0xefd47f));}['_initCommands'](){const _0x56d11a=_0x2d9039;[m,v,d,y]['forEach'](_0x47144b=>this['disposeWithMe'](this[_0x56d11a(0x1ba)][_0x56d11a(0x197)](_0x47144b)));}},T(exports[_0x2d9039(0x18c)],_0x2d9039(0x17a),p[_0x2d9039(0x1a9)][_0x2d9039(0x174)]),T(exports['UniverSheetsShapePlugin'],_0x2d9039(0x163),x),exports['UniverSheetsShapePlugin']=G([p[_0x2d9039(0x171)](b[_0x2d9039(0x1bb)]),g(0x1,p[_0x2d9039(0x17c)](p[_0x2d9039(0x1af)])),g(0x2,p[_0x2d9039(0x1b6)]),g(0x3,p[_0x2d9039(0x178)])],exports[_0x2d9039(0x18c)]),exports['InsertSheetsShapeMutation']=m,exports[_0x2d9039(0x17d)]=v,exports['UpdateSheetsShapeDataMutation']=y,exports['UpdateSheetsShapeTypeCommand']=H,exports['UpdateSheetsShapeTypeMutation']=d;
1
+ 'use strict';const _0x9c8bca=_0xf2c6;(function(_0x340a73,_0x35b4dd){const _0x18c451=_0xf2c6,_0x166109=_0x340a73();while(!![]){try{const _0x1c789a=parseInt(_0x18c451(0x95))/0x1*(parseInt(_0x18c451(0xd7))/0x2)+parseInt(_0x18c451(0xb2))/0x3*(parseInt(_0x18c451(0xb6))/0x4)+parseInt(_0x18c451(0xb7))/0x5+parseInt(_0x18c451(0xbe))/0x6*(-parseInt(_0x18c451(0xc6))/0x7)+parseInt(_0x18c451(0xa7))/0x8+-parseInt(_0x18c451(0xc8))/0x9+-parseInt(_0x18c451(0x97))/0xa;if(_0x1c789a===_0x35b4dd)break;else _0x166109['push'](_0x166109['shift']());}catch(_0x2d29b4){_0x166109['push'](_0x166109['shift']());}}}(_0x1474,0x29e45));var D=Object[_0x9c8bca(0xd1)],C=(_0x422c25,_0x2006de,_0x51558d)=>_0x2006de in _0x422c25?D(_0x422c25,_0x2006de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51558d}):_0x422c25[_0x2006de]=_0x51558d,S=(_0x5425e9,_0x13fe35,_0x5513d7)=>C(_0x5425e9,typeof _0x13fe35!='symbol'?_0x13fe35+'':_0x13fe35,_0x5513d7);Object[_0x9c8bca(0xd1)](exports,Symbol['toStringTag'],{'value':_0x9c8bca(0xa2)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');class f extends p[_0x9c8bca(0xbb)]{constructor(){const _0x367807=_0x9c8bca;super(),S(this,'_shapes',new Map()),S(this,_0x367807(0xaa),new Set()),S(this,_0x367807(0x9a),new Set());}[_0x9c8bca(0xa3)](_0xa2974c,_0x4985a9,_0x472481){const _0x7d688a=_0x9c8bca,_0xb2d1c3=new l['ShapeModel'](_0xa2974c,_0x4985a9,_0x472481);return this[_0x7d688a(0x94)][_0x7d688a(0xbc)](_0x4985a9,_0xb2d1c3),l['isConnectorShape'](_0xa2974c)&&this['_linesIds'][_0x7d688a(0xd5)](_0x4985a9),_0xb2d1c3;}['getBasicShapeRelation'](_0x151732){const _0x1b3621=_0x9c8bca;var _0x4275cd,_0x38fcf4;const _0x46441f=[];for(const _0x8a0c97 of this[_0x1b3621(0xaa)]){const _0x312621=this[_0x1b3621(0x94)][_0x1b3621(0x9f)](_0x8a0c97);if(_0x312621){const _0x5361c5=_0x312621['getShapeRelation']();_0x5361c5&&(((_0x4275cd=_0x5361c5[_0x1b3621(0xd3)])==null?void 0x0:_0x4275cd['shapeId'])===_0x151732&&_0x46441f['push']({..._0x5361c5[_0x1b3621(0xd3)],'lineShapeId':_0x8a0c97,'isFrom':!0x0}),((_0x38fcf4=_0x5361c5['to'])==null?void 0x0:_0x38fcf4[_0x1b3621(0x9d)])===_0x151732&&_0x46441f['push']({..._0x5361c5['to'],'lineShapeId':_0x8a0c97,'isFrom':!0x1}));}}return _0x46441f;}['getLineShapeRelation'](_0x57e2f3){const _0x288f02=_0x9c8bca,_0x102938=this[_0x288f02(0x94)]['get'](_0x57e2f3);if(_0x102938)return _0x102938[_0x288f02(0xa9)]();}[_0x9c8bca(0xb3)](_0x133301){const _0x1e5bd9=_0x9c8bca,_0xae1dcc=this[_0x1e5bd9(0x94)][_0x1e5bd9(0x9f)](_0x133301);if(_0xae1dcc)return _0xae1dcc[_0x1e5bd9(0xb3)]();}['hasShape'](_0x419fb7){const _0x58e5a5=_0x9c8bca;return this[_0x58e5a5(0x94)]['has'](_0x419fb7);}[_0x9c8bca(0x8b)](_0x1aac0a){const _0x7bc4e7=_0x9c8bca,_0x4e137d=this[_0x7bc4e7(0x94)][_0x7bc4e7(0x9f)](_0x1aac0a);_0x4e137d&&(l[_0x7bc4e7(0xda)](_0x4e137d[_0x7bc4e7(0xb3)]())&&this[_0x7bc4e7(0xaa)][_0x7bc4e7(0x88)](_0x1aac0a),this['_shapes'][_0x7bc4e7(0x88)](_0x1aac0a));}[_0x9c8bca(0x80)](){const _0x4de87e=_0x9c8bca,_0x2f55fb=[];return this[_0x4de87e(0x94)][_0x4de87e(0xd2)](_0x5879fa=>{const _0x54cc98=_0x4de87e;_0x2f55fb[_0x54cc98(0xa4)](_0x5879fa[_0x54cc98(0x80)]());}),_0x2f55fb;}[_0x9c8bca(0x98)](_0x4ecefd){const _0x52880d=_0x9c8bca;for(const _0x3a81f3 of _0x4ecefd){const {id:_0x45efe2,shapeType:_0x3b8619}=_0x3a81f3,_0x92a11d=this[_0x52880d(0xa3)](_0x3b8619,_0x45efe2,_0x3a81f3['shapeData']);_0x92a11d&&_0x92a11d[_0x52880d(0x8c)]()&&this[_0x52880d(0xaa)][_0x52880d(0xd5)](_0x45efe2);}}[_0x9c8bca(0xcc)](){const _0x234f69=_0x9c8bca;this['_disposed']||(this[_0x234f69(0x94)][_0x234f69(0xd2)](_0x24e64a=>{const _0x3f8254=_0x234f69;_0x24e64a[_0x3f8254(0xcc)]();}),this[_0x234f69(0x94)]['clear'](),this[_0x234f69(0xaa)][_0x234f69(0xae)](),this['_groupIds'][_0x234f69(0xae)](),super['dispose']());}}var R=Object['getOwnPropertyDescriptor'],J=(_0x462201,_0x462dc8,_0x2f293a,_0x5f53c2)=>{const _0x328d50=_0x9c8bca;for(var _0x3f51ae=_0x5f53c2>0x1?void 0x0:_0x5f53c2?R(_0x462dc8,_0x2f293a):_0x462dc8,_0x37eb74=_0x462201[_0x328d50(0x9c)]-0x1,_0x172a67;_0x37eb74>=0x0;_0x37eb74--)(_0x172a67=_0x462201[_0x37eb74])&&(_0x3f51ae=_0x172a67(_0x3f51ae)||_0x3f51ae);return _0x3f51ae;},j=(_0x5b7858,_0x194154)=>(_0x2d1877,_0x4d292e)=>_0x194154(_0x2d1877,_0x4d292e,_0x5b7858);function _0x1474(){const _0x26d514=['ICommandService','CommandType','delete','_configService','getShapeData','removeShape','isLineShape','_ensureShapeModelManager','DependentOn','SHEET_SHAPE_PLUGIN','stringify','IUndoRedoService','registerCommand','UpdateSheetsShapeTypeCommand','_shapes','68731MCCCys','UniverInstanceType','2636570yUswMi','fromJSON','disposeWithMe','_groupIds','Inject','length','shapeId','sheet.mutation.update-shape-type','get','COMMAND','touchDependencies','Module','addShape','push','_initSnapshot','onStarting','1893784maacDI','_config','getShapeRelation','_linesIds','setConfig','insertShape','type','clear','setShapeData','UNIVER_SHEET','RemoveSheetsShapeMutation','3YwTHXz','getShapeType','_deserializeShapeForUnit','merge','610644jUsovn','1456930grkclL','assign','getShapeModel','IConfigService','Disposable','set','params','24426lhSaHF','_resourcesManagerService','_serializeShapeForUnit','onRendered','IResourceManagerService','registerPluginResource','_initCommands','pushUndoRedo','581dYMRcY','MUTATION','405837BLnHfg','sheet.command.update-shape-type','symbol','hasShape','dispose','_injector','keys','sheets-shape.config','getShapeDataById','defineProperty','forEach','from','_shapeModelManagerMap','add','_commandService','4HeJntH','SheetsShapeServices','getBasicShapeType','isConnectorShape','getLineShapeRelation','getBasicShapeRelation','toJSON','UniverSheetsShapePlugin','UpdateSheetsShapeTypeMutation','setShapeType','getShapeTypeById','sheet.mutation.update-shape-data'];_0x1474=function(){return _0x26d514;};return _0x1474();}const w='SHEET_SHAPE_PLUGIN';exports[_0x9c8bca(0xd8)]=class extends p[_0x9c8bca(0xbb)]{constructor(_0x314c35){const _0x5f3797=_0x9c8bca;super(),S(this,_0x5f3797(0xd4),new Map()),(this[_0x5f3797(0xbf)]=_0x314c35,this[_0x5f3797(0xa5)]());}[_0x9c8bca(0x8d)](_0x2dd1fe,_0x286c4b){const _0x188393=_0x9c8bca;let _0x572a7f=this[_0x188393(0xd4)][_0x188393(0x9f)](_0x2dd1fe);_0x572a7f||(_0x572a7f=new Map(),this[_0x188393(0xd4)][_0x188393(0xbc)](_0x2dd1fe,_0x572a7f));let _0x21834e=_0x572a7f[_0x188393(0x9f)](_0x286c4b);return _0x21834e||(_0x21834e=new f(),_0x572a7f['set'](_0x286c4b,_0x21834e)),_0x21834e;}[_0x9c8bca(0xac)](_0x35b3a2,_0x4bfa19,_0x226a38,_0x4bd998,_0x3b0996){const _0x5a3bd8=_0x9c8bca;this['_ensureShapeModelManager'](_0x35b3a2,_0x4bfa19)[_0x5a3bd8(0xa3)](_0x226a38,_0x4bd998,_0x3b0996);}[_0x9c8bca(0x8b)](_0x4dad7d,_0x33a37f,_0x484e28){const _0x2f3f60=_0x9c8bca;this['_ensureShapeModelManager'](_0x4dad7d,_0x33a37f)[_0x2f3f60(0x8b)](_0x484e28);}[_0x9c8bca(0xd9)](_0x467a3e,_0x49a08d,_0x4e14ef){const _0xded75=_0x9c8bca;return this[_0xded75(0x8d)](_0x467a3e,_0x49a08d)['getShapeType'](_0x4e14ef);}['getShapeType'](_0x7421ac,_0x15f38c,_0x42e2dd){return this['_ensureShapeModelManager'](_0x7421ac,_0x15f38c)['getShapeType'](_0x42e2dd);}['hasShape'](_0x3287a9,_0x8fe0bb,_0x171555){const _0x5892b2=_0x9c8bca;return this[_0x5892b2(0x8d)](_0x3287a9,_0x8fe0bb)[_0x5892b2(0xcb)](_0x171555);}[_0x9c8bca(0x84)](_0x174cff,_0x592810,_0x420bbe){const _0x15a455=_0x9c8bca;return this[_0x15a455(0x8d)](_0x174cff,_0x592810)[_0x15a455(0xb3)](_0x420bbe);}[_0x9c8bca(0xd0)](_0x5bfddd,_0x47a95e,_0x394419){const _0x5b5182=_0x9c8bca,_0x33805c=this[_0x5b5182(0x8d)](_0x5bfddd,_0x47a95e);if(!_0x33805c['getShapeType'](_0x394419))return;const _0x1ce91c=_0x33805c[_0x5b5182(0x94)][_0x5b5182(0x9f)](_0x394419);if(_0x1ce91c)return _0x1ce91c[_0x5b5182(0x8a)]();}[_0x9c8bca(0xb9)](_0x109fea,_0x137415,_0x300810){const _0x332c11=_0x9c8bca;return this[_0x332c11(0x8d)](_0x109fea,_0x137415)[_0x332c11(0x94)]['get'](_0x300810);}[_0x9c8bca(0xdc)](_0x557c4b,_0x105316,_0x122146){const _0x8e438=_0x9c8bca;return this[_0x8e438(0x8d)](_0x557c4b,_0x105316)[_0x8e438(0xdc)](_0x122146);}[_0x9c8bca(0xdb)](_0x160851,_0x279c82,_0x154e16){const _0x5e78e8=_0x9c8bca,_0x2bfc1c=this[_0x5e78e8(0x8d)](_0x160851,_0x279c82)[_0x5e78e8(0x94)][_0x5e78e8(0x9f)](_0x154e16);if(_0x2bfc1c)return _0x2bfc1c[_0x5e78e8(0xa9)]();}[_0x9c8bca(0x83)](){}[_0x9c8bca(0xc0)](_0x591400){const _0x4bd585=_0x9c8bca,_0x3fb885={},_0x3fde30=this[_0x4bd585(0xd4)][_0x4bd585(0x9f)](_0x591400);return _0x3fde30&&_0x3fde30[_0x4bd585(0xd2)]((_0x51143d,_0x2d1177)=>{const _0xe98a1f=_0x4bd585;_0x3fb885[_0x2d1177]=_0x51143d[_0xe98a1f(0x80)]();}),JSON[_0x4bd585(0x90)](_0x3fb885);}[_0x9c8bca(0xb4)](_0x4e1e87,_0x2d219f){const _0x1d4391=_0x9c8bca;Object[_0x1d4391(0xce)](_0x2d219f)[_0x1d4391(0xd2)](_0x36050c=>{const _0x3b1483=_0x1d4391;this[_0x3b1483(0x8d)](_0x4e1e87,_0x36050c)['fromJSON'](_0x2d219f[_0x36050c]);});}[_0x9c8bca(0x80)](){const _0x35e1f8=_0x9c8bca,_0x205bd0={};return this[_0x35e1f8(0xd4)][_0x35e1f8(0xd2)]((_0x405443,_0x1a3f7d)=>{const _0x3b20ae=_0x35e1f8;_0x205bd0[_0x1a3f7d]={},_0x405443[_0x3b20ae(0xd2)]((_0x1fed5f,_0x104693)=>{const _0x2e7841=_0x3b20ae;_0x205bd0[_0x1a3f7d][_0x104693]=_0x1fed5f[_0x2e7841(0x80)]();});}),_0x205bd0;}[_0x9c8bca(0x98)](_0x59f492){const _0x222616=_0x9c8bca;Object[_0x222616(0xce)](_0x59f492)[_0x222616(0xd2)](_0x4305ef=>{const _0x2a178c=_0x222616,_0x83388a=_0x59f492[_0x4305ef];Object[_0x2a178c(0xce)](_0x83388a)['forEach'](_0x34917a=>{const _0x4fab94=_0x2a178c;this[_0x4fab94(0x8d)](_0x4305ef,_0x34917a)[_0x4fab94(0x98)](_0x83388a[_0x34917a]);});});}[_0x9c8bca(0xa5)](){const _0x2fbf3b=_0x9c8bca;this['_resourcesManagerService'][_0x2fbf3b(0xc3)]({'pluginName':w,'businesses':[p[_0x2fbf3b(0x96)][_0x2fbf3b(0xb0)]],'toJson':_0x4d998e=>this[_0x2fbf3b(0xc0)](_0x4d998e),'parseJson':_0x3476b6=>JSON['parse'](_0x3476b6),'onLoad':(_0x3c230c,_0x30389d)=>{const _0x2119da=_0x2fbf3b;this[_0x2119da(0xb4)](_0x3c230c,_0x30389d);},'onUnLoad':_0x18a893=>{const _0x5919a1=_0x2fbf3b,_0x2671bb=this[_0x5919a1(0xd4)][_0x5919a1(0x9f)](_0x18a893);_0x2671bb&&(_0x2671bb[_0x5919a1(0xd2)](_0x2bf3e3=>{const _0x49eadf=_0x5919a1;_0x2bf3e3[_0x49eadf(0xcc)]();}),this[_0x5919a1(0xd4)][_0x5919a1(0x88)](_0x18a893));}});}[_0x9c8bca(0xcc)](){const _0x539686=_0x9c8bca;this[_0x539686(0xd4)]['forEach'](_0x3edaa7=>{const _0x3604db=_0x539686;_0x3edaa7[_0x3604db(0xd2)](_0x28f053=>{_0x28f053['dispose']();});});}},exports['SheetsShapeServices']=J([j(0x0,p[_0x9c8bca(0xc2)])],exports[_0x9c8bca(0xd8)]);function _0xf2c6(_0x91ab82,_0xa15704){_0x91ab82=_0x91ab82-0x80;const _0x147483=_0x1474();let _0xf2c6ec=_0x147483[_0x91ab82];return _0xf2c6ec;}const d={'id':_0x9c8bca(0x9e),'type':p[_0x9c8bca(0x87)][_0x9c8bca(0xc7)],'handler':(_0x540943,_0x308799)=>{const _0x4a1419=_0x9c8bca,{unitId:_0x1a87bb,subUnitId:_0x1b5af6,shapeType:_0x529a68,shapeId:_0x58f2b1,shapeData:_0xb027c9}=_0x308799,_0x461cab=_0x540943[_0x4a1419(0x9f)](exports['SheetsShapeServices'])[_0x4a1419(0xb9)](_0x1a87bb,_0x1b5af6,_0x58f2b1);return _0x461cab&&(_0x461cab['setShapeType'](_0x529a68),_0xb027c9&&(_0x461cab==null||_0x461cab['setShapeData'](_0xb027c9))),!0x0;}},H={'id':_0x9c8bca(0xc9),'type':p[_0x9c8bca(0x87)][_0x9c8bca(0xa0)],'handler':(_0x2185ad,_0x25bd73)=>{const _0x40e876=_0x9c8bca;if(!_0x25bd73)return!0x1;const _0x1ce69b=_0x2185ad['get'](p[_0x40e876(0x86)]),_0xc406ef=_0x2185ad[_0x40e876(0x9f)](exports[_0x40e876(0xd8)]),_0x375bc9=_0x2185ad[_0x40e876(0x9f)](p[_0x40e876(0x91)]),_0x5e56a9=[],_0x2d354f=[],{unitId:_0x269fc6,subUnitId:_0x11dae9,shapeId:_0x196075,shapeType:_0x5aaa72,shapeData:_0x2d8095}=_0x25bd73,_0x5ee0c2=_0xc406ef[_0x40e876(0xb9)](_0x269fc6,_0x11dae9,_0x196075);if(_0x5ee0c2){const _0x118e1e=_0x5ee0c2[_0x40e876(0xb3)](),_0x27d20c=Object[_0x40e876(0xb8)]({},_0x5ee0c2[_0x40e876(0x8a)]()),_0x3f8b44={'unitId':_0x269fc6,'subUnitId':_0x11dae9,'shapeId':_0x196075,'shapeType':_0x5aaa72,'shapeData':_0x2d8095},_0x2bac91={'unitId':_0x269fc6,'subUnitId':_0x11dae9,'shapeId':_0x196075,'shapeType':_0x118e1e,'shapeData':_0x27d20c};return _0x5e56a9[_0x40e876(0xa4)]({'id':d['id'],'params':_0x3f8b44}),_0x2d354f[_0x40e876(0xa4)]({'id':d['id'],'params':_0x2bac91}),_0x5e56a9['every'](_0x633fe3=>_0x1ce69b['syncExecuteCommand'](_0x633fe3['id'],_0x633fe3[_0x40e876(0xbd)]))&&_0x375bc9[_0x40e876(0xc5)]({'unitID':_0x269fc6,'redoMutations':[..._0x5e56a9],'undoMutations':[..._0x2d354f]}),!0x0;}return!0x1;}},m={'id':'sheet.mutation.insert-shape','type':p[_0x9c8bca(0x87)]['MUTATION'],'handler':(_0x4f7fcd,_0x2ad384)=>{const _0x39a9a1=_0x9c8bca,{unitId:_0x5976d,subUnitId:_0x5fcdc9,shapeType:_0x263cf4,shapeId:_0x3f5a2f,shapeData:_0x55cac6}=_0x2ad384;return _0x4f7fcd[_0x39a9a1(0x9f)](exports[_0x39a9a1(0xd8)])[_0x39a9a1(0xac)](_0x5976d,_0x5fcdc9,_0x263cf4,_0x3f5a2f,_0x55cac6),!0x0;}},v={'id':'sheet.mutation.remove-shape','type':p['CommandType'][_0x9c8bca(0xc7)],'handler':(_0x21b94f,_0x331143)=>{const _0x17bb8c=_0x9c8bca,{unitId:_0x5bdac0,subUnitId:_0x32c06c,shapeId:_0x27f6dd}=_0x331143;return _0x21b94f[_0x17bb8c(0x9f)](exports[_0x17bb8c(0xd8)])[_0x17bb8c(0x8b)](_0x5bdac0,_0x32c06c,_0x27f6dd),!0x0;}},y={'id':_0x9c8bca(0x85),'type':p[_0x9c8bca(0x87)][_0x9c8bca(0xc7)],'handler':(_0x16a2b0,_0xa79d55)=>{const _0x27dc9d=_0x9c8bca,{unitId:_0x4dac75,subUnitId:_0x12e2c0,shapeType:_0x50193b,shapeId:_0x21b5ea,shapeData:_0x480d8a}=_0xa79d55,_0x5b92e1=_0x16a2b0[_0x27dc9d(0x9f)](exports[_0x27dc9d(0xd8)])[_0x27dc9d(0xb9)](_0x4dac75,_0x12e2c0,_0x21b5ea);return _0x5b92e1&&(_0x50193b!==void 0x0&&_0x5b92e1['setShapeType'](_0x50193b),_0x480d8a&&(_0x5b92e1==null||_0x5b92e1[_0x27dc9d(0xaf)](_0x480d8a,!0x0))),!0x0;}},A=_0x9c8bca(0xcf),_={};var L=Object[_0x9c8bca(0xd1)],F=Object['getOwnPropertyDescriptor'],B=(_0x2aafc8,_0x41ada7,_0x4e8ad4)=>_0x41ada7 in _0x2aafc8?L(_0x2aafc8,_0x41ada7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e8ad4}):_0x2aafc8[_0x41ada7]=_0x4e8ad4,G=(_0x538781,_0x3f5cc3,_0x50a63d,_0x5f133c)=>{const _0x12a4f6=_0x9c8bca;for(var _0x267fc8=_0x5f133c>0x1?void 0x0:_0x5f133c?F(_0x3f5cc3,_0x50a63d):_0x3f5cc3,_0x3e0384=_0x538781[_0x12a4f6(0x9c)]-0x1,_0x1b3684;_0x3e0384>=0x0;_0x3e0384--)(_0x1b3684=_0x538781[_0x3e0384])&&(_0x267fc8=_0x1b3684(_0x267fc8)||_0x267fc8);return _0x267fc8;},g=(_0x2f354c,_0x3b91f0)=>(_0x82276,_0x406805)=>_0x3b91f0(_0x82276,_0x406805,_0x2f354c),T=(_0x2b89a4,_0x2de6a7,_0x1f2ebd)=>B(_0x2b89a4,typeof _0x2de6a7!=_0x9c8bca(0xca)?_0x2de6a7+'':_0x2de6a7,_0x1f2ebd);const x=_0x9c8bca(0x8f);exports[_0x9c8bca(0x81)]=class extends p['Plugin']{constructor(_0x248ba0=_,_0x36c24e,_0x7cec1,_0x5a7c11){const _0x76950b=_0x9c8bca;super(),this['_config']=_0x248ba0,this[_0x76950b(0xcd)]=_0x36c24e,this[_0x76950b(0xd6)]=_0x7cec1,this[_0x76950b(0x89)]=_0x5a7c11;const {..._0x370606}=p[_0x76950b(0xb5)]({},_,this[_0x76950b(0xa8)]);this[_0x76950b(0x89)][_0x76950b(0xab)](A,_0x370606),this[_0x76950b(0xc4)]();}[_0x9c8bca(0xc1)](){const _0x4fb7fb=_0x9c8bca;p[_0x4fb7fb(0xa1)](this[_0x4fb7fb(0xcd)],[]);}[_0x9c8bca(0xa6)](){const _0x24a93a=_0x9c8bca,_0x4216a6=this[_0x24a93a(0xcd)];[[f],[exports[_0x24a93a(0xd8)]]]['forEach'](_0x15c0b3=>_0x4216a6[_0x24a93a(0xd5)](_0x15c0b3));}[_0x9c8bca(0xc4)](){const _0x21c62e=_0x9c8bca;[m,v,d,y][_0x21c62e(0xd2)](_0x3bacab=>this[_0x21c62e(0x99)](this[_0x21c62e(0xd6)][_0x21c62e(0x92)](_0x3bacab)));}},T(exports[_0x9c8bca(0x81)],_0x9c8bca(0xad),p['UniverInstanceType'][_0x9c8bca(0xb0)]),T(exports[_0x9c8bca(0x81)],'pluginName',x),exports[_0x9c8bca(0x81)]=G([p[_0x9c8bca(0x8e)](b['UniverLicensePlugin']),g(0x1,p[_0x9c8bca(0x9b)](p['Injector'])),g(0x2,p[_0x9c8bca(0x86)]),g(0x3,p[_0x9c8bca(0xba)])],exports[_0x9c8bca(0x81)]),exports['InsertSheetsShapeMutation']=m,exports[_0x9c8bca(0xb1)]=v,exports['UpdateSheetsShapeDataMutation']=y,exports[_0x9c8bca(0x93)]=H,exports[_0x9c8bca(0x82)]=d;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x53c5(_0x142596,_0x3e65ba){_0x142596=_0x142596-0x16a;const _0x202ae0=_0x202a();let _0x53c5b8=_0x202ae0[_0x142596];return _0x53c5b8;}const _0x5484a7=_0x53c5;(function(_0x13dc11,_0x23de19){const _0xdd380d=_0x53c5,_0x2f29ee=_0x13dc11();while(!![]){try{const _0x313a74=parseInt(_0xdd380d(0x17f))/0x1*(parseInt(_0xdd380d(0x1b1))/0x2)+-parseInt(_0xdd380d(0x1af))/0x3*(-parseInt(_0xdd380d(0x16f))/0x4)+parseInt(_0xdd380d(0x189))/0x5*(-parseInt(_0xdd380d(0x1a1))/0x6)+-parseInt(_0xdd380d(0x188))/0x7*(parseInt(_0xdd380d(0x181))/0x8)+-parseInt(_0xdd380d(0x17c))/0x9*(-parseInt(_0xdd380d(0x1b3))/0xa)+-parseInt(_0xdd380d(0x1a2))/0xb+-parseInt(_0xdd380d(0x191))/0xc*(-parseInt(_0xdd380d(0x1a3))/0xd);if(_0x313a74===_0x23de19)break;else _0x2f29ee['push'](_0x2f29ee['shift']());}catch(_0x20830e){_0x2f29ee['push'](_0x2f29ee['shift']());}}}(_0x202a,0x6b540));var R=Object[_0x5484a7(0x178)],C=(_0x49a341,_0x4ec6ca,_0x34fa90)=>_0x4ec6ca in _0x49a341?R(_0x49a341,_0x4ec6ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34fa90}):_0x49a341[_0x4ec6ca]=_0x34fa90,d=(_0x5ee393,_0x11a108,_0x38a5a6)=>C(_0x5ee393,typeof _0x11a108!=_0x5484a7(0x1a5)?_0x11a108+'':_0x11a108,_0x38a5a6);import{Disposable as _0x461310,UniverInstanceType as _0x1791e7,IResourceManagerService as _0xfb96d4,CommandType as _0x3e44b9,ICommandService as _0x5c5b2b,IUndoRedoService as _0x22d773,DependentOn as _0x502eab,Inject as _0x546027,Injector as _0x58fdc6,Plugin as _0xa33e95,merge as _0xfa4b98,touchDependencies as _0x1fc7ee,IConfigService as _0x499a85}from'@univerjs/core';import{ShapeModel as _0x21ca7f,isConnectorShape as _0x20df5d}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3b4c6e}from'@univerjs-pro/license';function _0x202a(){const _0x40eb86=['disposeWithMe','28HgzUtQ','pluginName','onRendered','UNIVER_SHEET','_initSnapshot','sheet.mutation.remove-shape','setShapeType','setShapeData','getBasicShapeRelation','defineProperty','_ensureShapeModelManager','getShapeType','pushUndoRedo','963koCWEo','stringify','isLineShape','1MXqAEl','hasShape','464248MHJDwo','sheet.command.update-shape-type','every','_configService','_initCommands','getBasicShapeType','_deserializeShapeForUnit','21ZkyBgd','153955CAgwnv','_linesIds','shapeId','params','from','length','_config','get','25248qmETbG','_resourcesManagerService','delete','_commandService','registerCommand','clear','sheets-shape.config','onStarting','fromJSON','dispose','getShapeData','push','getShapeModel','COMMAND','_shapeModelManagerMap','toJSON','144dBHzZg','2174084elDzaz','52RSrDkA','set','symbol','addShape','syncExecuteCommand','keys','_serializeShapeForUnit','_injector','forEach','getShapeRelation','insertShape','getOwnPropertyDescriptor','350868boQLsl','add','1063612AUQgja','_groupIds','17890QqDEMr','setConfig','removeShape','getShapeTypeById','_shapes','getLineShapeRelation','SHEET_SHAPE_PLUGIN','registerPluginResource','parse','has','type'];_0x202a=function(){return _0x40eb86;};return _0x202a();}class T extends _0x461310{constructor(){const _0xaf3abd=_0x5484a7;super(),d(this,_0xaf3abd(0x1b7),new Map()),d(this,_0xaf3abd(0x18a),new Set()),d(this,'_groupIds',new Set());}[_0x5484a7(0x1a6)](_0x140b42,_0x5bbe0b,_0x27e03b){const _0x49c52b=_0x5484a7,_0x484bea=new _0x21ca7f(_0x140b42,_0x5bbe0b,_0x27e03b);return this[_0x49c52b(0x1b7)][_0x49c52b(0x1a4)](_0x5bbe0b,_0x484bea),_0x20df5d(_0x140b42)&&this['_linesIds']['add'](_0x5bbe0b),_0x484bea;}[_0x5484a7(0x177)](_0x40a3fd){const _0xaa56a1=_0x5484a7;var _0x505ddc,_0x48ecc7;const _0x8039f0=[];for(const _0x2d2724 of this[_0xaa56a1(0x18a)]){const _0x52eee5=this['_shapes']['get'](_0x2d2724);if(_0x52eee5){const _0x42dfbd=_0x52eee5[_0xaa56a1(0x1ac)]();_0x42dfbd&&(((_0x505ddc=_0x42dfbd['from'])==null?void 0x0:_0x505ddc[_0xaa56a1(0x18b)])===_0x40a3fd&&_0x8039f0[_0xaa56a1(0x19c)]({..._0x42dfbd[_0xaa56a1(0x18d)],'lineShapeId':_0x2d2724,'isFrom':!0x0}),((_0x48ecc7=_0x42dfbd['to'])==null?void 0x0:_0x48ecc7[_0xaa56a1(0x18b)])===_0x40a3fd&&_0x8039f0[_0xaa56a1(0x19c)]({..._0x42dfbd['to'],'lineShapeId':_0x2d2724,'isFrom':!0x1}));}}return _0x8039f0;}[_0x5484a7(0x1b8)](_0x7581bd){const _0x320a72=_0x5484a7,_0x525bc4=this[_0x320a72(0x1b7)]['get'](_0x7581bd);if(_0x525bc4)return _0x525bc4[_0x320a72(0x1ac)]();}[_0x5484a7(0x17a)](_0x1221d1){const _0x19f6d3=_0x5484a7,_0x19e6c0=this[_0x19f6d3(0x1b7)]['get'](_0x1221d1);if(_0x19e6c0)return _0x19e6c0[_0x19f6d3(0x17a)]();}['hasShape'](_0x2071de){const _0x448ec7=_0x5484a7;return this['_shapes'][_0x448ec7(0x16c)](_0x2071de);}['removeShape'](_0x37902c){const _0x298ef9=_0x5484a7,_0x4165de=this['_shapes'][_0x298ef9(0x190)](_0x37902c);_0x4165de&&(_0x20df5d(_0x4165de[_0x298ef9(0x17a)]())&&this['_linesIds'][_0x298ef9(0x193)](_0x37902c),this[_0x298ef9(0x1b7)][_0x298ef9(0x193)](_0x37902c));}[_0x5484a7(0x1a0)](){const _0x3aaa16=_0x5484a7,_0x3d62c0=[];return this[_0x3aaa16(0x1b7)][_0x3aaa16(0x1ab)](_0x1ea13c=>{const _0x5669bb=_0x3aaa16;_0x3d62c0[_0x5669bb(0x19c)](_0x1ea13c['toJSON']());}),_0x3d62c0;}[_0x5484a7(0x199)](_0x575f1c){const _0x2b791a=_0x5484a7;for(const _0x1ccbd4 of _0x575f1c){const {id:_0x337e45,shapeType:_0x5cf444}=_0x1ccbd4,_0x1c9f37=this[_0x2b791a(0x1a6)](_0x5cf444,_0x337e45,_0x1ccbd4['shapeData']);_0x1c9f37&&_0x1c9f37[_0x2b791a(0x17e)]()&&this[_0x2b791a(0x18a)]['add'](_0x337e45);}}[_0x5484a7(0x19a)](){const _0x394d45=_0x5484a7;this['_disposed']||(this[_0x394d45(0x1b7)][_0x394d45(0x1ab)](_0x48640d=>{const _0x126a9a=_0x394d45;_0x48640d[_0x126a9a(0x19a)]();}),this['_shapes'][_0x394d45(0x196)](),this[_0x394d45(0x18a)][_0x394d45(0x196)](),this[_0x394d45(0x1b2)]['clear'](),super['dispose']());}}var $=Object[_0x5484a7(0x1ae)],V=(_0x169079,_0xd1d8bc,_0x1cd2cb,_0x13d387)=>{for(var _0x3ce50b=_0x13d387>0x1?void 0x0:_0x13d387?$(_0xd1d8bc,_0x1cd2cb):_0xd1d8bc,_0x4375cd=_0x169079['length']-0x1,_0x459f5b;_0x4375cd>=0x0;_0x4375cd--)(_0x459f5b=_0x169079[_0x4375cd])&&(_0x3ce50b=_0x459f5b(_0x3ce50b)||_0x3ce50b);return _0x3ce50b;},K=(_0x5b87a3,_0x1401d7)=>(_0xdea9ed,_0x44f4c1)=>_0x1401d7(_0xdea9ed,_0x44f4c1,_0x5b87a3);const W=_0x5484a7(0x1b9);let i=class extends _0x461310{constructor(_0x4a648d){const _0x385fbc=_0x5484a7;super(),d(this,_0x385fbc(0x19f),new Map()),(this[_0x385fbc(0x192)]=_0x4a648d,this[_0x385fbc(0x173)]());}[_0x5484a7(0x179)](_0x4b6a80,_0x4b9af7){const _0x100423=_0x5484a7;let _0x5a40ab=this['_shapeModelManagerMap']['get'](_0x4b6a80);_0x5a40ab||(_0x5a40ab=new Map(),this[_0x100423(0x19f)]['set'](_0x4b6a80,_0x5a40ab));let _0x12dc88=_0x5a40ab[_0x100423(0x190)](_0x4b9af7);return _0x12dc88||(_0x12dc88=new T(),_0x5a40ab['set'](_0x4b9af7,_0x12dc88)),_0x12dc88;}['insertShape'](_0x21ce5c,_0x49fe53,_0x1b4106,_0x171cbc,_0x2cd4c0){const _0x38cb77=_0x5484a7;this[_0x38cb77(0x179)](_0x21ce5c,_0x49fe53)['addShape'](_0x1b4106,_0x171cbc,_0x2cd4c0);}[_0x5484a7(0x1b5)](_0xbb8dfc,_0x3b7fc9,_0x480964){const _0x1d2f7f=_0x5484a7;this['_ensureShapeModelManager'](_0xbb8dfc,_0x3b7fc9)[_0x1d2f7f(0x1b5)](_0x480964);}[_0x5484a7(0x186)](_0x52d495,_0x460604,_0x4b7e5d){const _0x3add13=_0x5484a7;return this[_0x3add13(0x179)](_0x52d495,_0x460604)[_0x3add13(0x17a)](_0x4b7e5d);}[_0x5484a7(0x17a)](_0xcfdf0f,_0x323688,_0x3cf854){const _0x2461bd=_0x5484a7;return this['_ensureShapeModelManager'](_0xcfdf0f,_0x323688)[_0x2461bd(0x17a)](_0x3cf854);}[_0x5484a7(0x180)](_0x4c8ecd,_0x42c8a1,_0x342e6b){return this['_ensureShapeModelManager'](_0x4c8ecd,_0x42c8a1)['hasShape'](_0x342e6b);}[_0x5484a7(0x1b6)](_0x21ac25,_0x27a265,_0x3f3881){const _0x217483=_0x5484a7;return this[_0x217483(0x179)](_0x21ac25,_0x27a265)[_0x217483(0x17a)](_0x3f3881);}['getShapeDataById'](_0xadd018,_0x2a7703,_0x4dc936){const _0x415271=_0x5484a7,_0x3ef2c=this[_0x415271(0x179)](_0xadd018,_0x2a7703);if(!_0x3ef2c[_0x415271(0x17a)](_0x4dc936))return;const _0x6715d0=_0x3ef2c[_0x415271(0x1b7)][_0x415271(0x190)](_0x4dc936);if(_0x6715d0)return _0x6715d0[_0x415271(0x19b)]();}[_0x5484a7(0x19d)](_0xf2719,_0xb4631d,_0x553b32){const _0xa57aaa=_0x5484a7;return this[_0xa57aaa(0x179)](_0xf2719,_0xb4631d)['_shapes']['get'](_0x553b32);}[_0x5484a7(0x177)](_0x5d547d,_0x564ead,_0x1af1b7){const _0xa86de1=_0x5484a7;return this[_0xa86de1(0x179)](_0x5d547d,_0x564ead)['getBasicShapeRelation'](_0x1af1b7);}[_0x5484a7(0x1b8)](_0x4ffeea,_0xc99d3b,_0x5861ef){const _0x101b06=_0x5484a7,_0x2f172d=this[_0x101b06(0x179)](_0x4ffeea,_0xc99d3b)[_0x101b06(0x1b7)]['get'](_0x5861ef);if(_0x2f172d)return _0x2f172d[_0x101b06(0x1ac)]();}['setShapeType'](){}[_0x5484a7(0x1a9)](_0x11d836){const _0x3d9fd8=_0x5484a7,_0x51b0de={},_0x54c2f3=this['_shapeModelManagerMap'][_0x3d9fd8(0x190)](_0x11d836);return _0x54c2f3&&_0x54c2f3[_0x3d9fd8(0x1ab)]((_0x31f174,_0x5f1faf)=>{_0x51b0de[_0x5f1faf]=_0x31f174['toJSON']();}),JSON[_0x3d9fd8(0x17d)](_0x51b0de);}['_deserializeShapeForUnit'](_0x3ba1e0,_0x3a32d9){const _0x20c7d6=_0x5484a7;Object[_0x20c7d6(0x1a8)](_0x3a32d9)[_0x20c7d6(0x1ab)](_0xc68d26=>{const _0x1e9202=_0x20c7d6;this[_0x1e9202(0x179)](_0x3ba1e0,_0xc68d26)[_0x1e9202(0x199)](_0x3a32d9[_0xc68d26]);});}[_0x5484a7(0x1a0)](){const _0x3f950c=_0x5484a7,_0xdb1cf={};return this[_0x3f950c(0x19f)][_0x3f950c(0x1ab)]((_0x394323,_0x4e55a9)=>{const _0x2d7c7b=_0x3f950c;_0xdb1cf[_0x4e55a9]={},_0x394323[_0x2d7c7b(0x1ab)]((_0x363a79,_0x4d3fcb)=>{const _0x53ce35=_0x2d7c7b;_0xdb1cf[_0x4e55a9][_0x4d3fcb]=_0x363a79[_0x53ce35(0x1a0)]();});}),_0xdb1cf;}[_0x5484a7(0x199)](_0x1d275e){const _0x4ef4c9=_0x5484a7;Object[_0x4ef4c9(0x1a8)](_0x1d275e)[_0x4ef4c9(0x1ab)](_0x548fc4=>{const _0x5a60a6=_0x4ef4c9,_0x212df4=_0x1d275e[_0x548fc4];Object[_0x5a60a6(0x1a8)](_0x212df4)[_0x5a60a6(0x1ab)](_0x475c27=>{const _0x40225e=_0x5a60a6;this[_0x40225e(0x179)](_0x548fc4,_0x475c27)[_0x40225e(0x199)](_0x212df4[_0x475c27]);});});}[_0x5484a7(0x173)](){const _0x236c48=_0x5484a7;this[_0x236c48(0x192)][_0x236c48(0x16a)]({'pluginName':W,'businesses':[_0x1791e7[_0x236c48(0x172)]],'toJson':_0x156aa8=>this['_serializeShapeForUnit'](_0x156aa8),'parseJson':_0xe3bdf1=>JSON[_0x236c48(0x16b)](_0xe3bdf1),'onLoad':(_0x51a9e6,_0x219321)=>{const _0x2a8d69=_0x236c48;this[_0x2a8d69(0x187)](_0x51a9e6,_0x219321);},'onUnLoad':_0x56d7f7=>{const _0x252f5c=_0x236c48,_0x277ac6=this['_shapeModelManagerMap'][_0x252f5c(0x190)](_0x56d7f7);_0x277ac6&&(_0x277ac6[_0x252f5c(0x1ab)](_0x5b2c87=>{_0x5b2c87['dispose']();}),this['_shapeModelManagerMap'][_0x252f5c(0x193)](_0x56d7f7));}});}[_0x5484a7(0x19a)](){const _0x300fdb=_0x5484a7;this[_0x300fdb(0x19f)][_0x300fdb(0x1ab)](_0x18ac97=>{const _0x411960=_0x300fdb;_0x18ac97[_0x411960(0x1ab)](_0x17ba38=>{const _0x42318b=_0x411960;_0x17ba38[_0x42318b(0x19a)]();});});}};i=V([K(0x0,_0xfb96d4)],i);const u={'id':'sheet.mutation.update-shape-type','type':_0x3e44b9['MUTATION'],'handler':(_0x2ef8ee,_0x1627fc)=>{const _0x392e91=_0x5484a7,{unitId:_0x28fd7b,subUnitId:_0x2a40e7,shapeType:_0x18fc9d,shapeId:_0x565bb5,shapeData:_0x2bfc3a}=_0x1627fc,_0x353560=_0x2ef8ee[_0x392e91(0x190)](i)[_0x392e91(0x19d)](_0x28fd7b,_0x2a40e7,_0x565bb5);return _0x353560&&(_0x353560[_0x392e91(0x175)](_0x18fc9d),_0x2bfc3a&&(_0x353560==null||_0x353560[_0x392e91(0x176)](_0x2bfc3a))),!0x0;}},pe={'id':_0x5484a7(0x182),'type':_0x3e44b9[_0x5484a7(0x19e)],'handler':(_0x10eb92,_0x10b5b5)=>{const _0x166da3=_0x5484a7;if(!_0x10b5b5)return!0x1;const _0x43c5cd=_0x10eb92[_0x166da3(0x190)](_0x5c5b2b),_0x2aaf2f=_0x10eb92[_0x166da3(0x190)](i),_0x27b118=_0x10eb92[_0x166da3(0x190)](_0x22d773),_0x2e151f=[],_0x3bd88c=[],{unitId:_0x186ab1,subUnitId:_0x29dcd3,shapeId:_0x1b57ce,shapeType:_0x5bfbd7,shapeData:_0x5b3f9a}=_0x10b5b5,_0x451da3=_0x2aaf2f[_0x166da3(0x19d)](_0x186ab1,_0x29dcd3,_0x1b57ce);if(_0x451da3){const _0x41f2ab=_0x451da3['getShapeType'](),_0x15ceb5=Object['assign']({},_0x451da3[_0x166da3(0x19b)]()),_0x207375={'unitId':_0x186ab1,'subUnitId':_0x29dcd3,'shapeId':_0x1b57ce,'shapeType':_0x5bfbd7,'shapeData':_0x5b3f9a},_0x5ec5ef={'unitId':_0x186ab1,'subUnitId':_0x29dcd3,'shapeId':_0x1b57ce,'shapeType':_0x41f2ab,'shapeData':_0x15ceb5};return _0x2e151f[_0x166da3(0x19c)]({'id':u['id'],'params':_0x207375}),_0x3bd88c['push']({'id':u['id'],'params':_0x5ec5ef}),_0x2e151f[_0x166da3(0x183)](_0x24cced=>_0x43c5cd[_0x166da3(0x1a7)](_0x24cced['id'],_0x24cced[_0x166da3(0x18c)]))&&_0x27b118[_0x166da3(0x17b)]({'unitID':_0x186ab1,'redoMutations':[..._0x2e151f],'undoMutations':[..._0x3bd88c]}),!0x0;}return!0x1;}},Y={'id':'sheet.mutation.insert-shape','type':_0x3e44b9['MUTATION'],'handler':(_0x472274,_0x4c3942)=>{const _0x39d78c=_0x5484a7,{unitId:_0x13c95d,subUnitId:_0x3834b7,shapeType:_0x3a4235,shapeId:_0x2ca697,shapeData:_0x52c544}=_0x4c3942;return _0x472274[_0x39d78c(0x190)](i)[_0x39d78c(0x1ad)](_0x13c95d,_0x3834b7,_0x3a4235,_0x2ca697,_0x52c544),!0x0;}},q={'id':_0x5484a7(0x174),'type':_0x3e44b9['MUTATION'],'handler':(_0x9e368d,_0xb67243)=>{const _0x178b0e=_0x5484a7,{unitId:_0x1e5373,subUnitId:_0x2264e2,shapeId:_0x22c6bd}=_0xb67243;return _0x9e368d[_0x178b0e(0x190)](i)[_0x178b0e(0x1b5)](_0x1e5373,_0x2264e2,_0x22c6bd),!0x0;}},Q={'id':'sheet.mutation.update-shape-data','type':_0x3e44b9['MUTATION'],'handler':(_0x21b6b3,_0x1603f5)=>{const _0x188291=_0x5484a7,{unitId:_0x20a699,subUnitId:_0x10c123,shapeType:_0x1dd402,shapeId:_0x21056c,shapeData:_0x2077d5}=_0x1603f5,_0x580e2a=_0x21b6b3[_0x188291(0x190)](i)[_0x188291(0x19d)](_0x20a699,_0x10c123,_0x21056c);return _0x580e2a&&(_0x1dd402!==void 0x0&&_0x580e2a[_0x188291(0x175)](_0x1dd402),_0x2077d5&&(_0x580e2a==null||_0x580e2a[_0x188291(0x176)](_0x2077d5,!0x0))),!0x0;}},X=_0x5484a7(0x197),m={};var Z=Object[_0x5484a7(0x178)],k=Object[_0x5484a7(0x1ae)],ee=(_0x5bae1e,_0x1836ff,_0x22034d)=>_0x1836ff in _0x5bae1e?Z(_0x5bae1e,_0x1836ff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22034d}):_0x5bae1e[_0x1836ff]=_0x22034d,ae=(_0x245025,_0x471ea7,_0x3b436d,_0xa4736d)=>{const _0x2d8427=_0x5484a7;for(var _0x4e712f=_0xa4736d>0x1?void 0x0:_0xa4736d?k(_0x471ea7,_0x3b436d):_0x471ea7,_0x47829a=_0x245025[_0x2d8427(0x18e)]-0x1,_0x4f0d42;_0x47829a>=0x0;_0x47829a--)(_0x4f0d42=_0x245025[_0x47829a])&&(_0x4e712f=_0x4f0d42(_0x4e712f)||_0x4e712f);return _0x4e712f;},g=(_0x3e6958,_0x3fee72)=>(_0x3d5f5b,_0x23131d)=>_0x3fee72(_0x3d5f5b,_0x23131d,_0x3e6958),E=(_0x32c9d1,_0x3bbbb8,_0x1eda98)=>ee(_0x32c9d1,typeof _0x3bbbb8!=_0x5484a7(0x1a5)?_0x3bbbb8+'':_0x3bbbb8,_0x1eda98);const se='SHEET_SHAPE_PLUGIN';let S=class extends _0xa33e95{constructor(_0xfcf7dc=m,_0x5e99dd,_0x37305d,_0x58324b){const _0x324889=_0x5484a7;super(),this['_config']=_0xfcf7dc,this[_0x324889(0x1aa)]=_0x5e99dd,this['_commandService']=_0x37305d,this[_0x324889(0x184)]=_0x58324b;const {..._0x497b9c}=_0xfa4b98({},m,this[_0x324889(0x18f)]);this[_0x324889(0x184)][_0x324889(0x1b4)](X,_0x497b9c),this[_0x324889(0x185)]();}[_0x5484a7(0x171)](){const _0x444c72=_0x5484a7;_0x1fc7ee(this[_0x444c72(0x1aa)],[]);}[_0x5484a7(0x198)](){const _0x255190=_0x5484a7,_0x48559f=this[_0x255190(0x1aa)];[[T],[i]][_0x255190(0x1ab)](_0x44d62d=>_0x48559f[_0x255190(0x1b0)](_0x44d62d));}[_0x5484a7(0x185)](){const _0x34c94a=_0x5484a7;[Y,q,u,Q][_0x34c94a(0x1ab)](_0x4e99a3=>this[_0x34c94a(0x16e)](this[_0x34c94a(0x194)][_0x34c94a(0x195)](_0x4e99a3)));}};E(S,_0x5484a7(0x16d),_0x1791e7['UNIVER_SHEET']),E(S,_0x5484a7(0x170),se),S=ae([_0x502eab(_0x3b4c6e),g(0x1,_0x546027(_0x58fdc6)),g(0x2,_0x5c5b2b),g(0x3,_0x499a85)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
1
+ const _0x32aef0=_0x57ee;(function(_0x8501d4,_0x4323bf){const _0x2da121=_0x57ee,_0x4bd264=_0x8501d4();while(!![]){try{const _0x429e75=parseInt(_0x2da121(0xde))/0x1+parseInt(_0x2da121(0xdc))/0x2*(parseInt(_0x2da121(0xd9))/0x3)+parseInt(_0x2da121(0xd2))/0x4+parseInt(_0x2da121(0x107))/0x5*(-parseInt(_0x2da121(0xf1))/0x6)+parseInt(_0x2da121(0xe4))/0x7*(-parseInt(_0x2da121(0xc4))/0x8)+-parseInt(_0x2da121(0xda))/0x9+parseInt(_0x2da121(0xce))/0xa;if(_0x429e75===_0x4323bf)break;else _0x4bd264['push'](_0x4bd264['shift']());}catch(_0x463e08){_0x4bd264['push'](_0x4bd264['shift']());}}}(_0x3e5c,0xad443));var R=Object[_0x32aef0(0xc2)],C=(_0x553e93,_0x2c3e58,_0xc1f51b)=>_0x2c3e58 in _0x553e93?R(_0x553e93,_0x2c3e58,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc1f51b}):_0x553e93[_0x2c3e58]=_0xc1f51b,d=(_0x3092ee,_0x31d5bd,_0x2f0751)=>C(_0x3092ee,typeof _0x31d5bd!='symbol'?_0x31d5bd+'':_0x31d5bd,_0x2f0751);import{Disposable as _0x1b7929,UniverInstanceType as _0x3c491f,IResourceManagerService as _0x2d4a9e,CommandType as _0x410a5c,ICommandService as _0x551765,IUndoRedoService as _0x3f436f,DependentOn as _0x599e8b,Inject as _0x4120bf,Injector as _0x2af51e,Plugin as _0x45c26e,merge as _0x294386,touchDependencies as _0x21ab27,IConfigService as _0x262b41}from'@univerjs/core';import{ShapeModel as _0x28cf4a,isConnectorShape as _0x4c3174}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x496812}from'@univerjs-pro/license';class T extends _0x1b7929{constructor(){const _0x399c81=_0x32aef0;super(),d(this,_0x399c81(0xcd),new Map()),d(this,_0x399c81(0xc6),new Set()),d(this,_0x399c81(0xf7),new Set());}[_0x32aef0(0xd7)](_0x43b3a8,_0x469af8,_0x4c4c2c){const _0x45a353=_0x32aef0,_0x504adc=new _0x28cf4a(_0x43b3a8,_0x469af8,_0x4c4c2c);return this[_0x45a353(0xcd)]['set'](_0x469af8,_0x504adc),_0x4c3174(_0x43b3a8)&&this[_0x45a353(0xc6)][_0x45a353(0xcc)](_0x469af8),_0x504adc;}[_0x32aef0(0xe9)](_0x567f5a){const _0x1d1b4a=_0x32aef0;var _0x59a6d7,_0x14089f;const _0x3ad33e=[];for(const _0x111c2d of this[_0x1d1b4a(0xc6)]){const _0x8cee8c=this['_shapes']['get'](_0x111c2d);if(_0x8cee8c){const _0xad45c8=_0x8cee8c[_0x1d1b4a(0xcf)]();_0xad45c8&&(((_0x59a6d7=_0xad45c8['from'])==null?void 0x0:_0x59a6d7['shapeId'])===_0x567f5a&&_0x3ad33e[_0x1d1b4a(0xff)]({..._0xad45c8['from'],'lineShapeId':_0x111c2d,'isFrom':!0x0}),((_0x14089f=_0xad45c8['to'])==null?void 0x0:_0x14089f['shapeId'])===_0x567f5a&&_0x3ad33e[_0x1d1b4a(0xff)]({..._0xad45c8['to'],'lineShapeId':_0x111c2d,'isFrom':!0x1}));}}return _0x3ad33e;}[_0x32aef0(0xc7)](_0x5a8035){const _0x53c984=_0x32aef0,_0x3d4d07=this['_shapes'][_0x53c984(0xdb)](_0x5a8035);if(_0x3d4d07)return _0x3d4d07[_0x53c984(0xcf)]();}[_0x32aef0(0x101)](_0x588807){const _0x315f94=_0x32aef0,_0x29654f=this[_0x315f94(0xcd)][_0x315f94(0xdb)](_0x588807);if(_0x29654f)return _0x29654f[_0x315f94(0x101)]();}[_0x32aef0(0x108)](_0x377110){const _0x5432ad=_0x32aef0;return this[_0x5432ad(0xcd)][_0x5432ad(0xe8)](_0x377110);}[_0x32aef0(0xc8)](_0x2bb546){const _0x3ebad0=_0x32aef0,_0x17de21=this['_shapes']['get'](_0x2bb546);_0x17de21&&(_0x4c3174(_0x17de21[_0x3ebad0(0x101)]())&&this[_0x3ebad0(0xc6)][_0x3ebad0(0xf8)](_0x2bb546),this[_0x3ebad0(0xcd)][_0x3ebad0(0xf8)](_0x2bb546));}[_0x32aef0(0xe2)](){const _0x4fe235=_0x32aef0,_0x4d3db8=[];return this[_0x4fe235(0xcd)][_0x4fe235(0xca)](_0xab0f10=>{const _0x46c330=_0x4fe235;_0x4d3db8[_0x46c330(0xff)](_0xab0f10[_0x46c330(0xe2)]());}),_0x4d3db8;}['fromJSON'](_0x3db539){const _0x3404f2=_0x32aef0;for(const _0x5f3e91 of _0x3db539){const {id:_0x379eef,shapeType:_0x2747a8}=_0x5f3e91,_0x4403bc=this['addShape'](_0x2747a8,_0x379eef,_0x5f3e91['shapeData']);_0x4403bc&&_0x4403bc['isLineShape']()&&this[_0x3404f2(0xc6)][_0x3404f2(0xcc)](_0x379eef);}}[_0x32aef0(0xcb)](){const _0x235fc5=_0x32aef0;this[_0x235fc5(0xe6)]||(this[_0x235fc5(0xcd)][_0x235fc5(0xca)](_0x203d7b=>{_0x203d7b['dispose']();}),this[_0x235fc5(0xcd)][_0x235fc5(0xf6)](),this[_0x235fc5(0xc6)][_0x235fc5(0xf6)](),this[_0x235fc5(0xf7)][_0x235fc5(0xf6)](),super[_0x235fc5(0xcb)]());}}var $=Object['getOwnPropertyDescriptor'],V=(_0x384a3b,_0x45b26b,_0x4a396e,_0x24160e)=>{const _0x4b8861=_0x32aef0;for(var _0x1d704b=_0x24160e>0x1?void 0x0:_0x24160e?$(_0x45b26b,_0x4a396e):_0x45b26b,_0x8b0fc=_0x384a3b[_0x4b8861(0xf5)]-0x1,_0x555b4b;_0x8b0fc>=0x0;_0x8b0fc--)(_0x555b4b=_0x384a3b[_0x8b0fc])&&(_0x1d704b=_0x555b4b(_0x1d704b)||_0x1d704b);return _0x1d704b;},K=(_0x23b593,_0x58f14b)=>(_0x1b64c7,_0x28f4d5)=>_0x58f14b(_0x1b64c7,_0x28f4d5,_0x23b593);function _0x3e5c(){const _0x1d27ea=['8YDBklV','sheet.mutation.insert-shape','_linesIds','getLineShapeRelation','removeShape','_initSnapshot','forEach','dispose','add','_shapes','23541900fidpoa','getShapeRelation','assign','parse','2630268mcRwyh','symbol','_shapeModelManagerMap','insertShape','stringify','addShape','MUTATION','1647VWrLgW','8643582hUXiqH','get','946KZHwLe','registerPluginResource','219918ElgolZ','type','_deserializeShapeForUnit','keys','toJSON','fromJSON','6610779qxKggs','setShapeType','_disposed','COMMAND','has','getBasicShapeRelation','UNIVER_SHEET','setShapeData','_initCommands','_ensureShapeModelManager','params','getShapeData','getBasicShapeType','36DOwkaR','set','onStarting','sheet.mutation.update-shape-data','length','clear','_groupIds','delete','SHEET_SHAPE_PLUGIN','_commandService','sheet.mutation.remove-shape','setConfig','every','getShapeTypeById','push','onRendered','getShapeType','_serializeShapeForUnit','_injector','_resourcesManagerService','getShapeDataById','disposeWithMe','730715OYOBYw','hasShape','_configService','sheet.mutation.update-shape-type','getShapeModel','syncExecuteCommand','sheets-shape.config','defineProperty','_config'];_0x3e5c=function(){return _0x1d27ea;};return _0x3e5c();}const W=_0x32aef0(0xf9);let i=class extends _0x1b7929{constructor(_0x3ccba5){const _0x4ce6c2=_0x32aef0;super(),d(this,_0x4ce6c2(0xd4),new Map()),(this[_0x4ce6c2(0x104)]=_0x3ccba5,this['_initSnapshot']());}[_0x32aef0(0xed)](_0x4e898d,_0x382c6d){const _0x4a2b00=_0x32aef0;let _0x198b6a=this['_shapeModelManagerMap'][_0x4a2b00(0xdb)](_0x4e898d);_0x198b6a||(_0x198b6a=new Map(),this[_0x4a2b00(0xd4)]['set'](_0x4e898d,_0x198b6a));let _0x3e8260=_0x198b6a['get'](_0x382c6d);return _0x3e8260||(_0x3e8260=new T(),_0x198b6a[_0x4a2b00(0xf2)](_0x382c6d,_0x3e8260)),_0x3e8260;}['insertShape'](_0x16ae95,_0x1c10d7,_0x41d3bd,_0x41b08a,_0x1464b6){const _0x4edcb6=_0x32aef0;this[_0x4edcb6(0xed)](_0x16ae95,_0x1c10d7)[_0x4edcb6(0xd7)](_0x41d3bd,_0x41b08a,_0x1464b6);}[_0x32aef0(0xc8)](_0x1dc442,_0x37b7f6,_0x2c6647){const _0x8915c=_0x32aef0;this[_0x8915c(0xed)](_0x1dc442,_0x37b7f6)[_0x8915c(0xc8)](_0x2c6647);}[_0x32aef0(0xf0)](_0x5f57ca,_0x1a5805,_0x22ae27){return this['_ensureShapeModelManager'](_0x5f57ca,_0x1a5805)['getShapeType'](_0x22ae27);}[_0x32aef0(0x101)](_0x69cfb8,_0x5d415e,_0x1c40d1){const _0x3c6006=_0x32aef0;return this[_0x3c6006(0xed)](_0x69cfb8,_0x5d415e)[_0x3c6006(0x101)](_0x1c40d1);}[_0x32aef0(0x108)](_0x5d56cb,_0x113a57,_0x34bd93){const _0x155279=_0x32aef0;return this[_0x155279(0xed)](_0x5d56cb,_0x113a57)[_0x155279(0x108)](_0x34bd93);}[_0x32aef0(0xfe)](_0x466c2a,_0x27c6fd,_0xbcd9c3){return this['_ensureShapeModelManager'](_0x466c2a,_0x27c6fd)['getShapeType'](_0xbcd9c3);}[_0x32aef0(0x105)](_0x569831,_0x542d0d,_0x3247c5){const _0x8196d2=_0x32aef0,_0x32595a=this[_0x8196d2(0xed)](_0x569831,_0x542d0d);if(!_0x32595a[_0x8196d2(0x101)](_0x3247c5))return;const _0x1154ef=_0x32595a[_0x8196d2(0xcd)][_0x8196d2(0xdb)](_0x3247c5);if(_0x1154ef)return _0x1154ef[_0x8196d2(0xef)]();}[_0x32aef0(0x10b)](_0x5641fd,_0x26dcb0,_0xd8e4a8){const _0x34937f=_0x32aef0;return this['_ensureShapeModelManager'](_0x5641fd,_0x26dcb0)[_0x34937f(0xcd)][_0x34937f(0xdb)](_0xd8e4a8);}['getBasicShapeRelation'](_0x170aea,_0x3cf063,_0x3c2d57){const _0x3e8d2d=_0x32aef0;return this[_0x3e8d2d(0xed)](_0x170aea,_0x3cf063)[_0x3e8d2d(0xe9)](_0x3c2d57);}[_0x32aef0(0xc7)](_0x3f5673,_0x34c5b6,_0x21994b){const _0xe51766=_0x32aef0,_0x4668d0=this['_ensureShapeModelManager'](_0x3f5673,_0x34c5b6)[_0xe51766(0xcd)][_0xe51766(0xdb)](_0x21994b);if(_0x4668d0)return _0x4668d0[_0xe51766(0xcf)]();}['setShapeType'](){}[_0x32aef0(0x102)](_0x509e44){const _0x440670=_0x32aef0,_0x4fc88c={},_0x2d5290=this[_0x440670(0xd4)][_0x440670(0xdb)](_0x509e44);return _0x2d5290&&_0x2d5290[_0x440670(0xca)]((_0x27bba1,_0x9ccdb9)=>{const _0x36b165=_0x440670;_0x4fc88c[_0x9ccdb9]=_0x27bba1[_0x36b165(0xe2)]();}),JSON[_0x440670(0xd6)](_0x4fc88c);}[_0x32aef0(0xe0)](_0x5ea173,_0x4bb146){const _0x49feec=_0x32aef0;Object[_0x49feec(0xe1)](_0x4bb146)[_0x49feec(0xca)](_0x33e5d6=>{const _0x21b46b=_0x49feec;this['_ensureShapeModelManager'](_0x5ea173,_0x33e5d6)[_0x21b46b(0xe3)](_0x4bb146[_0x33e5d6]);});}[_0x32aef0(0xe2)](){const _0x5e8782=_0x32aef0,_0x50786c={};return this[_0x5e8782(0xd4)]['forEach']((_0x1d3999,_0x21bde4)=>{_0x50786c[_0x21bde4]={},_0x1d3999['forEach']((_0x2c5e79,_0x2138cd)=>{const _0x374e97=_0x57ee;_0x50786c[_0x21bde4][_0x2138cd]=_0x2c5e79[_0x374e97(0xe2)]();});}),_0x50786c;}[_0x32aef0(0xe3)](_0x1d28ff){const _0x250624=_0x32aef0;Object['keys'](_0x1d28ff)[_0x250624(0xca)](_0x34a2b5=>{const _0x423810=_0x250624,_0x35763f=_0x1d28ff[_0x34a2b5];Object[_0x423810(0xe1)](_0x35763f)['forEach'](_0x52d1c9=>{const _0x42e564=_0x423810;this[_0x42e564(0xed)](_0x34a2b5,_0x52d1c9)['fromJSON'](_0x35763f[_0x52d1c9]);});});}[_0x32aef0(0xc9)](){const _0x2f25ce=_0x32aef0;this[_0x2f25ce(0x104)][_0x2f25ce(0xdd)]({'pluginName':W,'businesses':[_0x3c491f['UNIVER_SHEET']],'toJson':_0xf6464d=>this[_0x2f25ce(0x102)](_0xf6464d),'parseJson':_0xc14b0b=>JSON[_0x2f25ce(0xd1)](_0xc14b0b),'onLoad':(_0x3a3a55,_0x110155)=>{const _0x377bbe=_0x2f25ce;this[_0x377bbe(0xe0)](_0x3a3a55,_0x110155);},'onUnLoad':_0x5e1cc3=>{const _0x46fdee=_0x2f25ce,_0x279c43=this[_0x46fdee(0xd4)]['get'](_0x5e1cc3);_0x279c43&&(_0x279c43['forEach'](_0x265f76=>{_0x265f76['dispose']();}),this['_shapeModelManagerMap'][_0x46fdee(0xf8)](_0x5e1cc3));}});}['dispose'](){const _0x5cf42c=_0x32aef0;this[_0x5cf42c(0xd4)][_0x5cf42c(0xca)](_0x2848fe=>{_0x2848fe['forEach'](_0x4bef1a=>{const _0x77c65f=_0x57ee;_0x4bef1a[_0x77c65f(0xcb)]();});});}};i=V([K(0x0,_0x2d4a9e)],i);const u={'id':_0x32aef0(0x10a),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x13ffb3,_0x4890f0)=>{const _0x457edd=_0x32aef0,{unitId:_0x24facf,subUnitId:_0x29fe74,shapeType:_0x3d7675,shapeId:_0x2d6892,shapeData:_0x1aecc4}=_0x4890f0,_0x533b3b=_0x13ffb3['get'](i)[_0x457edd(0x10b)](_0x24facf,_0x29fe74,_0x2d6892);return _0x533b3b&&(_0x533b3b[_0x457edd(0xe5)](_0x3d7675),_0x1aecc4&&(_0x533b3b==null||_0x533b3b[_0x457edd(0xeb)](_0x1aecc4))),!0x0;}},pe={'id':'sheet.command.update-shape-type','type':_0x410a5c[_0x32aef0(0xe7)],'handler':(_0x25b8ba,_0x5264db)=>{const _0x2b44b7=_0x32aef0;if(!_0x5264db)return!0x1;const _0x450707=_0x25b8ba[_0x2b44b7(0xdb)](_0x551765),_0x36223c=_0x25b8ba[_0x2b44b7(0xdb)](i),_0x150224=_0x25b8ba[_0x2b44b7(0xdb)](_0x3f436f),_0x319688=[],_0x28df01=[],{unitId:_0x28a48c,subUnitId:_0xe605e1,shapeId:_0x384512,shapeType:_0x1f874f,shapeData:_0x248948}=_0x5264db,_0x28b8bd=_0x36223c[_0x2b44b7(0x10b)](_0x28a48c,_0xe605e1,_0x384512);if(_0x28b8bd){const _0x29001f=_0x28b8bd[_0x2b44b7(0x101)](),_0x524e61=Object[_0x2b44b7(0xd0)]({},_0x28b8bd['getShapeData']()),_0x26ad02={'unitId':_0x28a48c,'subUnitId':_0xe605e1,'shapeId':_0x384512,'shapeType':_0x1f874f,'shapeData':_0x248948},_0x4993c5={'unitId':_0x28a48c,'subUnitId':_0xe605e1,'shapeId':_0x384512,'shapeType':_0x29001f,'shapeData':_0x524e61};return _0x319688[_0x2b44b7(0xff)]({'id':u['id'],'params':_0x26ad02}),_0x28df01[_0x2b44b7(0xff)]({'id':u['id'],'params':_0x4993c5}),_0x319688[_0x2b44b7(0xfd)](_0x6e6549=>_0x450707[_0x2b44b7(0x10c)](_0x6e6549['id'],_0x6e6549[_0x2b44b7(0xee)]))&&_0x150224['pushUndoRedo']({'unitID':_0x28a48c,'redoMutations':[..._0x319688],'undoMutations':[..._0x28df01]}),!0x0;}return!0x1;}},Y={'id':_0x32aef0(0xc5),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x451a8e,_0x2573d1)=>{const _0x5d51be=_0x32aef0,{unitId:_0x12a98a,subUnitId:_0x399d82,shapeType:_0x2df3df,shapeId:_0x1adaed,shapeData:_0x2a69cc}=_0x2573d1;return _0x451a8e['get'](i)[_0x5d51be(0xd5)](_0x12a98a,_0x399d82,_0x2df3df,_0x1adaed,_0x2a69cc),!0x0;}},q={'id':_0x32aef0(0xfb),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x3f7067,_0x580ce4)=>{const _0x178f5d=_0x32aef0,{unitId:_0xcaec98,subUnitId:_0x39b507,shapeId:_0x3e1cfc}=_0x580ce4;return _0x3f7067[_0x178f5d(0xdb)](i)['removeShape'](_0xcaec98,_0x39b507,_0x3e1cfc),!0x0;}},Q={'id':_0x32aef0(0xf4),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x30c1d5,_0x509190)=>{const _0x18de6d=_0x32aef0,{unitId:_0x2f44cd,subUnitId:_0x1ef2d8,shapeType:_0x20ec7b,shapeId:_0x51fd96,shapeData:_0x4f1f1f}=_0x509190,_0x538c9a=_0x30c1d5[_0x18de6d(0xdb)](i)['getShapeModel'](_0x2f44cd,_0x1ef2d8,_0x51fd96);return _0x538c9a&&(_0x20ec7b!==void 0x0&&_0x538c9a['setShapeType'](_0x20ec7b),_0x4f1f1f&&(_0x538c9a==null||_0x538c9a['setShapeData'](_0x4f1f1f,!0x0))),!0x0;}},X=_0x32aef0(0x10d),m={};var Z=Object['defineProperty'],k=Object['getOwnPropertyDescriptor'],ee=(_0x3da2e4,_0x229cea,_0x51bd15)=>_0x229cea in _0x3da2e4?Z(_0x3da2e4,_0x229cea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51bd15}):_0x3da2e4[_0x229cea]=_0x51bd15,ae=(_0x474b1d,_0x520a1d,_0x4e4569,_0x21bd16)=>{const _0x226701=_0x32aef0;for(var _0x3bd911=_0x21bd16>0x1?void 0x0:_0x21bd16?k(_0x520a1d,_0x4e4569):_0x520a1d,_0x3fe082=_0x474b1d[_0x226701(0xf5)]-0x1,_0x16eeb3;_0x3fe082>=0x0;_0x3fe082--)(_0x16eeb3=_0x474b1d[_0x3fe082])&&(_0x3bd911=_0x16eeb3(_0x3bd911)||_0x3bd911);return _0x3bd911;},g=(_0x68e634,_0x54b9db)=>(_0x242723,_0x328e89)=>_0x54b9db(_0x242723,_0x328e89,_0x68e634),E=(_0x44e15b,_0x2c6f78,_0x1a9adb)=>ee(_0x44e15b,typeof _0x2c6f78!=_0x32aef0(0xd3)?_0x2c6f78+'':_0x2c6f78,_0x1a9adb);const se=_0x32aef0(0xf9);function _0x57ee(_0x529e01,_0x39af73){_0x529e01=_0x529e01-0xc2;const _0x3e5c70=_0x3e5c();let _0x57ee83=_0x3e5c70[_0x529e01];return _0x57ee83;}let S=class extends _0x45c26e{constructor(_0x13cd77=m,_0x23e8e5,_0x2d070d,_0x5469bb){const _0x5f19f3=_0x32aef0;super(),this[_0x5f19f3(0xc3)]=_0x13cd77,this['_injector']=_0x23e8e5,this['_commandService']=_0x2d070d,this[_0x5f19f3(0x109)]=_0x5469bb;const {..._0x204786}=_0x294386({},m,this[_0x5f19f3(0xc3)]);this[_0x5f19f3(0x109)][_0x5f19f3(0xfc)](X,_0x204786),this[_0x5f19f3(0xec)]();}[_0x32aef0(0x100)](){const _0x192bbc=_0x32aef0;_0x21ab27(this[_0x192bbc(0x103)],[]);}[_0x32aef0(0xf3)](){const _0x177c3c=_0x32aef0,_0x5ef7df=this[_0x177c3c(0x103)];[[T],[i]][_0x177c3c(0xca)](_0x36f25e=>_0x5ef7df['add'](_0x36f25e));}[_0x32aef0(0xec)](){const _0x6740ff=_0x32aef0;[Y,q,u,Q][_0x6740ff(0xca)](_0x4720d1=>this[_0x6740ff(0x106)](this[_0x6740ff(0xfa)]['registerCommand'](_0x4720d1)));}};E(S,_0x32aef0(0xdf),_0x3c491f[_0x32aef0(0xea)]),E(S,'pluginName',se),S=ae([_0x599e8b(_0x496812),g(0x1,_0x4120bf(_0x2af51e)),g(0x2,_0x551765),g(0x3,_0x262b41)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x53c5(_0x142596,_0x3e65ba){_0x142596=_0x142596-0x16a;const _0x202ae0=_0x202a();let _0x53c5b8=_0x202ae0[_0x142596];return _0x53c5b8;}const _0x5484a7=_0x53c5;(function(_0x13dc11,_0x23de19){const _0xdd380d=_0x53c5,_0x2f29ee=_0x13dc11();while(!![]){try{const _0x313a74=parseInt(_0xdd380d(0x17f))/0x1*(parseInt(_0xdd380d(0x1b1))/0x2)+-parseInt(_0xdd380d(0x1af))/0x3*(-parseInt(_0xdd380d(0x16f))/0x4)+parseInt(_0xdd380d(0x189))/0x5*(-parseInt(_0xdd380d(0x1a1))/0x6)+-parseInt(_0xdd380d(0x188))/0x7*(parseInt(_0xdd380d(0x181))/0x8)+-parseInt(_0xdd380d(0x17c))/0x9*(-parseInt(_0xdd380d(0x1b3))/0xa)+-parseInt(_0xdd380d(0x1a2))/0xb+-parseInt(_0xdd380d(0x191))/0xc*(-parseInt(_0xdd380d(0x1a3))/0xd);if(_0x313a74===_0x23de19)break;else _0x2f29ee['push'](_0x2f29ee['shift']());}catch(_0x20830e){_0x2f29ee['push'](_0x2f29ee['shift']());}}}(_0x202a,0x6b540));var R=Object[_0x5484a7(0x178)],C=(_0x49a341,_0x4ec6ca,_0x34fa90)=>_0x4ec6ca in _0x49a341?R(_0x49a341,_0x4ec6ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34fa90}):_0x49a341[_0x4ec6ca]=_0x34fa90,d=(_0x5ee393,_0x11a108,_0x38a5a6)=>C(_0x5ee393,typeof _0x11a108!=_0x5484a7(0x1a5)?_0x11a108+'':_0x11a108,_0x38a5a6);import{Disposable as _0x461310,UniverInstanceType as _0x1791e7,IResourceManagerService as _0xfb96d4,CommandType as _0x3e44b9,ICommandService as _0x5c5b2b,IUndoRedoService as _0x22d773,DependentOn as _0x502eab,Inject as _0x546027,Injector as _0x58fdc6,Plugin as _0xa33e95,merge as _0xfa4b98,touchDependencies as _0x1fc7ee,IConfigService as _0x499a85}from'@univerjs/core';import{ShapeModel as _0x21ca7f,isConnectorShape as _0x20df5d}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3b4c6e}from'@univerjs-pro/license';function _0x202a(){const _0x40eb86=['disposeWithMe','28HgzUtQ','pluginName','onRendered','UNIVER_SHEET','_initSnapshot','sheet.mutation.remove-shape','setShapeType','setShapeData','getBasicShapeRelation','defineProperty','_ensureShapeModelManager','getShapeType','pushUndoRedo','963koCWEo','stringify','isLineShape','1MXqAEl','hasShape','464248MHJDwo','sheet.command.update-shape-type','every','_configService','_initCommands','getBasicShapeType','_deserializeShapeForUnit','21ZkyBgd','153955CAgwnv','_linesIds','shapeId','params','from','length','_config','get','25248qmETbG','_resourcesManagerService','delete','_commandService','registerCommand','clear','sheets-shape.config','onStarting','fromJSON','dispose','getShapeData','push','getShapeModel','COMMAND','_shapeModelManagerMap','toJSON','144dBHzZg','2174084elDzaz','52RSrDkA','set','symbol','addShape','syncExecuteCommand','keys','_serializeShapeForUnit','_injector','forEach','getShapeRelation','insertShape','getOwnPropertyDescriptor','350868boQLsl','add','1063612AUQgja','_groupIds','17890QqDEMr','setConfig','removeShape','getShapeTypeById','_shapes','getLineShapeRelation','SHEET_SHAPE_PLUGIN','registerPluginResource','parse','has','type'];_0x202a=function(){return _0x40eb86;};return _0x202a();}class T extends _0x461310{constructor(){const _0xaf3abd=_0x5484a7;super(),d(this,_0xaf3abd(0x1b7),new Map()),d(this,_0xaf3abd(0x18a),new Set()),d(this,'_groupIds',new Set());}[_0x5484a7(0x1a6)](_0x140b42,_0x5bbe0b,_0x27e03b){const _0x49c52b=_0x5484a7,_0x484bea=new _0x21ca7f(_0x140b42,_0x5bbe0b,_0x27e03b);return this[_0x49c52b(0x1b7)][_0x49c52b(0x1a4)](_0x5bbe0b,_0x484bea),_0x20df5d(_0x140b42)&&this['_linesIds']['add'](_0x5bbe0b),_0x484bea;}[_0x5484a7(0x177)](_0x40a3fd){const _0xaa56a1=_0x5484a7;var _0x505ddc,_0x48ecc7;const _0x8039f0=[];for(const _0x2d2724 of this[_0xaa56a1(0x18a)]){const _0x52eee5=this['_shapes']['get'](_0x2d2724);if(_0x52eee5){const _0x42dfbd=_0x52eee5[_0xaa56a1(0x1ac)]();_0x42dfbd&&(((_0x505ddc=_0x42dfbd['from'])==null?void 0x0:_0x505ddc[_0xaa56a1(0x18b)])===_0x40a3fd&&_0x8039f0[_0xaa56a1(0x19c)]({..._0x42dfbd[_0xaa56a1(0x18d)],'lineShapeId':_0x2d2724,'isFrom':!0x0}),((_0x48ecc7=_0x42dfbd['to'])==null?void 0x0:_0x48ecc7[_0xaa56a1(0x18b)])===_0x40a3fd&&_0x8039f0[_0xaa56a1(0x19c)]({..._0x42dfbd['to'],'lineShapeId':_0x2d2724,'isFrom':!0x1}));}}return _0x8039f0;}[_0x5484a7(0x1b8)](_0x7581bd){const _0x320a72=_0x5484a7,_0x525bc4=this[_0x320a72(0x1b7)]['get'](_0x7581bd);if(_0x525bc4)return _0x525bc4[_0x320a72(0x1ac)]();}[_0x5484a7(0x17a)](_0x1221d1){const _0x19f6d3=_0x5484a7,_0x19e6c0=this[_0x19f6d3(0x1b7)]['get'](_0x1221d1);if(_0x19e6c0)return _0x19e6c0[_0x19f6d3(0x17a)]();}['hasShape'](_0x2071de){const _0x448ec7=_0x5484a7;return this['_shapes'][_0x448ec7(0x16c)](_0x2071de);}['removeShape'](_0x37902c){const _0x298ef9=_0x5484a7,_0x4165de=this['_shapes'][_0x298ef9(0x190)](_0x37902c);_0x4165de&&(_0x20df5d(_0x4165de[_0x298ef9(0x17a)]())&&this['_linesIds'][_0x298ef9(0x193)](_0x37902c),this[_0x298ef9(0x1b7)][_0x298ef9(0x193)](_0x37902c));}[_0x5484a7(0x1a0)](){const _0x3aaa16=_0x5484a7,_0x3d62c0=[];return this[_0x3aaa16(0x1b7)][_0x3aaa16(0x1ab)](_0x1ea13c=>{const _0x5669bb=_0x3aaa16;_0x3d62c0[_0x5669bb(0x19c)](_0x1ea13c['toJSON']());}),_0x3d62c0;}[_0x5484a7(0x199)](_0x575f1c){const _0x2b791a=_0x5484a7;for(const _0x1ccbd4 of _0x575f1c){const {id:_0x337e45,shapeType:_0x5cf444}=_0x1ccbd4,_0x1c9f37=this[_0x2b791a(0x1a6)](_0x5cf444,_0x337e45,_0x1ccbd4['shapeData']);_0x1c9f37&&_0x1c9f37[_0x2b791a(0x17e)]()&&this[_0x2b791a(0x18a)]['add'](_0x337e45);}}[_0x5484a7(0x19a)](){const _0x394d45=_0x5484a7;this['_disposed']||(this[_0x394d45(0x1b7)][_0x394d45(0x1ab)](_0x48640d=>{const _0x126a9a=_0x394d45;_0x48640d[_0x126a9a(0x19a)]();}),this['_shapes'][_0x394d45(0x196)](),this[_0x394d45(0x18a)][_0x394d45(0x196)](),this[_0x394d45(0x1b2)]['clear'](),super['dispose']());}}var $=Object[_0x5484a7(0x1ae)],V=(_0x169079,_0xd1d8bc,_0x1cd2cb,_0x13d387)=>{for(var _0x3ce50b=_0x13d387>0x1?void 0x0:_0x13d387?$(_0xd1d8bc,_0x1cd2cb):_0xd1d8bc,_0x4375cd=_0x169079['length']-0x1,_0x459f5b;_0x4375cd>=0x0;_0x4375cd--)(_0x459f5b=_0x169079[_0x4375cd])&&(_0x3ce50b=_0x459f5b(_0x3ce50b)||_0x3ce50b);return _0x3ce50b;},K=(_0x5b87a3,_0x1401d7)=>(_0xdea9ed,_0x44f4c1)=>_0x1401d7(_0xdea9ed,_0x44f4c1,_0x5b87a3);const W=_0x5484a7(0x1b9);let i=class extends _0x461310{constructor(_0x4a648d){const _0x385fbc=_0x5484a7;super(),d(this,_0x385fbc(0x19f),new Map()),(this[_0x385fbc(0x192)]=_0x4a648d,this[_0x385fbc(0x173)]());}[_0x5484a7(0x179)](_0x4b6a80,_0x4b9af7){const _0x100423=_0x5484a7;let _0x5a40ab=this['_shapeModelManagerMap']['get'](_0x4b6a80);_0x5a40ab||(_0x5a40ab=new Map(),this[_0x100423(0x19f)]['set'](_0x4b6a80,_0x5a40ab));let _0x12dc88=_0x5a40ab[_0x100423(0x190)](_0x4b9af7);return _0x12dc88||(_0x12dc88=new T(),_0x5a40ab['set'](_0x4b9af7,_0x12dc88)),_0x12dc88;}['insertShape'](_0x21ce5c,_0x49fe53,_0x1b4106,_0x171cbc,_0x2cd4c0){const _0x38cb77=_0x5484a7;this[_0x38cb77(0x179)](_0x21ce5c,_0x49fe53)['addShape'](_0x1b4106,_0x171cbc,_0x2cd4c0);}[_0x5484a7(0x1b5)](_0xbb8dfc,_0x3b7fc9,_0x480964){const _0x1d2f7f=_0x5484a7;this['_ensureShapeModelManager'](_0xbb8dfc,_0x3b7fc9)[_0x1d2f7f(0x1b5)](_0x480964);}[_0x5484a7(0x186)](_0x52d495,_0x460604,_0x4b7e5d){const _0x3add13=_0x5484a7;return this[_0x3add13(0x179)](_0x52d495,_0x460604)[_0x3add13(0x17a)](_0x4b7e5d);}[_0x5484a7(0x17a)](_0xcfdf0f,_0x323688,_0x3cf854){const _0x2461bd=_0x5484a7;return this['_ensureShapeModelManager'](_0xcfdf0f,_0x323688)[_0x2461bd(0x17a)](_0x3cf854);}[_0x5484a7(0x180)](_0x4c8ecd,_0x42c8a1,_0x342e6b){return this['_ensureShapeModelManager'](_0x4c8ecd,_0x42c8a1)['hasShape'](_0x342e6b);}[_0x5484a7(0x1b6)](_0x21ac25,_0x27a265,_0x3f3881){const _0x217483=_0x5484a7;return this[_0x217483(0x179)](_0x21ac25,_0x27a265)[_0x217483(0x17a)](_0x3f3881);}['getShapeDataById'](_0xadd018,_0x2a7703,_0x4dc936){const _0x415271=_0x5484a7,_0x3ef2c=this[_0x415271(0x179)](_0xadd018,_0x2a7703);if(!_0x3ef2c[_0x415271(0x17a)](_0x4dc936))return;const _0x6715d0=_0x3ef2c[_0x415271(0x1b7)][_0x415271(0x190)](_0x4dc936);if(_0x6715d0)return _0x6715d0[_0x415271(0x19b)]();}[_0x5484a7(0x19d)](_0xf2719,_0xb4631d,_0x553b32){const _0xa57aaa=_0x5484a7;return this[_0xa57aaa(0x179)](_0xf2719,_0xb4631d)['_shapes']['get'](_0x553b32);}[_0x5484a7(0x177)](_0x5d547d,_0x564ead,_0x1af1b7){const _0xa86de1=_0x5484a7;return this[_0xa86de1(0x179)](_0x5d547d,_0x564ead)['getBasicShapeRelation'](_0x1af1b7);}[_0x5484a7(0x1b8)](_0x4ffeea,_0xc99d3b,_0x5861ef){const _0x101b06=_0x5484a7,_0x2f172d=this[_0x101b06(0x179)](_0x4ffeea,_0xc99d3b)[_0x101b06(0x1b7)]['get'](_0x5861ef);if(_0x2f172d)return _0x2f172d[_0x101b06(0x1ac)]();}['setShapeType'](){}[_0x5484a7(0x1a9)](_0x11d836){const _0x3d9fd8=_0x5484a7,_0x51b0de={},_0x54c2f3=this['_shapeModelManagerMap'][_0x3d9fd8(0x190)](_0x11d836);return _0x54c2f3&&_0x54c2f3[_0x3d9fd8(0x1ab)]((_0x31f174,_0x5f1faf)=>{_0x51b0de[_0x5f1faf]=_0x31f174['toJSON']();}),JSON[_0x3d9fd8(0x17d)](_0x51b0de);}['_deserializeShapeForUnit'](_0x3ba1e0,_0x3a32d9){const _0x20c7d6=_0x5484a7;Object[_0x20c7d6(0x1a8)](_0x3a32d9)[_0x20c7d6(0x1ab)](_0xc68d26=>{const _0x1e9202=_0x20c7d6;this[_0x1e9202(0x179)](_0x3ba1e0,_0xc68d26)[_0x1e9202(0x199)](_0x3a32d9[_0xc68d26]);});}[_0x5484a7(0x1a0)](){const _0x3f950c=_0x5484a7,_0xdb1cf={};return this[_0x3f950c(0x19f)][_0x3f950c(0x1ab)]((_0x394323,_0x4e55a9)=>{const _0x2d7c7b=_0x3f950c;_0xdb1cf[_0x4e55a9]={},_0x394323[_0x2d7c7b(0x1ab)]((_0x363a79,_0x4d3fcb)=>{const _0x53ce35=_0x2d7c7b;_0xdb1cf[_0x4e55a9][_0x4d3fcb]=_0x363a79[_0x53ce35(0x1a0)]();});}),_0xdb1cf;}[_0x5484a7(0x199)](_0x1d275e){const _0x4ef4c9=_0x5484a7;Object[_0x4ef4c9(0x1a8)](_0x1d275e)[_0x4ef4c9(0x1ab)](_0x548fc4=>{const _0x5a60a6=_0x4ef4c9,_0x212df4=_0x1d275e[_0x548fc4];Object[_0x5a60a6(0x1a8)](_0x212df4)[_0x5a60a6(0x1ab)](_0x475c27=>{const _0x40225e=_0x5a60a6;this[_0x40225e(0x179)](_0x548fc4,_0x475c27)[_0x40225e(0x199)](_0x212df4[_0x475c27]);});});}[_0x5484a7(0x173)](){const _0x236c48=_0x5484a7;this[_0x236c48(0x192)][_0x236c48(0x16a)]({'pluginName':W,'businesses':[_0x1791e7[_0x236c48(0x172)]],'toJson':_0x156aa8=>this['_serializeShapeForUnit'](_0x156aa8),'parseJson':_0xe3bdf1=>JSON[_0x236c48(0x16b)](_0xe3bdf1),'onLoad':(_0x51a9e6,_0x219321)=>{const _0x2a8d69=_0x236c48;this[_0x2a8d69(0x187)](_0x51a9e6,_0x219321);},'onUnLoad':_0x56d7f7=>{const _0x252f5c=_0x236c48,_0x277ac6=this['_shapeModelManagerMap'][_0x252f5c(0x190)](_0x56d7f7);_0x277ac6&&(_0x277ac6[_0x252f5c(0x1ab)](_0x5b2c87=>{_0x5b2c87['dispose']();}),this['_shapeModelManagerMap'][_0x252f5c(0x193)](_0x56d7f7));}});}[_0x5484a7(0x19a)](){const _0x300fdb=_0x5484a7;this[_0x300fdb(0x19f)][_0x300fdb(0x1ab)](_0x18ac97=>{const _0x411960=_0x300fdb;_0x18ac97[_0x411960(0x1ab)](_0x17ba38=>{const _0x42318b=_0x411960;_0x17ba38[_0x42318b(0x19a)]();});});}};i=V([K(0x0,_0xfb96d4)],i);const u={'id':'sheet.mutation.update-shape-type','type':_0x3e44b9['MUTATION'],'handler':(_0x2ef8ee,_0x1627fc)=>{const _0x392e91=_0x5484a7,{unitId:_0x28fd7b,subUnitId:_0x2a40e7,shapeType:_0x18fc9d,shapeId:_0x565bb5,shapeData:_0x2bfc3a}=_0x1627fc,_0x353560=_0x2ef8ee[_0x392e91(0x190)](i)[_0x392e91(0x19d)](_0x28fd7b,_0x2a40e7,_0x565bb5);return _0x353560&&(_0x353560[_0x392e91(0x175)](_0x18fc9d),_0x2bfc3a&&(_0x353560==null||_0x353560[_0x392e91(0x176)](_0x2bfc3a))),!0x0;}},pe={'id':_0x5484a7(0x182),'type':_0x3e44b9[_0x5484a7(0x19e)],'handler':(_0x10eb92,_0x10b5b5)=>{const _0x166da3=_0x5484a7;if(!_0x10b5b5)return!0x1;const _0x43c5cd=_0x10eb92[_0x166da3(0x190)](_0x5c5b2b),_0x2aaf2f=_0x10eb92[_0x166da3(0x190)](i),_0x27b118=_0x10eb92[_0x166da3(0x190)](_0x22d773),_0x2e151f=[],_0x3bd88c=[],{unitId:_0x186ab1,subUnitId:_0x29dcd3,shapeId:_0x1b57ce,shapeType:_0x5bfbd7,shapeData:_0x5b3f9a}=_0x10b5b5,_0x451da3=_0x2aaf2f[_0x166da3(0x19d)](_0x186ab1,_0x29dcd3,_0x1b57ce);if(_0x451da3){const _0x41f2ab=_0x451da3['getShapeType'](),_0x15ceb5=Object['assign']({},_0x451da3[_0x166da3(0x19b)]()),_0x207375={'unitId':_0x186ab1,'subUnitId':_0x29dcd3,'shapeId':_0x1b57ce,'shapeType':_0x5bfbd7,'shapeData':_0x5b3f9a},_0x5ec5ef={'unitId':_0x186ab1,'subUnitId':_0x29dcd3,'shapeId':_0x1b57ce,'shapeType':_0x41f2ab,'shapeData':_0x15ceb5};return _0x2e151f[_0x166da3(0x19c)]({'id':u['id'],'params':_0x207375}),_0x3bd88c['push']({'id':u['id'],'params':_0x5ec5ef}),_0x2e151f[_0x166da3(0x183)](_0x24cced=>_0x43c5cd[_0x166da3(0x1a7)](_0x24cced['id'],_0x24cced[_0x166da3(0x18c)]))&&_0x27b118[_0x166da3(0x17b)]({'unitID':_0x186ab1,'redoMutations':[..._0x2e151f],'undoMutations':[..._0x3bd88c]}),!0x0;}return!0x1;}},Y={'id':'sheet.mutation.insert-shape','type':_0x3e44b9['MUTATION'],'handler':(_0x472274,_0x4c3942)=>{const _0x39d78c=_0x5484a7,{unitId:_0x13c95d,subUnitId:_0x3834b7,shapeType:_0x3a4235,shapeId:_0x2ca697,shapeData:_0x52c544}=_0x4c3942;return _0x472274[_0x39d78c(0x190)](i)[_0x39d78c(0x1ad)](_0x13c95d,_0x3834b7,_0x3a4235,_0x2ca697,_0x52c544),!0x0;}},q={'id':_0x5484a7(0x174),'type':_0x3e44b9['MUTATION'],'handler':(_0x9e368d,_0xb67243)=>{const _0x178b0e=_0x5484a7,{unitId:_0x1e5373,subUnitId:_0x2264e2,shapeId:_0x22c6bd}=_0xb67243;return _0x9e368d[_0x178b0e(0x190)](i)[_0x178b0e(0x1b5)](_0x1e5373,_0x2264e2,_0x22c6bd),!0x0;}},Q={'id':'sheet.mutation.update-shape-data','type':_0x3e44b9['MUTATION'],'handler':(_0x21b6b3,_0x1603f5)=>{const _0x188291=_0x5484a7,{unitId:_0x20a699,subUnitId:_0x10c123,shapeType:_0x1dd402,shapeId:_0x21056c,shapeData:_0x2077d5}=_0x1603f5,_0x580e2a=_0x21b6b3[_0x188291(0x190)](i)[_0x188291(0x19d)](_0x20a699,_0x10c123,_0x21056c);return _0x580e2a&&(_0x1dd402!==void 0x0&&_0x580e2a[_0x188291(0x175)](_0x1dd402),_0x2077d5&&(_0x580e2a==null||_0x580e2a[_0x188291(0x176)](_0x2077d5,!0x0))),!0x0;}},X=_0x5484a7(0x197),m={};var Z=Object[_0x5484a7(0x178)],k=Object[_0x5484a7(0x1ae)],ee=(_0x5bae1e,_0x1836ff,_0x22034d)=>_0x1836ff in _0x5bae1e?Z(_0x5bae1e,_0x1836ff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22034d}):_0x5bae1e[_0x1836ff]=_0x22034d,ae=(_0x245025,_0x471ea7,_0x3b436d,_0xa4736d)=>{const _0x2d8427=_0x5484a7;for(var _0x4e712f=_0xa4736d>0x1?void 0x0:_0xa4736d?k(_0x471ea7,_0x3b436d):_0x471ea7,_0x47829a=_0x245025[_0x2d8427(0x18e)]-0x1,_0x4f0d42;_0x47829a>=0x0;_0x47829a--)(_0x4f0d42=_0x245025[_0x47829a])&&(_0x4e712f=_0x4f0d42(_0x4e712f)||_0x4e712f);return _0x4e712f;},g=(_0x3e6958,_0x3fee72)=>(_0x3d5f5b,_0x23131d)=>_0x3fee72(_0x3d5f5b,_0x23131d,_0x3e6958),E=(_0x32c9d1,_0x3bbbb8,_0x1eda98)=>ee(_0x32c9d1,typeof _0x3bbbb8!=_0x5484a7(0x1a5)?_0x3bbbb8+'':_0x3bbbb8,_0x1eda98);const se='SHEET_SHAPE_PLUGIN';let S=class extends _0xa33e95{constructor(_0xfcf7dc=m,_0x5e99dd,_0x37305d,_0x58324b){const _0x324889=_0x5484a7;super(),this['_config']=_0xfcf7dc,this[_0x324889(0x1aa)]=_0x5e99dd,this['_commandService']=_0x37305d,this[_0x324889(0x184)]=_0x58324b;const {..._0x497b9c}=_0xfa4b98({},m,this[_0x324889(0x18f)]);this[_0x324889(0x184)][_0x324889(0x1b4)](X,_0x497b9c),this[_0x324889(0x185)]();}[_0x5484a7(0x171)](){const _0x444c72=_0x5484a7;_0x1fc7ee(this[_0x444c72(0x1aa)],[]);}[_0x5484a7(0x198)](){const _0x255190=_0x5484a7,_0x48559f=this[_0x255190(0x1aa)];[[T],[i]][_0x255190(0x1ab)](_0x44d62d=>_0x48559f[_0x255190(0x1b0)](_0x44d62d));}[_0x5484a7(0x185)](){const _0x34c94a=_0x5484a7;[Y,q,u,Q][_0x34c94a(0x1ab)](_0x4e99a3=>this[_0x34c94a(0x16e)](this[_0x34c94a(0x194)][_0x34c94a(0x195)](_0x4e99a3)));}};E(S,_0x5484a7(0x16d),_0x1791e7['UNIVER_SHEET']),E(S,_0x5484a7(0x170),se),S=ae([_0x502eab(_0x3b4c6e),g(0x1,_0x546027(_0x58fdc6)),g(0x2,_0x5c5b2b),g(0x3,_0x499a85)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
1
+ const _0x32aef0=_0x57ee;(function(_0x8501d4,_0x4323bf){const _0x2da121=_0x57ee,_0x4bd264=_0x8501d4();while(!![]){try{const _0x429e75=parseInt(_0x2da121(0xde))/0x1+parseInt(_0x2da121(0xdc))/0x2*(parseInt(_0x2da121(0xd9))/0x3)+parseInt(_0x2da121(0xd2))/0x4+parseInt(_0x2da121(0x107))/0x5*(-parseInt(_0x2da121(0xf1))/0x6)+parseInt(_0x2da121(0xe4))/0x7*(-parseInt(_0x2da121(0xc4))/0x8)+-parseInt(_0x2da121(0xda))/0x9+parseInt(_0x2da121(0xce))/0xa;if(_0x429e75===_0x4323bf)break;else _0x4bd264['push'](_0x4bd264['shift']());}catch(_0x463e08){_0x4bd264['push'](_0x4bd264['shift']());}}}(_0x3e5c,0xad443));var R=Object[_0x32aef0(0xc2)],C=(_0x553e93,_0x2c3e58,_0xc1f51b)=>_0x2c3e58 in _0x553e93?R(_0x553e93,_0x2c3e58,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc1f51b}):_0x553e93[_0x2c3e58]=_0xc1f51b,d=(_0x3092ee,_0x31d5bd,_0x2f0751)=>C(_0x3092ee,typeof _0x31d5bd!='symbol'?_0x31d5bd+'':_0x31d5bd,_0x2f0751);import{Disposable as _0x1b7929,UniverInstanceType as _0x3c491f,IResourceManagerService as _0x2d4a9e,CommandType as _0x410a5c,ICommandService as _0x551765,IUndoRedoService as _0x3f436f,DependentOn as _0x599e8b,Inject as _0x4120bf,Injector as _0x2af51e,Plugin as _0x45c26e,merge as _0x294386,touchDependencies as _0x21ab27,IConfigService as _0x262b41}from'@univerjs/core';import{ShapeModel as _0x28cf4a,isConnectorShape as _0x4c3174}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x496812}from'@univerjs-pro/license';class T extends _0x1b7929{constructor(){const _0x399c81=_0x32aef0;super(),d(this,_0x399c81(0xcd),new Map()),d(this,_0x399c81(0xc6),new Set()),d(this,_0x399c81(0xf7),new Set());}[_0x32aef0(0xd7)](_0x43b3a8,_0x469af8,_0x4c4c2c){const _0x45a353=_0x32aef0,_0x504adc=new _0x28cf4a(_0x43b3a8,_0x469af8,_0x4c4c2c);return this[_0x45a353(0xcd)]['set'](_0x469af8,_0x504adc),_0x4c3174(_0x43b3a8)&&this[_0x45a353(0xc6)][_0x45a353(0xcc)](_0x469af8),_0x504adc;}[_0x32aef0(0xe9)](_0x567f5a){const _0x1d1b4a=_0x32aef0;var _0x59a6d7,_0x14089f;const _0x3ad33e=[];for(const _0x111c2d of this[_0x1d1b4a(0xc6)]){const _0x8cee8c=this['_shapes']['get'](_0x111c2d);if(_0x8cee8c){const _0xad45c8=_0x8cee8c[_0x1d1b4a(0xcf)]();_0xad45c8&&(((_0x59a6d7=_0xad45c8['from'])==null?void 0x0:_0x59a6d7['shapeId'])===_0x567f5a&&_0x3ad33e[_0x1d1b4a(0xff)]({..._0xad45c8['from'],'lineShapeId':_0x111c2d,'isFrom':!0x0}),((_0x14089f=_0xad45c8['to'])==null?void 0x0:_0x14089f['shapeId'])===_0x567f5a&&_0x3ad33e[_0x1d1b4a(0xff)]({..._0xad45c8['to'],'lineShapeId':_0x111c2d,'isFrom':!0x1}));}}return _0x3ad33e;}[_0x32aef0(0xc7)](_0x5a8035){const _0x53c984=_0x32aef0,_0x3d4d07=this['_shapes'][_0x53c984(0xdb)](_0x5a8035);if(_0x3d4d07)return _0x3d4d07[_0x53c984(0xcf)]();}[_0x32aef0(0x101)](_0x588807){const _0x315f94=_0x32aef0,_0x29654f=this[_0x315f94(0xcd)][_0x315f94(0xdb)](_0x588807);if(_0x29654f)return _0x29654f[_0x315f94(0x101)]();}[_0x32aef0(0x108)](_0x377110){const _0x5432ad=_0x32aef0;return this[_0x5432ad(0xcd)][_0x5432ad(0xe8)](_0x377110);}[_0x32aef0(0xc8)](_0x2bb546){const _0x3ebad0=_0x32aef0,_0x17de21=this['_shapes']['get'](_0x2bb546);_0x17de21&&(_0x4c3174(_0x17de21[_0x3ebad0(0x101)]())&&this[_0x3ebad0(0xc6)][_0x3ebad0(0xf8)](_0x2bb546),this[_0x3ebad0(0xcd)][_0x3ebad0(0xf8)](_0x2bb546));}[_0x32aef0(0xe2)](){const _0x4fe235=_0x32aef0,_0x4d3db8=[];return this[_0x4fe235(0xcd)][_0x4fe235(0xca)](_0xab0f10=>{const _0x46c330=_0x4fe235;_0x4d3db8[_0x46c330(0xff)](_0xab0f10[_0x46c330(0xe2)]());}),_0x4d3db8;}['fromJSON'](_0x3db539){const _0x3404f2=_0x32aef0;for(const _0x5f3e91 of _0x3db539){const {id:_0x379eef,shapeType:_0x2747a8}=_0x5f3e91,_0x4403bc=this['addShape'](_0x2747a8,_0x379eef,_0x5f3e91['shapeData']);_0x4403bc&&_0x4403bc['isLineShape']()&&this[_0x3404f2(0xc6)][_0x3404f2(0xcc)](_0x379eef);}}[_0x32aef0(0xcb)](){const _0x235fc5=_0x32aef0;this[_0x235fc5(0xe6)]||(this[_0x235fc5(0xcd)][_0x235fc5(0xca)](_0x203d7b=>{_0x203d7b['dispose']();}),this[_0x235fc5(0xcd)][_0x235fc5(0xf6)](),this[_0x235fc5(0xc6)][_0x235fc5(0xf6)](),this[_0x235fc5(0xf7)][_0x235fc5(0xf6)](),super[_0x235fc5(0xcb)]());}}var $=Object['getOwnPropertyDescriptor'],V=(_0x384a3b,_0x45b26b,_0x4a396e,_0x24160e)=>{const _0x4b8861=_0x32aef0;for(var _0x1d704b=_0x24160e>0x1?void 0x0:_0x24160e?$(_0x45b26b,_0x4a396e):_0x45b26b,_0x8b0fc=_0x384a3b[_0x4b8861(0xf5)]-0x1,_0x555b4b;_0x8b0fc>=0x0;_0x8b0fc--)(_0x555b4b=_0x384a3b[_0x8b0fc])&&(_0x1d704b=_0x555b4b(_0x1d704b)||_0x1d704b);return _0x1d704b;},K=(_0x23b593,_0x58f14b)=>(_0x1b64c7,_0x28f4d5)=>_0x58f14b(_0x1b64c7,_0x28f4d5,_0x23b593);function _0x3e5c(){const _0x1d27ea=['8YDBklV','sheet.mutation.insert-shape','_linesIds','getLineShapeRelation','removeShape','_initSnapshot','forEach','dispose','add','_shapes','23541900fidpoa','getShapeRelation','assign','parse','2630268mcRwyh','symbol','_shapeModelManagerMap','insertShape','stringify','addShape','MUTATION','1647VWrLgW','8643582hUXiqH','get','946KZHwLe','registerPluginResource','219918ElgolZ','type','_deserializeShapeForUnit','keys','toJSON','fromJSON','6610779qxKggs','setShapeType','_disposed','COMMAND','has','getBasicShapeRelation','UNIVER_SHEET','setShapeData','_initCommands','_ensureShapeModelManager','params','getShapeData','getBasicShapeType','36DOwkaR','set','onStarting','sheet.mutation.update-shape-data','length','clear','_groupIds','delete','SHEET_SHAPE_PLUGIN','_commandService','sheet.mutation.remove-shape','setConfig','every','getShapeTypeById','push','onRendered','getShapeType','_serializeShapeForUnit','_injector','_resourcesManagerService','getShapeDataById','disposeWithMe','730715OYOBYw','hasShape','_configService','sheet.mutation.update-shape-type','getShapeModel','syncExecuteCommand','sheets-shape.config','defineProperty','_config'];_0x3e5c=function(){return _0x1d27ea;};return _0x3e5c();}const W=_0x32aef0(0xf9);let i=class extends _0x1b7929{constructor(_0x3ccba5){const _0x4ce6c2=_0x32aef0;super(),d(this,_0x4ce6c2(0xd4),new Map()),(this[_0x4ce6c2(0x104)]=_0x3ccba5,this['_initSnapshot']());}[_0x32aef0(0xed)](_0x4e898d,_0x382c6d){const _0x4a2b00=_0x32aef0;let _0x198b6a=this['_shapeModelManagerMap'][_0x4a2b00(0xdb)](_0x4e898d);_0x198b6a||(_0x198b6a=new Map(),this[_0x4a2b00(0xd4)]['set'](_0x4e898d,_0x198b6a));let _0x3e8260=_0x198b6a['get'](_0x382c6d);return _0x3e8260||(_0x3e8260=new T(),_0x198b6a[_0x4a2b00(0xf2)](_0x382c6d,_0x3e8260)),_0x3e8260;}['insertShape'](_0x16ae95,_0x1c10d7,_0x41d3bd,_0x41b08a,_0x1464b6){const _0x4edcb6=_0x32aef0;this[_0x4edcb6(0xed)](_0x16ae95,_0x1c10d7)[_0x4edcb6(0xd7)](_0x41d3bd,_0x41b08a,_0x1464b6);}[_0x32aef0(0xc8)](_0x1dc442,_0x37b7f6,_0x2c6647){const _0x8915c=_0x32aef0;this[_0x8915c(0xed)](_0x1dc442,_0x37b7f6)[_0x8915c(0xc8)](_0x2c6647);}[_0x32aef0(0xf0)](_0x5f57ca,_0x1a5805,_0x22ae27){return this['_ensureShapeModelManager'](_0x5f57ca,_0x1a5805)['getShapeType'](_0x22ae27);}[_0x32aef0(0x101)](_0x69cfb8,_0x5d415e,_0x1c40d1){const _0x3c6006=_0x32aef0;return this[_0x3c6006(0xed)](_0x69cfb8,_0x5d415e)[_0x3c6006(0x101)](_0x1c40d1);}[_0x32aef0(0x108)](_0x5d56cb,_0x113a57,_0x34bd93){const _0x155279=_0x32aef0;return this[_0x155279(0xed)](_0x5d56cb,_0x113a57)[_0x155279(0x108)](_0x34bd93);}[_0x32aef0(0xfe)](_0x466c2a,_0x27c6fd,_0xbcd9c3){return this['_ensureShapeModelManager'](_0x466c2a,_0x27c6fd)['getShapeType'](_0xbcd9c3);}[_0x32aef0(0x105)](_0x569831,_0x542d0d,_0x3247c5){const _0x8196d2=_0x32aef0,_0x32595a=this[_0x8196d2(0xed)](_0x569831,_0x542d0d);if(!_0x32595a[_0x8196d2(0x101)](_0x3247c5))return;const _0x1154ef=_0x32595a[_0x8196d2(0xcd)][_0x8196d2(0xdb)](_0x3247c5);if(_0x1154ef)return _0x1154ef[_0x8196d2(0xef)]();}[_0x32aef0(0x10b)](_0x5641fd,_0x26dcb0,_0xd8e4a8){const _0x34937f=_0x32aef0;return this['_ensureShapeModelManager'](_0x5641fd,_0x26dcb0)[_0x34937f(0xcd)][_0x34937f(0xdb)](_0xd8e4a8);}['getBasicShapeRelation'](_0x170aea,_0x3cf063,_0x3c2d57){const _0x3e8d2d=_0x32aef0;return this[_0x3e8d2d(0xed)](_0x170aea,_0x3cf063)[_0x3e8d2d(0xe9)](_0x3c2d57);}[_0x32aef0(0xc7)](_0x3f5673,_0x34c5b6,_0x21994b){const _0xe51766=_0x32aef0,_0x4668d0=this['_ensureShapeModelManager'](_0x3f5673,_0x34c5b6)[_0xe51766(0xcd)][_0xe51766(0xdb)](_0x21994b);if(_0x4668d0)return _0x4668d0[_0xe51766(0xcf)]();}['setShapeType'](){}[_0x32aef0(0x102)](_0x509e44){const _0x440670=_0x32aef0,_0x4fc88c={},_0x2d5290=this[_0x440670(0xd4)][_0x440670(0xdb)](_0x509e44);return _0x2d5290&&_0x2d5290[_0x440670(0xca)]((_0x27bba1,_0x9ccdb9)=>{const _0x36b165=_0x440670;_0x4fc88c[_0x9ccdb9]=_0x27bba1[_0x36b165(0xe2)]();}),JSON[_0x440670(0xd6)](_0x4fc88c);}[_0x32aef0(0xe0)](_0x5ea173,_0x4bb146){const _0x49feec=_0x32aef0;Object[_0x49feec(0xe1)](_0x4bb146)[_0x49feec(0xca)](_0x33e5d6=>{const _0x21b46b=_0x49feec;this['_ensureShapeModelManager'](_0x5ea173,_0x33e5d6)[_0x21b46b(0xe3)](_0x4bb146[_0x33e5d6]);});}[_0x32aef0(0xe2)](){const _0x5e8782=_0x32aef0,_0x50786c={};return this[_0x5e8782(0xd4)]['forEach']((_0x1d3999,_0x21bde4)=>{_0x50786c[_0x21bde4]={},_0x1d3999['forEach']((_0x2c5e79,_0x2138cd)=>{const _0x374e97=_0x57ee;_0x50786c[_0x21bde4][_0x2138cd]=_0x2c5e79[_0x374e97(0xe2)]();});}),_0x50786c;}[_0x32aef0(0xe3)](_0x1d28ff){const _0x250624=_0x32aef0;Object['keys'](_0x1d28ff)[_0x250624(0xca)](_0x34a2b5=>{const _0x423810=_0x250624,_0x35763f=_0x1d28ff[_0x34a2b5];Object[_0x423810(0xe1)](_0x35763f)['forEach'](_0x52d1c9=>{const _0x42e564=_0x423810;this[_0x42e564(0xed)](_0x34a2b5,_0x52d1c9)['fromJSON'](_0x35763f[_0x52d1c9]);});});}[_0x32aef0(0xc9)](){const _0x2f25ce=_0x32aef0;this[_0x2f25ce(0x104)][_0x2f25ce(0xdd)]({'pluginName':W,'businesses':[_0x3c491f['UNIVER_SHEET']],'toJson':_0xf6464d=>this[_0x2f25ce(0x102)](_0xf6464d),'parseJson':_0xc14b0b=>JSON[_0x2f25ce(0xd1)](_0xc14b0b),'onLoad':(_0x3a3a55,_0x110155)=>{const _0x377bbe=_0x2f25ce;this[_0x377bbe(0xe0)](_0x3a3a55,_0x110155);},'onUnLoad':_0x5e1cc3=>{const _0x46fdee=_0x2f25ce,_0x279c43=this[_0x46fdee(0xd4)]['get'](_0x5e1cc3);_0x279c43&&(_0x279c43['forEach'](_0x265f76=>{_0x265f76['dispose']();}),this['_shapeModelManagerMap'][_0x46fdee(0xf8)](_0x5e1cc3));}});}['dispose'](){const _0x5cf42c=_0x32aef0;this[_0x5cf42c(0xd4)][_0x5cf42c(0xca)](_0x2848fe=>{_0x2848fe['forEach'](_0x4bef1a=>{const _0x77c65f=_0x57ee;_0x4bef1a[_0x77c65f(0xcb)]();});});}};i=V([K(0x0,_0x2d4a9e)],i);const u={'id':_0x32aef0(0x10a),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x13ffb3,_0x4890f0)=>{const _0x457edd=_0x32aef0,{unitId:_0x24facf,subUnitId:_0x29fe74,shapeType:_0x3d7675,shapeId:_0x2d6892,shapeData:_0x1aecc4}=_0x4890f0,_0x533b3b=_0x13ffb3['get'](i)[_0x457edd(0x10b)](_0x24facf,_0x29fe74,_0x2d6892);return _0x533b3b&&(_0x533b3b[_0x457edd(0xe5)](_0x3d7675),_0x1aecc4&&(_0x533b3b==null||_0x533b3b[_0x457edd(0xeb)](_0x1aecc4))),!0x0;}},pe={'id':'sheet.command.update-shape-type','type':_0x410a5c[_0x32aef0(0xe7)],'handler':(_0x25b8ba,_0x5264db)=>{const _0x2b44b7=_0x32aef0;if(!_0x5264db)return!0x1;const _0x450707=_0x25b8ba[_0x2b44b7(0xdb)](_0x551765),_0x36223c=_0x25b8ba[_0x2b44b7(0xdb)](i),_0x150224=_0x25b8ba[_0x2b44b7(0xdb)](_0x3f436f),_0x319688=[],_0x28df01=[],{unitId:_0x28a48c,subUnitId:_0xe605e1,shapeId:_0x384512,shapeType:_0x1f874f,shapeData:_0x248948}=_0x5264db,_0x28b8bd=_0x36223c[_0x2b44b7(0x10b)](_0x28a48c,_0xe605e1,_0x384512);if(_0x28b8bd){const _0x29001f=_0x28b8bd[_0x2b44b7(0x101)](),_0x524e61=Object[_0x2b44b7(0xd0)]({},_0x28b8bd['getShapeData']()),_0x26ad02={'unitId':_0x28a48c,'subUnitId':_0xe605e1,'shapeId':_0x384512,'shapeType':_0x1f874f,'shapeData':_0x248948},_0x4993c5={'unitId':_0x28a48c,'subUnitId':_0xe605e1,'shapeId':_0x384512,'shapeType':_0x29001f,'shapeData':_0x524e61};return _0x319688[_0x2b44b7(0xff)]({'id':u['id'],'params':_0x26ad02}),_0x28df01[_0x2b44b7(0xff)]({'id':u['id'],'params':_0x4993c5}),_0x319688[_0x2b44b7(0xfd)](_0x6e6549=>_0x450707[_0x2b44b7(0x10c)](_0x6e6549['id'],_0x6e6549[_0x2b44b7(0xee)]))&&_0x150224['pushUndoRedo']({'unitID':_0x28a48c,'redoMutations':[..._0x319688],'undoMutations':[..._0x28df01]}),!0x0;}return!0x1;}},Y={'id':_0x32aef0(0xc5),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x451a8e,_0x2573d1)=>{const _0x5d51be=_0x32aef0,{unitId:_0x12a98a,subUnitId:_0x399d82,shapeType:_0x2df3df,shapeId:_0x1adaed,shapeData:_0x2a69cc}=_0x2573d1;return _0x451a8e['get'](i)[_0x5d51be(0xd5)](_0x12a98a,_0x399d82,_0x2df3df,_0x1adaed,_0x2a69cc),!0x0;}},q={'id':_0x32aef0(0xfb),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x3f7067,_0x580ce4)=>{const _0x178f5d=_0x32aef0,{unitId:_0xcaec98,subUnitId:_0x39b507,shapeId:_0x3e1cfc}=_0x580ce4;return _0x3f7067[_0x178f5d(0xdb)](i)['removeShape'](_0xcaec98,_0x39b507,_0x3e1cfc),!0x0;}},Q={'id':_0x32aef0(0xf4),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x30c1d5,_0x509190)=>{const _0x18de6d=_0x32aef0,{unitId:_0x2f44cd,subUnitId:_0x1ef2d8,shapeType:_0x20ec7b,shapeId:_0x51fd96,shapeData:_0x4f1f1f}=_0x509190,_0x538c9a=_0x30c1d5[_0x18de6d(0xdb)](i)['getShapeModel'](_0x2f44cd,_0x1ef2d8,_0x51fd96);return _0x538c9a&&(_0x20ec7b!==void 0x0&&_0x538c9a['setShapeType'](_0x20ec7b),_0x4f1f1f&&(_0x538c9a==null||_0x538c9a['setShapeData'](_0x4f1f1f,!0x0))),!0x0;}},X=_0x32aef0(0x10d),m={};var Z=Object['defineProperty'],k=Object['getOwnPropertyDescriptor'],ee=(_0x3da2e4,_0x229cea,_0x51bd15)=>_0x229cea in _0x3da2e4?Z(_0x3da2e4,_0x229cea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51bd15}):_0x3da2e4[_0x229cea]=_0x51bd15,ae=(_0x474b1d,_0x520a1d,_0x4e4569,_0x21bd16)=>{const _0x226701=_0x32aef0;for(var _0x3bd911=_0x21bd16>0x1?void 0x0:_0x21bd16?k(_0x520a1d,_0x4e4569):_0x520a1d,_0x3fe082=_0x474b1d[_0x226701(0xf5)]-0x1,_0x16eeb3;_0x3fe082>=0x0;_0x3fe082--)(_0x16eeb3=_0x474b1d[_0x3fe082])&&(_0x3bd911=_0x16eeb3(_0x3bd911)||_0x3bd911);return _0x3bd911;},g=(_0x68e634,_0x54b9db)=>(_0x242723,_0x328e89)=>_0x54b9db(_0x242723,_0x328e89,_0x68e634),E=(_0x44e15b,_0x2c6f78,_0x1a9adb)=>ee(_0x44e15b,typeof _0x2c6f78!=_0x32aef0(0xd3)?_0x2c6f78+'':_0x2c6f78,_0x1a9adb);const se=_0x32aef0(0xf9);function _0x57ee(_0x529e01,_0x39af73){_0x529e01=_0x529e01-0xc2;const _0x3e5c70=_0x3e5c();let _0x57ee83=_0x3e5c70[_0x529e01];return _0x57ee83;}let S=class extends _0x45c26e{constructor(_0x13cd77=m,_0x23e8e5,_0x2d070d,_0x5469bb){const _0x5f19f3=_0x32aef0;super(),this[_0x5f19f3(0xc3)]=_0x13cd77,this['_injector']=_0x23e8e5,this['_commandService']=_0x2d070d,this[_0x5f19f3(0x109)]=_0x5469bb;const {..._0x204786}=_0x294386({},m,this[_0x5f19f3(0xc3)]);this[_0x5f19f3(0x109)][_0x5f19f3(0xfc)](X,_0x204786),this[_0x5f19f3(0xec)]();}[_0x32aef0(0x100)](){const _0x192bbc=_0x32aef0;_0x21ab27(this[_0x192bbc(0x103)],[]);}[_0x32aef0(0xf3)](){const _0x177c3c=_0x32aef0,_0x5ef7df=this[_0x177c3c(0x103)];[[T],[i]][_0x177c3c(0xca)](_0x36f25e=>_0x5ef7df['add'](_0x36f25e));}[_0x32aef0(0xec)](){const _0x6740ff=_0x32aef0;[Y,q,u,Q][_0x6740ff(0xca)](_0x4720d1=>this[_0x6740ff(0x106)](this[_0x6740ff(0xfa)]['registerCommand'](_0x4720d1)));}};E(S,_0x32aef0(0xdf),_0x3c491f[_0x32aef0(0xea)]),E(S,'pluginName',se),S=ae([_0x599e8b(_0x496812),g(0x1,_0x4120bf(_0x2af51e)),g(0x2,_0x551765),g(0x3,_0x262b41)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x10dd(_0x2685ce,_0x55e90f){_0x2685ce=_0x2685ce-0xd0;const _0x4e7cd2=_0x4e7c();let _0x10dddf=_0x4e7cd2[_0x2685ce];return _0x10dddf;}function _0x4e7c(){const _0x4628a9=['add','stringify','IConfigService','_shapeModelManagerMap','toJSON','960207UEkxwl','hasShape','addShape','UniverSheetsShapePlugin','_resourcesManagerService','forEach','insertShape','COMMAND','registerPluginResource','merge','61018VSMgmm','179838vsAjWT','touchDependencies','_linesIds','18506SjWlWL','_disposed','keys','toStringTag','2760784LqiAOI','_groupIds','getLineShapeRelation','sheet.command.update-shape-type','type','_config','Injector','delete','_shapes','getShapeRelation','getBasicShapeType','Module','shapeId','setShapeType','MUTATION','@univerjs-pro/engine-shape','from','getShapeType','getBasicShapeRelation','amd','CommandType','has','IResourceManagerService','UniverCore','fromJSON','dispose','284cPXsrH','UpdateSheetsShapeDataMutation','ShapeModel','UniverInstanceType','1057455ipYnRr','pushUndoRedo','_initCommands','defineProperty','Disposable','ICommandService','isLineShape','_serializeShapeForUnit','24785aduSYY','_injector','push','getShapeModel','length','onStarting','parse','clear','onRendered','UniverProSheetsShape','assign','shapeData','removeShape','_commandService','getShapeDataById','function','SheetsShapeServices','symbol','_ensureShapeModelManager','setShapeData','DependentOn','@univerjs/core','set','UNIVER_SHEET','getShapeTypeById','Plugin','getShapeData','pluginName','SHEET_SHAPE_PLUGIN','getOwnPropertyDescriptor','sheet.mutation.insert-shape','InsertSheetsShapeMutation','object','UniverProLicense','_deserializeShapeForUnit','UniverLicensePlugin','_initSnapshot','sheets-shape.config','every','IUndoRedoService','get','UpdateSheetsShapeTypeCommand'];_0x4e7c=function(){return _0x4628a9;};return _0x4e7c();}(function(_0x520bdf,_0x5b1dc4){const _0x41d95c=_0x10dd,_0x1c0bfc=_0x520bdf();while(!![]){try{const _0x253c40=-parseInt(_0x41d95c(0xe1))/0x1+-parseInt(_0x41d95c(0xe5))/0x2+-parseInt(_0x41d95c(0xd7))/0x3+-parseInt(_0x41d95c(0x103))/0x4*(-parseInt(_0x41d95c(0x10f))/0x5)+parseInt(_0x41d95c(0xe2))/0x6+-parseInt(_0x41d95c(0x107))/0x7+parseInt(_0x41d95c(0xe9))/0x8;if(_0x253c40===_0x5b1dc4)break;else _0x1c0bfc['push'](_0x1c0bfc['shift']());}catch(_0x51b370){_0x1c0bfc['push'](_0x1c0bfc['shift']());}}}(_0x4e7c,0x2d50d),function(_0x29c179,_0x52ebfd){const _0x4455d5=_0x10dd;typeof exports==_0x4455d5(0x12f)&&typeof module<'u'?_0x52ebfd(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x4455d5(0x11e)&&define[_0x4455d5(0xfc)]?define(['exports',_0x4455d5(0x124),_0x4455d5(0xf8),'@univerjs-pro/license'],_0x52ebfd):(_0x29c179=typeof globalThis<'u'?globalThis:_0x29c179||self,_0x52ebfd(_0x29c179[_0x4455d5(0x118)]={},_0x29c179[_0x4455d5(0x100)],_0x29c179['UniverProEngineShape'],_0x29c179[_0x4455d5(0x130)]));}(this,function(_0x4ab130,_0x2b7f8f,_0x1ac12b,_0x3186de){'use strict';const _0x297a7f=_0x10dd;var _0x541fc3=Object[_0x297a7f(0x10a)],_0x48b129=(_0x54a83d,_0x5d8e7a,_0x4b9ffb)=>_0x5d8e7a in _0x54a83d?_0x541fc3(_0x54a83d,_0x5d8e7a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b9ffb}):_0x54a83d[_0x5d8e7a]=_0x4b9ffb,_0x3bbaa8=(_0x2f2b7c,_0x3de5ee,_0xce69d8)=>_0x48b129(_0x2f2b7c,typeof _0x3de5ee!=_0x297a7f(0x120)?_0x3de5ee+'':_0x3de5ee,_0xce69d8);class _0x2b1b1b extends _0x2b7f8f[_0x297a7f(0x10b)]{constructor(){const _0x5a8547=_0x297a7f;super(),_0x3bbaa8(this,'_shapes',new Map()),_0x3bbaa8(this,_0x5a8547(0xe4),new Set()),_0x3bbaa8(this,_0x5a8547(0xea),new Set());}[_0x297a7f(0xd9)](_0x3275b3,_0x50b69e,_0x18388b){const _0x2b70bc=_0x297a7f,_0xc17d49=new _0x1ac12b[(_0x2b70bc(0x105))](_0x3275b3,_0x50b69e,_0x18388b);return this[_0x2b70bc(0xf1)][_0x2b70bc(0x125)](_0x50b69e,_0xc17d49),_0x1ac12b['isConnectorShape'](_0x3275b3)&&this['_linesIds']['add'](_0x50b69e),_0xc17d49;}[_0x297a7f(0xfb)](_0x2b35ca){const _0x1c5a44=_0x297a7f;var _0x56d382,_0x445569;const _0x4a9815=[];for(const _0x21ba4d of this[_0x1c5a44(0xe4)]){const _0xe79be9=this['_shapes']['get'](_0x21ba4d);if(_0xe79be9){const _0x20e416=_0xe79be9[_0x1c5a44(0xf2)]();_0x20e416&&(((_0x56d382=_0x20e416[_0x1c5a44(0xf9)])==null?void 0x0:_0x56d382[_0x1c5a44(0xf5)])===_0x2b35ca&&_0x4a9815[_0x1c5a44(0x111)]({..._0x20e416[_0x1c5a44(0xf9)],'lineShapeId':_0x21ba4d,'isFrom':!0x0}),((_0x445569=_0x20e416['to'])==null?void 0x0:_0x445569['shapeId'])===_0x2b35ca&&_0x4a9815['push']({..._0x20e416['to'],'lineShapeId':_0x21ba4d,'isFrom':!0x1}));}}return _0x4a9815;}[_0x297a7f(0xeb)](_0x977c08){const _0x3cfce4=_0x297a7f,_0x5f03c8=this['_shapes']['get'](_0x977c08);if(_0x5f03c8)return _0x5f03c8[_0x3cfce4(0xf2)]();}['getShapeType'](_0x391835){const _0x5dad1f=_0x297a7f,_0xa3afd=this['_shapes'][_0x5dad1f(0xd0)](_0x391835);if(_0xa3afd)return _0xa3afd[_0x5dad1f(0xfa)]();}[_0x297a7f(0xd8)](_0x4304aa){const _0x104ebd=_0x297a7f;return this[_0x104ebd(0xf1)][_0x104ebd(0xfe)](_0x4304aa);}[_0x297a7f(0x11b)](_0x3a26c5){const _0x6480b4=_0x297a7f,_0x27d5cf=this[_0x6480b4(0xf1)][_0x6480b4(0xd0)](_0x3a26c5);_0x27d5cf&&(_0x1ac12b['isConnectorShape'](_0x27d5cf[_0x6480b4(0xfa)]())&&this[_0x6480b4(0xe4)][_0x6480b4(0xf0)](_0x3a26c5),this['_shapes'][_0x6480b4(0xf0)](_0x3a26c5));}[_0x297a7f(0xd6)](){const _0x55db51=_0x297a7f,_0x2f95b6=[];return this[_0x55db51(0xf1)][_0x55db51(0xdc)](_0x12fad9=>{const _0x33b364=_0x55db51;_0x2f95b6[_0x33b364(0x111)](_0x12fad9['toJSON']());}),_0x2f95b6;}['fromJSON'](_0x49398e){const _0x230aa4=_0x297a7f;for(const _0x33a77d of _0x49398e){const {id:_0x1e80c4,shapeType:_0x3b5d4e}=_0x33a77d,_0x4780cb=this[_0x230aa4(0xd9)](_0x3b5d4e,_0x1e80c4,_0x33a77d[_0x230aa4(0x11a)]);_0x4780cb&&_0x4780cb[_0x230aa4(0x10d)]()&&this[_0x230aa4(0xe4)][_0x230aa4(0xd2)](_0x1e80c4);}}['dispose'](){const _0x16b185=_0x297a7f;this[_0x16b185(0xe6)]||(this[_0x16b185(0xf1)]['forEach'](_0x596156=>{const _0x472031=_0x16b185;_0x596156[_0x472031(0x102)]();}),this['_shapes'][_0x16b185(0x116)](),this[_0x16b185(0xe4)]['clear'](),this[_0x16b185(0xea)][_0x16b185(0x116)](),super[_0x16b185(0x102)]());}}var _0x9f5db3=Object[_0x297a7f(0x12c)],_0x49e747=(_0x5b4693,_0x4b0484,_0x57f32f,_0x5d7fbf)=>{const _0x2c0158=_0x297a7f;for(var _0x4ee3bb=_0x5d7fbf>0x1?void 0x0:_0x5d7fbf?_0x9f5db3(_0x4b0484,_0x57f32f):_0x4b0484,_0x20a268=_0x5b4693[_0x2c0158(0x113)]-0x1,_0x5f150a;_0x20a268>=0x0;_0x20a268--)(_0x5f150a=_0x5b4693[_0x20a268])&&(_0x4ee3bb=_0x5f150a(_0x4ee3bb)||_0x4ee3bb);return _0x4ee3bb;},_0x3ccee9=(_0x534beb,_0x330dfd)=>(_0x30704a,_0x23c223)=>_0x330dfd(_0x30704a,_0x23c223,_0x534beb);const _0x41ed77=_0x297a7f(0x12b);_0x4ab130['SheetsShapeServices']=class extends _0x2b7f8f['Disposable']{constructor(_0x39672e){const _0x4719a7=_0x297a7f;super(),_0x3bbaa8(this,'_shapeModelManagerMap',new Map()),(this[_0x4719a7(0xdb)]=_0x39672e,this[_0x4719a7(0x133)]());}[_0x297a7f(0x121)](_0x5b4b99,_0x55ad44){const _0x496811=_0x297a7f;let _0x1dc6ab=this[_0x496811(0xd5)][_0x496811(0xd0)](_0x5b4b99);_0x1dc6ab||(_0x1dc6ab=new Map(),this[_0x496811(0xd5)][_0x496811(0x125)](_0x5b4b99,_0x1dc6ab));let _0x2237b4=_0x1dc6ab[_0x496811(0xd0)](_0x55ad44);return _0x2237b4||(_0x2237b4=new _0x2b1b1b(),_0x1dc6ab[_0x496811(0x125)](_0x55ad44,_0x2237b4)),_0x2237b4;}['insertShape'](_0x1b2508,_0x2b4500,_0x504b15,_0x18dbe6,_0x59c9d3){const _0x3a865e=_0x297a7f;this[_0x3a865e(0x121)](_0x1b2508,_0x2b4500)[_0x3a865e(0xd9)](_0x504b15,_0x18dbe6,_0x59c9d3);}[_0x297a7f(0x11b)](_0x43e228,_0x521ec1,_0x4ad21e){const _0x22d1cc=_0x297a7f;this[_0x22d1cc(0x121)](_0x43e228,_0x521ec1)[_0x22d1cc(0x11b)](_0x4ad21e);}[_0x297a7f(0xf3)](_0x4ed42f,_0x2dd619,_0x4cb8a7){const _0x4e4133=_0x297a7f;return this[_0x4e4133(0x121)](_0x4ed42f,_0x2dd619)['getShapeType'](_0x4cb8a7);}[_0x297a7f(0xfa)](_0x4807eb,_0x141ed9,_0xc6aba){const _0x176af2=_0x297a7f;return this[_0x176af2(0x121)](_0x4807eb,_0x141ed9)['getShapeType'](_0xc6aba);}[_0x297a7f(0xd8)](_0x5ee3b8,_0x1a4ae8,_0x2ab8fb){const _0x1f7d61=_0x297a7f;return this[_0x1f7d61(0x121)](_0x5ee3b8,_0x1a4ae8)['hasShape'](_0x2ab8fb);}[_0x297a7f(0x127)](_0x4bc7c0,_0x528918,_0x55cfe4){return this['_ensureShapeModelManager'](_0x4bc7c0,_0x528918)['getShapeType'](_0x55cfe4);}[_0x297a7f(0x11d)](_0x2990a0,_0x1cdaba,_0x413130){const _0x4d8136=_0x297a7f,_0x1a63b3=this[_0x4d8136(0x121)](_0x2990a0,_0x1cdaba);if(!_0x1a63b3[_0x4d8136(0xfa)](_0x413130))return;const _0x36be87=_0x1a63b3[_0x4d8136(0xf1)]['get'](_0x413130);if(_0x36be87)return _0x36be87['getShapeData']();}[_0x297a7f(0x112)](_0x21ac45,_0x3c2957,_0x2ee8c0){const _0x244253=_0x297a7f;return this[_0x244253(0x121)](_0x21ac45,_0x3c2957)['_shapes'][_0x244253(0xd0)](_0x2ee8c0);}[_0x297a7f(0xfb)](_0xeede6a,_0x19826d,_0x542232){const _0x518938=_0x297a7f;return this[_0x518938(0x121)](_0xeede6a,_0x19826d)[_0x518938(0xfb)](_0x542232);}[_0x297a7f(0xeb)](_0x5385e0,_0x35fb9d,_0x264612){const _0x3a70a0=_0x297a7f,_0x5a2002=this['_ensureShapeModelManager'](_0x5385e0,_0x35fb9d)['_shapes'][_0x3a70a0(0xd0)](_0x264612);if(_0x5a2002)return _0x5a2002[_0x3a70a0(0xf2)]();}['setShapeType'](){}['_serializeShapeForUnit'](_0x3ae52e){const _0x26b9e5=_0x297a7f,_0x43b1eb={},_0x469506=this[_0x26b9e5(0xd5)]['get'](_0x3ae52e);return _0x469506&&_0x469506['forEach']((_0x1adf8f,_0x3d28be)=>{_0x43b1eb[_0x3d28be]=_0x1adf8f['toJSON']();}),JSON[_0x26b9e5(0xd3)](_0x43b1eb);}[_0x297a7f(0x131)](_0x3ec5df,_0x5c2657){const _0x4aa374=_0x297a7f;Object[_0x4aa374(0xe7)](_0x5c2657)['forEach'](_0x32d274=>{const _0x5689e2=_0x4aa374;this[_0x5689e2(0x121)](_0x3ec5df,_0x32d274)[_0x5689e2(0x101)](_0x5c2657[_0x32d274]);});}[_0x297a7f(0xd6)](){const _0x501fcc=_0x297a7f,_0x7a168a={};return this[_0x501fcc(0xd5)][_0x501fcc(0xdc)]((_0x2a2c88,_0x172ae4)=>{_0x7a168a[_0x172ae4]={},_0x2a2c88['forEach']((_0x2c3245,_0x27fadd)=>{const _0x1cadd4=_0x10dd;_0x7a168a[_0x172ae4][_0x27fadd]=_0x2c3245[_0x1cadd4(0xd6)]();});}),_0x7a168a;}[_0x297a7f(0x101)](_0x7d93a7){const _0x4fde07=_0x297a7f;Object[_0x4fde07(0xe7)](_0x7d93a7)[_0x4fde07(0xdc)](_0x4a0679=>{const _0x54abee=_0x4fde07,_0x4e7cc9=_0x7d93a7[_0x4a0679];Object[_0x54abee(0xe7)](_0x4e7cc9)['forEach'](_0x5955cb=>{const _0x3ceb0d=_0x54abee;this[_0x3ceb0d(0x121)](_0x4a0679,_0x5955cb)[_0x3ceb0d(0x101)](_0x4e7cc9[_0x5955cb]);});});}[_0x297a7f(0x133)](){const _0x6ab14b=_0x297a7f;this[_0x6ab14b(0xdb)][_0x6ab14b(0xdf)]({'pluginName':_0x41ed77,'businesses':[_0x2b7f8f[_0x6ab14b(0x106)][_0x6ab14b(0x126)]],'toJson':_0x50dfc9=>this[_0x6ab14b(0x10e)](_0x50dfc9),'parseJson':_0x26221b=>JSON[_0x6ab14b(0x115)](_0x26221b),'onLoad':(_0x598228,_0x512e2c)=>{const _0x31603b=_0x6ab14b;this[_0x31603b(0x131)](_0x598228,_0x512e2c);},'onUnLoad':_0x3e66af=>{const _0x45d6bc=_0x6ab14b,_0x289664=this[_0x45d6bc(0xd5)][_0x45d6bc(0xd0)](_0x3e66af);_0x289664&&(_0x289664['forEach'](_0x10b737=>{const _0x184b2a=_0x45d6bc;_0x10b737[_0x184b2a(0x102)]();}),this['_shapeModelManagerMap']['delete'](_0x3e66af));}});}['dispose'](){const _0x2e1ff0=_0x297a7f;this[_0x2e1ff0(0xd5)]['forEach'](_0x4a2901=>{const _0x3cc263=_0x2e1ff0;_0x4a2901[_0x3cc263(0xdc)](_0x26ff0a=>{const _0x4ca1b5=_0x3cc263;_0x26ff0a[_0x4ca1b5(0x102)]();});});}},_0x4ab130[_0x297a7f(0x11f)]=_0x49e747([_0x3ccee9(0x0,_0x2b7f8f[_0x297a7f(0xff)])],_0x4ab130[_0x297a7f(0x11f)]);const _0x21b8fb={'id':'sheet.mutation.update-shape-type','type':_0x2b7f8f[_0x297a7f(0xfd)][_0x297a7f(0xf7)],'handler':(_0x468ab8,_0xb86374)=>{const _0x1abd95=_0x297a7f,{unitId:_0x57d44d,subUnitId:_0xbd19f2,shapeType:_0x455e78,shapeId:_0x156170,shapeData:_0x3dc1f4}=_0xb86374,_0x4d1f24=_0x468ab8[_0x1abd95(0xd0)](_0x4ab130['SheetsShapeServices'])[_0x1abd95(0x112)](_0x57d44d,_0xbd19f2,_0x156170);return _0x4d1f24&&(_0x4d1f24[_0x1abd95(0xf6)](_0x455e78),_0x3dc1f4&&(_0x4d1f24==null||_0x4d1f24[_0x1abd95(0x122)](_0x3dc1f4))),!0x0;}},_0x5f9682={'id':_0x297a7f(0xec),'type':_0x2b7f8f[_0x297a7f(0xfd)][_0x297a7f(0xde)],'handler':(_0xb9d7d7,_0x444407)=>{const _0x154814=_0x297a7f;if(!_0x444407)return!0x1;const _0x3fa9da=_0xb9d7d7[_0x154814(0xd0)](_0x2b7f8f['ICommandService']),_0x26441e=_0xb9d7d7[_0x154814(0xd0)](_0x4ab130[_0x154814(0x11f)]),_0x40f9d5=_0xb9d7d7[_0x154814(0xd0)](_0x2b7f8f[_0x154814(0x136)]),_0x38d07b=[],_0x23efe7=[],{unitId:_0x508363,subUnitId:_0x601841,shapeId:_0x4c90e0,shapeType:_0x28c84e,shapeData:_0x2ba043}=_0x444407,_0x3b9608=_0x26441e[_0x154814(0x112)](_0x508363,_0x601841,_0x4c90e0);if(_0x3b9608){const _0xddbf40=_0x3b9608['getShapeType'](),_0x5c6d4e=Object[_0x154814(0x119)]({},_0x3b9608[_0x154814(0x129)]()),_0x421c45={'unitId':_0x508363,'subUnitId':_0x601841,'shapeId':_0x4c90e0,'shapeType':_0x28c84e,'shapeData':_0x2ba043},_0x2db446={'unitId':_0x508363,'subUnitId':_0x601841,'shapeId':_0x4c90e0,'shapeType':_0xddbf40,'shapeData':_0x5c6d4e};return _0x38d07b[_0x154814(0x111)]({'id':_0x21b8fb['id'],'params':_0x421c45}),_0x23efe7[_0x154814(0x111)]({'id':_0x21b8fb['id'],'params':_0x2db446}),_0x38d07b[_0x154814(0x135)](_0x27df98=>_0x3fa9da['syncExecuteCommand'](_0x27df98['id'],_0x27df98['params']))&&_0x40f9d5[_0x154814(0x108)]({'unitID':_0x508363,'redoMutations':[..._0x38d07b],'undoMutations':[..._0x23efe7]}),!0x0;}return!0x1;}},_0x4826bf={'id':_0x297a7f(0x12d),'type':_0x2b7f8f['CommandType'][_0x297a7f(0xf7)],'handler':(_0xaa5eaa,_0x412579)=>{const _0x15f87f=_0x297a7f,{unitId:_0x44f7e5,subUnitId:_0x367349,shapeType:_0x323f05,shapeId:_0x56bf9,shapeData:_0x17d59f}=_0x412579;return _0xaa5eaa[_0x15f87f(0xd0)](_0x4ab130[_0x15f87f(0x11f)])[_0x15f87f(0xdd)](_0x44f7e5,_0x367349,_0x323f05,_0x56bf9,_0x17d59f),!0x0;}},_0x21ddb3={'id':'sheet.mutation.remove-shape','type':_0x2b7f8f[_0x297a7f(0xfd)]['MUTATION'],'handler':(_0x1db28b,_0x1da58f)=>{const _0x146de5=_0x297a7f,{unitId:_0x44a80d,subUnitId:_0x287cf1,shapeId:_0x47794d}=_0x1da58f;return _0x1db28b[_0x146de5(0xd0)](_0x4ab130[_0x146de5(0x11f)])[_0x146de5(0x11b)](_0x44a80d,_0x287cf1,_0x47794d),!0x0;}},_0x5b2120={'id':'sheet.mutation.update-shape-data','type':_0x2b7f8f['CommandType'][_0x297a7f(0xf7)],'handler':(_0x38a98e,_0x56d0a2)=>{const _0x3bedcf=_0x297a7f,{unitId:_0x10807c,subUnitId:_0x16a6bf,shapeType:_0x41c0f1,shapeId:_0x4f31e4,shapeData:_0x222cde}=_0x56d0a2,_0x55c8f6=_0x38a98e[_0x3bedcf(0xd0)](_0x4ab130['SheetsShapeServices'])[_0x3bedcf(0x112)](_0x10807c,_0x16a6bf,_0x4f31e4);return _0x55c8f6&&(_0x41c0f1!==void 0x0&&_0x55c8f6['setShapeType'](_0x41c0f1),_0x222cde&&(_0x55c8f6==null||_0x55c8f6['setShapeData'](_0x222cde,!0x0))),!0x0;}},_0x49ce73=_0x297a7f(0x134),_0x206c06={};var _0x5a0e25=Object[_0x297a7f(0x10a)],_0x1b5b47=Object[_0x297a7f(0x12c)],_0x48ff39=(_0x2b3126,_0x4667cd,_0x2372ec)=>_0x4667cd in _0x2b3126?_0x5a0e25(_0x2b3126,_0x4667cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2372ec}):_0x2b3126[_0x4667cd]=_0x2372ec,_0x5dbe0f=(_0x8d00e6,_0x42c87c,_0x341c6d,_0x46383a)=>{for(var _0x41f464=_0x46383a>0x1?void 0x0:_0x46383a?_0x1b5b47(_0x42c87c,_0x341c6d):_0x42c87c,_0x4a182c=_0x8d00e6['length']-0x1,_0x4d1ab5;_0x4a182c>=0x0;_0x4a182c--)(_0x4d1ab5=_0x8d00e6[_0x4a182c])&&(_0x41f464=_0x4d1ab5(_0x41f464)||_0x41f464);return _0x41f464;},_0x272674=(_0x25a63a,_0x49fcb4)=>(_0x27a700,_0x2d1817)=>_0x49fcb4(_0x27a700,_0x2d1817,_0x25a63a),_0x3aec7f=(_0x5ec026,_0x3fd318,_0xcaca84)=>_0x48ff39(_0x5ec026,typeof _0x3fd318!=_0x297a7f(0x120)?_0x3fd318+'':_0x3fd318,_0xcaca84);const _0x37131e=_0x297a7f(0x12b);_0x4ab130['UniverSheetsShapePlugin']=class extends _0x2b7f8f[_0x297a7f(0x128)]{constructor(_0x371679=_0x206c06,_0x744bd7,_0x362a23,_0xeb12ae){const _0x247db2=_0x297a7f;super(),this[_0x247db2(0xee)]=_0x371679,this[_0x247db2(0x110)]=_0x744bd7,this[_0x247db2(0x11c)]=_0x362a23,this['_configService']=_0xeb12ae;const {..._0x56607c}=_0x2b7f8f[_0x247db2(0xe0)]({},_0x206c06,this['_config']);this['_configService']['setConfig'](_0x49ce73,_0x56607c),this[_0x247db2(0x109)]();}[_0x297a7f(0x117)](){const _0x1c2c25=_0x297a7f;_0x2b7f8f[_0x1c2c25(0xe3)](this[_0x1c2c25(0x110)],[]);}[_0x297a7f(0x114)](){const _0x1955d8=_0x297a7f,_0x3989aa=this[_0x1955d8(0x110)];[[_0x2b1b1b],[_0x4ab130[_0x1955d8(0x11f)]]][_0x1955d8(0xdc)](_0x520088=>_0x3989aa[_0x1955d8(0xd2)](_0x520088));}['_initCommands'](){[_0x4826bf,_0x21ddb3,_0x21b8fb,_0x5b2120]['forEach'](_0x4c55b4=>this['disposeWithMe'](this['_commandService']['registerCommand'](_0x4c55b4)));}},_0x3aec7f(_0x4ab130[_0x297a7f(0xda)],_0x297a7f(0xed),_0x2b7f8f['UniverInstanceType'][_0x297a7f(0x126)]),_0x3aec7f(_0x4ab130[_0x297a7f(0xda)],_0x297a7f(0x12a),_0x37131e),_0x4ab130[_0x297a7f(0xda)]=_0x5dbe0f([_0x2b7f8f[_0x297a7f(0x123)](_0x3186de[_0x297a7f(0x132)]),_0x272674(0x1,_0x2b7f8f['Inject'](_0x2b7f8f[_0x297a7f(0xef)])),_0x272674(0x2,_0x2b7f8f[_0x297a7f(0x10c)]),_0x272674(0x3,_0x2b7f8f[_0x297a7f(0xd4)])],_0x4ab130[_0x297a7f(0xda)]),_0x4ab130[_0x297a7f(0x12e)]=_0x4826bf,_0x4ab130['RemoveSheetsShapeMutation']=_0x21ddb3,_0x4ab130[_0x297a7f(0x104)]=_0x5b2120,_0x4ab130[_0x297a7f(0xd1)]=_0x5f9682,_0x4ab130['UpdateSheetsShapeTypeMutation']=_0x21b8fb,Object[_0x297a7f(0x10a)](_0x4ab130,Symbol[_0x297a7f(0xe8)],{'value':_0x297a7f(0xf4)});}));
1
+ (function(_0x5c465e,_0x27b3f2){const _0x1556c5=_0x3fb4,_0x45eb1e=_0x5c465e();while(!![]){try{const _0x2b9c39=parseInt(_0x1556c5(0x138))/0x1*(parseInt(_0x1556c5(0x105))/0x2)+parseInt(_0x1556c5(0xd5))/0x3*(-parseInt(_0x1556c5(0x12d))/0x4)+-parseInt(_0x1556c5(0x119))/0x5*(-parseInt(_0x1556c5(0xeb))/0x6)+-parseInt(_0x1556c5(0x102))/0x7+-parseInt(_0x1556c5(0x11f))/0x8+parseInt(_0x1556c5(0xf5))/0x9*(parseInt(_0x1556c5(0xd6))/0xa)+-parseInt(_0x1556c5(0x108))/0xb*(-parseInt(_0x1556c5(0xff))/0xc);if(_0x2b9c39===_0x27b3f2)break;else _0x45eb1e['push'](_0x45eb1e['shift']());}catch(_0x3e5f1e){_0x45eb1e['push'](_0x45eb1e['shift']());}}}(_0xb57f,0x3ba19),function(_0x3c66f3,_0x5a7fcc){const _0x125884=_0x3fb4;typeof exports==_0x125884(0x103)&&typeof module<'u'?_0x5a7fcc(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x125884(0xf6)&&define['amd']?define([_0x125884(0x116),_0x125884(0x118),_0x125884(0x100),'@univerjs-pro/license'],_0x5a7fcc):(_0x3c66f3=typeof globalThis<'u'?globalThis:_0x3c66f3||self,_0x5a7fcc(_0x3c66f3[_0x125884(0x121)]={},_0x3c66f3[_0x125884(0x130)],_0x3c66f3['UniverProEngineShape'],_0x3c66f3[_0x125884(0x122)]));}(this,function(_0xa50417,_0x59fc20,_0x3997a4,_0x52095c){'use strict';const _0x302741=_0x3fb4;var _0x4ad5fc=Object[_0x302741(0xe1)],_0x36b9c0=(_0x23dd5f,_0x23ef4a,_0xc93af8)=>_0x23ef4a in _0x23dd5f?_0x4ad5fc(_0x23dd5f,_0x23ef4a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc93af8}):_0x23dd5f[_0x23ef4a]=_0xc93af8,_0x2b15a5=(_0x85a2d6,_0x2fb4d0,_0x55e359)=>_0x36b9c0(_0x85a2d6,typeof _0x2fb4d0!=_0x302741(0xe6)?_0x2fb4d0+'':_0x2fb4d0,_0x55e359);class _0x49491e extends _0x59fc20[_0x302741(0x132)]{constructor(){const _0x39c8e2=_0x302741;super(),_0x2b15a5(this,_0x39c8e2(0x11d),new Map()),_0x2b15a5(this,_0x39c8e2(0xe0),new Set()),_0x2b15a5(this,'_groupIds',new Set());}[_0x302741(0x12b)](_0x4729ec,_0x1042ed,_0x3f2a59){const _0x1c073e=_0x302741,_0x5e860d=new _0x3997a4[(_0x1c073e(0x12e))](_0x4729ec,_0x1042ed,_0x3f2a59);return this['_shapes'][_0x1c073e(0x109)](_0x1042ed,_0x5e860d),_0x3997a4['isConnectorShape'](_0x4729ec)&&this[_0x1c073e(0xe0)][_0x1c073e(0x104)](_0x1042ed),_0x5e860d;}[_0x302741(0xdd)](_0x1d16be){const _0x5d6e25=_0x302741;var _0x49c206,_0x51ed09;const _0x3509d9=[];for(const _0x3204a9 of this[_0x5d6e25(0xe0)]){const _0xb06147=this[_0x5d6e25(0x11d)][_0x5d6e25(0xe3)](_0x3204a9);if(_0xb06147){const _0x360a96=_0xb06147[_0x5d6e25(0xef)]();_0x360a96&&(((_0x49c206=_0x360a96['from'])==null?void 0x0:_0x49c206[_0x5d6e25(0x10a)])===_0x1d16be&&_0x3509d9[_0x5d6e25(0x123)]({..._0x360a96[_0x5d6e25(0x136)],'lineShapeId':_0x3204a9,'isFrom':!0x0}),((_0x51ed09=_0x360a96['to'])==null?void 0x0:_0x51ed09[_0x5d6e25(0x10a)])===_0x1d16be&&_0x3509d9['push']({..._0x360a96['to'],'lineShapeId':_0x3204a9,'isFrom':!0x1}));}}return _0x3509d9;}[_0x302741(0x11c)](_0x4d27c6){const _0x34f0c7=_0x302741,_0x35c688=this['_shapes'][_0x34f0c7(0xe3)](_0x4d27c6);if(_0x35c688)return _0x35c688['getShapeRelation']();}[_0x302741(0x12a)](_0x103d9f){const _0x482e4b=_0x302741,_0x2c7e2c=this[_0x482e4b(0x11d)][_0x482e4b(0xe3)](_0x103d9f);if(_0x2c7e2c)return _0x2c7e2c[_0x482e4b(0x12a)]();}['hasShape'](_0x24e08c){const _0x5a2842=_0x302741;return this['_shapes'][_0x5a2842(0x113)](_0x24e08c);}[_0x302741(0xf0)](_0x5a1962){const _0x38f868=_0x302741,_0x32dee5=this[_0x38f868(0x11d)]['get'](_0x5a1962);_0x32dee5&&(_0x3997a4['isConnectorShape'](_0x32dee5[_0x38f868(0x12a)]())&&this[_0x38f868(0xe0)][_0x38f868(0xf4)](_0x5a1962),this[_0x38f868(0x11d)]['delete'](_0x5a1962));}[_0x302741(0x11e)](){const _0x265ef4=_0x302741,_0x566317=[];return this[_0x265ef4(0x11d)]['forEach'](_0x429103=>{const _0x2e4f1e=_0x265ef4;_0x566317[_0x2e4f1e(0x123)](_0x429103['toJSON']());}),_0x566317;}[_0x302741(0xd8)](_0x9b1518){const _0x26b656=_0x302741;for(const _0x4860ed of _0x9b1518){const {id:_0x4cb3e4,shapeType:_0x49a3be}=_0x4860ed,_0x56c29e=this[_0x26b656(0x12b)](_0x49a3be,_0x4cb3e4,_0x4860ed[_0x26b656(0xf7)]);_0x56c29e&&_0x56c29e[_0x26b656(0xd7)]()&&this[_0x26b656(0xe0)][_0x26b656(0x104)](_0x4cb3e4);}}[_0x302741(0x12c)](){const _0x40b319=_0x302741;this[_0x40b319(0xde)]||(this['_shapes'][_0x40b319(0xe9)](_0x3eaa40=>{const _0x5326dc=_0x40b319;_0x3eaa40[_0x5326dc(0x12c)]();}),this[_0x40b319(0x11d)][_0x40b319(0xd3)](),this[_0x40b319(0xe0)][_0x40b319(0xd3)](),this['_groupIds']['clear'](),super['dispose']());}}var _0x561b1a=Object['getOwnPropertyDescriptor'],_0x5675c8=(_0x385ad4,_0x4f0841,_0x2ccce4,_0x2880c3)=>{const _0x3445bf=_0x302741;for(var _0x3d63fa=_0x2880c3>0x1?void 0x0:_0x2880c3?_0x561b1a(_0x4f0841,_0x2ccce4):_0x4f0841,_0x56ef45=_0x385ad4[_0x3445bf(0x101)]-0x1,_0x694dd;_0x56ef45>=0x0;_0x56ef45--)(_0x694dd=_0x385ad4[_0x56ef45])&&(_0x3d63fa=_0x694dd(_0x3d63fa)||_0x3d63fa);return _0x3d63fa;},_0x359d87=(_0x371342,_0x547c2c)=>(_0x557e7d,_0x447171)=>_0x547c2c(_0x557e7d,_0x447171,_0x371342);const _0x590218='SHEET_SHAPE_PLUGIN';_0xa50417[_0x302741(0xe2)]=class extends _0x59fc20['Disposable']{constructor(_0x59e6f6){const _0xe66563=_0x302741;super(),_0x2b15a5(this,_0xe66563(0xe4),new Map()),(this['_resourcesManagerService']=_0x59e6f6,this[_0xe66563(0x133)]());}[_0x302741(0x115)](_0x1475df,_0x392832){const _0x4e67f6=_0x302741;let _0x2710f9=this[_0x4e67f6(0xe4)][_0x4e67f6(0xe3)](_0x1475df);_0x2710f9||(_0x2710f9=new Map(),this[_0x4e67f6(0xe4)][_0x4e67f6(0x109)](_0x1475df,_0x2710f9));let _0x5e46f7=_0x2710f9[_0x4e67f6(0xe3)](_0x392832);return _0x5e46f7||(_0x5e46f7=new _0x49491e(),_0x2710f9['set'](_0x392832,_0x5e46f7)),_0x5e46f7;}[_0x302741(0x11a)](_0x30727c,_0x24a095,_0x2c8afc,_0x1a9b5d,_0x2ba7dd){const _0x54f195=_0x302741;this[_0x54f195(0x115)](_0x30727c,_0x24a095)['addShape'](_0x2c8afc,_0x1a9b5d,_0x2ba7dd);}['removeShape'](_0x4f5fbc,_0x4719f7,_0x525b92){const _0xcf54e1=_0x302741;this[_0xcf54e1(0x115)](_0x4f5fbc,_0x4719f7)[_0xcf54e1(0xf0)](_0x525b92);}['getBasicShapeType'](_0x1f113c,_0x37a2a3,_0x5894d0){const _0x2e0446=_0x302741;return this[_0x2e0446(0x115)](_0x1f113c,_0x37a2a3)[_0x2e0446(0x12a)](_0x5894d0);}[_0x302741(0x12a)](_0x385086,_0x397a5c,_0x4abc32){const _0x2fb377=_0x302741;return this[_0x2fb377(0x115)](_0x385086,_0x397a5c)['getShapeType'](_0x4abc32);}[_0x302741(0x120)](_0x33c858,_0x116e6b,_0x1e01d0){const _0xa5091=_0x302741;return this[_0xa5091(0x115)](_0x33c858,_0x116e6b)[_0xa5091(0x120)](_0x1e01d0);}[_0x302741(0xdc)](_0x32e79a,_0x3015f5,_0x35c7c2){const _0x17ea3b=_0x302741;return this[_0x17ea3b(0x115)](_0x32e79a,_0x3015f5)[_0x17ea3b(0x12a)](_0x35c7c2);}[_0x302741(0x12f)](_0x6d187c,_0x29f525,_0x2b4284){const _0x51cf1a=_0x302741,_0x34de26=this[_0x51cf1a(0x115)](_0x6d187c,_0x29f525);if(!_0x34de26['getShapeType'](_0x2b4284))return;const _0x538235=_0x34de26[_0x51cf1a(0x11d)]['get'](_0x2b4284);if(_0x538235)return _0x538235[_0x51cf1a(0x111)]();}[_0x302741(0xda)](_0x343369,_0x274d3c,_0x502e29){const _0x4c492b=_0x302741;return this[_0x4c492b(0x115)](_0x343369,_0x274d3c)[_0x4c492b(0x11d)][_0x4c492b(0xe3)](_0x502e29);}[_0x302741(0xdd)](_0x430bc5,_0x2985bb,_0x3606d1){const _0x6919b9=_0x302741;return this[_0x6919b9(0x115)](_0x430bc5,_0x2985bb)[_0x6919b9(0xdd)](_0x3606d1);}[_0x302741(0x11c)](_0x133d4a,_0x29d4d9,_0x26954c){const _0x4b04d5=_0x302741,_0x48fa46=this[_0x4b04d5(0x115)](_0x133d4a,_0x29d4d9)[_0x4b04d5(0x11d)][_0x4b04d5(0xe3)](_0x26954c);if(_0x48fa46)return _0x48fa46[_0x4b04d5(0xef)]();}[_0x302741(0xd4)](){}[_0x302741(0x10f)](_0x1946e7){const _0x48c905=_0x302741,_0x74306d={},_0x7db3a7=this[_0x48c905(0xe4)][_0x48c905(0xe3)](_0x1946e7);return _0x7db3a7&&_0x7db3a7['forEach']((_0x3cf0a9,_0x121a17)=>{_0x74306d[_0x121a17]=_0x3cf0a9['toJSON']();}),JSON[_0x48c905(0xd9)](_0x74306d);}[_0x302741(0xfb)](_0x138fc5,_0x3ea9cc){const _0x4ff6b9=_0x302741;Object[_0x4ff6b9(0x13a)](_0x3ea9cc)[_0x4ff6b9(0xe9)](_0x3ffd06=>{const _0xaa7d27=_0x4ff6b9;this[_0xaa7d27(0x115)](_0x138fc5,_0x3ffd06)[_0xaa7d27(0xd8)](_0x3ea9cc[_0x3ffd06]);});}[_0x302741(0x11e)](){const _0x2add46=_0x302741,_0x2573c0={};return this[_0x2add46(0xe4)][_0x2add46(0xe9)]((_0xb358a6,_0x3ef6ce)=>{const _0x24e164=_0x2add46;_0x2573c0[_0x3ef6ce]={},_0xb358a6[_0x24e164(0xe9)]((_0x1d4471,_0x56b888)=>{const _0x1c5693=_0x24e164;_0x2573c0[_0x3ef6ce][_0x56b888]=_0x1d4471[_0x1c5693(0x11e)]();});}),_0x2573c0;}['fromJSON'](_0x8f0f4f){const _0x37c782=_0x302741;Object[_0x37c782(0x13a)](_0x8f0f4f)[_0x37c782(0xe9)](_0x13e672=>{const _0x21854a=_0x37c782,_0x3d8619=_0x8f0f4f[_0x13e672];Object[_0x21854a(0x13a)](_0x3d8619)[_0x21854a(0xe9)](_0x10e133=>{const _0x57c041=_0x21854a;this[_0x57c041(0x115)](_0x13e672,_0x10e133)[_0x57c041(0xd8)](_0x3d8619[_0x10e133]);});});}[_0x302741(0x133)](){const _0xf85df9=_0x302741;this[_0xf85df9(0x117)][_0xf85df9(0x126)]({'pluginName':_0x590218,'businesses':[_0x59fc20[_0xf85df9(0x125)][_0xf85df9(0x110)]],'toJson':_0x30c042=>this[_0xf85df9(0x10f)](_0x30c042),'parseJson':_0x51a78a=>JSON[_0xf85df9(0xec)](_0x51a78a),'onLoad':(_0xdba56a,_0xfa94ae)=>{this['_deserializeShapeForUnit'](_0xdba56a,_0xfa94ae);},'onUnLoad':_0x45085c=>{const _0x8eb7ca=_0xf85df9,_0x521738=this[_0x8eb7ca(0xe4)]['get'](_0x45085c);_0x521738&&(_0x521738[_0x8eb7ca(0xe9)](_0xb23b06=>{_0xb23b06['dispose']();}),this[_0x8eb7ca(0xe4)][_0x8eb7ca(0xf4)](_0x45085c));}});}['dispose'](){const _0x33a262=_0x302741;this[_0x33a262(0xe4)][_0x33a262(0xe9)](_0x1e41f2=>{const _0x476d0e=_0x33a262;_0x1e41f2[_0x476d0e(0xe9)](_0x3aa39c=>{const _0x3d7974=_0x476d0e;_0x3aa39c[_0x3d7974(0x12c)]();});});}},_0xa50417[_0x302741(0xe2)]=_0x5675c8([_0x359d87(0x0,_0x59fc20[_0x302741(0x112)])],_0xa50417[_0x302741(0xe2)]);const _0x4dba2d={'id':'sheet.mutation.update-shape-type','type':_0x59fc20[_0x302741(0xfa)]['MUTATION'],'handler':(_0x669cf6,_0xe805c7)=>{const _0x359006=_0x302741,{unitId:_0x534e16,subUnitId:_0x1d954e,shapeType:_0x179be0,shapeId:_0x426bdb,shapeData:_0x182b24}=_0xe805c7,_0x28eca6=_0x669cf6[_0x359006(0xe3)](_0xa50417[_0x359006(0xe2)])[_0x359006(0xda)](_0x534e16,_0x1d954e,_0x426bdb);return _0x28eca6&&(_0x28eca6[_0x359006(0xd4)](_0x179be0),_0x182b24&&(_0x28eca6==null||_0x28eca6['setShapeData'](_0x182b24))),!0x0;}},_0x196dbd={'id':'sheet.command.update-shape-type','type':_0x59fc20['CommandType']['COMMAND'],'handler':(_0x5aec38,_0x3ee364)=>{const _0x343350=_0x302741;if(!_0x3ee364)return!0x1;const _0x5903f7=_0x5aec38[_0x343350(0xe3)](_0x59fc20['ICommandService']),_0x29d3f6=_0x5aec38[_0x343350(0xe3)](_0xa50417[_0x343350(0xe2)]),_0x4f5208=_0x5aec38[_0x343350(0xe3)](_0x59fc20['IUndoRedoService']),_0x4bd48f=[],_0x378751=[],{unitId:_0x2b93b5,subUnitId:_0xbfb9ba,shapeId:_0x27bcb0,shapeType:_0x404ca9,shapeData:_0x3c581e}=_0x3ee364,_0x289c7c=_0x29d3f6[_0x343350(0xda)](_0x2b93b5,_0xbfb9ba,_0x27bcb0);if(_0x289c7c){const _0x38b18e=_0x289c7c[_0x343350(0x12a)](),_0x378023=Object[_0x343350(0x124)]({},_0x289c7c['getShapeData']()),_0x174969={'unitId':_0x2b93b5,'subUnitId':_0xbfb9ba,'shapeId':_0x27bcb0,'shapeType':_0x404ca9,'shapeData':_0x3c581e},_0x1ffea9={'unitId':_0x2b93b5,'subUnitId':_0xbfb9ba,'shapeId':_0x27bcb0,'shapeType':_0x38b18e,'shapeData':_0x378023};return _0x4bd48f[_0x343350(0x123)]({'id':_0x4dba2d['id'],'params':_0x174969}),_0x378751['push']({'id':_0x4dba2d['id'],'params':_0x1ffea9}),_0x4bd48f['every'](_0x448af=>_0x5903f7[_0x343350(0xe8)](_0x448af['id'],_0x448af[_0x343350(0x10c)]))&&_0x4f5208[_0x343350(0xee)]({'unitID':_0x2b93b5,'redoMutations':[..._0x4bd48f],'undoMutations':[..._0x378751]}),!0x0;}return!0x1;}},_0x58dabc={'id':_0x302741(0x131),'type':_0x59fc20['CommandType'][_0x302741(0x129)],'handler':(_0x1b1064,_0x4db31a)=>{const _0x39d709=_0x302741,{unitId:_0x3637b9,subUnitId:_0x47a4de,shapeType:_0x21d0c7,shapeId:_0x5ab307,shapeData:_0x37df74}=_0x4db31a;return _0x1b1064[_0x39d709(0xe3)](_0xa50417['SheetsShapeServices'])[_0x39d709(0x11a)](_0x3637b9,_0x47a4de,_0x21d0c7,_0x5ab307,_0x37df74),!0x0;}},_0x43509c={'id':_0x302741(0x10e),'type':_0x59fc20['CommandType'][_0x302741(0x129)],'handler':(_0x370a09,_0x3a7d1d)=>{const _0x52f6bc=_0x302741,{unitId:_0xadc44c,subUnitId:_0xdfc94d,shapeId:_0x1d5391}=_0x3a7d1d;return _0x370a09[_0x52f6bc(0xe3)](_0xa50417[_0x52f6bc(0xe2)])[_0x52f6bc(0xf0)](_0xadc44c,_0xdfc94d,_0x1d5391),!0x0;}},_0x4cee9e={'id':'sheet.mutation.update-shape-data','type':_0x59fc20[_0x302741(0xfa)]['MUTATION'],'handler':(_0x594bc5,_0x4e182b)=>{const _0x266718=_0x302741,{unitId:_0x2c1fb0,subUnitId:_0x5b34e8,shapeType:_0x44b167,shapeId:_0x48c2a7,shapeData:_0x125ce0}=_0x4e182b,_0x1303a9=_0x594bc5['get'](_0xa50417['SheetsShapeServices'])[_0x266718(0xda)](_0x2c1fb0,_0x5b34e8,_0x48c2a7);return _0x1303a9&&(_0x44b167!==void 0x0&&_0x1303a9[_0x266718(0xd4)](_0x44b167),_0x125ce0&&(_0x1303a9==null||_0x1303a9[_0x266718(0x13b)](_0x125ce0,!0x0))),!0x0;}},_0x23ecbb=_0x302741(0x139),_0x577969={};var _0x64370=Object['defineProperty'],_0x19d3f7=Object[_0x302741(0x114)],_0x20adaa=(_0x2f7251,_0x4fa94a,_0xf4f40c)=>_0x4fa94a in _0x2f7251?_0x64370(_0x2f7251,_0x4fa94a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf4f40c}):_0x2f7251[_0x4fa94a]=_0xf4f40c,_0x52b945=(_0x36dd8f,_0x5eaa11,_0x21cb86,_0x42cb52)=>{const _0x496cbe=_0x302741;for(var _0x45e4e1=_0x42cb52>0x1?void 0x0:_0x42cb52?_0x19d3f7(_0x5eaa11,_0x21cb86):_0x5eaa11,_0x3f4157=_0x36dd8f[_0x496cbe(0x101)]-0x1,_0x5e1580;_0x3f4157>=0x0;_0x3f4157--)(_0x5e1580=_0x36dd8f[_0x3f4157])&&(_0x45e4e1=_0x5e1580(_0x45e4e1)||_0x45e4e1);return _0x45e4e1;},_0x3d7e45=(_0x218751,_0x5ed25f)=>(_0x7ed982,_0x54e0f0)=>_0x5ed25f(_0x7ed982,_0x54e0f0,_0x218751),_0x4b7a2a=(_0x23b30c,_0x3a7aca,_0x331c78)=>_0x20adaa(_0x23b30c,typeof _0x3a7aca!=_0x302741(0xe6)?_0x3a7aca+'':_0x3a7aca,_0x331c78);const _0x1bb9bf=_0x302741(0x137);_0xa50417[_0x302741(0xdb)]=class extends _0x59fc20[_0x302741(0xf9)]{constructor(_0x51c342=_0x577969,_0x2c31b4,_0x1c9ce0,_0x347c3e){const _0x4889c2=_0x302741;super(),this[_0x4889c2(0x106)]=_0x51c342,this[_0x4889c2(0xfe)]=_0x2c31b4,this[_0x4889c2(0xf3)]=_0x1c9ce0,this['_configService']=_0x347c3e;const {..._0x3f245d}=_0x59fc20['merge']({},_0x577969,this[_0x4889c2(0x106)]);this[_0x4889c2(0x11b)][_0x4889c2(0x10d)](_0x23ecbb,_0x3f245d),this[_0x4889c2(0x128)]();}[_0x302741(0x10b)](){_0x59fc20['touchDependencies'](this['_injector'],[]);}[_0x302741(0xed)](){const _0x446720=_0x302741,_0x3d92e9=this[_0x446720(0xfe)];[[_0x49491e],[_0xa50417[_0x446720(0xe2)]]][_0x446720(0xe9)](_0x403ca8=>_0x3d92e9[_0x446720(0x104)](_0x403ca8));}['_initCommands'](){const _0x58b074=_0x302741;[_0x58dabc,_0x43509c,_0x4dba2d,_0x4cee9e][_0x58b074(0xe9)](_0x3c0fd7=>this[_0x58b074(0xea)](this['_commandService']['registerCommand'](_0x3c0fd7)));}},_0x4b7a2a(_0xa50417[_0x302741(0xdb)],'type',_0x59fc20['UniverInstanceType'][_0x302741(0x110)]),_0x4b7a2a(_0xa50417[_0x302741(0xdb)],_0x302741(0x135),_0x1bb9bf),_0xa50417[_0x302741(0xdb)]=_0x52b945([_0x59fc20[_0x302741(0xf1)](_0x52095c[_0x302741(0xf8)]),_0x3d7e45(0x1,_0x59fc20[_0x302741(0x127)](_0x59fc20[_0x302741(0xe5)])),_0x3d7e45(0x2,_0x59fc20[_0x302741(0xe7)]),_0x3d7e45(0x3,_0x59fc20['IConfigService'])],_0xa50417[_0x302741(0xdb)]),_0xa50417[_0x302741(0x107)]=_0x58dabc,_0xa50417[_0x302741(0x134)]=_0x43509c,_0xa50417[_0x302741(0xfd)]=_0x4cee9e,_0xa50417[_0x302741(0xfc)]=_0x196dbd,_0xa50417['UpdateSheetsShapeTypeMutation']=_0x4dba2d,Object[_0x302741(0xe1)](_0xa50417,Symbol[_0x302741(0xf2)],{'value':_0x302741(0xdf)});}));function _0x3fb4(_0x205f4e,_0x41a07b){_0x205f4e=_0x205f4e-0xd3;const _0xb57f01=_0xb57f();let _0x3fb415=_0xb57f01[_0x205f4e];return _0x3fb415;}function _0xb57f(){const _0x1d81a1=['3555YwRAwn','sheets-shape.config','keys','setShapeData','clear','setShapeType','1065027RiyWiL','30GoEAYT','isLineShape','fromJSON','stringify','getShapeModel','UniverSheetsShapePlugin','getShapeTypeById','getBasicShapeRelation','_disposed','Module','_linesIds','defineProperty','SheetsShapeServices','get','_shapeModelManagerMap','Injector','symbol','ICommandService','syncExecuteCommand','forEach','disposeWithMe','6AXlXQI','parse','onStarting','pushUndoRedo','getShapeRelation','removeShape','DependentOn','toStringTag','_commandService','delete','706032AQXSLK','function','shapeData','UniverLicensePlugin','Plugin','CommandType','_deserializeShapeForUnit','UpdateSheetsShapeTypeCommand','UpdateSheetsShapeDataMutation','_injector','720NETNaJ','@univerjs-pro/engine-shape','length','1491021lDvQJY','object','add','62vAfaLQ','_config','InsertSheetsShapeMutation','111694OFPYHX','set','shapeId','onRendered','params','setConfig','sheet.mutation.remove-shape','_serializeShapeForUnit','UNIVER_SHEET','getShapeData','IResourceManagerService','has','getOwnPropertyDescriptor','_ensureShapeModelManager','exports','_resourcesManagerService','@univerjs/core','73930dGcZum','insertShape','_configService','getLineShapeRelation','_shapes','toJSON','1258512mTZdRw','hasShape','UniverProSheetsShape','UniverProLicense','push','assign','UniverInstanceType','registerPluginResource','Inject','_initCommands','MUTATION','getShapeType','addShape','dispose','4znTWve','ShapeModel','getShapeDataById','UniverCore','sheet.mutation.insert-shape','Disposable','_initSnapshot','RemoveSheetsShapeMutation','pluginName','from','SHEET_SHAPE_PLUGIN'];_0xb57f=function(){return _0x1d81a1;};return _0xb57f();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-shape",
3
- "version": "0.15.3-insiders.20260131-cbd5fac",
3
+ "version": "0.15.4",
4
4
  "private": false,
5
5
  "description": "shape for Univer.",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,17 +57,17 @@
57
57
  "rxjs": ">=7.0.0"
58
58
  },
59
59
  "dependencies": {
60
- "@univerjs-pro/engine-shape": "0.15.3-insiders.20260131-cbd5fac",
61
- "@univerjs/core": "0.15.3-insiders.20260131-cbd5fac",
62
- "@univerjs-pro/license": "0.15.3-insiders.20260131-cbd5fac"
60
+ "@univerjs-pro/license": "0.15.4",
61
+ "@univerjs-pro/engine-shape": "0.15.4",
62
+ "@univerjs/core": "0.15.4"
63
63
  },
64
64
  "devDependencies": {
65
65
  "rxjs": "7.8.2",
66
66
  "typescript": "^5.9.3",
67
67
  "vite": "^7.3.1",
68
68
  "vitest": "^4.0.18",
69
- "@univerjs-infra/shared": "0.15.3",
70
- "@univerjs/sheets": "0.15.3-insiders.20260131-cbd5fac"
69
+ "@univerjs-infra/shared": "0.15.4",
70
+ "@univerjs/sheets": "0.15.4"
71
71
  },
72
72
  "scripts": {
73
73
  "test": "vitest run",