@univerjs-pro/sheets-shape 0.15.4-insiders.20260211-f06b0a7 → 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';function _0x5917(_0x1ac32e,_0x2fe8e5){_0x1ac32e=_0x1ac32e-0x9b;const _0x1e6e96=_0x1e6e();let _0x591727=_0x1e6e96[_0x1ac32e];return _0x591727;}const _0x16973a=_0x5917;(function(_0x279cfb,_0x47563b){const _0x1a1190=_0x5917,_0x38063c=_0x279cfb();while(!![]){try{const _0x66f175=-parseInt(_0x1a1190(0xa3))/0x1+-parseInt(_0x1a1190(0x9d))/0x2+-parseInt(_0x1a1190(0xf0))/0x3*(-parseInt(_0x1a1190(0xc7))/0x4)+-parseInt(_0x1a1190(0xe4))/0x5+-parseInt(_0x1a1190(0xcc))/0x6+parseInt(_0x1a1190(0xf7))/0x7+parseInt(_0x1a1190(0xd0))/0x8*(parseInt(_0x1a1190(0xeb))/0x9);if(_0x66f175===_0x47563b)break;else _0x38063c['push'](_0x38063c['shift']());}catch(_0x3be35d){_0x38063c['push'](_0x38063c['shift']());}}}(_0x1e6e,0xb880b));var D=Object[_0x16973a(0xf5)],C=(_0xe6f9b1,_0x21bd38,_0x9b7748)=>_0x21bd38 in _0xe6f9b1?D(_0xe6f9b1,_0x21bd38,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9b7748}):_0xe6f9b1[_0x21bd38]=_0x9b7748,S=(_0x614fd4,_0x36b432,_0x4c2246)=>C(_0x614fd4,typeof _0x36b432!=_0x16973a(0xf6)?_0x36b432+'':_0x36b432,_0x4c2246);Object[_0x16973a(0xf5)](exports,Symbol[_0x16973a(0xd3)],{'value':_0x16973a(0xd1)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');class f extends p[_0x16973a(0xea)]{constructor(){const _0x1d2e64=_0x16973a;super(),S(this,_0x1d2e64(0xd9),new Map()),S(this,_0x1d2e64(0xb9),new Set()),S(this,_0x1d2e64(0xee),new Set());}[_0x16973a(0xb4)](_0x69982f,_0x3629ec,_0x38000b){const _0x280942=_0x16973a,_0x3bd7f4=new l['ShapeModel'](_0x69982f,_0x3629ec,_0x38000b);return this[_0x280942(0xd9)][_0x280942(0xa0)](_0x3629ec,_0x3bd7f4),l[_0x280942(0xa5)](_0x69982f)&&this[_0x280942(0xb9)]['add'](_0x3629ec),_0x3bd7f4;}['getBasicShapeRelation'](_0xb7b742){const _0x8834e0=_0x16973a;var _0x30d895,_0x287061;const _0x5aa180=[];for(const _0x4309c0 of this[_0x8834e0(0xb9)]){const _0x1f3e3a=this[_0x8834e0(0xd9)][_0x8834e0(0xb6)](_0x4309c0);if(_0x1f3e3a){const _0x2c96a5=_0x1f3e3a[_0x8834e0(0xc2)]();_0x2c96a5&&(((_0x30d895=_0x2c96a5['from'])==null?void 0x0:_0x30d895['shapeId'])===_0xb7b742&&_0x5aa180[_0x8834e0(0xbf)]({..._0x2c96a5[_0x8834e0(0xef)],'lineShapeId':_0x4309c0,'isFrom':!0x0}),((_0x287061=_0x2c96a5['to'])==null?void 0x0:_0x287061[_0x8834e0(0xc9)])===_0xb7b742&&_0x5aa180[_0x8834e0(0xbf)]({..._0x2c96a5['to'],'lineShapeId':_0x4309c0,'isFrom':!0x1}));}}return _0x5aa180;}['getLineShapeRelation'](_0x1f0785){const _0x23eb15=_0x16973a,_0x901d62=this['_shapes']['get'](_0x1f0785);if(_0x901d62)return _0x901d62[_0x23eb15(0xc2)]();}['getShapeType'](_0x5e5417){const _0x2e6c4c=_0x16973a,_0x8d6c3d=this[_0x2e6c4c(0xd9)][_0x2e6c4c(0xb6)](_0x5e5417);if(_0x8d6c3d)return _0x8d6c3d['getShapeType']();}[_0x16973a(0xb1)](_0x16d773){const _0x14e692=_0x16973a;return this[_0x14e692(0xd9)][_0x14e692(0xb5)](_0x16d773);}['removeShape'](_0x4f5b72){const _0x2d83cd=_0x16973a,_0xc0d489=this[_0x2d83cd(0xd9)]['get'](_0x4f5b72);_0xc0d489&&(l['isConnectorShape'](_0xc0d489['getShapeType']())&&this[_0x2d83cd(0xb9)][_0x2d83cd(0xab)](_0x4f5b72),this[_0x2d83cd(0xd9)][_0x2d83cd(0xab)](_0x4f5b72));}[_0x16973a(0xa1)](){const _0x1f98aa=[];return this['_shapes']['forEach'](_0x448f94=>{_0x1f98aa['push'](_0x448f94['toJSON']());}),_0x1f98aa;}['fromJSON'](_0x1b2067){const _0x2aa96e=_0x16973a;for(const _0x3759c5 of _0x1b2067){const {id:_0x214091,shapeType:_0x359c68}=_0x3759c5,_0x4fd312=this[_0x2aa96e(0xb4)](_0x359c68,_0x214091,_0x3759c5[_0x2aa96e(0xbb)]);_0x4fd312&&_0x4fd312[_0x2aa96e(0xd4)]()&&this[_0x2aa96e(0xb9)]['add'](_0x214091);}}[_0x16973a(0xaf)](){const _0x3926a1=_0x16973a;this[_0x3926a1(0xa7)]||(this['_shapes'][_0x3926a1(0x9f)](_0x22172c=>{const _0x5ad8ee=_0x3926a1;_0x22172c[_0x5ad8ee(0xaf)]();}),this[_0x3926a1(0xd9)][_0x3926a1(0xbe)](),this[_0x3926a1(0xb9)][_0x3926a1(0xbe)](),this[_0x3926a1(0xee)][_0x3926a1(0xbe)](),super[_0x3926a1(0xaf)]());}}var R=Object[_0x16973a(0xe5)],J=(_0x522839,_0x3ace0c,_0xea4880,_0x39eba8)=>{const _0x3a047b=_0x16973a;for(var _0x4ffd1f=_0x39eba8>0x1?void 0x0:_0x39eba8?R(_0x3ace0c,_0xea4880):_0x3ace0c,_0x28d516=_0x522839[_0x3a047b(0xe6)]-0x1,_0x501da0;_0x28d516>=0x0;_0x28d516--)(_0x501da0=_0x522839[_0x28d516])&&(_0x4ffd1f=_0x501da0(_0x4ffd1f)||_0x4ffd1f);return _0x4ffd1f;},j=(_0x235478,_0x1f71b7)=>(_0x40030b,_0x3419cf)=>_0x1f71b7(_0x40030b,_0x3419cf,_0x235478);const w=_0x16973a(0xc5);exports['SheetsShapeServices']=class extends p['Disposable']{constructor(_0x5c7821){const _0x56e15f=_0x16973a;super(),S(this,_0x56e15f(0xe2),new Map()),(this[_0x56e15f(0x9c)]=_0x5c7821,this[_0x56e15f(0xbc)]());}[_0x16973a(0xe0)](_0x266ccd,_0x741039){const _0x3fac43=_0x16973a;let _0x36c5d5=this[_0x3fac43(0xe2)][_0x3fac43(0xb6)](_0x266ccd);_0x36c5d5||(_0x36c5d5=new Map(),this[_0x3fac43(0xe2)][_0x3fac43(0xa0)](_0x266ccd,_0x36c5d5));let _0x3c4d22=_0x36c5d5[_0x3fac43(0xb6)](_0x741039);return _0x3c4d22||(_0x3c4d22=new f(),_0x36c5d5[_0x3fac43(0xa0)](_0x741039,_0x3c4d22)),_0x3c4d22;}[_0x16973a(0xc4)](_0x275ef2,_0x40e2be,_0x118fad,_0x42878a,_0x45148f){const _0xe9bbc6=_0x16973a;this[_0xe9bbc6(0xe0)](_0x275ef2,_0x40e2be)[_0xe9bbc6(0xb4)](_0x118fad,_0x42878a,_0x45148f);}[_0x16973a(0xa2)](_0xe70e7b,_0x5f33cc,_0x37b05d){const _0x4c58a3=_0x16973a;this[_0x4c58a3(0xe0)](_0xe70e7b,_0x5f33cc)[_0x4c58a3(0xa2)](_0x37b05d);}[_0x16973a(0xa9)](_0x1abce6,_0x22d83b,_0x58dd59){const _0x1bcc1b=_0x16973a;return this[_0x1bcc1b(0xe0)](_0x1abce6,_0x22d83b)[_0x1bcc1b(0xed)](_0x58dd59);}[_0x16973a(0xed)](_0x12d931,_0x3f1c5a,_0x34d1e2){const _0xc68b83=_0x16973a;return this['_ensureShapeModelManager'](_0x12d931,_0x3f1c5a)[_0xc68b83(0xed)](_0x34d1e2);}[_0x16973a(0xb1)](_0x425428,_0x59b238,_0x1408bd){const _0x519d7d=_0x16973a;return this['_ensureShapeModelManager'](_0x425428,_0x59b238)[_0x519d7d(0xb1)](_0x1408bd);}[_0x16973a(0xc6)](_0x1eb5b1,_0x445b49,_0x40c361){const _0x170213=_0x16973a;return this[_0x170213(0xe0)](_0x1eb5b1,_0x445b49)[_0x170213(0xed)](_0x40c361);}[_0x16973a(0xe1)](_0x172a14,_0x15dfc2,_0x4d6683){const _0x4fc2ba=_0x16973a,_0x2c4521=this['_ensureShapeModelManager'](_0x172a14,_0x15dfc2);if(!_0x2c4521[_0x4fc2ba(0xed)](_0x4d6683))return;const _0x4133c6=_0x2c4521[_0x4fc2ba(0xd9)][_0x4fc2ba(0xb6)](_0x4d6683);if(_0x4133c6)return _0x4133c6[_0x4fc2ba(0xdf)]();}['getShapeModel'](_0x37b77d,_0x240a4d,_0x704778){const _0x34324f=_0x16973a;return this['_ensureShapeModelManager'](_0x37b77d,_0x240a4d)[_0x34324f(0xd9)][_0x34324f(0xb6)](_0x704778);}[_0x16973a(0xd6)](_0x17e762,_0xf35e7f,_0xf19482){const _0x253e2d=_0x16973a;return this[_0x253e2d(0xe0)](_0x17e762,_0xf35e7f)[_0x253e2d(0xd6)](_0xf19482);}[_0x16973a(0xa6)](_0x2fdf3b,_0x31662f,_0x24f01f){const _0x59e60d=_0x16973a,_0x274c24=this['_ensureShapeModelManager'](_0x2fdf3b,_0x31662f)[_0x59e60d(0xd9)]['get'](_0x24f01f);if(_0x274c24)return _0x274c24[_0x59e60d(0xc2)]();}[_0x16973a(0xd2)](){}[_0x16973a(0xde)](_0x77d8d){const _0x32388d=_0x16973a,_0x51eefb={},_0x50a904=this['_shapeModelManagerMap'][_0x32388d(0xb6)](_0x77d8d);return _0x50a904&&_0x50a904[_0x32388d(0x9f)]((_0x1150f8,_0x4c189c)=>{const _0xfe650e=_0x32388d;_0x51eefb[_0x4c189c]=_0x1150f8[_0xfe650e(0xa1)]();}),JSON[_0x32388d(0xda)](_0x51eefb);}['_deserializeShapeForUnit'](_0x193ee4,_0xa76345){const _0x5afd55=_0x16973a;Object[_0x5afd55(0xcb)](_0xa76345)['forEach'](_0x75149e=>{const _0x41d2a0=_0x5afd55;this[_0x41d2a0(0xe0)](_0x193ee4,_0x75149e)['fromJSON'](_0xa76345[_0x75149e]);});}[_0x16973a(0xa1)](){const _0x34484a=_0x16973a,_0x1b93e8={};return this[_0x34484a(0xe2)][_0x34484a(0x9f)]((_0x5e7953,_0x281e4d)=>{const _0x2c874a=_0x34484a;_0x1b93e8[_0x281e4d]={},_0x5e7953[_0x2c874a(0x9f)]((_0x5157e3,_0x254358)=>{const _0x5f50db=_0x2c874a;_0x1b93e8[_0x281e4d][_0x254358]=_0x5157e3[_0x5f50db(0xa1)]();});}),_0x1b93e8;}[_0x16973a(0xfa)](_0x17b4c3){const _0x309bf4=_0x16973a;Object[_0x309bf4(0xcb)](_0x17b4c3)[_0x309bf4(0x9f)](_0x3c14a3=>{const _0xc4084=_0x309bf4,_0x480f1c=_0x17b4c3[_0x3c14a3];Object[_0xc4084(0xcb)](_0x480f1c)['forEach'](_0x5a6b13=>{const _0x1505cc=_0xc4084;this[_0x1505cc(0xe0)](_0x3c14a3,_0x5a6b13)[_0x1505cc(0xfa)](_0x480f1c[_0x5a6b13]);});});}[_0x16973a(0xbc)](){const _0x5770e3=_0x16973a;this['_resourcesManagerService'][_0x5770e3(0xe7)]({'pluginName':w,'businesses':[p[_0x5770e3(0xb7)][_0x5770e3(0xf2)]],'toJson':_0x57fad1=>this[_0x5770e3(0xde)](_0x57fad1),'parseJson':_0x460919=>JSON['parse'](_0x460919),'onLoad':(_0xf65f10,_0x4d6815)=>{this['_deserializeShapeForUnit'](_0xf65f10,_0x4d6815);},'onUnLoad':_0xfe55b6=>{const _0xe2cbd1=_0x5770e3,_0x280155=this[_0xe2cbd1(0xe2)][_0xe2cbd1(0xb6)](_0xfe55b6);_0x280155&&(_0x280155[_0xe2cbd1(0x9f)](_0x13cafd=>{const _0xddbb4f=_0xe2cbd1;_0x13cafd[_0xddbb4f(0xaf)]();}),this[_0xe2cbd1(0xe2)][_0xe2cbd1(0xab)](_0xfe55b6));}});}[_0x16973a(0xaf)](){const _0x35f8cf=_0x16973a;this[_0x35f8cf(0xe2)]['forEach'](_0x1804ff=>{const _0x15a662=_0x35f8cf;_0x1804ff[_0x15a662(0x9f)](_0x7cbebd=>{const _0x19eccc=_0x15a662;_0x7cbebd[_0x19eccc(0xaf)]();});});}},exports[_0x16973a(0xac)]=J([j(0x0,p[_0x16973a(0xe3)])],exports[_0x16973a(0xac)]);const d={'id':_0x16973a(0xb2),'type':p[_0x16973a(0xae)][_0x16973a(0xf8)],'handler':(_0x1b33b8,_0x21823c)=>{const _0x389811=_0x16973a,{unitId:_0x28bb98,subUnitId:_0x388808,shapeType:_0x153488,shapeId:_0x2b6810,shapeData:_0xbcd11b}=_0x21823c,_0x560604=_0x1b33b8[_0x389811(0xb6)](exports[_0x389811(0xac)])['getShapeModel'](_0x28bb98,_0x388808,_0x2b6810);return _0x560604&&(_0x560604['setShapeType'](_0x153488),_0xbcd11b&&(_0x560604==null||_0x560604[_0x389811(0xb8)](_0xbcd11b))),!0x0;}},H={'id':'sheet.command.update-shape-type','type':p[_0x16973a(0xae)][_0x16973a(0xf1)],'handler':(_0x140caf,_0x1043cc)=>{const _0x41ceae=_0x16973a;if(!_0x1043cc)return!0x1;const _0x268484=_0x140caf[_0x41ceae(0xb6)](p['ICommandService']),_0x296594=_0x140caf[_0x41ceae(0xb6)](exports['SheetsShapeServices']),_0x286d35=_0x140caf[_0x41ceae(0xb6)](p[_0x41ceae(0x9e)]),_0x80c745=[],_0x1515fc=[],{unitId:_0x37e278,subUnitId:_0x1d6733,shapeId:_0x4416df,shapeType:_0x2fb32a,shapeData:_0x58ce20}=_0x1043cc,_0x3f7ac9=_0x296594[_0x41ceae(0xe8)](_0x37e278,_0x1d6733,_0x4416df);if(_0x3f7ac9){const _0x2b34d4=_0x3f7ac9[_0x41ceae(0xed)](),_0x58ef16=Object[_0x41ceae(0xcf)]({},_0x3f7ac9[_0x41ceae(0xdf)]()),_0x104696={'unitId':_0x37e278,'subUnitId':_0x1d6733,'shapeId':_0x4416df,'shapeType':_0x2fb32a,'shapeData':_0x58ce20},_0x1ea35c={'unitId':_0x37e278,'subUnitId':_0x1d6733,'shapeId':_0x4416df,'shapeType':_0x2b34d4,'shapeData':_0x58ef16};return _0x80c745[_0x41ceae(0xbf)]({'id':d['id'],'params':_0x104696}),_0x1515fc['push']({'id':d['id'],'params':_0x1ea35c}),_0x80c745[_0x41ceae(0xe9)](_0xbfb234=>_0x268484[_0x41ceae(0xbd)](_0xbfb234['id'],_0xbfb234[_0x41ceae(0xa8)]))&&_0x286d35[_0x41ceae(0xcd)]({'unitID':_0x37e278,'redoMutations':[..._0x80c745],'undoMutations':[..._0x1515fc]}),!0x0;}return!0x1;}},m={'id':_0x16973a(0xc8),'type':p['CommandType']['MUTATION'],'handler':(_0x1f7e5a,_0x2a4a74)=>{const _0x1c3490=_0x16973a,{unitId:_0x1473f6,subUnitId:_0x53ac84,shapeType:_0xb9b9e1,shapeId:_0x318454,shapeData:_0x26f011}=_0x2a4a74;return _0x1f7e5a[_0x1c3490(0xb6)](exports[_0x1c3490(0xac)])[_0x1c3490(0xc4)](_0x1473f6,_0x53ac84,_0xb9b9e1,_0x318454,_0x26f011),!0x0;}},v={'id':_0x16973a(0xdc),'type':p[_0x16973a(0xae)][_0x16973a(0xf8)],'handler':(_0x498a55,_0x3158b3)=>{const _0x154d25=_0x16973a,{unitId:_0x35a952,subUnitId:_0x18966f,shapeId:_0x1f710e}=_0x3158b3;return _0x498a55[_0x154d25(0xb6)](exports[_0x154d25(0xac)])[_0x154d25(0xa2)](_0x35a952,_0x18966f,_0x1f710e),!0x0;}},y={'id':'sheet.mutation.update-shape-data','type':p[_0x16973a(0xae)][_0x16973a(0xf8)],'handler':(_0x2a7bd9,_0x456194)=>{const _0x14ac38=_0x16973a,{unitId:_0x5e7025,subUnitId:_0x2d2a38,shapeType:_0x1dc7a3,shapeId:_0x3f26dc,shapeData:_0x2cad8b}=_0x456194,_0x3a65ff=_0x2a7bd9['get'](exports[_0x14ac38(0xac)])[_0x14ac38(0xe8)](_0x5e7025,_0x2d2a38,_0x3f26dc);return _0x3a65ff&&(_0x1dc7a3!==void 0x0&&_0x3a65ff[_0x14ac38(0xd2)](_0x1dc7a3),_0x2cad8b&&(_0x3a65ff==null||_0x3a65ff[_0x14ac38(0xb8)](_0x2cad8b,!0x0))),!0x0;}},A=_0x16973a(0xb3),_={};var L=Object[_0x16973a(0xf5)],F=Object[_0x16973a(0xe5)],B=(_0x5388f7,_0x5efe86,_0x34bb07)=>_0x5efe86 in _0x5388f7?L(_0x5388f7,_0x5efe86,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34bb07}):_0x5388f7[_0x5efe86]=_0x34bb07,G=(_0x2af4f7,_0x5f1b97,_0x35b39c,_0x4c4ea6)=>{const _0x37099c=_0x16973a;for(var _0x4aacf3=_0x4c4ea6>0x1?void 0x0:_0x4c4ea6?F(_0x5f1b97,_0x35b39c):_0x5f1b97,_0x5474fe=_0x2af4f7[_0x37099c(0xe6)]-0x1,_0x5c3f16;_0x5474fe>=0x0;_0x5474fe--)(_0x5c3f16=_0x2af4f7[_0x5474fe])&&(_0x4aacf3=_0x5c3f16(_0x4aacf3)||_0x4aacf3);return _0x4aacf3;},g=(_0x36335a,_0x165f68)=>(_0x29568f,_0x892d88)=>_0x165f68(_0x29568f,_0x892d88,_0x36335a),T=(_0x3a02fe,_0x13b4a6,_0x16c5c5)=>B(_0x3a02fe,typeof _0x13b4a6!=_0x16973a(0xf6)?_0x13b4a6+'':_0x13b4a6,_0x16c5c5);const x='SHEET_SHAPE_PLUGIN';function _0x1e6e(){const _0x45c3bd=['assign','14024FKVhnL','Module','setShapeType','toStringTag','isLineShape','add','getBasicShapeRelation','onStarting','Plugin','_shapes','stringify','_config','sheet.mutation.remove-shape','UpdateSheetsShapeTypeMutation','_serializeShapeForUnit','getShapeData','_ensureShapeModelManager','getShapeDataById','_shapeModelManagerMap','IResourceManagerService','4085575LURYlf','getOwnPropertyDescriptor','length','registerPluginResource','getShapeModel','every','Disposable','17109nrbpzG','IConfigService','getShapeType','_groupIds','from','87720GaDkCf','COMMAND','UNIVER_SHEET','disposeWithMe','UpdateSheetsShapeDataMutation','defineProperty','symbol','6028617yiYUpG','MUTATION','InsertSheetsShapeMutation','fromJSON','UniverSheetsShapePlugin','touchDependencies','_initCommands','_resourcesManagerService','2491676qfrHym','IUndoRedoService','forEach','set','toJSON','removeShape','707945KUCAbV','_injector','isConnectorShape','getLineShapeRelation','_disposed','params','getBasicShapeType','onRendered','delete','SheetsShapeServices','DependentOn','CommandType','dispose','_configService','hasShape','sheet.mutation.update-shape-type','sheets-shape.config','addShape','has','get','UniverInstanceType','setShapeData','_linesIds','_commandService','shapeData','_initSnapshot','syncExecuteCommand','clear','push','registerCommand','pluginName','getShapeRelation','Inject','insertShape','SHEET_SHAPE_PLUGIN','getShapeTypeById','52zPaIdO','sheet.mutation.insert-shape','shapeId','UniverLicensePlugin','keys','6283098aSfMnA','pushUndoRedo','ICommandService'];_0x1e6e=function(){return _0x45c3bd;};return _0x1e6e();}exports[_0x16973a(0xfb)]=class extends p[_0x16973a(0xd8)]{constructor(_0x373aed=_,_0x3b9579,_0x3c15b8,_0x517a02){const _0xd93e49=_0x16973a;super(),this['_config']=_0x373aed,this['_injector']=_0x3b9579,this[_0xd93e49(0xba)]=_0x3c15b8,this[_0xd93e49(0xb0)]=_0x517a02;const {..._0x1c7c3f}=p['merge']({},_,this[_0xd93e49(0xdb)]);this[_0xd93e49(0xb0)]['setConfig'](A,_0x1c7c3f),this[_0xd93e49(0x9b)]();}[_0x16973a(0xaa)](){const _0x5652e1=_0x16973a;p[_0x5652e1(0xfc)](this['_injector'],[]);}[_0x16973a(0xd7)](){const _0x568da4=_0x16973a,_0x3bab47=this[_0x568da4(0xa4)];[[f],[exports[_0x568da4(0xac)]]]['forEach'](_0x2d81c7=>_0x3bab47[_0x568da4(0xd5)](_0x2d81c7));}['_initCommands'](){const _0x2bdc54=_0x16973a;[m,v,d,y][_0x2bdc54(0x9f)](_0x1fbc36=>this[_0x2bdc54(0xf3)](this[_0x2bdc54(0xba)][_0x2bdc54(0xc0)](_0x1fbc36)));}},T(exports[_0x16973a(0xfb)],'type',p[_0x16973a(0xb7)][_0x16973a(0xf2)]),T(exports[_0x16973a(0xfb)],_0x16973a(0xc1),x),exports[_0x16973a(0xfb)]=G([p[_0x16973a(0xad)](b[_0x16973a(0xca)]),g(0x1,p[_0x16973a(0xc3)](p['Injector'])),g(0x2,p[_0x16973a(0xce)]),g(0x3,p[_0x16973a(0xec)])],exports[_0x16973a(0xfb)]),exports[_0x16973a(0xf9)]=m,exports['RemoveSheetsShapeMutation']=v,exports[_0x16973a(0xf4)]=y,exports['UpdateSheetsShapeTypeCommand']=H,exports[_0x16973a(0xdd)]=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
- const _0x5af6e3=_0x4e47;function _0x4e47(_0x228561,_0x25ad08){_0x228561=_0x228561-0xa1;const _0x1c8f99=_0x1c8f();let _0x4e4787=_0x1c8f99[_0x228561];return _0x4e4787;}(function(_0x3d1568,_0x1052f3){const _0x51b2e3=_0x4e47,_0x461fb5=_0x3d1568();while(!![]){try{const _0x39a634=parseInt(_0x51b2e3(0xb1))/0x1*(parseInt(_0x51b2e3(0xa1))/0x2)+-parseInt(_0x51b2e3(0xcf))/0x3*(-parseInt(_0x51b2e3(0xd1))/0x4)+-parseInt(_0x51b2e3(0xca))/0x5*(parseInt(_0x51b2e3(0xd7))/0x6)+parseInt(_0x51b2e3(0xb3))/0x7*(-parseInt(_0x51b2e3(0xc4))/0x8)+-parseInt(_0x51b2e3(0xb9))/0x9+-parseInt(_0x51b2e3(0xe0))/0xa*(parseInt(_0x51b2e3(0xac))/0xb)+parseInt(_0x51b2e3(0xa4))/0xc*(parseInt(_0x51b2e3(0xad))/0xd);if(_0x39a634===_0x1052f3)break;else _0x461fb5['push'](_0x461fb5['shift']());}catch(_0x8beb5e){_0x461fb5['push'](_0x461fb5['shift']());}}}(_0x1c8f,0xbff4e));var R=Object['defineProperty'],C=(_0xc41909,_0xc6d284,_0x1469e1)=>_0xc6d284 in _0xc41909?R(_0xc41909,_0xc6d284,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1469e1}):_0xc41909[_0xc6d284]=_0x1469e1,d=(_0x11bac5,_0x1bcf57,_0x31f96c)=>C(_0x11bac5,typeof _0x1bcf57!=_0x5af6e3(0xbf)?_0x1bcf57+'':_0x1bcf57,_0x31f96c);import{Disposable as _0x4311a6,UniverInstanceType as _0x21b174,IResourceManagerService as _0x147ba2,CommandType as _0x1863b3,ICommandService as _0x5e47df,IUndoRedoService as _0x50d6a6,DependentOn as _0x3e8c4a,Inject as _0x54c00a,Injector as _0x2894da,Plugin as _0x44afe7,merge as _0xa51810,touchDependencies as _0xf47b52,IConfigService as _0x5d8330}from'@univerjs/core';import{ShapeModel as _0x5ec11f,isConnectorShape as _0x9b5b8a}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x291243}from'@univerjs-pro/license';class T extends _0x4311a6{constructor(){const _0x3e111d=_0x5af6e3;super(),d(this,_0x3e111d(0xd4),new Map()),d(this,'_linesIds',new Set()),d(this,_0x3e111d(0xbc),new Set());}[_0x5af6e3(0xb4)](_0x22a3ee,_0xdcfe54,_0x3265d1){const _0x2d9a74=_0x5af6e3,_0x1a921e=new _0x5ec11f(_0x22a3ee,_0xdcfe54,_0x3265d1);return this[_0x2d9a74(0xd4)][_0x2d9a74(0xb2)](_0xdcfe54,_0x1a921e),_0x9b5b8a(_0x22a3ee)&&this['_linesIds']['add'](_0xdcfe54),_0x1a921e;}[_0x5af6e3(0xb5)](_0x6c4c4c){const _0x2dc9b=_0x5af6e3;var _0x5902b4,_0x938c89;const _0x23ea5d=[];for(const _0x60caf3 of this['_linesIds']){const _0x52c9c0=this[_0x2dc9b(0xd4)][_0x2dc9b(0xe1)](_0x60caf3);if(_0x52c9c0){const _0x4fbbf2=_0x52c9c0[_0x2dc9b(0xeb)]();_0x4fbbf2&&(((_0x5902b4=_0x4fbbf2[_0x2dc9b(0xf3)])==null?void 0x0:_0x5902b4['shapeId'])===_0x6c4c4c&&_0x23ea5d['push']({..._0x4fbbf2['from'],'lineShapeId':_0x60caf3,'isFrom':!0x0}),((_0x938c89=_0x4fbbf2['to'])==null?void 0x0:_0x938c89[_0x2dc9b(0xb7)])===_0x6c4c4c&&_0x23ea5d[_0x2dc9b(0xe8)]({..._0x4fbbf2['to'],'lineShapeId':_0x60caf3,'isFrom':!0x1}));}}return _0x23ea5d;}[_0x5af6e3(0xa9)](_0x529f3e){const _0x35e229=_0x5af6e3,_0x3b3fe3=this[_0x35e229(0xd4)]['get'](_0x529f3e);if(_0x3b3fe3)return _0x3b3fe3[_0x35e229(0xeb)]();}[_0x5af6e3(0xaa)](_0x3deb13){const _0x3bf5a1=_0x5af6e3,_0x5f06d3=this[_0x3bf5a1(0xd4)][_0x3bf5a1(0xe1)](_0x3deb13);if(_0x5f06d3)return _0x5f06d3[_0x3bf5a1(0xaa)]();}['hasShape'](_0x2eb1cb){const _0x5d99bc=_0x5af6e3;return this['_shapes'][_0x5d99bc(0xa5)](_0x2eb1cb);}[_0x5af6e3(0xde)](_0x205c4a){const _0x1ecb6f=_0x5af6e3,_0x5109bc=this[_0x1ecb6f(0xd4)][_0x1ecb6f(0xe1)](_0x205c4a);_0x5109bc&&(_0x9b5b8a(_0x5109bc['getShapeType']())&&this[_0x1ecb6f(0xc2)][_0x1ecb6f(0xa3)](_0x205c4a),this[_0x1ecb6f(0xd4)][_0x1ecb6f(0xa3)](_0x205c4a));}[_0x5af6e3(0xe4)](){const _0x1c3586=_0x5af6e3,_0x2109ce=[];return this['_shapes'][_0x1c3586(0xb0)](_0x3c5608=>{const _0x1644d6=_0x1c3586;_0x2109ce[_0x1644d6(0xe8)](_0x3c5608[_0x1644d6(0xe4)]());}),_0x2109ce;}[_0x5af6e3(0xd3)](_0x1b0401){const _0x16add6=_0x5af6e3;for(const _0x524c80 of _0x1b0401){const {id:_0x2e4fb6,shapeType:_0x5b9545}=_0x524c80,_0x28ebb0=this[_0x16add6(0xb4)](_0x5b9545,_0x2e4fb6,_0x524c80[_0x16add6(0xf0)]);_0x28ebb0&&_0x28ebb0[_0x16add6(0xd8)]()&&this[_0x16add6(0xc2)][_0x16add6(0xc7)](_0x2e4fb6);}}[_0x5af6e3(0xba)](){const _0x2982a8=_0x5af6e3;this['_disposed']||(this[_0x2982a8(0xd4)][_0x2982a8(0xb0)](_0x4f974c=>{const _0x308d2c=_0x2982a8;_0x4f974c[_0x308d2c(0xba)]();}),this[_0x2982a8(0xd4)][_0x2982a8(0xa6)](),this[_0x2982a8(0xc2)]['clear'](),this[_0x2982a8(0xbc)][_0x2982a8(0xa6)](),super[_0x2982a8(0xba)]());}}var $=Object['getOwnPropertyDescriptor'],V=(_0x5c2e67,_0x41ec7c,_0x1df3b8,_0x1c2380)=>{const _0x14a159=_0x5af6e3;for(var _0x499cc8=_0x1c2380>0x1?void 0x0:_0x1c2380?$(_0x41ec7c,_0x1df3b8):_0x41ec7c,_0x4ee89f=_0x5c2e67[_0x14a159(0xd0)]-0x1,_0x18e6af;_0x4ee89f>=0x0;_0x4ee89f--)(_0x18e6af=_0x5c2e67[_0x4ee89f])&&(_0x499cc8=_0x18e6af(_0x499cc8)||_0x499cc8);return _0x499cc8;},K=(_0x1e17f5,_0x1127e8)=>(_0x3ce7db,_0x23157f)=>_0x1127e8(_0x3ce7db,_0x23157f,_0x1e17f5);const W='SHEET_SHAPE_PLUGIN';let i=class extends _0x4311a6{constructor(_0x314032){const _0x231137=_0x5af6e3;super(),d(this,_0x231137(0xbd),new Map()),(this['_resourcesManagerService']=_0x314032,this[_0x231137(0xc3)]());}[_0x5af6e3(0xe3)](_0x4e6f40,_0x4997c2){const _0x12e326=_0x5af6e3;let _0x13ccd4=this['_shapeModelManagerMap']['get'](_0x4e6f40);_0x13ccd4||(_0x13ccd4=new Map(),this[_0x12e326(0xbd)][_0x12e326(0xb2)](_0x4e6f40,_0x13ccd4));let _0x3a8f8d=_0x13ccd4['get'](_0x4997c2);return _0x3a8f8d||(_0x3a8f8d=new T(),_0x13ccd4['set'](_0x4997c2,_0x3a8f8d)),_0x3a8f8d;}[_0x5af6e3(0xc5)](_0x2c1d4f,_0x50050e,_0x11cd2a,_0x595cab,_0x17d033){const _0x77b3e5=_0x5af6e3;this[_0x77b3e5(0xe3)](_0x2c1d4f,_0x50050e)[_0x77b3e5(0xb4)](_0x11cd2a,_0x595cab,_0x17d033);}[_0x5af6e3(0xde)](_0x5506ce,_0x15f551,_0x332377){const _0xb04b8d=_0x5af6e3;this[_0xb04b8d(0xe3)](_0x5506ce,_0x15f551)[_0xb04b8d(0xde)](_0x332377);}[_0x5af6e3(0xdb)](_0x520c5a,_0x25615a,_0x2f7ad7){const _0x252794=_0x5af6e3;return this[_0x252794(0xe3)](_0x520c5a,_0x25615a)['getShapeType'](_0x2f7ad7);}[_0x5af6e3(0xaa)](_0x1a5bae,_0x5817e7,_0x49785c){const _0x2f1be9=_0x5af6e3;return this[_0x2f1be9(0xe3)](_0x1a5bae,_0x5817e7)[_0x2f1be9(0xaa)](_0x49785c);}[_0x5af6e3(0xd6)](_0x4f8156,_0x2e83b1,_0x423c13){const _0x2d4637=_0x5af6e3;return this[_0x2d4637(0xe3)](_0x4f8156,_0x2e83b1)[_0x2d4637(0xd6)](_0x423c13);}['getShapeTypeById'](_0x3319fb,_0x199ceb,_0x174beb){const _0x60de=_0x5af6e3;return this[_0x60de(0xe3)](_0x3319fb,_0x199ceb)['getShapeType'](_0x174beb);}[_0x5af6e3(0xd5)](_0xc0815f,_0x5076ec,_0x434da9){const _0x4d627b=_0x5af6e3,_0x567dab=this[_0x4d627b(0xe3)](_0xc0815f,_0x5076ec);if(!_0x567dab['getShapeType'](_0x434da9))return;const _0x58ff9f=_0x567dab[_0x4d627b(0xd4)][_0x4d627b(0xe1)](_0x434da9);if(_0x58ff9f)return _0x58ff9f['getShapeData']();}[_0x5af6e3(0xc9)](_0x47f449,_0x1c01e6,_0x2ae9ac){const _0x563cfb=_0x5af6e3;return this[_0x563cfb(0xe3)](_0x47f449,_0x1c01e6)[_0x563cfb(0xd4)]['get'](_0x2ae9ac);}['getBasicShapeRelation'](_0x40fd04,_0x2727a4,_0x11c63b){const _0x223d40=_0x5af6e3;return this[_0x223d40(0xe3)](_0x40fd04,_0x2727a4)['getBasicShapeRelation'](_0x11c63b);}['getLineShapeRelation'](_0x3d25ee,_0x4490f7,_0x21e1ee){const _0x42ba64=_0x5af6e3,_0x5d2984=this[_0x42ba64(0xe3)](_0x3d25ee,_0x4490f7)['_shapes'][_0x42ba64(0xe1)](_0x21e1ee);if(_0x5d2984)return _0x5d2984[_0x42ba64(0xeb)]();}['setShapeType'](){}[_0x5af6e3(0xe2)](_0x27a687){const _0x50625e=_0x5af6e3,_0x265053={},_0x41b136=this[_0x50625e(0xbd)]['get'](_0x27a687);return _0x41b136&&_0x41b136[_0x50625e(0xb0)]((_0x1c20b5,_0x244503)=>{const _0x5ca89a=_0x50625e;_0x265053[_0x244503]=_0x1c20b5[_0x5ca89a(0xe4)]();}),JSON[_0x50625e(0xdc)](_0x265053);}['_deserializeShapeForUnit'](_0x5ba817,_0x393e06){const _0x36313=_0x5af6e3;Object['keys'](_0x393e06)[_0x36313(0xb0)](_0x134ca3=>{const _0x573498=_0x36313;this[_0x573498(0xe3)](_0x5ba817,_0x134ca3)[_0x573498(0xd3)](_0x393e06[_0x134ca3]);});}[_0x5af6e3(0xe4)](){const _0x2313a7=_0x5af6e3,_0x5bf9e9={};return this[_0x2313a7(0xbd)]['forEach']((_0x226a1d,_0x14364c)=>{const _0x433884=_0x2313a7;_0x5bf9e9[_0x14364c]={},_0x226a1d[_0x433884(0xb0)]((_0x1baaa3,_0x494b94)=>{const _0x24f224=_0x433884;_0x5bf9e9[_0x14364c][_0x494b94]=_0x1baaa3[_0x24f224(0xe4)]();});}),_0x5bf9e9;}['fromJSON'](_0xef33ff){const _0x5e4c1f=_0x5af6e3;Object[_0x5e4c1f(0xc1)](_0xef33ff)['forEach'](_0x39ae2b=>{const _0x4db1d1=_0x5e4c1f,_0x2e248e=_0xef33ff[_0x39ae2b];Object[_0x4db1d1(0xc1)](_0x2e248e)[_0x4db1d1(0xb0)](_0x4e1827=>{const _0x51a031=_0x4db1d1;this[_0x51a031(0xe3)](_0x39ae2b,_0x4e1827)['fromJSON'](_0x2e248e[_0x4e1827]);});});}['_initSnapshot'](){const _0x47cd00=_0x5af6e3;this[_0x47cd00(0xc8)][_0x47cd00(0xce)]({'pluginName':W,'businesses':[_0x21b174[_0x47cd00(0xa8)]],'toJson':_0x57ac86=>this['_serializeShapeForUnit'](_0x57ac86),'parseJson':_0x4f3231=>JSON[_0x47cd00(0xe6)](_0x4f3231),'onLoad':(_0x5a091f,_0x349c26)=>{const _0x2f0b7d=_0x47cd00;this[_0x2f0b7d(0xec)](_0x5a091f,_0x349c26);},'onUnLoad':_0x14b3a8=>{const _0x1005ec=_0x47cd00,_0x266706=this['_shapeModelManagerMap'][_0x1005ec(0xe1)](_0x14b3a8);_0x266706&&(_0x266706['forEach'](_0x510430=>{_0x510430['dispose']();}),this[_0x1005ec(0xbd)][_0x1005ec(0xa3)](_0x14b3a8));}});}['dispose'](){const _0x408b23=_0x5af6e3;this[_0x408b23(0xbd)][_0x408b23(0xb0)](_0x207f9e=>{_0x207f9e['forEach'](_0x4d9a63=>{const _0x20c20e=_0x4e47;_0x4d9a63[_0x20c20e(0xba)]();});});}};i=V([K(0x0,_0x147ba2)],i);const u={'id':_0x5af6e3(0xae),'type':_0x1863b3[_0x5af6e3(0xdf)],'handler':(_0x58ba3a,_0x55de05)=>{const _0x12145e=_0x5af6e3,{unitId:_0x3208b1,subUnitId:_0x87d937,shapeType:_0x4d1cea,shapeId:_0x47e25e,shapeData:_0x354882}=_0x55de05,_0x121e00=_0x58ba3a[_0x12145e(0xe1)](i)[_0x12145e(0xc9)](_0x3208b1,_0x87d937,_0x47e25e);return _0x121e00&&(_0x121e00[_0x12145e(0xbb)](_0x4d1cea),_0x354882&&(_0x121e00==null||_0x121e00[_0x12145e(0xee)](_0x354882))),!0x0;}},pe={'id':_0x5af6e3(0xcd),'type':_0x1863b3[_0x5af6e3(0xd2)],'handler':(_0x15073e,_0x325676)=>{const _0x51e48f=_0x5af6e3;if(!_0x325676)return!0x1;const _0x18133e=_0x15073e[_0x51e48f(0xe1)](_0x5e47df),_0x41fff0=_0x15073e[_0x51e48f(0xe1)](i),_0x59af39=_0x15073e[_0x51e48f(0xe1)](_0x50d6a6),_0x48798c=[],_0x2f0998=[],{unitId:_0x3296f7,subUnitId:_0x54868e,shapeId:_0x20cb2e,shapeType:_0x474eca,shapeData:_0x5a24f7}=_0x325676,_0x405bb7=_0x41fff0[_0x51e48f(0xc9)](_0x3296f7,_0x54868e,_0x20cb2e);if(_0x405bb7){const _0x111d69=_0x405bb7[_0x51e48f(0xaa)](),_0x21c032=Object[_0x51e48f(0xa2)]({},_0x405bb7[_0x51e48f(0xe7)]()),_0x2c350a={'unitId':_0x3296f7,'subUnitId':_0x54868e,'shapeId':_0x20cb2e,'shapeType':_0x474eca,'shapeData':_0x5a24f7},_0x465f90={'unitId':_0x3296f7,'subUnitId':_0x54868e,'shapeId':_0x20cb2e,'shapeType':_0x111d69,'shapeData':_0x21c032};return _0x48798c[_0x51e48f(0xe8)]({'id':u['id'],'params':_0x2c350a}),_0x2f0998[_0x51e48f(0xe8)]({'id':u['id'],'params':_0x465f90}),_0x48798c[_0x51e48f(0xea)](_0x1546fa=>_0x18133e[_0x51e48f(0xc6)](_0x1546fa['id'],_0x1546fa[_0x51e48f(0xc0)]))&&_0x59af39[_0x51e48f(0xb6)]({'unitID':_0x3296f7,'redoMutations':[..._0x48798c],'undoMutations':[..._0x2f0998]}),!0x0;}return!0x1;}},Y={'id':_0x5af6e3(0xed),'type':_0x1863b3[_0x5af6e3(0xdf)],'handler':(_0x288242,_0x119a4e)=>{const _0x39688f=_0x5af6e3,{unitId:_0x320ee0,subUnitId:_0x3e41d9,shapeType:_0x500ce3,shapeId:_0x351bd5,shapeData:_0x957905}=_0x119a4e;return _0x288242[_0x39688f(0xe1)](i)[_0x39688f(0xc5)](_0x320ee0,_0x3e41d9,_0x500ce3,_0x351bd5,_0x957905),!0x0;}},q={'id':_0x5af6e3(0xdd),'type':_0x1863b3[_0x5af6e3(0xdf)],'handler':(_0x32457f,_0x17893a)=>{const _0x5ba52b=_0x5af6e3,{unitId:_0xbb5ca5,subUnitId:_0x12da65,shapeId:_0xfb8ee5}=_0x17893a;return _0x32457f[_0x5ba52b(0xe1)](i)[_0x5ba52b(0xde)](_0xbb5ca5,_0x12da65,_0xfb8ee5),!0x0;}},Q={'id':_0x5af6e3(0xbe),'type':_0x1863b3[_0x5af6e3(0xdf)],'handler':(_0x5655a6,_0x129b5f)=>{const _0x68920=_0x5af6e3,{unitId:_0x3bd33d,subUnitId:_0x590535,shapeType:_0x1bdfc8,shapeId:_0x42a306,shapeData:_0x59b3ad}=_0x129b5f,_0x4c56a9=_0x5655a6[_0x68920(0xe1)](i)['getShapeModel'](_0x3bd33d,_0x590535,_0x42a306);return _0x4c56a9&&(_0x1bdfc8!==void 0x0&&_0x4c56a9[_0x68920(0xbb)](_0x1bdfc8),_0x59b3ad&&(_0x4c56a9==null||_0x4c56a9[_0x68920(0xee)](_0x59b3ad,!0x0))),!0x0;}},X=_0x5af6e3(0xcb),m={};var Z=Object[_0x5af6e3(0xda)],k=Object[_0x5af6e3(0xab)],ee=(_0x1b4164,_0x52be3e,_0x2bbac5)=>_0x52be3e in _0x1b4164?Z(_0x1b4164,_0x52be3e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bbac5}):_0x1b4164[_0x52be3e]=_0x2bbac5,ae=(_0x48d2df,_0x4cefdb,_0xb41565,_0x117fe9)=>{for(var _0x162c7e=_0x117fe9>0x1?void 0x0:_0x117fe9?k(_0x4cefdb,_0xb41565):_0x4cefdb,_0x1f5e21=_0x48d2df['length']-0x1,_0x20be8f;_0x1f5e21>=0x0;_0x1f5e21--)(_0x20be8f=_0x48d2df[_0x1f5e21])&&(_0x162c7e=_0x20be8f(_0x162c7e)||_0x162c7e);return _0x162c7e;},g=(_0x54a2d2,_0x42f346)=>(_0x259cd5,_0x54ad14)=>_0x42f346(_0x259cd5,_0x54ad14,_0x54a2d2),E=(_0x52125e,_0x4f1ded,_0x464496)=>ee(_0x52125e,typeof _0x4f1ded!=_0x5af6e3(0xbf)?_0x4f1ded+'':_0x4f1ded,_0x464496);function _0x1c8f(){const _0x2d28eb=['_serializeShapeForUnit','_ensureShapeModelManager','toJSON','onStarting','parse','getShapeData','push','disposeWithMe','every','getShapeRelation','_deserializeShapeForUnit','sheet.mutation.insert-shape','setShapeData','_initCommands','shapeData','onRendered','_injector','from','_commandService','4716PwUKKp','assign','delete','25740bXKjjj','has','clear','_configService','UNIVER_SHEET','getLineShapeRelation','getShapeType','getOwnPropertyDescriptor','3443tekWOy','8827qfntUq','sheet.mutation.update-shape-type','type','forEach','201KYIzwm','set','7VHnnbI','addShape','getBasicShapeRelation','pushUndoRedo','shapeId','registerCommand','6216345AzYhFz','dispose','setShapeType','_groupIds','_shapeModelManagerMap','sheet.mutation.update-shape-data','symbol','params','keys','_linesIds','_initSnapshot','2394352bZMrnV','insertShape','syncExecuteCommand','add','_resourcesManagerService','getShapeModel','7825qAlzPC','sheets-shape.config','_config','sheet.command.update-shape-type','registerPluginResource','4178058TeAbGA','length','4Vahgvf','COMMAND','fromJSON','_shapes','getShapeDataById','hasShape','678VRRkzb','isLineShape','SHEET_SHAPE_PLUGIN','defineProperty','getBasicShapeType','stringify','sheet.mutation.remove-shape','removeShape','MUTATION','43770HRftAY','get'];_0x1c8f=function(){return _0x2d28eb;};return _0x1c8f();}const se=_0x5af6e3(0xd9);let S=class extends _0x44afe7{constructor(_0x1d2a08=m,_0x489c3a,_0x5a2bcd,_0x4b05f5){const _0x23f585=_0x5af6e3;super(),this[_0x23f585(0xcc)]=_0x1d2a08,this[_0x23f585(0xf2)]=_0x489c3a,this[_0x23f585(0xf4)]=_0x5a2bcd,this[_0x23f585(0xa7)]=_0x4b05f5;const {..._0x712ca0}=_0xa51810({},m,this[_0x23f585(0xcc)]);this[_0x23f585(0xa7)]['setConfig'](X,_0x712ca0),this[_0x23f585(0xef)]();}[_0x5af6e3(0xf1)](){const _0x17756b=_0x5af6e3;_0xf47b52(this[_0x17756b(0xf2)],[]);}[_0x5af6e3(0xe5)](){const _0x9960f6=_0x5af6e3,_0x4a351a=this[_0x9960f6(0xf2)];[[T],[i]][_0x9960f6(0xb0)](_0x321efa=>_0x4a351a[_0x9960f6(0xc7)](_0x321efa));}[_0x5af6e3(0xef)](){const _0x26732c=_0x5af6e3;[Y,q,u,Q][_0x26732c(0xb0)](_0x310cd6=>this[_0x26732c(0xe9)](this[_0x26732c(0xf4)][_0x26732c(0xb8)](_0x310cd6)));}};E(S,_0x5af6e3(0xaf),_0x21b174['UNIVER_SHEET']),E(S,'pluginName',se),S=ae([_0x3e8c4a(_0x291243),g(0x1,_0x54c00a(_0x2894da)),g(0x2,_0x5e47df),g(0x3,_0x5d8330)],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
- const _0x5af6e3=_0x4e47;function _0x4e47(_0x228561,_0x25ad08){_0x228561=_0x228561-0xa1;const _0x1c8f99=_0x1c8f();let _0x4e4787=_0x1c8f99[_0x228561];return _0x4e4787;}(function(_0x3d1568,_0x1052f3){const _0x51b2e3=_0x4e47,_0x461fb5=_0x3d1568();while(!![]){try{const _0x39a634=parseInt(_0x51b2e3(0xb1))/0x1*(parseInt(_0x51b2e3(0xa1))/0x2)+-parseInt(_0x51b2e3(0xcf))/0x3*(-parseInt(_0x51b2e3(0xd1))/0x4)+-parseInt(_0x51b2e3(0xca))/0x5*(parseInt(_0x51b2e3(0xd7))/0x6)+parseInt(_0x51b2e3(0xb3))/0x7*(-parseInt(_0x51b2e3(0xc4))/0x8)+-parseInt(_0x51b2e3(0xb9))/0x9+-parseInt(_0x51b2e3(0xe0))/0xa*(parseInt(_0x51b2e3(0xac))/0xb)+parseInt(_0x51b2e3(0xa4))/0xc*(parseInt(_0x51b2e3(0xad))/0xd);if(_0x39a634===_0x1052f3)break;else _0x461fb5['push'](_0x461fb5['shift']());}catch(_0x8beb5e){_0x461fb5['push'](_0x461fb5['shift']());}}}(_0x1c8f,0xbff4e));var R=Object['defineProperty'],C=(_0xc41909,_0xc6d284,_0x1469e1)=>_0xc6d284 in _0xc41909?R(_0xc41909,_0xc6d284,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1469e1}):_0xc41909[_0xc6d284]=_0x1469e1,d=(_0x11bac5,_0x1bcf57,_0x31f96c)=>C(_0x11bac5,typeof _0x1bcf57!=_0x5af6e3(0xbf)?_0x1bcf57+'':_0x1bcf57,_0x31f96c);import{Disposable as _0x4311a6,UniverInstanceType as _0x21b174,IResourceManagerService as _0x147ba2,CommandType as _0x1863b3,ICommandService as _0x5e47df,IUndoRedoService as _0x50d6a6,DependentOn as _0x3e8c4a,Inject as _0x54c00a,Injector as _0x2894da,Plugin as _0x44afe7,merge as _0xa51810,touchDependencies as _0xf47b52,IConfigService as _0x5d8330}from'@univerjs/core';import{ShapeModel as _0x5ec11f,isConnectorShape as _0x9b5b8a}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x291243}from'@univerjs-pro/license';class T extends _0x4311a6{constructor(){const _0x3e111d=_0x5af6e3;super(),d(this,_0x3e111d(0xd4),new Map()),d(this,'_linesIds',new Set()),d(this,_0x3e111d(0xbc),new Set());}[_0x5af6e3(0xb4)](_0x22a3ee,_0xdcfe54,_0x3265d1){const _0x2d9a74=_0x5af6e3,_0x1a921e=new _0x5ec11f(_0x22a3ee,_0xdcfe54,_0x3265d1);return this[_0x2d9a74(0xd4)][_0x2d9a74(0xb2)](_0xdcfe54,_0x1a921e),_0x9b5b8a(_0x22a3ee)&&this['_linesIds']['add'](_0xdcfe54),_0x1a921e;}[_0x5af6e3(0xb5)](_0x6c4c4c){const _0x2dc9b=_0x5af6e3;var _0x5902b4,_0x938c89;const _0x23ea5d=[];for(const _0x60caf3 of this['_linesIds']){const _0x52c9c0=this[_0x2dc9b(0xd4)][_0x2dc9b(0xe1)](_0x60caf3);if(_0x52c9c0){const _0x4fbbf2=_0x52c9c0[_0x2dc9b(0xeb)]();_0x4fbbf2&&(((_0x5902b4=_0x4fbbf2[_0x2dc9b(0xf3)])==null?void 0x0:_0x5902b4['shapeId'])===_0x6c4c4c&&_0x23ea5d['push']({..._0x4fbbf2['from'],'lineShapeId':_0x60caf3,'isFrom':!0x0}),((_0x938c89=_0x4fbbf2['to'])==null?void 0x0:_0x938c89[_0x2dc9b(0xb7)])===_0x6c4c4c&&_0x23ea5d[_0x2dc9b(0xe8)]({..._0x4fbbf2['to'],'lineShapeId':_0x60caf3,'isFrom':!0x1}));}}return _0x23ea5d;}[_0x5af6e3(0xa9)](_0x529f3e){const _0x35e229=_0x5af6e3,_0x3b3fe3=this[_0x35e229(0xd4)]['get'](_0x529f3e);if(_0x3b3fe3)return _0x3b3fe3[_0x35e229(0xeb)]();}[_0x5af6e3(0xaa)](_0x3deb13){const _0x3bf5a1=_0x5af6e3,_0x5f06d3=this[_0x3bf5a1(0xd4)][_0x3bf5a1(0xe1)](_0x3deb13);if(_0x5f06d3)return _0x5f06d3[_0x3bf5a1(0xaa)]();}['hasShape'](_0x2eb1cb){const _0x5d99bc=_0x5af6e3;return this['_shapes'][_0x5d99bc(0xa5)](_0x2eb1cb);}[_0x5af6e3(0xde)](_0x205c4a){const _0x1ecb6f=_0x5af6e3,_0x5109bc=this[_0x1ecb6f(0xd4)][_0x1ecb6f(0xe1)](_0x205c4a);_0x5109bc&&(_0x9b5b8a(_0x5109bc['getShapeType']())&&this[_0x1ecb6f(0xc2)][_0x1ecb6f(0xa3)](_0x205c4a),this[_0x1ecb6f(0xd4)][_0x1ecb6f(0xa3)](_0x205c4a));}[_0x5af6e3(0xe4)](){const _0x1c3586=_0x5af6e3,_0x2109ce=[];return this['_shapes'][_0x1c3586(0xb0)](_0x3c5608=>{const _0x1644d6=_0x1c3586;_0x2109ce[_0x1644d6(0xe8)](_0x3c5608[_0x1644d6(0xe4)]());}),_0x2109ce;}[_0x5af6e3(0xd3)](_0x1b0401){const _0x16add6=_0x5af6e3;for(const _0x524c80 of _0x1b0401){const {id:_0x2e4fb6,shapeType:_0x5b9545}=_0x524c80,_0x28ebb0=this[_0x16add6(0xb4)](_0x5b9545,_0x2e4fb6,_0x524c80[_0x16add6(0xf0)]);_0x28ebb0&&_0x28ebb0[_0x16add6(0xd8)]()&&this[_0x16add6(0xc2)][_0x16add6(0xc7)](_0x2e4fb6);}}[_0x5af6e3(0xba)](){const _0x2982a8=_0x5af6e3;this['_disposed']||(this[_0x2982a8(0xd4)][_0x2982a8(0xb0)](_0x4f974c=>{const _0x308d2c=_0x2982a8;_0x4f974c[_0x308d2c(0xba)]();}),this[_0x2982a8(0xd4)][_0x2982a8(0xa6)](),this[_0x2982a8(0xc2)]['clear'](),this[_0x2982a8(0xbc)][_0x2982a8(0xa6)](),super[_0x2982a8(0xba)]());}}var $=Object['getOwnPropertyDescriptor'],V=(_0x5c2e67,_0x41ec7c,_0x1df3b8,_0x1c2380)=>{const _0x14a159=_0x5af6e3;for(var _0x499cc8=_0x1c2380>0x1?void 0x0:_0x1c2380?$(_0x41ec7c,_0x1df3b8):_0x41ec7c,_0x4ee89f=_0x5c2e67[_0x14a159(0xd0)]-0x1,_0x18e6af;_0x4ee89f>=0x0;_0x4ee89f--)(_0x18e6af=_0x5c2e67[_0x4ee89f])&&(_0x499cc8=_0x18e6af(_0x499cc8)||_0x499cc8);return _0x499cc8;},K=(_0x1e17f5,_0x1127e8)=>(_0x3ce7db,_0x23157f)=>_0x1127e8(_0x3ce7db,_0x23157f,_0x1e17f5);const W='SHEET_SHAPE_PLUGIN';let i=class extends _0x4311a6{constructor(_0x314032){const _0x231137=_0x5af6e3;super(),d(this,_0x231137(0xbd),new Map()),(this['_resourcesManagerService']=_0x314032,this[_0x231137(0xc3)]());}[_0x5af6e3(0xe3)](_0x4e6f40,_0x4997c2){const _0x12e326=_0x5af6e3;let _0x13ccd4=this['_shapeModelManagerMap']['get'](_0x4e6f40);_0x13ccd4||(_0x13ccd4=new Map(),this[_0x12e326(0xbd)][_0x12e326(0xb2)](_0x4e6f40,_0x13ccd4));let _0x3a8f8d=_0x13ccd4['get'](_0x4997c2);return _0x3a8f8d||(_0x3a8f8d=new T(),_0x13ccd4['set'](_0x4997c2,_0x3a8f8d)),_0x3a8f8d;}[_0x5af6e3(0xc5)](_0x2c1d4f,_0x50050e,_0x11cd2a,_0x595cab,_0x17d033){const _0x77b3e5=_0x5af6e3;this[_0x77b3e5(0xe3)](_0x2c1d4f,_0x50050e)[_0x77b3e5(0xb4)](_0x11cd2a,_0x595cab,_0x17d033);}[_0x5af6e3(0xde)](_0x5506ce,_0x15f551,_0x332377){const _0xb04b8d=_0x5af6e3;this[_0xb04b8d(0xe3)](_0x5506ce,_0x15f551)[_0xb04b8d(0xde)](_0x332377);}[_0x5af6e3(0xdb)](_0x520c5a,_0x25615a,_0x2f7ad7){const _0x252794=_0x5af6e3;return this[_0x252794(0xe3)](_0x520c5a,_0x25615a)['getShapeType'](_0x2f7ad7);}[_0x5af6e3(0xaa)](_0x1a5bae,_0x5817e7,_0x49785c){const _0x2f1be9=_0x5af6e3;return this[_0x2f1be9(0xe3)](_0x1a5bae,_0x5817e7)[_0x2f1be9(0xaa)](_0x49785c);}[_0x5af6e3(0xd6)](_0x4f8156,_0x2e83b1,_0x423c13){const _0x2d4637=_0x5af6e3;return this[_0x2d4637(0xe3)](_0x4f8156,_0x2e83b1)[_0x2d4637(0xd6)](_0x423c13);}['getShapeTypeById'](_0x3319fb,_0x199ceb,_0x174beb){const _0x60de=_0x5af6e3;return this[_0x60de(0xe3)](_0x3319fb,_0x199ceb)['getShapeType'](_0x174beb);}[_0x5af6e3(0xd5)](_0xc0815f,_0x5076ec,_0x434da9){const _0x4d627b=_0x5af6e3,_0x567dab=this[_0x4d627b(0xe3)](_0xc0815f,_0x5076ec);if(!_0x567dab['getShapeType'](_0x434da9))return;const _0x58ff9f=_0x567dab[_0x4d627b(0xd4)][_0x4d627b(0xe1)](_0x434da9);if(_0x58ff9f)return _0x58ff9f['getShapeData']();}[_0x5af6e3(0xc9)](_0x47f449,_0x1c01e6,_0x2ae9ac){const _0x563cfb=_0x5af6e3;return this[_0x563cfb(0xe3)](_0x47f449,_0x1c01e6)[_0x563cfb(0xd4)]['get'](_0x2ae9ac);}['getBasicShapeRelation'](_0x40fd04,_0x2727a4,_0x11c63b){const _0x223d40=_0x5af6e3;return this[_0x223d40(0xe3)](_0x40fd04,_0x2727a4)['getBasicShapeRelation'](_0x11c63b);}['getLineShapeRelation'](_0x3d25ee,_0x4490f7,_0x21e1ee){const _0x42ba64=_0x5af6e3,_0x5d2984=this[_0x42ba64(0xe3)](_0x3d25ee,_0x4490f7)['_shapes'][_0x42ba64(0xe1)](_0x21e1ee);if(_0x5d2984)return _0x5d2984[_0x42ba64(0xeb)]();}['setShapeType'](){}[_0x5af6e3(0xe2)](_0x27a687){const _0x50625e=_0x5af6e3,_0x265053={},_0x41b136=this[_0x50625e(0xbd)]['get'](_0x27a687);return _0x41b136&&_0x41b136[_0x50625e(0xb0)]((_0x1c20b5,_0x244503)=>{const _0x5ca89a=_0x50625e;_0x265053[_0x244503]=_0x1c20b5[_0x5ca89a(0xe4)]();}),JSON[_0x50625e(0xdc)](_0x265053);}['_deserializeShapeForUnit'](_0x5ba817,_0x393e06){const _0x36313=_0x5af6e3;Object['keys'](_0x393e06)[_0x36313(0xb0)](_0x134ca3=>{const _0x573498=_0x36313;this[_0x573498(0xe3)](_0x5ba817,_0x134ca3)[_0x573498(0xd3)](_0x393e06[_0x134ca3]);});}[_0x5af6e3(0xe4)](){const _0x2313a7=_0x5af6e3,_0x5bf9e9={};return this[_0x2313a7(0xbd)]['forEach']((_0x226a1d,_0x14364c)=>{const _0x433884=_0x2313a7;_0x5bf9e9[_0x14364c]={},_0x226a1d[_0x433884(0xb0)]((_0x1baaa3,_0x494b94)=>{const _0x24f224=_0x433884;_0x5bf9e9[_0x14364c][_0x494b94]=_0x1baaa3[_0x24f224(0xe4)]();});}),_0x5bf9e9;}['fromJSON'](_0xef33ff){const _0x5e4c1f=_0x5af6e3;Object[_0x5e4c1f(0xc1)](_0xef33ff)['forEach'](_0x39ae2b=>{const _0x4db1d1=_0x5e4c1f,_0x2e248e=_0xef33ff[_0x39ae2b];Object[_0x4db1d1(0xc1)](_0x2e248e)[_0x4db1d1(0xb0)](_0x4e1827=>{const _0x51a031=_0x4db1d1;this[_0x51a031(0xe3)](_0x39ae2b,_0x4e1827)['fromJSON'](_0x2e248e[_0x4e1827]);});});}['_initSnapshot'](){const _0x47cd00=_0x5af6e3;this[_0x47cd00(0xc8)][_0x47cd00(0xce)]({'pluginName':W,'businesses':[_0x21b174[_0x47cd00(0xa8)]],'toJson':_0x57ac86=>this['_serializeShapeForUnit'](_0x57ac86),'parseJson':_0x4f3231=>JSON[_0x47cd00(0xe6)](_0x4f3231),'onLoad':(_0x5a091f,_0x349c26)=>{const _0x2f0b7d=_0x47cd00;this[_0x2f0b7d(0xec)](_0x5a091f,_0x349c26);},'onUnLoad':_0x14b3a8=>{const _0x1005ec=_0x47cd00,_0x266706=this['_shapeModelManagerMap'][_0x1005ec(0xe1)](_0x14b3a8);_0x266706&&(_0x266706['forEach'](_0x510430=>{_0x510430['dispose']();}),this[_0x1005ec(0xbd)][_0x1005ec(0xa3)](_0x14b3a8));}});}['dispose'](){const _0x408b23=_0x5af6e3;this[_0x408b23(0xbd)][_0x408b23(0xb0)](_0x207f9e=>{_0x207f9e['forEach'](_0x4d9a63=>{const _0x20c20e=_0x4e47;_0x4d9a63[_0x20c20e(0xba)]();});});}};i=V([K(0x0,_0x147ba2)],i);const u={'id':_0x5af6e3(0xae),'type':_0x1863b3[_0x5af6e3(0xdf)],'handler':(_0x58ba3a,_0x55de05)=>{const _0x12145e=_0x5af6e3,{unitId:_0x3208b1,subUnitId:_0x87d937,shapeType:_0x4d1cea,shapeId:_0x47e25e,shapeData:_0x354882}=_0x55de05,_0x121e00=_0x58ba3a[_0x12145e(0xe1)](i)[_0x12145e(0xc9)](_0x3208b1,_0x87d937,_0x47e25e);return _0x121e00&&(_0x121e00[_0x12145e(0xbb)](_0x4d1cea),_0x354882&&(_0x121e00==null||_0x121e00[_0x12145e(0xee)](_0x354882))),!0x0;}},pe={'id':_0x5af6e3(0xcd),'type':_0x1863b3[_0x5af6e3(0xd2)],'handler':(_0x15073e,_0x325676)=>{const _0x51e48f=_0x5af6e3;if(!_0x325676)return!0x1;const _0x18133e=_0x15073e[_0x51e48f(0xe1)](_0x5e47df),_0x41fff0=_0x15073e[_0x51e48f(0xe1)](i),_0x59af39=_0x15073e[_0x51e48f(0xe1)](_0x50d6a6),_0x48798c=[],_0x2f0998=[],{unitId:_0x3296f7,subUnitId:_0x54868e,shapeId:_0x20cb2e,shapeType:_0x474eca,shapeData:_0x5a24f7}=_0x325676,_0x405bb7=_0x41fff0[_0x51e48f(0xc9)](_0x3296f7,_0x54868e,_0x20cb2e);if(_0x405bb7){const _0x111d69=_0x405bb7[_0x51e48f(0xaa)](),_0x21c032=Object[_0x51e48f(0xa2)]({},_0x405bb7[_0x51e48f(0xe7)]()),_0x2c350a={'unitId':_0x3296f7,'subUnitId':_0x54868e,'shapeId':_0x20cb2e,'shapeType':_0x474eca,'shapeData':_0x5a24f7},_0x465f90={'unitId':_0x3296f7,'subUnitId':_0x54868e,'shapeId':_0x20cb2e,'shapeType':_0x111d69,'shapeData':_0x21c032};return _0x48798c[_0x51e48f(0xe8)]({'id':u['id'],'params':_0x2c350a}),_0x2f0998[_0x51e48f(0xe8)]({'id':u['id'],'params':_0x465f90}),_0x48798c[_0x51e48f(0xea)](_0x1546fa=>_0x18133e[_0x51e48f(0xc6)](_0x1546fa['id'],_0x1546fa[_0x51e48f(0xc0)]))&&_0x59af39[_0x51e48f(0xb6)]({'unitID':_0x3296f7,'redoMutations':[..._0x48798c],'undoMutations':[..._0x2f0998]}),!0x0;}return!0x1;}},Y={'id':_0x5af6e3(0xed),'type':_0x1863b3[_0x5af6e3(0xdf)],'handler':(_0x288242,_0x119a4e)=>{const _0x39688f=_0x5af6e3,{unitId:_0x320ee0,subUnitId:_0x3e41d9,shapeType:_0x500ce3,shapeId:_0x351bd5,shapeData:_0x957905}=_0x119a4e;return _0x288242[_0x39688f(0xe1)](i)[_0x39688f(0xc5)](_0x320ee0,_0x3e41d9,_0x500ce3,_0x351bd5,_0x957905),!0x0;}},q={'id':_0x5af6e3(0xdd),'type':_0x1863b3[_0x5af6e3(0xdf)],'handler':(_0x32457f,_0x17893a)=>{const _0x5ba52b=_0x5af6e3,{unitId:_0xbb5ca5,subUnitId:_0x12da65,shapeId:_0xfb8ee5}=_0x17893a;return _0x32457f[_0x5ba52b(0xe1)](i)[_0x5ba52b(0xde)](_0xbb5ca5,_0x12da65,_0xfb8ee5),!0x0;}},Q={'id':_0x5af6e3(0xbe),'type':_0x1863b3[_0x5af6e3(0xdf)],'handler':(_0x5655a6,_0x129b5f)=>{const _0x68920=_0x5af6e3,{unitId:_0x3bd33d,subUnitId:_0x590535,shapeType:_0x1bdfc8,shapeId:_0x42a306,shapeData:_0x59b3ad}=_0x129b5f,_0x4c56a9=_0x5655a6[_0x68920(0xe1)](i)['getShapeModel'](_0x3bd33d,_0x590535,_0x42a306);return _0x4c56a9&&(_0x1bdfc8!==void 0x0&&_0x4c56a9[_0x68920(0xbb)](_0x1bdfc8),_0x59b3ad&&(_0x4c56a9==null||_0x4c56a9[_0x68920(0xee)](_0x59b3ad,!0x0))),!0x0;}},X=_0x5af6e3(0xcb),m={};var Z=Object[_0x5af6e3(0xda)],k=Object[_0x5af6e3(0xab)],ee=(_0x1b4164,_0x52be3e,_0x2bbac5)=>_0x52be3e in _0x1b4164?Z(_0x1b4164,_0x52be3e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bbac5}):_0x1b4164[_0x52be3e]=_0x2bbac5,ae=(_0x48d2df,_0x4cefdb,_0xb41565,_0x117fe9)=>{for(var _0x162c7e=_0x117fe9>0x1?void 0x0:_0x117fe9?k(_0x4cefdb,_0xb41565):_0x4cefdb,_0x1f5e21=_0x48d2df['length']-0x1,_0x20be8f;_0x1f5e21>=0x0;_0x1f5e21--)(_0x20be8f=_0x48d2df[_0x1f5e21])&&(_0x162c7e=_0x20be8f(_0x162c7e)||_0x162c7e);return _0x162c7e;},g=(_0x54a2d2,_0x42f346)=>(_0x259cd5,_0x54ad14)=>_0x42f346(_0x259cd5,_0x54ad14,_0x54a2d2),E=(_0x52125e,_0x4f1ded,_0x464496)=>ee(_0x52125e,typeof _0x4f1ded!=_0x5af6e3(0xbf)?_0x4f1ded+'':_0x4f1ded,_0x464496);function _0x1c8f(){const _0x2d28eb=['_serializeShapeForUnit','_ensureShapeModelManager','toJSON','onStarting','parse','getShapeData','push','disposeWithMe','every','getShapeRelation','_deserializeShapeForUnit','sheet.mutation.insert-shape','setShapeData','_initCommands','shapeData','onRendered','_injector','from','_commandService','4716PwUKKp','assign','delete','25740bXKjjj','has','clear','_configService','UNIVER_SHEET','getLineShapeRelation','getShapeType','getOwnPropertyDescriptor','3443tekWOy','8827qfntUq','sheet.mutation.update-shape-type','type','forEach','201KYIzwm','set','7VHnnbI','addShape','getBasicShapeRelation','pushUndoRedo','shapeId','registerCommand','6216345AzYhFz','dispose','setShapeType','_groupIds','_shapeModelManagerMap','sheet.mutation.update-shape-data','symbol','params','keys','_linesIds','_initSnapshot','2394352bZMrnV','insertShape','syncExecuteCommand','add','_resourcesManagerService','getShapeModel','7825qAlzPC','sheets-shape.config','_config','sheet.command.update-shape-type','registerPluginResource','4178058TeAbGA','length','4Vahgvf','COMMAND','fromJSON','_shapes','getShapeDataById','hasShape','678VRRkzb','isLineShape','SHEET_SHAPE_PLUGIN','defineProperty','getBasicShapeType','stringify','sheet.mutation.remove-shape','removeShape','MUTATION','43770HRftAY','get'];_0x1c8f=function(){return _0x2d28eb;};return _0x1c8f();}const se=_0x5af6e3(0xd9);let S=class extends _0x44afe7{constructor(_0x1d2a08=m,_0x489c3a,_0x5a2bcd,_0x4b05f5){const _0x23f585=_0x5af6e3;super(),this[_0x23f585(0xcc)]=_0x1d2a08,this[_0x23f585(0xf2)]=_0x489c3a,this[_0x23f585(0xf4)]=_0x5a2bcd,this[_0x23f585(0xa7)]=_0x4b05f5;const {..._0x712ca0}=_0xa51810({},m,this[_0x23f585(0xcc)]);this[_0x23f585(0xa7)]['setConfig'](X,_0x712ca0),this[_0x23f585(0xef)]();}[_0x5af6e3(0xf1)](){const _0x17756b=_0x5af6e3;_0xf47b52(this[_0x17756b(0xf2)],[]);}[_0x5af6e3(0xe5)](){const _0x9960f6=_0x5af6e3,_0x4a351a=this[_0x9960f6(0xf2)];[[T],[i]][_0x9960f6(0xb0)](_0x321efa=>_0x4a351a[_0x9960f6(0xc7)](_0x321efa));}[_0x5af6e3(0xef)](){const _0x26732c=_0x5af6e3;[Y,q,u,Q][_0x26732c(0xb0)](_0x310cd6=>this[_0x26732c(0xe9)](this[_0x26732c(0xf4)][_0x26732c(0xb8)](_0x310cd6)));}};E(S,_0x5af6e3(0xaf),_0x21b174['UNIVER_SHEET']),E(S,'pluginName',se),S=ae([_0x3e8c4a(_0x291243),g(0x1,_0x54c00a(_0x2894da)),g(0x2,_0x5e47df),g(0x3,_0x5d8330)],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(_0x47a556,_0x254210){const _0x2b302c=_0x2641,_0x948173=_0x47a556();while(!![]){try{const _0x6837b5=parseInt(_0x2b302c(0x176))/0x1+parseInt(_0x2b302c(0x19b))/0x2*(-parseInt(_0x2b302c(0x1bb))/0x3)+parseInt(_0x2b302c(0x195))/0x4+parseInt(_0x2b302c(0x1ca))/0x5+-parseInt(_0x2b302c(0x1a0))/0x6+parseInt(_0x2b302c(0x18b))/0x7*(-parseInt(_0x2b302c(0x1b4))/0x8)+-parseInt(_0x2b302c(0x198))/0x9;if(_0x6837b5===_0x254210)break;else _0x948173['push'](_0x948173['shift']());}catch(_0x2f31a0){_0x948173['push'](_0x948173['shift']());}}}(_0x57e4,0x65b27),function(_0x313142,_0x33bde0){const _0xa06804=_0x2641;typeof exports==_0xa06804(0x1a2)&&typeof module<'u'?_0x33bde0(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0xa06804(0x1bc)]?define([_0xa06804(0x1b3),'@univerjs/core','@univerjs-pro/engine-shape',_0xa06804(0x193)],_0x33bde0):(_0x313142=typeof globalThis<'u'?globalThis:_0x313142||self,_0x33bde0(_0x313142[_0xa06804(0x1d0)]={},_0x313142[_0xa06804(0x1c4)],_0x313142['UniverProEngineShape'],_0x313142[_0xa06804(0x1c9)]));}(this,function(_0x15aad8,_0x5a3fed,_0x21d236,_0x170281){'use strict';const _0x29d238=_0x2641;var _0x32d407=Object['defineProperty'],_0x2750f9=(_0x519c77,_0x450480,_0x1e9270)=>_0x450480 in _0x519c77?_0x32d407(_0x519c77,_0x450480,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e9270}):_0x519c77[_0x450480]=_0x1e9270,_0x5cbf9e=(_0x1ba9d8,_0x328da1,_0x409779)=>_0x2750f9(_0x1ba9d8,typeof _0x328da1!=_0x29d238(0x1d2)?_0x328da1+'':_0x328da1,_0x409779);class _0x1ef7fb extends _0x5a3fed[_0x29d238(0x1b2)]{constructor(){const _0x2cde7f=_0x29d238;super(),_0x5cbf9e(this,'_shapes',new Map()),_0x5cbf9e(this,_0x2cde7f(0x194),new Set()),_0x5cbf9e(this,_0x2cde7f(0x1c5),new Set());}[_0x29d238(0x1b0)](_0x12757c,_0x5ae63f,_0x17a3ab){const _0x5d9547=_0x29d238,_0x161924=new _0x21d236['ShapeModel'](_0x12757c,_0x5ae63f,_0x17a3ab);return this['_shapes']['set'](_0x5ae63f,_0x161924),_0x21d236['isConnectorShape'](_0x12757c)&&this[_0x5d9547(0x194)][_0x5d9547(0x1c1)](_0x5ae63f),_0x161924;}[_0x29d238(0x190)](_0x17d714){const _0x2d3ee8=_0x29d238;var _0x5b08a4,_0x545df1;const _0x121096=[];for(const _0x2f8975 of this[_0x2d3ee8(0x194)]){const _0x206739=this['_shapes'][_0x2d3ee8(0x1cd)](_0x2f8975);if(_0x206739){const _0x53246b=_0x206739[_0x2d3ee8(0x1d9)]();_0x53246b&&(((_0x5b08a4=_0x53246b[_0x2d3ee8(0x1b7)])==null?void 0x0:_0x5b08a4[_0x2d3ee8(0x1af)])===_0x17d714&&_0x121096[_0x2d3ee8(0x19a)]({..._0x53246b[_0x2d3ee8(0x1b7)],'lineShapeId':_0x2f8975,'isFrom':!0x0}),((_0x545df1=_0x53246b['to'])==null?void 0x0:_0x545df1[_0x2d3ee8(0x1af)])===_0x17d714&&_0x121096[_0x2d3ee8(0x19a)]({..._0x53246b['to'],'lineShapeId':_0x2f8975,'isFrom':!0x1}));}}return _0x121096;}[_0x29d238(0x182)](_0x3fff94){const _0x43bcb9=_0x29d238,_0x5acc08=this[_0x43bcb9(0x1a5)]['get'](_0x3fff94);if(_0x5acc08)return _0x5acc08[_0x43bcb9(0x1d9)]();}[_0x29d238(0x188)](_0x41a6f7){const _0x4dbef7=_0x29d238,_0x21ad68=this['_shapes'][_0x4dbef7(0x1cd)](_0x41a6f7);if(_0x21ad68)return _0x21ad68[_0x4dbef7(0x188)]();}[_0x29d238(0x192)](_0x310ee7){const _0xfbd993=_0x29d238;return this[_0xfbd993(0x1a5)][_0xfbd993(0x183)](_0x310ee7);}['removeShape'](_0x1021e6){const _0x16bd5d=_0x29d238,_0x2ce66a=this[_0x16bd5d(0x1a5)][_0x16bd5d(0x1cd)](_0x1021e6);_0x2ce66a&&(_0x21d236[_0x16bd5d(0x1b5)](_0x2ce66a['getShapeType']())&&this[_0x16bd5d(0x194)][_0x16bd5d(0x18d)](_0x1021e6),this[_0x16bd5d(0x1a5)][_0x16bd5d(0x18d)](_0x1021e6));}['toJSON'](){const _0x22821b=_0x29d238,_0x368325=[];return this['_shapes'][_0x22821b(0x1cc)](_0x14af2f=>{const _0x65df19=_0x22821b;_0x368325[_0x65df19(0x19a)](_0x14af2f[_0x65df19(0x19c)]());}),_0x368325;}[_0x29d238(0x1c3)](_0x1d1f8b){const _0xd80cdb=_0x29d238;for(const _0x5ec040 of _0x1d1f8b){const {id:_0x9e8fea,shapeType:_0x1c59a7}=_0x5ec040,_0x303154=this[_0xd80cdb(0x1b0)](_0x1c59a7,_0x9e8fea,_0x5ec040['shapeData']);_0x303154&&_0x303154[_0xd80cdb(0x1a7)]()&&this[_0xd80cdb(0x194)][_0xd80cdb(0x1c1)](_0x9e8fea);}}[_0x29d238(0x178)](){const _0x23caa5=_0x29d238;this[_0x23caa5(0x185)]||(this[_0x23caa5(0x1a5)][_0x23caa5(0x1cc)](_0x5c8e3b=>{_0x5c8e3b['dispose']();}),this['_shapes']['clear'](),this['_linesIds']['clear'](),this[_0x23caa5(0x1c5)]['clear'](),super[_0x23caa5(0x178)]());}}var _0x21a3a7=Object['getOwnPropertyDescriptor'],_0x12db77=(_0xd0ebfb,_0x38688f,_0x40405a,_0x203fec)=>{const _0x231bd0=_0x29d238;for(var _0x556da7=_0x203fec>0x1?void 0x0:_0x203fec?_0x21a3a7(_0x38688f,_0x40405a):_0x38688f,_0x1bc2e0=_0xd0ebfb[_0x231bd0(0x1a1)]-0x1,_0xbc405b;_0x1bc2e0>=0x0;_0x1bc2e0--)(_0xbc405b=_0xd0ebfb[_0x1bc2e0])&&(_0x556da7=_0xbc405b(_0x556da7)||_0x556da7);return _0x556da7;},_0x6bf2c5=(_0x43ee78,_0x18b7d2)=>(_0x59dc92,_0x3dfb3d)=>_0x18b7d2(_0x59dc92,_0x3dfb3d,_0x43ee78);const _0x575cbc='SHEET_SHAPE_PLUGIN';_0x15aad8[_0x29d238(0x184)]=class extends _0x5a3fed[_0x29d238(0x1b2)]{constructor(_0x515f74){const _0x4c5e7a=_0x29d238;super(),_0x5cbf9e(this,_0x4c5e7a(0x1c2),new Map()),(this[_0x4c5e7a(0x181)]=_0x515f74,this[_0x4c5e7a(0x1d5)]());}[_0x29d238(0x17a)](_0xe9b9a2,_0x30ea5f){const _0x309ea8=_0x29d238;let _0x3899b9=this[_0x309ea8(0x1c2)][_0x309ea8(0x1cd)](_0xe9b9a2);_0x3899b9||(_0x3899b9=new Map(),this[_0x309ea8(0x1c2)][_0x309ea8(0x187)](_0xe9b9a2,_0x3899b9));let _0x50d570=_0x3899b9[_0x309ea8(0x1cd)](_0x30ea5f);return _0x50d570||(_0x50d570=new _0x1ef7fb(),_0x3899b9[_0x309ea8(0x187)](_0x30ea5f,_0x50d570)),_0x50d570;}[_0x29d238(0x18e)](_0x3c1bbc,_0x51c1db,_0x2eb2f3,_0x2509f7,_0x490aaa){const _0x2f86dc=_0x29d238;this[_0x2f86dc(0x17a)](_0x3c1bbc,_0x51c1db)[_0x2f86dc(0x1b0)](_0x2eb2f3,_0x2509f7,_0x490aaa);}[_0x29d238(0x1c0)](_0x1b5dd7,_0x8e3d50,_0x2d3d07){const _0x159b24=_0x29d238;this['_ensureShapeModelManager'](_0x1b5dd7,_0x8e3d50)[_0x159b24(0x1c0)](_0x2d3d07);}[_0x29d238(0x1cb)](_0x2fe6ae,_0x16926c,_0x267ad3){const _0x5c7678=_0x29d238;return this['_ensureShapeModelManager'](_0x2fe6ae,_0x16926c)[_0x5c7678(0x188)](_0x267ad3);}[_0x29d238(0x188)](_0x3eae5c,_0xc371f,_0x150143){const _0x4a5f70=_0x29d238;return this['_ensureShapeModelManager'](_0x3eae5c,_0xc371f)[_0x4a5f70(0x188)](_0x150143);}['hasShape'](_0x39221b,_0x461e9e,_0x437cf7){const _0x5335e4=_0x29d238;return this[_0x5335e4(0x17a)](_0x39221b,_0x461e9e)[_0x5335e4(0x192)](_0x437cf7);}[_0x29d238(0x1ad)](_0x180e55,_0x3475d9,_0x134aff){const _0x251f17=_0x29d238;return this[_0x251f17(0x17a)](_0x180e55,_0x3475d9)[_0x251f17(0x188)](_0x134aff);}[_0x29d238(0x1db)](_0x16ddff,_0x1c9f25,_0x751584){const _0xb62f4f=_0x29d238,_0x3f0138=this[_0xb62f4f(0x17a)](_0x16ddff,_0x1c9f25);if(!_0x3f0138[_0xb62f4f(0x188)](_0x751584))return;const _0x39fbf8=_0x3f0138[_0xb62f4f(0x1a5)][_0xb62f4f(0x1cd)](_0x751584);if(_0x39fbf8)return _0x39fbf8[_0xb62f4f(0x19d)]();}[_0x29d238(0x179)](_0xa2a4d,_0x3fd851,_0x569c8c){const _0x1cbae5=_0x29d238;return this[_0x1cbae5(0x17a)](_0xa2a4d,_0x3fd851)[_0x1cbae5(0x1a5)][_0x1cbae5(0x1cd)](_0x569c8c);}['getBasicShapeRelation'](_0x412c4e,_0x3f357b,_0x1831fa){const _0x15a296=_0x29d238;return this[_0x15a296(0x17a)](_0x412c4e,_0x3f357b)[_0x15a296(0x190)](_0x1831fa);}[_0x29d238(0x182)](_0x138c81,_0x25522f,_0x40be0e){const _0x179714=_0x29d238,_0xb17d59=this[_0x179714(0x17a)](_0x138c81,_0x25522f)[_0x179714(0x1a5)][_0x179714(0x1cd)](_0x40be0e);if(_0xb17d59)return _0xb17d59['getShapeRelation']();}[_0x29d238(0x1cf)](){}[_0x29d238(0x196)](_0x6638e1){const _0x228365=_0x29d238,_0x11f3f2={},_0x1976f5=this[_0x228365(0x1c2)][_0x228365(0x1cd)](_0x6638e1);return _0x1976f5&&_0x1976f5['forEach']((_0x74a27b,_0x5ef047)=>{const _0x965d55=_0x228365;_0x11f3f2[_0x5ef047]=_0x74a27b[_0x965d55(0x19c)]();}),JSON[_0x228365(0x1a8)](_0x11f3f2);}[_0x29d238(0x1b1)](_0x27a7b2,_0x40eba2){const _0x186c99=_0x29d238;Object['keys'](_0x40eba2)[_0x186c99(0x1cc)](_0x553764=>{const _0x148143=_0x186c99;this['_ensureShapeModelManager'](_0x27a7b2,_0x553764)[_0x148143(0x1c3)](_0x40eba2[_0x553764]);});}[_0x29d238(0x19c)](){const _0x225a50=_0x29d238,_0x53ac00={};return this[_0x225a50(0x1c2)][_0x225a50(0x1cc)]((_0x4c9689,_0x2a7463)=>{_0x53ac00[_0x2a7463]={},_0x4c9689['forEach']((_0x4c902b,_0x7cb2e0)=>{_0x53ac00[_0x2a7463][_0x7cb2e0]=_0x4c902b['toJSON']();});}),_0x53ac00;}[_0x29d238(0x1c3)](_0x5b2e52){const _0x14454a=_0x29d238;Object['keys'](_0x5b2e52)[_0x14454a(0x1cc)](_0x15559f=>{const _0x4ef497=_0x14454a,_0x500c85=_0x5b2e52[_0x15559f];Object['keys'](_0x500c85)[_0x4ef497(0x1cc)](_0x469811=>{const _0x2e99e9=_0x4ef497;this['_ensureShapeModelManager'](_0x15559f,_0x469811)[_0x2e99e9(0x1c3)](_0x500c85[_0x469811]);});});}[_0x29d238(0x1d5)](){const _0x302222=_0x29d238;this['_resourcesManagerService'][_0x302222(0x1d7)]({'pluginName':_0x575cbc,'businesses':[_0x5a3fed['UniverInstanceType'][_0x302222(0x1da)]],'toJson':_0x321bb8=>this[_0x302222(0x196)](_0x321bb8),'parseJson':_0x504b78=>JSON[_0x302222(0x197)](_0x504b78),'onLoad':(_0x36f7b5,_0x19a63c)=>{const _0x50617f=_0x302222;this[_0x50617f(0x1b1)](_0x36f7b5,_0x19a63c);},'onUnLoad':_0x3763b8=>{const _0x531fee=_0x302222,_0x3fa5e5=this[_0x531fee(0x1c2)][_0x531fee(0x1cd)](_0x3763b8);_0x3fa5e5&&(_0x3fa5e5['forEach'](_0x3ca4c4=>{const _0x535d11=_0x531fee;_0x3ca4c4[_0x535d11(0x178)]();}),this[_0x531fee(0x1c2)]['delete'](_0x3763b8));}});}[_0x29d238(0x178)](){const _0x350c50=_0x29d238;this[_0x350c50(0x1c2)][_0x350c50(0x1cc)](_0x1f4535=>{const _0x4ac7a4=_0x350c50;_0x1f4535[_0x4ac7a4(0x1cc)](_0xfd02d9=>{const _0x4abafe=_0x4ac7a4;_0xfd02d9[_0x4abafe(0x178)]();});});}},_0x15aad8[_0x29d238(0x184)]=_0x12db77([_0x6bf2c5(0x0,_0x5a3fed[_0x29d238(0x17b)])],_0x15aad8[_0x29d238(0x184)]);const _0x4e436b={'id':_0x29d238(0x1a3),'type':_0x5a3fed['CommandType']['MUTATION'],'handler':(_0x555f6e,_0x59783e)=>{const _0x37cec4=_0x29d238,{unitId:_0x5b9f75,subUnitId:_0x425870,shapeType:_0x540abf,shapeId:_0x104fdf,shapeData:_0x172443}=_0x59783e,_0x12c4a0=_0x555f6e[_0x37cec4(0x1cd)](_0x15aad8[_0x37cec4(0x184)])[_0x37cec4(0x179)](_0x5b9f75,_0x425870,_0x104fdf);return _0x12c4a0&&(_0x12c4a0[_0x37cec4(0x1cf)](_0x540abf),_0x172443&&(_0x12c4a0==null||_0x12c4a0[_0x37cec4(0x18a)](_0x172443))),!0x0;}},_0x8cd1ba={'id':_0x29d238(0x1c8),'type':_0x5a3fed[_0x29d238(0x18c)][_0x29d238(0x1be)],'handler':(_0x393f19,_0x57064c)=>{const _0x18d714=_0x29d238;if(!_0x57064c)return!0x1;const _0x5a17ad=_0x393f19[_0x18d714(0x1cd)](_0x5a3fed[_0x18d714(0x1ce)]),_0x4951f8=_0x393f19[_0x18d714(0x1cd)](_0x15aad8[_0x18d714(0x184)]),_0x50ad9f=_0x393f19[_0x18d714(0x1cd)](_0x5a3fed['IUndoRedoService']),_0x2ffd4e=[],_0x5019da=[],{unitId:_0x5a3b38,subUnitId:_0x2edd59,shapeId:_0x3e28c9,shapeType:_0x13f221,shapeData:_0x55535a}=_0x57064c,_0x70dae=_0x4951f8[_0x18d714(0x179)](_0x5a3b38,_0x2edd59,_0x3e28c9);if(_0x70dae){const _0x3d4226=_0x70dae[_0x18d714(0x188)](),_0x3817d8=Object[_0x18d714(0x1dc)]({},_0x70dae['getShapeData']()),_0x5ebf06={'unitId':_0x5a3b38,'subUnitId':_0x2edd59,'shapeId':_0x3e28c9,'shapeType':_0x13f221,'shapeData':_0x55535a},_0x55cf63={'unitId':_0x5a3b38,'subUnitId':_0x2edd59,'shapeId':_0x3e28c9,'shapeType':_0x3d4226,'shapeData':_0x3817d8};return _0x2ffd4e[_0x18d714(0x19a)]({'id':_0x4e436b['id'],'params':_0x5ebf06}),_0x5019da[_0x18d714(0x19a)]({'id':_0x4e436b['id'],'params':_0x55cf63}),_0x2ffd4e[_0x18d714(0x17f)](_0x1d2b96=>_0x5a17ad[_0x18d714(0x199)](_0x1d2b96['id'],_0x1d2b96['params']))&&_0x50ad9f[_0x18d714(0x1d1)]({'unitID':_0x5a3b38,'redoMutations':[..._0x2ffd4e],'undoMutations':[..._0x5019da]}),!0x0;}return!0x1;}},_0x4f450d={'id':'sheet.mutation.insert-shape','type':_0x5a3fed[_0x29d238(0x18c)][_0x29d238(0x1aa)],'handler':(_0xf8a35e,_0x2d0eab)=>{const _0x50193e=_0x29d238,{unitId:_0x4654bc,subUnitId:_0x175b00,shapeType:_0x2ca2a6,shapeId:_0x179889,shapeData:_0x1a87e1}=_0x2d0eab;return _0xf8a35e[_0x50193e(0x1cd)](_0x15aad8['SheetsShapeServices'])[_0x50193e(0x18e)](_0x4654bc,_0x175b00,_0x2ca2a6,_0x179889,_0x1a87e1),!0x0;}},_0x4b15f4={'id':_0x29d238(0x1ae),'type':_0x5a3fed['CommandType'][_0x29d238(0x1aa)],'handler':(_0x56751a,_0x3ebfe9)=>{const _0x2fc232=_0x29d238,{unitId:_0x242aef,subUnitId:_0x194b65,shapeId:_0x571032}=_0x3ebfe9;return _0x56751a[_0x2fc232(0x1cd)](_0x15aad8[_0x2fc232(0x184)])[_0x2fc232(0x1c0)](_0x242aef,_0x194b65,_0x571032),!0x0;}},_0x526ca2={'id':_0x29d238(0x1ba),'type':_0x5a3fed[_0x29d238(0x18c)][_0x29d238(0x1aa)],'handler':(_0x55f1f3,_0x26d562)=>{const _0x44b107=_0x29d238,{unitId:_0xd9096d,subUnitId:_0x58adae,shapeType:_0x50eace,shapeId:_0x59de30,shapeData:_0x4f930b}=_0x26d562,_0x22b0cb=_0x55f1f3[_0x44b107(0x1cd)](_0x15aad8[_0x44b107(0x184)])['getShapeModel'](_0xd9096d,_0x58adae,_0x59de30);return _0x22b0cb&&(_0x50eace!==void 0x0&&_0x22b0cb[_0x44b107(0x1cf)](_0x50eace),_0x4f930b&&(_0x22b0cb==null||_0x22b0cb['setShapeData'](_0x4f930b,!0x0))),!0x0;}},_0x15527d='sheets-shape.config',_0x5b088c={};var _0x2e1606=Object[_0x29d238(0x1d3)],_0x58fec3=Object[_0x29d238(0x1d4)],_0x12b1ae=(_0x5ac347,_0x5f0320,_0x55c9f1)=>_0x5f0320 in _0x5ac347?_0x2e1606(_0x5ac347,_0x5f0320,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55c9f1}):_0x5ac347[_0x5f0320]=_0x55c9f1,_0x4b10b4=(_0x272963,_0x18319b,_0x61497,_0x411602)=>{for(var _0x259369=_0x411602>0x1?void 0x0:_0x411602?_0x58fec3(_0x18319b,_0x61497):_0x18319b,_0x37c842=_0x272963['length']-0x1,_0x47dda1;_0x37c842>=0x0;_0x37c842--)(_0x47dda1=_0x272963[_0x37c842])&&(_0x259369=_0x47dda1(_0x259369)||_0x259369);return _0x259369;},_0x3ce4e3=(_0xa0dfd6,_0x58c20e)=>(_0xd69854,_0xbaaaaf)=>_0x58c20e(_0xd69854,_0xbaaaaf,_0xa0dfd6),_0x278fc8=(_0x2a5dbd,_0x58cd8f,_0xd67d38)=>_0x12b1ae(_0x2a5dbd,typeof _0x58cd8f!=_0x29d238(0x1d2)?_0x58cd8f+'':_0x58cd8f,_0xd67d38);const _0x1e35f0='SHEET_SHAPE_PLUGIN';_0x15aad8[_0x29d238(0x1bf)]=class extends _0x5a3fed[_0x29d238(0x186)]{constructor(_0x78a863=_0x5b088c,_0x13e648,_0x378890,_0x58daa4){const _0x2b9f6a=_0x29d238;super(),this['_config']=_0x78a863,this[_0x2b9f6a(0x1a4)]=_0x13e648,this[_0x2b9f6a(0x17d)]=_0x378890,this[_0x2b9f6a(0x17e)]=_0x58daa4;const {..._0x532eaa}=_0x5a3fed[_0x2b9f6a(0x1c7)]({},_0x5b088c,this[_0x2b9f6a(0x177)]);this['_configService'][_0x2b9f6a(0x180)](_0x15527d,_0x532eaa),this[_0x2b9f6a(0x174)]();}[_0x29d238(0x1d6)](){const _0x31faf3=_0x29d238;_0x5a3fed[_0x31faf3(0x1b8)](this[_0x31faf3(0x1a4)],[]);}[_0x29d238(0x1c6)](){const _0x3c0eb8=_0x29d238,_0x26e432=this[_0x3c0eb8(0x1a4)];[[_0x1ef7fb],[_0x15aad8[_0x3c0eb8(0x184)]]][_0x3c0eb8(0x1cc)](_0x406e4c=>_0x26e432[_0x3c0eb8(0x1c1)](_0x406e4c));}[_0x29d238(0x174)](){const _0x5eefb0=_0x29d238;[_0x4f450d,_0x4b15f4,_0x4e436b,_0x526ca2][_0x5eefb0(0x1cc)](_0x4430db=>this[_0x5eefb0(0x1a9)](this[_0x5eefb0(0x17d)][_0x5eefb0(0x1d8)](_0x4430db)));}},_0x278fc8(_0x15aad8[_0x29d238(0x1bf)],_0x29d238(0x18f),_0x5a3fed[_0x29d238(0x17c)][_0x29d238(0x1da)]),_0x278fc8(_0x15aad8[_0x29d238(0x1bf)],_0x29d238(0x1bd),_0x1e35f0),_0x15aad8['UniverSheetsShapePlugin']=_0x4b10b4([_0x5a3fed[_0x29d238(0x19f)](_0x170281[_0x29d238(0x191)]),_0x3ce4e3(0x1,_0x5a3fed[_0x29d238(0x175)](_0x5a3fed['Injector'])),_0x3ce4e3(0x2,_0x5a3fed[_0x29d238(0x1ce)]),_0x3ce4e3(0x3,_0x5a3fed[_0x29d238(0x1a6)])],_0x15aad8[_0x29d238(0x1bf)]),_0x15aad8[_0x29d238(0x189)]=_0x4f450d,_0x15aad8[_0x29d238(0x1b9)]=_0x4b15f4,_0x15aad8['UpdateSheetsShapeDataMutation']=_0x526ca2,_0x15aad8[_0x29d238(0x1ab)]=_0x8cd1ba,_0x15aad8[_0x29d238(0x1ac)]=_0x4e436b,Object['defineProperty'](_0x15aad8,Symbol[_0x29d238(0x1b6)],{'value':_0x29d238(0x19e)});}));function _0x2641(_0x37c046,_0x27e84e){_0x37c046=_0x37c046-0x174;const _0x57e45e=_0x57e4();let _0x2641a5=_0x57e45e[_0x37c046];return _0x2641a5;}function _0x57e4(){const _0x2e05de=['UpdateSheetsShapeTypeCommand','UpdateSheetsShapeTypeMutation','getShapeTypeById','sheet.mutation.remove-shape','shapeId','addShape','_deserializeShapeForUnit','Disposable','exports','350136NDUvAd','isConnectorShape','toStringTag','from','touchDependencies','RemoveSheetsShapeMutation','sheet.mutation.update-shape-data','42cBqLfB','amd','pluginName','COMMAND','UniverSheetsShapePlugin','removeShape','add','_shapeModelManagerMap','fromJSON','UniverCore','_groupIds','onStarting','merge','sheet.command.update-shape-type','UniverProLicense','3899250STwkJw','getBasicShapeType','forEach','get','ICommandService','setShapeType','UniverProSheetsShape','pushUndoRedo','symbol','defineProperty','getOwnPropertyDescriptor','_initSnapshot','onRendered','registerPluginResource','registerCommand','getShapeRelation','UNIVER_SHEET','getShapeDataById','assign','_initCommands','Inject','190821rhFSEB','_config','dispose','getShapeModel','_ensureShapeModelManager','IResourceManagerService','UniverInstanceType','_commandService','_configService','every','setConfig','_resourcesManagerService','getLineShapeRelation','has','SheetsShapeServices','_disposed','Plugin','set','getShapeType','InsertSheetsShapeMutation','setShapeData','21WYuotR','CommandType','delete','insertShape','type','getBasicShapeRelation','UniverLicensePlugin','hasShape','@univerjs-pro/license','_linesIds','2620880MVuyPZ','_serializeShapeForUnit','parse','5519574tVHzsu','syncExecuteCommand','push','52246ywPokC','toJSON','getShapeData','Module','DependentOn','594186ykvpxT','length','object','sheet.mutation.update-shape-type','_injector','_shapes','IConfigService','isLineShape','stringify','disposeWithMe','MUTATION'];_0x57e4=function(){return _0x2e05de;};return _0x57e4();}
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.4-insiders.20260211-f06b0a7",
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.4-insiders.20260211-f06b0a7",
61
- "@univerjs-pro/license": "0.15.4-insiders.20260211-f06b0a7",
62
- "@univerjs/core": "0.15.4-insiders.20260211-f06b0a7"
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/sheets": "0.15.4-insiders.20260211-f06b0a7",
70
- "@univerjs-infra/shared": "0.15.4"
69
+ "@univerjs-infra/shared": "0.15.4",
70
+ "@univerjs/sheets": "0.15.4"
71
71
  },
72
72
  "scripts": {
73
73
  "test": "vitest run",