@univerjs-pro/sheets-shape 0.15.5 → 0.16.0-insiders.20260302-b09f1e4

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/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @univerjs-pro/sheets-shape
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@univerjs-pro/sheets-shape)](https://npmjs.org/packages/@univerjs-pro/sheets-shape)
4
+ [![license](https://img.shields.io/npm/l/@univerjs-pro/sheets-shape)](https://img.shields.io/npm/l/@univerjs-pro/sheets-shape)
5
+
6
+ ## Introduction
7
+
8
+ Sheets Shape provides the core shape/drawing model and services for Univer Sheets. It allows users to insert, update, and remove various shapes (rectangles, circles, connectors, etc.) on spreadsheet worksheets. This package handles shape data management, mutations, and the underlying shape model logic. It is typically used together with `@univerjs-pro/sheets-shape-ui`, which provides the UI interactions for shapes.
9
+
10
+ ## Usage
11
+
12
+ ### Installation
13
+
14
+ ```shell
15
+ # Using npm
16
+ npm install @univerjs-pro/sheets-shape-ui @univerjs-pro/sheets-shape
17
+
18
+ # Using pnpm
19
+ pnpm add @univerjs-pro/sheets-shape-ui @univerjs-pro/sheets-shape
20
+ ```
21
+
22
+ ### Import
23
+
24
+ ```ts
25
+ import { UniverSheetsShapePlugin } from '@univerjs-pro/sheets-shape';
26
+ import { UniverSheetsShapeUIPlugin } from '@univerjs-pro/sheets-shape-ui';
27
+
28
+ univer.registerPlugin(UniverSheetsShapePlugin);
29
+ univer.registerPlugin(UniverSheetsShapeUIPlugin);
30
+ ```
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5ac028=_0x5dec;(function(_0x148783,_0x3d02c8){const _0x61365e=_0x5dec,_0x340768=_0x148783();while(!![]){try{const _0x79d1f8=-parseInt(_0x61365e(0x8f))/0x1+-parseInt(_0x61365e(0x90))/0x2+parseInt(_0x61365e(0xb8))/0x3*(parseInt(_0x61365e(0x93))/0x4)+-parseInt(_0x61365e(0xbf))/0x5+parseInt(_0x61365e(0xc7))/0x6+parseInt(_0x61365e(0xa8))/0x7+parseInt(_0x61365e(0xb4))/0x8;if(_0x79d1f8===_0x3d02c8)break;else _0x340768['push'](_0x340768['shift']());}catch(_0x14200c){_0x340768['push'](_0x340768['shift']());}}}(_0x44af,0x8872e));var D=Object[_0x5ac028(0xcb)],C=(_0x129afa,_0x3c9e55,_0x43a49b)=>_0x3c9e55 in _0x129afa?D(_0x129afa,_0x3c9e55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43a49b}):_0x129afa[_0x3c9e55]=_0x43a49b,S=(_0x3a3ed5,_0x2ca470,_0x48ff6c)=>C(_0x3a3ed5,typeof _0x2ca470!=_0x5ac028(0xb6)?_0x2ca470+'':_0x2ca470,_0x48ff6c);Object[_0x5ac028(0xcb)](exports,Symbol[_0x5ac028(0xd3)],{'value':_0x5ac028(0xe0)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');function _0x5dec(_0x5ea418,_0x3b9629){_0x5ea418=_0x5ea418-0x8f;const _0x44af68=_0x44af();let _0x5dec21=_0x44af68[_0x5ea418];return _0x5dec21;}class f extends p[_0x5ac028(0xca)]{constructor(){const _0x40d50a=_0x5ac028;super(),S(this,_0x40d50a(0xe2),new Map()),S(this,_0x40d50a(0x9e),new Set()),S(this,_0x40d50a(0xd5),new Set());}[_0x5ac028(0x98)](_0x5e086d,_0x37ac39,_0x5d6a12){const _0x1eb9a1=_0x5ac028,_0x39d242=new l['ShapeModel'](_0x5e086d,_0x37ac39,_0x5d6a12);return this['_shapes'][_0x1eb9a1(0xe5)](_0x37ac39,_0x39d242),l['isConnectorShape'](_0x5e086d)&&this[_0x1eb9a1(0x9e)]['add'](_0x37ac39),_0x39d242;}[_0x5ac028(0xe8)](_0xa88c63){const _0x57d444=_0x5ac028;var _0x555522,_0x14f74a;const _0x149b8e=[];for(const _0x57f3d7 of this['_linesIds']){const _0x52faba=this[_0x57d444(0xe2)][_0x57d444(0xae)](_0x57f3d7);if(_0x52faba){const _0x308d89=_0x52faba['getShapeRelation']();_0x308d89&&(((_0x555522=_0x308d89[_0x57d444(0x9a)])==null?void 0x0:_0x555522[_0x57d444(0xb3)])===_0xa88c63&&_0x149b8e[_0x57d444(0xb0)]({..._0x308d89[_0x57d444(0x9a)],'lineShapeId':_0x57f3d7,'isFrom':!0x0}),((_0x14f74a=_0x308d89['to'])==null?void 0x0:_0x14f74a[_0x57d444(0xb3)])===_0xa88c63&&_0x149b8e[_0x57d444(0xb0)]({..._0x308d89['to'],'lineShapeId':_0x57f3d7,'isFrom':!0x1}));}}return _0x149b8e;}[_0x5ac028(0x97)](_0x5324b8){const _0x11a2f6=_0x5ac028,_0x17591a=this[_0x11a2f6(0xe2)][_0x11a2f6(0xae)](_0x5324b8);if(_0x17591a)return _0x17591a['getShapeRelation']();}[_0x5ac028(0x9f)](_0x412364){const _0x2a7f84=_0x5ac028,_0x4b6df7=this['_shapes'][_0x2a7f84(0xae)](_0x412364);if(_0x4b6df7)return _0x4b6df7[_0x2a7f84(0x9f)]();}['hasShape'](_0x1e377f){const _0x2e48c5=_0x5ac028;return this['_shapes'][_0x2e48c5(0xaf)](_0x1e377f);}[_0x5ac028(0xd4)](_0x58451e){const _0x3531cb=_0x5ac028,_0xe73a9e=this['_shapes']['get'](_0x58451e);_0xe73a9e&&(l[_0x3531cb(0xc0)](_0xe73a9e[_0x3531cb(0x9f)]())&&this[_0x3531cb(0x9e)][_0x3531cb(0x9d)](_0x58451e),this['_shapes']['delete'](_0x58451e));}[_0x5ac028(0xb5)](){const _0x182e01=_0x5ac028,_0x25fd2f=[];return this['_shapes'][_0x182e01(0xb2)](_0x242104=>{const _0x4c2d07=_0x182e01;_0x25fd2f['push'](_0x242104[_0x4c2d07(0xb5)]());}),_0x25fd2f;}[_0x5ac028(0xa6)](_0x1d4e86){const _0x4fec52=_0x5ac028;for(const _0x501b81 of _0x1d4e86){const {id:_0x808acc,shapeType:_0x48fb34}=_0x501b81,_0x1ea410=this[_0x4fec52(0x98)](_0x48fb34,_0x808acc,_0x501b81[_0x4fec52(0x95)]);_0x1ea410&&_0x1ea410['isLineShape']()&&this['_linesIds'][_0x4fec52(0xd2)](_0x808acc);}}['dispose'](){const _0x3da40e=_0x5ac028;this[_0x3da40e(0xe4)]||(this[_0x3da40e(0xe2)][_0x3da40e(0xb2)](_0x4e22cc=>{const _0x5ea275=_0x3da40e;_0x4e22cc[_0x5ea275(0xbe)]();}),this[_0x3da40e(0xe2)][_0x3da40e(0xab)](),this[_0x3da40e(0x9e)][_0x3da40e(0xab)](),this[_0x3da40e(0xd5)][_0x3da40e(0xab)](),super[_0x3da40e(0xbe)]());}}var R=Object['getOwnPropertyDescriptor'],J=(_0x3ef6ce,_0xa4d714,_0x4d5432,_0x1d59ca)=>{for(var _0xa866f3=_0x1d59ca>0x1?void 0x0:_0x1d59ca?R(_0xa4d714,_0x4d5432):_0xa4d714,_0x5a3789=_0x3ef6ce['length']-0x1,_0x1317f6;_0x5a3789>=0x0;_0x5a3789--)(_0x1317f6=_0x3ef6ce[_0x5a3789])&&(_0xa866f3=_0x1317f6(_0xa866f3)||_0xa866f3);return _0xa866f3;},j=(_0x29556d,_0x3048f2)=>(_0x233793,_0x57b6b1)=>_0x3048f2(_0x233793,_0x57b6b1,_0x29556d);const w=_0x5ac028(0xe9);exports[_0x5ac028(0x96)]=class extends p[_0x5ac028(0xca)]{constructor(_0x2579ae){const _0x100a7e=_0x5ac028;super(),S(this,_0x100a7e(0xc4),new Map()),(this[_0x100a7e(0xa9)]=_0x2579ae,this[_0x100a7e(0xc1)]());}['_ensureShapeModelManager'](_0x5bcb4b,_0x6cd117){const _0x2b2629=_0x5ac028;let _0x5f04db=this[_0x2b2629(0xc4)][_0x2b2629(0xae)](_0x5bcb4b);_0x5f04db||(_0x5f04db=new Map(),this[_0x2b2629(0xc4)]['set'](_0x5bcb4b,_0x5f04db));let _0x5eacc5=_0x5f04db['get'](_0x6cd117);return _0x5eacc5||(_0x5eacc5=new f(),_0x5f04db['set'](_0x6cd117,_0x5eacc5)),_0x5eacc5;}['insertShape'](_0x26d39c,_0x55f09b,_0x19b726,_0x195e93,_0x41d75a){const _0x59c9bb=_0x5ac028;this[_0x59c9bb(0xa3)](_0x26d39c,_0x55f09b)[_0x59c9bb(0x98)](_0x19b726,_0x195e93,_0x41d75a);}[_0x5ac028(0xd4)](_0x3f395d,_0x32af11,_0x37464f){const _0x79ad83=_0x5ac028;this[_0x79ad83(0xa3)](_0x3f395d,_0x32af11)['removeShape'](_0x37464f);}['getBasicShapeType'](_0x21a8d8,_0x59a809,_0x11fc52){const _0x141380=_0x5ac028;return this[_0x141380(0xa3)](_0x21a8d8,_0x59a809)['getShapeType'](_0x11fc52);}['getShapeType'](_0x34ff97,_0x4de1ab,_0x4a3f5e){const _0x47d0d8=_0x5ac028;return this[_0x47d0d8(0xa3)](_0x34ff97,_0x4de1ab)['getShapeType'](_0x4a3f5e);}[_0x5ac028(0xdd)](_0x59fd00,_0x2e7fd2,_0xbe1c82){const _0x452ad8=_0x5ac028;return this['_ensureShapeModelManager'](_0x59fd00,_0x2e7fd2)[_0x452ad8(0xdd)](_0xbe1c82);}['getShapeTypeById'](_0xb66460,_0x3fee97,_0x570bec){const _0x2f50a9=_0x5ac028;return this[_0x2f50a9(0xa3)](_0xb66460,_0x3fee97)['getShapeType'](_0x570bec);}[_0x5ac028(0xdc)](_0x1f65f9,_0x4fa392,_0x5cfdac){const _0x39053c=_0x5ac028,_0xca710f=this[_0x39053c(0xa3)](_0x1f65f9,_0x4fa392);if(!_0xca710f[_0x39053c(0x9f)](_0x5cfdac))return;const _0x3c7c5a=_0xca710f[_0x39053c(0xe2)][_0x39053c(0xae)](_0x5cfdac);if(_0x3c7c5a)return _0x3c7c5a[_0x39053c(0xe3)]();}[_0x5ac028(0xcc)](_0x1f84bc,_0x3679ff,_0x117655){const _0x4723dd=_0x5ac028;return this[_0x4723dd(0xa3)](_0x1f84bc,_0x3679ff)[_0x4723dd(0xe2)][_0x4723dd(0xae)](_0x117655);}[_0x5ac028(0xe8)](_0x2eaf32,_0x5b313f,_0x4088f9){const _0x3282f3=_0x5ac028;return this[_0x3282f3(0xa3)](_0x2eaf32,_0x5b313f)[_0x3282f3(0xe8)](_0x4088f9);}[_0x5ac028(0x97)](_0x1d9910,_0x379a64,_0x47bde0){const _0x4222be=_0x5ac028,_0x4cb61e=this[_0x4222be(0xa3)](_0x1d9910,_0x379a64)['_shapes'][_0x4222be(0xae)](_0x47bde0);if(_0x4cb61e)return _0x4cb61e[_0x4222be(0xeb)]();}[_0x5ac028(0xc8)](){}[_0x5ac028(0xde)](_0x4f754e){const _0x39ca05=_0x5ac028,_0x18dd45={},_0x4ffd4d=this[_0x39ca05(0xc4)]['get'](_0x4f754e);return _0x4ffd4d&&_0x4ffd4d[_0x39ca05(0xb2)]((_0x292e75,_0x3e3c54)=>{const _0x5f56b7=_0x39ca05;_0x18dd45[_0x3e3c54]=_0x292e75[_0x5f56b7(0xb5)]();}),JSON['stringify'](_0x18dd45);}[_0x5ac028(0xc6)](_0x53e2c9,_0x88f328){const _0x3da50b=_0x5ac028;Object['keys'](_0x88f328)[_0x3da50b(0xb2)](_0x421b78=>{const _0x115ee6=_0x3da50b;this[_0x115ee6(0xa3)](_0x53e2c9,_0x421b78)[_0x115ee6(0xa6)](_0x88f328[_0x421b78]);});}['toJSON'](){const _0x32104f=_0x5ac028,_0x25fd1a={};return this[_0x32104f(0xc4)][_0x32104f(0xb2)]((_0x24b0ae,_0x1753e0)=>{const _0x389194=_0x32104f;_0x25fd1a[_0x1753e0]={},_0x24b0ae[_0x389194(0xb2)]((_0x4e9b99,_0x6dd72a)=>{const _0x246d04=_0x389194;_0x25fd1a[_0x1753e0][_0x6dd72a]=_0x4e9b99[_0x246d04(0xb5)]();});}),_0x25fd1a;}[_0x5ac028(0xa6)](_0x52ec9e){const _0x3cae21=_0x5ac028;Object['keys'](_0x52ec9e)[_0x3cae21(0xb2)](_0x3ed5bb=>{const _0x133d57=_0x3cae21,_0x583461=_0x52ec9e[_0x3ed5bb];Object['keys'](_0x583461)[_0x133d57(0xb2)](_0x4081f3=>{const _0x81971a=_0x133d57;this[_0x81971a(0xa3)](_0x3ed5bb,_0x4081f3)[_0x81971a(0xa6)](_0x583461[_0x4081f3]);});});}['_initSnapshot'](){const _0x484d61=_0x5ac028;this['_resourcesManagerService'][_0x484d61(0xb7)]({'pluginName':w,'businesses':[p[_0x484d61(0xda)][_0x484d61(0xa4)]],'toJson':_0x4c8b68=>this[_0x484d61(0xde)](_0x4c8b68),'parseJson':_0x522c46=>JSON[_0x484d61(0xd1)](_0x522c46),'onLoad':(_0x1abc4f,_0x1dc39c)=>{this['_deserializeShapeForUnit'](_0x1abc4f,_0x1dc39c);},'onUnLoad':_0x2245bf=>{const _0xf00a0a=_0x484d61,_0x3fa437=this[_0xf00a0a(0xc4)][_0xf00a0a(0xae)](_0x2245bf);_0x3fa437&&(_0x3fa437[_0xf00a0a(0xb2)](_0x145eb4=>{_0x145eb4['dispose']();}),this['_shapeModelManagerMap'][_0xf00a0a(0x9d)](_0x2245bf));}});}[_0x5ac028(0xbe)](){const _0x2b148d=_0x5ac028;this[_0x2b148d(0xc4)][_0x2b148d(0xb2)](_0x331971=>{_0x331971['forEach'](_0x24db90=>{_0x24db90['dispose']();});});}},exports[_0x5ac028(0x96)]=J([j(0x0,p[_0x5ac028(0xe6)])],exports['SheetsShapeServices']);const d={'id':_0x5ac028(0xd0),'type':p[_0x5ac028(0xb1)][_0x5ac028(0xc2)],'handler':(_0x5ac145,_0x120f7f)=>{const _0x2e349e=_0x5ac028,{unitId:_0x24ce31,subUnitId:_0x53dbc8,shapeType:_0x297ed6,shapeId:_0x5462b7,shapeData:_0x185509}=_0x120f7f,_0x37cec5=_0x5ac145[_0x2e349e(0xae)](exports[_0x2e349e(0x96)])['getShapeModel'](_0x24ce31,_0x53dbc8,_0x5462b7);return _0x37cec5&&(_0x37cec5[_0x2e349e(0xc8)](_0x297ed6),_0x185509&&(_0x37cec5==null||_0x37cec5[_0x2e349e(0xa5)](_0x185509))),!0x0;}},H={'id':_0x5ac028(0xdf),'type':p[_0x5ac028(0xb1)][_0x5ac028(0xe7)],'handler':(_0x4e99c4,_0x5a93b3)=>{const _0x5ce4e8=_0x5ac028;if(!_0x5a93b3)return!0x1;const _0x54c0f1=_0x4e99c4[_0x5ce4e8(0xae)](p[_0x5ce4e8(0x94)]),_0x5a3a5c=_0x4e99c4[_0x5ce4e8(0xae)](exports['SheetsShapeServices']),_0x14c3d4=_0x4e99c4[_0x5ce4e8(0xae)](p['IUndoRedoService']),_0x543076=[],_0x2408f7=[],{unitId:_0x17c5ca,subUnitId:_0x144b52,shapeId:_0x115f28,shapeType:_0x11943f,shapeData:_0x2189e3}=_0x5a93b3,_0x3c2148=_0x5a3a5c['getShapeModel'](_0x17c5ca,_0x144b52,_0x115f28);if(_0x3c2148){const _0x2007b0=_0x3c2148[_0x5ce4e8(0x9f)](),_0x4af3a7=Object['assign']({},_0x3c2148[_0x5ce4e8(0xe3)]()),_0x1f4e52={'unitId':_0x17c5ca,'subUnitId':_0x144b52,'shapeId':_0x115f28,'shapeType':_0x11943f,'shapeData':_0x2189e3},_0x3688f8={'unitId':_0x17c5ca,'subUnitId':_0x144b52,'shapeId':_0x115f28,'shapeType':_0x2007b0,'shapeData':_0x4af3a7};return _0x543076[_0x5ce4e8(0xb0)]({'id':d['id'],'params':_0x1f4e52}),_0x2408f7[_0x5ce4e8(0xb0)]({'id':d['id'],'params':_0x3688f8}),_0x543076[_0x5ce4e8(0xbd)](_0x2acb96=>_0x54c0f1[_0x5ce4e8(0xc3)](_0x2acb96['id'],_0x2acb96[_0x5ce4e8(0xaa)]))&&_0x14c3d4[_0x5ce4e8(0xcf)]({'unitID':_0x17c5ca,'redoMutations':[..._0x543076],'undoMutations':[..._0x2408f7]}),!0x0;}return!0x1;}},m={'id':_0x5ac028(0xe1),'type':p[_0x5ac028(0xb1)]['MUTATION'],'handler':(_0x399059,_0x54c40f)=>{const _0x5e702c=_0x5ac028,{unitId:_0x556cb8,subUnitId:_0x46c33d,shapeType:_0x4113c1,shapeId:_0x36457d,shapeData:_0x26a23b}=_0x54c40f;return _0x399059['get'](exports[_0x5e702c(0x96)])[_0x5e702c(0x9c)](_0x556cb8,_0x46c33d,_0x4113c1,_0x36457d,_0x26a23b),!0x0;}},v={'id':_0x5ac028(0xdb),'type':p[_0x5ac028(0xb1)][_0x5ac028(0xc2)],'handler':(_0x2f8bab,_0x56a513)=>{const _0x1d4786=_0x5ac028,{unitId:_0x642aab,subUnitId:_0x1f8742,shapeId:_0x3c1c1e}=_0x56a513;return _0x2f8bab[_0x1d4786(0xae)](exports[_0x1d4786(0x96)])[_0x1d4786(0xd4)](_0x642aab,_0x1f8742,_0x3c1c1e),!0x0;}},y={'id':_0x5ac028(0xbb),'type':p['CommandType'][_0x5ac028(0xc2)],'handler':(_0x1fc1ff,_0x254fd0)=>{const _0x3f6928=_0x5ac028,{unitId:_0x1f7147,subUnitId:_0x2a82e4,shapeType:_0x3e92fe,shapeId:_0x277b72,shapeData:_0xe72d5f}=_0x254fd0,_0x524367=_0x1fc1ff[_0x3f6928(0xae)](exports['SheetsShapeServices'])[_0x3f6928(0xcc)](_0x1f7147,_0x2a82e4,_0x277b72);return _0x524367&&(_0x3e92fe!==void 0x0&&_0x524367[_0x3f6928(0xc8)](_0x3e92fe),_0xe72d5f&&(_0x524367==null||_0x524367[_0x3f6928(0xa5)](_0xe72d5f,!0x0))),!0x0;}},A=_0x5ac028(0x92),_={};var L=Object[_0x5ac028(0xcb)],F=Object['getOwnPropertyDescriptor'],B=(_0xc877cd,_0x473b12,_0x16203c)=>_0x473b12 in _0xc877cd?L(_0xc877cd,_0x473b12,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16203c}):_0xc877cd[_0x473b12]=_0x16203c,G=(_0x32d818,_0x477dfb,_0x252a84,_0x3c66f3)=>{for(var _0xe3c76c=_0x3c66f3>0x1?void 0x0:_0x3c66f3?F(_0x477dfb,_0x252a84):_0x477dfb,_0x39ae76=_0x32d818['length']-0x1,_0x1d2098;_0x39ae76>=0x0;_0x39ae76--)(_0x1d2098=_0x32d818[_0x39ae76])&&(_0xe3c76c=_0x1d2098(_0xe3c76c)||_0xe3c76c);return _0xe3c76c;},g=(_0x308ac4,_0x1ddc50)=>(_0x416a4b,_0x3d5048)=>_0x1ddc50(_0x416a4b,_0x3d5048,_0x308ac4),T=(_0x5d20a2,_0x5524b0,_0x56a4ae)=>B(_0x5d20a2,typeof _0x5524b0!='symbol'?_0x5524b0+'':_0x5524b0,_0x56a4ae);const x=_0x5ac028(0xe9);exports[_0x5ac028(0xd8)]=class extends p[_0x5ac028(0xa1)]{constructor(_0x465d47=_,_0x36315c,_0x170eac,_0x5260c2){const _0x318352=_0x5ac028;super(),this[_0x318352(0xc5)]=_0x465d47,this[_0x318352(0xd6)]=_0x36315c,this['_commandService']=_0x170eac,this[_0x318352(0xac)]=_0x5260c2;const {..._0x27efd9}=p['merge']({},_,this['_config']);this[_0x318352(0xac)]['setConfig'](A,_0x27efd9),this[_0x318352(0xd9)]();}[_0x5ac028(0x91)](){const _0x2d25e0=_0x5ac028;p[_0x2d25e0(0xa0)](this[_0x2d25e0(0xd6)],[]);}[_0x5ac028(0xa2)](){const _0x5c11aa=_0x5ac028,_0x157006=this[_0x5c11aa(0xd6)];[[f],[exports['SheetsShapeServices']]][_0x5c11aa(0xb2)](_0x560de8=>_0x157006[_0x5c11aa(0xd2)](_0x560de8));}[_0x5ac028(0xd9)](){const _0x1fc66b=_0x5ac028;[m,v,d,y]['forEach'](_0x94b501=>this[_0x1fc66b(0xa7)](this[_0x1fc66b(0xad)][_0x1fc66b(0xec)](_0x94b501)));}},T(exports[_0x5ac028(0xd8)],_0x5ac028(0xcd),p[_0x5ac028(0xda)]['UNIVER_SHEET']),T(exports[_0x5ac028(0xd8)],_0x5ac028(0xce),x),exports[_0x5ac028(0xd8)]=G([p['DependentOn'](b[_0x5ac028(0xc9)]),g(0x1,p[_0x5ac028(0xbc)](p['Injector'])),g(0x2,p[_0x5ac028(0x94)]),g(0x3,p[_0x5ac028(0xea)])],exports[_0x5ac028(0xd8)]),exports[_0x5ac028(0x9b)]=m,exports[_0x5ac028(0xd7)]=v,exports[_0x5ac028(0xb9)]=y,exports[_0x5ac028(0xba)]=H,exports[_0x5ac028(0x99)]=d;function _0x44af(){const _0x1d5219=['get','has','push','CommandType','forEach','shapeId','5406416ddscQE','toJSON','symbol','registerPluginResource','6LhBAgk','UpdateSheetsShapeDataMutation','UpdateSheetsShapeTypeCommand','sheet.mutation.update-shape-data','Inject','every','dispose','4066340AeJpqN','isConnectorShape','_initSnapshot','MUTATION','syncExecuteCommand','_shapeModelManagerMap','_config','_deserializeShapeForUnit','1229364bHIRvW','setShapeType','UniverLicensePlugin','Disposable','defineProperty','getShapeModel','type','pluginName','pushUndoRedo','sheet.mutation.update-shape-type','parse','add','toStringTag','removeShape','_groupIds','_injector','RemoveSheetsShapeMutation','UniverSheetsShapePlugin','_initCommands','UniverInstanceType','sheet.mutation.remove-shape','getShapeDataById','hasShape','_serializeShapeForUnit','sheet.command.update-shape-type','Module','sheet.mutation.insert-shape','_shapes','getShapeData','_disposed','set','IResourceManagerService','COMMAND','getBasicShapeRelation','SHEET_SHAPE_PLUGIN','IConfigService','getShapeRelation','registerCommand','198198WEWTsq','454088erxJkT','onRendered','sheets-shape.config','744528KKPWUl','ICommandService','shapeData','SheetsShapeServices','getLineShapeRelation','addShape','UpdateSheetsShapeTypeMutation','from','InsertSheetsShapeMutation','insertShape','delete','_linesIds','getShapeType','touchDependencies','Plugin','onStarting','_ensureShapeModelManager','UNIVER_SHEET','setShapeData','fromJSON','disposeWithMe','3811108iuEYfP','_resourcesManagerService','params','clear','_configService','_commandService'];_0x44af=function(){return _0x1d5219;};return _0x44af();}
1
+ 'use strict';const _0x27fc70=_0x580b;(function(_0xefb859,_0x44739e){const _0x2a4182=_0x580b,_0xcbcb1=_0xefb859();while(!![]){try{const _0x1e3d8d=-parseInt(_0x2a4182(0x178))/0x1+-parseInt(_0x2a4182(0x17a))/0x2+-parseInt(_0x2a4182(0x1ad))/0x3*(-parseInt(_0x2a4182(0x185))/0x4)+-parseInt(_0x2a4182(0x193))/0x5+parseInt(_0x2a4182(0x1c7))/0x6*(-parseInt(_0x2a4182(0x1bf))/0x7)+-parseInt(_0x2a4182(0x19b))/0x8*(-parseInt(_0x2a4182(0x1c8))/0x9)+parseInt(_0x2a4182(0x1aa))/0xa*(parseInt(_0x2a4182(0x194))/0xb);if(_0x1e3d8d===_0x44739e)break;else _0xcbcb1['push'](_0xcbcb1['shift']());}catch(_0x3cb39b){_0xcbcb1['push'](_0xcbcb1['shift']());}}}(_0x3abd,0xd7450));function _0x3abd(){const _0xf04ef3=['sheet.command.update-shape-type','SHEET_SHAPE_PLUGIN','getOwnPropertyDescriptor','toJSON','setShapeData','add','get','_commandService','_shapes','ICommandService','Injector','21dbLvpW','removeShape','every','DependentOn','type','_serializeShapeForUnit','_deserializeShapeForUnit','getBasicShapeType','828330ATBlqM','5804964VStQLj','getShapeData','pushUndoRedo','keys','symbol','Inject','IUndoRedoService','setShapeType','getBasicShapeRelation','_resourcesManagerService','UNIVER_SHEET','_linesIds','shapeId','hasShape','has','_injector','merge','1665966yoKjWc','shapeData','1321646vLgunr','_initSnapshot','push','set','_ensureShapeModelManager','insertShape','fromJSON','toStringTag','defineProperty','InsertSheetsShapeMutation','UpdateSheetsShapeDataMutation','4EjOLIN','registerCommand','getShapeType','dispose','syncExecuteCommand','sheet.mutation.update-shape-type','_initCommands','IResourceManagerService','assign','ShapeModel','getLineShapeRelation','UniverSheetsShapePlugin','addShape','forEach','2761610bbHYyl','163977HclhhW','MUTATION','SheetsShapeService','UpdateSheetsShapeTypeMutation','COMMAND','_config','Disposable','16cmREdT','registerPluginResource','CommandType','getShapeRelation','getShapeModel','pluginName','disposeWithMe','_configService','_shapeModelManagerMap','UniverInstanceType','IConfigService','isConnectorShape','_groupIds','stringify','length','1370MwImuv','delete','onRendered','2528307WMFIed','Plugin','RemoveSheetsShapeMutation','onStarting','from','UniverLicensePlugin','clear'];_0x3abd=function(){return _0xf04ef3;};return _0x3abd();}function _0x580b(_0x4600fd,_0x70fb34){_0x4600fd=_0x4600fd-0x178;const _0x3abd21=_0x3abd();let _0x580b72=_0x3abd21[_0x4600fd];return _0x580b72;}var D=Object[_0x27fc70(0x182)],C=(_0x4e4ae6,_0x46bbb0,_0x285cfa)=>_0x46bbb0 in _0x4e4ae6?D(_0x4e4ae6,_0x46bbb0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x285cfa}):_0x4e4ae6[_0x46bbb0]=_0x285cfa,S=(_0x198cd0,_0x3c0294,_0x24f747)=>C(_0x198cd0,typeof _0x3c0294!='symbol'?_0x3c0294+'':_0x3c0294,_0x24f747);Object[_0x27fc70(0x182)](exports,Symbol[_0x27fc70(0x181)],{'value':'Module'});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');class f extends p[_0x27fc70(0x19a)]{constructor(){const _0x5419b1=_0x27fc70;super(),S(this,'_shapes',new Map()),S(this,_0x5419b1(0x1d3),new Set()),S(this,_0x5419b1(0x1a7),new Set());}['addShape'](_0x1b0590,_0x1b5855,_0x989136){const _0x383bbc=_0x27fc70,_0x9fb8c5=new l[(_0x383bbc(0x18e))](_0x1b0590,_0x1b5855,_0x989136);return this[_0x383bbc(0x1bc)][_0x383bbc(0x17d)](_0x1b5855,_0x9fb8c5),l[_0x383bbc(0x1a6)](_0x1b0590)&&this[_0x383bbc(0x1d3)][_0x383bbc(0x1b9)](_0x1b5855),_0x9fb8c5;}['getBasicShapeRelation'](_0x545bde){const _0x3dc5c3=_0x27fc70;var _0x34b1b0,_0x534781;const _0x2bb16f=[];for(const _0x2a83dc of this[_0x3dc5c3(0x1d3)]){const _0x3a775d=this[_0x3dc5c3(0x1bc)][_0x3dc5c3(0x1ba)](_0x2a83dc);if(_0x3a775d){const _0xb9983c=_0x3a775d[_0x3dc5c3(0x19e)]();_0xb9983c&&(((_0x34b1b0=_0xb9983c[_0x3dc5c3(0x1b1)])==null?void 0x0:_0x34b1b0[_0x3dc5c3(0x1d4)])===_0x545bde&&_0x2bb16f[_0x3dc5c3(0x17c)]({..._0xb9983c['from'],'lineShapeId':_0x2a83dc,'isFrom':!0x0}),((_0x534781=_0xb9983c['to'])==null?void 0x0:_0x534781[_0x3dc5c3(0x1d4)])===_0x545bde&&_0x2bb16f['push']({..._0xb9983c['to'],'lineShapeId':_0x2a83dc,'isFrom':!0x1}));}}return _0x2bb16f;}[_0x27fc70(0x18f)](_0x187a3b){const _0x571881=_0x27fc70,_0x2dd265=this[_0x571881(0x1bc)][_0x571881(0x1ba)](_0x187a3b);if(_0x2dd265)return _0x2dd265[_0x571881(0x19e)]();}[_0x27fc70(0x187)](_0x878a7c){const _0x1f6f1f=_0x27fc70,_0x3dcbaa=this[_0x1f6f1f(0x1bc)][_0x1f6f1f(0x1ba)](_0x878a7c);if(_0x3dcbaa)return _0x3dcbaa[_0x1f6f1f(0x187)]();}[_0x27fc70(0x1d5)](_0x46d0e8){const _0x434950=_0x27fc70;return this[_0x434950(0x1bc)][_0x434950(0x1d6)](_0x46d0e8);}[_0x27fc70(0x1c0)](_0x573c77){const _0x18442c=_0x27fc70,_0x1c982b=this[_0x18442c(0x1bc)][_0x18442c(0x1ba)](_0x573c77);_0x1c982b&&(l['isConnectorShape'](_0x1c982b[_0x18442c(0x187)]())&&this[_0x18442c(0x1d3)][_0x18442c(0x1ab)](_0x573c77),this[_0x18442c(0x1bc)][_0x18442c(0x1ab)](_0x573c77));}[_0x27fc70(0x1b7)](){const _0x51c9a6=[];return this['_shapes']['forEach'](_0x50f4d4=>{const _0x5e3fc8=_0x580b;_0x51c9a6[_0x5e3fc8(0x17c)](_0x50f4d4[_0x5e3fc8(0x1b7)]());}),_0x51c9a6;}[_0x27fc70(0x180)](_0x461d27){const _0x289067=_0x27fc70;for(const _0x53bd05 of _0x461d27){const {id:_0x5a67cc,shapeType:_0x3d8c3e}=_0x53bd05,_0x5af1c0=this[_0x289067(0x191)](_0x3d8c3e,_0x5a67cc,_0x53bd05[_0x289067(0x179)]);_0x5af1c0&&_0x5af1c0['isLineShape']()&&this[_0x289067(0x1d3)]['add'](_0x5a67cc);}}[_0x27fc70(0x188)](){const _0x194458=_0x27fc70;this['_disposed']||(this['_shapes'][_0x194458(0x192)](_0x3a2aed=>{const _0x32e463=_0x194458;_0x3a2aed[_0x32e463(0x188)]();}),this[_0x194458(0x1bc)][_0x194458(0x1b3)](),this['_linesIds']['clear'](),this['_groupIds'][_0x194458(0x1b3)](),super['dispose']());}}var R=Object[_0x27fc70(0x1b6)],j=(_0x1adb26,_0x279629,_0x178dd1,_0x5c3c88)=>{for(var _0x5a565f=_0x5c3c88>0x1?void 0x0:_0x5c3c88?R(_0x279629,_0x178dd1):_0x279629,_0x21b2b3=_0x1adb26['length']-0x1,_0xbf59b2;_0x21b2b3>=0x0;_0x21b2b3--)(_0xbf59b2=_0x1adb26[_0x21b2b3])&&(_0x5a565f=_0xbf59b2(_0x5a565f)||_0x5a565f);return _0x5a565f;},J=(_0x5f254b,_0x1c3325)=>(_0x5f292d,_0x4570eb)=>_0x1c3325(_0x5f292d,_0x4570eb,_0x5f254b);const w=_0x27fc70(0x1b5);exports[_0x27fc70(0x196)]=class extends p[_0x27fc70(0x19a)]{constructor(_0x3874ea){const _0x129a04=_0x27fc70;super(),S(this,_0x129a04(0x1a3),new Map()),(this[_0x129a04(0x1d1)]=_0x3874ea,this[_0x129a04(0x17b)]());}[_0x27fc70(0x17e)](_0x437afd,_0x212e09){const _0x44bd56=_0x27fc70;let _0x1a89b4=this[_0x44bd56(0x1a3)]['get'](_0x437afd);_0x1a89b4||(_0x1a89b4=new Map(),this[_0x44bd56(0x1a3)][_0x44bd56(0x17d)](_0x437afd,_0x1a89b4));let _0x1d116c=_0x1a89b4[_0x44bd56(0x1ba)](_0x212e09);return _0x1d116c||(_0x1d116c=new f(),_0x1a89b4['set'](_0x212e09,_0x1d116c)),_0x1d116c;}['insertShape'](_0x3a746d,_0x1d1657,_0xad5dd3,_0x356b07,_0x4b27bc){const _0x2a0228=_0x27fc70;this[_0x2a0228(0x17e)](_0x3a746d,_0x1d1657)[_0x2a0228(0x191)](_0xad5dd3,_0x356b07,_0x4b27bc);}['removeShape'](_0x5f1d38,_0x42babf,_0x3e019a){const _0x3480ba=_0x27fc70;this[_0x3480ba(0x17e)](_0x5f1d38,_0x42babf)[_0x3480ba(0x1c0)](_0x3e019a);}[_0x27fc70(0x1c6)](_0x4fba99,_0x235211,_0x4358e7){const _0x2e15c4=_0x27fc70;return this[_0x2e15c4(0x17e)](_0x4fba99,_0x235211)[_0x2e15c4(0x187)](_0x4358e7);}[_0x27fc70(0x187)](_0x9722a7,_0x183eeb,_0x569886){const _0xc24455=_0x27fc70;return this[_0xc24455(0x17e)](_0x9722a7,_0x183eeb)[_0xc24455(0x187)](_0x569886);}['hasShape'](_0x400c4b,_0x348ecf,_0x41f893){const _0x1c2783=_0x27fc70;return this[_0x1c2783(0x17e)](_0x400c4b,_0x348ecf)[_0x1c2783(0x1d5)](_0x41f893);}['getShapeTypeById'](_0x5043cf,_0x55c650,_0x2b6f07){const _0x793386=_0x27fc70;return this[_0x793386(0x17e)](_0x5043cf,_0x55c650)[_0x793386(0x187)](_0x2b6f07);}['getShapeDataById'](_0x7b1d1f,_0x46cc41,_0x24fa71){const _0x4cdfa5=_0x27fc70,_0x2dc06e=this[_0x4cdfa5(0x17e)](_0x7b1d1f,_0x46cc41);if(!_0x2dc06e[_0x4cdfa5(0x187)](_0x24fa71))return;const _0x3d66b6=_0x2dc06e['_shapes'][_0x4cdfa5(0x1ba)](_0x24fa71);if(_0x3d66b6)return _0x3d66b6[_0x4cdfa5(0x1c9)]();}['getShapeModel'](_0x16692f,_0x12a1b1,_0x552919){const _0xf95de9=_0x27fc70;return this[_0xf95de9(0x17e)](_0x16692f,_0x12a1b1)[_0xf95de9(0x1bc)][_0xf95de9(0x1ba)](_0x552919);}[_0x27fc70(0x1d0)](_0x435e0b,_0x3a7773,_0x4dd81b){const _0x499c7d=_0x27fc70;return this[_0x499c7d(0x17e)](_0x435e0b,_0x3a7773)['getBasicShapeRelation'](_0x4dd81b);}[_0x27fc70(0x18f)](_0xe43d79,_0x38a64f,_0xb50a1e){const _0x5bdf91=_0x27fc70,_0x2c7c13=this[_0x5bdf91(0x17e)](_0xe43d79,_0x38a64f)['_shapes'][_0x5bdf91(0x1ba)](_0xb50a1e);if(_0x2c7c13)return _0x2c7c13[_0x5bdf91(0x19e)]();}['setShapeType'](){}['_serializeShapeForUnit'](_0x51a24b){const _0x1f95a6=_0x27fc70,_0xb071bf={},_0x70c210=this[_0x1f95a6(0x1a3)][_0x1f95a6(0x1ba)](_0x51a24b);return _0x70c210&&_0x70c210[_0x1f95a6(0x192)]((_0x21559b,_0x4505e0)=>{const _0x2087af=_0x1f95a6,_0x3930fb=_0x21559b[_0x2087af(0x1b7)]();_0x3930fb[_0x2087af(0x1a9)]>0x0&&(_0xb071bf[_0x4505e0]=_0x3930fb);}),JSON[_0x1f95a6(0x1a8)](_0xb071bf);}[_0x27fc70(0x1c5)](_0x3643b6,_0x3e4314){const _0x9db216=_0x27fc70;Object[_0x9db216(0x1cb)](_0x3e4314)[_0x9db216(0x192)](_0xe16e7=>{const _0x26a144=_0x9db216;this[_0x26a144(0x17e)](_0x3643b6,_0xe16e7)['fromJSON'](_0x3e4314[_0xe16e7]);});}[_0x27fc70(0x1b7)](){const _0x451bdc=_0x27fc70,_0x2d1329={};return this['_shapeModelManagerMap'][_0x451bdc(0x192)]((_0x162c8d,_0x3133fe)=>{_0x2d1329[_0x3133fe]={},_0x162c8d['forEach']((_0x53d6a3,_0x435e54)=>{_0x2d1329[_0x3133fe][_0x435e54]=_0x53d6a3['toJSON']();});}),_0x2d1329;}[_0x27fc70(0x180)](_0x57d31a){const _0x10f8d3=_0x27fc70;Object[_0x10f8d3(0x1cb)](_0x57d31a)[_0x10f8d3(0x192)](_0x2b8e5a=>{const _0x5cc687=_0x10f8d3,_0x17c22b=_0x57d31a[_0x2b8e5a];Object[_0x5cc687(0x1cb)](_0x17c22b)[_0x5cc687(0x192)](_0x52a739=>{const _0x4e98e5=_0x5cc687;this[_0x4e98e5(0x17e)](_0x2b8e5a,_0x52a739)[_0x4e98e5(0x180)](_0x17c22b[_0x52a739]);});});}[_0x27fc70(0x17b)](){const _0x40dbdf=_0x27fc70;this[_0x40dbdf(0x1d1)][_0x40dbdf(0x19c)]({'pluginName':w,'businesses':[p[_0x40dbdf(0x1a4)][_0x40dbdf(0x1d2)]],'toJson':_0x1f4cb3=>this[_0x40dbdf(0x1c4)](_0x1f4cb3),'parseJson':_0x20b4e5=>JSON['parse'](_0x20b4e5),'onLoad':(_0x38db8c,_0x40ad5d)=>{const _0x154eee=_0x40dbdf;this[_0x154eee(0x1c5)](_0x38db8c,_0x40ad5d);},'onUnLoad':_0x423f27=>{const _0x1c4515=_0x40dbdf,_0x1e8236=this[_0x1c4515(0x1a3)]['get'](_0x423f27);_0x1e8236&&(_0x1e8236[_0x1c4515(0x192)](_0x6b13fe=>{const _0x3be228=_0x1c4515;_0x6b13fe[_0x3be228(0x188)]();}),this[_0x1c4515(0x1a3)][_0x1c4515(0x1ab)](_0x423f27));}});}[_0x27fc70(0x188)](){const _0xfb02c5=_0x27fc70;this[_0xfb02c5(0x1a3)][_0xfb02c5(0x192)](_0x52cfb3=>{const _0xe97171=_0xfb02c5;_0x52cfb3[_0xe97171(0x192)](_0x12ee68=>{const _0x16939b=_0xe97171;_0x12ee68[_0x16939b(0x188)]();});});}},exports['SheetsShapeService']=j([J(0x0,p[_0x27fc70(0x18c)])],exports[_0x27fc70(0x196)]);const d={'id':_0x27fc70(0x18a),'type':p['CommandType'][_0x27fc70(0x195)],'handler':(_0x4843c4,_0x177b2b)=>{const _0x133a88=_0x27fc70,{unitId:_0x53dcf4,subUnitId:_0xfec9ce,shapeType:_0x594ed0,shapeId:_0x172a57,shapeData:_0x8646ec}=_0x177b2b,_0x2e7a58=_0x4843c4['get'](exports[_0x133a88(0x196)])['getShapeModel'](_0x53dcf4,_0xfec9ce,_0x172a57);return _0x2e7a58&&(_0x2e7a58[_0x133a88(0x1cf)](_0x594ed0),_0x8646ec&&(_0x2e7a58==null||_0x2e7a58[_0x133a88(0x1b8)](_0x8646ec))),!0x0;}},H={'id':_0x27fc70(0x1b4),'type':p[_0x27fc70(0x19d)][_0x27fc70(0x198)],'handler':(_0x4f79cb,_0x461dfe)=>{const _0x58a9a1=_0x27fc70;if(!_0x461dfe)return!0x1;const _0x509956=_0x4f79cb[_0x58a9a1(0x1ba)](p[_0x58a9a1(0x1bd)]),_0x1906a1=_0x4f79cb[_0x58a9a1(0x1ba)](exports[_0x58a9a1(0x196)]),_0x1713ec=_0x4f79cb['get'](p[_0x58a9a1(0x1ce)]),_0x1f07b6=[],_0x5e50a6=[],{unitId:_0x2892ca,subUnitId:_0x59116f,shapeId:_0x15c479,shapeType:_0x21ff69,shapeData:_0x5c21f8}=_0x461dfe,_0x48b17f=_0x1906a1[_0x58a9a1(0x19f)](_0x2892ca,_0x59116f,_0x15c479);if(_0x48b17f){const _0xa0cc4f=_0x48b17f[_0x58a9a1(0x187)](),_0x56dbf7=Object[_0x58a9a1(0x18d)]({},_0x48b17f[_0x58a9a1(0x1c9)]()),_0x1fdd2b={'unitId':_0x2892ca,'subUnitId':_0x59116f,'shapeId':_0x15c479,'shapeType':_0x21ff69,'shapeData':_0x5c21f8},_0x5c3939={'unitId':_0x2892ca,'subUnitId':_0x59116f,'shapeId':_0x15c479,'shapeType':_0xa0cc4f,'shapeData':_0x56dbf7};return _0x1f07b6[_0x58a9a1(0x17c)]({'id':d['id'],'params':_0x1fdd2b}),_0x5e50a6['push']({'id':d['id'],'params':_0x5c3939}),_0x1f07b6[_0x58a9a1(0x1c1)](_0x5c1cf0=>_0x509956[_0x58a9a1(0x189)](_0x5c1cf0['id'],_0x5c1cf0['params']))&&_0x1713ec[_0x58a9a1(0x1ca)]({'unitID':_0x2892ca,'redoMutations':[..._0x1f07b6],'undoMutations':[..._0x5e50a6]}),!0x0;}return!0x1;}},m={'id':'sheet.mutation.insert-shape','type':p[_0x27fc70(0x19d)]['MUTATION'],'handler':(_0x220518,_0xc12e56)=>{const _0x56bb74=_0x27fc70,{unitId:_0x299465,subUnitId:_0x289db2,shapeType:_0x5eb8c5,shapeId:_0x5cd8c0,shapeData:_0x34d055}=_0xc12e56;return _0x220518[_0x56bb74(0x1ba)](exports[_0x56bb74(0x196)])[_0x56bb74(0x17f)](_0x299465,_0x289db2,_0x5eb8c5,_0x5cd8c0,_0x34d055),!0x0;}},v={'id':'sheet.mutation.remove-shape','type':p['CommandType'][_0x27fc70(0x195)],'handler':(_0x2b09d8,_0x5842cd)=>{const _0xb7193c=_0x27fc70,{unitId:_0x26201a,subUnitId:_0x4576ff,shapeId:_0x1ce6f5}=_0x5842cd;return _0x2b09d8['get'](exports[_0xb7193c(0x196)])[_0xb7193c(0x1c0)](_0x26201a,_0x4576ff,_0x1ce6f5),!0x0;}},y={'id':'sheet.mutation.update-shape-data','type':p[_0x27fc70(0x19d)][_0x27fc70(0x195)],'handler':(_0x5f5c43,_0x26694e)=>{const _0x592ec4=_0x27fc70,{unitId:_0x502614,subUnitId:_0x1dc676,shapeType:_0x45d0b5,shapeId:_0x70deb6,shapeData:_0x271dd2}=_0x26694e,_0xe46327=_0x5f5c43['get'](exports['SheetsShapeService'])[_0x592ec4(0x19f)](_0x502614,_0x1dc676,_0x70deb6);return _0xe46327&&(_0x45d0b5!==void 0x0&&_0xe46327[_0x592ec4(0x1cf)](_0x45d0b5),_0x271dd2&&(_0xe46327==null||_0xe46327[_0x592ec4(0x1b8)](_0x271dd2,!0x0))),!0x0;}},A='sheets-shape.config',_={};var L=Object[_0x27fc70(0x182)],F=Object[_0x27fc70(0x1b6)],B=(_0xf3bce3,_0x491029,_0x5dce11)=>_0x491029 in _0xf3bce3?L(_0xf3bce3,_0x491029,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dce11}):_0xf3bce3[_0x491029]=_0x5dce11,G=(_0x340a25,_0x2949b2,_0x2ffa1e,_0x457371)=>{const _0x2d13c1=_0x27fc70;for(var _0x5911a0=_0x457371>0x1?void 0x0:_0x457371?F(_0x2949b2,_0x2ffa1e):_0x2949b2,_0x4eaa1a=_0x340a25[_0x2d13c1(0x1a9)]-0x1,_0x29b2d9;_0x4eaa1a>=0x0;_0x4eaa1a--)(_0x29b2d9=_0x340a25[_0x4eaa1a])&&(_0x5911a0=_0x29b2d9(_0x5911a0)||_0x5911a0);return _0x5911a0;},g=(_0x33d674,_0x1bbf7d)=>(_0x4580b1,_0x3abd9f)=>_0x1bbf7d(_0x4580b1,_0x3abd9f,_0x33d674),T=(_0x1f3a1d,_0x300220,_0x4b757e)=>B(_0x1f3a1d,typeof _0x300220!=_0x27fc70(0x1cc)?_0x300220+'':_0x300220,_0x4b757e);const x=_0x27fc70(0x1b5);exports['UniverSheetsShapePlugin']=class extends p[_0x27fc70(0x1ae)]{constructor(_0x3ec8f9=_,_0x43f362,_0x16ef93,_0x2ed46f){const _0x3aecfe=_0x27fc70;super(),this['_config']=_0x3ec8f9,this[_0x3aecfe(0x1d7)]=_0x43f362,this[_0x3aecfe(0x1bb)]=_0x16ef93,this[_0x3aecfe(0x1a2)]=_0x2ed46f;const {..._0xc5d135}=p[_0x3aecfe(0x1d8)]({},_,this[_0x3aecfe(0x199)]);this['_configService']['setConfig'](A,_0xc5d135),this[_0x3aecfe(0x18b)]();}[_0x27fc70(0x1ac)](){const _0x314a47=_0x27fc70;p['touchDependencies'](this[_0x314a47(0x1d7)],[]);}[_0x27fc70(0x1b0)](){const _0x5e621e=_0x27fc70,_0x3800de=this[_0x5e621e(0x1d7)];[[f],[exports[_0x5e621e(0x196)]]][_0x5e621e(0x192)](_0x498253=>_0x3800de[_0x5e621e(0x1b9)](_0x498253));}[_0x27fc70(0x18b)](){const _0x4f5355=_0x27fc70;[m,v,d,y][_0x4f5355(0x192)](_0x5977ce=>this[_0x4f5355(0x1a1)](this[_0x4f5355(0x1bb)][_0x4f5355(0x186)](_0x5977ce)));}},T(exports[_0x27fc70(0x190)],_0x27fc70(0x1c3),p[_0x27fc70(0x1a4)]['UNIVER_SHEET']),T(exports[_0x27fc70(0x190)],_0x27fc70(0x1a0),x),exports['UniverSheetsShapePlugin']=G([p[_0x27fc70(0x1c2)](b[_0x27fc70(0x1b2)]),g(0x1,p[_0x27fc70(0x1cd)](p[_0x27fc70(0x1be)])),g(0x2,p[_0x27fc70(0x1bd)]),g(0x3,p[_0x27fc70(0x1a5)])],exports[_0x27fc70(0x190)]),exports[_0x27fc70(0x183)]=m,exports[_0x27fc70(0x1af)]=v,exports[_0x27fc70(0x184)]=y,exports['UpdateSheetsShapeTypeCommand']=H,exports[_0x27fc70(0x197)]=d;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4cc768=_0x1d7e;(function(_0x5e6635,_0x401031){const _0x2e0ec4=_0x1d7e,_0x42e4c1=_0x5e6635();while(!![]){try{const _0x1dc7f3=-parseInt(_0x2e0ec4(0x1b8))/0x1+-parseInt(_0x2e0ec4(0x1a2))/0x2+-parseInt(_0x2e0ec4(0x18c))/0x3+-parseInt(_0x2e0ec4(0x196))/0x4+-parseInt(_0x2e0ec4(0x1b1))/0x5*(-parseInt(_0x2e0ec4(0x192))/0x6)+parseInt(_0x2e0ec4(0x1a0))/0x7*(parseInt(_0x2e0ec4(0x190))/0x8)+parseInt(_0x2e0ec4(0x198))/0x9;if(_0x1dc7f3===_0x401031)break;else _0x42e4c1['push'](_0x42e4c1['shift']());}catch(_0x606fa0){_0x42e4c1['push'](_0x42e4c1['shift']());}}}(_0x221c,0x8c778));var R=Object[_0x4cc768(0x16d)],C=(_0x218ec6,_0x826148,_0x5e8f3a)=>_0x826148 in _0x218ec6?R(_0x218ec6,_0x826148,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e8f3a}):_0x218ec6[_0x826148]=_0x5e8f3a,d=(_0x389ca2,_0x47c50c,_0x1eacfa)=>C(_0x389ca2,typeof _0x47c50c!=_0x4cc768(0x1ba)?_0x47c50c+'':_0x47c50c,_0x1eacfa);function _0x221c(){const _0x47d6dd=['2457444medEoG','_initSnapshot','21054078pScHzF','delete','_injector','stringify','_deserializeShapeForUnit','_linesIds','sheet.mutation.insert-shape','COMMAND','816655BXrGZC','setShapeType','337708MRPHbB','from','getShapeModel','getShapeTypeById','_ensureShapeModelManager','shapeId','isLineShape','get','onRendered','_shapes','length','toJSON','removeShape','_serializeShapeForUnit','MUTATION','555OczyOg','dispose','SHEET_SHAPE_PLUGIN','getShapeType','disposeWithMe','_groupIds','shapeData','1061231SVuuHW','pluginName','symbol','insertShape','sheet.mutation.remove-shape','defineProperty','getOwnPropertyDescriptor','_commandService','clear','_disposed','add','_resourcesManagerService','push','getShapeDataById','setShapeData','type','forEach','registerPluginResource','set','fromJSON','registerCommand','has','_configService','getLineShapeRelation','_shapeModelManagerMap','getBasicShapeRelation','parse','UNIVER_SHEET','addShape','getShapeRelation','syncExecuteCommand','getBasicShapeType','onStarting','sheet.mutation.update-shape-data','sheet.mutation.update-shape-type','getShapeData','2012721MLvdcI','keys','hasShape','_initCommands','8OtoaHF','assign','34308pIDpyZ','pushUndoRedo','sheets-shape.config','_config'];_0x221c=function(){return _0x47d6dd;};return _0x221c();}import{Disposable as _0x204338,UniverInstanceType as _0x228f81,IResourceManagerService as _0x7f9972,CommandType as _0x285e23,ICommandService as _0x217751,IUndoRedoService as _0x45cb91,DependentOn as _0x4f414d,Inject as _0x2ff514,Injector as _0x3bc1fa,Plugin as _0x281049,merge as _0x5f0e29,touchDependencies as _0x4e6c8c,IConfigService as _0x472081}from'@univerjs/core';import{ShapeModel as _0x6af823,isConnectorShape as _0x4518b0}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x2ad86e}from'@univerjs-pro/license';class T extends _0x204338{constructor(){const _0x2e022a=_0x4cc768;super(),d(this,_0x2e022a(0x1ab),new Map()),d(this,_0x2e022a(0x19d),new Set()),d(this,_0x2e022a(0x1b6),new Set());}[_0x4cc768(0x184)](_0x3bf2de,_0x170877,_0x12c087){const _0x1fe2bb=_0x4cc768,_0x307e29=new _0x6af823(_0x3bf2de,_0x170877,_0x12c087);return this[_0x1fe2bb(0x1ab)][_0x1fe2bb(0x17a)](_0x170877,_0x307e29),_0x4518b0(_0x3bf2de)&&this[_0x1fe2bb(0x19d)][_0x1fe2bb(0x172)](_0x170877),_0x307e29;}['getBasicShapeRelation'](_0x510ef9){const _0x59d8c0=_0x4cc768;var _0x19a6ba,_0x2a278d;const _0x5b3536=[];for(const _0x1712b7 of this[_0x59d8c0(0x19d)]){const _0x91a3d8=this[_0x59d8c0(0x1ab)]['get'](_0x1712b7);if(_0x91a3d8){const _0x44c148=_0x91a3d8[_0x59d8c0(0x185)]();_0x44c148&&(((_0x19a6ba=_0x44c148['from'])==null?void 0x0:_0x19a6ba[_0x59d8c0(0x1a7)])===_0x510ef9&&_0x5b3536[_0x59d8c0(0x174)]({..._0x44c148[_0x59d8c0(0x1a3)],'lineShapeId':_0x1712b7,'isFrom':!0x0}),((_0x2a278d=_0x44c148['to'])==null?void 0x0:_0x2a278d[_0x59d8c0(0x1a7)])===_0x510ef9&&_0x5b3536[_0x59d8c0(0x174)]({..._0x44c148['to'],'lineShapeId':_0x1712b7,'isFrom':!0x1}));}}return _0x5b3536;}['getLineShapeRelation'](_0x48f530){const _0x3a768c=_0x4cc768,_0x17e0c1=this[_0x3a768c(0x1ab)][_0x3a768c(0x1a9)](_0x48f530);if(_0x17e0c1)return _0x17e0c1[_0x3a768c(0x185)]();}[_0x4cc768(0x1b4)](_0x3b6e35){const _0x4d5408=_0x4cc768,_0x2c97e1=this[_0x4d5408(0x1ab)][_0x4d5408(0x1a9)](_0x3b6e35);if(_0x2c97e1)return _0x2c97e1[_0x4d5408(0x1b4)]();}[_0x4cc768(0x18e)](_0x3fe782){const _0xf7d68b=_0x4cc768;return this[_0xf7d68b(0x1ab)][_0xf7d68b(0x17d)](_0x3fe782);}[_0x4cc768(0x1ae)](_0xd329c2){const _0x2f8b19=_0x4cc768,_0x4b1bfd=this[_0x2f8b19(0x1ab)]['get'](_0xd329c2);_0x4b1bfd&&(_0x4518b0(_0x4b1bfd[_0x2f8b19(0x1b4)]())&&this[_0x2f8b19(0x19d)]['delete'](_0xd329c2),this[_0x2f8b19(0x1ab)][_0x2f8b19(0x199)](_0xd329c2));}[_0x4cc768(0x1ad)](){const _0x28e39b=_0x4cc768,_0x586e77=[];return this[_0x28e39b(0x1ab)][_0x28e39b(0x178)](_0x4cf5cf=>{const _0x16a237=_0x28e39b;_0x586e77[_0x16a237(0x174)](_0x4cf5cf[_0x16a237(0x1ad)]());}),_0x586e77;}[_0x4cc768(0x17b)](_0x1ebd37){const _0x4fa94b=_0x4cc768;for(const _0x18e710 of _0x1ebd37){const {id:_0x4076e2,shapeType:_0x1b7b81}=_0x18e710,_0x19b013=this['addShape'](_0x1b7b81,_0x4076e2,_0x18e710[_0x4fa94b(0x1b7)]);_0x19b013&&_0x19b013[_0x4fa94b(0x1a8)]()&&this[_0x4fa94b(0x19d)][_0x4fa94b(0x172)](_0x4076e2);}}['dispose'](){const _0x2447ae=_0x4cc768;this[_0x2447ae(0x171)]||(this['_shapes'][_0x2447ae(0x178)](_0x1d1dc7=>{const _0x27905=_0x2447ae;_0x1d1dc7[_0x27905(0x1b2)]();}),this[_0x2447ae(0x1ab)][_0x2447ae(0x170)](),this['_linesIds'][_0x2447ae(0x170)](),this[_0x2447ae(0x1b6)][_0x2447ae(0x170)](),super[_0x2447ae(0x1b2)]());}}var $=Object[_0x4cc768(0x16e)],V=(_0x235098,_0x4a5fdb,_0x4e0eee,_0x188e13)=>{const _0x50fd5b=_0x4cc768;for(var _0x4fa205=_0x188e13>0x1?void 0x0:_0x188e13?$(_0x4a5fdb,_0x4e0eee):_0x4a5fdb,_0x243c2d=_0x235098[_0x50fd5b(0x1ac)]-0x1,_0x4d5390;_0x243c2d>=0x0;_0x243c2d--)(_0x4d5390=_0x235098[_0x243c2d])&&(_0x4fa205=_0x4d5390(_0x4fa205)||_0x4fa205);return _0x4fa205;},K=(_0x17996a,_0x487880)=>(_0x39ecc1,_0x5cd1da)=>_0x487880(_0x39ecc1,_0x5cd1da,_0x17996a);const W='SHEET_SHAPE_PLUGIN';let i=class extends _0x204338{constructor(_0x5937c7){const _0x5f007e=_0x4cc768;super(),d(this,_0x5f007e(0x180),new Map()),(this[_0x5f007e(0x173)]=_0x5937c7,this['_initSnapshot']());}[_0x4cc768(0x1a6)](_0x3644a6,_0x585865){const _0x365134=_0x4cc768;let _0x14cddb=this[_0x365134(0x180)][_0x365134(0x1a9)](_0x3644a6);_0x14cddb||(_0x14cddb=new Map(),this[_0x365134(0x180)][_0x365134(0x17a)](_0x3644a6,_0x14cddb));let _0x4efba5=_0x14cddb[_0x365134(0x1a9)](_0x585865);return _0x4efba5||(_0x4efba5=new T(),_0x14cddb[_0x365134(0x17a)](_0x585865,_0x4efba5)),_0x4efba5;}[_0x4cc768(0x1bb)](_0xdea604,_0x129af1,_0x391c97,_0x163ac6,_0x32a945){const _0x445d37=_0x4cc768;this[_0x445d37(0x1a6)](_0xdea604,_0x129af1)[_0x445d37(0x184)](_0x391c97,_0x163ac6,_0x32a945);}['removeShape'](_0x37fe45,_0x3fb77f,_0xe306b3){const _0x1e9218=_0x4cc768;this['_ensureShapeModelManager'](_0x37fe45,_0x3fb77f)[_0x1e9218(0x1ae)](_0xe306b3);}[_0x4cc768(0x187)](_0x1735a5,_0x5ba15d,_0x4b176a){const _0x54ec7b=_0x4cc768;return this[_0x54ec7b(0x1a6)](_0x1735a5,_0x5ba15d)[_0x54ec7b(0x1b4)](_0x4b176a);}['getShapeType'](_0x1de9b0,_0x23f353,_0x45c610){const _0x4b590a=_0x4cc768;return this[_0x4b590a(0x1a6)](_0x1de9b0,_0x23f353)[_0x4b590a(0x1b4)](_0x45c610);}[_0x4cc768(0x18e)](_0x15fdb2,_0x2354c4,_0x31ec30){const _0x507a0a=_0x4cc768;return this[_0x507a0a(0x1a6)](_0x15fdb2,_0x2354c4)[_0x507a0a(0x18e)](_0x31ec30);}[_0x4cc768(0x1a5)](_0x3e8229,_0xb34123,_0xccb51e){const _0x126196=_0x4cc768;return this[_0x126196(0x1a6)](_0x3e8229,_0xb34123)[_0x126196(0x1b4)](_0xccb51e);}[_0x4cc768(0x175)](_0x4c3b67,_0xc40aee,_0x510136){const _0x45bfd9=_0x4cc768,_0x42fb88=this[_0x45bfd9(0x1a6)](_0x4c3b67,_0xc40aee);if(!_0x42fb88[_0x45bfd9(0x1b4)](_0x510136))return;const _0xcee85c=_0x42fb88[_0x45bfd9(0x1ab)]['get'](_0x510136);if(_0xcee85c)return _0xcee85c[_0x45bfd9(0x18b)]();}['getShapeModel'](_0x113551,_0x1da043,_0x426606){const _0x34d44f=_0x4cc768;return this['_ensureShapeModelManager'](_0x113551,_0x1da043)[_0x34d44f(0x1ab)][_0x34d44f(0x1a9)](_0x426606);}['getBasicShapeRelation'](_0x55ffef,_0x19f2d1,_0x5cfafc){const _0x3efef9=_0x4cc768;return this[_0x3efef9(0x1a6)](_0x55ffef,_0x19f2d1)[_0x3efef9(0x181)](_0x5cfafc);}[_0x4cc768(0x17f)](_0x2327cb,_0x9f134f,_0x1e8370){const _0x543ba4=_0x4cc768,_0xd5b384=this['_ensureShapeModelManager'](_0x2327cb,_0x9f134f)[_0x543ba4(0x1ab)][_0x543ba4(0x1a9)](_0x1e8370);if(_0xd5b384)return _0xd5b384['getShapeRelation']();}[_0x4cc768(0x1a1)](){}[_0x4cc768(0x1af)](_0x469302){const _0x5aa124=_0x4cc768,_0x5b4f32={},_0x500c05=this[_0x5aa124(0x180)][_0x5aa124(0x1a9)](_0x469302);return _0x500c05&&_0x500c05[_0x5aa124(0x178)]((_0x3d8616,_0x33f7a2)=>{_0x5b4f32[_0x33f7a2]=_0x3d8616['toJSON']();}),JSON[_0x5aa124(0x19b)](_0x5b4f32);}[_0x4cc768(0x19c)](_0x3e5eb5,_0x5788cf){const _0x58286d=_0x4cc768;Object[_0x58286d(0x18d)](_0x5788cf)[_0x58286d(0x178)](_0x288c09=>{const _0x1d001e=_0x58286d;this[_0x1d001e(0x1a6)](_0x3e5eb5,_0x288c09)['fromJSON'](_0x5788cf[_0x288c09]);});}[_0x4cc768(0x1ad)](){const _0x3abd05=_0x4cc768,_0x1fbc88={};return this[_0x3abd05(0x180)][_0x3abd05(0x178)]((_0x4745d3,_0x428fcb)=>{_0x1fbc88[_0x428fcb]={},_0x4745d3['forEach']((_0x1532e1,_0x30cdcc)=>{_0x1fbc88[_0x428fcb][_0x30cdcc]=_0x1532e1['toJSON']();});}),_0x1fbc88;}[_0x4cc768(0x17b)](_0x487028){const _0x3ae720=_0x4cc768;Object['keys'](_0x487028)[_0x3ae720(0x178)](_0x3f3aeb=>{const _0x435980=_0x3ae720,_0x425a7c=_0x487028[_0x3f3aeb];Object[_0x435980(0x18d)](_0x425a7c)[_0x435980(0x178)](_0x155d03=>{const _0x38d24b=_0x435980;this[_0x38d24b(0x1a6)](_0x3f3aeb,_0x155d03)[_0x38d24b(0x17b)](_0x425a7c[_0x155d03]);});});}[_0x4cc768(0x197)](){const _0x3b3565=_0x4cc768;this[_0x3b3565(0x173)][_0x3b3565(0x179)]({'pluginName':W,'businesses':[_0x228f81[_0x3b3565(0x183)]],'toJson':_0x27733d=>this[_0x3b3565(0x1af)](_0x27733d),'parseJson':_0x598f64=>JSON[_0x3b3565(0x182)](_0x598f64),'onLoad':(_0x3f376a,_0x5b1bc9)=>{const _0x480f99=_0x3b3565;this[_0x480f99(0x19c)](_0x3f376a,_0x5b1bc9);},'onUnLoad':_0x2aa47c=>{const _0x2996f4=_0x3b3565,_0x35d9c8=this[_0x2996f4(0x180)][_0x2996f4(0x1a9)](_0x2aa47c);_0x35d9c8&&(_0x35d9c8[_0x2996f4(0x178)](_0x2ed4df=>{const _0xe0c22e=_0x2996f4;_0x2ed4df[_0xe0c22e(0x1b2)]();}),this['_shapeModelManagerMap']['delete'](_0x2aa47c));}});}[_0x4cc768(0x1b2)](){const _0x5217d5=_0x4cc768;this[_0x5217d5(0x180)][_0x5217d5(0x178)](_0x33a67d=>{const _0x421ba1=_0x5217d5;_0x33a67d[_0x421ba1(0x178)](_0x3e1f37=>{_0x3e1f37['dispose']();});});}};i=V([K(0x0,_0x7f9972)],i);const u={'id':_0x4cc768(0x18a),'type':_0x285e23[_0x4cc768(0x1b0)],'handler':(_0x30d073,_0x496539)=>{const _0x32af58=_0x4cc768,{unitId:_0x11c280,subUnitId:_0x373ffd,shapeType:_0x5161fe,shapeId:_0x259828,shapeData:_0x111c94}=_0x496539,_0x5321b6=_0x30d073[_0x32af58(0x1a9)](i)[_0x32af58(0x1a4)](_0x11c280,_0x373ffd,_0x259828);return _0x5321b6&&(_0x5321b6[_0x32af58(0x1a1)](_0x5161fe),_0x111c94&&(_0x5321b6==null||_0x5321b6[_0x32af58(0x176)](_0x111c94))),!0x0;}},pe={'id':'sheet.command.update-shape-type','type':_0x285e23[_0x4cc768(0x19f)],'handler':(_0x152acf,_0xb0b4a2)=>{const _0xc59c3a=_0x4cc768;if(!_0xb0b4a2)return!0x1;const _0x5b0ca6=_0x152acf[_0xc59c3a(0x1a9)](_0x217751),_0x18d76b=_0x152acf[_0xc59c3a(0x1a9)](i),_0x14b2ea=_0x152acf['get'](_0x45cb91),_0x32f0b1=[],_0x55f419=[],{unitId:_0x13aedc,subUnitId:_0x136a87,shapeId:_0xab034f,shapeType:_0x16426a,shapeData:_0x4b0ea1}=_0xb0b4a2,_0x3fd5bd=_0x18d76b['getShapeModel'](_0x13aedc,_0x136a87,_0xab034f);if(_0x3fd5bd){const _0x52b69b=_0x3fd5bd[_0xc59c3a(0x1b4)](),_0x37397f=Object[_0xc59c3a(0x191)]({},_0x3fd5bd['getShapeData']()),_0x5450d0={'unitId':_0x13aedc,'subUnitId':_0x136a87,'shapeId':_0xab034f,'shapeType':_0x16426a,'shapeData':_0x4b0ea1},_0x14a899={'unitId':_0x13aedc,'subUnitId':_0x136a87,'shapeId':_0xab034f,'shapeType':_0x52b69b,'shapeData':_0x37397f};return _0x32f0b1['push']({'id':u['id'],'params':_0x5450d0}),_0x55f419[_0xc59c3a(0x174)]({'id':u['id'],'params':_0x14a899}),_0x32f0b1['every'](_0xa9b125=>_0x5b0ca6[_0xc59c3a(0x186)](_0xa9b125['id'],_0xa9b125['params']))&&_0x14b2ea[_0xc59c3a(0x193)]({'unitID':_0x13aedc,'redoMutations':[..._0x32f0b1],'undoMutations':[..._0x55f419]}),!0x0;}return!0x1;}},Y={'id':_0x4cc768(0x19e),'type':_0x285e23[_0x4cc768(0x1b0)],'handler':(_0x566a3d,_0x17e3f4)=>{const _0x44be04=_0x4cc768,{unitId:_0x1bcbae,subUnitId:_0x10a43e,shapeType:_0x4370ca,shapeId:_0x51398b,shapeData:_0x406148}=_0x17e3f4;return _0x566a3d['get'](i)[_0x44be04(0x1bb)](_0x1bcbae,_0x10a43e,_0x4370ca,_0x51398b,_0x406148),!0x0;}},q={'id':_0x4cc768(0x1bc),'type':_0x285e23['MUTATION'],'handler':(_0x1007a4,_0x364b7a)=>{const _0x185351=_0x4cc768,{unitId:_0x33c977,subUnitId:_0x295138,shapeId:_0x34450f}=_0x364b7a;return _0x1007a4[_0x185351(0x1a9)](i)[_0x185351(0x1ae)](_0x33c977,_0x295138,_0x34450f),!0x0;}},Q={'id':_0x4cc768(0x189),'type':_0x285e23[_0x4cc768(0x1b0)],'handler':(_0xee9301,_0x12766d)=>{const _0x193a4c=_0x4cc768,{unitId:_0x29e808,subUnitId:_0x286936,shapeType:_0x54a1e1,shapeId:_0x41dc4d,shapeData:_0x129309}=_0x12766d,_0x47c707=_0xee9301[_0x193a4c(0x1a9)](i)[_0x193a4c(0x1a4)](_0x29e808,_0x286936,_0x41dc4d);return _0x47c707&&(_0x54a1e1!==void 0x0&&_0x47c707['setShapeType'](_0x54a1e1),_0x129309&&(_0x47c707==null||_0x47c707[_0x193a4c(0x176)](_0x129309,!0x0))),!0x0;}},X=_0x4cc768(0x194),m={};function _0x1d7e(_0x2c3938,_0x39cd34){_0x2c3938=_0x2c3938-0x16d;const _0x221c11=_0x221c();let _0x1d7eb2=_0x221c11[_0x2c3938];return _0x1d7eb2;}var Z=Object[_0x4cc768(0x16d)],k=Object['getOwnPropertyDescriptor'],ee=(_0x36b4e5,_0xcc9500,_0x28c414)=>_0xcc9500 in _0x36b4e5?Z(_0x36b4e5,_0xcc9500,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28c414}):_0x36b4e5[_0xcc9500]=_0x28c414,ae=(_0x20995c,_0x24a57c,_0x1f336a,_0x13a385)=>{const _0x5d3770=_0x4cc768;for(var _0x2590a8=_0x13a385>0x1?void 0x0:_0x13a385?k(_0x24a57c,_0x1f336a):_0x24a57c,_0x93e89e=_0x20995c[_0x5d3770(0x1ac)]-0x1,_0x2a3468;_0x93e89e>=0x0;_0x93e89e--)(_0x2a3468=_0x20995c[_0x93e89e])&&(_0x2590a8=_0x2a3468(_0x2590a8)||_0x2590a8);return _0x2590a8;},g=(_0x3d27c5,_0x4e21ca)=>(_0x14da34,_0x39ef7b)=>_0x4e21ca(_0x14da34,_0x39ef7b,_0x3d27c5),E=(_0x2c9ba2,_0x15d45a,_0x541c70)=>ee(_0x2c9ba2,typeof _0x15d45a!=_0x4cc768(0x1ba)?_0x15d45a+'':_0x15d45a,_0x541c70);const se=_0x4cc768(0x1b3);let S=class extends _0x281049{constructor(_0x590bef=m,_0x5d7173,_0x59da61,_0x212fd5){const _0x5f265e=_0x4cc768;super(),this[_0x5f265e(0x195)]=_0x590bef,this[_0x5f265e(0x19a)]=_0x5d7173,this[_0x5f265e(0x16f)]=_0x59da61,this['_configService']=_0x212fd5;const {..._0x2f18e4}=_0x5f0e29({},m,this['_config']);this[_0x5f265e(0x17e)]['setConfig'](X,_0x2f18e4),this[_0x5f265e(0x18f)]();}[_0x4cc768(0x1aa)](){const _0x4cfae8=_0x4cc768;_0x4e6c8c(this[_0x4cfae8(0x19a)],[]);}[_0x4cc768(0x188)](){const _0x31c578=_0x4cc768,_0x89cd4=this[_0x31c578(0x19a)];[[T],[i]][_0x31c578(0x178)](_0xc060b5=>_0x89cd4['add'](_0xc060b5));}[_0x4cc768(0x18f)](){const _0xcb8660=_0x4cc768;[Y,q,u,Q][_0xcb8660(0x178)](_0x20c2cc=>this[_0xcb8660(0x1b5)](this[_0xcb8660(0x16f)][_0xcb8660(0x17c)](_0x20c2cc)));}};E(S,_0x4cc768(0x177),_0x228f81[_0x4cc768(0x183)]),E(S,_0x4cc768(0x1b9),se),S=ae([_0x4f414d(_0x2ad86e),g(0x1,_0x2ff514(_0x3bc1fa)),g(0x2,_0x217751),g(0x3,_0x472081)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
1
+ const _0x43d2f6=_0x2c52;(function(_0x417f8e,_0x4bd05d){const _0x44a5de=_0x2c52,_0x4851cf=_0x417f8e();while(!![]){try{const _0x46ab44=-parseInt(_0x44a5de(0xf9))/0x1*(-parseInt(_0x44a5de(0x12e))/0x2)+parseInt(_0x44a5de(0x125))/0x3*(-parseInt(_0x44a5de(0x113))/0x4)+parseInt(_0x44a5de(0x13b))/0x5+parseInt(_0x44a5de(0x132))/0x6*(parseInt(_0x44a5de(0x13c))/0x7)+parseInt(_0x44a5de(0x11f))/0x8*(-parseInt(_0x44a5de(0xf7))/0x9)+-parseInt(_0x44a5de(0xf8))/0xa+parseInt(_0x44a5de(0x109))/0xb;if(_0x46ab44===_0x4bd05d)break;else _0x4851cf['push'](_0x4851cf['shift']());}catch(_0x698ff6){_0x4851cf['push'](_0x4851cf['shift']());}}}(_0x9da8,0xd7ac3));var R=Object['defineProperty'],C=(_0x357b2a,_0xa26520,_0x482901)=>_0xa26520 in _0x357b2a?R(_0x357b2a,_0xa26520,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x482901}):_0x357b2a[_0xa26520]=_0x482901,d=(_0x440fea,_0x49c4b9,_0x1c4cb8)=>C(_0x440fea,typeof _0x49c4b9!=_0x43d2f6(0x129)?_0x49c4b9+'':_0x49c4b9,_0x1c4cb8);import{Disposable as _0x35ae6c,UniverInstanceType as _0x2eb040,IResourceManagerService as _0x4fb513,CommandType as _0x1a3fdd,ICommandService as _0x39cdad,IUndoRedoService as _0x2b6007,DependentOn as _0x5695e8,Inject as _0x2eca19,Injector as _0x2f6cf7,Plugin as _0x1c26c6,merge as _0xd56f87,touchDependencies as _0x193da0,IConfigService as _0x580d74}from'@univerjs/core';import{ShapeModel as _0x34c168,isConnectorShape as _0x193e62}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0xa2a402}from'@univerjs-pro/license';class T extends _0x35ae6c{constructor(){const _0x345049=_0x43d2f6;super(),d(this,_0x345049(0x124),new Map()),d(this,_0x345049(0x138),new Set()),d(this,_0x345049(0x101),new Set());}[_0x43d2f6(0x133)](_0x549d0e,_0x396566,_0x2bf937){const _0x2cca6a=_0x43d2f6,_0x2fe8cc=new _0x34c168(_0x549d0e,_0x396566,_0x2bf937);return this[_0x2cca6a(0x124)][_0x2cca6a(0x10e)](_0x396566,_0x2fe8cc),_0x193e62(_0x549d0e)&&this[_0x2cca6a(0x138)][_0x2cca6a(0x123)](_0x396566),_0x2fe8cc;}['getBasicShapeRelation'](_0x3c4bcc){const _0x1e18c7=_0x43d2f6;var _0x19d8cc,_0x5216dc;const _0x45c0df=[];for(const _0x107610 of this[_0x1e18c7(0x138)]){const _0x3d4293=this[_0x1e18c7(0x124)][_0x1e18c7(0xfd)](_0x107610);if(_0x3d4293){const _0x340b27=_0x3d4293[_0x1e18c7(0x141)]();_0x340b27&&(((_0x19d8cc=_0x340b27[_0x1e18c7(0x118)])==null?void 0x0:_0x19d8cc[_0x1e18c7(0x135)])===_0x3c4bcc&&_0x45c0df['push']({..._0x340b27[_0x1e18c7(0x118)],'lineShapeId':_0x107610,'isFrom':!0x0}),((_0x5216dc=_0x340b27['to'])==null?void 0x0:_0x5216dc['shapeId'])===_0x3c4bcc&&_0x45c0df[_0x1e18c7(0x11e)]({..._0x340b27['to'],'lineShapeId':_0x107610,'isFrom':!0x1}));}}return _0x45c0df;}[_0x43d2f6(0xfe)](_0x502b72){const _0x5355e6=_0x43d2f6,_0x16271f=this[_0x5355e6(0x124)][_0x5355e6(0xfd)](_0x502b72);if(_0x16271f)return _0x16271f[_0x5355e6(0x141)]();}[_0x43d2f6(0x120)](_0x84bd64){const _0x4a5b66=_0x43d2f6,_0x2c169c=this[_0x4a5b66(0x124)]['get'](_0x84bd64);if(_0x2c169c)return _0x2c169c[_0x4a5b66(0x120)]();}['hasShape'](_0x462211){const _0x52cd0b=_0x43d2f6;return this['_shapes'][_0x52cd0b(0x130)](_0x462211);}['removeShape'](_0x2fac44){const _0x5c3d1e=_0x43d2f6,_0x39172d=this[_0x5c3d1e(0x124)]['get'](_0x2fac44);_0x39172d&&(_0x193e62(_0x39172d['getShapeType']())&&this[_0x5c3d1e(0x138)][_0x5c3d1e(0x111)](_0x2fac44),this[_0x5c3d1e(0x124)][_0x5c3d1e(0x111)](_0x2fac44));}[_0x43d2f6(0x137)](){const _0x36f233=_0x43d2f6,_0x10db15=[];return this[_0x36f233(0x124)][_0x36f233(0xfa)](_0x4947b1=>{const _0x4bc6b1=_0x36f233;_0x10db15[_0x4bc6b1(0x11e)](_0x4947b1[_0x4bc6b1(0x137)]());}),_0x10db15;}['fromJSON'](_0x41169a){const _0x325c4d=_0x43d2f6;for(const _0x41d643 of _0x41169a){const {id:_0x1903d6,shapeType:_0x4692e8}=_0x41d643,_0x44a5eb=this[_0x325c4d(0x133)](_0x4692e8,_0x1903d6,_0x41d643['shapeData']);_0x44a5eb&&_0x44a5eb[_0x325c4d(0x13d)]()&&this['_linesIds'][_0x325c4d(0x123)](_0x1903d6);}}[_0x43d2f6(0x110)](){const _0x1745eb=_0x43d2f6;this[_0x1745eb(0x10b)]||(this[_0x1745eb(0x124)]['forEach'](_0x5380fc=>{const _0x585efb=_0x1745eb;_0x5380fc[_0x585efb(0x110)]();}),this[_0x1745eb(0x124)]['clear'](),this[_0x1745eb(0x138)]['clear'](),this[_0x1745eb(0x101)][_0x1745eb(0x119)](),super[_0x1745eb(0x110)]());}}var $=Object[_0x43d2f6(0x12a)],V=(_0x145738,_0x5766bd,_0x576a0e,_0x3bc80b)=>{const _0x1b13a4=_0x43d2f6;for(var _0x1af9c5=_0x3bc80b>0x1?void 0x0:_0x3bc80b?$(_0x5766bd,_0x576a0e):_0x5766bd,_0x1be13=_0x145738[_0x1b13a4(0x11c)]-0x1,_0x4c9b53;_0x1be13>=0x0;_0x1be13--)(_0x4c9b53=_0x145738[_0x1be13])&&(_0x1af9c5=_0x4c9b53(_0x1af9c5)||_0x1af9c5);return _0x1af9c5;},K=(_0x3dec1c,_0x2ba0fc)=>(_0xb6bcdd,_0x494274)=>_0x2ba0fc(_0xb6bcdd,_0x494274,_0x3dec1c);const W=_0x43d2f6(0x102);let i=class extends _0x35ae6c{constructor(_0x4b5670){const _0x4ce9b6=_0x43d2f6;super(),d(this,_0x4ce9b6(0x103),new Map()),(this['_resourcesManagerService']=_0x4b5670,this[_0x4ce9b6(0xf5)]());}[_0x43d2f6(0x12b)](_0x2bb854,_0x2d941c){const _0x102e9c=_0x43d2f6;let _0x5251b7=this[_0x102e9c(0x103)]['get'](_0x2bb854);_0x5251b7||(_0x5251b7=new Map(),this[_0x102e9c(0x103)][_0x102e9c(0x10e)](_0x2bb854,_0x5251b7));let _0x38b0df=_0x5251b7[_0x102e9c(0xfd)](_0x2d941c);return _0x38b0df||(_0x38b0df=new T(),_0x5251b7[_0x102e9c(0x10e)](_0x2d941c,_0x38b0df)),_0x38b0df;}[_0x43d2f6(0xf6)](_0x5be272,_0x1f7e4f,_0xc88a01,_0x1823df,_0x2809cc){this['_ensureShapeModelManager'](_0x5be272,_0x1f7e4f)['addShape'](_0xc88a01,_0x1823df,_0x2809cc);}['removeShape'](_0x7301bb,_0x249632,_0x1d6131){const _0x58b3d4=_0x43d2f6;this[_0x58b3d4(0x12b)](_0x7301bb,_0x249632)[_0x58b3d4(0xfc)](_0x1d6131);}[_0x43d2f6(0x136)](_0x5ba3f9,_0x4424eb,_0x45d551){const _0x3954e4=_0x43d2f6;return this[_0x3954e4(0x12b)](_0x5ba3f9,_0x4424eb)['getShapeType'](_0x45d551);}[_0x43d2f6(0x120)](_0x1449f3,_0x15d43a,_0x2941f4){const _0x2a6552=_0x43d2f6;return this[_0x2a6552(0x12b)](_0x1449f3,_0x15d43a)[_0x2a6552(0x120)](_0x2941f4);}['hasShape'](_0x2954ef,_0x48ff8d,_0x361b1){const _0x4a089a=_0x43d2f6;return this[_0x4a089a(0x12b)](_0x2954ef,_0x48ff8d)[_0x4a089a(0x126)](_0x361b1);}[_0x43d2f6(0xff)](_0x2d777f,_0x1628c2,_0x381a06){const _0x12026c=_0x43d2f6;return this[_0x12026c(0x12b)](_0x2d777f,_0x1628c2)[_0x12026c(0x120)](_0x381a06);}[_0x43d2f6(0xfb)](_0x26b8f6,_0xe85016,_0x5e3696){const _0x217a10=_0x43d2f6,_0x1031dc=this[_0x217a10(0x12b)](_0x26b8f6,_0xe85016);if(!_0x1031dc[_0x217a10(0x120)](_0x5e3696))return;const _0xbb53ec=_0x1031dc[_0x217a10(0x124)][_0x217a10(0xfd)](_0x5e3696);if(_0xbb53ec)return _0xbb53ec[_0x217a10(0x127)]();}['getShapeModel'](_0x5ab0f6,_0x21eb2a,_0x27b411){const _0x5e108c=_0x43d2f6;return this[_0x5e108c(0x12b)](_0x5ab0f6,_0x21eb2a)['_shapes'][_0x5e108c(0xfd)](_0x27b411);}[_0x43d2f6(0x105)](_0x11977c,_0x1665e5,_0x569317){const _0x1e8533=_0x43d2f6;return this['_ensureShapeModelManager'](_0x11977c,_0x1665e5)[_0x1e8533(0x105)](_0x569317);}[_0x43d2f6(0xfe)](_0x493a2c,_0x462a70,_0x18aeb8){const _0x4068da=_0x43d2f6,_0x2ec232=this['_ensureShapeModelManager'](_0x493a2c,_0x462a70)[_0x4068da(0x124)][_0x4068da(0xfd)](_0x18aeb8);if(_0x2ec232)return _0x2ec232['getShapeRelation']();}['setShapeType'](){}['_serializeShapeForUnit'](_0x17193a){const _0x26ca13=_0x43d2f6,_0x4fad71={},_0x300ff2=this['_shapeModelManagerMap']['get'](_0x17193a);return _0x300ff2&&_0x300ff2['forEach']((_0xf4b4a6,_0x143f9b)=>{const _0x4ce04b=_0x2c52,_0x1c334e=_0xf4b4a6[_0x4ce04b(0x137)]();_0x1c334e[_0x4ce04b(0x11c)]>0x0&&(_0x4fad71[_0x143f9b]=_0x1c334e);}),JSON[_0x26ca13(0x106)](_0x4fad71);}[_0x43d2f6(0x107)](_0x4df6aa,_0x1f40d8){const _0x3d7e54=_0x43d2f6;Object[_0x3d7e54(0x117)](_0x1f40d8)[_0x3d7e54(0xfa)](_0x67b54d=>{const _0x4767ce=_0x3d7e54;this[_0x4767ce(0x12b)](_0x4df6aa,_0x67b54d)[_0x4767ce(0xf2)](_0x1f40d8[_0x67b54d]);});}[_0x43d2f6(0x137)](){const _0x5a0f08=_0x43d2f6,_0x43fc1e={};return this[_0x5a0f08(0x103)][_0x5a0f08(0xfa)]((_0x5dfeb0,_0x1bf6a6)=>{const _0x8950d5=_0x5a0f08;_0x43fc1e[_0x1bf6a6]={},_0x5dfeb0[_0x8950d5(0xfa)]((_0x5ed502,_0x3d0619)=>{const _0xf491ac=_0x8950d5;_0x43fc1e[_0x1bf6a6][_0x3d0619]=_0x5ed502[_0xf491ac(0x137)]();});}),_0x43fc1e;}[_0x43d2f6(0xf2)](_0x4e0281){const _0x3d0741=_0x43d2f6;Object[_0x3d0741(0x117)](_0x4e0281)['forEach'](_0x33b3c8=>{const _0x5cc450=_0x3d0741,_0x2f13ec=_0x4e0281[_0x33b3c8];Object['keys'](_0x2f13ec)[_0x5cc450(0xfa)](_0x47d970=>{const _0xb8996c=_0x5cc450;this[_0xb8996c(0x12b)](_0x33b3c8,_0x47d970)[_0xb8996c(0xf2)](_0x2f13ec[_0x47d970]);});});}[_0x43d2f6(0xf5)](){const _0x67c653=_0x43d2f6;this[_0x67c653(0xf3)][_0x67c653(0x140)]({'pluginName':W,'businesses':[_0x2eb040['UNIVER_SHEET']],'toJson':_0x34d9a6=>this[_0x67c653(0x12d)](_0x34d9a6),'parseJson':_0x548b3a=>JSON['parse'](_0x548b3a),'onLoad':(_0x49151e,_0x13d896)=>{const _0x39d058=_0x67c653;this[_0x39d058(0x107)](_0x49151e,_0x13d896);},'onUnLoad':_0x2c1e89=>{const _0x1df536=_0x67c653,_0x512b0d=this[_0x1df536(0x103)]['get'](_0x2c1e89);_0x512b0d&&(_0x512b0d[_0x1df536(0xfa)](_0x208b14=>{const _0x66f2d6=_0x1df536;_0x208b14[_0x66f2d6(0x110)]();}),this[_0x1df536(0x103)][_0x1df536(0x111)](_0x2c1e89));}});}['dispose'](){const _0x4ef744=_0x43d2f6;this[_0x4ef744(0x103)][_0x4ef744(0xfa)](_0x49244b=>{const _0x5bafac=_0x4ef744;_0x49244b[_0x5bafac(0xfa)](_0x3c5b1b=>{const _0x3c1b54=_0x5bafac;_0x3c5b1b[_0x3c1b54(0x110)]();});});}};i=V([K(0x0,_0x4fb513)],i);const u={'id':_0x43d2f6(0x121),'type':_0x1a3fdd[_0x43d2f6(0x11d)],'handler':(_0x44252d,_0x132c99)=>{const _0x471516=_0x43d2f6,{unitId:_0x380b20,subUnitId:_0xbc32be,shapeType:_0x3901a7,shapeId:_0x20f077,shapeData:_0x3b4995}=_0x132c99,_0x3ea7b4=_0x44252d[_0x471516(0xfd)](i)[_0x471516(0x10d)](_0x380b20,_0xbc32be,_0x20f077);return _0x3ea7b4&&(_0x3ea7b4[_0x471516(0x10f)](_0x3901a7),_0x3b4995&&(_0x3ea7b4==null||_0x3ea7b4['setShapeData'](_0x3b4995))),!0x0;}},pe={'id':_0x43d2f6(0x11a),'type':_0x1a3fdd[_0x43d2f6(0x104)],'handler':(_0x1ef5d0,_0x250d58)=>{const _0x2c592c=_0x43d2f6;if(!_0x250d58)return!0x1;const _0x342a82=_0x1ef5d0['get'](_0x39cdad),_0x3e0fa9=_0x1ef5d0[_0x2c592c(0xfd)](i),_0x337d29=_0x1ef5d0['get'](_0x2b6007),_0x4d49be=[],_0x42a073=[],{unitId:_0x20d981,subUnitId:_0x4757e8,shapeId:_0x5d3c95,shapeType:_0x5a6562,shapeData:_0xef2c57}=_0x250d58,_0x436d1d=_0x3e0fa9[_0x2c592c(0x10d)](_0x20d981,_0x4757e8,_0x5d3c95);if(_0x436d1d){const _0x16f152=_0x436d1d[_0x2c592c(0x120)](),_0x41f0bd=Object[_0x2c592c(0x13e)]({},_0x436d1d[_0x2c592c(0x127)]()),_0x26b3dd={'unitId':_0x20d981,'subUnitId':_0x4757e8,'shapeId':_0x5d3c95,'shapeType':_0x5a6562,'shapeData':_0xef2c57},_0x4b833f={'unitId':_0x20d981,'subUnitId':_0x4757e8,'shapeId':_0x5d3c95,'shapeType':_0x16f152,'shapeData':_0x41f0bd};return _0x4d49be[_0x2c592c(0x11e)]({'id':u['id'],'params':_0x26b3dd}),_0x42a073[_0x2c592c(0x11e)]({'id':u['id'],'params':_0x4b833f}),_0x4d49be[_0x2c592c(0x112)](_0xb8d66=>_0x342a82['syncExecuteCommand'](_0xb8d66['id'],_0xb8d66[_0x2c592c(0x131)]))&&_0x337d29[_0x2c592c(0x115)]({'unitID':_0x20d981,'redoMutations':[..._0x4d49be],'undoMutations':[..._0x42a073]}),!0x0;}return!0x1;}},Y={'id':_0x43d2f6(0xf4),'type':_0x1a3fdd[_0x43d2f6(0x11d)],'handler':(_0x442655,_0x7dc345)=>{const _0x3ca1ec=_0x43d2f6,{unitId:_0x2a0bb6,subUnitId:_0x17b2d4,shapeType:_0x1e0770,shapeId:_0x2131b7,shapeData:_0x3d1884}=_0x7dc345;return _0x442655['get'](i)[_0x3ca1ec(0xf6)](_0x2a0bb6,_0x17b2d4,_0x1e0770,_0x2131b7,_0x3d1884),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x1a3fdd['MUTATION'],'handler':(_0xa31334,_0x9c7ef2)=>{const _0x1b7218=_0x43d2f6,{unitId:_0x1392cd,subUnitId:_0x5b62b7,shapeId:_0x204c6a}=_0x9c7ef2;return _0xa31334[_0x1b7218(0xfd)](i)['removeShape'](_0x1392cd,_0x5b62b7,_0x204c6a),!0x0;}},Q={'id':_0x43d2f6(0x10c),'type':_0x1a3fdd[_0x43d2f6(0x11d)],'handler':(_0x273d16,_0x425848)=>{const _0x15930a=_0x43d2f6,{unitId:_0x4b5252,subUnitId:_0x29d3b7,shapeType:_0x2d18d2,shapeId:_0xcf0850,shapeData:_0x53797a}=_0x425848,_0x8494d4=_0x273d16['get'](i)[_0x15930a(0x10d)](_0x4b5252,_0x29d3b7,_0xcf0850);return _0x8494d4&&(_0x2d18d2!==void 0x0&&_0x8494d4[_0x15930a(0x10f)](_0x2d18d2),_0x53797a&&(_0x8494d4==null||_0x8494d4[_0x15930a(0x11b)](_0x53797a,!0x0))),!0x0;}},X=_0x43d2f6(0x139),m={};var Z=Object[_0x43d2f6(0x116)],k=Object[_0x43d2f6(0x12a)],ee=(_0xc7f629,_0x480c0f,_0x5676a9)=>_0x480c0f in _0xc7f629?Z(_0xc7f629,_0x480c0f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5676a9}):_0xc7f629[_0x480c0f]=_0x5676a9,ae=(_0x1ac263,_0x23b225,_0x279b9e,_0x4dfeca)=>{const _0xac1f=_0x43d2f6;for(var _0x509d45=_0x4dfeca>0x1?void 0x0:_0x4dfeca?k(_0x23b225,_0x279b9e):_0x23b225,_0x538155=_0x1ac263[_0xac1f(0x11c)]-0x1,_0x57a85f;_0x538155>=0x0;_0x538155--)(_0x57a85f=_0x1ac263[_0x538155])&&(_0x509d45=_0x57a85f(_0x509d45)||_0x509d45);return _0x509d45;},g=(_0x324eaf,_0x3e9aa3)=>(_0x25c0c9,_0x5a3877)=>_0x3e9aa3(_0x25c0c9,_0x5a3877,_0x324eaf),E=(_0x226dfc,_0x140e7e,_0x48db18)=>ee(_0x226dfc,typeof _0x140e7e!=_0x43d2f6(0x129)?_0x140e7e+'':_0x140e7e,_0x48db18);const se=_0x43d2f6(0x102);function _0x9da8(){const _0x585d5f=['clear','sheet.command.update-shape-type','setShapeData','length','MUTATION','push','294608TNwQFp','getShapeType','sheet.mutation.update-shape-type','onStarting','add','_shapes','1266OSbYkW','hasShape','getShapeData','_injector','symbol','getOwnPropertyDescriptor','_ensureShapeModelManager','_config','_serializeShapeForUnit','2jjZXme','disposeWithMe','has','params','174LvYwxX','addShape','onRendered','shapeId','getBasicShapeType','toJSON','_linesIds','sheets-shape.config','pluginName','5901860TwFrVx','325514cXpqIo','isLineShape','assign','registerCommand','registerPluginResource','getShapeRelation','UNIVER_SHEET','fromJSON','_resourcesManagerService','sheet.mutation.insert-shape','_initSnapshot','insertShape','225jsdTgp','6775320EhNjpe','2933uKhQEN','forEach','getShapeDataById','removeShape','get','getLineShapeRelation','getShapeTypeById','_initCommands','_groupIds','SHEET_SHAPE_PLUGIN','_shapeModelManagerMap','COMMAND','getBasicShapeRelation','stringify','_deserializeShapeForUnit','setConfig','12490874WRtWIy','_configService','_disposed','sheet.mutation.update-shape-data','getShapeModel','set','setShapeType','dispose','delete','every','11240raeLxX','_commandService','pushUndoRedo','defineProperty','keys','from'];_0x9da8=function(){return _0x585d5f;};return _0x9da8();}let S=class extends _0x1c26c6{constructor(_0x2d70e3=m,_0x290866,_0x92c0c1,_0x57631e){const _0xa1af1c=_0x43d2f6;super(),this[_0xa1af1c(0x12c)]=_0x2d70e3,this[_0xa1af1c(0x128)]=_0x290866,this[_0xa1af1c(0x114)]=_0x92c0c1,this[_0xa1af1c(0x10a)]=_0x57631e;const {..._0x5cf81c}=_0xd56f87({},m,this[_0xa1af1c(0x12c)]);this['_configService'][_0xa1af1c(0x108)](X,_0x5cf81c),this[_0xa1af1c(0x100)]();}[_0x43d2f6(0x134)](){const _0x39addc=_0x43d2f6;_0x193da0(this[_0x39addc(0x128)],[]);}[_0x43d2f6(0x122)](){const _0x3fc58f=_0x43d2f6,_0x28e0ab=this['_injector'];[[T],[i]][_0x3fc58f(0xfa)](_0x2b2e72=>_0x28e0ab[_0x3fc58f(0x123)](_0x2b2e72));}[_0x43d2f6(0x100)](){const _0x12d6e8=_0x43d2f6;[Y,q,u,Q][_0x12d6e8(0xfa)](_0x59c1f0=>this[_0x12d6e8(0x12f)](this[_0x12d6e8(0x114)][_0x12d6e8(0x13f)](_0x59c1f0)));}};function _0x2c52(_0xf2e40e,_0x13ef9e){_0xf2e40e=_0xf2e40e-0xf1;const _0x9da8da=_0x9da8();let _0x2c52a3=_0x9da8da[_0xf2e40e];return _0x2c52a3;}E(S,'type',_0x2eb040[_0x43d2f6(0xf1)]),E(S,_0x43d2f6(0x13a),se),S=ae([_0x5695e8(_0xa2a402),g(0x1,_0x2eca19(_0x2f6cf7)),g(0x2,_0x39cdad),g(0x3,_0x580d74)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4cc768=_0x1d7e;(function(_0x5e6635,_0x401031){const _0x2e0ec4=_0x1d7e,_0x42e4c1=_0x5e6635();while(!![]){try{const _0x1dc7f3=-parseInt(_0x2e0ec4(0x1b8))/0x1+-parseInt(_0x2e0ec4(0x1a2))/0x2+-parseInt(_0x2e0ec4(0x18c))/0x3+-parseInt(_0x2e0ec4(0x196))/0x4+-parseInt(_0x2e0ec4(0x1b1))/0x5*(-parseInt(_0x2e0ec4(0x192))/0x6)+parseInt(_0x2e0ec4(0x1a0))/0x7*(parseInt(_0x2e0ec4(0x190))/0x8)+parseInt(_0x2e0ec4(0x198))/0x9;if(_0x1dc7f3===_0x401031)break;else _0x42e4c1['push'](_0x42e4c1['shift']());}catch(_0x606fa0){_0x42e4c1['push'](_0x42e4c1['shift']());}}}(_0x221c,0x8c778));var R=Object[_0x4cc768(0x16d)],C=(_0x218ec6,_0x826148,_0x5e8f3a)=>_0x826148 in _0x218ec6?R(_0x218ec6,_0x826148,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e8f3a}):_0x218ec6[_0x826148]=_0x5e8f3a,d=(_0x389ca2,_0x47c50c,_0x1eacfa)=>C(_0x389ca2,typeof _0x47c50c!=_0x4cc768(0x1ba)?_0x47c50c+'':_0x47c50c,_0x1eacfa);function _0x221c(){const _0x47d6dd=['2457444medEoG','_initSnapshot','21054078pScHzF','delete','_injector','stringify','_deserializeShapeForUnit','_linesIds','sheet.mutation.insert-shape','COMMAND','816655BXrGZC','setShapeType','337708MRPHbB','from','getShapeModel','getShapeTypeById','_ensureShapeModelManager','shapeId','isLineShape','get','onRendered','_shapes','length','toJSON','removeShape','_serializeShapeForUnit','MUTATION','555OczyOg','dispose','SHEET_SHAPE_PLUGIN','getShapeType','disposeWithMe','_groupIds','shapeData','1061231SVuuHW','pluginName','symbol','insertShape','sheet.mutation.remove-shape','defineProperty','getOwnPropertyDescriptor','_commandService','clear','_disposed','add','_resourcesManagerService','push','getShapeDataById','setShapeData','type','forEach','registerPluginResource','set','fromJSON','registerCommand','has','_configService','getLineShapeRelation','_shapeModelManagerMap','getBasicShapeRelation','parse','UNIVER_SHEET','addShape','getShapeRelation','syncExecuteCommand','getBasicShapeType','onStarting','sheet.mutation.update-shape-data','sheet.mutation.update-shape-type','getShapeData','2012721MLvdcI','keys','hasShape','_initCommands','8OtoaHF','assign','34308pIDpyZ','pushUndoRedo','sheets-shape.config','_config'];_0x221c=function(){return _0x47d6dd;};return _0x221c();}import{Disposable as _0x204338,UniverInstanceType as _0x228f81,IResourceManagerService as _0x7f9972,CommandType as _0x285e23,ICommandService as _0x217751,IUndoRedoService as _0x45cb91,DependentOn as _0x4f414d,Inject as _0x2ff514,Injector as _0x3bc1fa,Plugin as _0x281049,merge as _0x5f0e29,touchDependencies as _0x4e6c8c,IConfigService as _0x472081}from'@univerjs/core';import{ShapeModel as _0x6af823,isConnectorShape as _0x4518b0}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x2ad86e}from'@univerjs-pro/license';class T extends _0x204338{constructor(){const _0x2e022a=_0x4cc768;super(),d(this,_0x2e022a(0x1ab),new Map()),d(this,_0x2e022a(0x19d),new Set()),d(this,_0x2e022a(0x1b6),new Set());}[_0x4cc768(0x184)](_0x3bf2de,_0x170877,_0x12c087){const _0x1fe2bb=_0x4cc768,_0x307e29=new _0x6af823(_0x3bf2de,_0x170877,_0x12c087);return this[_0x1fe2bb(0x1ab)][_0x1fe2bb(0x17a)](_0x170877,_0x307e29),_0x4518b0(_0x3bf2de)&&this[_0x1fe2bb(0x19d)][_0x1fe2bb(0x172)](_0x170877),_0x307e29;}['getBasicShapeRelation'](_0x510ef9){const _0x59d8c0=_0x4cc768;var _0x19a6ba,_0x2a278d;const _0x5b3536=[];for(const _0x1712b7 of this[_0x59d8c0(0x19d)]){const _0x91a3d8=this[_0x59d8c0(0x1ab)]['get'](_0x1712b7);if(_0x91a3d8){const _0x44c148=_0x91a3d8[_0x59d8c0(0x185)]();_0x44c148&&(((_0x19a6ba=_0x44c148['from'])==null?void 0x0:_0x19a6ba[_0x59d8c0(0x1a7)])===_0x510ef9&&_0x5b3536[_0x59d8c0(0x174)]({..._0x44c148[_0x59d8c0(0x1a3)],'lineShapeId':_0x1712b7,'isFrom':!0x0}),((_0x2a278d=_0x44c148['to'])==null?void 0x0:_0x2a278d[_0x59d8c0(0x1a7)])===_0x510ef9&&_0x5b3536[_0x59d8c0(0x174)]({..._0x44c148['to'],'lineShapeId':_0x1712b7,'isFrom':!0x1}));}}return _0x5b3536;}['getLineShapeRelation'](_0x48f530){const _0x3a768c=_0x4cc768,_0x17e0c1=this[_0x3a768c(0x1ab)][_0x3a768c(0x1a9)](_0x48f530);if(_0x17e0c1)return _0x17e0c1[_0x3a768c(0x185)]();}[_0x4cc768(0x1b4)](_0x3b6e35){const _0x4d5408=_0x4cc768,_0x2c97e1=this[_0x4d5408(0x1ab)][_0x4d5408(0x1a9)](_0x3b6e35);if(_0x2c97e1)return _0x2c97e1[_0x4d5408(0x1b4)]();}[_0x4cc768(0x18e)](_0x3fe782){const _0xf7d68b=_0x4cc768;return this[_0xf7d68b(0x1ab)][_0xf7d68b(0x17d)](_0x3fe782);}[_0x4cc768(0x1ae)](_0xd329c2){const _0x2f8b19=_0x4cc768,_0x4b1bfd=this[_0x2f8b19(0x1ab)]['get'](_0xd329c2);_0x4b1bfd&&(_0x4518b0(_0x4b1bfd[_0x2f8b19(0x1b4)]())&&this[_0x2f8b19(0x19d)]['delete'](_0xd329c2),this[_0x2f8b19(0x1ab)][_0x2f8b19(0x199)](_0xd329c2));}[_0x4cc768(0x1ad)](){const _0x28e39b=_0x4cc768,_0x586e77=[];return this[_0x28e39b(0x1ab)][_0x28e39b(0x178)](_0x4cf5cf=>{const _0x16a237=_0x28e39b;_0x586e77[_0x16a237(0x174)](_0x4cf5cf[_0x16a237(0x1ad)]());}),_0x586e77;}[_0x4cc768(0x17b)](_0x1ebd37){const _0x4fa94b=_0x4cc768;for(const _0x18e710 of _0x1ebd37){const {id:_0x4076e2,shapeType:_0x1b7b81}=_0x18e710,_0x19b013=this['addShape'](_0x1b7b81,_0x4076e2,_0x18e710[_0x4fa94b(0x1b7)]);_0x19b013&&_0x19b013[_0x4fa94b(0x1a8)]()&&this[_0x4fa94b(0x19d)][_0x4fa94b(0x172)](_0x4076e2);}}['dispose'](){const _0x2447ae=_0x4cc768;this[_0x2447ae(0x171)]||(this['_shapes'][_0x2447ae(0x178)](_0x1d1dc7=>{const _0x27905=_0x2447ae;_0x1d1dc7[_0x27905(0x1b2)]();}),this[_0x2447ae(0x1ab)][_0x2447ae(0x170)](),this['_linesIds'][_0x2447ae(0x170)](),this[_0x2447ae(0x1b6)][_0x2447ae(0x170)](),super[_0x2447ae(0x1b2)]());}}var $=Object[_0x4cc768(0x16e)],V=(_0x235098,_0x4a5fdb,_0x4e0eee,_0x188e13)=>{const _0x50fd5b=_0x4cc768;for(var _0x4fa205=_0x188e13>0x1?void 0x0:_0x188e13?$(_0x4a5fdb,_0x4e0eee):_0x4a5fdb,_0x243c2d=_0x235098[_0x50fd5b(0x1ac)]-0x1,_0x4d5390;_0x243c2d>=0x0;_0x243c2d--)(_0x4d5390=_0x235098[_0x243c2d])&&(_0x4fa205=_0x4d5390(_0x4fa205)||_0x4fa205);return _0x4fa205;},K=(_0x17996a,_0x487880)=>(_0x39ecc1,_0x5cd1da)=>_0x487880(_0x39ecc1,_0x5cd1da,_0x17996a);const W='SHEET_SHAPE_PLUGIN';let i=class extends _0x204338{constructor(_0x5937c7){const _0x5f007e=_0x4cc768;super(),d(this,_0x5f007e(0x180),new Map()),(this[_0x5f007e(0x173)]=_0x5937c7,this['_initSnapshot']());}[_0x4cc768(0x1a6)](_0x3644a6,_0x585865){const _0x365134=_0x4cc768;let _0x14cddb=this[_0x365134(0x180)][_0x365134(0x1a9)](_0x3644a6);_0x14cddb||(_0x14cddb=new Map(),this[_0x365134(0x180)][_0x365134(0x17a)](_0x3644a6,_0x14cddb));let _0x4efba5=_0x14cddb[_0x365134(0x1a9)](_0x585865);return _0x4efba5||(_0x4efba5=new T(),_0x14cddb[_0x365134(0x17a)](_0x585865,_0x4efba5)),_0x4efba5;}[_0x4cc768(0x1bb)](_0xdea604,_0x129af1,_0x391c97,_0x163ac6,_0x32a945){const _0x445d37=_0x4cc768;this[_0x445d37(0x1a6)](_0xdea604,_0x129af1)[_0x445d37(0x184)](_0x391c97,_0x163ac6,_0x32a945);}['removeShape'](_0x37fe45,_0x3fb77f,_0xe306b3){const _0x1e9218=_0x4cc768;this['_ensureShapeModelManager'](_0x37fe45,_0x3fb77f)[_0x1e9218(0x1ae)](_0xe306b3);}[_0x4cc768(0x187)](_0x1735a5,_0x5ba15d,_0x4b176a){const _0x54ec7b=_0x4cc768;return this[_0x54ec7b(0x1a6)](_0x1735a5,_0x5ba15d)[_0x54ec7b(0x1b4)](_0x4b176a);}['getShapeType'](_0x1de9b0,_0x23f353,_0x45c610){const _0x4b590a=_0x4cc768;return this[_0x4b590a(0x1a6)](_0x1de9b0,_0x23f353)[_0x4b590a(0x1b4)](_0x45c610);}[_0x4cc768(0x18e)](_0x15fdb2,_0x2354c4,_0x31ec30){const _0x507a0a=_0x4cc768;return this[_0x507a0a(0x1a6)](_0x15fdb2,_0x2354c4)[_0x507a0a(0x18e)](_0x31ec30);}[_0x4cc768(0x1a5)](_0x3e8229,_0xb34123,_0xccb51e){const _0x126196=_0x4cc768;return this[_0x126196(0x1a6)](_0x3e8229,_0xb34123)[_0x126196(0x1b4)](_0xccb51e);}[_0x4cc768(0x175)](_0x4c3b67,_0xc40aee,_0x510136){const _0x45bfd9=_0x4cc768,_0x42fb88=this[_0x45bfd9(0x1a6)](_0x4c3b67,_0xc40aee);if(!_0x42fb88[_0x45bfd9(0x1b4)](_0x510136))return;const _0xcee85c=_0x42fb88[_0x45bfd9(0x1ab)]['get'](_0x510136);if(_0xcee85c)return _0xcee85c[_0x45bfd9(0x18b)]();}['getShapeModel'](_0x113551,_0x1da043,_0x426606){const _0x34d44f=_0x4cc768;return this['_ensureShapeModelManager'](_0x113551,_0x1da043)[_0x34d44f(0x1ab)][_0x34d44f(0x1a9)](_0x426606);}['getBasicShapeRelation'](_0x55ffef,_0x19f2d1,_0x5cfafc){const _0x3efef9=_0x4cc768;return this[_0x3efef9(0x1a6)](_0x55ffef,_0x19f2d1)[_0x3efef9(0x181)](_0x5cfafc);}[_0x4cc768(0x17f)](_0x2327cb,_0x9f134f,_0x1e8370){const _0x543ba4=_0x4cc768,_0xd5b384=this['_ensureShapeModelManager'](_0x2327cb,_0x9f134f)[_0x543ba4(0x1ab)][_0x543ba4(0x1a9)](_0x1e8370);if(_0xd5b384)return _0xd5b384['getShapeRelation']();}[_0x4cc768(0x1a1)](){}[_0x4cc768(0x1af)](_0x469302){const _0x5aa124=_0x4cc768,_0x5b4f32={},_0x500c05=this[_0x5aa124(0x180)][_0x5aa124(0x1a9)](_0x469302);return _0x500c05&&_0x500c05[_0x5aa124(0x178)]((_0x3d8616,_0x33f7a2)=>{_0x5b4f32[_0x33f7a2]=_0x3d8616['toJSON']();}),JSON[_0x5aa124(0x19b)](_0x5b4f32);}[_0x4cc768(0x19c)](_0x3e5eb5,_0x5788cf){const _0x58286d=_0x4cc768;Object[_0x58286d(0x18d)](_0x5788cf)[_0x58286d(0x178)](_0x288c09=>{const _0x1d001e=_0x58286d;this[_0x1d001e(0x1a6)](_0x3e5eb5,_0x288c09)['fromJSON'](_0x5788cf[_0x288c09]);});}[_0x4cc768(0x1ad)](){const _0x3abd05=_0x4cc768,_0x1fbc88={};return this[_0x3abd05(0x180)][_0x3abd05(0x178)]((_0x4745d3,_0x428fcb)=>{_0x1fbc88[_0x428fcb]={},_0x4745d3['forEach']((_0x1532e1,_0x30cdcc)=>{_0x1fbc88[_0x428fcb][_0x30cdcc]=_0x1532e1['toJSON']();});}),_0x1fbc88;}[_0x4cc768(0x17b)](_0x487028){const _0x3ae720=_0x4cc768;Object['keys'](_0x487028)[_0x3ae720(0x178)](_0x3f3aeb=>{const _0x435980=_0x3ae720,_0x425a7c=_0x487028[_0x3f3aeb];Object[_0x435980(0x18d)](_0x425a7c)[_0x435980(0x178)](_0x155d03=>{const _0x38d24b=_0x435980;this[_0x38d24b(0x1a6)](_0x3f3aeb,_0x155d03)[_0x38d24b(0x17b)](_0x425a7c[_0x155d03]);});});}[_0x4cc768(0x197)](){const _0x3b3565=_0x4cc768;this[_0x3b3565(0x173)][_0x3b3565(0x179)]({'pluginName':W,'businesses':[_0x228f81[_0x3b3565(0x183)]],'toJson':_0x27733d=>this[_0x3b3565(0x1af)](_0x27733d),'parseJson':_0x598f64=>JSON[_0x3b3565(0x182)](_0x598f64),'onLoad':(_0x3f376a,_0x5b1bc9)=>{const _0x480f99=_0x3b3565;this[_0x480f99(0x19c)](_0x3f376a,_0x5b1bc9);},'onUnLoad':_0x2aa47c=>{const _0x2996f4=_0x3b3565,_0x35d9c8=this[_0x2996f4(0x180)][_0x2996f4(0x1a9)](_0x2aa47c);_0x35d9c8&&(_0x35d9c8[_0x2996f4(0x178)](_0x2ed4df=>{const _0xe0c22e=_0x2996f4;_0x2ed4df[_0xe0c22e(0x1b2)]();}),this['_shapeModelManagerMap']['delete'](_0x2aa47c));}});}[_0x4cc768(0x1b2)](){const _0x5217d5=_0x4cc768;this[_0x5217d5(0x180)][_0x5217d5(0x178)](_0x33a67d=>{const _0x421ba1=_0x5217d5;_0x33a67d[_0x421ba1(0x178)](_0x3e1f37=>{_0x3e1f37['dispose']();});});}};i=V([K(0x0,_0x7f9972)],i);const u={'id':_0x4cc768(0x18a),'type':_0x285e23[_0x4cc768(0x1b0)],'handler':(_0x30d073,_0x496539)=>{const _0x32af58=_0x4cc768,{unitId:_0x11c280,subUnitId:_0x373ffd,shapeType:_0x5161fe,shapeId:_0x259828,shapeData:_0x111c94}=_0x496539,_0x5321b6=_0x30d073[_0x32af58(0x1a9)](i)[_0x32af58(0x1a4)](_0x11c280,_0x373ffd,_0x259828);return _0x5321b6&&(_0x5321b6[_0x32af58(0x1a1)](_0x5161fe),_0x111c94&&(_0x5321b6==null||_0x5321b6[_0x32af58(0x176)](_0x111c94))),!0x0;}},pe={'id':'sheet.command.update-shape-type','type':_0x285e23[_0x4cc768(0x19f)],'handler':(_0x152acf,_0xb0b4a2)=>{const _0xc59c3a=_0x4cc768;if(!_0xb0b4a2)return!0x1;const _0x5b0ca6=_0x152acf[_0xc59c3a(0x1a9)](_0x217751),_0x18d76b=_0x152acf[_0xc59c3a(0x1a9)](i),_0x14b2ea=_0x152acf['get'](_0x45cb91),_0x32f0b1=[],_0x55f419=[],{unitId:_0x13aedc,subUnitId:_0x136a87,shapeId:_0xab034f,shapeType:_0x16426a,shapeData:_0x4b0ea1}=_0xb0b4a2,_0x3fd5bd=_0x18d76b['getShapeModel'](_0x13aedc,_0x136a87,_0xab034f);if(_0x3fd5bd){const _0x52b69b=_0x3fd5bd[_0xc59c3a(0x1b4)](),_0x37397f=Object[_0xc59c3a(0x191)]({},_0x3fd5bd['getShapeData']()),_0x5450d0={'unitId':_0x13aedc,'subUnitId':_0x136a87,'shapeId':_0xab034f,'shapeType':_0x16426a,'shapeData':_0x4b0ea1},_0x14a899={'unitId':_0x13aedc,'subUnitId':_0x136a87,'shapeId':_0xab034f,'shapeType':_0x52b69b,'shapeData':_0x37397f};return _0x32f0b1['push']({'id':u['id'],'params':_0x5450d0}),_0x55f419[_0xc59c3a(0x174)]({'id':u['id'],'params':_0x14a899}),_0x32f0b1['every'](_0xa9b125=>_0x5b0ca6[_0xc59c3a(0x186)](_0xa9b125['id'],_0xa9b125['params']))&&_0x14b2ea[_0xc59c3a(0x193)]({'unitID':_0x13aedc,'redoMutations':[..._0x32f0b1],'undoMutations':[..._0x55f419]}),!0x0;}return!0x1;}},Y={'id':_0x4cc768(0x19e),'type':_0x285e23[_0x4cc768(0x1b0)],'handler':(_0x566a3d,_0x17e3f4)=>{const _0x44be04=_0x4cc768,{unitId:_0x1bcbae,subUnitId:_0x10a43e,shapeType:_0x4370ca,shapeId:_0x51398b,shapeData:_0x406148}=_0x17e3f4;return _0x566a3d['get'](i)[_0x44be04(0x1bb)](_0x1bcbae,_0x10a43e,_0x4370ca,_0x51398b,_0x406148),!0x0;}},q={'id':_0x4cc768(0x1bc),'type':_0x285e23['MUTATION'],'handler':(_0x1007a4,_0x364b7a)=>{const _0x185351=_0x4cc768,{unitId:_0x33c977,subUnitId:_0x295138,shapeId:_0x34450f}=_0x364b7a;return _0x1007a4[_0x185351(0x1a9)](i)[_0x185351(0x1ae)](_0x33c977,_0x295138,_0x34450f),!0x0;}},Q={'id':_0x4cc768(0x189),'type':_0x285e23[_0x4cc768(0x1b0)],'handler':(_0xee9301,_0x12766d)=>{const _0x193a4c=_0x4cc768,{unitId:_0x29e808,subUnitId:_0x286936,shapeType:_0x54a1e1,shapeId:_0x41dc4d,shapeData:_0x129309}=_0x12766d,_0x47c707=_0xee9301[_0x193a4c(0x1a9)](i)[_0x193a4c(0x1a4)](_0x29e808,_0x286936,_0x41dc4d);return _0x47c707&&(_0x54a1e1!==void 0x0&&_0x47c707['setShapeType'](_0x54a1e1),_0x129309&&(_0x47c707==null||_0x47c707[_0x193a4c(0x176)](_0x129309,!0x0))),!0x0;}},X=_0x4cc768(0x194),m={};function _0x1d7e(_0x2c3938,_0x39cd34){_0x2c3938=_0x2c3938-0x16d;const _0x221c11=_0x221c();let _0x1d7eb2=_0x221c11[_0x2c3938];return _0x1d7eb2;}var Z=Object[_0x4cc768(0x16d)],k=Object['getOwnPropertyDescriptor'],ee=(_0x36b4e5,_0xcc9500,_0x28c414)=>_0xcc9500 in _0x36b4e5?Z(_0x36b4e5,_0xcc9500,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28c414}):_0x36b4e5[_0xcc9500]=_0x28c414,ae=(_0x20995c,_0x24a57c,_0x1f336a,_0x13a385)=>{const _0x5d3770=_0x4cc768;for(var _0x2590a8=_0x13a385>0x1?void 0x0:_0x13a385?k(_0x24a57c,_0x1f336a):_0x24a57c,_0x93e89e=_0x20995c[_0x5d3770(0x1ac)]-0x1,_0x2a3468;_0x93e89e>=0x0;_0x93e89e--)(_0x2a3468=_0x20995c[_0x93e89e])&&(_0x2590a8=_0x2a3468(_0x2590a8)||_0x2590a8);return _0x2590a8;},g=(_0x3d27c5,_0x4e21ca)=>(_0x14da34,_0x39ef7b)=>_0x4e21ca(_0x14da34,_0x39ef7b,_0x3d27c5),E=(_0x2c9ba2,_0x15d45a,_0x541c70)=>ee(_0x2c9ba2,typeof _0x15d45a!=_0x4cc768(0x1ba)?_0x15d45a+'':_0x15d45a,_0x541c70);const se=_0x4cc768(0x1b3);let S=class extends _0x281049{constructor(_0x590bef=m,_0x5d7173,_0x59da61,_0x212fd5){const _0x5f265e=_0x4cc768;super(),this[_0x5f265e(0x195)]=_0x590bef,this[_0x5f265e(0x19a)]=_0x5d7173,this[_0x5f265e(0x16f)]=_0x59da61,this['_configService']=_0x212fd5;const {..._0x2f18e4}=_0x5f0e29({},m,this['_config']);this[_0x5f265e(0x17e)]['setConfig'](X,_0x2f18e4),this[_0x5f265e(0x18f)]();}[_0x4cc768(0x1aa)](){const _0x4cfae8=_0x4cc768;_0x4e6c8c(this[_0x4cfae8(0x19a)],[]);}[_0x4cc768(0x188)](){const _0x31c578=_0x4cc768,_0x89cd4=this[_0x31c578(0x19a)];[[T],[i]][_0x31c578(0x178)](_0xc060b5=>_0x89cd4['add'](_0xc060b5));}[_0x4cc768(0x18f)](){const _0xcb8660=_0x4cc768;[Y,q,u,Q][_0xcb8660(0x178)](_0x20c2cc=>this[_0xcb8660(0x1b5)](this[_0xcb8660(0x16f)][_0xcb8660(0x17c)](_0x20c2cc)));}};E(S,_0x4cc768(0x177),_0x228f81[_0x4cc768(0x183)]),E(S,_0x4cc768(0x1b9),se),S=ae([_0x4f414d(_0x2ad86e),g(0x1,_0x2ff514(_0x3bc1fa)),g(0x2,_0x217751),g(0x3,_0x472081)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
1
+ const _0x43d2f6=_0x2c52;(function(_0x417f8e,_0x4bd05d){const _0x44a5de=_0x2c52,_0x4851cf=_0x417f8e();while(!![]){try{const _0x46ab44=-parseInt(_0x44a5de(0xf9))/0x1*(-parseInt(_0x44a5de(0x12e))/0x2)+parseInt(_0x44a5de(0x125))/0x3*(-parseInt(_0x44a5de(0x113))/0x4)+parseInt(_0x44a5de(0x13b))/0x5+parseInt(_0x44a5de(0x132))/0x6*(parseInt(_0x44a5de(0x13c))/0x7)+parseInt(_0x44a5de(0x11f))/0x8*(-parseInt(_0x44a5de(0xf7))/0x9)+-parseInt(_0x44a5de(0xf8))/0xa+parseInt(_0x44a5de(0x109))/0xb;if(_0x46ab44===_0x4bd05d)break;else _0x4851cf['push'](_0x4851cf['shift']());}catch(_0x698ff6){_0x4851cf['push'](_0x4851cf['shift']());}}}(_0x9da8,0xd7ac3));var R=Object['defineProperty'],C=(_0x357b2a,_0xa26520,_0x482901)=>_0xa26520 in _0x357b2a?R(_0x357b2a,_0xa26520,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x482901}):_0x357b2a[_0xa26520]=_0x482901,d=(_0x440fea,_0x49c4b9,_0x1c4cb8)=>C(_0x440fea,typeof _0x49c4b9!=_0x43d2f6(0x129)?_0x49c4b9+'':_0x49c4b9,_0x1c4cb8);import{Disposable as _0x35ae6c,UniverInstanceType as _0x2eb040,IResourceManagerService as _0x4fb513,CommandType as _0x1a3fdd,ICommandService as _0x39cdad,IUndoRedoService as _0x2b6007,DependentOn as _0x5695e8,Inject as _0x2eca19,Injector as _0x2f6cf7,Plugin as _0x1c26c6,merge as _0xd56f87,touchDependencies as _0x193da0,IConfigService as _0x580d74}from'@univerjs/core';import{ShapeModel as _0x34c168,isConnectorShape as _0x193e62}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0xa2a402}from'@univerjs-pro/license';class T extends _0x35ae6c{constructor(){const _0x345049=_0x43d2f6;super(),d(this,_0x345049(0x124),new Map()),d(this,_0x345049(0x138),new Set()),d(this,_0x345049(0x101),new Set());}[_0x43d2f6(0x133)](_0x549d0e,_0x396566,_0x2bf937){const _0x2cca6a=_0x43d2f6,_0x2fe8cc=new _0x34c168(_0x549d0e,_0x396566,_0x2bf937);return this[_0x2cca6a(0x124)][_0x2cca6a(0x10e)](_0x396566,_0x2fe8cc),_0x193e62(_0x549d0e)&&this[_0x2cca6a(0x138)][_0x2cca6a(0x123)](_0x396566),_0x2fe8cc;}['getBasicShapeRelation'](_0x3c4bcc){const _0x1e18c7=_0x43d2f6;var _0x19d8cc,_0x5216dc;const _0x45c0df=[];for(const _0x107610 of this[_0x1e18c7(0x138)]){const _0x3d4293=this[_0x1e18c7(0x124)][_0x1e18c7(0xfd)](_0x107610);if(_0x3d4293){const _0x340b27=_0x3d4293[_0x1e18c7(0x141)]();_0x340b27&&(((_0x19d8cc=_0x340b27[_0x1e18c7(0x118)])==null?void 0x0:_0x19d8cc[_0x1e18c7(0x135)])===_0x3c4bcc&&_0x45c0df['push']({..._0x340b27[_0x1e18c7(0x118)],'lineShapeId':_0x107610,'isFrom':!0x0}),((_0x5216dc=_0x340b27['to'])==null?void 0x0:_0x5216dc['shapeId'])===_0x3c4bcc&&_0x45c0df[_0x1e18c7(0x11e)]({..._0x340b27['to'],'lineShapeId':_0x107610,'isFrom':!0x1}));}}return _0x45c0df;}[_0x43d2f6(0xfe)](_0x502b72){const _0x5355e6=_0x43d2f6,_0x16271f=this[_0x5355e6(0x124)][_0x5355e6(0xfd)](_0x502b72);if(_0x16271f)return _0x16271f[_0x5355e6(0x141)]();}[_0x43d2f6(0x120)](_0x84bd64){const _0x4a5b66=_0x43d2f6,_0x2c169c=this[_0x4a5b66(0x124)]['get'](_0x84bd64);if(_0x2c169c)return _0x2c169c[_0x4a5b66(0x120)]();}['hasShape'](_0x462211){const _0x52cd0b=_0x43d2f6;return this['_shapes'][_0x52cd0b(0x130)](_0x462211);}['removeShape'](_0x2fac44){const _0x5c3d1e=_0x43d2f6,_0x39172d=this[_0x5c3d1e(0x124)]['get'](_0x2fac44);_0x39172d&&(_0x193e62(_0x39172d['getShapeType']())&&this[_0x5c3d1e(0x138)][_0x5c3d1e(0x111)](_0x2fac44),this[_0x5c3d1e(0x124)][_0x5c3d1e(0x111)](_0x2fac44));}[_0x43d2f6(0x137)](){const _0x36f233=_0x43d2f6,_0x10db15=[];return this[_0x36f233(0x124)][_0x36f233(0xfa)](_0x4947b1=>{const _0x4bc6b1=_0x36f233;_0x10db15[_0x4bc6b1(0x11e)](_0x4947b1[_0x4bc6b1(0x137)]());}),_0x10db15;}['fromJSON'](_0x41169a){const _0x325c4d=_0x43d2f6;for(const _0x41d643 of _0x41169a){const {id:_0x1903d6,shapeType:_0x4692e8}=_0x41d643,_0x44a5eb=this[_0x325c4d(0x133)](_0x4692e8,_0x1903d6,_0x41d643['shapeData']);_0x44a5eb&&_0x44a5eb[_0x325c4d(0x13d)]()&&this['_linesIds'][_0x325c4d(0x123)](_0x1903d6);}}[_0x43d2f6(0x110)](){const _0x1745eb=_0x43d2f6;this[_0x1745eb(0x10b)]||(this[_0x1745eb(0x124)]['forEach'](_0x5380fc=>{const _0x585efb=_0x1745eb;_0x5380fc[_0x585efb(0x110)]();}),this[_0x1745eb(0x124)]['clear'](),this[_0x1745eb(0x138)]['clear'](),this[_0x1745eb(0x101)][_0x1745eb(0x119)](),super[_0x1745eb(0x110)]());}}var $=Object[_0x43d2f6(0x12a)],V=(_0x145738,_0x5766bd,_0x576a0e,_0x3bc80b)=>{const _0x1b13a4=_0x43d2f6;for(var _0x1af9c5=_0x3bc80b>0x1?void 0x0:_0x3bc80b?$(_0x5766bd,_0x576a0e):_0x5766bd,_0x1be13=_0x145738[_0x1b13a4(0x11c)]-0x1,_0x4c9b53;_0x1be13>=0x0;_0x1be13--)(_0x4c9b53=_0x145738[_0x1be13])&&(_0x1af9c5=_0x4c9b53(_0x1af9c5)||_0x1af9c5);return _0x1af9c5;},K=(_0x3dec1c,_0x2ba0fc)=>(_0xb6bcdd,_0x494274)=>_0x2ba0fc(_0xb6bcdd,_0x494274,_0x3dec1c);const W=_0x43d2f6(0x102);let i=class extends _0x35ae6c{constructor(_0x4b5670){const _0x4ce9b6=_0x43d2f6;super(),d(this,_0x4ce9b6(0x103),new Map()),(this['_resourcesManagerService']=_0x4b5670,this[_0x4ce9b6(0xf5)]());}[_0x43d2f6(0x12b)](_0x2bb854,_0x2d941c){const _0x102e9c=_0x43d2f6;let _0x5251b7=this[_0x102e9c(0x103)]['get'](_0x2bb854);_0x5251b7||(_0x5251b7=new Map(),this[_0x102e9c(0x103)][_0x102e9c(0x10e)](_0x2bb854,_0x5251b7));let _0x38b0df=_0x5251b7[_0x102e9c(0xfd)](_0x2d941c);return _0x38b0df||(_0x38b0df=new T(),_0x5251b7[_0x102e9c(0x10e)](_0x2d941c,_0x38b0df)),_0x38b0df;}[_0x43d2f6(0xf6)](_0x5be272,_0x1f7e4f,_0xc88a01,_0x1823df,_0x2809cc){this['_ensureShapeModelManager'](_0x5be272,_0x1f7e4f)['addShape'](_0xc88a01,_0x1823df,_0x2809cc);}['removeShape'](_0x7301bb,_0x249632,_0x1d6131){const _0x58b3d4=_0x43d2f6;this[_0x58b3d4(0x12b)](_0x7301bb,_0x249632)[_0x58b3d4(0xfc)](_0x1d6131);}[_0x43d2f6(0x136)](_0x5ba3f9,_0x4424eb,_0x45d551){const _0x3954e4=_0x43d2f6;return this[_0x3954e4(0x12b)](_0x5ba3f9,_0x4424eb)['getShapeType'](_0x45d551);}[_0x43d2f6(0x120)](_0x1449f3,_0x15d43a,_0x2941f4){const _0x2a6552=_0x43d2f6;return this[_0x2a6552(0x12b)](_0x1449f3,_0x15d43a)[_0x2a6552(0x120)](_0x2941f4);}['hasShape'](_0x2954ef,_0x48ff8d,_0x361b1){const _0x4a089a=_0x43d2f6;return this[_0x4a089a(0x12b)](_0x2954ef,_0x48ff8d)[_0x4a089a(0x126)](_0x361b1);}[_0x43d2f6(0xff)](_0x2d777f,_0x1628c2,_0x381a06){const _0x12026c=_0x43d2f6;return this[_0x12026c(0x12b)](_0x2d777f,_0x1628c2)[_0x12026c(0x120)](_0x381a06);}[_0x43d2f6(0xfb)](_0x26b8f6,_0xe85016,_0x5e3696){const _0x217a10=_0x43d2f6,_0x1031dc=this[_0x217a10(0x12b)](_0x26b8f6,_0xe85016);if(!_0x1031dc[_0x217a10(0x120)](_0x5e3696))return;const _0xbb53ec=_0x1031dc[_0x217a10(0x124)][_0x217a10(0xfd)](_0x5e3696);if(_0xbb53ec)return _0xbb53ec[_0x217a10(0x127)]();}['getShapeModel'](_0x5ab0f6,_0x21eb2a,_0x27b411){const _0x5e108c=_0x43d2f6;return this[_0x5e108c(0x12b)](_0x5ab0f6,_0x21eb2a)['_shapes'][_0x5e108c(0xfd)](_0x27b411);}[_0x43d2f6(0x105)](_0x11977c,_0x1665e5,_0x569317){const _0x1e8533=_0x43d2f6;return this['_ensureShapeModelManager'](_0x11977c,_0x1665e5)[_0x1e8533(0x105)](_0x569317);}[_0x43d2f6(0xfe)](_0x493a2c,_0x462a70,_0x18aeb8){const _0x4068da=_0x43d2f6,_0x2ec232=this['_ensureShapeModelManager'](_0x493a2c,_0x462a70)[_0x4068da(0x124)][_0x4068da(0xfd)](_0x18aeb8);if(_0x2ec232)return _0x2ec232['getShapeRelation']();}['setShapeType'](){}['_serializeShapeForUnit'](_0x17193a){const _0x26ca13=_0x43d2f6,_0x4fad71={},_0x300ff2=this['_shapeModelManagerMap']['get'](_0x17193a);return _0x300ff2&&_0x300ff2['forEach']((_0xf4b4a6,_0x143f9b)=>{const _0x4ce04b=_0x2c52,_0x1c334e=_0xf4b4a6[_0x4ce04b(0x137)]();_0x1c334e[_0x4ce04b(0x11c)]>0x0&&(_0x4fad71[_0x143f9b]=_0x1c334e);}),JSON[_0x26ca13(0x106)](_0x4fad71);}[_0x43d2f6(0x107)](_0x4df6aa,_0x1f40d8){const _0x3d7e54=_0x43d2f6;Object[_0x3d7e54(0x117)](_0x1f40d8)[_0x3d7e54(0xfa)](_0x67b54d=>{const _0x4767ce=_0x3d7e54;this[_0x4767ce(0x12b)](_0x4df6aa,_0x67b54d)[_0x4767ce(0xf2)](_0x1f40d8[_0x67b54d]);});}[_0x43d2f6(0x137)](){const _0x5a0f08=_0x43d2f6,_0x43fc1e={};return this[_0x5a0f08(0x103)][_0x5a0f08(0xfa)]((_0x5dfeb0,_0x1bf6a6)=>{const _0x8950d5=_0x5a0f08;_0x43fc1e[_0x1bf6a6]={},_0x5dfeb0[_0x8950d5(0xfa)]((_0x5ed502,_0x3d0619)=>{const _0xf491ac=_0x8950d5;_0x43fc1e[_0x1bf6a6][_0x3d0619]=_0x5ed502[_0xf491ac(0x137)]();});}),_0x43fc1e;}[_0x43d2f6(0xf2)](_0x4e0281){const _0x3d0741=_0x43d2f6;Object[_0x3d0741(0x117)](_0x4e0281)['forEach'](_0x33b3c8=>{const _0x5cc450=_0x3d0741,_0x2f13ec=_0x4e0281[_0x33b3c8];Object['keys'](_0x2f13ec)[_0x5cc450(0xfa)](_0x47d970=>{const _0xb8996c=_0x5cc450;this[_0xb8996c(0x12b)](_0x33b3c8,_0x47d970)[_0xb8996c(0xf2)](_0x2f13ec[_0x47d970]);});});}[_0x43d2f6(0xf5)](){const _0x67c653=_0x43d2f6;this[_0x67c653(0xf3)][_0x67c653(0x140)]({'pluginName':W,'businesses':[_0x2eb040['UNIVER_SHEET']],'toJson':_0x34d9a6=>this[_0x67c653(0x12d)](_0x34d9a6),'parseJson':_0x548b3a=>JSON['parse'](_0x548b3a),'onLoad':(_0x49151e,_0x13d896)=>{const _0x39d058=_0x67c653;this[_0x39d058(0x107)](_0x49151e,_0x13d896);},'onUnLoad':_0x2c1e89=>{const _0x1df536=_0x67c653,_0x512b0d=this[_0x1df536(0x103)]['get'](_0x2c1e89);_0x512b0d&&(_0x512b0d[_0x1df536(0xfa)](_0x208b14=>{const _0x66f2d6=_0x1df536;_0x208b14[_0x66f2d6(0x110)]();}),this[_0x1df536(0x103)][_0x1df536(0x111)](_0x2c1e89));}});}['dispose'](){const _0x4ef744=_0x43d2f6;this[_0x4ef744(0x103)][_0x4ef744(0xfa)](_0x49244b=>{const _0x5bafac=_0x4ef744;_0x49244b[_0x5bafac(0xfa)](_0x3c5b1b=>{const _0x3c1b54=_0x5bafac;_0x3c5b1b[_0x3c1b54(0x110)]();});});}};i=V([K(0x0,_0x4fb513)],i);const u={'id':_0x43d2f6(0x121),'type':_0x1a3fdd[_0x43d2f6(0x11d)],'handler':(_0x44252d,_0x132c99)=>{const _0x471516=_0x43d2f6,{unitId:_0x380b20,subUnitId:_0xbc32be,shapeType:_0x3901a7,shapeId:_0x20f077,shapeData:_0x3b4995}=_0x132c99,_0x3ea7b4=_0x44252d[_0x471516(0xfd)](i)[_0x471516(0x10d)](_0x380b20,_0xbc32be,_0x20f077);return _0x3ea7b4&&(_0x3ea7b4[_0x471516(0x10f)](_0x3901a7),_0x3b4995&&(_0x3ea7b4==null||_0x3ea7b4['setShapeData'](_0x3b4995))),!0x0;}},pe={'id':_0x43d2f6(0x11a),'type':_0x1a3fdd[_0x43d2f6(0x104)],'handler':(_0x1ef5d0,_0x250d58)=>{const _0x2c592c=_0x43d2f6;if(!_0x250d58)return!0x1;const _0x342a82=_0x1ef5d0['get'](_0x39cdad),_0x3e0fa9=_0x1ef5d0[_0x2c592c(0xfd)](i),_0x337d29=_0x1ef5d0['get'](_0x2b6007),_0x4d49be=[],_0x42a073=[],{unitId:_0x20d981,subUnitId:_0x4757e8,shapeId:_0x5d3c95,shapeType:_0x5a6562,shapeData:_0xef2c57}=_0x250d58,_0x436d1d=_0x3e0fa9[_0x2c592c(0x10d)](_0x20d981,_0x4757e8,_0x5d3c95);if(_0x436d1d){const _0x16f152=_0x436d1d[_0x2c592c(0x120)](),_0x41f0bd=Object[_0x2c592c(0x13e)]({},_0x436d1d[_0x2c592c(0x127)]()),_0x26b3dd={'unitId':_0x20d981,'subUnitId':_0x4757e8,'shapeId':_0x5d3c95,'shapeType':_0x5a6562,'shapeData':_0xef2c57},_0x4b833f={'unitId':_0x20d981,'subUnitId':_0x4757e8,'shapeId':_0x5d3c95,'shapeType':_0x16f152,'shapeData':_0x41f0bd};return _0x4d49be[_0x2c592c(0x11e)]({'id':u['id'],'params':_0x26b3dd}),_0x42a073[_0x2c592c(0x11e)]({'id':u['id'],'params':_0x4b833f}),_0x4d49be[_0x2c592c(0x112)](_0xb8d66=>_0x342a82['syncExecuteCommand'](_0xb8d66['id'],_0xb8d66[_0x2c592c(0x131)]))&&_0x337d29[_0x2c592c(0x115)]({'unitID':_0x20d981,'redoMutations':[..._0x4d49be],'undoMutations':[..._0x42a073]}),!0x0;}return!0x1;}},Y={'id':_0x43d2f6(0xf4),'type':_0x1a3fdd[_0x43d2f6(0x11d)],'handler':(_0x442655,_0x7dc345)=>{const _0x3ca1ec=_0x43d2f6,{unitId:_0x2a0bb6,subUnitId:_0x17b2d4,shapeType:_0x1e0770,shapeId:_0x2131b7,shapeData:_0x3d1884}=_0x7dc345;return _0x442655['get'](i)[_0x3ca1ec(0xf6)](_0x2a0bb6,_0x17b2d4,_0x1e0770,_0x2131b7,_0x3d1884),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x1a3fdd['MUTATION'],'handler':(_0xa31334,_0x9c7ef2)=>{const _0x1b7218=_0x43d2f6,{unitId:_0x1392cd,subUnitId:_0x5b62b7,shapeId:_0x204c6a}=_0x9c7ef2;return _0xa31334[_0x1b7218(0xfd)](i)['removeShape'](_0x1392cd,_0x5b62b7,_0x204c6a),!0x0;}},Q={'id':_0x43d2f6(0x10c),'type':_0x1a3fdd[_0x43d2f6(0x11d)],'handler':(_0x273d16,_0x425848)=>{const _0x15930a=_0x43d2f6,{unitId:_0x4b5252,subUnitId:_0x29d3b7,shapeType:_0x2d18d2,shapeId:_0xcf0850,shapeData:_0x53797a}=_0x425848,_0x8494d4=_0x273d16['get'](i)[_0x15930a(0x10d)](_0x4b5252,_0x29d3b7,_0xcf0850);return _0x8494d4&&(_0x2d18d2!==void 0x0&&_0x8494d4[_0x15930a(0x10f)](_0x2d18d2),_0x53797a&&(_0x8494d4==null||_0x8494d4[_0x15930a(0x11b)](_0x53797a,!0x0))),!0x0;}},X=_0x43d2f6(0x139),m={};var Z=Object[_0x43d2f6(0x116)],k=Object[_0x43d2f6(0x12a)],ee=(_0xc7f629,_0x480c0f,_0x5676a9)=>_0x480c0f in _0xc7f629?Z(_0xc7f629,_0x480c0f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5676a9}):_0xc7f629[_0x480c0f]=_0x5676a9,ae=(_0x1ac263,_0x23b225,_0x279b9e,_0x4dfeca)=>{const _0xac1f=_0x43d2f6;for(var _0x509d45=_0x4dfeca>0x1?void 0x0:_0x4dfeca?k(_0x23b225,_0x279b9e):_0x23b225,_0x538155=_0x1ac263[_0xac1f(0x11c)]-0x1,_0x57a85f;_0x538155>=0x0;_0x538155--)(_0x57a85f=_0x1ac263[_0x538155])&&(_0x509d45=_0x57a85f(_0x509d45)||_0x509d45);return _0x509d45;},g=(_0x324eaf,_0x3e9aa3)=>(_0x25c0c9,_0x5a3877)=>_0x3e9aa3(_0x25c0c9,_0x5a3877,_0x324eaf),E=(_0x226dfc,_0x140e7e,_0x48db18)=>ee(_0x226dfc,typeof _0x140e7e!=_0x43d2f6(0x129)?_0x140e7e+'':_0x140e7e,_0x48db18);const se=_0x43d2f6(0x102);function _0x9da8(){const _0x585d5f=['clear','sheet.command.update-shape-type','setShapeData','length','MUTATION','push','294608TNwQFp','getShapeType','sheet.mutation.update-shape-type','onStarting','add','_shapes','1266OSbYkW','hasShape','getShapeData','_injector','symbol','getOwnPropertyDescriptor','_ensureShapeModelManager','_config','_serializeShapeForUnit','2jjZXme','disposeWithMe','has','params','174LvYwxX','addShape','onRendered','shapeId','getBasicShapeType','toJSON','_linesIds','sheets-shape.config','pluginName','5901860TwFrVx','325514cXpqIo','isLineShape','assign','registerCommand','registerPluginResource','getShapeRelation','UNIVER_SHEET','fromJSON','_resourcesManagerService','sheet.mutation.insert-shape','_initSnapshot','insertShape','225jsdTgp','6775320EhNjpe','2933uKhQEN','forEach','getShapeDataById','removeShape','get','getLineShapeRelation','getShapeTypeById','_initCommands','_groupIds','SHEET_SHAPE_PLUGIN','_shapeModelManagerMap','COMMAND','getBasicShapeRelation','stringify','_deserializeShapeForUnit','setConfig','12490874WRtWIy','_configService','_disposed','sheet.mutation.update-shape-data','getShapeModel','set','setShapeType','dispose','delete','every','11240raeLxX','_commandService','pushUndoRedo','defineProperty','keys','from'];_0x9da8=function(){return _0x585d5f;};return _0x9da8();}let S=class extends _0x1c26c6{constructor(_0x2d70e3=m,_0x290866,_0x92c0c1,_0x57631e){const _0xa1af1c=_0x43d2f6;super(),this[_0xa1af1c(0x12c)]=_0x2d70e3,this[_0xa1af1c(0x128)]=_0x290866,this[_0xa1af1c(0x114)]=_0x92c0c1,this[_0xa1af1c(0x10a)]=_0x57631e;const {..._0x5cf81c}=_0xd56f87({},m,this[_0xa1af1c(0x12c)]);this['_configService'][_0xa1af1c(0x108)](X,_0x5cf81c),this[_0xa1af1c(0x100)]();}[_0x43d2f6(0x134)](){const _0x39addc=_0x43d2f6;_0x193da0(this[_0x39addc(0x128)],[]);}[_0x43d2f6(0x122)](){const _0x3fc58f=_0x43d2f6,_0x28e0ab=this['_injector'];[[T],[i]][_0x3fc58f(0xfa)](_0x2b2e72=>_0x28e0ab[_0x3fc58f(0x123)](_0x2b2e72));}[_0x43d2f6(0x100)](){const _0x12d6e8=_0x43d2f6;[Y,q,u,Q][_0x12d6e8(0xfa)](_0x59c1f0=>this[_0x12d6e8(0x12f)](this[_0x12d6e8(0x114)][_0x12d6e8(0x13f)](_0x59c1f0)));}};function _0x2c52(_0xf2e40e,_0x13ef9e){_0xf2e40e=_0xf2e40e-0xf1;const _0x9da8da=_0x9da8();let _0x2c52a3=_0x9da8da[_0xf2e40e];return _0x2c52a3;}E(S,'type',_0x2eb040[_0x43d2f6(0xf1)]),E(S,_0x43d2f6(0x13a),se),S=ae([_0x5695e8(_0xa2a402),g(0x1,_0x2eca19(_0x2f6cf7)),g(0x2,_0x39cdad),g(0x3,_0x580d74)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
@@ -9,4 +9,4 @@ export type { IUpdateSheetsShapeDataMutationParams } from './commands/mutation/u
9
9
  export { UpdateSheetsShapeTypeMutation } from './commands/mutation/update-shape-type.mutation';
10
10
  export type { IUpdateSheetsShapeTypeMutationParams } from './commands/mutation/update-shape-type.mutation';
11
11
  export { UniverSheetsShapePlugin } from './plugin';
12
- export { SheetsShapeServices } from './services/sheet-shape-services';
12
+ export { SheetsShapeService } from './services/sheet-shape-services';
@@ -4,7 +4,7 @@ export interface ISheetsShapeResource {
4
4
  [subUnitId: string]: IShapeJSONData[];
5
5
  }
6
6
  export declare const SHEET_SHAPE_PLUGIN = "SHEET_SHAPE_PLUGIN";
7
- export declare class SheetsShapeServices extends Disposable {
7
+ export declare class SheetsShapeService extends Disposable {
8
8
  private readonly _resourcesManagerService;
9
9
  private _shapeModelManagerMap;
10
10
  constructor(_resourcesManagerService: IResourceManagerService);
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2b90(){const _0x1fae71=['getShapeModel','UniverSheetsShapePlugin','_config','_groupIds','pushUndoRedo','_initCommands','every','registerCommand','Disposable','InsertSheetsShapeMutation','getOwnPropertyDescriptor','@univerjs-pro/engine-shape','getBasicShapeRelation','IResourceManagerService','ShapeModel','MUTATION','params','1070694DygPCo','getShapeType','UniverInstanceType','getLineShapeRelation','525778OUrfdr','amd','shapeId','COMMAND','symbol','keys','1493359eiitwt','get','removeShape','has','pluginName','exports','36863210ZEXiBu','setShapeType','2338377eBAGHW','CommandType','setConfig','UniverProEngineShape','sheets-shape.config','from','sheet.mutation.update-shape-data','UniverCore','_shapes','clear','insertShape','touchDependencies','4swfWdH','SHEET_SHAPE_PLUGIN','forEach','parse','dispose','Injector','UniverLicensePlugin','18EliZmy','1779456opGISe','onStarting','UniverProSheetsShape','push','defineProperty','set','Module','toJSON','shapeData','_initSnapshot','getShapeDataById','isLineShape','UpdateSheetsShapeTypeCommand','SheetsShapeServices','toStringTag','UpdateSheetsShapeDataMutation','getShapeRelation','fromJSON','DependentOn','function','@univerjs/core','onRendered','_configService','1978700BAuonJ','hasShape','sheet.mutation.remove-shape','object','_shapeModelManagerMap','Inject','_deserializeShapeForUnit','7MFORQO','_disposed','_linesIds','isConnectorShape','length','ICommandService','_serializeShapeForUnit','getBasicShapeType','add','sheet.mutation.insert-shape','_ensureShapeModelManager','syncExecuteCommand','delete','_commandService','sheet.command.update-shape-type','_injector','merge','addShape'];_0x2b90=function(){return _0x1fae71;};return _0x2b90();}function _0xc1bf(_0x375b80,_0xf2a48c){_0x375b80=_0x375b80-0x1ed;const _0x2b9071=_0x2b90();let _0xc1bf3c=_0x2b9071[_0x375b80];return _0xc1bf3c;}(function(_0xc25661,_0x1fd32e){const _0x52e2a0=_0xc1bf,_0xe04bf7=_0xc25661();while(!![]){try{const _0x40727f=parseInt(_0x52e2a0(0x1ee))/0x1*(-parseInt(_0x52e2a0(0x215))/0x2)+parseInt(_0x52e2a0(0x223))/0x3*(-parseInt(_0x52e2a0(0x22f))/0x4)+parseInt(_0x52e2a0(0x24e))/0x5+-parseInt(_0x52e2a0(0x236))/0x6*(parseInt(_0x52e2a0(0x21b))/0x7)+parseInt(_0x52e2a0(0x237))/0x8+-parseInt(_0x52e2a0(0x211))/0x9+parseInt(_0x52e2a0(0x221))/0xa;if(_0x40727f===_0x1fd32e)break;else _0xe04bf7['push'](_0xe04bf7['shift']());}catch(_0x451053){_0xe04bf7['push'](_0xe04bf7['shift']());}}}(_0x2b90,0xe208a),function(_0x2ef0bc,_0x3cdbff){const _0x5e3030=_0xc1bf;typeof exports==_0x5e3030(0x251)&&typeof module<'u'?_0x3cdbff(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x5e3030(0x24a)&&define[_0x5e3030(0x216)]?define([_0x5e3030(0x220),_0x5e3030(0x24b),_0x5e3030(0x20b),'@univerjs-pro/license'],_0x3cdbff):(_0x2ef0bc=typeof globalThis<'u'?globalThis:_0x2ef0bc||self,_0x3cdbff(_0x2ef0bc[_0x5e3030(0x239)]={},_0x2ef0bc[_0x5e3030(0x22a)],_0x2ef0bc[_0x5e3030(0x226)],_0x2ef0bc['UniverProLicense']));}(this,function(_0x4e48d6,_0x14ac5a,_0x1920cc,_0x10fbca){'use strict';const _0x3c759a=_0xc1bf;var _0x378cfd=Object[_0x3c759a(0x23b)],_0x4d6daf=(_0x1c2040,_0x20ab99,_0x5f9e70)=>_0x20ab99 in _0x1c2040?_0x378cfd(_0x1c2040,_0x20ab99,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f9e70}):_0x1c2040[_0x20ab99]=_0x5f9e70,_0x3efbfa=(_0x5d34c1,_0x369780,_0x19b735)=>_0x4d6daf(_0x5d34c1,typeof _0x369780!='symbol'?_0x369780+'':_0x369780,_0x19b735);class _0x57d9e8 extends _0x14ac5a[_0x3c759a(0x208)]{constructor(){const _0x2e91d3=_0x3c759a;super(),_0x3efbfa(this,'_shapes',new Map()),_0x3efbfa(this,_0x2e91d3(0x1f0),new Set()),_0x3efbfa(this,_0x2e91d3(0x203),new Set());}[_0x3c759a(0x1ff)](_0x40cdf6,_0x2c1ef8,_0x207ce9){const _0x3a6335=_0x3c759a,_0x55f037=new _0x1920cc[(_0x3a6335(0x20e))](_0x40cdf6,_0x2c1ef8,_0x207ce9);return this[_0x3a6335(0x22b)][_0x3a6335(0x23c)](_0x2c1ef8,_0x55f037),_0x1920cc[_0x3a6335(0x1f1)](_0x40cdf6)&&this['_linesIds'][_0x3a6335(0x1f6)](_0x2c1ef8),_0x55f037;}[_0x3c759a(0x20c)](_0x12157a){const _0x5938a9=_0x3c759a;var _0x2854f8,_0xf5104b;const _0xba4f5d=[];for(const _0x2a9a21 of this[_0x5938a9(0x1f0)]){const _0x5c634f=this[_0x5938a9(0x22b)]['get'](_0x2a9a21);if(_0x5c634f){const _0x33f6b6=_0x5c634f[_0x5938a9(0x247)]();_0x33f6b6&&(((_0x2854f8=_0x33f6b6['from'])==null?void 0x0:_0x2854f8[_0x5938a9(0x217)])===_0x12157a&&_0xba4f5d[_0x5938a9(0x23a)]({..._0x33f6b6[_0x5938a9(0x228)],'lineShapeId':_0x2a9a21,'isFrom':!0x0}),((_0xf5104b=_0x33f6b6['to'])==null?void 0x0:_0xf5104b[_0x5938a9(0x217)])===_0x12157a&&_0xba4f5d[_0x5938a9(0x23a)]({..._0x33f6b6['to'],'lineShapeId':_0x2a9a21,'isFrom':!0x1}));}}return _0xba4f5d;}[_0x3c759a(0x214)](_0x5c01fa){const _0x10d71d=_0x3c759a,_0x48cf42=this[_0x10d71d(0x22b)]['get'](_0x5c01fa);if(_0x48cf42)return _0x48cf42[_0x10d71d(0x247)]();}[_0x3c759a(0x212)](_0x10af29){const _0x27fb11=_0x3c759a,_0x1605f9=this[_0x27fb11(0x22b)][_0x27fb11(0x21c)](_0x10af29);if(_0x1605f9)return _0x1605f9['getShapeType']();}[_0x3c759a(0x24f)](_0x1e0f58){const _0x2d97e3=_0x3c759a;return this['_shapes'][_0x2d97e3(0x21e)](_0x1e0f58);}[_0x3c759a(0x21d)](_0x22951f){const _0x4ef712=_0x3c759a,_0x34c79c=this[_0x4ef712(0x22b)][_0x4ef712(0x21c)](_0x22951f);_0x34c79c&&(_0x1920cc[_0x4ef712(0x1f1)](_0x34c79c[_0x4ef712(0x212)]())&&this[_0x4ef712(0x1f0)]['delete'](_0x22951f),this[_0x4ef712(0x22b)][_0x4ef712(0x1fa)](_0x22951f));}['toJSON'](){const _0x15701c=_0x3c759a,_0x5991c6=[];return this[_0x15701c(0x22b)]['forEach'](_0x6eef66=>{const _0x1272af=_0x15701c;_0x5991c6[_0x1272af(0x23a)](_0x6eef66[_0x1272af(0x23e)]());}),_0x5991c6;}[_0x3c759a(0x248)](_0x705542){const _0x4d9b1e=_0x3c759a;for(const _0x396f80 of _0x705542){const {id:_0x1c5c37,shapeType:_0x1c0288}=_0x396f80,_0xf8d08b=this[_0x4d9b1e(0x1ff)](_0x1c0288,_0x1c5c37,_0x396f80[_0x4d9b1e(0x23f)]);_0xf8d08b&&_0xf8d08b[_0x4d9b1e(0x242)]()&&this[_0x4d9b1e(0x1f0)][_0x4d9b1e(0x1f6)](_0x1c5c37);}}[_0x3c759a(0x233)](){const _0x5a7a43=_0x3c759a;this[_0x5a7a43(0x1ef)]||(this[_0x5a7a43(0x22b)][_0x5a7a43(0x231)](_0x58936d=>{const _0x461d99=_0x5a7a43;_0x58936d[_0x461d99(0x233)]();}),this[_0x5a7a43(0x22b)][_0x5a7a43(0x22c)](),this['_linesIds'][_0x5a7a43(0x22c)](),this['_groupIds'][_0x5a7a43(0x22c)](),super['dispose']());}}var _0x59149c=Object[_0x3c759a(0x20a)],_0x2970af=(_0x27f064,_0x3641e9,_0x52056c,_0x2d9f61)=>{const _0x2bf481=_0x3c759a;for(var _0x1133b7=_0x2d9f61>0x1?void 0x0:_0x2d9f61?_0x59149c(_0x3641e9,_0x52056c):_0x3641e9,_0x2dd750=_0x27f064[_0x2bf481(0x1f2)]-0x1,_0x583f92;_0x2dd750>=0x0;_0x2dd750--)(_0x583f92=_0x27f064[_0x2dd750])&&(_0x1133b7=_0x583f92(_0x1133b7)||_0x1133b7);return _0x1133b7;},_0x54000f=(_0x38400b,_0x29b314)=>(_0x4177bf,_0x150615)=>_0x29b314(_0x4177bf,_0x150615,_0x38400b);const _0x2e5b25='SHEET_SHAPE_PLUGIN';_0x4e48d6['SheetsShapeServices']=class extends _0x14ac5a[_0x3c759a(0x208)]{constructor(_0x300108){const _0x32a7ef=_0x3c759a;super(),_0x3efbfa(this,_0x32a7ef(0x252),new Map()),(this['_resourcesManagerService']=_0x300108,this['_initSnapshot']());}[_0x3c759a(0x1f8)](_0xfa771f,_0x3bf64c){const _0x4d59de=_0x3c759a;let _0x5a4a92=this[_0x4d59de(0x252)]['get'](_0xfa771f);_0x5a4a92||(_0x5a4a92=new Map(),this[_0x4d59de(0x252)][_0x4d59de(0x23c)](_0xfa771f,_0x5a4a92));let _0xb92d7c=_0x5a4a92[_0x4d59de(0x21c)](_0x3bf64c);return _0xb92d7c||(_0xb92d7c=new _0x57d9e8(),_0x5a4a92[_0x4d59de(0x23c)](_0x3bf64c,_0xb92d7c)),_0xb92d7c;}[_0x3c759a(0x22d)](_0x10714a,_0x47f02d,_0x3d1e6e,_0x12e586,_0x4d5b8d){const _0x22b86d=_0x3c759a;this[_0x22b86d(0x1f8)](_0x10714a,_0x47f02d)[_0x22b86d(0x1ff)](_0x3d1e6e,_0x12e586,_0x4d5b8d);}[_0x3c759a(0x21d)](_0xd1c37e,_0x21b8d3,_0x481a64){const _0x3427ca=_0x3c759a;this[_0x3427ca(0x1f8)](_0xd1c37e,_0x21b8d3)['removeShape'](_0x481a64);}[_0x3c759a(0x1f5)](_0x2dcaf5,_0x56b554,_0x58b1b8){const _0x3dcdcc=_0x3c759a;return this[_0x3dcdcc(0x1f8)](_0x2dcaf5,_0x56b554)[_0x3dcdcc(0x212)](_0x58b1b8);}[_0x3c759a(0x212)](_0x2e5014,_0x86f4a1,_0x5205f7){const _0x34ed86=_0x3c759a;return this[_0x34ed86(0x1f8)](_0x2e5014,_0x86f4a1)['getShapeType'](_0x5205f7);}['hasShape'](_0x512849,_0x26a09e,_0x4758a7){const _0x385e78=_0x3c759a;return this[_0x385e78(0x1f8)](_0x512849,_0x26a09e)['hasShape'](_0x4758a7);}['getShapeTypeById'](_0x479849,_0x2399e6,_0x2f7e9d){const _0x70e1af=_0x3c759a;return this[_0x70e1af(0x1f8)](_0x479849,_0x2399e6)[_0x70e1af(0x212)](_0x2f7e9d);}[_0x3c759a(0x241)](_0x4592ee,_0x5a4bfb,_0x4ac967){const _0x25cb9f=_0x3c759a,_0x5ceb98=this['_ensureShapeModelManager'](_0x4592ee,_0x5a4bfb);if(!_0x5ceb98[_0x25cb9f(0x212)](_0x4ac967))return;const _0x20e9e6=_0x5ceb98[_0x25cb9f(0x22b)]['get'](_0x4ac967);if(_0x20e9e6)return _0x20e9e6['getShapeData']();}[_0x3c759a(0x200)](_0x1b1617,_0x2965ae,_0x1db795){const _0x35d687=_0x3c759a;return this[_0x35d687(0x1f8)](_0x1b1617,_0x2965ae)[_0x35d687(0x22b)]['get'](_0x1db795);}[_0x3c759a(0x20c)](_0x55f2f3,_0x4184fd,_0xcd03d1){const _0x3ae561=_0x3c759a;return this[_0x3ae561(0x1f8)](_0x55f2f3,_0x4184fd)[_0x3ae561(0x20c)](_0xcd03d1);}[_0x3c759a(0x214)](_0xef0cca,_0x27f0ec,_0x23364e){const _0x5ab3d4=_0x3c759a,_0xc6420b=this[_0x5ab3d4(0x1f8)](_0xef0cca,_0x27f0ec)[_0x5ab3d4(0x22b)][_0x5ab3d4(0x21c)](_0x23364e);if(_0xc6420b)return _0xc6420b['getShapeRelation']();}['setShapeType'](){}[_0x3c759a(0x1f4)](_0x6df57f){const _0x5e11e2=_0x3c759a,_0x45b45f={},_0x2a4731=this[_0x5e11e2(0x252)][_0x5e11e2(0x21c)](_0x6df57f);return _0x2a4731&&_0x2a4731[_0x5e11e2(0x231)]((_0x493fff,_0x5231b6)=>{const _0x29f489=_0x5e11e2;_0x45b45f[_0x5231b6]=_0x493fff[_0x29f489(0x23e)]();}),JSON['stringify'](_0x45b45f);}[_0x3c759a(0x1ed)](_0x2e49d3,_0x3826f7){const _0x262362=_0x3c759a;Object[_0x262362(0x21a)](_0x3826f7)[_0x262362(0x231)](_0x4d36f4=>{const _0x1afb94=_0x262362;this[_0x1afb94(0x1f8)](_0x2e49d3,_0x4d36f4)['fromJSON'](_0x3826f7[_0x4d36f4]);});}['toJSON'](){const _0x106468={};return this['_shapeModelManagerMap']['forEach']((_0x33e02d,_0x74b0d0)=>{const _0x4bd510=_0xc1bf;_0x106468[_0x74b0d0]={},_0x33e02d[_0x4bd510(0x231)]((_0x4791af,_0x412955)=>{const _0x1479ee=_0x4bd510;_0x106468[_0x74b0d0][_0x412955]=_0x4791af[_0x1479ee(0x23e)]();});}),_0x106468;}[_0x3c759a(0x248)](_0x5b3f50){const _0x184114=_0x3c759a;Object[_0x184114(0x21a)](_0x5b3f50)[_0x184114(0x231)](_0x45a475=>{const _0x2e54e6=_0x184114,_0x20d7ee=_0x5b3f50[_0x45a475];Object[_0x2e54e6(0x21a)](_0x20d7ee)[_0x2e54e6(0x231)](_0x18a4ed=>{const _0xe54df8=_0x2e54e6;this[_0xe54df8(0x1f8)](_0x45a475,_0x18a4ed)[_0xe54df8(0x248)](_0x20d7ee[_0x18a4ed]);});});}[_0x3c759a(0x240)](){const _0x5873f7=_0x3c759a;this['_resourcesManagerService']['registerPluginResource']({'pluginName':_0x2e5b25,'businesses':[_0x14ac5a['UniverInstanceType']['UNIVER_SHEET']],'toJson':_0x579ccd=>this[_0x5873f7(0x1f4)](_0x579ccd),'parseJson':_0x792e1d=>JSON[_0x5873f7(0x232)](_0x792e1d),'onLoad':(_0x2fc9d6,_0x9083c8)=>{const _0x29fa3=_0x5873f7;this[_0x29fa3(0x1ed)](_0x2fc9d6,_0x9083c8);},'onUnLoad':_0xb3ace7=>{const _0x234021=_0x5873f7,_0x223d6c=this[_0x234021(0x252)][_0x234021(0x21c)](_0xb3ace7);_0x223d6c&&(_0x223d6c[_0x234021(0x231)](_0x29d194=>{const _0x34967a=_0x234021;_0x29d194[_0x34967a(0x233)]();}),this[_0x234021(0x252)][_0x234021(0x1fa)](_0xb3ace7));}});}[_0x3c759a(0x233)](){const _0x4a643d=_0x3c759a;this[_0x4a643d(0x252)]['forEach'](_0x3177f3=>{_0x3177f3['forEach'](_0x161209=>{const _0x3e1f41=_0xc1bf;_0x161209[_0x3e1f41(0x233)]();});});}},_0x4e48d6[_0x3c759a(0x244)]=_0x2970af([_0x54000f(0x0,_0x14ac5a[_0x3c759a(0x20d)])],_0x4e48d6['SheetsShapeServices']);const _0x20c071={'id':'sheet.mutation.update-shape-type','type':_0x14ac5a[_0x3c759a(0x224)][_0x3c759a(0x20f)],'handler':(_0x1ddb02,_0x12b983)=>{const _0x27198f=_0x3c759a,{unitId:_0xb83d26,subUnitId:_0x80ff20,shapeType:_0x334b3d,shapeId:_0x5b7e32,shapeData:_0x166d9b}=_0x12b983,_0x15efda=_0x1ddb02[_0x27198f(0x21c)](_0x4e48d6[_0x27198f(0x244)])[_0x27198f(0x200)](_0xb83d26,_0x80ff20,_0x5b7e32);return _0x15efda&&(_0x15efda[_0x27198f(0x222)](_0x334b3d),_0x166d9b&&(_0x15efda==null||_0x15efda['setShapeData'](_0x166d9b))),!0x0;}},_0x5881d6={'id':_0x3c759a(0x1fc),'type':_0x14ac5a[_0x3c759a(0x224)][_0x3c759a(0x218)],'handler':(_0x10ba56,_0x5dcb7d)=>{const _0xffc48f=_0x3c759a;if(!_0x5dcb7d)return!0x1;const _0x56d529=_0x10ba56[_0xffc48f(0x21c)](_0x14ac5a[_0xffc48f(0x1f3)]),_0x37eaf4=_0x10ba56[_0xffc48f(0x21c)](_0x4e48d6['SheetsShapeServices']),_0x45181e=_0x10ba56[_0xffc48f(0x21c)](_0x14ac5a['IUndoRedoService']),_0x41a866=[],_0x5dc30f=[],{unitId:_0x865cf,subUnitId:_0x13a8ab,shapeId:_0x175b4a,shapeType:_0x5653e2,shapeData:_0x47d36b}=_0x5dcb7d,_0x1a23c0=_0x37eaf4[_0xffc48f(0x200)](_0x865cf,_0x13a8ab,_0x175b4a);if(_0x1a23c0){const _0x547e7b=_0x1a23c0[_0xffc48f(0x212)](),_0x57ea04=Object['assign']({},_0x1a23c0['getShapeData']()),_0x18a2b7={'unitId':_0x865cf,'subUnitId':_0x13a8ab,'shapeId':_0x175b4a,'shapeType':_0x5653e2,'shapeData':_0x47d36b},_0x58a98c={'unitId':_0x865cf,'subUnitId':_0x13a8ab,'shapeId':_0x175b4a,'shapeType':_0x547e7b,'shapeData':_0x57ea04};return _0x41a866[_0xffc48f(0x23a)]({'id':_0x20c071['id'],'params':_0x18a2b7}),_0x5dc30f['push']({'id':_0x20c071['id'],'params':_0x58a98c}),_0x41a866[_0xffc48f(0x206)](_0x109321=>_0x56d529[_0xffc48f(0x1f9)](_0x109321['id'],_0x109321[_0xffc48f(0x210)]))&&_0x45181e[_0xffc48f(0x204)]({'unitID':_0x865cf,'redoMutations':[..._0x41a866],'undoMutations':[..._0x5dc30f]}),!0x0;}return!0x1;}},_0x4edd41={'id':_0x3c759a(0x1f7),'type':_0x14ac5a[_0x3c759a(0x224)][_0x3c759a(0x20f)],'handler':(_0x593996,_0x4e41b5)=>{const _0x3d11e5=_0x3c759a,{unitId:_0x31b8ed,subUnitId:_0x34965b,shapeType:_0x43a59c,shapeId:_0x4f2a1e,shapeData:_0xd1d576}=_0x4e41b5;return _0x593996[_0x3d11e5(0x21c)](_0x4e48d6['SheetsShapeServices'])[_0x3d11e5(0x22d)](_0x31b8ed,_0x34965b,_0x43a59c,_0x4f2a1e,_0xd1d576),!0x0;}},_0x3e5228={'id':_0x3c759a(0x250),'type':_0x14ac5a[_0x3c759a(0x224)][_0x3c759a(0x20f)],'handler':(_0x2255e9,_0x2e7522)=>{const {unitId:_0x4279ea,subUnitId:_0x14965e,shapeId:_0x4fb62a}=_0x2e7522;return _0x2255e9['get'](_0x4e48d6['SheetsShapeServices'])['removeShape'](_0x4279ea,_0x14965e,_0x4fb62a),!0x0;}},_0x10a071={'id':_0x3c759a(0x229),'type':_0x14ac5a[_0x3c759a(0x224)][_0x3c759a(0x20f)],'handler':(_0x4117cb,_0x3e121a)=>{const _0x4cafd3=_0x3c759a,{unitId:_0x4e5127,subUnitId:_0xa19eee,shapeType:_0x44b8b6,shapeId:_0x420bef,shapeData:_0x1c515e}=_0x3e121a,_0x73f92e=_0x4117cb[_0x4cafd3(0x21c)](_0x4e48d6['SheetsShapeServices'])[_0x4cafd3(0x200)](_0x4e5127,_0xa19eee,_0x420bef);return _0x73f92e&&(_0x44b8b6!==void 0x0&&_0x73f92e[_0x4cafd3(0x222)](_0x44b8b6),_0x1c515e&&(_0x73f92e==null||_0x73f92e['setShapeData'](_0x1c515e,!0x0))),!0x0;}},_0x1063cb=_0x3c759a(0x227),_0x39b05a={};var _0x233e3f=Object['defineProperty'],_0x54fdd1=Object[_0x3c759a(0x20a)],_0x52c981=(_0x3617a9,_0x24abbb,_0x182ade)=>_0x24abbb in _0x3617a9?_0x233e3f(_0x3617a9,_0x24abbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x182ade}):_0x3617a9[_0x24abbb]=_0x182ade,_0x26d5d1=(_0x17ee35,_0x2265ed,_0x485c44,_0x3634ae)=>{const _0x2fe2ae=_0x3c759a;for(var _0x1dbef7=_0x3634ae>0x1?void 0x0:_0x3634ae?_0x54fdd1(_0x2265ed,_0x485c44):_0x2265ed,_0x4303b5=_0x17ee35[_0x2fe2ae(0x1f2)]-0x1,_0x194606;_0x4303b5>=0x0;_0x4303b5--)(_0x194606=_0x17ee35[_0x4303b5])&&(_0x1dbef7=_0x194606(_0x1dbef7)||_0x1dbef7);return _0x1dbef7;},_0x9d1371=(_0x4f4b1e,_0x23554b)=>(_0x558124,_0x5db4f9)=>_0x23554b(_0x558124,_0x5db4f9,_0x4f4b1e),_0x32efa4=(_0x17fb32,_0x139aab,_0x4cd074)=>_0x52c981(_0x17fb32,typeof _0x139aab!=_0x3c759a(0x219)?_0x139aab+'':_0x139aab,_0x4cd074);const _0x4ada2c=_0x3c759a(0x230);_0x4e48d6[_0x3c759a(0x201)]=class extends _0x14ac5a['Plugin']{constructor(_0x3fac91=_0x39b05a,_0x3b589e,_0x5aba0b,_0x5211ab){const _0x26addb=_0x3c759a;super(),this[_0x26addb(0x202)]=_0x3fac91,this['_injector']=_0x3b589e,this['_commandService']=_0x5aba0b,this[_0x26addb(0x24d)]=_0x5211ab;const {..._0x2017ef}=_0x14ac5a[_0x26addb(0x1fe)]({},_0x39b05a,this[_0x26addb(0x202)]);this[_0x26addb(0x24d)][_0x26addb(0x225)](_0x1063cb,_0x2017ef),this[_0x26addb(0x205)]();}[_0x3c759a(0x24c)](){const _0x526362=_0x3c759a;_0x14ac5a[_0x526362(0x22e)](this['_injector'],[]);}[_0x3c759a(0x238)](){const _0x37c3f2=_0x3c759a,_0x5c5c6a=this[_0x37c3f2(0x1fd)];[[_0x57d9e8],[_0x4e48d6[_0x37c3f2(0x244)]]]['forEach'](_0x287bc2=>_0x5c5c6a[_0x37c3f2(0x1f6)](_0x287bc2));}[_0x3c759a(0x205)](){const _0x202a8c=_0x3c759a;[_0x4edd41,_0x3e5228,_0x20c071,_0x10a071][_0x202a8c(0x231)](_0x4d25f7=>this['disposeWithMe'](this[_0x202a8c(0x1fb)][_0x202a8c(0x207)](_0x4d25f7)));}},_0x32efa4(_0x4e48d6[_0x3c759a(0x201)],'type',_0x14ac5a[_0x3c759a(0x213)]['UNIVER_SHEET']),_0x32efa4(_0x4e48d6[_0x3c759a(0x201)],_0x3c759a(0x21f),_0x4ada2c),_0x4e48d6[_0x3c759a(0x201)]=_0x26d5d1([_0x14ac5a[_0x3c759a(0x249)](_0x10fbca[_0x3c759a(0x235)]),_0x9d1371(0x1,_0x14ac5a[_0x3c759a(0x253)](_0x14ac5a[_0x3c759a(0x234)])),_0x9d1371(0x2,_0x14ac5a[_0x3c759a(0x1f3)]),_0x9d1371(0x3,_0x14ac5a['IConfigService'])],_0x4e48d6[_0x3c759a(0x201)]),_0x4e48d6[_0x3c759a(0x209)]=_0x4edd41,_0x4e48d6['RemoveSheetsShapeMutation']=_0x3e5228,_0x4e48d6[_0x3c759a(0x246)]=_0x10a071,_0x4e48d6[_0x3c759a(0x243)]=_0x5881d6,_0x4e48d6['UpdateSheetsShapeTypeMutation']=_0x20c071,Object[_0x3c759a(0x23b)](_0x4e48d6,Symbol[_0x3c759a(0x245)],{'value':_0x3c759a(0x23d)});}));
1
+ function _0x2f65(){const _0x16ffed=['forEach','get','getBasicShapeRelation','MUTATION','setShapeType','8513992zqOPhn','UniverProSheetsShape','toStringTag','getShapeData','Inject','IUndoRedoService','RemoveSheetsShapeMutation','UpdateSheetsShapeTypeMutation','UpdateSheetsShapeDataMutation','_serializeShapeForUnit','getShapeDataById','_initSnapshot','COMMAND','registerCommand','add','@univerjs/core','object','has','9OGvSjP','disposeWithMe','_config','UniverSheetsShapePlugin','4774956TfVWxS','UniverInstanceType','sheet.mutation.insert-shape','function','getShapeRelation','onRendered','UNIVER_SHEET','from','type','Disposable','assign','602984vCWwui','shapeId','sheet.mutation.remove-shape','every','pluginName','getShapeTypeById','13769710twaAQQ','sheet.command.update-shape-type','length','_linesIds','defineProperty','setConfig','_shapeModelManagerMap','amd','UniverCore','SheetsShapeService','_configService','12GBONaV','35232HvnShJ','syncExecuteCommand','_initCommands','sheet.mutation.update-shape-type','_commandService','IResourceManagerService','@univerjs-pro/license','keys','pushUndoRedo','toJSON','1687320dxNUju','fromJSON','isConnectorShape','IConfigService','1241735TVexCs','_shapes','getShapeModel','Plugin','InsertSheetsShapeMutation','@univerjs-pro/engine-shape','UniverProEngineShape','getShapeType','touchDependencies','CommandType','_deserializeShapeForUnit','dispose','7CPGsVR','getBasicShapeType','SHEET_SHAPE_PLUGIN','push','Injector','removeShape','parse','symbol','UpdateSheetsShapeTypeCommand','addShape','setShapeData','getOwnPropertyDescriptor','set','onStarting','_ensureShapeModelManager','sheets-shape.config','ShapeModel','delete','hasShape','UniverProLicense','getLineShapeRelation','ICommandService','clear'];_0x2f65=function(){return _0x16ffed;};return _0x2f65();}function _0x1f56(_0x4d4b45,_0x552b82){_0x4d4b45=_0x4d4b45-0x65;const _0x2f6500=_0x2f65();let _0x1f56f1=_0x2f6500[_0x4d4b45];return _0x1f56f1;}(function(_0x3438ad,_0xeb8183){const _0x182aac=_0x1f56,_0x573617=_0x3438ad();while(!![]){try{const _0x2ffc10=parseInt(_0x182aac(0xc1))/0x1+parseInt(_0x182aac(0x74))/0x2+-parseInt(_0x182aac(0x69))/0x3*(parseInt(_0x182aac(0x6a))/0x4)+parseInt(_0x182aac(0x78))/0x5+-parseInt(_0x182aac(0xb6))/0x6+parseInt(_0x182aac(0x84))/0x7*(parseInt(_0x182aac(0xa0))/0x8)+parseInt(_0x182aac(0xb2))/0x9*(-parseInt(_0x182aac(0xc7))/0xa);if(_0x2ffc10===_0xeb8183)break;else _0x573617['push'](_0x573617['shift']());}catch(_0x34e990){_0x573617['push'](_0x573617['shift']());}}}(_0x2f65,0x8692b),function(_0x1d4478,_0x36f27a){const _0x89ecbe=_0x1f56;typeof exports==_0x89ecbe(0xb0)&&typeof module<'u'?_0x36f27a(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x89ecbe(0xb9)&&define[_0x89ecbe(0x65)]?define(['exports',_0x89ecbe(0xaf),_0x89ecbe(0x7d),_0x89ecbe(0x70)],_0x36f27a):(_0x1d4478=typeof globalThis<'u'?globalThis:_0x1d4478||self,_0x36f27a(_0x1d4478[_0x89ecbe(0xa1)]={},_0x1d4478[_0x89ecbe(0x66)],_0x1d4478[_0x89ecbe(0x7e)],_0x1d4478[_0x89ecbe(0x97)]));}(this,function(_0x39371a,_0x4b6bef,_0x23e6a3,_0xcf7dfa){'use strict';const _0x108639=_0x1f56;var _0x20dcb3=Object[_0x108639(0xcb)],_0x37fa69=(_0xdc61d9,_0x54c839,_0x4c485a)=>_0x54c839 in _0xdc61d9?_0x20dcb3(_0xdc61d9,_0x54c839,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c485a}):_0xdc61d9[_0x54c839]=_0x4c485a,_0x3f89bd=(_0x536d44,_0x338b4a,_0x3afd5a)=>_0x37fa69(_0x536d44,typeof _0x338b4a!=_0x108639(0x8b)?_0x338b4a+'':_0x338b4a,_0x3afd5a);class _0x431737 extends _0x4b6bef[_0x108639(0xbf)]{constructor(){super(),_0x3f89bd(this,'_shapes',new Map()),_0x3f89bd(this,'_linesIds',new Set()),_0x3f89bd(this,'_groupIds',new Set());}[_0x108639(0x8d)](_0x4df479,_0x49f7b9,_0x461ee2){const _0x1cc5ea=_0x108639,_0x19a579=new _0x23e6a3[(_0x1cc5ea(0x94))](_0x4df479,_0x49f7b9,_0x461ee2);return this[_0x1cc5ea(0x79)][_0x1cc5ea(0x90)](_0x49f7b9,_0x19a579),_0x23e6a3['isConnectorShape'](_0x4df479)&&this[_0x1cc5ea(0xca)][_0x1cc5ea(0xae)](_0x49f7b9),_0x19a579;}[_0x108639(0x9d)](_0xdb2039){const _0x53b9f3=_0x108639;var _0x46bce6,_0x321a5d;const _0x17d2ef=[];for(const _0x29055b of this[_0x53b9f3(0xca)]){const _0x489561=this[_0x53b9f3(0x79)][_0x53b9f3(0x9c)](_0x29055b);if(_0x489561){const _0x8095aa=_0x489561[_0x53b9f3(0xba)]();_0x8095aa&&(((_0x46bce6=_0x8095aa[_0x53b9f3(0xbd)])==null?void 0x0:_0x46bce6[_0x53b9f3(0xc2)])===_0xdb2039&&_0x17d2ef['push']({..._0x8095aa['from'],'lineShapeId':_0x29055b,'isFrom':!0x0}),((_0x321a5d=_0x8095aa['to'])==null?void 0x0:_0x321a5d[_0x53b9f3(0xc2)])===_0xdb2039&&_0x17d2ef[_0x53b9f3(0x87)]({..._0x8095aa['to'],'lineShapeId':_0x29055b,'isFrom':!0x1}));}}return _0x17d2ef;}['getLineShapeRelation'](_0x1b0f6b){const _0x31443f=_0x108639,_0x96f0d9=this[_0x31443f(0x79)][_0x31443f(0x9c)](_0x1b0f6b);if(_0x96f0d9)return _0x96f0d9['getShapeRelation']();}[_0x108639(0x7f)](_0x3492b0){const _0x28e6be=_0x108639,_0x585f9d=this['_shapes'][_0x28e6be(0x9c)](_0x3492b0);if(_0x585f9d)return _0x585f9d[_0x28e6be(0x7f)]();}[_0x108639(0x96)](_0x33b6e9){const _0x1c76d0=_0x108639;return this[_0x1c76d0(0x79)][_0x1c76d0(0xb1)](_0x33b6e9);}[_0x108639(0x89)](_0x2942c9){const _0x5b0166=_0x108639,_0x1faf39=this[_0x5b0166(0x79)][_0x5b0166(0x9c)](_0x2942c9);_0x1faf39&&(_0x23e6a3[_0x5b0166(0x76)](_0x1faf39['getShapeType']())&&this['_linesIds'][_0x5b0166(0x95)](_0x2942c9),this[_0x5b0166(0x79)][_0x5b0166(0x95)](_0x2942c9));}[_0x108639(0x73)](){const _0x561a6d=_0x108639,_0x30ce7f=[];return this[_0x561a6d(0x79)][_0x561a6d(0x9b)](_0x3639c7=>{const _0x316321=_0x561a6d;_0x30ce7f['push'](_0x3639c7[_0x316321(0x73)]());}),_0x30ce7f;}[_0x108639(0x75)](_0x4630c1){const _0x5b3dbf=_0x108639;for(const _0x38c4f1 of _0x4630c1){const {id:_0x35aaec,shapeType:_0x494dcb}=_0x38c4f1,_0x123a77=this[_0x5b3dbf(0x8d)](_0x494dcb,_0x35aaec,_0x38c4f1['shapeData']);_0x123a77&&_0x123a77['isLineShape']()&&this[_0x5b3dbf(0xca)][_0x5b3dbf(0xae)](_0x35aaec);}}['dispose'](){const _0x3d55fc=_0x108639;this['_disposed']||(this[_0x3d55fc(0x79)][_0x3d55fc(0x9b)](_0x5e4d06=>{const _0x3fe6e9=_0x3d55fc;_0x5e4d06[_0x3fe6e9(0x83)]();}),this[_0x3d55fc(0x79)][_0x3d55fc(0x9a)](),this[_0x3d55fc(0xca)][_0x3d55fc(0x9a)](),this['_groupIds'][_0x3d55fc(0x9a)](),super[_0x3d55fc(0x83)]());}}var _0x399059=Object[_0x108639(0x8f)],_0x1dfe14=(_0x52898e,_0x41e804,_0x2621f6,_0x17c725)=>{const _0x48d5c7=_0x108639;for(var _0xc34f3b=_0x17c725>0x1?void 0x0:_0x17c725?_0x399059(_0x41e804,_0x2621f6):_0x41e804,_0x3fcd4e=_0x52898e[_0x48d5c7(0xc9)]-0x1,_0xb49aea;_0x3fcd4e>=0x0;_0x3fcd4e--)(_0xb49aea=_0x52898e[_0x3fcd4e])&&(_0xc34f3b=_0xb49aea(_0xc34f3b)||_0xc34f3b);return _0xc34f3b;},_0x3bc5e9=(_0x590c05,_0xa109ed)=>(_0x508dff,_0x3af891)=>_0xa109ed(_0x508dff,_0x3af891,_0x590c05);const _0x155908='SHEET_SHAPE_PLUGIN';_0x39371a[_0x108639(0x67)]=class extends _0x4b6bef[_0x108639(0xbf)]{constructor(_0x236d46){const _0x54e3d7=_0x108639;super(),_0x3f89bd(this,'_shapeModelManagerMap',new Map()),(this['_resourcesManagerService']=_0x236d46,this[_0x54e3d7(0xab)]());}[_0x108639(0x92)](_0x12795f,_0x5e4ba9){const _0x389876=_0x108639;let _0x5cb220=this[_0x389876(0xcd)][_0x389876(0x9c)](_0x12795f);_0x5cb220||(_0x5cb220=new Map(),this[_0x389876(0xcd)][_0x389876(0x90)](_0x12795f,_0x5cb220));let _0x5e9e63=_0x5cb220[_0x389876(0x9c)](_0x5e4ba9);return _0x5e9e63||(_0x5e9e63=new _0x431737(),_0x5cb220['set'](_0x5e4ba9,_0x5e9e63)),_0x5e9e63;}['insertShape'](_0x176c5a,_0x3e9478,_0x545d66,_0xcf3189,_0x57fc2a){const _0x16ec88=_0x108639;this[_0x16ec88(0x92)](_0x176c5a,_0x3e9478)[_0x16ec88(0x8d)](_0x545d66,_0xcf3189,_0x57fc2a);}[_0x108639(0x89)](_0xd4818e,_0x3b7fa0,_0x18f118){const _0x2f4b8d=_0x108639;this['_ensureShapeModelManager'](_0xd4818e,_0x3b7fa0)[_0x2f4b8d(0x89)](_0x18f118);}[_0x108639(0x85)](_0x3e0bd7,_0x35f02a,_0x3ad11d){const _0x52ff99=_0x108639;return this[_0x52ff99(0x92)](_0x3e0bd7,_0x35f02a)['getShapeType'](_0x3ad11d);}[_0x108639(0x7f)](_0x127b8f,_0x2fdeda,_0x1cfacf){const _0x330749=_0x108639;return this[_0x330749(0x92)](_0x127b8f,_0x2fdeda)[_0x330749(0x7f)](_0x1cfacf);}['hasShape'](_0xa2d6b7,_0x2ddec5,_0x391d11){const _0x505db5=_0x108639;return this[_0x505db5(0x92)](_0xa2d6b7,_0x2ddec5)[_0x505db5(0x96)](_0x391d11);}[_0x108639(0xc6)](_0x5ef1cd,_0x22c2f3,_0x524996){const _0x19f8b2=_0x108639;return this['_ensureShapeModelManager'](_0x5ef1cd,_0x22c2f3)[_0x19f8b2(0x7f)](_0x524996);}[_0x108639(0xaa)](_0x951cc7,_0x53e2a9,_0x2b2d80){const _0x32b55a=_0x108639,_0x33639e=this[_0x32b55a(0x92)](_0x951cc7,_0x53e2a9);if(!_0x33639e[_0x32b55a(0x7f)](_0x2b2d80))return;const _0x8c8f20=_0x33639e[_0x32b55a(0x79)][_0x32b55a(0x9c)](_0x2b2d80);if(_0x8c8f20)return _0x8c8f20[_0x32b55a(0xa3)]();}['getShapeModel'](_0x440b9f,_0x59b615,_0x510b3a){const _0x165243=_0x108639;return this[_0x165243(0x92)](_0x440b9f,_0x59b615)['_shapes'][_0x165243(0x9c)](_0x510b3a);}['getBasicShapeRelation'](_0x44e577,_0x340d72,_0x57cc27){const _0x496f1b=_0x108639;return this[_0x496f1b(0x92)](_0x44e577,_0x340d72)[_0x496f1b(0x9d)](_0x57cc27);}[_0x108639(0x98)](_0x938f97,_0x1f376c,_0x5ce3f4){const _0xb157e7=_0x108639,_0x86fad6=this['_ensureShapeModelManager'](_0x938f97,_0x1f376c)['_shapes'][_0xb157e7(0x9c)](_0x5ce3f4);if(_0x86fad6)return _0x86fad6[_0xb157e7(0xba)]();}[_0x108639(0x9f)](){}[_0x108639(0xa9)](_0x4cba0d){const _0x14ce17=_0x108639,_0x3f1410={},_0x282620=this[_0x14ce17(0xcd)][_0x14ce17(0x9c)](_0x4cba0d);return _0x282620&&_0x282620[_0x14ce17(0x9b)]((_0xf2532,_0x1ffddc)=>{const _0x5c4040=_0x14ce17,_0x2afadd=_0xf2532['toJSON']();_0x2afadd[_0x5c4040(0xc9)]>0x0&&(_0x3f1410[_0x1ffddc]=_0x2afadd);}),JSON['stringify'](_0x3f1410);}['_deserializeShapeForUnit'](_0x1f26c9,_0x478abb){const _0x5bd862=_0x108639;Object[_0x5bd862(0x71)](_0x478abb)[_0x5bd862(0x9b)](_0x20650e=>{const _0x1e2344=_0x5bd862;this['_ensureShapeModelManager'](_0x1f26c9,_0x20650e)[_0x1e2344(0x75)](_0x478abb[_0x20650e]);});}[_0x108639(0x73)](){const _0x515f45=_0x108639,_0x718d92={};return this[_0x515f45(0xcd)][_0x515f45(0x9b)]((_0x4dd037,_0x1fbbc5)=>{const _0x4dc692=_0x515f45;_0x718d92[_0x1fbbc5]={},_0x4dd037[_0x4dc692(0x9b)]((_0x24b1cf,_0x5563fd)=>{_0x718d92[_0x1fbbc5][_0x5563fd]=_0x24b1cf['toJSON']();});}),_0x718d92;}[_0x108639(0x75)](_0x5492bd){const _0x291e38=_0x108639;Object['keys'](_0x5492bd)[_0x291e38(0x9b)](_0x80b40b=>{const _0x45e3a7=_0x291e38,_0x42c8d6=_0x5492bd[_0x80b40b];Object[_0x45e3a7(0x71)](_0x42c8d6)[_0x45e3a7(0x9b)](_0xfc79f2=>{const _0x12c8b5=_0x45e3a7;this[_0x12c8b5(0x92)](_0x80b40b,_0xfc79f2)[_0x12c8b5(0x75)](_0x42c8d6[_0xfc79f2]);});});}[_0x108639(0xab)](){const _0x511296=_0x108639;this['_resourcesManagerService']['registerPluginResource']({'pluginName':_0x155908,'businesses':[_0x4b6bef[_0x511296(0xb7)][_0x511296(0xbc)]],'toJson':_0x30fb95=>this[_0x511296(0xa9)](_0x30fb95),'parseJson':_0x31bc2b=>JSON[_0x511296(0x8a)](_0x31bc2b),'onLoad':(_0x5ab302,_0x59330d)=>{const _0x3e280d=_0x511296;this[_0x3e280d(0x82)](_0x5ab302,_0x59330d);},'onUnLoad':_0x27d15a=>{const _0x16f272=_0x511296,_0x2c9e23=this[_0x16f272(0xcd)]['get'](_0x27d15a);_0x2c9e23&&(_0x2c9e23['forEach'](_0x385fbf=>{const _0x90458c=_0x16f272;_0x385fbf[_0x90458c(0x83)]();}),this[_0x16f272(0xcd)][_0x16f272(0x95)](_0x27d15a));}});}[_0x108639(0x83)](){const _0x4905c9=_0x108639;this[_0x4905c9(0xcd)]['forEach'](_0x332710=>{const _0x526313=_0x4905c9;_0x332710[_0x526313(0x9b)](_0x1369bd=>{const _0x3569c9=_0x526313;_0x1369bd[_0x3569c9(0x83)]();});});}},_0x39371a['SheetsShapeService']=_0x1dfe14([_0x3bc5e9(0x0,_0x4b6bef[_0x108639(0x6f)])],_0x39371a['SheetsShapeService']);const _0x50cadc={'id':_0x108639(0x6d),'type':_0x4b6bef[_0x108639(0x81)]['MUTATION'],'handler':(_0x504b7d,_0x5b3312)=>{const _0x1d5490=_0x108639,{unitId:_0x3b9949,subUnitId:_0x2ab490,shapeType:_0x18206c,shapeId:_0x5560fd,shapeData:_0x3a7ba9}=_0x5b3312,_0xac6755=_0x504b7d['get'](_0x39371a['SheetsShapeService'])['getShapeModel'](_0x3b9949,_0x2ab490,_0x5560fd);return _0xac6755&&(_0xac6755[_0x1d5490(0x9f)](_0x18206c),_0x3a7ba9&&(_0xac6755==null||_0xac6755['setShapeData'](_0x3a7ba9))),!0x0;}},_0x28515a={'id':_0x108639(0xc8),'type':_0x4b6bef['CommandType'][_0x108639(0xac)],'handler':(_0x2e98e2,_0x133e57)=>{const _0x2c21b6=_0x108639;if(!_0x133e57)return!0x1;const _0xe0715f=_0x2e98e2[_0x2c21b6(0x9c)](_0x4b6bef[_0x2c21b6(0x99)]),_0x1c8068=_0x2e98e2[_0x2c21b6(0x9c)](_0x39371a[_0x2c21b6(0x67)]),_0xc147b9=_0x2e98e2['get'](_0x4b6bef[_0x2c21b6(0xa5)]),_0x55fa30=[],_0x464506=[],{unitId:_0x3c86e1,subUnitId:_0x2514c9,shapeId:_0x133cdd,shapeType:_0x90432a,shapeData:_0x4fb89c}=_0x133e57,_0x462b56=_0x1c8068[_0x2c21b6(0x7a)](_0x3c86e1,_0x2514c9,_0x133cdd);if(_0x462b56){const _0x50b92d=_0x462b56[_0x2c21b6(0x7f)](),_0x54747b=Object[_0x2c21b6(0xc0)]({},_0x462b56[_0x2c21b6(0xa3)]()),_0x4d2a7e={'unitId':_0x3c86e1,'subUnitId':_0x2514c9,'shapeId':_0x133cdd,'shapeType':_0x90432a,'shapeData':_0x4fb89c},_0x36f022={'unitId':_0x3c86e1,'subUnitId':_0x2514c9,'shapeId':_0x133cdd,'shapeType':_0x50b92d,'shapeData':_0x54747b};return _0x55fa30['push']({'id':_0x50cadc['id'],'params':_0x4d2a7e}),_0x464506[_0x2c21b6(0x87)]({'id':_0x50cadc['id'],'params':_0x36f022}),_0x55fa30[_0x2c21b6(0xc4)](_0x564784=>_0xe0715f[_0x2c21b6(0x6b)](_0x564784['id'],_0x564784['params']))&&_0xc147b9[_0x2c21b6(0x72)]({'unitID':_0x3c86e1,'redoMutations':[..._0x55fa30],'undoMutations':[..._0x464506]}),!0x0;}return!0x1;}},_0x4ae940={'id':_0x108639(0xb8),'type':_0x4b6bef['CommandType'][_0x108639(0x9e)],'handler':(_0x270452,_0x48a952)=>{const _0x12d40a=_0x108639,{unitId:_0x58a82c,subUnitId:_0x1745f2,shapeType:_0x384e70,shapeId:_0x432b82,shapeData:_0x569d99}=_0x48a952;return _0x270452[_0x12d40a(0x9c)](_0x39371a[_0x12d40a(0x67)])['insertShape'](_0x58a82c,_0x1745f2,_0x384e70,_0x432b82,_0x569d99),!0x0;}},_0x4770dd={'id':_0x108639(0xc3),'type':_0x4b6bef[_0x108639(0x81)]['MUTATION'],'handler':(_0x23863b,_0x16f486)=>{const _0x5b008d=_0x108639,{unitId:_0x32e3c1,subUnitId:_0x4fa083,shapeId:_0x4550fb}=_0x16f486;return _0x23863b[_0x5b008d(0x9c)](_0x39371a[_0x5b008d(0x67)])['removeShape'](_0x32e3c1,_0x4fa083,_0x4550fb),!0x0;}},_0x50bdb1={'id':'sheet.mutation.update-shape-data','type':_0x4b6bef[_0x108639(0x81)][_0x108639(0x9e)],'handler':(_0x575455,_0x2b3f23)=>{const _0x31ae59=_0x108639,{unitId:_0xa13563,subUnitId:_0x36a297,shapeType:_0x1f5787,shapeId:_0x3ea2fb,shapeData:_0x2f0fbf}=_0x2b3f23,_0x148215=_0x575455[_0x31ae59(0x9c)](_0x39371a[_0x31ae59(0x67)])[_0x31ae59(0x7a)](_0xa13563,_0x36a297,_0x3ea2fb);return _0x148215&&(_0x1f5787!==void 0x0&&_0x148215[_0x31ae59(0x9f)](_0x1f5787),_0x2f0fbf&&(_0x148215==null||_0x148215[_0x31ae59(0x8e)](_0x2f0fbf,!0x0))),!0x0;}},_0x5d3ab5=_0x108639(0x93),_0x3f647b={};var _0x5406a8=Object[_0x108639(0xcb)],_0x47ace1=Object[_0x108639(0x8f)],_0x334f9d=(_0x287f65,_0x5c2497,_0x347b5f)=>_0x5c2497 in _0x287f65?_0x5406a8(_0x287f65,_0x5c2497,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x347b5f}):_0x287f65[_0x5c2497]=_0x347b5f,_0x34c82d=(_0x5c69e8,_0x37d224,_0x2b41d9,_0x293cd0)=>{const _0x2ac612=_0x108639;for(var _0x31b9f9=_0x293cd0>0x1?void 0x0:_0x293cd0?_0x47ace1(_0x37d224,_0x2b41d9):_0x37d224,_0xfdaf93=_0x5c69e8[_0x2ac612(0xc9)]-0x1,_0x1c8b1d;_0xfdaf93>=0x0;_0xfdaf93--)(_0x1c8b1d=_0x5c69e8[_0xfdaf93])&&(_0x31b9f9=_0x1c8b1d(_0x31b9f9)||_0x31b9f9);return _0x31b9f9;},_0x83417b=(_0x4502c5,_0x157737)=>(_0x51adab,_0x3ecf7a)=>_0x157737(_0x51adab,_0x3ecf7a,_0x4502c5),_0x469fb4=(_0x14ce5a,_0x487a8a,_0x6d0b2f)=>_0x334f9d(_0x14ce5a,typeof _0x487a8a!='symbol'?_0x487a8a+'':_0x487a8a,_0x6d0b2f);const _0x452254=_0x108639(0x86);_0x39371a['UniverSheetsShapePlugin']=class extends _0x4b6bef[_0x108639(0x7b)]{constructor(_0x3aef3a=_0x3f647b,_0x14ec08,_0xb14e80,_0x4dcc60){const _0x1015de=_0x108639;super(),this['_config']=_0x3aef3a,this['_injector']=_0x14ec08,this['_commandService']=_0xb14e80,this[_0x1015de(0x68)]=_0x4dcc60;const {..._0x2e3066}=_0x4b6bef['merge']({},_0x3f647b,this[_0x1015de(0xb4)]);this['_configService'][_0x1015de(0xcc)](_0x5d3ab5,_0x2e3066),this[_0x1015de(0x6c)]();}[_0x108639(0xbb)](){const _0x4f1070=_0x108639;_0x4b6bef[_0x4f1070(0x80)](this['_injector'],[]);}[_0x108639(0x91)](){const _0x1d27fd=_0x108639,_0xe148f6=this['_injector'];[[_0x431737],[_0x39371a[_0x1d27fd(0x67)]]][_0x1d27fd(0x9b)](_0x227ef9=>_0xe148f6[_0x1d27fd(0xae)](_0x227ef9));}[_0x108639(0x6c)](){const _0x2dfad9=_0x108639;[_0x4ae940,_0x4770dd,_0x50cadc,_0x50bdb1][_0x2dfad9(0x9b)](_0x551dbe=>this[_0x2dfad9(0xb3)](this[_0x2dfad9(0x6e)][_0x2dfad9(0xad)](_0x551dbe)));}},_0x469fb4(_0x39371a['UniverSheetsShapePlugin'],_0x108639(0xbe),_0x4b6bef[_0x108639(0xb7)]['UNIVER_SHEET']),_0x469fb4(_0x39371a[_0x108639(0xb5)],_0x108639(0xc5),_0x452254),_0x39371a['UniverSheetsShapePlugin']=_0x34c82d([_0x4b6bef['DependentOn'](_0xcf7dfa['UniverLicensePlugin']),_0x83417b(0x1,_0x4b6bef[_0x108639(0xa4)](_0x4b6bef[_0x108639(0x88)])),_0x83417b(0x2,_0x4b6bef['ICommandService']),_0x83417b(0x3,_0x4b6bef[_0x108639(0x77)])],_0x39371a[_0x108639(0xb5)]),_0x39371a[_0x108639(0x7c)]=_0x4ae940,_0x39371a[_0x108639(0xa6)]=_0x4770dd,_0x39371a[_0x108639(0xa8)]=_0x50bdb1,_0x39371a[_0x108639(0x8c)]=_0x28515a,_0x39371a[_0x108639(0xa7)]=_0x50cadc,Object[_0x108639(0xcb)](_0x39371a,Symbol[_0x108639(0xa2)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-shape",
3
- "version": "0.15.5",
3
+ "version": "0.16.0-insiders.20260302-b09f1e4",
4
4
  "private": false,
5
5
  "description": "shape for Univer.",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,17 +57,17 @@
57
57
  "rxjs": ">=7.0.0"
58
58
  },
59
59
  "dependencies": {
60
- "@univerjs-pro/license": "0.15.5",
61
- "@univerjs/core": "0.15.5",
62
- "@univerjs-pro/engine-shape": "0.15.5"
60
+ "@univerjs-pro/engine-shape": "0.16.0-insiders.20260302-b09f1e4",
61
+ "@univerjs/core": "0.16.0-insiders.20260302-b09f1e4",
62
+ "@univerjs-pro/license": "0.16.0-insiders.20260302-b09f1e4"
63
63
  },
64
64
  "devDependencies": {
65
65
  "rxjs": "7.8.2",
66
66
  "typescript": "^5.9.3",
67
67
  "vite": "^7.3.1",
68
68
  "vitest": "^4.0.18",
69
- "@univerjs-infra/shared": "0.15.5",
70
- "@univerjs/sheets": "0.15.5"
69
+ "@univerjs-infra/shared": "0.16.0",
70
+ "@univerjs/sheets": "0.16.0-insiders.20260302-b09f1e4"
71
71
  },
72
72
  "scripts": {
73
73
  "test": "vitest run",