@univerjs-pro/sheets-shape 0.16.1 → 0.17.0-insiders.20260318-d69dc16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5bdef9=_0x366b;(function(_0x179329,_0x35630a){const _0x565a33=_0x366b,_0x159c64=_0x179329();while(!![]){try{const _0xf70f11=-parseInt(_0x565a33(0x93))/0x1+parseInt(_0x565a33(0xb2))/0x2+-parseInt(_0x565a33(0x8f))/0x3*(-parseInt(_0x565a33(0x99))/0x4)+parseInt(_0x565a33(0xbf))/0x5+parseInt(_0x565a33(0xad))/0x6*(parseInt(_0x565a33(0xb3))/0x7)+-parseInt(_0x565a33(0x8b))/0x8*(parseInt(_0x565a33(0xa0))/0x9)+-parseInt(_0x565a33(0xd4))/0xa;if(_0xf70f11===_0x35630a)break;else _0x159c64['push'](_0x159c64['shift']());}catch(_0x4fa0b2){_0x159c64['push'](_0x159c64['shift']());}}}(_0x53e0,0x28e80));var D=Object[_0x5bdef9(0xe0)],C=(_0x33a39f,_0x57d697,_0x48e259)=>_0x57d697 in _0x33a39f?D(_0x33a39f,_0x57d697,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48e259}):_0x33a39f[_0x57d697]=_0x48e259,S=(_0x26a040,_0x24f65e,_0x215a3f)=>C(_0x26a040,typeof _0x24f65e!='symbol'?_0x24f65e+'':_0x24f65e,_0x215a3f);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x5bdef9(0xa3)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');class f extends p[_0x5bdef9(0x92)]{constructor(){const _0x2cb75b=_0x5bdef9;super(),S(this,_0x2cb75b(0xdb),new Map()),S(this,_0x2cb75b(0xa2),new Set()),S(this,'_groupIds',new Set());}['addShape'](_0x43553d,_0x5af8a8,_0x4e0f67){const _0x27d047=_0x5bdef9,_0x467279=new l[(_0x27d047(0x98))](_0x43553d,_0x5af8a8,_0x4e0f67);return this['_shapes'][_0x27d047(0xc5)](_0x5af8a8,_0x467279),l[_0x27d047(0x8c)](_0x43553d)&&this[_0x27d047(0xa2)][_0x27d047(0xbd)](_0x5af8a8),_0x467279;}[_0x5bdef9(0xb5)](_0x1b5d93){const _0x1456d3=_0x5bdef9;var _0x2184f7,_0x3d8de0;const _0x302d62=[];for(const _0x29e02c of this[_0x1456d3(0xa2)]){const _0x3d107c=this[_0x1456d3(0xdb)][_0x1456d3(0xc8)](_0x29e02c);if(_0x3d107c){const _0x352ee2=_0x3d107c['getShapeRelation']();_0x352ee2&&(((_0x2184f7=_0x352ee2[_0x1456d3(0xa8)])==null?void 0x0:_0x2184f7[_0x1456d3(0xb8)])===_0x1b5d93&&_0x302d62['push']({..._0x352ee2['from'],'lineShapeId':_0x29e02c,'isFrom':!0x0}),((_0x3d8de0=_0x352ee2['to'])==null?void 0x0:_0x3d8de0[_0x1456d3(0xb8)])===_0x1b5d93&&_0x302d62[_0x1456d3(0xbc)]({..._0x352ee2['to'],'lineShapeId':_0x29e02c,'isFrom':!0x1}));}}return _0x302d62;}[_0x5bdef9(0xd2)](_0x138efd){const _0x455bc5=this['_shapes']['get'](_0x138efd);if(_0x455bc5)return _0x455bc5['getShapeRelation']();}[_0x5bdef9(0xbb)](_0x48b5db){const _0x3986c4=_0x5bdef9,_0x27679a=this[_0x3986c4(0xdb)][_0x3986c4(0xc8)](_0x48b5db);if(_0x27679a)return _0x27679a[_0x3986c4(0xbb)]();}[_0x5bdef9(0xd9)](_0x36adbf){return this['_shapes']['has'](_0x36adbf);}[_0x5bdef9(0xc7)](_0x15590e){const _0x474da0=_0x5bdef9,_0x4e016d=this['_shapes']['get'](_0x15590e);_0x4e016d&&(l[_0x474da0(0x8c)](_0x4e016d['getShapeType']())&&this['_linesIds'][_0x474da0(0x85)](_0x15590e),this[_0x474da0(0xdb)][_0x474da0(0x85)](_0x15590e));}['toJSON'](){const _0x98070e=_0x5bdef9,_0x264d80=[];return this[_0x98070e(0xdb)][_0x98070e(0xd1)](_0x3e773b=>{const _0x4a4307=_0x98070e;_0x264d80[_0x4a4307(0xbc)](_0x3e773b['toJSON']());}),_0x264d80;}[_0x5bdef9(0x84)](_0x2cd3ac){const _0x583b02=_0x5bdef9;for(const _0x1051e3 of _0x2cd3ac){const {id:_0x21a3eb,shapeType:_0x1d20be}=_0x1051e3,_0x35cfd8=this['addShape'](_0x1d20be,_0x21a3eb,_0x1051e3[_0x583b02(0xcd)]);_0x35cfd8&&_0x35cfd8['isLineShape']()&&this[_0x583b02(0xa2)][_0x583b02(0xbd)](_0x21a3eb);}}[_0x5bdef9(0xbe)](){const _0x5dba9c=_0x5bdef9;this[_0x5dba9c(0xd7)]||(this[_0x5dba9c(0xdb)][_0x5dba9c(0xd1)](_0xa5e8ec=>{const _0xe71bd8=_0x5dba9c;_0xa5e8ec[_0xe71bd8(0xbe)]();}),this[_0x5dba9c(0xdb)][_0x5dba9c(0x96)](),this[_0x5dba9c(0xa2)]['clear'](),this[_0x5dba9c(0x90)][_0x5dba9c(0x96)](),super['dispose']());}}var R=Object[_0x5bdef9(0xb0)],j=(_0xc6d00c,_0x16dfb5,_0x583191,_0x39a53b)=>{const _0x2ea79b=_0x5bdef9;for(var _0x1ddc4d=_0x39a53b>0x1?void 0x0:_0x39a53b?R(_0x16dfb5,_0x583191):_0x16dfb5,_0x12c755=_0xc6d00c[_0x2ea79b(0xd3)]-0x1,_0x2f63e5;_0x12c755>=0x0;_0x12c755--)(_0x2f63e5=_0xc6d00c[_0x12c755])&&(_0x1ddc4d=_0x2f63e5(_0x1ddc4d)||_0x1ddc4d);return _0x1ddc4d;},J=(_0x81bb2,_0x58681c)=>(_0x28cde6,_0x2551af)=>_0x58681c(_0x28cde6,_0x2551af,_0x81bb2);function _0x366b(_0x3cd96f,_0x105667){_0x3cd96f=_0x3cd96f-0x81;const _0x53e0b4=_0x53e0();let _0x366b3c=_0x53e0b4[_0x3cd96f];return _0x366b3c;}const w=_0x5bdef9(0x8d);function _0x53e0(){const _0xa72e9f=['getShapeType','push','add','dispose','1516205MxJGbC','merge','UniverSheetsShapePlugin','_shapeModelManagerMap','UpdateSheetsShapeTypeMutation','type','set','getShapeData','removeShape','get','Injector','pluginName','registerCommand','Plugin','shapeData','UpdateSheetsShapeTypeCommand','keys','touchDependencies','forEach','getLineShapeRelation','length','1443640mKsZdr','syncExecuteCommand','MUTATION','_disposed','DependentOn','hasShape','addShape','_shapes','insertShape','disposeWithMe','Inject','symbol','defineProperty','CommandType','setShapeData','_injector','fromJSON','delete','setConfig','_initSnapshot','toJSON','_config','every','6624EkpWWC','isConnectorShape','SHEET_SHAPE_PLUGIN','_ensureShapeModelManager','471054sBPMZZ','_groupIds','_commandService','Disposable','60647ELlIlD','InsertSheetsShapeMutation','getShapeModel','clear','onStarting','ShapeModel','4rVYaJN','_deserializeShapeForUnit','getShapeTypeById','_resourcesManagerService','IResourceManagerService','UniverInstanceType','UNIVER_SHEET','2466NgVZmi','sheet.mutation.update-shape-type','_linesIds','Module','_configService','ICommandService','sheets-shape.config','UpdateSheetsShapeDataMutation','from','IConfigService','sheet.mutation.update-shape-data','setShapeType','IUndoRedoService','6PYkKMl','assign','_serializeShapeForUnit','getOwnPropertyDescriptor','SheetsShapeService','6590gZmjWy','951167iXpVHj','parse','getBasicShapeRelation','UniverLicensePlugin','onRendered','shapeId','getShapeRelation','sheet.mutation.insert-shape'];_0x53e0=function(){return _0xa72e9f;};return _0x53e0();}exports[_0x5bdef9(0xb1)]=class extends p[_0x5bdef9(0x92)]{constructor(_0x3ecd81){const _0x46e24b=_0x5bdef9;super(),S(this,_0x46e24b(0xc2),new Map()),(this[_0x46e24b(0x9c)]=_0x3ecd81,this['_initSnapshot']());}['_ensureShapeModelManager'](_0x51e069,_0x52b25c){const _0x467ca7=_0x5bdef9;let _0x153d2b=this[_0x467ca7(0xc2)]['get'](_0x51e069);_0x153d2b||(_0x153d2b=new Map(),this[_0x467ca7(0xc2)][_0x467ca7(0xc5)](_0x51e069,_0x153d2b));let _0x3205d0=_0x153d2b[_0x467ca7(0xc8)](_0x52b25c);return _0x3205d0||(_0x3205d0=new f(),_0x153d2b[_0x467ca7(0xc5)](_0x52b25c,_0x3205d0)),_0x3205d0;}['insertShape'](_0x2625f5,_0x51843a,_0x4de087,_0x55889b,_0x32ee44){const _0xc45871=_0x5bdef9;this[_0xc45871(0x8e)](_0x2625f5,_0x51843a)[_0xc45871(0xda)](_0x4de087,_0x55889b,_0x32ee44);}[_0x5bdef9(0xc7)](_0x4def8f,_0x5758c4,_0x5d788c){const _0x5c4f59=_0x5bdef9;this[_0x5c4f59(0x8e)](_0x4def8f,_0x5758c4)['removeShape'](_0x5d788c);}['getBasicShapeType'](_0x5503e8,_0x2fc19,_0x4b39f3){const _0x4b9083=_0x5bdef9;return this[_0x4b9083(0x8e)](_0x5503e8,_0x2fc19)[_0x4b9083(0xbb)](_0x4b39f3);}[_0x5bdef9(0xbb)](_0x56c5af,_0x2ad505,_0x467b87){const _0x33b946=_0x5bdef9;return this[_0x33b946(0x8e)](_0x56c5af,_0x2ad505)[_0x33b946(0xbb)](_0x467b87);}[_0x5bdef9(0xd9)](_0x136970,_0x46d7e1,_0x1f6b9a){const _0x584094=_0x5bdef9;return this[_0x584094(0x8e)](_0x136970,_0x46d7e1)[_0x584094(0xd9)](_0x1f6b9a);}[_0x5bdef9(0x9b)](_0x4e19b1,_0x30586e,_0x37e3d7){const _0xfa113b=_0x5bdef9;return this[_0xfa113b(0x8e)](_0x4e19b1,_0x30586e)[_0xfa113b(0xbb)](_0x37e3d7);}['getShapeDataById'](_0x1691ee,_0x44746d,_0x41f612){const _0x5616e8=_0x5bdef9,_0x4b837b=this[_0x5616e8(0x8e)](_0x1691ee,_0x44746d);if(!_0x4b837b[_0x5616e8(0xbb)](_0x41f612))return;const _0xb08b32=_0x4b837b[_0x5616e8(0xdb)]['get'](_0x41f612);if(_0xb08b32)return _0xb08b32['getShapeData']();}[_0x5bdef9(0x95)](_0x35e935,_0x564ef9,_0x1bd019){const _0x28f2e8=_0x5bdef9;return this['_ensureShapeModelManager'](_0x35e935,_0x564ef9)[_0x28f2e8(0xdb)][_0x28f2e8(0xc8)](_0x1bd019);}[_0x5bdef9(0xb5)](_0x4c48cf,_0x1293b7,_0x200e5b){const _0x2671b1=_0x5bdef9;return this[_0x2671b1(0x8e)](_0x4c48cf,_0x1293b7)[_0x2671b1(0xb5)](_0x200e5b);}['getLineShapeRelation'](_0x218dfa,_0x4bb0fd,_0x3c5623){const _0x4c822c=_0x5bdef9,_0x35de24=this[_0x4c822c(0x8e)](_0x218dfa,_0x4bb0fd)[_0x4c822c(0xdb)]['get'](_0x3c5623);if(_0x35de24)return _0x35de24[_0x4c822c(0xb9)]();}['setShapeType'](){}[_0x5bdef9(0xaf)](_0x547392){const _0x1c10b2=_0x5bdef9,_0x418aba={},_0x27cc91=this[_0x1c10b2(0xc2)][_0x1c10b2(0xc8)](_0x547392);return _0x27cc91&&_0x27cc91[_0x1c10b2(0xd1)]((_0x57de1e,_0x5fa759)=>{const _0x46a2db=_0x1c10b2,_0x4c7a72=_0x57de1e[_0x46a2db(0x88)]();_0x4c7a72['length']>0x0&&(_0x418aba[_0x5fa759]=_0x4c7a72);}),JSON['stringify'](_0x418aba);}[_0x5bdef9(0x9a)](_0x329cf9,_0x407b0b){Object['keys'](_0x407b0b)['forEach'](_0x30b59f=>{const _0x1da7e7=_0x366b;this[_0x1da7e7(0x8e)](_0x329cf9,_0x30b59f)[_0x1da7e7(0x84)](_0x407b0b[_0x30b59f]);});}['toJSON'](){const _0x74037d=_0x5bdef9,_0x66638b={};return this[_0x74037d(0xc2)][_0x74037d(0xd1)]((_0x2f4732,_0x5c0378)=>{const _0x44ee72=_0x74037d;_0x66638b[_0x5c0378]={},_0x2f4732[_0x44ee72(0xd1)]((_0x335739,_0x5e1c67)=>{const _0x13e67d=_0x44ee72;_0x66638b[_0x5c0378][_0x5e1c67]=_0x335739[_0x13e67d(0x88)]();});}),_0x66638b;}[_0x5bdef9(0x84)](_0x55c5a3){const _0x2eb989=_0x5bdef9;Object[_0x2eb989(0xcf)](_0x55c5a3)[_0x2eb989(0xd1)](_0x5435cb=>{const _0x5ed9ea=_0x55c5a3[_0x5435cb];Object['keys'](_0x5ed9ea)['forEach'](_0xf8f2be=>{const _0x538805=_0x366b;this[_0x538805(0x8e)](_0x5435cb,_0xf8f2be)[_0x538805(0x84)](_0x5ed9ea[_0xf8f2be]);});});}[_0x5bdef9(0x87)](){const _0x10a8ab=_0x5bdef9;this['_resourcesManagerService']['registerPluginResource']({'pluginName':w,'businesses':[p['UniverInstanceType'][_0x10a8ab(0x9f)]],'toJson':_0x42eee5=>this[_0x10a8ab(0xaf)](_0x42eee5),'parseJson':_0x39666c=>JSON[_0x10a8ab(0xb4)](_0x39666c),'onLoad':(_0x1bcc84,_0x5973cd)=>{const _0x62e604=_0x10a8ab;this[_0x62e604(0x9a)](_0x1bcc84,_0x5973cd);},'onUnLoad':_0x34f8c5=>{const _0x44b107=_0x10a8ab,_0x2a7f2b=this['_shapeModelManagerMap'][_0x44b107(0xc8)](_0x34f8c5);_0x2a7f2b&&(_0x2a7f2b[_0x44b107(0xd1)](_0x825704=>{const _0x585ac2=_0x44b107;_0x825704[_0x585ac2(0xbe)]();}),this[_0x44b107(0xc2)][_0x44b107(0x85)](_0x34f8c5));}});}['dispose'](){const _0x48cde3=_0x5bdef9;this[_0x48cde3(0xc2)][_0x48cde3(0xd1)](_0x21f81d=>{const _0x24458e=_0x48cde3;_0x21f81d[_0x24458e(0xd1)](_0x119fc0=>{_0x119fc0['dispose']();});});}},exports[_0x5bdef9(0xb1)]=j([J(0x0,p[_0x5bdef9(0x9d)])],exports['SheetsShapeService']);const d={'id':_0x5bdef9(0xa1),'type':p[_0x5bdef9(0x81)][_0x5bdef9(0xd6)],'handler':(_0x2b7367,_0x20dbe0)=>{const _0x1c6b26=_0x5bdef9,{unitId:_0xe9a60,subUnitId:_0x55fbf5,shapeType:_0x2cbc0e,shapeId:_0x360da8,shapeData:_0x5c6261}=_0x20dbe0,_0x4d72aa=_0x2b7367[_0x1c6b26(0xc8)](exports[_0x1c6b26(0xb1)])['getShapeModel'](_0xe9a60,_0x55fbf5,_0x360da8);return _0x4d72aa&&(_0x4d72aa[_0x1c6b26(0xab)](_0x2cbc0e),_0x5c6261&&(_0x4d72aa==null||_0x4d72aa[_0x1c6b26(0x82)](_0x5c6261))),!0x0;}},H={'id':'sheet.command.update-shape-type','type':p[_0x5bdef9(0x81)]['COMMAND'],'handler':(_0x59dbe0,_0x9f6841)=>{const _0x360d72=_0x5bdef9;if(!_0x9f6841)return!0x1;const _0x122f6a=_0x59dbe0[_0x360d72(0xc8)](p[_0x360d72(0xa5)]),_0x2118c2=_0x59dbe0[_0x360d72(0xc8)](exports[_0x360d72(0xb1)]),_0x2fe521=_0x59dbe0[_0x360d72(0xc8)](p[_0x360d72(0xac)]),_0x28c6b8=[],_0x249245=[],{unitId:_0xfd4f3f,subUnitId:_0x4df752,shapeId:_0xe9c59a,shapeType:_0x334e40,shapeData:_0x4f67d0}=_0x9f6841,_0x4c4eb2=_0x2118c2[_0x360d72(0x95)](_0xfd4f3f,_0x4df752,_0xe9c59a);if(_0x4c4eb2){const _0x319070=_0x4c4eb2[_0x360d72(0xbb)](),_0x4bf1c4=Object[_0x360d72(0xae)]({},_0x4c4eb2[_0x360d72(0xc6)]()),_0x1b3995={'unitId':_0xfd4f3f,'subUnitId':_0x4df752,'shapeId':_0xe9c59a,'shapeType':_0x334e40,'shapeData':_0x4f67d0},_0x3f0ddf={'unitId':_0xfd4f3f,'subUnitId':_0x4df752,'shapeId':_0xe9c59a,'shapeType':_0x319070,'shapeData':_0x4bf1c4};return _0x28c6b8[_0x360d72(0xbc)]({'id':d['id'],'params':_0x1b3995}),_0x249245['push']({'id':d['id'],'params':_0x3f0ddf}),_0x28c6b8[_0x360d72(0x8a)](_0x400e5a=>_0x122f6a[_0x360d72(0xd5)](_0x400e5a['id'],_0x400e5a['params']))&&_0x2fe521['pushUndoRedo']({'unitID':_0xfd4f3f,'redoMutations':[..._0x28c6b8],'undoMutations':[..._0x249245]}),!0x0;}return!0x1;}},m={'id':_0x5bdef9(0xba),'type':p[_0x5bdef9(0x81)][_0x5bdef9(0xd6)],'handler':(_0x1199bf,_0x553bca)=>{const _0x1a7434=_0x5bdef9,{unitId:_0x90fc5f,subUnitId:_0x324b47,shapeType:_0x1e0052,shapeId:_0x44cde4,shapeData:_0x20f213}=_0x553bca;return _0x1199bf[_0x1a7434(0xc8)](exports[_0x1a7434(0xb1)])[_0x1a7434(0xdc)](_0x90fc5f,_0x324b47,_0x1e0052,_0x44cde4,_0x20f213),!0x0;}},v={'id':'sheet.mutation.remove-shape','type':p[_0x5bdef9(0x81)]['MUTATION'],'handler':(_0x4202ab,_0x22039d)=>{const _0x1374f1=_0x5bdef9,{unitId:_0x474c0f,subUnitId:_0x911f5b,shapeId:_0x1815ea}=_0x22039d;return _0x4202ab[_0x1374f1(0xc8)](exports['SheetsShapeService'])[_0x1374f1(0xc7)](_0x474c0f,_0x911f5b,_0x1815ea),!0x0;}},y={'id':_0x5bdef9(0xaa),'type':p[_0x5bdef9(0x81)][_0x5bdef9(0xd6)],'handler':(_0x6088cd,_0x1e2025)=>{const _0x10e940=_0x5bdef9,{unitId:_0x5553cf,subUnitId:_0x2c6138,shapeType:_0x5d3565,shapeId:_0x46d1c4,shapeData:_0x4b7fa7}=_0x1e2025,_0x26c3a8=_0x6088cd[_0x10e940(0xc8)](exports[_0x10e940(0xb1)])['getShapeModel'](_0x5553cf,_0x2c6138,_0x46d1c4);return _0x26c3a8&&(_0x5d3565!==void 0x0&&_0x26c3a8[_0x10e940(0xab)](_0x5d3565),_0x4b7fa7&&(_0x26c3a8==null||_0x26c3a8[_0x10e940(0x82)](_0x4b7fa7,!0x0))),!0x0;}},A=_0x5bdef9(0xa6),_={};var L=Object[_0x5bdef9(0xe0)],F=Object[_0x5bdef9(0xb0)],B=(_0x47c240,_0x1fac68,_0x4e520a)=>_0x1fac68 in _0x47c240?L(_0x47c240,_0x1fac68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e520a}):_0x47c240[_0x1fac68]=_0x4e520a,G=(_0xa9585d,_0x159aaf,_0x28d0ce,_0x2866a2)=>{const _0x132176=_0x5bdef9;for(var _0x466db8=_0x2866a2>0x1?void 0x0:_0x2866a2?F(_0x159aaf,_0x28d0ce):_0x159aaf,_0x58014c=_0xa9585d[_0x132176(0xd3)]-0x1,_0x35bc87;_0x58014c>=0x0;_0x58014c--)(_0x35bc87=_0xa9585d[_0x58014c])&&(_0x466db8=_0x35bc87(_0x466db8)||_0x466db8);return _0x466db8;},g=(_0x135368,_0x2e4e85)=>(_0x2e1cd3,_0x213f17)=>_0x2e4e85(_0x2e1cd3,_0x213f17,_0x135368),T=(_0x38249f,_0x3ee274,_0x5852c5)=>B(_0x38249f,typeof _0x3ee274!=_0x5bdef9(0xdf)?_0x3ee274+'':_0x3ee274,_0x5852c5);const x=_0x5bdef9(0x8d);exports[_0x5bdef9(0xc1)]=class extends p[_0x5bdef9(0xcc)]{constructor(_0xdc581e=_,_0xe386a9,_0x25b299,_0x1bb0f2){const _0x795715=_0x5bdef9;super(),this[_0x795715(0x89)]=_0xdc581e,this[_0x795715(0x83)]=_0xe386a9,this['_commandService']=_0x25b299,this[_0x795715(0xa4)]=_0x1bb0f2;const {..._0x4df42c}=p[_0x795715(0xc0)]({},_,this[_0x795715(0x89)]);this[_0x795715(0xa4)][_0x795715(0x86)](A,_0x4df42c),this['_initCommands']();}[_0x5bdef9(0xb7)](){const _0x36f1d7=_0x5bdef9;p[_0x36f1d7(0xd0)](this[_0x36f1d7(0x83)],[]);}[_0x5bdef9(0x97)](){const _0x3fcc57=_0x5bdef9,_0xdb361a=this[_0x3fcc57(0x83)];[[f],[exports[_0x3fcc57(0xb1)]]][_0x3fcc57(0xd1)](_0x584a99=>_0xdb361a[_0x3fcc57(0xbd)](_0x584a99));}['_initCommands'](){const _0x16624d=_0x5bdef9;[m,v,d,y][_0x16624d(0xd1)](_0x55c054=>this[_0x16624d(0xdd)](this[_0x16624d(0x91)][_0x16624d(0xcb)](_0x55c054)));}},T(exports[_0x5bdef9(0xc1)],_0x5bdef9(0xc4),p[_0x5bdef9(0x9e)]['UNIVER_SHEET']),T(exports['UniverSheetsShapePlugin'],_0x5bdef9(0xca),x),exports[_0x5bdef9(0xc1)]=G([p[_0x5bdef9(0xd8)](b[_0x5bdef9(0xb6)]),g(0x1,p[_0x5bdef9(0xde)](p[_0x5bdef9(0xc9)])),g(0x2,p[_0x5bdef9(0xa5)]),g(0x3,p[_0x5bdef9(0xa9)])],exports[_0x5bdef9(0xc1)]),exports[_0x5bdef9(0x94)]=m,exports['RemoveSheetsShapeMutation']=v,exports[_0x5bdef9(0xa7)]=y,exports[_0x5bdef9(0xce)]=H,exports[_0x5bdef9(0xc3)]=d;
1
+ const _0x2b2f04=_0x13d6;(function(_0xad766d,_0x4a8643){const _0x4ecb1f=_0x13d6,_0x2ae633=_0xad766d();while(!![]){try{const _0x3b73e0=-parseInt(_0x4ecb1f(0xfd))/0x1*(-parseInt(_0x4ecb1f(0xfe))/0x2)+parseInt(_0x4ecb1f(0xd8))/0x3*(-parseInt(_0x4ecb1f(0x14a))/0x4)+-parseInt(_0x4ecb1f(0x108))/0x5*(parseInt(_0x4ecb1f(0xfb))/0x6)+parseInt(_0x4ecb1f(0x13c))/0x7+-parseInt(_0x4ecb1f(0xec))/0x8*(parseInt(_0x4ecb1f(0xd9))/0x9)+parseInt(_0x4ecb1f(0x10b))/0xa+parseInt(_0x4ecb1f(0xe2))/0xb;if(_0x3b73e0===_0x4a8643)break;else _0x2ae633['push'](_0x2ae633['shift']());}catch(_0x532e7e){_0x2ae633['push'](_0x2ae633['shift']());}}}(_0x19f7,0x5d82b));function _0x19f7(){const _0x516f04=['syncExecuteCommand','keys','1651192cBJSKi','ICommandService','from','CommandType','SHEET_SHAPE_PLUGIN','UniverSheetsShapePlugin','set','shapeId','toStringTag','assign','getLineShapeRelation','setShapeType','onRendered','getBasicShapeRelation','_commandService','_initCommands','sheets-shape.config','subUnitId','clear','_linesIds','params','unitId','3IHAwby','45ZqVVYl','MUTATION','UpdateSheetsShapeTypeCommand','iterator','getShapeRelation','default','dispose','sheet.mutation.update-shape-type','insertShape','12112298ZYgrLu','UNIVER_SHEET','_injector','sheet.command.update-shape-type','addShape','writable','getOwnPropertyDescriptor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_disposed','every','1069400dNXQxB','ShapeModel','push','parse','fromJSON','decorate','type','toJSON','sheet.mutation.insert-shape','isConnectorShape','has','Module','object','shapeType','setShapeData','6BJsuiy','SheetsShapeService','1ASRwVg','828688XtRYaw','packageName','UpdateSheetsShapeTypeMutation','getShapeType','symbol','RemoveSheetsShapeMutation','getBasicShapeType','_shapes','registerPluginResource','IResourceManagerService','3174635iSdajf','enumerable','_groupIds','5339850XVCsdL','removeShape','InsertSheetsShapeMutation','onStarting','get','call','registerCommand','getShapeData','@univerjs-pro/license','_deserializeShapeForUnit','getShapeDataById','Disposable','_ensureShapeModelManager','toPrimitive','sheet.mutation.update-shape-data','pushUndoRedo','string','isLineShape','0.17.0-insiders.20260318-d69dc16','Plugin','@univerjs-pro/engine-shape','@univerjs-pro/sheets-shape','hasShape','setConfig','DependentOn','_shapeModelManagerMap','shapeData','Inject','value','pluginName','getShapeTypeById','UniverLicensePlugin','getShapeModel','defineProperty','touchDependencies','length','UpdateSheetsShapeDataMutation','_configService','function','IConfigService','disposeWithMe','IUndoRedoService','sheet.mutation.remove-shape','Injector','UniverInstanceType','_serializeShapeForUnit','COMMAND','add','constructor','347704EnuzQA','configurable','version','_config','@univerjs/core','forEach','prototype','delete','_initSnapshot','merge','_resourcesManagerService','stringify'];_0x19f7=function(){return _0x516f04;};return _0x19f7();}const _0x4a4242={};_0x4a4242[_0x2b2f04(0x127)]=_0x2b2f04(0xf7),Object[_0x2b2f04(0x12c)](exports,Symbol[_0x2b2f04(0xca)],_0x4a4242);let e=require(_0x2b2f04(0x140)),t=require(_0x2b2f04(0x11f)),n=require(_0x2b2f04(0x113));function r(_0x51a42a){'@babel/helpers - typeof';const _0x16fec8=_0x2b2f04;return r=typeof Symbol==_0x16fec8(0x131)&&typeof Symbol[_0x16fec8(0xdc)]==_0x16fec8(0x102)?function(_0x7e7368){return typeof _0x7e7368;}:function(_0x59aeca){const _0x2ed0f6=_0x16fec8;return _0x59aeca&&typeof Symbol==_0x2ed0f6(0x131)&&_0x59aeca[_0x2ed0f6(0x13b)]===Symbol&&_0x59aeca!==Symbol[_0x2ed0f6(0x142)]?_0x2ed0f6(0x102):typeof _0x59aeca;},r(_0x51a42a);}function i(_0x4778d7,_0x43f02b){const _0x4ad6c3=_0x2b2f04;if(r(_0x4778d7)!=_0x4ad6c3(0xf8)||!_0x4778d7)return _0x4778d7;var _0x46ce57=_0x4778d7[Symbol[_0x4ad6c3(0x118)]];if(_0x46ce57!==void 0x0){var _0x47de4a=_0x46ce57[_0x4ad6c3(0x110)](_0x4778d7,_0x43f02b||_0x4ad6c3(0xde));if(r(_0x47de4a)!=_0x4ad6c3(0xf8))return _0x47de4a;throw TypeError(_0x4ad6c3(0xe9));}return(_0x43f02b===_0x4ad6c3(0x11b)?String:Number)(_0x4778d7);}function a(_0x5c616c){const _0x35898c=_0x2b2f04;var _0x40ed15=i(_0x5c616c,_0x35898c(0x11b));return r(_0x40ed15)==_0x35898c(0x102)?_0x40ed15:_0x40ed15+'';}function o(_0x528a2a,_0x58d317,_0x410816){const _0x1b4d6b=_0x2b2f04,_0x48227a={};return _0x48227a[_0x1b4d6b(0x127)]=_0x410816,_0x48227a[_0x1b4d6b(0x109)]=!0x0,_0x48227a[_0x1b4d6b(0x13d)]=!0x0,_0x48227a[_0x1b4d6b(0xe7)]=!0x0,((_0x58d317=a(_0x58d317))in _0x528a2a?Object[_0x1b4d6b(0x12c)](_0x528a2a,_0x58d317,_0x48227a):_0x528a2a[_0x58d317]=_0x410816,_0x528a2a);}var s=class extends e[_0x2b2f04(0x116)]{constructor(){const _0x564020=_0x2b2f04;super(),o(this,_0x564020(0x105),new Map()),o(this,_0x564020(0xd5),new Set()),o(this,_0x564020(0x10a),new Set());}[_0x2b2f04(0xe6)](_0x582c19,_0x5b3619,_0x470ff3){const _0x281a83=_0x2b2f04;let _0x502ef8=new t[(_0x281a83(0xed))](_0x582c19,_0x5b3619,_0x470ff3);return this[_0x281a83(0x105)][_0x281a83(0x150)](_0x5b3619,_0x502ef8),(0x0,t[_0x281a83(0xf5)])(_0x582c19)&&this[_0x281a83(0xd5)][_0x281a83(0x13a)](_0x5b3619),_0x502ef8;}[_0x2b2f04(0xcf)](_0x4f6059){const _0x23d915=_0x2b2f04;let _0x589e03=[];for(let _0x55fb12 of this[_0x23d915(0xd5)]){let _0x54380b=this[_0x23d915(0x105)][_0x23d915(0x10f)](_0x55fb12);if(_0x54380b){let _0x53de92=_0x54380b[_0x23d915(0xdd)]();if(_0x53de92){var _0x1a0066,_0x35f2b5;((_0x1a0066=_0x53de92[_0x23d915(0x14c)])==null?void 0x0:_0x1a0066[_0x23d915(0x151)])===_0x4f6059&&_0x589e03[_0x23d915(0xee)]({..._0x53de92[_0x23d915(0x14c)],'lineShapeId':_0x55fb12,'isFrom':!0x0}),((_0x35f2b5=_0x53de92['to'])==null?void 0x0:_0x35f2b5[_0x23d915(0x151)])===_0x4f6059&&_0x589e03[_0x23d915(0xee)]({..._0x53de92['to'],'lineShapeId':_0x55fb12,'isFrom':!0x1});}}}return _0x589e03;}[_0x2b2f04(0xcc)](_0xf22e53){const _0x18ece6=_0x2b2f04;let _0x36eab7=this[_0x18ece6(0x105)][_0x18ece6(0x10f)](_0xf22e53);if(_0x36eab7)return _0x36eab7[_0x18ece6(0xdd)]();}[_0x2b2f04(0x101)](_0x26a35d){const _0x154757=_0x2b2f04;let _0x4474b9=this[_0x154757(0x105)][_0x154757(0x10f)](_0x26a35d);if(_0x4474b9)return _0x4474b9[_0x154757(0x101)]();}[_0x2b2f04(0x121)](_0x182102){const _0x5ebba7=_0x2b2f04;return this[_0x5ebba7(0x105)][_0x5ebba7(0xf6)](_0x182102);}[_0x2b2f04(0x10c)](_0x1ecb88){const _0x23cd8c=_0x2b2f04;let _0x3b9f24=this[_0x23cd8c(0x105)][_0x23cd8c(0x10f)](_0x1ecb88);_0x3b9f24&&((0x0,t[_0x23cd8c(0xf5)])(_0x3b9f24[_0x23cd8c(0x101)]())&&this[_0x23cd8c(0xd5)][_0x23cd8c(0x143)](_0x1ecb88),this[_0x23cd8c(0x105)][_0x23cd8c(0x143)](_0x1ecb88));}[_0x2b2f04(0xf3)](){const _0x33172=_0x2b2f04;let _0x13e8de=[];return this[_0x33172(0x105)][_0x33172(0x141)](_0x24b63d=>{const _0x4bb9f9=_0x33172;_0x13e8de[_0x4bb9f9(0xee)](_0x24b63d[_0x4bb9f9(0xf3)]());}),_0x13e8de;}[_0x2b2f04(0xf0)](_0x519327){const _0x1af777=_0x2b2f04;for(let _0x2dbf26 of _0x519327){let {id:_0x392684,shapeType:_0x170cc4}=_0x2dbf26,_0x49496e=this[_0x1af777(0xe6)](_0x170cc4,_0x392684,_0x2dbf26[_0x1af777(0x125)]);_0x49496e&&_0x49496e[_0x1af777(0x11c)]()&&this[_0x1af777(0xd5)][_0x1af777(0x13a)](_0x392684);}}[_0x2b2f04(0xdf)](){const _0x74a82d=_0x2b2f04;this[_0x74a82d(0xea)]||(this[_0x74a82d(0x105)][_0x74a82d(0x141)](_0x18cc7d=>{const _0x717a57=_0x74a82d;_0x18cc7d[_0x717a57(0xdf)]();}),this[_0x74a82d(0x105)][_0x74a82d(0xd4)](),this[_0x74a82d(0xd5)][_0x74a82d(0xd4)](),this[_0x74a82d(0x10a)][_0x74a82d(0xd4)](),super[_0x74a82d(0xdf)]());}};function c(_0x460261,_0x3e62b9){return function(_0x31a7d1,_0x2bdfe3){_0x3e62b9(_0x31a7d1,_0x2bdfe3,_0x460261);};}function l(_0x558e43,_0x54e6ff,_0x2ac51c,_0x32d3c5){const _0x32896e=_0x2b2f04;var _0x4c32e7=arguments[_0x32896e(0x12e)],_0x2e8f36=_0x4c32e7<0x3?_0x54e6ff:_0x32d3c5===null?_0x32d3c5=Object[_0x32896e(0xe8)](_0x54e6ff,_0x2ac51c):_0x32d3c5,_0x4311c4;if(typeof Reflect==_0x32896e(0xf8)&&typeof Reflect[_0x32896e(0xf1)]==_0x32896e(0x131))_0x2e8f36=Reflect[_0x32896e(0xf1)](_0x558e43,_0x54e6ff,_0x2ac51c,_0x32d3c5);else{for(var _0x46b956=_0x558e43[_0x32896e(0x12e)]-0x1;_0x46b956>=0x0;_0x46b956--)(_0x4311c4=_0x558e43[_0x46b956])&&(_0x2e8f36=(_0x4c32e7<0x3?_0x4311c4(_0x2e8f36):_0x4c32e7>0x3?_0x4311c4(_0x54e6ff,_0x2ac51c,_0x2e8f36):_0x4311c4(_0x54e6ff,_0x2ac51c))||_0x2e8f36);}return _0x4c32e7>0x3&&_0x2e8f36&&Object[_0x32896e(0x12c)](_0x54e6ff,_0x2ac51c,_0x2e8f36),_0x2e8f36;}let u=class extends e[_0x2b2f04(0x116)]{constructor(_0x5a035f){const _0x246084=_0x2b2f04;super(),this[_0x246084(0x146)]=_0x5a035f,o(this,_0x246084(0x124),new Map()),this[_0x246084(0x144)]();}[_0x2b2f04(0x117)](_0x1e40c4,_0x326d14){const _0x1b376d=_0x2b2f04;let _0x5002a4=this[_0x1b376d(0x124)][_0x1b376d(0x10f)](_0x1e40c4);_0x5002a4||(_0x5002a4=new Map(),this[_0x1b376d(0x124)][_0x1b376d(0x150)](_0x1e40c4,_0x5002a4));let _0x12127f=_0x5002a4[_0x1b376d(0x10f)](_0x326d14);return _0x12127f||(_0x12127f=new s(),_0x5002a4[_0x1b376d(0x150)](_0x326d14,_0x12127f)),_0x12127f;}[_0x2b2f04(0xe1)](_0x59c1d5,_0x1070bb,_0x1e442c,_0x10dfbf,_0x4a5a36){const _0x3b346e=_0x2b2f04;this[_0x3b346e(0x117)](_0x59c1d5,_0x1070bb)[_0x3b346e(0xe6)](_0x1e442c,_0x10dfbf,_0x4a5a36);}[_0x2b2f04(0x10c)](_0x5adaaa,_0x5aa4c6,_0x2c1321){const _0x58bf4d=_0x2b2f04;this[_0x58bf4d(0x117)](_0x5adaaa,_0x5aa4c6)[_0x58bf4d(0x10c)](_0x2c1321);}[_0x2b2f04(0x104)](_0x15f1d7,_0x230b2a,_0x1643dc){const _0x80bfd=_0x2b2f04;return this[_0x80bfd(0x117)](_0x15f1d7,_0x230b2a)[_0x80bfd(0x101)](_0x1643dc);}[_0x2b2f04(0x101)](_0x5b1325,_0x1bd496,_0x3f7541){const _0x4c3348=_0x2b2f04;return this[_0x4c3348(0x117)](_0x5b1325,_0x1bd496)[_0x4c3348(0x101)](_0x3f7541);}[_0x2b2f04(0x121)](_0x517f62,_0x6b627d,_0x186518){const _0x272f2f=_0x2b2f04;return this[_0x272f2f(0x117)](_0x517f62,_0x6b627d)[_0x272f2f(0x121)](_0x186518);}[_0x2b2f04(0x129)](_0x2b9f7d,_0x495be9,_0x46f0c0){const _0x4eb515=_0x2b2f04;return this[_0x4eb515(0x117)](_0x2b9f7d,_0x495be9)[_0x4eb515(0x101)](_0x46f0c0);}[_0x2b2f04(0x115)](_0xfd2a83,_0x4f131d,_0x59741d){const _0x308866=_0x2b2f04;let _0x5f2e20=this[_0x308866(0x117)](_0xfd2a83,_0x4f131d);if(!_0x5f2e20[_0x308866(0x101)](_0x59741d))return;let _0x4927c5=_0x5f2e20[_0x308866(0x105)][_0x308866(0x10f)](_0x59741d);if(_0x4927c5)return _0x4927c5[_0x308866(0x112)]();}[_0x2b2f04(0x12b)](_0x2ab6b1,_0x51d309,_0x1e1218){const _0x59eb27=_0x2b2f04;return this[_0x59eb27(0x117)](_0x2ab6b1,_0x51d309)[_0x59eb27(0x105)][_0x59eb27(0x10f)](_0x1e1218);}[_0x2b2f04(0xcf)](_0x1d659b,_0x3aaafb,_0x405337){const _0x3aea9a=_0x2b2f04;return this[_0x3aea9a(0x117)](_0x1d659b,_0x3aaafb)[_0x3aea9a(0xcf)](_0x405337);}[_0x2b2f04(0xcc)](_0x155c96,_0x21a2f6,_0x5b5159){const _0x3a4e6d=_0x2b2f04;let _0x5e56e2=this[_0x3a4e6d(0x117)](_0x155c96,_0x21a2f6)[_0x3a4e6d(0x105)][_0x3a4e6d(0x10f)](_0x5b5159);if(_0x5e56e2)return _0x5e56e2[_0x3a4e6d(0xdd)]();}[_0x2b2f04(0xcd)](){}[_0x2b2f04(0x138)](_0xb678a1){const _0x1993fc=_0x2b2f04;let _0x74f11={},_0x20a46a=this[_0x1993fc(0x124)][_0x1993fc(0x10f)](_0xb678a1);return _0x20a46a&&_0x20a46a[_0x1993fc(0x141)]((_0x3ba553,_0x26fcd3)=>{const _0x288811=_0x1993fc;let _0x4e2256=_0x3ba553[_0x288811(0xf3)]();_0x4e2256[_0x288811(0x12e)]>0x0&&(_0x74f11[_0x26fcd3]=_0x4e2256);}),JSON[_0x1993fc(0x147)](_0x74f11);}[_0x2b2f04(0x114)](_0x3dc6ed,_0x582d7c){const _0x507568=_0x2b2f04;Object[_0x507568(0x149)](_0x582d7c)[_0x507568(0x141)](_0x5f2286=>{const _0x206587=_0x507568;this[_0x206587(0x117)](_0x3dc6ed,_0x5f2286)[_0x206587(0xf0)](_0x582d7c[_0x5f2286]);});}[_0x2b2f04(0xf3)](){const _0x2e3274=_0x2b2f04;let _0x1b4253={};return this[_0x2e3274(0x124)][_0x2e3274(0x141)]((_0x431f8e,_0x10b33c)=>{const _0x582655=_0x2e3274;_0x1b4253[_0x10b33c]={},_0x431f8e[_0x582655(0x141)]((_0x34f4f3,_0x1d7251)=>{const _0x4d45a4=_0x582655;_0x1b4253[_0x10b33c][_0x1d7251]=_0x34f4f3[_0x4d45a4(0xf3)]();});}),_0x1b4253;}[_0x2b2f04(0xf0)](_0x3a139a){const _0x11800e=_0x2b2f04;Object[_0x11800e(0x149)](_0x3a139a)[_0x11800e(0x141)](_0x2e6f7c=>{const _0x1b4e45=_0x11800e;let _0x1df388=_0x3a139a[_0x2e6f7c];Object[_0x1b4e45(0x149)](_0x1df388)[_0x1b4e45(0x141)](_0x5d6590=>{const _0x3da0f4=_0x1b4e45;this[_0x3da0f4(0x117)](_0x2e6f7c,_0x5d6590)[_0x3da0f4(0xf0)](_0x1df388[_0x5d6590]);});});}[_0x2b2f04(0x144)](){const _0xf859af=_0x2b2f04;this[_0xf859af(0x146)][_0xf859af(0x106)]({'pluginName':_0xf859af(0x14e),'businesses':[e[_0xf859af(0x137)][_0xf859af(0xe3)]],'toJson':_0x386619=>this[_0xf859af(0x138)](_0x386619),'parseJson':_0x7e0f4e=>JSON[_0xf859af(0xef)](_0x7e0f4e),'onLoad':(_0x27efdb,_0x9720f4)=>{const _0x2a3eda=_0xf859af;this[_0x2a3eda(0x114)](_0x27efdb,_0x9720f4);},'onUnLoad':_0x30ade5=>{const _0x2b40af=_0xf859af;let _0xac563d=this[_0x2b40af(0x124)][_0x2b40af(0x10f)](_0x30ade5);_0xac563d&&(_0xac563d[_0x2b40af(0x141)](_0x4ed773=>{const _0x3d334d=_0x2b40af;_0x4ed773[_0x3d334d(0xdf)]();}),this[_0x2b40af(0x124)][_0x2b40af(0x143)](_0x30ade5));}});}[_0x2b2f04(0xdf)](){const _0x3aa572=_0x2b2f04;this[_0x3aa572(0x124)][_0x3aa572(0x141)](_0x29be95=>{const _0x326ea8=_0x3aa572;_0x29be95[_0x326ea8(0x141)](_0xcc7d9f=>{const _0x4308e0=_0x326ea8;_0xcc7d9f[_0x4308e0(0xdf)]();});});}};u=l([c(0x0,e[_0x2b2f04(0x107)])],u);const d={'id':_0x2b2f04(0xe0),'type':e[_0x2b2f04(0x14d)][_0x2b2f04(0xda)],'handler':(_0x4833c6,_0x54006b)=>{const _0x7434c2=_0x2b2f04;let {unitId:_0x17c794,subUnitId:_0x4fc28f,shapeType:_0xc9b6a1,shapeId:_0x491a15,shapeData:_0x26162b}=_0x54006b,_0xf8060a=_0x4833c6[_0x7434c2(0x10f)](u)[_0x7434c2(0x12b)](_0x17c794,_0x4fc28f,_0x491a15);return _0xf8060a&&(_0xf8060a[_0x7434c2(0xcd)](_0xc9b6a1),_0x26162b&&(_0xf8060a==null||_0xf8060a[_0x7434c2(0xfa)](_0x26162b))),!0x0;}},f={'id':_0x2b2f04(0xe5),'type':e[_0x2b2f04(0x14d)][_0x2b2f04(0x139)],'handler':(_0x2cd7cd,_0x1ef023)=>{const _0x5f70b4=_0x2b2f04;if(!_0x1ef023)return!0x1;let _0x217f54=_0x2cd7cd[_0x5f70b4(0x10f)](e[_0x5f70b4(0x14b)]),_0x855bc0=_0x2cd7cd[_0x5f70b4(0x10f)](u),_0x50af83=_0x2cd7cd[_0x5f70b4(0x10f)](e[_0x5f70b4(0x134)]),_0x36f19f=[],_0x1cd54c=[],{unitId:_0x34f4bf,subUnitId:_0x395ba8,shapeId:_0x460b88,shapeType:_0x226686,shapeData:_0x114208}=_0x1ef023,_0x126272=_0x855bc0[_0x5f70b4(0x12b)](_0x34f4bf,_0x395ba8,_0x460b88);if(_0x126272){const _0x36d9f5={};_0x36d9f5[_0x5f70b4(0xd7)]=_0x34f4bf,_0x36d9f5[_0x5f70b4(0xd3)]=_0x395ba8,_0x36d9f5[_0x5f70b4(0x151)]=_0x460b88,_0x36d9f5[_0x5f70b4(0xf9)]=_0x226686,_0x36d9f5[_0x5f70b4(0x125)]=_0x114208;let _0x48c4d7=_0x126272[_0x5f70b4(0x101)](),_0x493471=Object[_0x5f70b4(0xcb)]({},_0x126272[_0x5f70b4(0x112)]()),_0x46dc9f=_0x36d9f5,_0x1e171c={'unitId':_0x34f4bf,'subUnitId':_0x395ba8,'shapeId':_0x460b88,'shapeType':_0x48c4d7,'shapeData':_0x493471};const _0x45b761={};_0x45b761['id']=d['id'],_0x45b761[_0x5f70b4(0xd6)]=_0x46dc9f;const _0x392663={};return _0x392663['id']=d['id'],_0x392663[_0x5f70b4(0xd6)]=_0x1e171c,(_0x36f19f[_0x5f70b4(0xee)](_0x45b761),_0x1cd54c[_0x5f70b4(0xee)](_0x392663),_0x36f19f[_0x5f70b4(0xeb)](_0x7a551b=>_0x217f54[_0x5f70b4(0x148)](_0x7a551b['id'],_0x7a551b[_0x5f70b4(0xd6)]))&&_0x50af83[_0x5f70b4(0x11a)]({'unitID':_0x34f4bf,'redoMutations':[..._0x36f19f],'undoMutations':[..._0x1cd54c]}),!0x0);}return!0x1;}},p={'id':_0x2b2f04(0xf4),'type':e[_0x2b2f04(0x14d)][_0x2b2f04(0xda)],'handler':(_0x393c70,_0x1634eb)=>{const _0x5240d5=_0x2b2f04;let {unitId:_0x3a9819,subUnitId:_0x70d9a7,shapeType:_0x1f19f5,shapeId:_0x45e432,shapeData:_0x54a357}=_0x1634eb;return _0x393c70[_0x5240d5(0x10f)](u)[_0x5240d5(0xe1)](_0x3a9819,_0x70d9a7,_0x1f19f5,_0x45e432,_0x54a357),!0x0;}},m={'id':_0x2b2f04(0x135),'type':e[_0x2b2f04(0x14d)][_0x2b2f04(0xda)],'handler':(_0x5c511f,_0x55e89c)=>{const _0x5cb255=_0x2b2f04;let {unitId:_0x364f43,subUnitId:_0x322959,shapeId:_0x428214}=_0x55e89c;return _0x5c511f[_0x5cb255(0x10f)](u)[_0x5cb255(0x10c)](_0x364f43,_0x322959,_0x428214),!0x0;}},h={'id':_0x2b2f04(0x119),'type':e[_0x2b2f04(0x14d)][_0x2b2f04(0xda)],'handler':(_0xd62460,_0x2fab7d)=>{const _0x8f2a31=_0x2b2f04;let {unitId:_0x1d2b78,subUnitId:_0x20fc1c,shapeType:_0x1ba9fb,shapeId:_0x40198a,shapeData:_0x3aadaf}=_0x2fab7d,_0x48b35b=_0xd62460[_0x8f2a31(0x10f)](u)[_0x8f2a31(0x12b)](_0x1d2b78,_0x20fc1c,_0x40198a);return _0x48b35b&&(_0x1ba9fb!==void 0x0&&_0x48b35b[_0x8f2a31(0xcd)](_0x1ba9fb),_0x3aadaf&&(_0x48b35b==null||_0x48b35b[_0x8f2a31(0xfa)](_0x3aadaf,!0x0))),!0x0;}};var g=_0x2b2f04(0x120),_=_0x2b2f04(0x11d);const v=_0x2b2f04(0xd2);Symbol(v);const y={};function _0x13d6(_0x4ffc1d,_0x1d8804){_0x4ffc1d=_0x4ffc1d-0xca;const _0x19f765=_0x19f7();let _0x13d68b=_0x19f765[_0x4ffc1d];return _0x13d68b;}let b=class extends e[_0x2b2f04(0x11e)]{constructor(_0x360c89=y,_0x32b118,_0x45a7eb,_0x4e7024){const _0x326d71=_0x2b2f04;super(),this[_0x326d71(0x13f)]=_0x360c89,this[_0x326d71(0xe4)]=_0x32b118,this[_0x326d71(0xd0)]=_0x45a7eb,this[_0x326d71(0x130)]=_0x4e7024;let {..._0x3033da}=(0x0,e[_0x326d71(0x145)])({},y,this[_0x326d71(0x13f)]);this[_0x326d71(0x130)][_0x326d71(0x122)](v,_0x3033da),this[_0x326d71(0xd1)]();}[_0x2b2f04(0xce)](){const _0x38cc14=_0x2b2f04;(0x0,e[_0x38cc14(0x12d)])(this[_0x38cc14(0xe4)],[]);}[_0x2b2f04(0x10e)](){const _0x18e5c3=_0x2b2f04;let _0x5ade12=this[_0x18e5c3(0xe4)];[[s],[u]][_0x18e5c3(0x141)](_0x1be36b=>_0x5ade12[_0x18e5c3(0x13a)](_0x1be36b));}[_0x2b2f04(0xd1)](){const _0x366e9a=_0x2b2f04;[p,m,d,h][_0x366e9a(0x141)](_0x32968f=>this[_0x366e9a(0x133)](this[_0x366e9a(0xd0)][_0x366e9a(0x111)](_0x32968f)));}};const _0x23950a={};_0x23950a[_0x2b2f04(0x109)]=!0x0,_0x23950a[_0x2b2f04(0x10f)]=function(){return u;},(o(b,_0x2b2f04(0xf2),e[_0x2b2f04(0x137)][_0x2b2f04(0xe3)]),o(b,_0x2b2f04(0x128),_0x2b2f04(0x14e)),o(b,_0x2b2f04(0xff),g),o(b,_0x2b2f04(0x13e),_),b=l([(0x0,e[_0x2b2f04(0x123)])(n[_0x2b2f04(0x12a)]),c(0x1,(0x0,e[_0x2b2f04(0x126)])(e[_0x2b2f04(0x136)])),c(0x2,e[_0x2b2f04(0x14b)]),c(0x3,e[_0x2b2f04(0x132)])],b),exports[_0x2b2f04(0x10d)]=p,exports[_0x2b2f04(0x103)]=m,Object[_0x2b2f04(0x12c)](exports,_0x2b2f04(0xfc),_0x23950a),Object[_0x2b2f04(0x12c)](exports,_0x2b2f04(0x14f),{'enumerable':!0x0,'get':function(){return b;}}),exports[_0x2b2f04(0x12f)]=h,exports[_0x2b2f04(0xdb)]=f,exports[_0x2b2f04(0x100)]=d);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3ff888=_0x4e6f;(function(_0xb6cc11,_0x51e16b){const _0x511fe0=_0x4e6f,_0x4816b8=_0xb6cc11();while(!![]){try{const _0x15453c=parseInt(_0x511fe0(0xea))/0x1+-parseInt(_0x511fe0(0x11e))/0x2*(parseInt(_0x511fe0(0x119))/0x3)+-parseInt(_0x511fe0(0xe3))/0x4*(-parseInt(_0x511fe0(0x11f))/0x5)+parseInt(_0x511fe0(0xf9))/0x6*(-parseInt(_0x511fe0(0x11b))/0x7)+parseInt(_0x511fe0(0x105))/0x8*(-parseInt(_0x511fe0(0xe9))/0x9)+-parseInt(_0x511fe0(0xe4))/0xa*(-parseInt(_0x511fe0(0x115))/0xb)+parseInt(_0x511fe0(0x116))/0xc;if(_0x15453c===_0x51e16b)break;else _0x4816b8['push'](_0x4816b8['shift']());}catch(_0x4691f2){_0x4816b8['push'](_0x4816b8['shift']());}}}(_0x131d,0x5ea04));var R=Object['defineProperty'],C=(_0x5706b7,_0x3c38ab,_0x26cc2a)=>_0x3c38ab in _0x5706b7?R(_0x5706b7,_0x3c38ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26cc2a}):_0x5706b7[_0x3c38ab]=_0x26cc2a,d=(_0x498909,_0x33e61b,_0x42406c)=>C(_0x498909,typeof _0x33e61b!='symbol'?_0x33e61b+'':_0x33e61b,_0x42406c);import{Disposable as _0x52dc16,UniverInstanceType as _0x107b27,IResourceManagerService as _0x119863,CommandType as _0x2b08be,ICommandService as _0x11fca2,IUndoRedoService as _0xec8a3,DependentOn as _0x15f9bd,Inject as _0x574c09,Injector as _0x1a8826,Plugin as _0x665b7d,merge as _0x4f2c70,touchDependencies as _0x434c38,IConfigService as _0x2c4b94}from'@univerjs/core';import{ShapeModel as _0x5ba7a0,isConnectorShape as _0x2979b2}from'@univerjs-pro/engine-shape';function _0x4e6f(_0x1013d,_0x34a829){_0x1013d=_0x1013d-0xdb;const _0x131d49=_0x131d();let _0x4e6ff1=_0x131d49[_0x1013d];return _0x4e6ff1;}import{UniverLicensePlugin as _0x1070ce}from'@univerjs-pro/license';class T extends _0x52dc16{constructor(){const _0x3e07e8=_0x4e6f;super(),d(this,'_shapes',new Map()),d(this,_0x3e07e8(0xee),new Set()),d(this,_0x3e07e8(0xe6),new Set());}['addShape'](_0xd4eb03,_0x5695ec,_0x405ed0){const _0x5b0b18=_0x4e6f,_0x6086a1=new _0x5ba7a0(_0xd4eb03,_0x5695ec,_0x405ed0);return this[_0x5b0b18(0xef)]['set'](_0x5695ec,_0x6086a1),_0x2979b2(_0xd4eb03)&&this[_0x5b0b18(0xee)][_0x5b0b18(0x127)](_0x5695ec),_0x6086a1;}[_0x3ff888(0x106)](_0x59232c){const _0x27c2d9=_0x3ff888;var _0x13301a,_0x5a4a73;const _0x42f730=[];for(const _0x31b189 of this[_0x27c2d9(0xee)]){const _0x50086a=this['_shapes'][_0x27c2d9(0x128)](_0x31b189);if(_0x50086a){const _0x2ae5da=_0x50086a[_0x27c2d9(0x118)]();_0x2ae5da&&(((_0x13301a=_0x2ae5da['from'])==null?void 0x0:_0x13301a['shapeId'])===_0x59232c&&_0x42f730[_0x27c2d9(0x120)]({..._0x2ae5da[_0x27c2d9(0x104)],'lineShapeId':_0x31b189,'isFrom':!0x0}),((_0x5a4a73=_0x2ae5da['to'])==null?void 0x0:_0x5a4a73[_0x27c2d9(0xfa)])===_0x59232c&&_0x42f730[_0x27c2d9(0x120)]({..._0x2ae5da['to'],'lineShapeId':_0x31b189,'isFrom':!0x1}));}}return _0x42f730;}[_0x3ff888(0xdd)](_0x48dc81){const _0x2605c2=_0x3ff888,_0x27fdbf=this[_0x2605c2(0xef)][_0x2605c2(0x128)](_0x48dc81);if(_0x27fdbf)return _0x27fdbf[_0x2605c2(0x118)]();}[_0x3ff888(0xff)](_0x26bd7a){const _0x5d0ea8=_0x3ff888,_0x24c24a=this[_0x5d0ea8(0xef)]['get'](_0x26bd7a);if(_0x24c24a)return _0x24c24a[_0x5d0ea8(0xff)]();}[_0x3ff888(0x110)](_0x40ee11){const _0x1f17c8=_0x3ff888;return this[_0x1f17c8(0xef)][_0x1f17c8(0xf7)](_0x40ee11);}['removeShape'](_0x137cad){const _0x1d3dd5=_0x3ff888,_0x3e7744=this[_0x1d3dd5(0xef)][_0x1d3dd5(0x128)](_0x137cad);_0x3e7744&&(_0x2979b2(_0x3e7744[_0x1d3dd5(0xff)]())&&this['_linesIds'][_0x1d3dd5(0x101)](_0x137cad),this[_0x1d3dd5(0xef)][_0x1d3dd5(0x101)](_0x137cad));}['toJSON'](){const _0x43558d=_0x3ff888,_0x49f00c=[];return this[_0x43558d(0xef)]['forEach'](_0x17a874=>{_0x49f00c['push'](_0x17a874['toJSON']());}),_0x49f00c;}[_0x3ff888(0x112)](_0x4258cc){const _0x45ac54=_0x3ff888;for(const _0xf01c85 of _0x4258cc){const {id:_0x45e27b,shapeType:_0x5c07fc}=_0xf01c85,_0x4d6468=this[_0x45ac54(0x124)](_0x5c07fc,_0x45e27b,_0xf01c85['shapeData']);_0x4d6468&&_0x4d6468['isLineShape']()&&this[_0x45ac54(0xee)]['add'](_0x45e27b);}}[_0x3ff888(0x11d)](){const _0x170860=_0x3ff888;this[_0x170860(0xf4)]||(this[_0x170860(0xef)]['forEach'](_0x4ac489=>{_0x4ac489['dispose']();}),this[_0x170860(0xef)][_0x170860(0x10e)](),this[_0x170860(0xee)][_0x170860(0x10e)](),this[_0x170860(0xe6)][_0x170860(0x10e)](),super[_0x170860(0x11d)]());}}var $=Object[_0x3ff888(0x11a)],V=(_0x42459a,_0x5f335d,_0x5f5bab,_0x5d22f9)=>{const _0x52805c=_0x3ff888;for(var _0x3d864e=_0x5d22f9>0x1?void 0x0:_0x5d22f9?$(_0x5f335d,_0x5f5bab):_0x5f335d,_0x3f8260=_0x42459a[_0x52805c(0x11c)]-0x1,_0x234de0;_0x3f8260>=0x0;_0x3f8260--)(_0x234de0=_0x42459a[_0x3f8260])&&(_0x3d864e=_0x234de0(_0x3d864e)||_0x3d864e);return _0x3d864e;},K=(_0x2a6e24,_0x533426)=>(_0x13b098,_0x2ee0bb)=>_0x533426(_0x13b098,_0x2ee0bb,_0x2a6e24);function _0x131d(){const _0x3b06e7=['length','dispose','2tBWiPZ','89345rxuaff','push','_injector','SHEET_SHAPE_PLUGIN','_config','addShape','setShapeType','keys','add','get','syncExecuteCommand','sheet.mutation.update-shape-data','getLineShapeRelation','_ensureShapeModelManager','sheet.mutation.update-shape-type','parse','onRendered','getShapeDataById','76KjxcAU','10hvaREo','toJSON','_groupIds','setShapeData','_resourcesManagerService','2697075xBQwYS','664229pjSQxd','symbol','assign','getShapeTypeById','_linesIds','_shapes','_serializeShapeForUnit','registerPluginResource','MUTATION','_shapeModelManagerMap','_disposed','sheet.command.update-shape-type','_deserializeShapeForUnit','has','forEach','24qbIDqz','shapeId','_initSnapshot','every','insertShape','type','getShapeType','UNIVER_SHEET','delete','COMMAND','_configService','from','8YzPVyM','getBasicShapeRelation','removeShape','pushUndoRedo','disposeWithMe','getShapeData','onStarting','setConfig','_initCommands','clear','pluginName','hasShape','getShapeModel','fromJSON','set','registerCommand','4949054ANrgBb','30276sdHtHP','_commandService','getShapeRelation','1959822cbtKqV','getOwnPropertyDescriptor','202370XuBBcb'];_0x131d=function(){return _0x3b06e7;};return _0x131d();}const W=_0x3ff888(0x122);let i=class extends _0x52dc16{constructor(_0x4583a1){const _0x290d69=_0x3ff888;super(),d(this,_0x290d69(0xf3),new Map()),(this[_0x290d69(0xe8)]=_0x4583a1,this[_0x290d69(0xfb)]());}['_ensureShapeModelManager'](_0x3fa9b5,_0x44fa13){const _0x14b57c=_0x3ff888;let _0x568647=this[_0x14b57c(0xf3)][_0x14b57c(0x128)](_0x3fa9b5);_0x568647||(_0x568647=new Map(),this[_0x14b57c(0xf3)][_0x14b57c(0x113)](_0x3fa9b5,_0x568647));let _0x538727=_0x568647[_0x14b57c(0x128)](_0x44fa13);return _0x538727||(_0x538727=new T(),_0x568647[_0x14b57c(0x113)](_0x44fa13,_0x538727)),_0x538727;}[_0x3ff888(0xfd)](_0x594cce,_0x179478,_0x5b2584,_0x35f361,_0x377834){const _0x8a54c=_0x3ff888;this[_0x8a54c(0xde)](_0x594cce,_0x179478)[_0x8a54c(0x124)](_0x5b2584,_0x35f361,_0x377834);}[_0x3ff888(0x107)](_0x7cb3cf,_0x2173dc,_0x602daf){const _0x3801aa=_0x3ff888;this[_0x3801aa(0xde)](_0x7cb3cf,_0x2173dc)[_0x3801aa(0x107)](_0x602daf);}['getBasicShapeType'](_0x3470ef,_0xf9c691,_0x39bbff){const _0x389e08=_0x3ff888;return this[_0x389e08(0xde)](_0x3470ef,_0xf9c691)[_0x389e08(0xff)](_0x39bbff);}[_0x3ff888(0xff)](_0x1bd6bc,_0x3fd9e5,_0x151bfb){const _0xb008d8=_0x3ff888;return this[_0xb008d8(0xde)](_0x1bd6bc,_0x3fd9e5)['getShapeType'](_0x151bfb);}['hasShape'](_0x4f32dc,_0x3c434f,_0x2c79f2){const _0x4c7bf4=_0x3ff888;return this['_ensureShapeModelManager'](_0x4f32dc,_0x3c434f)[_0x4c7bf4(0x110)](_0x2c79f2);}[_0x3ff888(0xed)](_0x46b879,_0x4dbd7c,_0x509c14){const _0x504108=_0x3ff888;return this[_0x504108(0xde)](_0x46b879,_0x4dbd7c)[_0x504108(0xff)](_0x509c14);}[_0x3ff888(0xe2)](_0x37d72e,_0x7ae954,_0x4172fa){const _0x1fdd4e=_0x3ff888,_0x4ddd5c=this[_0x1fdd4e(0xde)](_0x37d72e,_0x7ae954);if(!_0x4ddd5c[_0x1fdd4e(0xff)](_0x4172fa))return;const _0x25246d=_0x4ddd5c[_0x1fdd4e(0xef)]['get'](_0x4172fa);if(_0x25246d)return _0x25246d['getShapeData']();}[_0x3ff888(0x111)](_0x17ef44,_0x4d9d5b,_0x3af3c7){const _0x21149a=_0x3ff888;return this[_0x21149a(0xde)](_0x17ef44,_0x4d9d5b)['_shapes'][_0x21149a(0x128)](_0x3af3c7);}[_0x3ff888(0x106)](_0x3e7383,_0xb9a35a,_0x520f25){const _0x332d8d=_0x3ff888;return this['_ensureShapeModelManager'](_0x3e7383,_0xb9a35a)[_0x332d8d(0x106)](_0x520f25);}[_0x3ff888(0xdd)](_0x5982dd,_0x5dd3da,_0x4a7f48){const _0x10ecd7=_0x3ff888,_0x313a6a=this[_0x10ecd7(0xde)](_0x5982dd,_0x5dd3da)['_shapes']['get'](_0x4a7f48);if(_0x313a6a)return _0x313a6a['getShapeRelation']();}[_0x3ff888(0x125)](){}[_0x3ff888(0xf0)](_0x708977){const _0x16b9de=_0x3ff888,_0x2c63e5={},_0x5c6c9f=this[_0x16b9de(0xf3)][_0x16b9de(0x128)](_0x708977);return _0x5c6c9f&&_0x5c6c9f['forEach']((_0x264603,_0x210316)=>{const _0xe1985c=_0x16b9de,_0x56e674=_0x264603[_0xe1985c(0xe5)]();_0x56e674['length']>0x0&&(_0x2c63e5[_0x210316]=_0x56e674);}),JSON['stringify'](_0x2c63e5);}[_0x3ff888(0xf6)](_0xd15a5e,_0x1e4467){const _0x449a08=_0x3ff888;Object[_0x449a08(0x126)](_0x1e4467)[_0x449a08(0xf8)](_0x374727=>{const _0x59e184=_0x449a08;this[_0x59e184(0xde)](_0xd15a5e,_0x374727)[_0x59e184(0x112)](_0x1e4467[_0x374727]);});}['toJSON'](){const _0x316701=_0x3ff888,_0x4f881a={};return this[_0x316701(0xf3)][_0x316701(0xf8)]((_0x1f143a,_0x3bb1a9)=>{_0x4f881a[_0x3bb1a9]={},_0x1f143a['forEach']((_0x3e299d,_0x274175)=>{const _0x402722=_0x4e6f;_0x4f881a[_0x3bb1a9][_0x274175]=_0x3e299d[_0x402722(0xe5)]();});}),_0x4f881a;}[_0x3ff888(0x112)](_0x259932){const _0x3637df=_0x3ff888;Object[_0x3637df(0x126)](_0x259932)[_0x3637df(0xf8)](_0x1464e3=>{const _0x140f98=_0x3637df,_0x1aa49f=_0x259932[_0x1464e3];Object[_0x140f98(0x126)](_0x1aa49f)['forEach'](_0x4501e8=>{const _0x307a40=_0x140f98;this[_0x307a40(0xde)](_0x1464e3,_0x4501e8)[_0x307a40(0x112)](_0x1aa49f[_0x4501e8]);});});}[_0x3ff888(0xfb)](){const _0x45d585=_0x3ff888;this[_0x45d585(0xe8)][_0x45d585(0xf1)]({'pluginName':W,'businesses':[_0x107b27[_0x45d585(0x100)]],'toJson':_0x29ec47=>this[_0x45d585(0xf0)](_0x29ec47),'parseJson':_0x29e55d=>JSON[_0x45d585(0xe0)](_0x29e55d),'onLoad':(_0x1c8e04,_0xfd3011)=>{const _0x23997d=_0x45d585;this[_0x23997d(0xf6)](_0x1c8e04,_0xfd3011);},'onUnLoad':_0x1780d6=>{const _0x3f8d30=_0x45d585,_0x375752=this[_0x3f8d30(0xf3)][_0x3f8d30(0x128)](_0x1780d6);_0x375752&&(_0x375752[_0x3f8d30(0xf8)](_0x3f4978=>{const _0x2042c4=_0x3f8d30;_0x3f4978[_0x2042c4(0x11d)]();}),this[_0x3f8d30(0xf3)][_0x3f8d30(0x101)](_0x1780d6));}});}[_0x3ff888(0x11d)](){const _0x1f5124=_0x3ff888;this[_0x1f5124(0xf3)][_0x1f5124(0xf8)](_0x43cc45=>{const _0xfa53b2=_0x1f5124;_0x43cc45[_0xfa53b2(0xf8)](_0x1f2af7=>{const _0x105228=_0xfa53b2;_0x1f2af7[_0x105228(0x11d)]();});});}};i=V([K(0x0,_0x119863)],i);const u={'id':_0x3ff888(0xdf),'type':_0x2b08be['MUTATION'],'handler':(_0x4c8b46,_0x15041d)=>{const _0x5bf80e=_0x3ff888,{unitId:_0x172e2c,subUnitId:_0x33ee5c,shapeType:_0x4a62ef,shapeId:_0x14108c,shapeData:_0xcfd736}=_0x15041d,_0x408b3a=_0x4c8b46[_0x5bf80e(0x128)](i)[_0x5bf80e(0x111)](_0x172e2c,_0x33ee5c,_0x14108c);return _0x408b3a&&(_0x408b3a[_0x5bf80e(0x125)](_0x4a62ef),_0xcfd736&&(_0x408b3a==null||_0x408b3a[_0x5bf80e(0xe7)](_0xcfd736))),!0x0;}},pe={'id':_0x3ff888(0xf5),'type':_0x2b08be[_0x3ff888(0x102)],'handler':(_0x330475,_0x26593e)=>{const _0x28bfdf=_0x3ff888;if(!_0x26593e)return!0x1;const _0x5696ae=_0x330475['get'](_0x11fca2),_0x43be42=_0x330475[_0x28bfdf(0x128)](i),_0x151ba4=_0x330475['get'](_0xec8a3),_0x1f56e0=[],_0x4cd9f5=[],{unitId:_0x462a75,subUnitId:_0x45a086,shapeId:_0xc4b5dc,shapeType:_0x61cb85,shapeData:_0x5840a4}=_0x26593e,_0xa0a92e=_0x43be42['getShapeModel'](_0x462a75,_0x45a086,_0xc4b5dc);if(_0xa0a92e){const _0x32a0be=_0xa0a92e['getShapeType'](),_0x2a0e0c=Object[_0x28bfdf(0xec)]({},_0xa0a92e[_0x28bfdf(0x10a)]()),_0x409408={'unitId':_0x462a75,'subUnitId':_0x45a086,'shapeId':_0xc4b5dc,'shapeType':_0x61cb85,'shapeData':_0x5840a4},_0x8cd1a6={'unitId':_0x462a75,'subUnitId':_0x45a086,'shapeId':_0xc4b5dc,'shapeType':_0x32a0be,'shapeData':_0x2a0e0c};return _0x1f56e0[_0x28bfdf(0x120)]({'id':u['id'],'params':_0x409408}),_0x4cd9f5[_0x28bfdf(0x120)]({'id':u['id'],'params':_0x8cd1a6}),_0x1f56e0[_0x28bfdf(0xfc)](_0x39d469=>_0x5696ae[_0x28bfdf(0xdb)](_0x39d469['id'],_0x39d469['params']))&&_0x151ba4[_0x28bfdf(0x108)]({'unitID':_0x462a75,'redoMutations':[..._0x1f56e0],'undoMutations':[..._0x4cd9f5]}),!0x0;}return!0x1;}},Y={'id':'sheet.mutation.insert-shape','type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0x95da33,_0x309a76)=>{const _0x277b0e=_0x3ff888,{unitId:_0x32fec5,subUnitId:_0x1a2ff4,shapeType:_0x516807,shapeId:_0x307460,shapeData:_0x3abc1c}=_0x309a76;return _0x95da33[_0x277b0e(0x128)](i)['insertShape'](_0x32fec5,_0x1a2ff4,_0x516807,_0x307460,_0x3abc1c),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0x570f1d,_0x2e1297)=>{const _0x37d1dd=_0x3ff888,{unitId:_0x23d1ab,subUnitId:_0x45742e,shapeId:_0x3a3dcc}=_0x2e1297;return _0x570f1d[_0x37d1dd(0x128)](i)['removeShape'](_0x23d1ab,_0x45742e,_0x3a3dcc),!0x0;}},Q={'id':_0x3ff888(0xdc),'type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0xcf2400,_0x599efc)=>{const _0x1941d2=_0x3ff888,{unitId:_0x3e996e,subUnitId:_0x1ff04b,shapeType:_0x203604,shapeId:_0x495970,shapeData:_0x397f8e}=_0x599efc,_0x1c35f1=_0xcf2400[_0x1941d2(0x128)](i)[_0x1941d2(0x111)](_0x3e996e,_0x1ff04b,_0x495970);return _0x1c35f1&&(_0x203604!==void 0x0&&_0x1c35f1['setShapeType'](_0x203604),_0x397f8e&&(_0x1c35f1==null||_0x1c35f1[_0x1941d2(0xe7)](_0x397f8e,!0x0))),!0x0;}},X='sheets-shape.config',m={};var Z=Object['defineProperty'],k=Object[_0x3ff888(0x11a)],ee=(_0xe29c5e,_0x40d766,_0x169a84)=>_0x40d766 in _0xe29c5e?Z(_0xe29c5e,_0x40d766,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x169a84}):_0xe29c5e[_0x40d766]=_0x169a84,ae=(_0x537f3a,_0x25cb92,_0x443a28,_0xf104ac)=>{const _0x2cd593=_0x3ff888;for(var _0x3ed6f2=_0xf104ac>0x1?void 0x0:_0xf104ac?k(_0x25cb92,_0x443a28):_0x25cb92,_0x45fafe=_0x537f3a[_0x2cd593(0x11c)]-0x1,_0x2bedcc;_0x45fafe>=0x0;_0x45fafe--)(_0x2bedcc=_0x537f3a[_0x45fafe])&&(_0x3ed6f2=_0x2bedcc(_0x3ed6f2)||_0x3ed6f2);return _0x3ed6f2;},g=(_0x292061,_0x365684)=>(_0x284e86,_0x5f46a6)=>_0x365684(_0x284e86,_0x5f46a6,_0x292061),E=(_0x3ccf84,_0x2735e1,_0x1d7dd0)=>ee(_0x3ccf84,typeof _0x2735e1!=_0x3ff888(0xeb)?_0x2735e1+'':_0x2735e1,_0x1d7dd0);const se=_0x3ff888(0x122);let S=class extends _0x665b7d{constructor(_0x591af2=m,_0x34eb29,_0x2df2b6,_0x2caeb6){const _0x308fa9=_0x3ff888;super(),this[_0x308fa9(0x123)]=_0x591af2,this[_0x308fa9(0x121)]=_0x34eb29,this[_0x308fa9(0x117)]=_0x2df2b6,this['_configService']=_0x2caeb6;const {..._0x2d2f88}=_0x4f2c70({},m,this['_config']);this[_0x308fa9(0x103)][_0x308fa9(0x10c)](X,_0x2d2f88),this['_initCommands']();}[_0x3ff888(0xe1)](){_0x434c38(this['_injector'],[]);}[_0x3ff888(0x10b)](){const _0x2db0a6=_0x3ff888,_0x14a605=this[_0x2db0a6(0x121)];[[T],[i]][_0x2db0a6(0xf8)](_0x1b3b00=>_0x14a605[_0x2db0a6(0x127)](_0x1b3b00));}[_0x3ff888(0x10d)](){const _0x4a7877=_0x3ff888;[Y,q,u,Q][_0x4a7877(0xf8)](_0x257e64=>this[_0x4a7877(0x109)](this[_0x4a7877(0x117)][_0x4a7877(0x114)](_0x257e64)));}};E(S,_0x3ff888(0xfe),_0x107b27[_0x3ff888(0x100)]),E(S,_0x3ff888(0x10f),se),S=ae([_0x15f9bd(_0x1070ce),g(0x1,_0x574c09(_0x1a8826)),g(0x2,_0x11fca2),g(0x3,_0x2c4b94)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
1
+ function _0x3ae8(_0x1f331a,_0xfe8ada){_0x1f331a=_0x1f331a-0x120;const _0x47cdab=_0x47cd();let _0x3ae850=_0x47cdab[_0x1f331a];return _0x3ae850;}const _0x50a360=_0x3ae8;(function(_0x3fbca5,_0x228db9){const _0x4d4e8d=_0x3ae8,_0x1a8fb9=_0x3fbca5();while(!![]){try{const _0x5a3db7=parseInt(_0x4d4e8d(0x140))/0x1+parseInt(_0x4d4e8d(0x130))/0x2*(-parseInt(_0x4d4e8d(0x155))/0x3)+parseInt(_0x4d4e8d(0x16c))/0x4+-parseInt(_0x4d4e8d(0x185))/0x5*(-parseInt(_0x4d4e8d(0x12a))/0x6)+parseInt(_0x4d4e8d(0x187))/0x7*(-parseInt(_0x4d4e8d(0x149))/0x8)+parseInt(_0x4d4e8d(0x18a))/0x9+parseInt(_0x4d4e8d(0x12e))/0xa*(-parseInt(_0x4d4e8d(0x150))/0xb);if(_0x5a3db7===_0x228db9)break;else _0x1a8fb9['push'](_0x1a8fb9['shift']());}catch(_0x6aaaaf){_0x1a8fb9['push'](_0x1a8fb9['shift']());}}}(_0x47cd,0x54833));import{CommandType as _0x229282,DependentOn as _0x1a0646,Disposable as _0x41304d,ICommandService as _0x306935,IConfigService as _0x337d88,IResourceManagerService as _0x2891e1,IUndoRedoService as _0x37af13,Inject as _0x35c42f,Injector as _0x3c3bdb,Plugin as _0x344015,UniverInstanceType as _0x1bcc96,merge as _0x838e7a,touchDependencies as _0x35ff1b}from'@univerjs/core';import{ShapeModel as _0x37697e,isConnectorShape as _0x32f9fb}from'@univerjs-pro/engine-shape';function _0x47cd(){const _0x402c98=['1679052cKGImQ','shapeType','disposeWithMe','getBasicShapeRelation','_ensureShapeModelManager','type','getShapeTypeById','keys','symbol','getShapeDataById','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onRendered','unitId','0.17.0-insiders.20260318-d69dc16','value','getShapeModel','getShapeType','_shapes','_configService','constructor','decorate','UNIVER_SHEET','_commandService','registerCommand','5CcGaMD','sheet.mutation.insert-shape','77aSUoCZ','setShapeData','pluginName','1621035YEFlvY','parse','defineProperty','from','push','packageName','setConfig','getBasicShapeType','set','SHEET_SHAPE_PLUGIN','params','iterator','2089146hKcPrm','isLineShape','prototype','setShapeType','69650mSYYng','length','2328ftMuli','string','_initCommands','pushUndoRedo','assign','@univerjs-pro/sheets-shape','configurable','COMMAND','sheet.mutation.remove-shape','_injector','registerPluginResource','hasShape','has','sheet.mutation.update-shape-type','sheet.command.update-shape-type','shapeId','454349NyLNYv','addShape','insertShape','getShapeData','get','_serializeShapeForUnit','dispose','subUnitId','default','155048butWHx','delete','function','_initSnapshot','enumerable','removeShape','_groupIds','484TXeizz','_shapeModelManagerMap','_resourcesManagerService','_disposed','_config','1383tVMWHo','object','every','stringify','getLineShapeRelation','_linesIds','sheet.mutation.update-shape-data','getOwnPropertyDescriptor','onStarting','toJSON','call','sheets-shape.config','_deserializeShapeForUnit','MUTATION','shapeData','syncExecuteCommand','getShapeRelation','fromJSON','version','forEach','clear','writable','add'];_0x47cd=function(){return _0x402c98;};return _0x47cd();}import{UniverLicensePlugin as _0x1767a4}from'@univerjs-pro/license';function g(_0x412c60){'@babel/helpers - typeof';const _0x3cef4d=_0x3ae8;return g=typeof Symbol==_0x3cef4d(0x14b)&&typeof Symbol[_0x3cef4d(0x129)]==_0x3cef4d(0x174)?function(_0x1909fc){return typeof _0x1909fc;}:function(_0x521718){const _0x3956cd=_0x3cef4d;return _0x521718&&typeof Symbol==_0x3956cd(0x14b)&&_0x521718[_0x3956cd(0x180)]===Symbol&&_0x521718!==Symbol[_0x3956cd(0x12c)]?_0x3956cd(0x174):typeof _0x521718;},g(_0x412c60);}function _(_0x58a1e5,_0x11713d){const _0x21a1c7=_0x3ae8;if(g(_0x58a1e5)!=_0x21a1c7(0x156)||!_0x58a1e5)return _0x58a1e5;var _0x2026cc=_0x58a1e5[Symbol[_0x21a1c7(0x176)]];if(_0x2026cc!==void 0x0){var _0x378d21=_0x2026cc[_0x21a1c7(0x15f)](_0x58a1e5,_0x11713d||_0x21a1c7(0x148));if(g(_0x378d21)!=_0x21a1c7(0x156))return _0x378d21;throw TypeError(_0x21a1c7(0x177));}return(_0x11713d===_0x21a1c7(0x131)?String:Number)(_0x58a1e5);}function v(_0x3c6a5){const _0x3a61e1=_0x3ae8;var _0x2cf4ae=_(_0x3c6a5,_0x3a61e1(0x131));return g(_0x2cf4ae)==_0x3a61e1(0x174)?_0x2cf4ae:_0x2cf4ae+'';}function y(_0x2f049d,_0x5d1939,_0x465271){const _0x318f49=_0x3ae8,_0x5870b0={};return _0x5870b0[_0x318f49(0x17b)]=_0x465271,_0x5870b0[_0x318f49(0x14d)]=!0x0,_0x5870b0[_0x318f49(0x136)]=!0x0,_0x5870b0[_0x318f49(0x16a)]=!0x0,((_0x5d1939=v(_0x5d1939))in _0x2f049d?Object[_0x318f49(0x120)](_0x2f049d,_0x5d1939,_0x5870b0):_0x2f049d[_0x5d1939]=_0x465271,_0x2f049d);}var b=class extends _0x41304d{constructor(){const _0x10e3fe=_0x3ae8;super(),y(this,_0x10e3fe(0x17e),new Map()),y(this,_0x10e3fe(0x15a),new Set()),y(this,_0x10e3fe(0x14f),new Set());}[_0x50a360(0x141)](_0x4b1420,_0x209f62,_0x4005fa){const _0x536ee6=_0x50a360;let _0x3ad565=new _0x37697e(_0x4b1420,_0x209f62,_0x4005fa);return this[_0x536ee6(0x17e)][_0x536ee6(0x126)](_0x209f62,_0x3ad565),_0x32f9fb(_0x4b1420)&&this[_0x536ee6(0x15a)][_0x536ee6(0x16b)](_0x209f62),_0x3ad565;}[_0x50a360(0x16f)](_0x37902f){const _0x6fdf53=_0x50a360;let _0xe8eefb=[];for(let _0x32677c of this[_0x6fdf53(0x15a)]){let _0x46be93=this[_0x6fdf53(0x17e)][_0x6fdf53(0x144)](_0x32677c);if(_0x46be93){let _0x2450a9=_0x46be93[_0x6fdf53(0x165)]();if(_0x2450a9){var _0x5e45d8,_0xf2cb1;((_0x5e45d8=_0x2450a9[_0x6fdf53(0x121)])==null?void 0x0:_0x5e45d8[_0x6fdf53(0x13f)])===_0x37902f&&_0xe8eefb[_0x6fdf53(0x122)]({..._0x2450a9[_0x6fdf53(0x121)],'lineShapeId':_0x32677c,'isFrom':!0x0}),((_0xf2cb1=_0x2450a9['to'])==null?void 0x0:_0xf2cb1[_0x6fdf53(0x13f)])===_0x37902f&&_0xe8eefb[_0x6fdf53(0x122)]({..._0x2450a9['to'],'lineShapeId':_0x32677c,'isFrom':!0x1});}}}return _0xe8eefb;}[_0x50a360(0x159)](_0x7c0861){const _0x3c71dd=_0x50a360;let _0x28f57c=this[_0x3c71dd(0x17e)][_0x3c71dd(0x144)](_0x7c0861);if(_0x28f57c)return _0x28f57c[_0x3c71dd(0x165)]();}[_0x50a360(0x17d)](_0x187653){const _0x5aac2e=_0x50a360;let _0x67bc04=this[_0x5aac2e(0x17e)][_0x5aac2e(0x144)](_0x187653);if(_0x67bc04)return _0x67bc04[_0x5aac2e(0x17d)]();}[_0x50a360(0x13b)](_0x44b976){const _0x3ffeda=_0x50a360;return this[_0x3ffeda(0x17e)][_0x3ffeda(0x13c)](_0x44b976);}[_0x50a360(0x14e)](_0x4c370f){const _0xd7fa63=_0x50a360;let _0x18af0c=this[_0xd7fa63(0x17e)][_0xd7fa63(0x144)](_0x4c370f);_0x18af0c&&(_0x32f9fb(_0x18af0c[_0xd7fa63(0x17d)]())&&this[_0xd7fa63(0x15a)][_0xd7fa63(0x14a)](_0x4c370f),this[_0xd7fa63(0x17e)][_0xd7fa63(0x14a)](_0x4c370f));}[_0x50a360(0x15e)](){const _0x14d61c=_0x50a360;let _0x25b65d=[];return this[_0x14d61c(0x17e)][_0x14d61c(0x168)](_0x5bd324=>{const _0x51a498=_0x14d61c;_0x25b65d[_0x51a498(0x122)](_0x5bd324[_0x51a498(0x15e)]());}),_0x25b65d;}[_0x50a360(0x166)](_0x2d8b08){const _0x5baed6=_0x50a360;for(let _0x5101ca of _0x2d8b08){let {id:_0x3fecf9,shapeType:_0x3aed9f}=_0x5101ca,_0x588844=this[_0x5baed6(0x141)](_0x3aed9f,_0x3fecf9,_0x5101ca[_0x5baed6(0x163)]);_0x588844&&_0x588844[_0x5baed6(0x12b)]()&&this[_0x5baed6(0x15a)][_0x5baed6(0x16b)](_0x3fecf9);}}[_0x50a360(0x146)](){const _0x103b7c=_0x50a360;this[_0x103b7c(0x153)]||(this[_0x103b7c(0x17e)][_0x103b7c(0x168)](_0x3914e7=>{const _0x49d5e3=_0x103b7c;_0x3914e7[_0x49d5e3(0x146)]();}),this[_0x103b7c(0x17e)][_0x103b7c(0x169)](),this[_0x103b7c(0x15a)][_0x103b7c(0x169)](),this[_0x103b7c(0x14f)][_0x103b7c(0x169)](),super[_0x103b7c(0x146)]());}};function x(_0x28b658,_0x3be091){return function(_0x426096,_0x5b7b60){_0x3be091(_0x426096,_0x5b7b60,_0x28b658);};}function S(_0x17fb1b,_0x129816,_0x16bcc3,_0x228324){const _0x4de255=_0x50a360;var _0xdb24c1=arguments[_0x4de255(0x12f)],_0x266131=_0xdb24c1<0x3?_0x129816:_0x228324===null?_0x228324=Object[_0x4de255(0x15c)](_0x129816,_0x16bcc3):_0x228324,_0x2501d2;if(typeof Reflect==_0x4de255(0x156)&&typeof Reflect[_0x4de255(0x181)]==_0x4de255(0x14b))_0x266131=Reflect[_0x4de255(0x181)](_0x17fb1b,_0x129816,_0x16bcc3,_0x228324);else{for(var _0x5368df=_0x17fb1b[_0x4de255(0x12f)]-0x1;_0x5368df>=0x0;_0x5368df--)(_0x2501d2=_0x17fb1b[_0x5368df])&&(_0x266131=(_0xdb24c1<0x3?_0x2501d2(_0x266131):_0xdb24c1>0x3?_0x2501d2(_0x129816,_0x16bcc3,_0x266131):_0x2501d2(_0x129816,_0x16bcc3))||_0x266131);}return _0xdb24c1>0x3&&_0x266131&&Object[_0x4de255(0x120)](_0x129816,_0x16bcc3,_0x266131),_0x266131;}let C=class extends _0x41304d{constructor(_0x57324b){const _0x32dc7f=_0x50a360;super(),this[_0x32dc7f(0x152)]=_0x57324b,y(this,_0x32dc7f(0x151),new Map()),this[_0x32dc7f(0x14c)]();}[_0x50a360(0x170)](_0x5688b7,_0x1a61a1){const _0x4629eb=_0x50a360;let _0xf9f87b=this[_0x4629eb(0x151)][_0x4629eb(0x144)](_0x5688b7);_0xf9f87b||(_0xf9f87b=new Map(),this[_0x4629eb(0x151)][_0x4629eb(0x126)](_0x5688b7,_0xf9f87b));let _0x2f1291=_0xf9f87b[_0x4629eb(0x144)](_0x1a61a1);return _0x2f1291||(_0x2f1291=new b(),_0xf9f87b[_0x4629eb(0x126)](_0x1a61a1,_0x2f1291)),_0x2f1291;}[_0x50a360(0x142)](_0x45438b,_0xb0370f,_0x25901a,_0x4b2c3e,_0x8d557a){const _0x42afe9=_0x50a360;this[_0x42afe9(0x170)](_0x45438b,_0xb0370f)[_0x42afe9(0x141)](_0x25901a,_0x4b2c3e,_0x8d557a);}[_0x50a360(0x14e)](_0x23ee9b,_0x301460,_0x911737){const _0x39f118=_0x50a360;this[_0x39f118(0x170)](_0x23ee9b,_0x301460)[_0x39f118(0x14e)](_0x911737);}[_0x50a360(0x125)](_0x3c0666,_0x1164cd,_0xb31b36){const _0x1f72ce=_0x50a360;return this[_0x1f72ce(0x170)](_0x3c0666,_0x1164cd)[_0x1f72ce(0x17d)](_0xb31b36);}[_0x50a360(0x17d)](_0x38f314,_0x22a216,_0x1cfb88){const _0x207298=_0x50a360;return this[_0x207298(0x170)](_0x38f314,_0x22a216)[_0x207298(0x17d)](_0x1cfb88);}[_0x50a360(0x13b)](_0x2984a3,_0x217993,_0x4bd01a){const _0x5a2c18=_0x50a360;return this[_0x5a2c18(0x170)](_0x2984a3,_0x217993)[_0x5a2c18(0x13b)](_0x4bd01a);}[_0x50a360(0x172)](_0x4b078d,_0x154b08,_0x466339){const _0x532afa=_0x50a360;return this[_0x532afa(0x170)](_0x4b078d,_0x154b08)[_0x532afa(0x17d)](_0x466339);}[_0x50a360(0x175)](_0x380c2d,_0x17d16f,_0xc11d23){const _0x59b8b7=_0x50a360;let _0x4bb81a=this[_0x59b8b7(0x170)](_0x380c2d,_0x17d16f);if(!_0x4bb81a[_0x59b8b7(0x17d)](_0xc11d23))return;let _0x53515c=_0x4bb81a[_0x59b8b7(0x17e)][_0x59b8b7(0x144)](_0xc11d23);if(_0x53515c)return _0x53515c[_0x59b8b7(0x143)]();}[_0x50a360(0x17c)](_0x3bebb8,_0x3aa669,_0x257df8){const _0x3be113=_0x50a360;return this[_0x3be113(0x170)](_0x3bebb8,_0x3aa669)[_0x3be113(0x17e)][_0x3be113(0x144)](_0x257df8);}[_0x50a360(0x16f)](_0x1dedc0,_0x572e13,_0x564025){const _0x376c70=_0x50a360;return this[_0x376c70(0x170)](_0x1dedc0,_0x572e13)[_0x376c70(0x16f)](_0x564025);}[_0x50a360(0x159)](_0x58bb43,_0x2aa636,_0x45e608){const _0x1ed75d=_0x50a360;let _0x28bbde=this[_0x1ed75d(0x170)](_0x58bb43,_0x2aa636)[_0x1ed75d(0x17e)][_0x1ed75d(0x144)](_0x45e608);if(_0x28bbde)return _0x28bbde[_0x1ed75d(0x165)]();}[_0x50a360(0x12d)](){}[_0x50a360(0x145)](_0x2f4f02){const _0x5ecb87=_0x50a360;let _0x287b66={},_0x354086=this[_0x5ecb87(0x151)][_0x5ecb87(0x144)](_0x2f4f02);return _0x354086&&_0x354086[_0x5ecb87(0x168)]((_0x573f8d,_0x74d725)=>{const _0x575b63=_0x5ecb87;let _0x5b9e18=_0x573f8d[_0x575b63(0x15e)]();_0x5b9e18[_0x575b63(0x12f)]>0x0&&(_0x287b66[_0x74d725]=_0x5b9e18);}),JSON[_0x5ecb87(0x158)](_0x287b66);}[_0x50a360(0x161)](_0x2934fc,_0x42bd50){const _0x13e4dc=_0x50a360;Object[_0x13e4dc(0x173)](_0x42bd50)[_0x13e4dc(0x168)](_0x5b5085=>{const _0xbd9002=_0x13e4dc;this[_0xbd9002(0x170)](_0x2934fc,_0x5b5085)[_0xbd9002(0x166)](_0x42bd50[_0x5b5085]);});}[_0x50a360(0x15e)](){const _0x29ba0f=_0x50a360;let _0x3a29a8={};return this[_0x29ba0f(0x151)][_0x29ba0f(0x168)]((_0x28bd02,_0x4b85f5)=>{const _0x561dbd=_0x29ba0f;_0x3a29a8[_0x4b85f5]={},_0x28bd02[_0x561dbd(0x168)]((_0x561d40,_0x294e05)=>{const _0x574cf6=_0x561dbd;_0x3a29a8[_0x4b85f5][_0x294e05]=_0x561d40[_0x574cf6(0x15e)]();});}),_0x3a29a8;}[_0x50a360(0x166)](_0x35f658){const _0x28839d=_0x50a360;Object[_0x28839d(0x173)](_0x35f658)[_0x28839d(0x168)](_0x4a51c7=>{const _0x384a9a=_0x28839d;let _0x5a85eb=_0x35f658[_0x4a51c7];Object[_0x384a9a(0x173)](_0x5a85eb)[_0x384a9a(0x168)](_0x2959f2=>{const _0x309ed2=_0x384a9a;this[_0x309ed2(0x170)](_0x4a51c7,_0x2959f2)[_0x309ed2(0x166)](_0x5a85eb[_0x2959f2]);});});}[_0x50a360(0x14c)](){const _0x260e31=_0x50a360;this[_0x260e31(0x152)][_0x260e31(0x13a)]({'pluginName':_0x260e31(0x127),'businesses':[_0x1bcc96[_0x260e31(0x182)]],'toJson':_0x28daf4=>this[_0x260e31(0x145)](_0x28daf4),'parseJson':_0x3e1f3d=>JSON[_0x260e31(0x18b)](_0x3e1f3d),'onLoad':(_0x2eb20b,_0x410bc)=>{const _0x3e4b6d=_0x260e31;this[_0x3e4b6d(0x161)](_0x2eb20b,_0x410bc);},'onUnLoad':_0x46d62b=>{const _0x52e2f5=_0x260e31;let _0x2cef23=this[_0x52e2f5(0x151)][_0x52e2f5(0x144)](_0x46d62b);_0x2cef23&&(_0x2cef23[_0x52e2f5(0x168)](_0x491ecf=>{const _0x290243=_0x52e2f5;_0x491ecf[_0x290243(0x146)]();}),this[_0x52e2f5(0x151)][_0x52e2f5(0x14a)](_0x46d62b));}});}[_0x50a360(0x146)](){const _0xd7ec8b=_0x50a360;this[_0xd7ec8b(0x151)][_0xd7ec8b(0x168)](_0x382a4e=>{const _0x27bf25=_0xd7ec8b;_0x382a4e[_0x27bf25(0x168)](_0x92b683=>{const _0x2102df=_0x27bf25;_0x92b683[_0x2102df(0x146)]();});});}};C=S([x(0x0,_0x2891e1)],C);const w={'id':_0x50a360(0x13d),'type':_0x229282[_0x50a360(0x162)],'handler':(_0x52240a,_0x2a4585)=>{const _0x5c0836=_0x50a360;let {unitId:_0x3a41dd,subUnitId:_0x356ccd,shapeType:_0x484ead,shapeId:_0x577e5e,shapeData:_0x32afa7}=_0x2a4585,_0x3ff036=_0x52240a[_0x5c0836(0x144)](C)[_0x5c0836(0x17c)](_0x3a41dd,_0x356ccd,_0x577e5e);return _0x3ff036&&(_0x3ff036[_0x5c0836(0x12d)](_0x484ead),_0x32afa7&&(_0x3ff036==null||_0x3ff036[_0x5c0836(0x188)](_0x32afa7))),!0x0;}},T={'id':_0x50a360(0x13e),'type':_0x229282[_0x50a360(0x137)],'handler':(_0x4785c3,_0x455456)=>{const _0x4b5270=_0x50a360;if(!_0x455456)return!0x1;let _0x5c3778=_0x4785c3[_0x4b5270(0x144)](_0x306935),_0x3da016=_0x4785c3[_0x4b5270(0x144)](C),_0x1438b2=_0x4785c3[_0x4b5270(0x144)](_0x37af13),_0x2f9927=[],_0x7ee294=[],{unitId:_0x5ce1e1,subUnitId:_0x540767,shapeId:_0x5cf0c8,shapeType:_0x2ef0b0,shapeData:_0x1f4d6e}=_0x455456,_0x277b3a=_0x3da016[_0x4b5270(0x17c)](_0x5ce1e1,_0x540767,_0x5cf0c8);if(_0x277b3a){const _0x543412={};_0x543412[_0x4b5270(0x179)]=_0x5ce1e1,_0x543412[_0x4b5270(0x147)]=_0x540767,_0x543412[_0x4b5270(0x13f)]=_0x5cf0c8,_0x543412[_0x4b5270(0x16d)]=_0x2ef0b0,_0x543412[_0x4b5270(0x163)]=_0x1f4d6e;let _0x3b4772=_0x277b3a[_0x4b5270(0x17d)](),_0x46325b=Object[_0x4b5270(0x134)]({},_0x277b3a[_0x4b5270(0x143)]()),_0x10ac1f=_0x543412,_0x223e96={'unitId':_0x5ce1e1,'subUnitId':_0x540767,'shapeId':_0x5cf0c8,'shapeType':_0x3b4772,'shapeData':_0x46325b};const _0x378e86={};_0x378e86['id']=w['id'],_0x378e86[_0x4b5270(0x128)]=_0x10ac1f;const _0x330d3d={};return _0x330d3d['id']=w['id'],_0x330d3d[_0x4b5270(0x128)]=_0x223e96,(_0x2f9927[_0x4b5270(0x122)](_0x378e86),_0x7ee294[_0x4b5270(0x122)](_0x330d3d),_0x2f9927[_0x4b5270(0x157)](_0x5bc626=>_0x5c3778[_0x4b5270(0x164)](_0x5bc626['id'],_0x5bc626[_0x4b5270(0x128)]))&&_0x1438b2[_0x4b5270(0x133)]({'unitID':_0x5ce1e1,'redoMutations':[..._0x2f9927],'undoMutations':[..._0x7ee294]}),!0x0);}return!0x1;}},E={'id':_0x50a360(0x186),'type':_0x229282[_0x50a360(0x162)],'handler':(_0x213e77,_0x111e78)=>{const _0x4a6117=_0x50a360;let {unitId:_0x58793c,subUnitId:_0xbdcb86,shapeType:_0x206813,shapeId:_0x373c3e,shapeData:_0x14d3cf}=_0x111e78;return _0x213e77[_0x4a6117(0x144)](C)[_0x4a6117(0x142)](_0x58793c,_0xbdcb86,_0x206813,_0x373c3e,_0x14d3cf),!0x0;}},D={'id':_0x50a360(0x138),'type':_0x229282[_0x50a360(0x162)],'handler':(_0x5db9b2,_0x3eb689)=>{const _0x5584bc=_0x50a360;let {unitId:_0x8f3266,subUnitId:_0x900ca8,shapeId:_0xd953bc}=_0x3eb689;return _0x5db9b2[_0x5584bc(0x144)](C)[_0x5584bc(0x14e)](_0x8f3266,_0x900ca8,_0xd953bc),!0x0;}},O={'id':_0x50a360(0x15b),'type':_0x229282[_0x50a360(0x162)],'handler':(_0xd542ca,_0x41db2e)=>{const _0xfdde40=_0x50a360;let {unitId:_0x30b87f,subUnitId:_0x212041,shapeType:_0x143f43,shapeId:_0xae6235,shapeData:_0x47998e}=_0x41db2e,_0x5eb3de=_0xd542ca[_0xfdde40(0x144)](C)[_0xfdde40(0x17c)](_0x30b87f,_0x212041,_0xae6235);return _0x5eb3de&&(_0x143f43!==void 0x0&&_0x5eb3de[_0xfdde40(0x12d)](_0x143f43),_0x47998e&&(_0x5eb3de==null||_0x5eb3de[_0xfdde40(0x188)](_0x47998e,!0x0))),!0x0;}};var k=_0x50a360(0x135),A=_0x50a360(0x17a);const j=_0x50a360(0x160);Symbol(j);const M={};let N=class extends _0x344015{constructor(_0x2242df=M,_0x1f0e25,_0x21cc6,_0xe22fa){const _0x46f1fc=_0x50a360;super(),this[_0x46f1fc(0x154)]=_0x2242df,this[_0x46f1fc(0x139)]=_0x1f0e25,this[_0x46f1fc(0x183)]=_0x21cc6,this[_0x46f1fc(0x17f)]=_0xe22fa;let {..._0x45b46a}=_0x838e7a({},M,this[_0x46f1fc(0x154)]);this[_0x46f1fc(0x17f)][_0x46f1fc(0x124)](j,_0x45b46a),this[_0x46f1fc(0x132)]();}[_0x50a360(0x178)](){const _0x2342ee=_0x50a360;_0x35ff1b(this[_0x2342ee(0x139)],[]);}[_0x50a360(0x15d)](){const _0x38919d=_0x50a360;let _0xa3ebdb=this[_0x38919d(0x139)];[[b],[C]][_0x38919d(0x168)](_0x5b1809=>_0xa3ebdb[_0x38919d(0x16b)](_0x5b1809));}[_0x50a360(0x132)](){const _0x13f9ee=_0x50a360;[E,D,w,O][_0x13f9ee(0x168)](_0x162c6d=>this[_0x13f9ee(0x16e)](this[_0x13f9ee(0x183)][_0x13f9ee(0x184)](_0x162c6d)));}};y(N,_0x50a360(0x171),_0x1bcc96[_0x50a360(0x182)]),y(N,_0x50a360(0x189),_0x50a360(0x127)),y(N,_0x50a360(0x123),k),y(N,_0x50a360(0x167),A),N=S([_0x1a0646(_0x1767a4),x(0x1,_0x35c42f(_0x3c3bdb)),x(0x2,_0x306935),x(0x3,_0x337d88)],N);export{E as InsertSheetsShapeMutation,D as RemoveSheetsShapeMutation,C as SheetsShapeService,N as UniverSheetsShapePlugin,O as UpdateSheetsShapeDataMutation,T as UpdateSheetsShapeTypeCommand,w as UpdateSheetsShapeTypeMutation};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3ff888=_0x4e6f;(function(_0xb6cc11,_0x51e16b){const _0x511fe0=_0x4e6f,_0x4816b8=_0xb6cc11();while(!![]){try{const _0x15453c=parseInt(_0x511fe0(0xea))/0x1+-parseInt(_0x511fe0(0x11e))/0x2*(parseInt(_0x511fe0(0x119))/0x3)+-parseInt(_0x511fe0(0xe3))/0x4*(-parseInt(_0x511fe0(0x11f))/0x5)+parseInt(_0x511fe0(0xf9))/0x6*(-parseInt(_0x511fe0(0x11b))/0x7)+parseInt(_0x511fe0(0x105))/0x8*(-parseInt(_0x511fe0(0xe9))/0x9)+-parseInt(_0x511fe0(0xe4))/0xa*(-parseInt(_0x511fe0(0x115))/0xb)+parseInt(_0x511fe0(0x116))/0xc;if(_0x15453c===_0x51e16b)break;else _0x4816b8['push'](_0x4816b8['shift']());}catch(_0x4691f2){_0x4816b8['push'](_0x4816b8['shift']());}}}(_0x131d,0x5ea04));var R=Object['defineProperty'],C=(_0x5706b7,_0x3c38ab,_0x26cc2a)=>_0x3c38ab in _0x5706b7?R(_0x5706b7,_0x3c38ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26cc2a}):_0x5706b7[_0x3c38ab]=_0x26cc2a,d=(_0x498909,_0x33e61b,_0x42406c)=>C(_0x498909,typeof _0x33e61b!='symbol'?_0x33e61b+'':_0x33e61b,_0x42406c);import{Disposable as _0x52dc16,UniverInstanceType as _0x107b27,IResourceManagerService as _0x119863,CommandType as _0x2b08be,ICommandService as _0x11fca2,IUndoRedoService as _0xec8a3,DependentOn as _0x15f9bd,Inject as _0x574c09,Injector as _0x1a8826,Plugin as _0x665b7d,merge as _0x4f2c70,touchDependencies as _0x434c38,IConfigService as _0x2c4b94}from'@univerjs/core';import{ShapeModel as _0x5ba7a0,isConnectorShape as _0x2979b2}from'@univerjs-pro/engine-shape';function _0x4e6f(_0x1013d,_0x34a829){_0x1013d=_0x1013d-0xdb;const _0x131d49=_0x131d();let _0x4e6ff1=_0x131d49[_0x1013d];return _0x4e6ff1;}import{UniverLicensePlugin as _0x1070ce}from'@univerjs-pro/license';class T extends _0x52dc16{constructor(){const _0x3e07e8=_0x4e6f;super(),d(this,'_shapes',new Map()),d(this,_0x3e07e8(0xee),new Set()),d(this,_0x3e07e8(0xe6),new Set());}['addShape'](_0xd4eb03,_0x5695ec,_0x405ed0){const _0x5b0b18=_0x4e6f,_0x6086a1=new _0x5ba7a0(_0xd4eb03,_0x5695ec,_0x405ed0);return this[_0x5b0b18(0xef)]['set'](_0x5695ec,_0x6086a1),_0x2979b2(_0xd4eb03)&&this[_0x5b0b18(0xee)][_0x5b0b18(0x127)](_0x5695ec),_0x6086a1;}[_0x3ff888(0x106)](_0x59232c){const _0x27c2d9=_0x3ff888;var _0x13301a,_0x5a4a73;const _0x42f730=[];for(const _0x31b189 of this[_0x27c2d9(0xee)]){const _0x50086a=this['_shapes'][_0x27c2d9(0x128)](_0x31b189);if(_0x50086a){const _0x2ae5da=_0x50086a[_0x27c2d9(0x118)]();_0x2ae5da&&(((_0x13301a=_0x2ae5da['from'])==null?void 0x0:_0x13301a['shapeId'])===_0x59232c&&_0x42f730[_0x27c2d9(0x120)]({..._0x2ae5da[_0x27c2d9(0x104)],'lineShapeId':_0x31b189,'isFrom':!0x0}),((_0x5a4a73=_0x2ae5da['to'])==null?void 0x0:_0x5a4a73[_0x27c2d9(0xfa)])===_0x59232c&&_0x42f730[_0x27c2d9(0x120)]({..._0x2ae5da['to'],'lineShapeId':_0x31b189,'isFrom':!0x1}));}}return _0x42f730;}[_0x3ff888(0xdd)](_0x48dc81){const _0x2605c2=_0x3ff888,_0x27fdbf=this[_0x2605c2(0xef)][_0x2605c2(0x128)](_0x48dc81);if(_0x27fdbf)return _0x27fdbf[_0x2605c2(0x118)]();}[_0x3ff888(0xff)](_0x26bd7a){const _0x5d0ea8=_0x3ff888,_0x24c24a=this[_0x5d0ea8(0xef)]['get'](_0x26bd7a);if(_0x24c24a)return _0x24c24a[_0x5d0ea8(0xff)]();}[_0x3ff888(0x110)](_0x40ee11){const _0x1f17c8=_0x3ff888;return this[_0x1f17c8(0xef)][_0x1f17c8(0xf7)](_0x40ee11);}['removeShape'](_0x137cad){const _0x1d3dd5=_0x3ff888,_0x3e7744=this[_0x1d3dd5(0xef)][_0x1d3dd5(0x128)](_0x137cad);_0x3e7744&&(_0x2979b2(_0x3e7744[_0x1d3dd5(0xff)]())&&this['_linesIds'][_0x1d3dd5(0x101)](_0x137cad),this[_0x1d3dd5(0xef)][_0x1d3dd5(0x101)](_0x137cad));}['toJSON'](){const _0x43558d=_0x3ff888,_0x49f00c=[];return this[_0x43558d(0xef)]['forEach'](_0x17a874=>{_0x49f00c['push'](_0x17a874['toJSON']());}),_0x49f00c;}[_0x3ff888(0x112)](_0x4258cc){const _0x45ac54=_0x3ff888;for(const _0xf01c85 of _0x4258cc){const {id:_0x45e27b,shapeType:_0x5c07fc}=_0xf01c85,_0x4d6468=this[_0x45ac54(0x124)](_0x5c07fc,_0x45e27b,_0xf01c85['shapeData']);_0x4d6468&&_0x4d6468['isLineShape']()&&this[_0x45ac54(0xee)]['add'](_0x45e27b);}}[_0x3ff888(0x11d)](){const _0x170860=_0x3ff888;this[_0x170860(0xf4)]||(this[_0x170860(0xef)]['forEach'](_0x4ac489=>{_0x4ac489['dispose']();}),this[_0x170860(0xef)][_0x170860(0x10e)](),this[_0x170860(0xee)][_0x170860(0x10e)](),this[_0x170860(0xe6)][_0x170860(0x10e)](),super[_0x170860(0x11d)]());}}var $=Object[_0x3ff888(0x11a)],V=(_0x42459a,_0x5f335d,_0x5f5bab,_0x5d22f9)=>{const _0x52805c=_0x3ff888;for(var _0x3d864e=_0x5d22f9>0x1?void 0x0:_0x5d22f9?$(_0x5f335d,_0x5f5bab):_0x5f335d,_0x3f8260=_0x42459a[_0x52805c(0x11c)]-0x1,_0x234de0;_0x3f8260>=0x0;_0x3f8260--)(_0x234de0=_0x42459a[_0x3f8260])&&(_0x3d864e=_0x234de0(_0x3d864e)||_0x3d864e);return _0x3d864e;},K=(_0x2a6e24,_0x533426)=>(_0x13b098,_0x2ee0bb)=>_0x533426(_0x13b098,_0x2ee0bb,_0x2a6e24);function _0x131d(){const _0x3b06e7=['length','dispose','2tBWiPZ','89345rxuaff','push','_injector','SHEET_SHAPE_PLUGIN','_config','addShape','setShapeType','keys','add','get','syncExecuteCommand','sheet.mutation.update-shape-data','getLineShapeRelation','_ensureShapeModelManager','sheet.mutation.update-shape-type','parse','onRendered','getShapeDataById','76KjxcAU','10hvaREo','toJSON','_groupIds','setShapeData','_resourcesManagerService','2697075xBQwYS','664229pjSQxd','symbol','assign','getShapeTypeById','_linesIds','_shapes','_serializeShapeForUnit','registerPluginResource','MUTATION','_shapeModelManagerMap','_disposed','sheet.command.update-shape-type','_deserializeShapeForUnit','has','forEach','24qbIDqz','shapeId','_initSnapshot','every','insertShape','type','getShapeType','UNIVER_SHEET','delete','COMMAND','_configService','from','8YzPVyM','getBasicShapeRelation','removeShape','pushUndoRedo','disposeWithMe','getShapeData','onStarting','setConfig','_initCommands','clear','pluginName','hasShape','getShapeModel','fromJSON','set','registerCommand','4949054ANrgBb','30276sdHtHP','_commandService','getShapeRelation','1959822cbtKqV','getOwnPropertyDescriptor','202370XuBBcb'];_0x131d=function(){return _0x3b06e7;};return _0x131d();}const W=_0x3ff888(0x122);let i=class extends _0x52dc16{constructor(_0x4583a1){const _0x290d69=_0x3ff888;super(),d(this,_0x290d69(0xf3),new Map()),(this[_0x290d69(0xe8)]=_0x4583a1,this[_0x290d69(0xfb)]());}['_ensureShapeModelManager'](_0x3fa9b5,_0x44fa13){const _0x14b57c=_0x3ff888;let _0x568647=this[_0x14b57c(0xf3)][_0x14b57c(0x128)](_0x3fa9b5);_0x568647||(_0x568647=new Map(),this[_0x14b57c(0xf3)][_0x14b57c(0x113)](_0x3fa9b5,_0x568647));let _0x538727=_0x568647[_0x14b57c(0x128)](_0x44fa13);return _0x538727||(_0x538727=new T(),_0x568647[_0x14b57c(0x113)](_0x44fa13,_0x538727)),_0x538727;}[_0x3ff888(0xfd)](_0x594cce,_0x179478,_0x5b2584,_0x35f361,_0x377834){const _0x8a54c=_0x3ff888;this[_0x8a54c(0xde)](_0x594cce,_0x179478)[_0x8a54c(0x124)](_0x5b2584,_0x35f361,_0x377834);}[_0x3ff888(0x107)](_0x7cb3cf,_0x2173dc,_0x602daf){const _0x3801aa=_0x3ff888;this[_0x3801aa(0xde)](_0x7cb3cf,_0x2173dc)[_0x3801aa(0x107)](_0x602daf);}['getBasicShapeType'](_0x3470ef,_0xf9c691,_0x39bbff){const _0x389e08=_0x3ff888;return this[_0x389e08(0xde)](_0x3470ef,_0xf9c691)[_0x389e08(0xff)](_0x39bbff);}[_0x3ff888(0xff)](_0x1bd6bc,_0x3fd9e5,_0x151bfb){const _0xb008d8=_0x3ff888;return this[_0xb008d8(0xde)](_0x1bd6bc,_0x3fd9e5)['getShapeType'](_0x151bfb);}['hasShape'](_0x4f32dc,_0x3c434f,_0x2c79f2){const _0x4c7bf4=_0x3ff888;return this['_ensureShapeModelManager'](_0x4f32dc,_0x3c434f)[_0x4c7bf4(0x110)](_0x2c79f2);}[_0x3ff888(0xed)](_0x46b879,_0x4dbd7c,_0x509c14){const _0x504108=_0x3ff888;return this[_0x504108(0xde)](_0x46b879,_0x4dbd7c)[_0x504108(0xff)](_0x509c14);}[_0x3ff888(0xe2)](_0x37d72e,_0x7ae954,_0x4172fa){const _0x1fdd4e=_0x3ff888,_0x4ddd5c=this[_0x1fdd4e(0xde)](_0x37d72e,_0x7ae954);if(!_0x4ddd5c[_0x1fdd4e(0xff)](_0x4172fa))return;const _0x25246d=_0x4ddd5c[_0x1fdd4e(0xef)]['get'](_0x4172fa);if(_0x25246d)return _0x25246d['getShapeData']();}[_0x3ff888(0x111)](_0x17ef44,_0x4d9d5b,_0x3af3c7){const _0x21149a=_0x3ff888;return this[_0x21149a(0xde)](_0x17ef44,_0x4d9d5b)['_shapes'][_0x21149a(0x128)](_0x3af3c7);}[_0x3ff888(0x106)](_0x3e7383,_0xb9a35a,_0x520f25){const _0x332d8d=_0x3ff888;return this['_ensureShapeModelManager'](_0x3e7383,_0xb9a35a)[_0x332d8d(0x106)](_0x520f25);}[_0x3ff888(0xdd)](_0x5982dd,_0x5dd3da,_0x4a7f48){const _0x10ecd7=_0x3ff888,_0x313a6a=this[_0x10ecd7(0xde)](_0x5982dd,_0x5dd3da)['_shapes']['get'](_0x4a7f48);if(_0x313a6a)return _0x313a6a['getShapeRelation']();}[_0x3ff888(0x125)](){}[_0x3ff888(0xf0)](_0x708977){const _0x16b9de=_0x3ff888,_0x2c63e5={},_0x5c6c9f=this[_0x16b9de(0xf3)][_0x16b9de(0x128)](_0x708977);return _0x5c6c9f&&_0x5c6c9f['forEach']((_0x264603,_0x210316)=>{const _0xe1985c=_0x16b9de,_0x56e674=_0x264603[_0xe1985c(0xe5)]();_0x56e674['length']>0x0&&(_0x2c63e5[_0x210316]=_0x56e674);}),JSON['stringify'](_0x2c63e5);}[_0x3ff888(0xf6)](_0xd15a5e,_0x1e4467){const _0x449a08=_0x3ff888;Object[_0x449a08(0x126)](_0x1e4467)[_0x449a08(0xf8)](_0x374727=>{const _0x59e184=_0x449a08;this[_0x59e184(0xde)](_0xd15a5e,_0x374727)[_0x59e184(0x112)](_0x1e4467[_0x374727]);});}['toJSON'](){const _0x316701=_0x3ff888,_0x4f881a={};return this[_0x316701(0xf3)][_0x316701(0xf8)]((_0x1f143a,_0x3bb1a9)=>{_0x4f881a[_0x3bb1a9]={},_0x1f143a['forEach']((_0x3e299d,_0x274175)=>{const _0x402722=_0x4e6f;_0x4f881a[_0x3bb1a9][_0x274175]=_0x3e299d[_0x402722(0xe5)]();});}),_0x4f881a;}[_0x3ff888(0x112)](_0x259932){const _0x3637df=_0x3ff888;Object[_0x3637df(0x126)](_0x259932)[_0x3637df(0xf8)](_0x1464e3=>{const _0x140f98=_0x3637df,_0x1aa49f=_0x259932[_0x1464e3];Object[_0x140f98(0x126)](_0x1aa49f)['forEach'](_0x4501e8=>{const _0x307a40=_0x140f98;this[_0x307a40(0xde)](_0x1464e3,_0x4501e8)[_0x307a40(0x112)](_0x1aa49f[_0x4501e8]);});});}[_0x3ff888(0xfb)](){const _0x45d585=_0x3ff888;this[_0x45d585(0xe8)][_0x45d585(0xf1)]({'pluginName':W,'businesses':[_0x107b27[_0x45d585(0x100)]],'toJson':_0x29ec47=>this[_0x45d585(0xf0)](_0x29ec47),'parseJson':_0x29e55d=>JSON[_0x45d585(0xe0)](_0x29e55d),'onLoad':(_0x1c8e04,_0xfd3011)=>{const _0x23997d=_0x45d585;this[_0x23997d(0xf6)](_0x1c8e04,_0xfd3011);},'onUnLoad':_0x1780d6=>{const _0x3f8d30=_0x45d585,_0x375752=this[_0x3f8d30(0xf3)][_0x3f8d30(0x128)](_0x1780d6);_0x375752&&(_0x375752[_0x3f8d30(0xf8)](_0x3f4978=>{const _0x2042c4=_0x3f8d30;_0x3f4978[_0x2042c4(0x11d)]();}),this[_0x3f8d30(0xf3)][_0x3f8d30(0x101)](_0x1780d6));}});}[_0x3ff888(0x11d)](){const _0x1f5124=_0x3ff888;this[_0x1f5124(0xf3)][_0x1f5124(0xf8)](_0x43cc45=>{const _0xfa53b2=_0x1f5124;_0x43cc45[_0xfa53b2(0xf8)](_0x1f2af7=>{const _0x105228=_0xfa53b2;_0x1f2af7[_0x105228(0x11d)]();});});}};i=V([K(0x0,_0x119863)],i);const u={'id':_0x3ff888(0xdf),'type':_0x2b08be['MUTATION'],'handler':(_0x4c8b46,_0x15041d)=>{const _0x5bf80e=_0x3ff888,{unitId:_0x172e2c,subUnitId:_0x33ee5c,shapeType:_0x4a62ef,shapeId:_0x14108c,shapeData:_0xcfd736}=_0x15041d,_0x408b3a=_0x4c8b46[_0x5bf80e(0x128)](i)[_0x5bf80e(0x111)](_0x172e2c,_0x33ee5c,_0x14108c);return _0x408b3a&&(_0x408b3a[_0x5bf80e(0x125)](_0x4a62ef),_0xcfd736&&(_0x408b3a==null||_0x408b3a[_0x5bf80e(0xe7)](_0xcfd736))),!0x0;}},pe={'id':_0x3ff888(0xf5),'type':_0x2b08be[_0x3ff888(0x102)],'handler':(_0x330475,_0x26593e)=>{const _0x28bfdf=_0x3ff888;if(!_0x26593e)return!0x1;const _0x5696ae=_0x330475['get'](_0x11fca2),_0x43be42=_0x330475[_0x28bfdf(0x128)](i),_0x151ba4=_0x330475['get'](_0xec8a3),_0x1f56e0=[],_0x4cd9f5=[],{unitId:_0x462a75,subUnitId:_0x45a086,shapeId:_0xc4b5dc,shapeType:_0x61cb85,shapeData:_0x5840a4}=_0x26593e,_0xa0a92e=_0x43be42['getShapeModel'](_0x462a75,_0x45a086,_0xc4b5dc);if(_0xa0a92e){const _0x32a0be=_0xa0a92e['getShapeType'](),_0x2a0e0c=Object[_0x28bfdf(0xec)]({},_0xa0a92e[_0x28bfdf(0x10a)]()),_0x409408={'unitId':_0x462a75,'subUnitId':_0x45a086,'shapeId':_0xc4b5dc,'shapeType':_0x61cb85,'shapeData':_0x5840a4},_0x8cd1a6={'unitId':_0x462a75,'subUnitId':_0x45a086,'shapeId':_0xc4b5dc,'shapeType':_0x32a0be,'shapeData':_0x2a0e0c};return _0x1f56e0[_0x28bfdf(0x120)]({'id':u['id'],'params':_0x409408}),_0x4cd9f5[_0x28bfdf(0x120)]({'id':u['id'],'params':_0x8cd1a6}),_0x1f56e0[_0x28bfdf(0xfc)](_0x39d469=>_0x5696ae[_0x28bfdf(0xdb)](_0x39d469['id'],_0x39d469['params']))&&_0x151ba4[_0x28bfdf(0x108)]({'unitID':_0x462a75,'redoMutations':[..._0x1f56e0],'undoMutations':[..._0x4cd9f5]}),!0x0;}return!0x1;}},Y={'id':'sheet.mutation.insert-shape','type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0x95da33,_0x309a76)=>{const _0x277b0e=_0x3ff888,{unitId:_0x32fec5,subUnitId:_0x1a2ff4,shapeType:_0x516807,shapeId:_0x307460,shapeData:_0x3abc1c}=_0x309a76;return _0x95da33[_0x277b0e(0x128)](i)['insertShape'](_0x32fec5,_0x1a2ff4,_0x516807,_0x307460,_0x3abc1c),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0x570f1d,_0x2e1297)=>{const _0x37d1dd=_0x3ff888,{unitId:_0x23d1ab,subUnitId:_0x45742e,shapeId:_0x3a3dcc}=_0x2e1297;return _0x570f1d[_0x37d1dd(0x128)](i)['removeShape'](_0x23d1ab,_0x45742e,_0x3a3dcc),!0x0;}},Q={'id':_0x3ff888(0xdc),'type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0xcf2400,_0x599efc)=>{const _0x1941d2=_0x3ff888,{unitId:_0x3e996e,subUnitId:_0x1ff04b,shapeType:_0x203604,shapeId:_0x495970,shapeData:_0x397f8e}=_0x599efc,_0x1c35f1=_0xcf2400[_0x1941d2(0x128)](i)[_0x1941d2(0x111)](_0x3e996e,_0x1ff04b,_0x495970);return _0x1c35f1&&(_0x203604!==void 0x0&&_0x1c35f1['setShapeType'](_0x203604),_0x397f8e&&(_0x1c35f1==null||_0x1c35f1[_0x1941d2(0xe7)](_0x397f8e,!0x0))),!0x0;}},X='sheets-shape.config',m={};var Z=Object['defineProperty'],k=Object[_0x3ff888(0x11a)],ee=(_0xe29c5e,_0x40d766,_0x169a84)=>_0x40d766 in _0xe29c5e?Z(_0xe29c5e,_0x40d766,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x169a84}):_0xe29c5e[_0x40d766]=_0x169a84,ae=(_0x537f3a,_0x25cb92,_0x443a28,_0xf104ac)=>{const _0x2cd593=_0x3ff888;for(var _0x3ed6f2=_0xf104ac>0x1?void 0x0:_0xf104ac?k(_0x25cb92,_0x443a28):_0x25cb92,_0x45fafe=_0x537f3a[_0x2cd593(0x11c)]-0x1,_0x2bedcc;_0x45fafe>=0x0;_0x45fafe--)(_0x2bedcc=_0x537f3a[_0x45fafe])&&(_0x3ed6f2=_0x2bedcc(_0x3ed6f2)||_0x3ed6f2);return _0x3ed6f2;},g=(_0x292061,_0x365684)=>(_0x284e86,_0x5f46a6)=>_0x365684(_0x284e86,_0x5f46a6,_0x292061),E=(_0x3ccf84,_0x2735e1,_0x1d7dd0)=>ee(_0x3ccf84,typeof _0x2735e1!=_0x3ff888(0xeb)?_0x2735e1+'':_0x2735e1,_0x1d7dd0);const se=_0x3ff888(0x122);let S=class extends _0x665b7d{constructor(_0x591af2=m,_0x34eb29,_0x2df2b6,_0x2caeb6){const _0x308fa9=_0x3ff888;super(),this[_0x308fa9(0x123)]=_0x591af2,this[_0x308fa9(0x121)]=_0x34eb29,this[_0x308fa9(0x117)]=_0x2df2b6,this['_configService']=_0x2caeb6;const {..._0x2d2f88}=_0x4f2c70({},m,this['_config']);this[_0x308fa9(0x103)][_0x308fa9(0x10c)](X,_0x2d2f88),this['_initCommands']();}[_0x3ff888(0xe1)](){_0x434c38(this['_injector'],[]);}[_0x3ff888(0x10b)](){const _0x2db0a6=_0x3ff888,_0x14a605=this[_0x2db0a6(0x121)];[[T],[i]][_0x2db0a6(0xf8)](_0x1b3b00=>_0x14a605[_0x2db0a6(0x127)](_0x1b3b00));}[_0x3ff888(0x10d)](){const _0x4a7877=_0x3ff888;[Y,q,u,Q][_0x4a7877(0xf8)](_0x257e64=>this[_0x4a7877(0x109)](this[_0x4a7877(0x117)][_0x4a7877(0x114)](_0x257e64)));}};E(S,_0x3ff888(0xfe),_0x107b27[_0x3ff888(0x100)]),E(S,_0x3ff888(0x10f),se),S=ae([_0x15f9bd(_0x1070ce),g(0x1,_0x574c09(_0x1a8826)),g(0x2,_0x11fca2),g(0x3,_0x2c4b94)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
1
+ function _0x3ae8(_0x1f331a,_0xfe8ada){_0x1f331a=_0x1f331a-0x120;const _0x47cdab=_0x47cd();let _0x3ae850=_0x47cdab[_0x1f331a];return _0x3ae850;}const _0x50a360=_0x3ae8;(function(_0x3fbca5,_0x228db9){const _0x4d4e8d=_0x3ae8,_0x1a8fb9=_0x3fbca5();while(!![]){try{const _0x5a3db7=parseInt(_0x4d4e8d(0x140))/0x1+parseInt(_0x4d4e8d(0x130))/0x2*(-parseInt(_0x4d4e8d(0x155))/0x3)+parseInt(_0x4d4e8d(0x16c))/0x4+-parseInt(_0x4d4e8d(0x185))/0x5*(-parseInt(_0x4d4e8d(0x12a))/0x6)+parseInt(_0x4d4e8d(0x187))/0x7*(-parseInt(_0x4d4e8d(0x149))/0x8)+parseInt(_0x4d4e8d(0x18a))/0x9+parseInt(_0x4d4e8d(0x12e))/0xa*(-parseInt(_0x4d4e8d(0x150))/0xb);if(_0x5a3db7===_0x228db9)break;else _0x1a8fb9['push'](_0x1a8fb9['shift']());}catch(_0x6aaaaf){_0x1a8fb9['push'](_0x1a8fb9['shift']());}}}(_0x47cd,0x54833));import{CommandType as _0x229282,DependentOn as _0x1a0646,Disposable as _0x41304d,ICommandService as _0x306935,IConfigService as _0x337d88,IResourceManagerService as _0x2891e1,IUndoRedoService as _0x37af13,Inject as _0x35c42f,Injector as _0x3c3bdb,Plugin as _0x344015,UniverInstanceType as _0x1bcc96,merge as _0x838e7a,touchDependencies as _0x35ff1b}from'@univerjs/core';import{ShapeModel as _0x37697e,isConnectorShape as _0x32f9fb}from'@univerjs-pro/engine-shape';function _0x47cd(){const _0x402c98=['1679052cKGImQ','shapeType','disposeWithMe','getBasicShapeRelation','_ensureShapeModelManager','type','getShapeTypeById','keys','symbol','getShapeDataById','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onRendered','unitId','0.17.0-insiders.20260318-d69dc16','value','getShapeModel','getShapeType','_shapes','_configService','constructor','decorate','UNIVER_SHEET','_commandService','registerCommand','5CcGaMD','sheet.mutation.insert-shape','77aSUoCZ','setShapeData','pluginName','1621035YEFlvY','parse','defineProperty','from','push','packageName','setConfig','getBasicShapeType','set','SHEET_SHAPE_PLUGIN','params','iterator','2089146hKcPrm','isLineShape','prototype','setShapeType','69650mSYYng','length','2328ftMuli','string','_initCommands','pushUndoRedo','assign','@univerjs-pro/sheets-shape','configurable','COMMAND','sheet.mutation.remove-shape','_injector','registerPluginResource','hasShape','has','sheet.mutation.update-shape-type','sheet.command.update-shape-type','shapeId','454349NyLNYv','addShape','insertShape','getShapeData','get','_serializeShapeForUnit','dispose','subUnitId','default','155048butWHx','delete','function','_initSnapshot','enumerable','removeShape','_groupIds','484TXeizz','_shapeModelManagerMap','_resourcesManagerService','_disposed','_config','1383tVMWHo','object','every','stringify','getLineShapeRelation','_linesIds','sheet.mutation.update-shape-data','getOwnPropertyDescriptor','onStarting','toJSON','call','sheets-shape.config','_deserializeShapeForUnit','MUTATION','shapeData','syncExecuteCommand','getShapeRelation','fromJSON','version','forEach','clear','writable','add'];_0x47cd=function(){return _0x402c98;};return _0x47cd();}import{UniverLicensePlugin as _0x1767a4}from'@univerjs-pro/license';function g(_0x412c60){'@babel/helpers - typeof';const _0x3cef4d=_0x3ae8;return g=typeof Symbol==_0x3cef4d(0x14b)&&typeof Symbol[_0x3cef4d(0x129)]==_0x3cef4d(0x174)?function(_0x1909fc){return typeof _0x1909fc;}:function(_0x521718){const _0x3956cd=_0x3cef4d;return _0x521718&&typeof Symbol==_0x3956cd(0x14b)&&_0x521718[_0x3956cd(0x180)]===Symbol&&_0x521718!==Symbol[_0x3956cd(0x12c)]?_0x3956cd(0x174):typeof _0x521718;},g(_0x412c60);}function _(_0x58a1e5,_0x11713d){const _0x21a1c7=_0x3ae8;if(g(_0x58a1e5)!=_0x21a1c7(0x156)||!_0x58a1e5)return _0x58a1e5;var _0x2026cc=_0x58a1e5[Symbol[_0x21a1c7(0x176)]];if(_0x2026cc!==void 0x0){var _0x378d21=_0x2026cc[_0x21a1c7(0x15f)](_0x58a1e5,_0x11713d||_0x21a1c7(0x148));if(g(_0x378d21)!=_0x21a1c7(0x156))return _0x378d21;throw TypeError(_0x21a1c7(0x177));}return(_0x11713d===_0x21a1c7(0x131)?String:Number)(_0x58a1e5);}function v(_0x3c6a5){const _0x3a61e1=_0x3ae8;var _0x2cf4ae=_(_0x3c6a5,_0x3a61e1(0x131));return g(_0x2cf4ae)==_0x3a61e1(0x174)?_0x2cf4ae:_0x2cf4ae+'';}function y(_0x2f049d,_0x5d1939,_0x465271){const _0x318f49=_0x3ae8,_0x5870b0={};return _0x5870b0[_0x318f49(0x17b)]=_0x465271,_0x5870b0[_0x318f49(0x14d)]=!0x0,_0x5870b0[_0x318f49(0x136)]=!0x0,_0x5870b0[_0x318f49(0x16a)]=!0x0,((_0x5d1939=v(_0x5d1939))in _0x2f049d?Object[_0x318f49(0x120)](_0x2f049d,_0x5d1939,_0x5870b0):_0x2f049d[_0x5d1939]=_0x465271,_0x2f049d);}var b=class extends _0x41304d{constructor(){const _0x10e3fe=_0x3ae8;super(),y(this,_0x10e3fe(0x17e),new Map()),y(this,_0x10e3fe(0x15a),new Set()),y(this,_0x10e3fe(0x14f),new Set());}[_0x50a360(0x141)](_0x4b1420,_0x209f62,_0x4005fa){const _0x536ee6=_0x50a360;let _0x3ad565=new _0x37697e(_0x4b1420,_0x209f62,_0x4005fa);return this[_0x536ee6(0x17e)][_0x536ee6(0x126)](_0x209f62,_0x3ad565),_0x32f9fb(_0x4b1420)&&this[_0x536ee6(0x15a)][_0x536ee6(0x16b)](_0x209f62),_0x3ad565;}[_0x50a360(0x16f)](_0x37902f){const _0x6fdf53=_0x50a360;let _0xe8eefb=[];for(let _0x32677c of this[_0x6fdf53(0x15a)]){let _0x46be93=this[_0x6fdf53(0x17e)][_0x6fdf53(0x144)](_0x32677c);if(_0x46be93){let _0x2450a9=_0x46be93[_0x6fdf53(0x165)]();if(_0x2450a9){var _0x5e45d8,_0xf2cb1;((_0x5e45d8=_0x2450a9[_0x6fdf53(0x121)])==null?void 0x0:_0x5e45d8[_0x6fdf53(0x13f)])===_0x37902f&&_0xe8eefb[_0x6fdf53(0x122)]({..._0x2450a9[_0x6fdf53(0x121)],'lineShapeId':_0x32677c,'isFrom':!0x0}),((_0xf2cb1=_0x2450a9['to'])==null?void 0x0:_0xf2cb1[_0x6fdf53(0x13f)])===_0x37902f&&_0xe8eefb[_0x6fdf53(0x122)]({..._0x2450a9['to'],'lineShapeId':_0x32677c,'isFrom':!0x1});}}}return _0xe8eefb;}[_0x50a360(0x159)](_0x7c0861){const _0x3c71dd=_0x50a360;let _0x28f57c=this[_0x3c71dd(0x17e)][_0x3c71dd(0x144)](_0x7c0861);if(_0x28f57c)return _0x28f57c[_0x3c71dd(0x165)]();}[_0x50a360(0x17d)](_0x187653){const _0x5aac2e=_0x50a360;let _0x67bc04=this[_0x5aac2e(0x17e)][_0x5aac2e(0x144)](_0x187653);if(_0x67bc04)return _0x67bc04[_0x5aac2e(0x17d)]();}[_0x50a360(0x13b)](_0x44b976){const _0x3ffeda=_0x50a360;return this[_0x3ffeda(0x17e)][_0x3ffeda(0x13c)](_0x44b976);}[_0x50a360(0x14e)](_0x4c370f){const _0xd7fa63=_0x50a360;let _0x18af0c=this[_0xd7fa63(0x17e)][_0xd7fa63(0x144)](_0x4c370f);_0x18af0c&&(_0x32f9fb(_0x18af0c[_0xd7fa63(0x17d)]())&&this[_0xd7fa63(0x15a)][_0xd7fa63(0x14a)](_0x4c370f),this[_0xd7fa63(0x17e)][_0xd7fa63(0x14a)](_0x4c370f));}[_0x50a360(0x15e)](){const _0x14d61c=_0x50a360;let _0x25b65d=[];return this[_0x14d61c(0x17e)][_0x14d61c(0x168)](_0x5bd324=>{const _0x51a498=_0x14d61c;_0x25b65d[_0x51a498(0x122)](_0x5bd324[_0x51a498(0x15e)]());}),_0x25b65d;}[_0x50a360(0x166)](_0x2d8b08){const _0x5baed6=_0x50a360;for(let _0x5101ca of _0x2d8b08){let {id:_0x3fecf9,shapeType:_0x3aed9f}=_0x5101ca,_0x588844=this[_0x5baed6(0x141)](_0x3aed9f,_0x3fecf9,_0x5101ca[_0x5baed6(0x163)]);_0x588844&&_0x588844[_0x5baed6(0x12b)]()&&this[_0x5baed6(0x15a)][_0x5baed6(0x16b)](_0x3fecf9);}}[_0x50a360(0x146)](){const _0x103b7c=_0x50a360;this[_0x103b7c(0x153)]||(this[_0x103b7c(0x17e)][_0x103b7c(0x168)](_0x3914e7=>{const _0x49d5e3=_0x103b7c;_0x3914e7[_0x49d5e3(0x146)]();}),this[_0x103b7c(0x17e)][_0x103b7c(0x169)](),this[_0x103b7c(0x15a)][_0x103b7c(0x169)](),this[_0x103b7c(0x14f)][_0x103b7c(0x169)](),super[_0x103b7c(0x146)]());}};function x(_0x28b658,_0x3be091){return function(_0x426096,_0x5b7b60){_0x3be091(_0x426096,_0x5b7b60,_0x28b658);};}function S(_0x17fb1b,_0x129816,_0x16bcc3,_0x228324){const _0x4de255=_0x50a360;var _0xdb24c1=arguments[_0x4de255(0x12f)],_0x266131=_0xdb24c1<0x3?_0x129816:_0x228324===null?_0x228324=Object[_0x4de255(0x15c)](_0x129816,_0x16bcc3):_0x228324,_0x2501d2;if(typeof Reflect==_0x4de255(0x156)&&typeof Reflect[_0x4de255(0x181)]==_0x4de255(0x14b))_0x266131=Reflect[_0x4de255(0x181)](_0x17fb1b,_0x129816,_0x16bcc3,_0x228324);else{for(var _0x5368df=_0x17fb1b[_0x4de255(0x12f)]-0x1;_0x5368df>=0x0;_0x5368df--)(_0x2501d2=_0x17fb1b[_0x5368df])&&(_0x266131=(_0xdb24c1<0x3?_0x2501d2(_0x266131):_0xdb24c1>0x3?_0x2501d2(_0x129816,_0x16bcc3,_0x266131):_0x2501d2(_0x129816,_0x16bcc3))||_0x266131);}return _0xdb24c1>0x3&&_0x266131&&Object[_0x4de255(0x120)](_0x129816,_0x16bcc3,_0x266131),_0x266131;}let C=class extends _0x41304d{constructor(_0x57324b){const _0x32dc7f=_0x50a360;super(),this[_0x32dc7f(0x152)]=_0x57324b,y(this,_0x32dc7f(0x151),new Map()),this[_0x32dc7f(0x14c)]();}[_0x50a360(0x170)](_0x5688b7,_0x1a61a1){const _0x4629eb=_0x50a360;let _0xf9f87b=this[_0x4629eb(0x151)][_0x4629eb(0x144)](_0x5688b7);_0xf9f87b||(_0xf9f87b=new Map(),this[_0x4629eb(0x151)][_0x4629eb(0x126)](_0x5688b7,_0xf9f87b));let _0x2f1291=_0xf9f87b[_0x4629eb(0x144)](_0x1a61a1);return _0x2f1291||(_0x2f1291=new b(),_0xf9f87b[_0x4629eb(0x126)](_0x1a61a1,_0x2f1291)),_0x2f1291;}[_0x50a360(0x142)](_0x45438b,_0xb0370f,_0x25901a,_0x4b2c3e,_0x8d557a){const _0x42afe9=_0x50a360;this[_0x42afe9(0x170)](_0x45438b,_0xb0370f)[_0x42afe9(0x141)](_0x25901a,_0x4b2c3e,_0x8d557a);}[_0x50a360(0x14e)](_0x23ee9b,_0x301460,_0x911737){const _0x39f118=_0x50a360;this[_0x39f118(0x170)](_0x23ee9b,_0x301460)[_0x39f118(0x14e)](_0x911737);}[_0x50a360(0x125)](_0x3c0666,_0x1164cd,_0xb31b36){const _0x1f72ce=_0x50a360;return this[_0x1f72ce(0x170)](_0x3c0666,_0x1164cd)[_0x1f72ce(0x17d)](_0xb31b36);}[_0x50a360(0x17d)](_0x38f314,_0x22a216,_0x1cfb88){const _0x207298=_0x50a360;return this[_0x207298(0x170)](_0x38f314,_0x22a216)[_0x207298(0x17d)](_0x1cfb88);}[_0x50a360(0x13b)](_0x2984a3,_0x217993,_0x4bd01a){const _0x5a2c18=_0x50a360;return this[_0x5a2c18(0x170)](_0x2984a3,_0x217993)[_0x5a2c18(0x13b)](_0x4bd01a);}[_0x50a360(0x172)](_0x4b078d,_0x154b08,_0x466339){const _0x532afa=_0x50a360;return this[_0x532afa(0x170)](_0x4b078d,_0x154b08)[_0x532afa(0x17d)](_0x466339);}[_0x50a360(0x175)](_0x380c2d,_0x17d16f,_0xc11d23){const _0x59b8b7=_0x50a360;let _0x4bb81a=this[_0x59b8b7(0x170)](_0x380c2d,_0x17d16f);if(!_0x4bb81a[_0x59b8b7(0x17d)](_0xc11d23))return;let _0x53515c=_0x4bb81a[_0x59b8b7(0x17e)][_0x59b8b7(0x144)](_0xc11d23);if(_0x53515c)return _0x53515c[_0x59b8b7(0x143)]();}[_0x50a360(0x17c)](_0x3bebb8,_0x3aa669,_0x257df8){const _0x3be113=_0x50a360;return this[_0x3be113(0x170)](_0x3bebb8,_0x3aa669)[_0x3be113(0x17e)][_0x3be113(0x144)](_0x257df8);}[_0x50a360(0x16f)](_0x1dedc0,_0x572e13,_0x564025){const _0x376c70=_0x50a360;return this[_0x376c70(0x170)](_0x1dedc0,_0x572e13)[_0x376c70(0x16f)](_0x564025);}[_0x50a360(0x159)](_0x58bb43,_0x2aa636,_0x45e608){const _0x1ed75d=_0x50a360;let _0x28bbde=this[_0x1ed75d(0x170)](_0x58bb43,_0x2aa636)[_0x1ed75d(0x17e)][_0x1ed75d(0x144)](_0x45e608);if(_0x28bbde)return _0x28bbde[_0x1ed75d(0x165)]();}[_0x50a360(0x12d)](){}[_0x50a360(0x145)](_0x2f4f02){const _0x5ecb87=_0x50a360;let _0x287b66={},_0x354086=this[_0x5ecb87(0x151)][_0x5ecb87(0x144)](_0x2f4f02);return _0x354086&&_0x354086[_0x5ecb87(0x168)]((_0x573f8d,_0x74d725)=>{const _0x575b63=_0x5ecb87;let _0x5b9e18=_0x573f8d[_0x575b63(0x15e)]();_0x5b9e18[_0x575b63(0x12f)]>0x0&&(_0x287b66[_0x74d725]=_0x5b9e18);}),JSON[_0x5ecb87(0x158)](_0x287b66);}[_0x50a360(0x161)](_0x2934fc,_0x42bd50){const _0x13e4dc=_0x50a360;Object[_0x13e4dc(0x173)](_0x42bd50)[_0x13e4dc(0x168)](_0x5b5085=>{const _0xbd9002=_0x13e4dc;this[_0xbd9002(0x170)](_0x2934fc,_0x5b5085)[_0xbd9002(0x166)](_0x42bd50[_0x5b5085]);});}[_0x50a360(0x15e)](){const _0x29ba0f=_0x50a360;let _0x3a29a8={};return this[_0x29ba0f(0x151)][_0x29ba0f(0x168)]((_0x28bd02,_0x4b85f5)=>{const _0x561dbd=_0x29ba0f;_0x3a29a8[_0x4b85f5]={},_0x28bd02[_0x561dbd(0x168)]((_0x561d40,_0x294e05)=>{const _0x574cf6=_0x561dbd;_0x3a29a8[_0x4b85f5][_0x294e05]=_0x561d40[_0x574cf6(0x15e)]();});}),_0x3a29a8;}[_0x50a360(0x166)](_0x35f658){const _0x28839d=_0x50a360;Object[_0x28839d(0x173)](_0x35f658)[_0x28839d(0x168)](_0x4a51c7=>{const _0x384a9a=_0x28839d;let _0x5a85eb=_0x35f658[_0x4a51c7];Object[_0x384a9a(0x173)](_0x5a85eb)[_0x384a9a(0x168)](_0x2959f2=>{const _0x309ed2=_0x384a9a;this[_0x309ed2(0x170)](_0x4a51c7,_0x2959f2)[_0x309ed2(0x166)](_0x5a85eb[_0x2959f2]);});});}[_0x50a360(0x14c)](){const _0x260e31=_0x50a360;this[_0x260e31(0x152)][_0x260e31(0x13a)]({'pluginName':_0x260e31(0x127),'businesses':[_0x1bcc96[_0x260e31(0x182)]],'toJson':_0x28daf4=>this[_0x260e31(0x145)](_0x28daf4),'parseJson':_0x3e1f3d=>JSON[_0x260e31(0x18b)](_0x3e1f3d),'onLoad':(_0x2eb20b,_0x410bc)=>{const _0x3e4b6d=_0x260e31;this[_0x3e4b6d(0x161)](_0x2eb20b,_0x410bc);},'onUnLoad':_0x46d62b=>{const _0x52e2f5=_0x260e31;let _0x2cef23=this[_0x52e2f5(0x151)][_0x52e2f5(0x144)](_0x46d62b);_0x2cef23&&(_0x2cef23[_0x52e2f5(0x168)](_0x491ecf=>{const _0x290243=_0x52e2f5;_0x491ecf[_0x290243(0x146)]();}),this[_0x52e2f5(0x151)][_0x52e2f5(0x14a)](_0x46d62b));}});}[_0x50a360(0x146)](){const _0xd7ec8b=_0x50a360;this[_0xd7ec8b(0x151)][_0xd7ec8b(0x168)](_0x382a4e=>{const _0x27bf25=_0xd7ec8b;_0x382a4e[_0x27bf25(0x168)](_0x92b683=>{const _0x2102df=_0x27bf25;_0x92b683[_0x2102df(0x146)]();});});}};C=S([x(0x0,_0x2891e1)],C);const w={'id':_0x50a360(0x13d),'type':_0x229282[_0x50a360(0x162)],'handler':(_0x52240a,_0x2a4585)=>{const _0x5c0836=_0x50a360;let {unitId:_0x3a41dd,subUnitId:_0x356ccd,shapeType:_0x484ead,shapeId:_0x577e5e,shapeData:_0x32afa7}=_0x2a4585,_0x3ff036=_0x52240a[_0x5c0836(0x144)](C)[_0x5c0836(0x17c)](_0x3a41dd,_0x356ccd,_0x577e5e);return _0x3ff036&&(_0x3ff036[_0x5c0836(0x12d)](_0x484ead),_0x32afa7&&(_0x3ff036==null||_0x3ff036[_0x5c0836(0x188)](_0x32afa7))),!0x0;}},T={'id':_0x50a360(0x13e),'type':_0x229282[_0x50a360(0x137)],'handler':(_0x4785c3,_0x455456)=>{const _0x4b5270=_0x50a360;if(!_0x455456)return!0x1;let _0x5c3778=_0x4785c3[_0x4b5270(0x144)](_0x306935),_0x3da016=_0x4785c3[_0x4b5270(0x144)](C),_0x1438b2=_0x4785c3[_0x4b5270(0x144)](_0x37af13),_0x2f9927=[],_0x7ee294=[],{unitId:_0x5ce1e1,subUnitId:_0x540767,shapeId:_0x5cf0c8,shapeType:_0x2ef0b0,shapeData:_0x1f4d6e}=_0x455456,_0x277b3a=_0x3da016[_0x4b5270(0x17c)](_0x5ce1e1,_0x540767,_0x5cf0c8);if(_0x277b3a){const _0x543412={};_0x543412[_0x4b5270(0x179)]=_0x5ce1e1,_0x543412[_0x4b5270(0x147)]=_0x540767,_0x543412[_0x4b5270(0x13f)]=_0x5cf0c8,_0x543412[_0x4b5270(0x16d)]=_0x2ef0b0,_0x543412[_0x4b5270(0x163)]=_0x1f4d6e;let _0x3b4772=_0x277b3a[_0x4b5270(0x17d)](),_0x46325b=Object[_0x4b5270(0x134)]({},_0x277b3a[_0x4b5270(0x143)]()),_0x10ac1f=_0x543412,_0x223e96={'unitId':_0x5ce1e1,'subUnitId':_0x540767,'shapeId':_0x5cf0c8,'shapeType':_0x3b4772,'shapeData':_0x46325b};const _0x378e86={};_0x378e86['id']=w['id'],_0x378e86[_0x4b5270(0x128)]=_0x10ac1f;const _0x330d3d={};return _0x330d3d['id']=w['id'],_0x330d3d[_0x4b5270(0x128)]=_0x223e96,(_0x2f9927[_0x4b5270(0x122)](_0x378e86),_0x7ee294[_0x4b5270(0x122)](_0x330d3d),_0x2f9927[_0x4b5270(0x157)](_0x5bc626=>_0x5c3778[_0x4b5270(0x164)](_0x5bc626['id'],_0x5bc626[_0x4b5270(0x128)]))&&_0x1438b2[_0x4b5270(0x133)]({'unitID':_0x5ce1e1,'redoMutations':[..._0x2f9927],'undoMutations':[..._0x7ee294]}),!0x0);}return!0x1;}},E={'id':_0x50a360(0x186),'type':_0x229282[_0x50a360(0x162)],'handler':(_0x213e77,_0x111e78)=>{const _0x4a6117=_0x50a360;let {unitId:_0x58793c,subUnitId:_0xbdcb86,shapeType:_0x206813,shapeId:_0x373c3e,shapeData:_0x14d3cf}=_0x111e78;return _0x213e77[_0x4a6117(0x144)](C)[_0x4a6117(0x142)](_0x58793c,_0xbdcb86,_0x206813,_0x373c3e,_0x14d3cf),!0x0;}},D={'id':_0x50a360(0x138),'type':_0x229282[_0x50a360(0x162)],'handler':(_0x5db9b2,_0x3eb689)=>{const _0x5584bc=_0x50a360;let {unitId:_0x8f3266,subUnitId:_0x900ca8,shapeId:_0xd953bc}=_0x3eb689;return _0x5db9b2[_0x5584bc(0x144)](C)[_0x5584bc(0x14e)](_0x8f3266,_0x900ca8,_0xd953bc),!0x0;}},O={'id':_0x50a360(0x15b),'type':_0x229282[_0x50a360(0x162)],'handler':(_0xd542ca,_0x41db2e)=>{const _0xfdde40=_0x50a360;let {unitId:_0x30b87f,subUnitId:_0x212041,shapeType:_0x143f43,shapeId:_0xae6235,shapeData:_0x47998e}=_0x41db2e,_0x5eb3de=_0xd542ca[_0xfdde40(0x144)](C)[_0xfdde40(0x17c)](_0x30b87f,_0x212041,_0xae6235);return _0x5eb3de&&(_0x143f43!==void 0x0&&_0x5eb3de[_0xfdde40(0x12d)](_0x143f43),_0x47998e&&(_0x5eb3de==null||_0x5eb3de[_0xfdde40(0x188)](_0x47998e,!0x0))),!0x0;}};var k=_0x50a360(0x135),A=_0x50a360(0x17a);const j=_0x50a360(0x160);Symbol(j);const M={};let N=class extends _0x344015{constructor(_0x2242df=M,_0x1f0e25,_0x21cc6,_0xe22fa){const _0x46f1fc=_0x50a360;super(),this[_0x46f1fc(0x154)]=_0x2242df,this[_0x46f1fc(0x139)]=_0x1f0e25,this[_0x46f1fc(0x183)]=_0x21cc6,this[_0x46f1fc(0x17f)]=_0xe22fa;let {..._0x45b46a}=_0x838e7a({},M,this[_0x46f1fc(0x154)]);this[_0x46f1fc(0x17f)][_0x46f1fc(0x124)](j,_0x45b46a),this[_0x46f1fc(0x132)]();}[_0x50a360(0x178)](){const _0x2342ee=_0x50a360;_0x35ff1b(this[_0x2342ee(0x139)],[]);}[_0x50a360(0x15d)](){const _0x38919d=_0x50a360;let _0xa3ebdb=this[_0x38919d(0x139)];[[b],[C]][_0x38919d(0x168)](_0x5b1809=>_0xa3ebdb[_0x38919d(0x16b)](_0x5b1809));}[_0x50a360(0x132)](){const _0x13f9ee=_0x50a360;[E,D,w,O][_0x13f9ee(0x168)](_0x162c6d=>this[_0x13f9ee(0x16e)](this[_0x13f9ee(0x183)][_0x13f9ee(0x184)](_0x162c6d)));}};y(N,_0x50a360(0x171),_0x1bcc96[_0x50a360(0x182)]),y(N,_0x50a360(0x189),_0x50a360(0x127)),y(N,_0x50a360(0x123),k),y(N,_0x50a360(0x167),A),N=S([_0x1a0646(_0x1767a4),x(0x1,_0x35c42f(_0x3c3bdb)),x(0x2,_0x306935),x(0x3,_0x337d88)],N);export{E as InsertSheetsShapeMutation,D as RemoveSheetsShapeMutation,C as SheetsShapeService,N as UniverSheetsShapePlugin,O as UpdateSheetsShapeDataMutation,T as UpdateSheetsShapeTypeCommand,w as UpdateSheetsShapeTypeMutation};
@@ -1,6 +1,6 @@
1
- import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
- import { ICommand } from '@univerjs/core';
3
- import { ISheetCommandSharedParams } from '@univerjs/sheets';
1
+ import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
+ import type { ICommand } from '@univerjs/core';
3
+ import type { ISheetCommandSharedParams } from '@univerjs/sheets';
4
4
  export interface IUpdateSheetsShapeTypeCommandParams extends ISheetCommandSharedParams {
5
5
  shapeId: string;
6
6
  shapeType: ShapeTypeEnum;
@@ -1,6 +1,6 @@
1
- import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
- import { IMutation } from '@univerjs/core';
3
- import { ISheetCommandSharedParams } from '@univerjs/sheets';
1
+ import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
+ import type { IMutation } from '@univerjs/core';
3
+ import type { ISheetCommandSharedParams } from '@univerjs/sheets';
4
4
  export interface IInsertSheetsShapeMutationParams extends ISheetCommandSharedParams {
5
5
  shapeId: string;
6
6
  shapeType: ShapeTypeEnum;
@@ -1,5 +1,5 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISheetCommandSharedParams } from '@univerjs/sheets';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { ISheetCommandSharedParams } from '@univerjs/sheets';
3
3
  export interface IRemoveSheetsShapeMutationParams extends ISheetCommandSharedParams {
4
4
  shapeId: string;
5
5
  }
@@ -1,6 +1,6 @@
1
- import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
- import { IMutation } from '@univerjs/core';
3
- import { ISheetCommandSharedParams } from '@univerjs/sheets';
1
+ import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
+ import type { IMutation } from '@univerjs/core';
3
+ import type { ISheetCommandSharedParams } from '@univerjs/sheets';
4
4
  export interface IUpdateSheetsShapeDataMutationParams extends ISheetCommandSharedParams {
5
5
  shapeId: string;
6
6
  shapeType: ShapeTypeEnum;
@@ -1,6 +1,6 @@
1
- import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
- import { IMutation } from '@univerjs/core';
3
- import { ISheetCommandSharedParams } from '@univerjs/sheets';
1
+ import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
+ import type { IMutation } from '@univerjs/core';
3
+ import type { ISheetCommandSharedParams } from '@univerjs/sheets';
4
4
  export interface IUpdateSheetsShapeTypeMutationParams extends ISheetCommandSharedParams {
5
5
  shapeId: string;
6
6
  shapeType: ShapeTypeEnum;
@@ -1,4 +1,5 @@
1
- import { IShapeData, IShapeJSONData, IShapeRelation, IShapeRelationItem, ShapeTypeEnum, ShapeModel } from '@univerjs-pro/engine-shape';
1
+ import type { IShapeData, IShapeJSONData, IShapeRelation, IShapeRelationItem, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
+ import { ShapeModel } from '@univerjs-pro/engine-shape';
2
3
  import { Disposable } from '@univerjs/core';
3
4
  export type IShapeRelationItemWithLineId = IShapeRelationItem & {
4
5
  lineShapeId: string;
@@ -1,6 +1,5 @@
1
- import { IUniverSheetsShapeConfig } from './controllers/config.schema';
1
+ import type { IUniverSheetsShapeConfig } from './controllers/config.schema';
2
2
  import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
- export declare const SHEET_SHAPE_PLUGIN_NAME = "SHEET_SHAPE_PLUGIN";
4
3
  export declare class UniverSheetsShapePlugin extends Plugin {
5
4
  private readonly _config;
6
5
  protected readonly _injector: Injector;
@@ -8,6 +7,8 @@ export declare class UniverSheetsShapePlugin extends Plugin {
8
7
  private readonly _configService;
9
8
  static type: UniverInstanceType;
10
9
  static pluginName: string;
10
+ static packageName: string;
11
+ static version: string;
11
12
  constructor(_config: IUniverSheetsShapeConfig | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
12
13
  onRendered(): void;
13
14
  onStarting(): void;
@@ -1,4 +1,4 @@
1
- import { IShapeData, IShapeJSONData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
1
+ import type { IShapeData, IShapeJSONData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
2
  import { Disposable, IResourceManagerService } from '@univerjs/core';
3
3
  export interface ISheetsShapeResource {
4
4
  [subUnitId: string]: IShapeJSONData[];
@@ -16,9 +16,9 @@ export declare class SheetsShapeService extends Disposable {
16
16
  hasShape(unitId: string, subUnitId: string, shapeId: string): boolean;
17
17
  getShapeTypeById(unitId: string, subUnitId: string, shapeId: string): ShapeTypeEnum | undefined;
18
18
  getShapeDataById(unitId: string, subUnitId: string, shapeId: string): IShapeData | undefined;
19
- getShapeModel(unitId: string, subUnitId: string, shapeId: string): import('@univerjs-pro/engine-shape').ShapeModel | undefined;
20
- getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import('../model/shape-manager').IShapeRelationItemWithLineId[];
21
- getLineShapeRelation(unitId: string, subUnitId: string, shapeId: string): import('@univerjs-pro/engine-shape').IShapeRelation | undefined;
19
+ getShapeModel(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").ShapeModel | undefined;
20
+ getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("../model/shape-manager").IShapeRelationItemWithLineId[];
21
+ getLineShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").IShapeRelation | undefined;
22
22
  setShapeType(): void;
23
23
  private _serializeShapeForUnit;
24
24
  private _deserializeShapeForUnit;
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x151cc9,_0x72093b){const _0x2ff975=_0x2575,_0x2c097d=_0x151cc9();while(!![]){try{const _0x4393bc=-parseInt(_0x2ff975(0x18f))/0x1+parseInt(_0x2ff975(0x19e))/0x2*(parseInt(_0x2ff975(0x18b))/0x3)+parseInt(_0x2ff975(0x150))/0x4*(parseInt(_0x2ff975(0x15d))/0x5)+parseInt(_0x2ff975(0x178))/0x6*(parseInt(_0x2ff975(0x152))/0x7)+parseInt(_0x2ff975(0x16e))/0x8+parseInt(_0x2ff975(0x156))/0x9*(-parseInt(_0x2ff975(0x14a))/0xa)+-parseInt(_0x2ff975(0x1a0))/0xb;if(_0x4393bc===_0x72093b)break;else _0x2c097d['push'](_0x2c097d['shift']());}catch(_0xa850db){_0x2c097d['push'](_0x2c097d['shift']());}}}(_0x57cb,0x890b0),function(_0x3e6a9e,_0x1a471f){const _0x19803a=_0x2575;typeof exports==_0x19803a(0x16b)&&typeof module<'u'?_0x1a471f(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x19803a(0x1a3)]?define([_0x19803a(0x140),'@univerjs/core',_0x19803a(0x172),_0x19803a(0x1a5)],_0x1a471f):(_0x3e6a9e=typeof globalThis<'u'?globalThis:_0x3e6a9e||self,_0x1a471f(_0x3e6a9e[_0x19803a(0x153)]={},_0x3e6a9e[_0x19803a(0x167)],_0x3e6a9e[_0x19803a(0x18d)],_0x3e6a9e['UniverProLicense']));}(this,function(_0x5cf09e,_0x33e491,_0x4da624,_0x125323){'use strict';const _0x122c24=_0x2575;var _0x49cbaf=Object['defineProperty'],_0x878320=(_0x11294d,_0x738a3d,_0x32654a)=>_0x738a3d in _0x11294d?_0x49cbaf(_0x11294d,_0x738a3d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32654a}):_0x11294d[_0x738a3d]=_0x32654a,_0x24e550=(_0x3edd01,_0x540fff,_0xf2820d)=>_0x878320(_0x3edd01,typeof _0x540fff!=_0x122c24(0x14b)?_0x540fff+'':_0x540fff,_0xf2820d);class _0x1990ac extends _0x33e491[_0x122c24(0x159)]{constructor(){const _0x4435fb=_0x122c24;super(),_0x24e550(this,_0x4435fb(0x145),new Map()),_0x24e550(this,_0x4435fb(0x158),new Set()),_0x24e550(this,_0x4435fb(0x187),new Set());}[_0x122c24(0x173)](_0x27fd07,_0x5c1ddf,_0x48d6be){const _0x3631dc=_0x122c24,_0x5c0f83=new _0x4da624[(_0x3631dc(0x148))](_0x27fd07,_0x5c1ddf,_0x48d6be);return this['_shapes'][_0x3631dc(0x183)](_0x5c1ddf,_0x5c0f83),_0x4da624[_0x3631dc(0x143)](_0x27fd07)&&this['_linesIds'][_0x3631dc(0x193)](_0x5c1ddf),_0x5c0f83;}[_0x122c24(0x191)](_0x10fd8c){const _0x1ca29b=_0x122c24;var _0x110dbd,_0x135888;const _0x33d565=[];for(const _0x4d2467 of this[_0x1ca29b(0x158)]){const _0x1beef9=this['_shapes'][_0x1ca29b(0x177)](_0x4d2467);if(_0x1beef9){const _0x2a514f=_0x1beef9[_0x1ca29b(0x16f)]();_0x2a514f&&(((_0x110dbd=_0x2a514f[_0x1ca29b(0x189)])==null?void 0x0:_0x110dbd[_0x1ca29b(0x1a2)])===_0x10fd8c&&_0x33d565[_0x1ca29b(0x162)]({..._0x2a514f[_0x1ca29b(0x189)],'lineShapeId':_0x4d2467,'isFrom':!0x0}),((_0x135888=_0x2a514f['to'])==null?void 0x0:_0x135888[_0x1ca29b(0x1a2)])===_0x10fd8c&&_0x33d565[_0x1ca29b(0x162)]({..._0x2a514f['to'],'lineShapeId':_0x4d2467,'isFrom':!0x1}));}}return _0x33d565;}[_0x122c24(0x16d)](_0x457048){const _0x16fa08=_0x122c24,_0x2656e9=this[_0x16fa08(0x145)][_0x16fa08(0x177)](_0x457048);if(_0x2656e9)return _0x2656e9[_0x16fa08(0x16f)]();}[_0x122c24(0x168)](_0x367799){const _0x1c5bd5=_0x122c24,_0x571bf3=this[_0x1c5bd5(0x145)]['get'](_0x367799);if(_0x571bf3)return _0x571bf3[_0x1c5bd5(0x168)]();}['hasShape'](_0x44b872){const _0x364f6c=_0x122c24;return this[_0x364f6c(0x145)][_0x364f6c(0x181)](_0x44b872);}[_0x122c24(0x161)](_0x28920c){const _0x53de4b=_0x122c24,_0x1ef336=this[_0x53de4b(0x145)][_0x53de4b(0x177)](_0x28920c);_0x1ef336&&(_0x4da624[_0x53de4b(0x143)](_0x1ef336[_0x53de4b(0x168)]())&&this['_linesIds'][_0x53de4b(0x176)](_0x28920c),this[_0x53de4b(0x145)][_0x53de4b(0x176)](_0x28920c));}[_0x122c24(0x142)](){const _0x5c1419=_0x122c24,_0x1abd11=[];return this[_0x5c1419(0x145)]['forEach'](_0x379b23=>{const _0x3a4ca6=_0x5c1419;_0x1abd11[_0x3a4ca6(0x162)](_0x379b23[_0x3a4ca6(0x142)]());}),_0x1abd11;}['fromJSON'](_0x74e866){const _0x4d4200=_0x122c24;for(const _0x455a99 of _0x74e866){const {id:_0x51a9f4,shapeType:_0x38ea88}=_0x455a99,_0x239d9b=this[_0x4d4200(0x173)](_0x38ea88,_0x51a9f4,_0x455a99[_0x4d4200(0x16a)]);_0x239d9b&&_0x239d9b[_0x4d4200(0x17e)]()&&this[_0x4d4200(0x158)][_0x4d4200(0x193)](_0x51a9f4);}}[_0x122c24(0x19b)](){const _0x188f7d=_0x122c24;this[_0x188f7d(0x19a)]||(this['_shapes'][_0x188f7d(0x166)](_0xf1bb3=>{const _0x2855d7=_0x188f7d;_0xf1bb3[_0x2855d7(0x19b)]();}),this['_shapes']['clear'](),this[_0x188f7d(0x158)][_0x188f7d(0x165)](),this[_0x188f7d(0x187)][_0x188f7d(0x165)](),super[_0x188f7d(0x19b)]());}}var _0x28dd8d=Object['getOwnPropertyDescriptor'],_0x559763=(_0x4d7042,_0x17eeca,_0x1851b7,_0x3e4da0)=>{const _0x2f303f=_0x122c24;for(var _0x5c0404=_0x3e4da0>0x1?void 0x0:_0x3e4da0?_0x28dd8d(_0x17eeca,_0x1851b7):_0x17eeca,_0x3af6df=_0x4d7042[_0x2f303f(0x179)]-0x1,_0x4f8bd8;_0x3af6df>=0x0;_0x3af6df--)(_0x4f8bd8=_0x4d7042[_0x3af6df])&&(_0x5c0404=_0x4f8bd8(_0x5c0404)||_0x5c0404);return _0x5c0404;},_0x60680f=(_0x221cea,_0x6614a3)=>(_0x47729f,_0x3d8d2e)=>_0x6614a3(_0x47729f,_0x3d8d2e,_0x221cea);const _0x43da07=_0x122c24(0x15c);_0x5cf09e[_0x122c24(0x196)]=class extends _0x33e491[_0x122c24(0x159)]{constructor(_0x44c8b8){const _0x1d0375=_0x122c24;super(),_0x24e550(this,_0x1d0375(0x17c),new Map()),(this[_0x1d0375(0x17a)]=_0x44c8b8,this[_0x1d0375(0x14d)]());}[_0x122c24(0x1a4)](_0x3c3595,_0x1f4c58){const _0x1ce26c=_0x122c24;let _0x467e19=this[_0x1ce26c(0x17c)]['get'](_0x3c3595);_0x467e19||(_0x467e19=new Map(),this[_0x1ce26c(0x17c)][_0x1ce26c(0x183)](_0x3c3595,_0x467e19));let _0xe3f20c=_0x467e19[_0x1ce26c(0x177)](_0x1f4c58);return _0xe3f20c||(_0xe3f20c=new _0x1990ac(),_0x467e19[_0x1ce26c(0x183)](_0x1f4c58,_0xe3f20c)),_0xe3f20c;}[_0x122c24(0x19f)](_0x5d91b5,_0x289674,_0x52f3ac,_0xcfcb2a,_0x12e333){const _0x10230d=_0x122c24;this[_0x10230d(0x1a4)](_0x5d91b5,_0x289674)[_0x10230d(0x173)](_0x52f3ac,_0xcfcb2a,_0x12e333);}[_0x122c24(0x161)](_0x5d9898,_0x5a0bae,_0x23d81b){const _0x4d8bee=_0x122c24;this[_0x4d8bee(0x1a4)](_0x5d9898,_0x5a0bae)[_0x4d8bee(0x161)](_0x23d81b);}['getBasicShapeType'](_0x2fcfe7,_0x25223c,_0x3fe707){const _0x53f0c2=_0x122c24;return this[_0x53f0c2(0x1a4)](_0x2fcfe7,_0x25223c)[_0x53f0c2(0x168)](_0x3fe707);}[_0x122c24(0x168)](_0x5c1535,_0x56a243,_0x19a16d){const _0x56aa59=_0x122c24;return this[_0x56aa59(0x1a4)](_0x5c1535,_0x56a243)[_0x56aa59(0x168)](_0x19a16d);}[_0x122c24(0x14e)](_0x95ad0,_0x465cf1,_0x39e8fc){const _0x5ecd7e=_0x122c24;return this[_0x5ecd7e(0x1a4)](_0x95ad0,_0x465cf1)[_0x5ecd7e(0x14e)](_0x39e8fc);}[_0x122c24(0x147)](_0x342c1a,_0x1afa1f,_0x2c378b){const _0x15b877=_0x122c24;return this['_ensureShapeModelManager'](_0x342c1a,_0x1afa1f)[_0x15b877(0x168)](_0x2c378b);}[_0x122c24(0x14f)](_0xb37099,_0x9e6197,_0x14a0aa){const _0x28ab3f=_0x122c24,_0x57a364=this['_ensureShapeModelManager'](_0xb37099,_0x9e6197);if(!_0x57a364['getShapeType'](_0x14a0aa))return;const _0x3ccee3=_0x57a364[_0x28ab3f(0x145)][_0x28ab3f(0x177)](_0x14a0aa);if(_0x3ccee3)return _0x3ccee3[_0x28ab3f(0x1a1)]();}[_0x122c24(0x16c)](_0x4da186,_0x19b50c,_0x1ff915){const _0x3f3572=_0x122c24;return this[_0x3f3572(0x1a4)](_0x4da186,_0x19b50c)[_0x3f3572(0x145)][_0x3f3572(0x177)](_0x1ff915);}[_0x122c24(0x191)](_0x4313fb,_0x272bca,_0x30b630){const _0x1972cd=_0x122c24;return this[_0x1972cd(0x1a4)](_0x4313fb,_0x272bca)[_0x1972cd(0x191)](_0x30b630);}['getLineShapeRelation'](_0x1a5c2a,_0x5cdd0b,_0x3558fd){const _0x4936d1=_0x122c24,_0x46953c=this[_0x4936d1(0x1a4)](_0x1a5c2a,_0x5cdd0b)[_0x4936d1(0x145)][_0x4936d1(0x177)](_0x3558fd);if(_0x46953c)return _0x46953c[_0x4936d1(0x16f)]();}[_0x122c24(0x15a)](){}[_0x122c24(0x151)](_0x35d0ce){const _0x366d11=_0x122c24,_0x42f12f={},_0x1d083d=this[_0x366d11(0x17c)][_0x366d11(0x177)](_0x35d0ce);return _0x1d083d&&_0x1d083d[_0x366d11(0x166)]((_0xe78cc1,_0x20fda9)=>{const _0x9fd72b=_0x366d11,_0x51411e=_0xe78cc1[_0x9fd72b(0x142)]();_0x51411e[_0x9fd72b(0x179)]>0x0&&(_0x42f12f[_0x20fda9]=_0x51411e);}),JSON['stringify'](_0x42f12f);}[_0x122c24(0x199)](_0x5bb840,_0x108e57){const _0x19dc09=_0x122c24;Object[_0x19dc09(0x144)](_0x108e57)[_0x19dc09(0x166)](_0x3c38c0=>{const _0x31c422=_0x19dc09;this[_0x31c422(0x1a4)](_0x5bb840,_0x3c38c0)[_0x31c422(0x184)](_0x108e57[_0x3c38c0]);});}[_0x122c24(0x142)](){const _0x5350f7=_0x122c24,_0x245c0b={};return this[_0x5350f7(0x17c)][_0x5350f7(0x166)]((_0x5bd492,_0x545548)=>{const _0x3799ad=_0x5350f7;_0x245c0b[_0x545548]={},_0x5bd492[_0x3799ad(0x166)]((_0x1d309b,_0x2933a5)=>{const _0x5a1de1=_0x3799ad;_0x245c0b[_0x545548][_0x2933a5]=_0x1d309b[_0x5a1de1(0x142)]();});}),_0x245c0b;}[_0x122c24(0x184)](_0x12e09f){const _0x3b794b=_0x122c24;Object[_0x3b794b(0x144)](_0x12e09f)[_0x3b794b(0x166)](_0x1e1efc=>{const _0x1f3cc3=_0x3b794b,_0x1ebb6a=_0x12e09f[_0x1e1efc];Object[_0x1f3cc3(0x144)](_0x1ebb6a)[_0x1f3cc3(0x166)](_0x50f420=>{const _0x29df1a=_0x1f3cc3;this[_0x29df1a(0x1a4)](_0x1e1efc,_0x50f420)['fromJSON'](_0x1ebb6a[_0x50f420]);});});}['_initSnapshot'](){const _0x356f91=_0x122c24;this[_0x356f91(0x17a)][_0x356f91(0x18a)]({'pluginName':_0x43da07,'businesses':[_0x33e491[_0x356f91(0x13f)]['UNIVER_SHEET']],'toJson':_0x57a0df=>this[_0x356f91(0x151)](_0x57a0df),'parseJson':_0x266cbe=>JSON[_0x356f91(0x146)](_0x266cbe),'onLoad':(_0x101a21,_0xfe6363)=>{const _0x3348b3=_0x356f91;this[_0x3348b3(0x199)](_0x101a21,_0xfe6363);},'onUnLoad':_0x57916e=>{const _0x2c9d86=_0x356f91,_0x3a406a=this['_shapeModelManagerMap'][_0x2c9d86(0x177)](_0x57916e);_0x3a406a&&(_0x3a406a[_0x2c9d86(0x166)](_0x490357=>{const _0x5215e1=_0x2c9d86;_0x490357[_0x5215e1(0x19b)]();}),this['_shapeModelManagerMap'][_0x2c9d86(0x176)](_0x57916e));}});}['dispose'](){const _0x749687=_0x122c24;this[_0x749687(0x17c)][_0x749687(0x166)](_0x320737=>{_0x320737['forEach'](_0x144d82=>{const _0x1cb92b=_0x2575;_0x144d82[_0x1cb92b(0x19b)]();});});}},_0x5cf09e[_0x122c24(0x196)]=_0x559763([_0x60680f(0x0,_0x33e491[_0x122c24(0x186)])],_0x5cf09e[_0x122c24(0x196)]);const _0x385e0e={'id':_0x122c24(0x188),'type':_0x33e491[_0x122c24(0x19d)][_0x122c24(0x155)],'handler':(_0x513b70,_0x128bab)=>{const _0x5e221f=_0x122c24,{unitId:_0x3b6ace,subUnitId:_0x315d1b,shapeType:_0x185ac2,shapeId:_0x3163b8,shapeData:_0xa47c8a}=_0x128bab,_0x586511=_0x513b70[_0x5e221f(0x177)](_0x5cf09e[_0x5e221f(0x196)])[_0x5e221f(0x16c)](_0x3b6ace,_0x315d1b,_0x3163b8);return _0x586511&&(_0x586511[_0x5e221f(0x15a)](_0x185ac2),_0xa47c8a&&(_0x586511==null||_0x586511['setShapeData'](_0xa47c8a))),!0x0;}},_0x3b671f={'id':_0x122c24(0x174),'type':_0x33e491[_0x122c24(0x19d)][_0x122c24(0x180)],'handler':(_0x533951,_0x514424)=>{const _0x29ff7c=_0x122c24;if(!_0x514424)return!0x1;const _0x37c399=_0x533951['get'](_0x33e491['ICommandService']),_0x3f1f7d=_0x533951[_0x29ff7c(0x177)](_0x5cf09e['SheetsShapeService']),_0xef145c=_0x533951[_0x29ff7c(0x177)](_0x33e491[_0x29ff7c(0x197)]),_0x3cc334=[],_0x447518=[],{unitId:_0x902a86,subUnitId:_0x24531f,shapeId:_0x826367,shapeType:_0x37c72f,shapeData:_0x1f3fd0}=_0x514424,_0x343c96=_0x3f1f7d[_0x29ff7c(0x16c)](_0x902a86,_0x24531f,_0x826367);if(_0x343c96){const _0x573a9d=_0x343c96['getShapeType'](),_0x44b76c=Object['assign']({},_0x343c96[_0x29ff7c(0x1a1)]()),_0x35ec29={'unitId':_0x902a86,'subUnitId':_0x24531f,'shapeId':_0x826367,'shapeType':_0x37c72f,'shapeData':_0x1f3fd0},_0x1c00f1={'unitId':_0x902a86,'subUnitId':_0x24531f,'shapeId':_0x826367,'shapeType':_0x573a9d,'shapeData':_0x44b76c};return _0x3cc334[_0x29ff7c(0x162)]({'id':_0x385e0e['id'],'params':_0x35ec29}),_0x447518[_0x29ff7c(0x162)]({'id':_0x385e0e['id'],'params':_0x1c00f1}),_0x3cc334[_0x29ff7c(0x1a6)](_0xcd9743=>_0x37c399[_0x29ff7c(0x192)](_0xcd9743['id'],_0xcd9743[_0x29ff7c(0x19c)]))&&_0xef145c[_0x29ff7c(0x198)]({'unitID':_0x902a86,'redoMutations':[..._0x3cc334],'undoMutations':[..._0x447518]}),!0x0;}return!0x1;}},_0x4f13d3={'id':_0x122c24(0x194),'type':_0x33e491[_0x122c24(0x19d)][_0x122c24(0x155)],'handler':(_0x37a57f,_0x4db445)=>{const _0x4e9165=_0x122c24,{unitId:_0x52df43,subUnitId:_0x550e59,shapeType:_0x271e63,shapeId:_0x57521e,shapeData:_0x313f36}=_0x4db445;return _0x37a57f[_0x4e9165(0x177)](_0x5cf09e[_0x4e9165(0x196)])[_0x4e9165(0x19f)](_0x52df43,_0x550e59,_0x271e63,_0x57521e,_0x313f36),!0x0;}},_0x415590={'id':_0x122c24(0x15f),'type':_0x33e491['CommandType'][_0x122c24(0x155)],'handler':(_0x2b74f4,_0x51ed4e)=>{const _0x343e5a=_0x122c24,{unitId:_0xea4c85,subUnitId:_0x524b22,shapeId:_0x2dea48}=_0x51ed4e;return _0x2b74f4['get'](_0x5cf09e[_0x343e5a(0x196)])[_0x343e5a(0x161)](_0xea4c85,_0x524b22,_0x2dea48),!0x0;}},_0x26b290={'id':_0x122c24(0x171),'type':_0x33e491[_0x122c24(0x19d)][_0x122c24(0x155)],'handler':(_0x2879dd,_0x2d8af0)=>{const _0xd53eb5=_0x122c24,{unitId:_0x46eb0e,subUnitId:_0x5ae38c,shapeType:_0x6b4136,shapeId:_0x33360c,shapeData:_0x1026bd}=_0x2d8af0,_0x206221=_0x2879dd[_0xd53eb5(0x177)](_0x5cf09e[_0xd53eb5(0x196)])[_0xd53eb5(0x16c)](_0x46eb0e,_0x5ae38c,_0x33360c);return _0x206221&&(_0x6b4136!==void 0x0&&_0x206221[_0xd53eb5(0x15a)](_0x6b4136),_0x1026bd&&(_0x206221==null||_0x206221['setShapeData'](_0x1026bd,!0x0))),!0x0;}},_0x199f6e='sheets-shape.config',_0x5db54e={};var _0x205295=Object['defineProperty'],_0xe3f327=Object[_0x122c24(0x17d)],_0x1c6ebb=(_0x16f8c1,_0x67b14e,_0x38923c)=>_0x67b14e in _0x16f8c1?_0x205295(_0x16f8c1,_0x67b14e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38923c}):_0x16f8c1[_0x67b14e]=_0x38923c,_0xcfbc40=(_0x2de13b,_0x1af970,_0xcefe74,_0x4419b4)=>{const _0x34a057=_0x122c24;for(var _0x48942c=_0x4419b4>0x1?void 0x0:_0x4419b4?_0xe3f327(_0x1af970,_0xcefe74):_0x1af970,_0x2ee683=_0x2de13b[_0x34a057(0x179)]-0x1,_0x240f66;_0x2ee683>=0x0;_0x2ee683--)(_0x240f66=_0x2de13b[_0x2ee683])&&(_0x48942c=_0x240f66(_0x48942c)||_0x48942c);return _0x48942c;},_0x5a2b96=(_0x29dedd,_0x4ffa61)=>(_0x1af349,_0x589e1a)=>_0x4ffa61(_0x1af349,_0x589e1a,_0x29dedd),_0x25b0fa=(_0x17b9d2,_0x2ed2ef,_0x1d7bd1)=>_0x1c6ebb(_0x17b9d2,typeof _0x2ed2ef!=_0x122c24(0x14b)?_0x2ed2ef+'':_0x2ed2ef,_0x1d7bd1);const _0x37557a=_0x122c24(0x15c);_0x5cf09e['UniverSheetsShapePlugin']=class extends _0x33e491['Plugin']{constructor(_0x5bb509=_0x5db54e,_0x112f2e,_0x4e4c67,_0x1a216f){const _0x581a39=_0x122c24;super(),this[_0x581a39(0x175)]=_0x5bb509,this[_0x581a39(0x157)]=_0x112f2e,this['_commandService']=_0x4e4c67,this[_0x581a39(0x149)]=_0x1a216f;const {..._0x16b2fe}=_0x33e491[_0x581a39(0x164)]({},_0x5db54e,this[_0x581a39(0x175)]);this[_0x581a39(0x149)][_0x581a39(0x14c)](_0x199f6e,_0x16b2fe),this[_0x581a39(0x15e)]();}['onRendered'](){const _0x46a338=_0x122c24;_0x33e491['touchDependencies'](this[_0x46a338(0x157)],[]);}[_0x122c24(0x17b)](){const _0x3483d0=_0x122c24,_0x8f5770=this[_0x3483d0(0x157)];[[_0x1990ac],[_0x5cf09e[_0x3483d0(0x196)]]][_0x3483d0(0x166)](_0x4dd8dd=>_0x8f5770[_0x3483d0(0x193)](_0x4dd8dd));}[_0x122c24(0x15e)](){const _0x3ef3b2=_0x122c24;[_0x4f13d3,_0x415590,_0x385e0e,_0x26b290][_0x3ef3b2(0x166)](_0x472b33=>this[_0x3ef3b2(0x185)](this['_commandService'][_0x3ef3b2(0x18e)](_0x472b33)));}},_0x25b0fa(_0x5cf09e[_0x122c24(0x190)],_0x122c24(0x160),_0x33e491['UniverInstanceType']['UNIVER_SHEET']),_0x25b0fa(_0x5cf09e[_0x122c24(0x190)],'pluginName',_0x37557a),_0x5cf09e[_0x122c24(0x190)]=_0xcfbc40([_0x33e491['DependentOn'](_0x125323['UniverLicensePlugin']),_0x5a2b96(0x1,_0x33e491[_0x122c24(0x182)](_0x33e491[_0x122c24(0x169)])),_0x5a2b96(0x2,_0x33e491[_0x122c24(0x163)]),_0x5a2b96(0x3,_0x33e491[_0x122c24(0x195)])],_0x5cf09e[_0x122c24(0x190)]),_0x5cf09e[_0x122c24(0x17f)]=_0x4f13d3,_0x5cf09e['RemoveSheetsShapeMutation']=_0x415590,_0x5cf09e[_0x122c24(0x141)]=_0x26b290,_0x5cf09e['UpdateSheetsShapeTypeCommand']=_0x3b671f,_0x5cf09e[_0x122c24(0x18c)]=_0x385e0e,Object[_0x122c24(0x154)](_0x5cf09e,Symbol[_0x122c24(0x15b)],{'value':_0x122c24(0x170)});}));function _0x2575(_0x2e72c2,_0x5b987d){_0x2e72c2=_0x2e72c2-0x13f;const _0x57cba9=_0x57cb();let _0x25756f=_0x57cba9[_0x2e72c2];return _0x25756f;}function _0x57cb(){const _0x278929=['addShape','sheet.command.update-shape-type','_config','delete','get','105132QKYxXs','length','_resourcesManagerService','onStarting','_shapeModelManagerMap','getOwnPropertyDescriptor','isLineShape','InsertSheetsShapeMutation','COMMAND','has','Inject','set','fromJSON','disposeWithMe','IResourceManagerService','_groupIds','sheet.mutation.update-shape-type','from','registerPluginResource','2493smruGp','UpdateSheetsShapeTypeMutation','UniverProEngineShape','registerCommand','1064238bemWAM','UniverSheetsShapePlugin','getBasicShapeRelation','syncExecuteCommand','add','sheet.mutation.insert-shape','IConfigService','SheetsShapeService','IUndoRedoService','pushUndoRedo','_deserializeShapeForUnit','_disposed','dispose','params','CommandType','1438SACxBg','insertShape','242000DdwuNd','getShapeData','shapeId','amd','_ensureShapeModelManager','@univerjs-pro/license','every','UniverInstanceType','exports','UpdateSheetsShapeDataMutation','toJSON','isConnectorShape','keys','_shapes','parse','getShapeTypeById','ShapeModel','_configService','280OAkVJH','symbol','setConfig','_initSnapshot','hasShape','getShapeDataById','1140280CLJMUD','_serializeShapeForUnit','357slgxXn','UniverProSheetsShape','defineProperty','MUTATION','255105aSAJOK','_injector','_linesIds','Disposable','setShapeType','toStringTag','SHEET_SHAPE_PLUGIN','15ftRCIA','_initCommands','sheet.mutation.remove-shape','type','removeShape','push','ICommandService','merge','clear','forEach','UniverCore','getShapeType','Injector','shapeData','object','getShapeModel','getLineShapeRelation','759240VHNoTC','getShapeRelation','Module','sheet.mutation.update-shape-data','@univerjs-pro/engine-shape'];_0x57cb=function(){return _0x278929;};return _0x57cb();}
1
+ function _0x4f28(_0xf4bc01,_0x2be10d){_0xf4bc01=_0xf4bc01-0xc0;const _0x2f8252=_0x2f82();let _0x4f28e9=_0x2f8252[_0xf4bc01];return _0x4f28e9;}function _0x2f82(){const _0x152705=['UpdateSheetsShapeDataMutation','toStringTag','_disposed','_commandService','RemoveSheetsShapeMutation','UniverInstanceType','type','Plugin','UniverLicensePlugin','onStarting','IUndoRedoService','enumerable','decorate','default','registerCommand','376849vdddkj','Disposable','IConfigService','subUnitId','string','get','_deserializeShapeForUnit','IResourceManagerService','parse','@univerjs/core','getShapeModel','SHEET_SHAPE_PLUGIN','push','3660646yRjcnF','shapeId','_groupIds','configurable','Inject','insertShape','UNIVER_SHEET','getLineShapeRelation','disposeWithMe','getShapeTypeById','_configService','_linesIds','fromJSON','params','registerPluginResource','0.17.0-insiders.20260318-d69dc16','_initSnapshot','_shapeModelManagerMap','1674379zjKvMh','toJSON','defineProperty','unitId','ShapeModel','@univerjs-pro/license','every','6qiogVH','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_injector','getShapeRelation','delete','DependentOn','sheets-shape.config','CommandType','touchDependencies','6465519utOjiA','MUTATION','InsertSheetsShapeMutation','sheet.mutation.insert-shape','sheet.mutation.remove-shape','UniverSheetsShapePlugin','length','call','setShapeType','getShapeDataById','10ytEXLO','UniverCore','Injector','sheet.mutation.update-shape-type','object','syncExecuteCommand','@univerjs-pro/engine-shape','add','from','removeShape','2520696Osxpsk','isLineShape','isConnectorShape','value','exports','ICommandService','COMMAND','version','toPrimitive','UniverProLicense','_initCommands','3aXLxCc','@univerjs-pro/sheets-shape','amd','keys','1676065EyqwHv','merge','getOwnPropertyDescriptor','_ensureShapeModelManager','symbol','prototype','pluginName','onRendered','set','_shapes','UniverProEngineShape','SheetsShapeService','setShapeData','constructor','packageName','dispose','shapeType','shapeData','2NVjpyR','has','addShape','_resourcesManagerService','533780ZXbyfv','assign','pushUndoRedo','stringify','function','UpdateSheetsShapeTypeMutation','_config','clear','UpdateSheetsShapeTypeCommand','sheet.mutation.update-shape-data','forEach','getBasicShapeRelation','_serializeShapeForUnit','getBasicShapeType','UniverProSheetsShape','hasShape','setConfig','sheet.command.update-shape-type','Module','getShapeData','getShapeType','writable','iterator'];_0x2f82=function(){return _0x152705;};return _0x2f82();}(function(_0x2da5c1,_0x167e47){const _0x106b09=_0x4f28,_0x3c5b5d=_0x2da5c1();while(!![]){try{const _0x4c2e16=parseInt(_0x106b09(0xf9))/0x1*(-parseInt(_0x106b09(0xcf))/0x2)+parseInt(_0x106b09(0x147))/0x3*(parseInt(_0x106b09(0xd3))/0x4)+parseInt(_0x106b09(0x14b))/0x5+parseInt(_0x106b09(0x11f))/0x6*(parseInt(_0x106b09(0x118))/0x7)+-parseInt(_0x106b09(0x13c))/0x8+parseInt(_0x106b09(0x128))/0x9+-parseInt(_0x106b09(0x132))/0xa*(parseInt(_0x106b09(0x106))/0xb);if(_0x4c2e16===_0x167e47)break;else _0x3c5b5d['push'](_0x3c5b5d['shift']());}catch(_0x2c63dd){_0x3c5b5d['push'](_0x3c5b5d['shift']());}}}(_0x2f82,0x62074),function(_0x56854a,_0x22eeec){const _0x478693=_0x4f28;typeof exports==_0x478693(0x136)&&typeof module<'u'?_0x22eeec(exports,require(_0x478693(0x102)),require(_0x478693(0x138)),require(_0x478693(0x11d))):typeof define==_0x478693(0xd7)&&define[_0x478693(0x149)]?define([_0x478693(0x140),_0x478693(0x102),_0x478693(0x138),_0x478693(0x11d)],_0x22eeec):(_0x56854a=typeof globalThis<'u'?globalThis:_0x56854a||self,_0x22eeec(_0x56854a[_0x478693(0xe1)]={},_0x56854a[_0x478693(0x133)],_0x56854a[_0x478693(0xc7)],_0x56854a[_0x478693(0x145)]));}(this,function(_0x3f7837,_0x2b431d,_0x2afbbb,_0x30d309){const _0x3c5bf5=_0x4f28,_0x8acccf={};_0x8acccf[_0x3c5bf5(0x13f)]=_0x3c5bf5(0xe5),Object[_0x3c5bf5(0x11a)](_0x3f7837,Symbol[_0x3c5bf5(0xeb)],_0x8acccf);function _0x54fa06(_0x4c0617){'@babel/helpers - typeof';const _0x1361a8=_0x3c5bf5;return _0x54fa06=typeof Symbol==_0x1361a8(0xd7)&&typeof Symbol[_0x1361a8(0xe9)]==_0x1361a8(0xc1)?function(_0x4281fe){return typeof _0x4281fe;}:function(_0xa17e41){const _0x198750=_0x1361a8;return _0xa17e41&&typeof Symbol==_0x198750(0xd7)&&_0xa17e41[_0x198750(0xca)]===Symbol&&_0xa17e41!==Symbol[_0x198750(0xc2)]?_0x198750(0xc1):typeof _0xa17e41;},_0x54fa06(_0x4c0617);}function _0x6852fe(_0x190346,_0x3cd0ee){const _0x4c8e4d=_0x3c5bf5;if(_0x54fa06(_0x190346)!=_0x4c8e4d(0x136)||!_0x190346)return _0x190346;var _0x1b35f1=_0x190346[Symbol[_0x4c8e4d(0x144)]];if(_0x1b35f1!==void 0x0){var _0xf413de=_0x1b35f1[_0x4c8e4d(0x12f)](_0x190346,_0x3cd0ee||_0x4c8e4d(0xf7));if(_0x54fa06(_0xf413de)!=_0x4c8e4d(0x136))return _0xf413de;throw TypeError(_0x4c8e4d(0x120));}return(_0x3cd0ee===_0x4c8e4d(0xfd)?String:Number)(_0x190346);}function _0x3319f5(_0x2b9da9){const _0x17732a=_0x3c5bf5;var _0x27ecdc=_0x6852fe(_0x2b9da9,_0x17732a(0xfd));return _0x54fa06(_0x27ecdc)==_0x17732a(0xc1)?_0x27ecdc:_0x27ecdc+'';}function _0x2134d0(_0x344733,_0x13f637,_0x470e39){const _0x226f74=_0x3c5bf5,_0x3f3464={};return _0x3f3464[_0x226f74(0x13f)]=_0x470e39,_0x3f3464[_0x226f74(0xf5)]=!0x0,_0x3f3464[_0x226f74(0x109)]=!0x0,_0x3f3464[_0x226f74(0xe8)]=!0x0,((_0x13f637=_0x3319f5(_0x13f637))in _0x344733?Object[_0x226f74(0x11a)](_0x344733,_0x13f637,_0x3f3464):_0x344733[_0x13f637]=_0x470e39,_0x344733);}var _0x25a5d0=class extends _0x2b431d[_0x3c5bf5(0xfa)]{constructor(){const _0xade41=_0x3c5bf5;super(),_0x2134d0(this,_0xade41(0xc6),new Map()),_0x2134d0(this,_0xade41(0x111),new Set()),_0x2134d0(this,_0xade41(0x108),new Set());}[_0x3c5bf5(0xd1)](_0x587d74,_0x529130,_0x75cc18){const _0x12782d=_0x3c5bf5;let _0x24cca8=new _0x2afbbb[(_0x12782d(0x11c))](_0x587d74,_0x529130,_0x75cc18);return this[_0x12782d(0xc6)][_0x12782d(0xc5)](_0x529130,_0x24cca8),(0x0,_0x2afbbb[_0x12782d(0x13e)])(_0x587d74)&&this[_0x12782d(0x111)][_0x12782d(0x139)](_0x529130),_0x24cca8;}[_0x3c5bf5(0xde)](_0x320d65){const _0x2c1d82=_0x3c5bf5;let _0x202042=[];for(let _0xbad3cc of this[_0x2c1d82(0x111)]){let _0x3ee5a0=this[_0x2c1d82(0xc6)][_0x2c1d82(0xfe)](_0xbad3cc);if(_0x3ee5a0){let _0x17ccb0=_0x3ee5a0[_0x2c1d82(0x122)]();if(_0x17ccb0){var _0x45643d,_0x265b7b;((_0x45643d=_0x17ccb0[_0x2c1d82(0x13a)])==null?void 0x0:_0x45643d[_0x2c1d82(0x107)])===_0x320d65&&_0x202042[_0x2c1d82(0x105)]({..._0x17ccb0[_0x2c1d82(0x13a)],'lineShapeId':_0xbad3cc,'isFrom':!0x0}),((_0x265b7b=_0x17ccb0['to'])==null?void 0x0:_0x265b7b[_0x2c1d82(0x107)])===_0x320d65&&_0x202042[_0x2c1d82(0x105)]({..._0x17ccb0['to'],'lineShapeId':_0xbad3cc,'isFrom':!0x1});}}}return _0x202042;}[_0x3c5bf5(0x10d)](_0x2643e9){const _0x1d67f1=_0x3c5bf5;let _0xa0073e=this[_0x1d67f1(0xc6)][_0x1d67f1(0xfe)](_0x2643e9);if(_0xa0073e)return _0xa0073e[_0x1d67f1(0x122)]();}[_0x3c5bf5(0xe7)](_0x19bbca){const _0x1f2a6a=_0x3c5bf5;let _0x498f87=this[_0x1f2a6a(0xc6)][_0x1f2a6a(0xfe)](_0x19bbca);if(_0x498f87)return _0x498f87[_0x1f2a6a(0xe7)]();}[_0x3c5bf5(0xe2)](_0xa512ca){const _0x3c94ac=_0x3c5bf5;return this[_0x3c94ac(0xc6)][_0x3c94ac(0xd0)](_0xa512ca);}[_0x3c5bf5(0x13b)](_0x12cdaf){const _0x3a8dc6=_0x3c5bf5;let _0x4f2352=this[_0x3a8dc6(0xc6)][_0x3a8dc6(0xfe)](_0x12cdaf);_0x4f2352&&((0x0,_0x2afbbb[_0x3a8dc6(0x13e)])(_0x4f2352[_0x3a8dc6(0xe7)]())&&this[_0x3a8dc6(0x111)][_0x3a8dc6(0x123)](_0x12cdaf),this[_0x3a8dc6(0xc6)][_0x3a8dc6(0x123)](_0x12cdaf));}[_0x3c5bf5(0x119)](){const _0x289889=_0x3c5bf5;let _0x308fbd=[];return this[_0x289889(0xc6)][_0x289889(0xdd)](_0x282326=>{const _0x14bdf0=_0x289889;_0x308fbd[_0x14bdf0(0x105)](_0x282326[_0x14bdf0(0x119)]());}),_0x308fbd;}[_0x3c5bf5(0x112)](_0x46443c){const _0x462ff7=_0x3c5bf5;for(let _0x283e24 of _0x46443c){let {id:_0x52e014,shapeType:_0x1f8009}=_0x283e24,_0x5b2fdc=this[_0x462ff7(0xd1)](_0x1f8009,_0x52e014,_0x283e24[_0x462ff7(0xce)]);_0x5b2fdc&&_0x5b2fdc[_0x462ff7(0x13d)]()&&this[_0x462ff7(0x111)][_0x462ff7(0x139)](_0x52e014);}}[_0x3c5bf5(0xcc)](){const _0x15a90a=_0x3c5bf5;this[_0x15a90a(0xec)]||(this[_0x15a90a(0xc6)][_0x15a90a(0xdd)](_0x39d1be=>{const _0x4e8ba0=_0x15a90a;_0x39d1be[_0x4e8ba0(0xcc)]();}),this[_0x15a90a(0xc6)][_0x15a90a(0xda)](),this[_0x15a90a(0x111)][_0x15a90a(0xda)](),this[_0x15a90a(0x108)][_0x15a90a(0xda)](),super[_0x15a90a(0xcc)]());}};function _0xffccc6(_0x47b55a,_0x16fb5d){return function(_0x1cceee,_0x241f70){_0x16fb5d(_0x1cceee,_0x241f70,_0x47b55a);};}function _0x713616(_0x392c06,_0xa0404d,_0x414c37,_0x1b8afb){const _0x22bf13=_0x3c5bf5;var _0x403856=arguments[_0x22bf13(0x12e)],_0x4ca833=_0x403856<0x3?_0xa0404d:_0x1b8afb===null?_0x1b8afb=Object[_0x22bf13(0x14d)](_0xa0404d,_0x414c37):_0x1b8afb,_0x34bb15;if(typeof Reflect==_0x22bf13(0x136)&&typeof Reflect[_0x22bf13(0xf6)]==_0x22bf13(0xd7))_0x4ca833=Reflect[_0x22bf13(0xf6)](_0x392c06,_0xa0404d,_0x414c37,_0x1b8afb);else{for(var _0x3f5018=_0x392c06[_0x22bf13(0x12e)]-0x1;_0x3f5018>=0x0;_0x3f5018--)(_0x34bb15=_0x392c06[_0x3f5018])&&(_0x4ca833=(_0x403856<0x3?_0x34bb15(_0x4ca833):_0x403856>0x3?_0x34bb15(_0xa0404d,_0x414c37,_0x4ca833):_0x34bb15(_0xa0404d,_0x414c37))||_0x4ca833);}return _0x403856>0x3&&_0x4ca833&&Object[_0x22bf13(0x11a)](_0xa0404d,_0x414c37,_0x4ca833),_0x4ca833;}let _0x299b57=class extends _0x2b431d[_0x3c5bf5(0xfa)]{constructor(_0x269841){const _0x57d7d6=_0x3c5bf5;super(),this[_0x57d7d6(0xd2)]=_0x269841,_0x2134d0(this,_0x57d7d6(0x117),new Map()),this[_0x57d7d6(0x116)]();}[_0x3c5bf5(0xc0)](_0x27fe41,_0x53f410){const _0x515360=_0x3c5bf5;let _0x1cb480=this[_0x515360(0x117)][_0x515360(0xfe)](_0x27fe41);_0x1cb480||(_0x1cb480=new Map(),this[_0x515360(0x117)][_0x515360(0xc5)](_0x27fe41,_0x1cb480));let _0xda67ed=_0x1cb480[_0x515360(0xfe)](_0x53f410);return _0xda67ed||(_0xda67ed=new _0x25a5d0(),_0x1cb480[_0x515360(0xc5)](_0x53f410,_0xda67ed)),_0xda67ed;}[_0x3c5bf5(0x10b)](_0x4c357d,_0x1147ee,_0x8900eb,_0x2fc43f,_0x2c0088){const _0x311d22=_0x3c5bf5;this[_0x311d22(0xc0)](_0x4c357d,_0x1147ee)[_0x311d22(0xd1)](_0x8900eb,_0x2fc43f,_0x2c0088);}[_0x3c5bf5(0x13b)](_0x4a01f8,_0x50812a,_0x3f4a46){const _0x12b514=_0x3c5bf5;this[_0x12b514(0xc0)](_0x4a01f8,_0x50812a)[_0x12b514(0x13b)](_0x3f4a46);}[_0x3c5bf5(0xe0)](_0x1574e7,_0x2a36cd,_0x3a0fbc){const _0xef4a7f=_0x3c5bf5;return this[_0xef4a7f(0xc0)](_0x1574e7,_0x2a36cd)[_0xef4a7f(0xe7)](_0x3a0fbc);}[_0x3c5bf5(0xe7)](_0x280835,_0x126a0b,_0x9bdb5c){const _0x5a3b51=_0x3c5bf5;return this[_0x5a3b51(0xc0)](_0x280835,_0x126a0b)[_0x5a3b51(0xe7)](_0x9bdb5c);}[_0x3c5bf5(0xe2)](_0x518350,_0x4f5732,_0x1dad1b){const _0x9aba19=_0x3c5bf5;return this[_0x9aba19(0xc0)](_0x518350,_0x4f5732)[_0x9aba19(0xe2)](_0x1dad1b);}[_0x3c5bf5(0x10f)](_0x32cb9c,_0x5817c5,_0x151485){const _0x41f87f=_0x3c5bf5;return this[_0x41f87f(0xc0)](_0x32cb9c,_0x5817c5)[_0x41f87f(0xe7)](_0x151485);}[_0x3c5bf5(0x131)](_0x1e3f38,_0x45ed9e,_0x1c8f28){const _0x539688=_0x3c5bf5;let _0x381288=this[_0x539688(0xc0)](_0x1e3f38,_0x45ed9e);if(!_0x381288[_0x539688(0xe7)](_0x1c8f28))return;let _0x401cf0=_0x381288[_0x539688(0xc6)][_0x539688(0xfe)](_0x1c8f28);if(_0x401cf0)return _0x401cf0[_0x539688(0xe6)]();}[_0x3c5bf5(0x103)](_0x4aa5b3,_0x3938df,_0x1abf14){const _0x468bb0=_0x3c5bf5;return this[_0x468bb0(0xc0)](_0x4aa5b3,_0x3938df)[_0x468bb0(0xc6)][_0x468bb0(0xfe)](_0x1abf14);}[_0x3c5bf5(0xde)](_0x43ac3c,_0x4f93ea,_0x248d4f){const _0x1103de=_0x3c5bf5;return this[_0x1103de(0xc0)](_0x43ac3c,_0x4f93ea)[_0x1103de(0xde)](_0x248d4f);}[_0x3c5bf5(0x10d)](_0x47a92a,_0x5d6c26,_0x5b6647){const _0x59827f=_0x3c5bf5;let _0x1f87c2=this[_0x59827f(0xc0)](_0x47a92a,_0x5d6c26)[_0x59827f(0xc6)][_0x59827f(0xfe)](_0x5b6647);if(_0x1f87c2)return _0x1f87c2[_0x59827f(0x122)]();}[_0x3c5bf5(0x130)](){}[_0x3c5bf5(0xdf)](_0x5db37f){const _0x15f024=_0x3c5bf5;let _0x215bc8={},_0x816c53=this[_0x15f024(0x117)][_0x15f024(0xfe)](_0x5db37f);return _0x816c53&&_0x816c53[_0x15f024(0xdd)]((_0x412f99,_0x3cb63a)=>{const _0x1b421f=_0x15f024;let _0x10553a=_0x412f99[_0x1b421f(0x119)]();_0x10553a[_0x1b421f(0x12e)]>0x0&&(_0x215bc8[_0x3cb63a]=_0x10553a);}),JSON[_0x15f024(0xd6)](_0x215bc8);}[_0x3c5bf5(0xff)](_0x3aeecb,_0x147e25){const _0xe9d04=_0x3c5bf5;Object[_0xe9d04(0x14a)](_0x147e25)[_0xe9d04(0xdd)](_0xbd0a91=>{const _0x9478e2=_0xe9d04;this[_0x9478e2(0xc0)](_0x3aeecb,_0xbd0a91)[_0x9478e2(0x112)](_0x147e25[_0xbd0a91]);});}[_0x3c5bf5(0x119)](){const _0x2afb08=_0x3c5bf5;let _0x313bd6={};return this[_0x2afb08(0x117)][_0x2afb08(0xdd)]((_0x1eeefe,_0xac0e99)=>{const _0x58396f=_0x2afb08;_0x313bd6[_0xac0e99]={},_0x1eeefe[_0x58396f(0xdd)]((_0x467dcc,_0x2ea6fb)=>{const _0x1f584a=_0x58396f;_0x313bd6[_0xac0e99][_0x2ea6fb]=_0x467dcc[_0x1f584a(0x119)]();});}),_0x313bd6;}[_0x3c5bf5(0x112)](_0x256708){const _0x1535f4=_0x3c5bf5;Object[_0x1535f4(0x14a)](_0x256708)[_0x1535f4(0xdd)](_0x551e14=>{const _0x2f0283=_0x1535f4;let _0x157f04=_0x256708[_0x551e14];Object[_0x2f0283(0x14a)](_0x157f04)[_0x2f0283(0xdd)](_0x7da42b=>{const _0x22b0ae=_0x2f0283;this[_0x22b0ae(0xc0)](_0x551e14,_0x7da42b)[_0x22b0ae(0x112)](_0x157f04[_0x7da42b]);});});}[_0x3c5bf5(0x116)](){const _0x55b3bc=_0x3c5bf5;this[_0x55b3bc(0xd2)][_0x55b3bc(0x114)]({'pluginName':_0x55b3bc(0x104),'businesses':[_0x2b431d[_0x55b3bc(0xef)][_0x55b3bc(0x10c)]],'toJson':_0x46a0b3=>this[_0x55b3bc(0xdf)](_0x46a0b3),'parseJson':_0x540edb=>JSON[_0x55b3bc(0x101)](_0x540edb),'onLoad':(_0x5d85a3,_0x1a935e)=>{const _0x4d8041=_0x55b3bc;this[_0x4d8041(0xff)](_0x5d85a3,_0x1a935e);},'onUnLoad':_0x32dbbc=>{const _0x3bbcb8=_0x55b3bc;let _0x2450c5=this[_0x3bbcb8(0x117)][_0x3bbcb8(0xfe)](_0x32dbbc);_0x2450c5&&(_0x2450c5[_0x3bbcb8(0xdd)](_0xd5a22a=>{const _0x26f1a6=_0x3bbcb8;_0xd5a22a[_0x26f1a6(0xcc)]();}),this[_0x3bbcb8(0x117)][_0x3bbcb8(0x123)](_0x32dbbc));}});}[_0x3c5bf5(0xcc)](){const _0x565e71=_0x3c5bf5;this[_0x565e71(0x117)][_0x565e71(0xdd)](_0xe6df03=>{const _0x469881=_0x565e71;_0xe6df03[_0x469881(0xdd)](_0x83d239=>{const _0x525dd4=_0x469881;_0x83d239[_0x525dd4(0xcc)]();});});}};_0x299b57=_0x713616([_0xffccc6(0x0,_0x2b431d[_0x3c5bf5(0x100)])],_0x299b57);let _0x11e7a5={'id':_0x3c5bf5(0x135),'type':_0x2b431d[_0x3c5bf5(0x126)][_0x3c5bf5(0x129)],'handler':(_0x3d8a3d,_0x5240f4)=>{const _0x2faaae=_0x3c5bf5;let {unitId:_0xe9a742,subUnitId:_0x1e5fcd,shapeType:_0x3381a7,shapeId:_0x2901af,shapeData:_0x341bc1}=_0x5240f4,_0x571107=_0x3d8a3d[_0x2faaae(0xfe)](_0x299b57)[_0x2faaae(0x103)](_0xe9a742,_0x1e5fcd,_0x2901af);return _0x571107&&(_0x571107[_0x2faaae(0x130)](_0x3381a7),_0x341bc1&&(_0x571107==null||_0x571107[_0x2faaae(0xc9)](_0x341bc1))),!0x0;}},_0x71e62e={'id':_0x3c5bf5(0xe4),'type':_0x2b431d[_0x3c5bf5(0x126)][_0x3c5bf5(0x142)],'handler':(_0x384a7c,_0x4a1119)=>{const _0x54fee2=_0x3c5bf5;if(!_0x4a1119)return!0x1;let _0x105c0e=_0x384a7c[_0x54fee2(0xfe)](_0x2b431d[_0x54fee2(0x141)]),_0x324539=_0x384a7c[_0x54fee2(0xfe)](_0x299b57),_0x38f44b=_0x384a7c[_0x54fee2(0xfe)](_0x2b431d[_0x54fee2(0xf4)]),_0x14d928=[],_0x104f8b=[],{unitId:_0xf99600,subUnitId:_0x58f703,shapeId:_0x2c5f60,shapeType:_0x1c4d59,shapeData:_0x52530a}=_0x4a1119,_0x2e27d6=_0x324539[_0x54fee2(0x103)](_0xf99600,_0x58f703,_0x2c5f60);if(_0x2e27d6){const _0x5453c4={};_0x5453c4[_0x54fee2(0x11b)]=_0xf99600,_0x5453c4[_0x54fee2(0xfc)]=_0x58f703,_0x5453c4[_0x54fee2(0x107)]=_0x2c5f60,_0x5453c4[_0x54fee2(0xcd)]=_0x1c4d59,_0x5453c4[_0x54fee2(0xce)]=_0x52530a;let _0x34e1da=_0x2e27d6[_0x54fee2(0xe7)](),_0x14c793=Object[_0x54fee2(0xd4)]({},_0x2e27d6[_0x54fee2(0xe6)]()),_0x1db2c9=_0x5453c4,_0x4299f4={'unitId':_0xf99600,'subUnitId':_0x58f703,'shapeId':_0x2c5f60,'shapeType':_0x34e1da,'shapeData':_0x14c793};const _0x2a41ea={};_0x2a41ea['id']=_0x11e7a5['id'],_0x2a41ea[_0x54fee2(0x113)]=_0x1db2c9;const _0xb944da={};return _0xb944da['id']=_0x11e7a5['id'],_0xb944da[_0x54fee2(0x113)]=_0x4299f4,(_0x14d928[_0x54fee2(0x105)](_0x2a41ea),_0x104f8b[_0x54fee2(0x105)](_0xb944da),_0x14d928[_0x54fee2(0x11e)](_0x3d719e=>_0x105c0e[_0x54fee2(0x137)](_0x3d719e['id'],_0x3d719e[_0x54fee2(0x113)]))&&_0x38f44b[_0x54fee2(0xd5)]({'unitID':_0xf99600,'redoMutations':[..._0x14d928],'undoMutations':[..._0x104f8b]}),!0x0);}return!0x1;}},_0x105968={'id':_0x3c5bf5(0x12b),'type':_0x2b431d[_0x3c5bf5(0x126)][_0x3c5bf5(0x129)],'handler':(_0x3da964,_0x5f424b)=>{const _0x359350=_0x3c5bf5;let {unitId:_0x14eb74,subUnitId:_0x2d22b3,shapeType:_0xe65680,shapeId:_0x183ca2,shapeData:_0x4a96d9}=_0x5f424b;return _0x3da964[_0x359350(0xfe)](_0x299b57)[_0x359350(0x10b)](_0x14eb74,_0x2d22b3,_0xe65680,_0x183ca2,_0x4a96d9),!0x0;}},_0x225f53={'id':_0x3c5bf5(0x12c),'type':_0x2b431d[_0x3c5bf5(0x126)][_0x3c5bf5(0x129)],'handler':(_0x2919ab,_0x127858)=>{const _0x57ab41=_0x3c5bf5;let {unitId:_0x3edc9c,subUnitId:_0x17df65,shapeId:_0x22acac}=_0x127858;return _0x2919ab[_0x57ab41(0xfe)](_0x299b57)[_0x57ab41(0x13b)](_0x3edc9c,_0x17df65,_0x22acac),!0x0;}},_0x270bec={'id':_0x3c5bf5(0xdc),'type':_0x2b431d[_0x3c5bf5(0x126)][_0x3c5bf5(0x129)],'handler':(_0xb3e736,_0x577445)=>{const _0x4ba40a=_0x3c5bf5;let {unitId:_0x36f080,subUnitId:_0x2ed092,shapeType:_0x563cd5,shapeId:_0x34446d,shapeData:_0x42280c}=_0x577445,_0x48d0ef=_0xb3e736[_0x4ba40a(0xfe)](_0x299b57)[_0x4ba40a(0x103)](_0x36f080,_0x2ed092,_0x34446d);return _0x48d0ef&&(_0x563cd5!==void 0x0&&_0x48d0ef[_0x4ba40a(0x130)](_0x563cd5),_0x42280c&&(_0x48d0ef==null||_0x48d0ef[_0x4ba40a(0xc9)](_0x42280c,!0x0))),!0x0;}};var _0xbb6bd2=_0x3c5bf5(0x148),_0x417a4e=_0x3c5bf5(0x115);let _0x3d0f26=_0x3c5bf5(0x125);Symbol(_0x3d0f26);let _0x27de96={},_0x5b94e0=class extends _0x2b431d[_0x3c5bf5(0xf1)]{constructor(_0x443739=_0x27de96,_0x3a4c3b,_0xc03858,_0x40aa5e){const _0x509d7a=_0x3c5bf5;super(),this[_0x509d7a(0xd9)]=_0x443739,this[_0x509d7a(0x121)]=_0x3a4c3b,this[_0x509d7a(0xed)]=_0xc03858,this[_0x509d7a(0x110)]=_0x40aa5e;let {..._0x4bf87c}=(0x0,_0x2b431d[_0x509d7a(0x14c)])({},_0x27de96,this[_0x509d7a(0xd9)]);this[_0x509d7a(0x110)][_0x509d7a(0xe3)](_0x3d0f26,_0x4bf87c),this[_0x509d7a(0x146)]();}[_0x3c5bf5(0xc4)](){const _0x4e3f5b=_0x3c5bf5;(0x0,_0x2b431d[_0x4e3f5b(0x127)])(this[_0x4e3f5b(0x121)],[]);}[_0x3c5bf5(0xf3)](){const _0x500d39=_0x3c5bf5;let _0x2e801a=this[_0x500d39(0x121)];[[_0x25a5d0],[_0x299b57]][_0x500d39(0xdd)](_0x1c824a=>_0x2e801a[_0x500d39(0x139)](_0x1c824a));}[_0x3c5bf5(0x146)](){const _0x483a68=_0x3c5bf5;[_0x105968,_0x225f53,_0x11e7a5,_0x270bec][_0x483a68(0xdd)](_0x5ef0f9=>this[_0x483a68(0x10e)](this[_0x483a68(0xed)][_0x483a68(0xf8)](_0x5ef0f9)));}};const _0x383b76={};_0x383b76[_0x3c5bf5(0xf5)]=!0x0,_0x383b76[_0x3c5bf5(0xfe)]=function(){return _0x299b57;},(_0x2134d0(_0x5b94e0,_0x3c5bf5(0xf0),_0x2b431d[_0x3c5bf5(0xef)][_0x3c5bf5(0x10c)]),_0x2134d0(_0x5b94e0,_0x3c5bf5(0xc3),_0x3c5bf5(0x104)),_0x2134d0(_0x5b94e0,_0x3c5bf5(0xcb),_0xbb6bd2),_0x2134d0(_0x5b94e0,_0x3c5bf5(0x143),_0x417a4e),_0x5b94e0=_0x713616([(0x0,_0x2b431d[_0x3c5bf5(0x124)])(_0x30d309[_0x3c5bf5(0xf2)]),_0xffccc6(0x1,(0x0,_0x2b431d[_0x3c5bf5(0x10a)])(_0x2b431d[_0x3c5bf5(0x134)])),_0xffccc6(0x2,_0x2b431d[_0x3c5bf5(0x141)]),_0xffccc6(0x3,_0x2b431d[_0x3c5bf5(0xfb)])],_0x5b94e0),_0x3f7837[_0x3c5bf5(0x12a)]=_0x105968,_0x3f7837[_0x3c5bf5(0xee)]=_0x225f53,Object[_0x3c5bf5(0x11a)](_0x3f7837,_0x3c5bf5(0xc8),_0x383b76),Object[_0x3c5bf5(0x11a)](_0x3f7837,_0x3c5bf5(0x12d),{'enumerable':!0x0,'get':function(){return _0x5b94e0;}}),_0x3f7837[_0x3c5bf5(0xea)]=_0x270bec,_0x3f7837[_0x3c5bf5(0xdb)]=_0x71e62e,_0x3f7837[_0x3c5bf5(0xd8)]=_0x11e7a5);}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-shape",
3
- "version": "0.16.1",
3
+ "version": "0.17.0-insiders.20260318-d69dc16",
4
4
  "private": false,
5
5
  "description": "shape for Univer.",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -38,7 +38,6 @@
38
38
  "./lib/*": "./lib/*"
39
39
  },
40
40
  "main": "./lib/es/index.js",
41
- "module": "./lib/es/index.js",
42
41
  "types": "./lib/types/index.d.ts",
43
42
  "publishConfig": {
44
43
  "access": "public"
@@ -53,27 +52,25 @@
53
52
  "node": ">=16.0.0",
54
53
  "npm": ">=8.0.0"
55
54
  },
56
- "peerDependencies": {
57
- "rxjs": ">=7.0.0"
58
- },
59
55
  "dependencies": {
60
- "@univerjs-pro/engine-shape": "0.16.1",
61
- "@univerjs-pro/license": "0.16.1",
62
- "@univerjs/core": "0.16.1"
56
+ "@univerjs-pro/engine-shape": "0.17.0-insiders.20260318-d69dc16",
57
+ "@univerjs-pro/license": "0.17.0-insiders.20260318-d69dc16",
58
+ "@univerjs/core": "0.17.0-insiders.20260318-d69dc16"
63
59
  },
64
60
  "devDependencies": {
65
- "rxjs": "7.8.2",
66
61
  "typescript": "^5.9.3",
67
- "vite": "^7.3.1",
68
- "vitest": "^4.0.18",
69
- "@univerjs-infra/shared": "0.16.1",
70
- "@univerjs/sheets": "0.16.1"
62
+ "vitest": "^4.1.0",
63
+ "@univerjs-infra/shared": "0.17.0",
64
+ "@univerjs/sheets": "0.17.0-insiders.20260318-d69dc16"
71
65
  },
72
66
  "scripts": {
73
67
  "test": "vitest run",
74
68
  "test:watch": "vitest",
75
69
  "coverage": "vitest run --coverage",
76
70
  "typecheck": "tsc --noEmit",
77
- "build": "univer-cli build"
78
- }
71
+ "build:bundle": "univer-cli build",
72
+ "build:types": "tsc -p tsconfig.node.json",
73
+ "build": "pnpm run build:bundle && pnpm run build:types"
74
+ },
75
+ "module": "./lib/es/index.js"
79
76
  }