@univerjs-pro/sheets-shape 1.0.0-rc.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3f84(_0x4961f5,_0x2902fa){_0x4961f5=_0x4961f5-0xd3;const _0x1e6842=_0x1e68();let _0x3f8453=_0x1e6842[_0x4961f5];return _0x3f8453;}(function(_0x15be41,_0x4b2eae){const _0x59d0a8=_0x3f84,_0x853f8a=_0x15be41();while(!![]){try{const _0x57ef00=-parseInt(_0x59d0a8(0x133))/0x1*(-parseInt(_0x59d0a8(0xd4))/0x2)+parseInt(_0x59d0a8(0x13f))/0x3+-parseInt(_0x59d0a8(0x15b))/0x4+-parseInt(_0x59d0a8(0x152))/0x5*(-parseInt(_0x59d0a8(0x175))/0x6)+-parseInt(_0x59d0a8(0x14f))/0x7*(parseInt(_0x59d0a8(0x1a4))/0x8)+-parseInt(_0x59d0a8(0x1c7))/0x9*(parseInt(_0x59d0a8(0x197))/0xa)+parseInt(_0x59d0a8(0xda))/0xb*(parseInt(_0x59d0a8(0xe3))/0xc);if(_0x57ef00===_0x4b2eae)break;else _0x853f8a['push'](_0x853f8a['shift']());}catch(_0x7f062a){_0x853f8a['push'](_0x853f8a['shift']());}}}(_0x1e68,0xe8fad),function(_0x3e4c37,_0x44c1d9){const _0x31d904=_0x3f84;typeof exports==_0x31d904(0x184)&&typeof module<'u'?_0x44c1d9(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x31d904(0x162)&&define['amd']?define([_0x31d904(0x19d),_0x31d904(0x10e),_0x31d904(0xf0),_0x31d904(0x19e),'@univerjs/sheets-drawing',_0x31d904(0x1d2),'@univerjs/drawing'],_0x44c1d9):(_0x3e4c37=typeof globalThis<'u'?globalThis:_0x3e4c37||self,_0x44c1d9(_0x3e4c37[_0x31d904(0x105)]={},_0x3e4c37[_0x31d904(0xe0)],_0x3e4c37['UniverCore'],_0x3e4c37['UniverSheets'],_0x3e4c37[_0x31d904(0x106)],_0x3e4c37[_0x31d904(0x15f)],_0x3e4c37[_0x31d904(0x116)]));}(this,function(_0x1a712f,_0x13ff20,_0x59240f,_0x3b5464,_0x43a085,_0x42b016,_0x11fd09){const _0xc3989b=_0x3f84;Object[_0xc3989b(0x104)](_0x1a712f,Symbol[_0xc3989b(0x185)],{'value':'Module'});function _0x221881(_0x599baa){'@babel/helpers - typeof';const _0x19c9ad=_0xc3989b;return _0x221881=typeof Symbol==_0x19c9ad(0x162)&&typeof Symbol[_0x19c9ad(0x137)]==_0x19c9ad(0x169)?function(_0x5d472c){return typeof _0x5d472c;}:function(_0x4e2931){const _0x28761c=_0x19c9ad;return _0x4e2931&&typeof Symbol==_0x28761c(0x162)&&_0x4e2931[_0x28761c(0x1b4)]===Symbol&&_0x4e2931!==Symbol[_0x28761c(0x1b6)]?_0x28761c(0x169):typeof _0x4e2931;},_0x221881(_0x599baa);}function _0x1c2fa6(_0x964644,_0x3ca6cc){const _0x49ab60=_0xc3989b;if(_0x221881(_0x964644)!=_0x49ab60(0x184)||!_0x964644)return _0x964644;var _0x5e644a=_0x964644[Symbol[_0x49ab60(0x123)]];if(_0x5e644a!==void 0x0){var _0x3c2a7f=_0x5e644a['call'](_0x964644,_0x3ca6cc||_0x49ab60(0x108));if(_0x221881(_0x3c2a7f)!=_0x49ab60(0x184))return _0x3c2a7f;throw TypeError(_0x49ab60(0xec));}return(_0x3ca6cc===_0x49ab60(0x113)?String:Number)(_0x964644);}function _0x7f4e63(_0xbd4384){const _0x52d3a5=_0xc3989b;var _0x58b489=_0x1c2fa6(_0xbd4384,_0x52d3a5(0x113));return _0x221881(_0x58b489)==_0x52d3a5(0x169)?_0x58b489:_0x58b489+'';}function _0x7318f0(_0x1fe170,_0x1c060f,_0x3ea9b6){const _0x5c89c7=_0xc3989b;return(_0x1c060f=_0x7f4e63(_0x1c060f))in _0x1fe170?Object[_0x5c89c7(0x104)](_0x1fe170,_0x1c060f,{'value':_0x3ea9b6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1fe170[_0x1c060f]=_0x3ea9b6,_0x1fe170;}var _0x4c6fe2=class extends _0x59240f[_0xc3989b(0x182)]{constructor(){const _0x557ac1=_0xc3989b;super(),_0x7318f0(this,_0x557ac1(0xd7),new Map()),_0x7318f0(this,_0x557ac1(0x146),new Set()),_0x7318f0(this,_0x557ac1(0x14c),new Set());}[_0xc3989b(0xf3)](_0x528612,_0x4975f0,_0xd107ad,_0x522f76){const _0x2d35bf=_0xc3989b;let _0x450a5b=new _0x13ff20[(_0x2d35bf(0x142))](_0x528612,_0x4975f0,_0xd107ad,_0x522f76);return this[_0x2d35bf(0xd7)][_0x2d35bf(0x10c)](_0x4975f0,_0x450a5b),(0x0,_0x13ff20[_0x2d35bf(0x198)])(_0x528612)&&this[_0x2d35bf(0x146)][_0x2d35bf(0x1e5)](_0x4975f0),_0x450a5b;}[_0xc3989b(0x1d7)](_0x35b738){const _0x1e6566=_0xc3989b;let _0x51f729=[];for(let _0x4f29d5 of this['_linesIds']){let _0x9f4a92=this[_0x1e6566(0xd7)]['get'](_0x4f29d5);if(_0x9f4a92){let _0x915329=_0x9f4a92[_0x1e6566(0x147)]();if(_0x915329){var _0x5ccbe9,_0x354e70;((_0x5ccbe9=_0x915329[_0x1e6566(0x15a)])==null?void 0x0:_0x5ccbe9[_0x1e6566(0x103)])===_0x35b738&&_0x51f729['push']({..._0x915329[_0x1e6566(0x15a)],'lineShapeId':_0x4f29d5,'isFrom':!0x0}),((_0x354e70=_0x915329['to'])==null?void 0x0:_0x354e70[_0x1e6566(0x103)])===_0x35b738&&_0x51f729['push']({..._0x915329['to'],'lineShapeId':_0x4f29d5,'isFrom':!0x1});}}}return _0x51f729;}[_0xc3989b(0x1dc)](_0x280b49){const _0xdbb75c=_0xc3989b;let _0x450b25=this['_shapes'][_0xdbb75c(0xd9)](_0x280b49);if(_0x450b25)return _0x450b25[_0xdbb75c(0x147)]();}['getShapeType'](_0x3e90d2){const _0x515fbd=_0xc3989b;let _0x50ff72=this[_0x515fbd(0xd7)][_0x515fbd(0xd9)](_0x3e90d2);if(_0x50ff72)return _0x50ff72[_0x515fbd(0x173)]();}[_0xc3989b(0xf7)](_0x47ff38){const _0x1c2d4c=_0xc3989b;return this[_0x1c2d4c(0xd7)][_0x1c2d4c(0x148)](_0x47ff38);}[_0xc3989b(0x1a6)](){const _0x395f15=_0xc3989b;return Array[_0x395f15(0x15a)](this[_0x395f15(0xd7)]['values']())[_0x395f15(0x1c0)](_0x3072d0=>_0x3072d0[_0x395f15(0x11a)]()||_0x3072d0[_0x395f15(0x1e6)]());}[_0xc3989b(0x1a0)](_0xf7532d){const _0x7f7793=_0xc3989b;let _0x2478a2=this[_0x7f7793(0xd7)]['get'](_0xf7532d);_0x2478a2&&((0x0,_0x13ff20[_0x7f7793(0x198)])(_0x2478a2[_0x7f7793(0x173)]())&&this['_linesIds']['delete'](_0xf7532d),this['_shapes'][_0x7f7793(0x136)](_0xf7532d));}[_0xc3989b(0x1cf)](){let _0x5d6771=[];return this['_shapes']['forEach'](_0x944167=>{const _0x496c9a=_0x3f84;_0x5d6771[_0x496c9a(0xdb)](_0x944167[_0x496c9a(0x1cf)]());}),_0x5d6771;}[_0xc3989b(0x1db)](_0x496407){const _0x2a5af6=_0xc3989b;for(let _0x17d24a of _0x496407){let {id:_0x406465,shapeType:_0x253b42,name:_0x5a8969}=_0x17d24a,_0xf5a745=this[_0x2a5af6(0xf3)](_0x253b42,_0x406465,_0x17d24a[_0x2a5af6(0x1b0)],_0x5a8969);_0xf5a745&&_0xf5a745['isLineShape']()&&this['_linesIds']['add'](_0x406465);}}[_0xc3989b(0x1ce)](){const _0x34c98b=_0xc3989b;this['_disposed']||(this[_0x34c98b(0xd7)]['forEach'](_0x691515=>{const _0x31d4dd=_0x34c98b;_0x691515[_0x31d4dd(0x1ce)]();}),this[_0x34c98b(0xd7)][_0x34c98b(0x10f)](),this[_0x34c98b(0x146)][_0x34c98b(0x10f)](),this['_groupIds'][_0x34c98b(0x10f)](),super[_0x34c98b(0x1ce)]());}};function _0x4cea80(_0x6c7527,_0x1d3ab8){return function(_0x37c876,_0x4dd537){_0x1d3ab8(_0x37c876,_0x4dd537,_0x6c7527);};}function _0x4bde66(_0xb29651,_0x4be108,_0x5b40e3,_0x2a4905){const _0x3031c5=_0xc3989b;var _0x2e85c6=arguments['length'],_0x3af451=_0x2e85c6<0x3?_0x4be108:_0x2a4905===null?_0x2a4905=Object[_0x3031c5(0x171)](_0x4be108,_0x5b40e3):_0x2a4905,_0x218347;if(typeof Reflect==_0x3031c5(0x184)&&typeof Reflect['decorate']==_0x3031c5(0x162))_0x3af451=Reflect[_0x3031c5(0x109)](_0xb29651,_0x4be108,_0x5b40e3,_0x2a4905);else{for(var _0x39d5fa=_0xb29651[_0x3031c5(0x1a1)]-0x1;_0x39d5fa>=0x0;_0x39d5fa--)(_0x218347=_0xb29651[_0x39d5fa])&&(_0x3af451=(_0x2e85c6<0x3?_0x218347(_0x3af451):_0x2e85c6>0x3?_0x218347(_0x4be108,_0x5b40e3,_0x3af451):_0x218347(_0x4be108,_0x5b40e3))||_0x3af451);}return _0x2e85c6>0x3&&_0x3af451&&Object[_0x3031c5(0x104)](_0x4be108,_0x5b40e3,_0x3af451),_0x3af451;}let _0x13c298=class extends _0x59240f['Disposable']{constructor(_0x28c8e5){const _0x2f53e4=_0xc3989b;super(),this['_resourcesManagerService']=_0x28c8e5,_0x7318f0(this,_0x2f53e4(0x13a),new Map()),this[_0x2f53e4(0xf8)]();}[_0xc3989b(0x165)](_0x4868de,_0x1b3d4b){const _0x59ca09=_0xc3989b;let _0x48f45e=this[_0x59ca09(0x13a)][_0x59ca09(0xd9)](_0x4868de);_0x48f45e||(_0x48f45e=new Map(),this[_0x59ca09(0x13a)][_0x59ca09(0x10c)](_0x4868de,_0x48f45e));let _0x29c8bd=_0x48f45e[_0x59ca09(0xd9)](_0x1b3d4b);return _0x29c8bd||(_0x29c8bd=new _0x4c6fe2(),_0x48f45e[_0x59ca09(0x10c)](_0x1b3d4b,_0x29c8bd)),_0x29c8bd;}[_0xc3989b(0x19f)](_0x1e3bb3,_0x64eaf2,_0x40a4d5,_0x428f16,_0x54b6ef,_0x34c755){const _0x591751=_0xc3989b;this['_ensureShapeModelManager'](_0x1e3bb3,_0x64eaf2)[_0x591751(0xf3)](_0x40a4d5,_0x428f16,_0x54b6ef,_0x34c755);}[_0xc3989b(0x1a0)](_0xe96578,_0x35a743,_0x58ac68){const _0x38b1a6=_0xc3989b;this[_0x38b1a6(0x165)](_0xe96578,_0x35a743)[_0x38b1a6(0x1a0)](_0x58ac68);}[_0xc3989b(0x186)](_0x24c958,_0x574d23,_0x5a20d2){const _0x50e738=_0xc3989b;return this[_0x50e738(0x165)](_0x24c958,_0x574d23)[_0x50e738(0x173)](_0x5a20d2);}[_0xc3989b(0x173)](_0x4f18f6,_0x2824b4,_0x49d401){const _0x13b78c=_0xc3989b;return this['_ensureShapeModelManager'](_0x4f18f6,_0x2824b4)[_0x13b78c(0x173)](_0x49d401);}[_0xc3989b(0xf7)](_0x80d838,_0x396e19,_0x36f451){const _0x47636b=_0xc3989b;return this[_0x47636b(0x165)](_0x80d838,_0x396e19)['hasShape'](_0x36f451);}[_0xc3989b(0x139)](_0x2a7111,_0x122c98,_0x3ef3bc){const _0x501306=_0xc3989b;return this[_0x501306(0x165)](_0x2a7111,_0x122c98)[_0x501306(0x173)](_0x3ef3bc);}['getShapeDataById'](_0xd80b83,_0x284350,_0x16bae0){const _0x1b2aa0=_0xc3989b;let _0x3aaf4b=this['_ensureShapeModelManager'](_0xd80b83,_0x284350);if(!_0x3aaf4b['getShapeType'](_0x16bae0))return;let _0x8ee55e=_0x3aaf4b[_0x1b2aa0(0xd7)][_0x1b2aa0(0xd9)](_0x16bae0);if(_0x8ee55e)return _0x8ee55e[_0x1b2aa0(0x1bd)]();}[_0xc3989b(0x1a6)](_0x2bcfc3,_0x4e4f5a){const _0xa28400=_0xc3989b;return this['_ensureShapeModelManager'](_0x2bcfc3,_0x4e4f5a)[_0xa28400(0x1a6)]();}[_0xc3989b(0x128)](_0x9bba01,_0x57d666,_0x24a2e7){const _0x42520e=_0xc3989b;return this[_0x42520e(0x165)](_0x9bba01,_0x57d666)[_0x42520e(0xd7)]['get'](_0x24a2e7);}['getBasicShapeRelation'](_0x4631cf,_0xda0902,_0x28e993){const _0x5be110=_0xc3989b;return this[_0x5be110(0x165)](_0x4631cf,_0xda0902)[_0x5be110(0x1d7)](_0x28e993);}[_0xc3989b(0x1dc)](_0x523e9c,_0x12109f,_0x1505b6){const _0x451670=_0xc3989b;let _0x58bf1a=this['_ensureShapeModelManager'](_0x523e9c,_0x12109f)[_0x451670(0xd7)][_0x451670(0xd9)](_0x1505b6);if(_0x58bf1a)return _0x58bf1a['getShapeRelation']();}[_0xc3989b(0x121)](){}[_0xc3989b(0x174)](_0x15e7af){const _0x452a43=_0xc3989b;let _0x59b8df={},_0x5a0426=this['_shapeModelManagerMap'][_0x452a43(0xd9)](_0x15e7af);return _0x5a0426&&_0x5a0426['forEach']((_0x2c533f,_0x3a9190)=>{const _0x7bdb8a=_0x452a43;let _0x2be08a=_0x2c533f[_0x7bdb8a(0x1cf)]();_0x2be08a[_0x7bdb8a(0x1a1)]>0x0&&(_0x59b8df[_0x3a9190]=_0x2be08a);}),JSON[_0x452a43(0x1b1)](_0x59b8df);}[_0xc3989b(0x16c)](_0x2d8cf5,_0x1ecd44){const _0x25416f=_0xc3989b;Object[_0x25416f(0xee)](_0x1ecd44)[_0x25416f(0x196)](_0x91be6a=>{const _0x1916db=_0x25416f;this[_0x1916db(0x165)](_0x2d8cf5,_0x91be6a)[_0x1916db(0x1db)](_0x1ecd44[_0x91be6a]);});}[_0xc3989b(0x1cf)](){const _0x333fa8=_0xc3989b;let _0x274c9e={};return this[_0x333fa8(0x13a)][_0x333fa8(0x196)]((_0x3835ab,_0x349731)=>{const _0x583f79=_0x333fa8;_0x274c9e[_0x349731]={},_0x3835ab[_0x583f79(0x196)]((_0x1023ba,_0x393382)=>{const _0x4c08ba=_0x583f79;_0x274c9e[_0x349731][_0x393382]=_0x1023ba[_0x4c08ba(0x1cf)]();});}),_0x274c9e;}[_0xc3989b(0x1db)](_0x2629a5){const _0x3dd250=_0xc3989b;Object[_0x3dd250(0xee)](_0x2629a5)['forEach'](_0x4d7c66=>{const _0x2d9b0e=_0x3dd250;let _0x4d9762=_0x2629a5[_0x4d7c66];Object['keys'](_0x4d9762)[_0x2d9b0e(0x196)](_0x143a8b=>{const _0x281ed0=_0x2d9b0e;this['_ensureShapeModelManager'](_0x4d7c66,_0x143a8b)[_0x281ed0(0x1db)](_0x4d9762[_0x143a8b]);});});}[_0xc3989b(0xf8)](){const _0x102684=_0xc3989b;this[_0x102684(0x16b)][_0x102684(0xf2)]({'pluginName':_0x102684(0x1ad),'businesses':[_0x59240f[_0x102684(0x10d)][_0x102684(0x149)]],'toJson':_0x758cb4=>this['_serializeShapeForUnit'](_0x758cb4),'parseJson':_0x368087=>JSON[_0x102684(0xe2)](_0x368087),'onLoad':(_0x42b414,_0x1fd640)=>{const _0x4d3a56=_0x102684;this[_0x4d3a56(0x16c)](_0x42b414,_0x1fd640);},'onUnLoad':_0xb18f26=>{const _0xb1d112=_0x102684;let _0x2aa4d2=this[_0xb1d112(0x13a)]['get'](_0xb18f26);_0x2aa4d2&&(_0x2aa4d2[_0xb1d112(0x196)](_0x175e8c=>{const _0x28fded=_0xb1d112;_0x175e8c[_0x28fded(0x1ce)]();}),this[_0xb1d112(0x13a)][_0xb1d112(0x136)](_0xb18f26));}});}[_0xc3989b(0x1ce)](){const _0x510d4a=_0xc3989b;this[_0x510d4a(0x13a)][_0x510d4a(0x196)](_0x44996d=>{_0x44996d['forEach'](_0x5bd0b1=>{const _0x5443de=_0x3f84;_0x5bd0b1[_0x5443de(0x1ce)]();});});}};_0x13c298=_0x4bde66([_0x4cea80(0x0,_0x59240f[_0xc3989b(0x17a)])],_0x13c298);let _0x3a2754={'id':_0xc3989b(0xfc),'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x12b)],'handler':(_0x241254,_0x19efc3)=>{const _0x474b83=_0xc3989b;let {unitId:_0x5bfdee,subUnitId:_0x167a5d,shapeType:_0x4caad1,shapeId:_0x59e01f,shapeName:_0x5a2e57,shapeData:_0x2c6153}=_0x19efc3;return _0x241254[_0x474b83(0xd9)](_0x13c298)[_0x474b83(0x19f)](_0x5bfdee,_0x167a5d,_0x4caad1,_0x59e01f,_0x59240f[_0x474b83(0x13c)][_0x474b83(0x170)](_0x2c6153),_0x5a2e57),!0x0;}},_0x3b0254={'id':_0xc3989b(0x163),'type':_0x59240f[_0xc3989b(0x1a9)]['MUTATION'],'handler':(_0x448add,_0x295aa3)=>{const _0xce6c4a=_0xc3989b;let {unitId:_0x1b3928,subUnitId:_0x41e6dd,shapeId:_0x150fef}=_0x295aa3;return _0x448add[_0xce6c4a(0xd9)](_0x13c298)[_0xce6c4a(0x1a0)](_0x1b3928,_0x41e6dd,_0x150fef),!0x0;}},_0x32a208={'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x1ae)],'id':_0xc3989b(0x1be),'handler':(_0x32292d,_0x526afb)=>{const _0x13c07b=_0xc3989b;let _0xe38c06=(0x0,_0x3b5464['getSheetCommandTarget'])(_0x32292d[_0x13c07b(0xd9)](_0x59240f['IUniverInstanceService']),_0x526afb);if(!_0xe38c06)return!0x1;let _0x5d1987=_0x32292d[_0x13c07b(0xd9)](_0x3b5464[_0x13c07b(0x13b)]),{unitId:_0x10b496,subUnitId:_0x1735b7}=_0xe38c06,_0x35fc96=_0x5d1987[_0x13c07b(0x1af)](_0x10b496,_0x1735b7);if(!_0x35fc96)return!0x1;let _0x4966d9=_0x32292d[_0x13c07b(0xd9)](_0x59240f[_0x13c07b(0x1a5)]),_0x521fcf=_0x32292d[_0x13c07b(0xd9)](_0x59240f[_0x13c07b(0x138)]),_0x213324=_0x32292d[_0x13c07b(0xd9)](_0x3b5464[_0x13c07b(0x15c)]),_0x1f121f=_0x32292d[_0x13c07b(0xd9)](_0x43a085[_0x13c07b(0xf4)]),_0x30d34f=_0x32292d[_0x13c07b(0xd9)](_0x13c298),{shapeType:_0x3d6c7b}=_0x526afb,_0x3c1dad=_0x526afb[_0x13c07b(0x1b0)]??(0x0,_0x13ff20[_0x13c07b(0x18c)])(_0x3d6c7b),_0x28d62e=_0x526afb[_0x13c07b(0x103)]||(0x0,_0x59240f['generateRandomId'])(),_0x1e5ada={'unitId':_0x10b496,'subUnitId':_0x1735b7,'shapeId':_0x28d62e,'shapeName':_0x526afb[_0x13c07b(0x120)]??(0x0,_0x13ff20['createUniqueShapeName'])(_0x3d6c7b,_0x30d34f[_0x13c07b(0x1a6)](_0x10b496,_0x1735b7)),'shapeType':_0x3d6c7b,'shapeData':_0x3c1dad},_0x5e9963=_0x526afb[_0x13c07b(0xef)]||0xc8,_0x3b6787=_0x526afb[_0x13c07b(0x180)]||0xc8,_0x256373=0x0,_0x5ea323=0x0;if(_0x526afb[_0x13c07b(0x1ab)]){let {x:_0x5316f5,y:_0x4644f3}=_0x526afb['position'];_0x256373=_0x5316f5,_0x5ea323=_0x4644f3;}else{if(_0x526afb[_0x13c07b(0x17d)]){let {startRow:_0x22815b,startColumn:_0x116c29}=_0x526afb[_0x13c07b(0x17d)],_0x53f87f=_0x35fc96[_0x13c07b(0x101)](_0x22815b,_0x116c29);_0x256373=_0x53f87f[_0x13c07b(0x12e)]+0xa,_0x5ea323=_0x53f87f[_0x13c07b(0x192)]+0xa;}}let _0x19be42={'left':_0x256373,'top':_0x5ea323,'width':_0x5e9963,'height':_0x3b6787,'angle':_0x526afb['rotation']??0x0,'flipX':_0x526afb[_0x13c07b(0x150)]??!0x1,'flipY':_0x526afb[_0x13c07b(0x12f)]??!0x1},_0x4d637f=(0x0,_0x43a085[_0x13c07b(0x1c9)])(_0x19be42,_0x35fc96),_0x25caa3=(0x0,_0x43a085[_0x13c07b(0x1d6)])(_0x19be42,_0x35fc96),_0xb4e4a6={'unitId':_0x10b496,'subUnitId':_0x1735b7,'drawingId':_0x28d62e,'drawingType':_0x59240f[_0x13c07b(0x1de)][_0x13c07b(0xe5)],'anchorType':_0x43a085[_0x13c07b(0x141)][_0x13c07b(0x10a)],'name':_0x526afb[_0x13c07b(0x1e8)],'description':_0x526afb['description'],'sheetTransform':_0x4d637f,'transform':_0x19be42,'data':{'shapeType':_0x3d6c7b,'shapeData':_0x3c1dad},'axisAlignSheetTransform':_0x25caa3,'allowTransform':!0x0,'hidden':_0x526afb[_0x13c07b(0x1ac)]===!0x1,'selectable':_0x526afb[_0x13c07b(0x1df)]??!0x0};(0x0,_0x13ff20[_0x13c07b(0x198)])(_0x3d6c7b)&&(_0xb4e4a6[_0x13c07b(0x135)][_0x13c07b(0x168)]=!0x1,_0xb4e4a6[_0x13c07b(0x135)][_0x13c07b(0x1bc)]=!0x1,_0xb4e4a6[_0x13c07b(0x135)][_0x13c07b(0x110)]=!0x1,_0xb4e4a6[_0x13c07b(0x135)][_0x13c07b(0x140)]=!0x1,_0xb4e4a6[_0x13c07b(0x190)][_0x13c07b(0x1bc)]=!0x1,_0xb4e4a6[_0x13c07b(0x190)][_0x13c07b(0x110)]=!0x1,_0xb4e4a6[_0x13c07b(0x190)][_0x13c07b(0x140)]=!0x1);let {undo:_0x4be868,redo:_0x3ab3b4,objects:_0x253fa9}=_0x1f121f['getBatchAddOp']([_0xb4e4a6]),_0x302197=_0x213324['onCommandExecute']({'id':_0x43a085[_0x13c07b(0xdc)]['id'],'params':{'unitId':_0x10b496,'drawings':[_0xb4e4a6]}}),_0x340c39=[..._0x302197[_0x13c07b(0x161)]??[],{'id':_0x43a085[_0x13c07b(0x17f)]['id'],'params':{'unitId':_0x10b496,'subUnitId':_0x1735b7,'op':_0x3ab3b4,'objects':_0x253fa9,'type':_0x43a085[_0x13c07b(0x132)][_0x13c07b(0x194)]}},{'id':_0x43a085[_0x13c07b(0x126)]['id'],'params':[_0x10b496]},..._0x302197[_0x13c07b(0x187)],{'id':_0x3a2754['id'],'params':_0x1e5ada}],_0x7cf6c8=[{'id':_0x3b0254['id'],'params':{'unitId':_0x10b496,'subUnitId':_0x1735b7,'shapeId':_0x28d62e}},..._0x302197[_0x13c07b(0x102)]??[],{'id':_0x43a085['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x10b496,'subUnitId':_0x1735b7,'op':_0x4be868,'objects':_0x253fa9,'type':_0x43a085[_0x13c07b(0x132)][_0x13c07b(0x195)]}},{'id':_0x43a085['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x10b496]},..._0x302197['undos']];return(0x0,_0x59240f['sequenceExecute'])(_0x340c39,_0x4966d9)[_0x13c07b(0x164)]?(_0x521fcf[_0x13c07b(0x127)]({'unitID':_0x10b496,'undoMutations':_0x7cf6c8,'redoMutations':_0x340c39}),!0x0):!0x1;}},_0x958308={'id':_0xc3989b(0xfe),'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x12b)],'handler':(_0x5542be,_0x4a9fc6)=>{const _0x228442=_0xc3989b;let {unitId:_0x1adb1b,subUnitId:_0x29660b,shapeType:_0xb2c54e,shapeId:_0x4eb6fa,shapeData:_0x47ad15,replace:_0xbd2c2e,formulaLastValueGuard:_0x2224c8}=_0x4a9fc6,_0x49c1a7=_0x5542be[_0x228442(0xd9)](_0x13c298)[_0x228442(0x128)](_0x1adb1b,_0x29660b,_0x4eb6fa);if(_0x49c1a7){var _0x2e1a56;if(!(0x0,_0x13ff20['canApplyShapeFormulaLastValue'])(_0x5542be,{'hostType':_0x59240f[_0x228442(0x10d)][_0x228442(0x149)],'unitId':_0x1adb1b,'subUnitId':_0x29660b,'shapeId':_0x4eb6fa},(_0x2e1a56=_0x49c1a7['getShapeData']()[_0x228442(0x1c2)])==null?void 0x0:_0x2e1a56['formula'],_0x2224c8))return!0x0;_0xb2c54e!==void 0x0&&_0x49c1a7[_0x228442(0x121)](_0xb2c54e),_0x47ad15&&(_0x49c1a7==null||_0x49c1a7['setShapeData'](_0x59240f[_0x228442(0x13c)][_0x228442(0x170)](_0x47ad15),!_0xbd2c2e));}return!0x0;}},_0x2f1170={'type':_0x59240f[_0xc3989b(0x1a9)]['COMMAND'],'id':_0xc3989b(0x1aa),'handler':(_0x3236c6,_0x33ba43)=>{const _0x381272=_0xc3989b;let _0x48b1c1=(0x0,_0x3b5464['getSheetCommandTarget'])(_0x3236c6[_0x381272(0xd9)](_0x59240f[_0x381272(0x16f)]),_0x33ba43);if(!_0x48b1c1)return!0x1;let _0x1ce0de=_0x3236c6['get'](_0x3b5464[_0x381272(0x13b)]),{unitId:_0x282e89,subUnitId:_0x442697}=_0x48b1c1,_0x11eef2=_0x1ce0de[_0x381272(0x1af)](_0x282e89,_0x442697);if(!_0x11eef2)return!0x1;let _0x574a05=_0x3236c6[_0x381272(0xd9)](_0x13c298),{shapeId:_0x5b0281,shapeType:_0x2d726b,shapeData:_0x27fdd7,position:_0x2807a6,width:_0x22e0fc,height:_0xe155f1}=_0x33ba43,_0x529dd5=_0x574a05[_0x381272(0x128)](_0x282e89,_0x442697,_0x5b0281);if(!_0x529dd5)return!0x1;let _0x5086b7=_0x3236c6[_0x381272(0xd9)](_0x59240f[_0x381272(0x1a5)]),_0x4f2b44=_0x3236c6[_0x381272(0xd9)](_0x59240f['IUndoRedoService']),_0x1f28cb=_0x3236c6[_0x381272(0xd9)](_0x3b5464['SheetInterceptorService']),_0x3c890b=_0x3236c6[_0x381272(0xd9)](_0x43a085[_0x381272(0xf4)]),_0x5ce546={'unitId':_0x282e89,'subUnitId':_0x442697,'shapeId':_0x5b0281,'shapeType':_0x2d726b,'shapeData':_0x27fdd7,'replace':!0x0},_0x38d413=_0x529dd5[_0x381272(0x173)](),_0x3230ea=_0x529dd5[_0x381272(0x1bd)](),{x:_0x4ade49,y:_0xcfba01}=_0x2807a6,_0x1b4669={'left':_0x4ade49,'top':_0xcfba01,'width':_0x22e0fc,'height':_0xe155f1,'angle':_0x33ba43[_0x381272(0xfa)]??0x0,'flipX':_0x33ba43[_0x381272(0x150)]??!0x1,'flipY':_0x33ba43['flipY']??!0x1},_0x20311e=(0x0,_0x43a085[_0x381272(0x1c9)])(_0x1b4669,_0x11eef2),_0x9a39f8=(0x0,_0x43a085[_0x381272(0x1d6)])(_0x1b4669,_0x11eef2),_0x570958={'unitId':_0x282e89,'subUnitId':_0x442697,'drawingId':_0x5b0281,'drawingType':_0x59240f[_0x381272(0x1de)]['DRAWING_SHAPE'],'name':_0x33ba43[_0x381272(0x1e8)],'description':_0x33ba43[_0x381272(0xed)],'sheetTransform':_0x20311e,'transform':_0x1b4669,'data':{'shapeType':_0x2d726b,'shapeData':_0x27fdd7},'axisAlignSheetTransform':_0x9a39f8,'allowTransform':!0x0,'hidden':!_0x33ba43[_0x381272(0x1ac)],'selectable':_0x33ba43[_0x381272(0x1df)]};(0x0,_0x13ff20['isConnectorShape'])(_0x2d726b)&&(_0x570958[_0x381272(0x135)][_0x381272(0x168)]=!0x1,_0x570958['data'][_0x381272(0x1bc)]=!0x1,_0x570958[_0x381272(0x135)][_0x381272(0x110)]=!0x1,_0x570958['data'][_0x381272(0x140)]=!0x1,_0x570958[_0x381272(0x190)][_0x381272(0x1bc)]=!0x1,_0x570958[_0x381272(0x190)]['resizeEnabled']=!0x1,_0x570958[_0x381272(0x190)][_0x381272(0x140)]=!0x1);let {undo:_0x45bde9,redo:_0x1136b3,objects:_0x1c693a}=_0x3c890b[_0x381272(0x1a7)]([_0x570958]),_0x380e28=_0x1f28cb[_0x381272(0xe1)]({'id':_0x43a085[_0x381272(0x151)]['id'],'params':{'unitId':_0x282e89,'drawings':[_0x570958]}}),_0x5b8eeb=[..._0x380e28[_0x381272(0x161)]??[],{'id':_0x43a085[_0x381272(0x17f)]['id'],'params':{'unitId':_0x282e89,'subUnitId':_0x442697,'op':_0x1136b3,'objects':_0x1c693a,'type':_0x43a085[_0x381272(0x132)][_0x381272(0x1cd)]}},{'id':_0x43a085[_0x381272(0x126)]['id'],'params':[_0x282e89]},..._0x380e28[_0x381272(0x187)],{'id':_0x958308['id'],'params':_0x5ce546}],_0x35919f=[..._0x380e28['preUndos']??[],{'id':_0x43a085[_0x381272(0x17f)]['id'],'params':{'unitId':_0x282e89,'subUnitId':_0x442697,'op':_0x45bde9,'objects':_0x1c693a,'type':_0x43a085[_0x381272(0x132)][_0x381272(0x1cd)]}},{'id':_0x43a085['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x282e89]},..._0x380e28[_0x381272(0x12c)],{'id':_0x958308['id'],'params':{'unitId':_0x282e89,'subUnitId':_0x442697,'shapeType':_0x38d413,'shapeId':_0x5b0281,'shapeData':_0x3230ea,'replace':!0x0}}];return(0x0,_0x59240f[_0x381272(0x16d)])(_0x5b8eeb,_0x5086b7)['result']?(_0x4f2b44['pushUndoRedo']({'unitID':_0x282e89,'undoMutations':_0x35919f,'redoMutations':_0x5b8eeb}),!0x0):!0x1;}},_0x137a5c={'type':_0x59240f[_0xc3989b(0x1a9)]['COMMAND'],'id':_0xc3989b(0x153),'handler':(_0x4de213,_0x57f60a)=>{const _0x55a0b6=_0xc3989b;let _0xbd11d=(0x0,_0x3b5464[_0x55a0b6(0x179)])(_0x4de213[_0x55a0b6(0xd9)](_0x59240f[_0x55a0b6(0x16f)]),_0x57f60a);if(!_0xbd11d)return!0x1;let _0x2078e0=_0x4de213[_0x55a0b6(0xd9)](_0x3b5464[_0x55a0b6(0x13b)]),{unitId:_0x26f543,subUnitId:_0x2a6632}=_0xbd11d,_0x100f5f=_0x2078e0[_0x55a0b6(0x1b9)](_0x26f543,_0x2a6632);if(!_0x100f5f)return!0x1;let _0x1a384c=_0x4de213['get'](_0x43a085[_0x55a0b6(0xf4)]),{shapeId:_0x48232b,flipH:_0x3acc73,flipV:_0x281e4c}=_0x57f60a,_0x16acce=_0x1a384c[_0x55a0b6(0xdd)]({'unitId':_0x26f543,'subUnitId':_0x2a6632,'drawingId':_0x48232b});if(!_0x16acce)return!0x1;let _0x4d537f=_0x4de213[_0x55a0b6(0xd9)](_0x13c298)[_0x55a0b6(0x128)](_0x26f543,_0x2a6632,_0x48232b);if(!_0x4d537f)return!0x1;let _0x18d6b8=_0x4de213[_0x55a0b6(0xd9)](_0x59240f['ICommandService']),_0x5b62f9=_0x4de213[_0x55a0b6(0xd9)](_0x59240f[_0x55a0b6(0x138)]),_0x3dc788=_0x4de213[_0x55a0b6(0xd9)](_0x3b5464[_0x55a0b6(0x15c)]),_0x116ae2={..._0x16acce[_0x55a0b6(0x190)]};_0x3acc73!==void 0x0&&(_0x116ae2['flipX']=!_0x116ae2[_0x55a0b6(0x150)]),_0x281e4c!==void 0x0&&(_0x116ae2[_0x55a0b6(0x12f)]=!_0x116ae2[_0x55a0b6(0x12f)]);let _0x1b094f=(0x0,_0x43a085[_0x55a0b6(0x1c9)])(_0x116ae2,_0x100f5f),_0x1ee51d=(0x0,_0x43a085[_0x55a0b6(0x1d6)])(_0x116ae2,_0x100f5f),_0xca6a6b=_0x4d537f['getShapeType'](),_0xb10ce5=_0x4d537f[_0x55a0b6(0x1bd)](),_0x516759={'unitId':_0x26f543,'subUnitId':_0x2a6632,'drawingId':_0x48232b,'drawingType':_0x59240f['DrawingTypeEnum'][_0x55a0b6(0xe5)],'sheetTransform':_0x1b094f,'transform':_0x116ae2,'data':{'shapeType':_0xca6a6b,'shapeData':_0xb10ce5},'axisAlignSheetTransform':_0x1ee51d,'allowTransform':!0x0},{undo:_0x38c21f,redo:_0x1a31f7,objects:_0x544f70}=_0x1a384c[_0x55a0b6(0x1a7)]([_0x516759]),_0x2b168e=_0x3dc788[_0x55a0b6(0xe1)]({'id':_0x43a085['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x26f543,'drawings':[_0x516759]}}),_0x2e523d=[..._0x2b168e[_0x55a0b6(0x161)]??[],{'id':_0x43a085[_0x55a0b6(0x17f)]['id'],'params':{'unitId':_0x26f543,'subUnitId':_0x2a6632,'op':_0x1a31f7,'objects':_0x544f70,'type':_0x43a085[_0x55a0b6(0x132)][_0x55a0b6(0x1cd)]}},{'id':_0x43a085['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x26f543]},..._0x2b168e[_0x55a0b6(0x187)]],_0x12a057=[..._0x2b168e[_0x55a0b6(0x102)]??[],{'id':_0x43a085[_0x55a0b6(0x17f)]['id'],'params':{'unitId':_0x26f543,'subUnitId':_0x2a6632,'op':_0x38c21f,'objects':_0x544f70,'type':_0x43a085[_0x55a0b6(0x132)]['UPDATE']}},{'id':_0x43a085[_0x55a0b6(0x126)]['id'],'params':[_0x26f543]},..._0x2b168e['undos']];if((0x0,_0x13ff20[_0x55a0b6(0x198)])(_0xca6a6b)){let _0x382e2e=_0x4d537f[_0x55a0b6(0x147)]();if(_0x382e2e){let _0x422725={..._0x382e2e};_0x422725[_0x55a0b6(0x15a)]=void 0x0,_0x422725['to']=void 0x0,_0x2e523d[_0x55a0b6(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x26f543,'subUnitId':_0x2a6632,'shapeId':_0x48232b,'shapeType':_0xca6a6b,'shapeData':{'relation':_0x422725}}}),_0x12a057[_0x55a0b6(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x26f543,'subUnitId':_0x2a6632,'shapeId':_0x48232b,'shapeType':_0xca6a6b,'shapeData':{'relation':_0x382e2e}}});}}return(0x0,_0x59240f[_0x55a0b6(0x16d)])(_0x2e523d,_0x18d6b8)['result']?(_0x5b62f9['pushUndoRedo']({'unitID':_0x26f543,'undoMutations':_0x12a057,'redoMutations':_0x2e523d}),!0x0):!0x1;}},_0x1f04c5={'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x1ae)],'id':_0xc3989b(0xd6),'handler':(_0x4bfab5,_0x2e3d53)=>{const _0x5d6b57=_0xc3989b;let _0x591024=(0x0,_0x3b5464[_0x5d6b57(0x179)])(_0x4bfab5[_0x5d6b57(0xd9)](_0x59240f['IUniverInstanceService']),_0x2e3d53);if(!_0x591024)return!0x1;let _0x3b1723=_0x4bfab5['get'](_0x3b5464[_0x5d6b57(0x13b)]),{unitId:_0x49e22a,subUnitId:_0x5a5544}=_0x591024,_0x5cddd2=_0x3b1723[_0x5d6b57(0x1b9)](_0x49e22a,_0x5a5544);if(!_0x5cddd2)return!0x1;let _0x2e858f=_0x4bfab5[_0x5d6b57(0xd9)](_0x43a085['ISheetDrawingService']),{shapeId:_0x4b21cd,rotate:_0x18b97c}=_0x2e3d53,_0x29d5e9=_0x2e858f[_0x5d6b57(0xdd)]({'unitId':_0x49e22a,'subUnitId':_0x5a5544,'drawingId':_0x4b21cd});if(!_0x29d5e9)return!0x1;let _0x131ce9=_0x4bfab5[_0x5d6b57(0xd9)](_0x13c298)[_0x5d6b57(0x128)](_0x49e22a,_0x5a5544,_0x4b21cd);if(!_0x131ce9)return!0x1;let _0x371b2e=_0x4bfab5['get'](_0x59240f['ICommandService']),_0x7a4abf=_0x4bfab5[_0x5d6b57(0xd9)](_0x59240f[_0x5d6b57(0x138)]),_0x50ac9e=_0x4bfab5[_0x5d6b57(0xd9)](_0x3b5464['SheetInterceptorService']),_0x434755={..._0x29d5e9['transform']};_0x18b97c!==void 0x0&&(_0x434755[_0x5d6b57(0x1c3)]=(_0x434755['angle']||0x0)+_0x18b97c);let _0x44a936=(0x0,_0x43a085[_0x5d6b57(0x1c9)])(_0x434755,_0x5cddd2),_0x1c8d44=(0x0,_0x43a085[_0x5d6b57(0x1d6)])(_0x434755,_0x5cddd2),_0x56aedf=_0x131ce9[_0x5d6b57(0x173)](),_0x471f37=_0x131ce9[_0x5d6b57(0x1bd)](),_0x25a736={'unitId':_0x49e22a,'subUnitId':_0x5a5544,'drawingId':_0x4b21cd,'drawingType':_0x59240f[_0x5d6b57(0x1de)][_0x5d6b57(0xe5)],'sheetTransform':_0x44a936,'transform':_0x434755,'data':{'shapeType':_0x56aedf,'shapeData':_0x471f37},'axisAlignSheetTransform':_0x1c8d44,'allowTransform':!0x0},{undo:_0x2a98a8,redo:_0x1f08ac,objects:_0x56475c}=_0x2e858f[_0x5d6b57(0x1a7)]([_0x25a736]),_0x433040=_0x50ac9e['onCommandExecute']({'id':_0x43a085['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x49e22a,'drawings':[_0x25a736]}}),_0x312c2d=[..._0x433040[_0x5d6b57(0x161)]??[],{'id':_0x43a085['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x49e22a,'subUnitId':_0x5a5544,'op':_0x1f08ac,'objects':_0x56475c,'type':_0x43a085[_0x5d6b57(0x132)][_0x5d6b57(0x1cd)]}},{'id':_0x43a085[_0x5d6b57(0x126)]['id'],'params':[_0x49e22a]},..._0x433040['redos']],_0x2414c5=[..._0x433040[_0x5d6b57(0x102)]??[],{'id':_0x43a085[_0x5d6b57(0x17f)]['id'],'params':{'unitId':_0x49e22a,'subUnitId':_0x5a5544,'op':_0x2a98a8,'objects':_0x56475c,'type':_0x43a085[_0x5d6b57(0x132)]['UPDATE']}},{'id':_0x43a085[_0x5d6b57(0x126)]['id'],'params':[_0x49e22a]},..._0x433040[_0x5d6b57(0x12c)]];return(0x0,_0x59240f[_0x5d6b57(0x16d)])(_0x312c2d,_0x371b2e)[_0x5d6b57(0x164)]?(_0x7a4abf[_0x5d6b57(0x127)]({'unitID':_0x49e22a,'undoMutations':_0x2414c5,'redoMutations':_0x312c2d}),!0x0):!0x1;}},_0x4fe46e={'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x1ae)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x5f38e0,_0x4bfb1e)=>{const _0x30684a=_0xc3989b;let _0x501c8b=(0x0,_0x3b5464['getSheetCommandTarget'])(_0x5f38e0[_0x30684a(0xd9)](_0x59240f[_0x30684a(0x16f)]),_0x4bfb1e);if(!_0x501c8b)return!0x1;let {unitId:_0x297990,subUnitId:_0x470a21}=_0x501c8b,{shapeId:_0x37b11f}=_0x4bfb1e,_0x514fd7=_0x5f38e0['get'](_0x13c298)['getShapeModel'](_0x297990,_0x470a21,_0x37b11f);if(!_0x514fd7)return!0x1;let _0x538450=_0x514fd7[_0x30684a(0x1bf)](),_0x4bf0a2=(_0x538450==null?void 0x0:_0x538450['isHorizontal'])??!0x0,_0x540ae6=!_0x4bf0a2,_0x37661a=_0x5f38e0[_0x30684a(0xd9)](_0x59240f[_0x30684a(0x1a5)]),_0x582276=_0x5f38e0['get'](_0x59240f[_0x30684a(0x138)]),_0xc0419={'unitId':_0x297990,'subUnitId':_0x470a21,'shapeId':_0x37b11f,'shapeData':{'shapeText':{'isHorizontal':_0x540ae6}}},_0x322936={'unitId':_0x297990,'subUnitId':_0x470a21,'shapeId':_0x37b11f,'shapeData':{'shapeText':{'isHorizontal':_0x4bf0a2}}},_0x97823=[{'id':_0x958308['id'],'params':_0xc0419}],_0x207f5d=[{'id':_0x958308['id'],'params':_0x322936}];return(0x0,_0x59240f['sequenceExecute'])(_0x97823,_0x37661a)['result']?(_0x582276[_0x30684a(0x127)]({'unitID':_0x297990,'undoMutations':_0x207f5d,'redoMutations':_0x97823}),!0x0):!0x1;}},_0x61905a={'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x1ae)],'id':'sheet.command.update-connector-relation','handler':(_0x22243a,_0x735199)=>{const _0x1750b7=_0xc3989b;var _0x5ea625;let _0x39c538=(0x0,_0x3b5464[_0x1750b7(0x179)])(_0x22243a[_0x1750b7(0xd9)](_0x59240f[_0x1750b7(0x16f)]),_0x735199);if(!_0x39c538)return!0x1;let _0x50ee3b=_0x22243a[_0x1750b7(0xd9)](_0x3b5464['SheetSkeletonService']),{unitId:_0x41d3af,subUnitId:_0x4a9029}=_0x39c538,_0x4122b7=_0x50ee3b[_0x1750b7(0x1b9)](_0x41d3af,_0x4a9029);if(!_0x4122b7)return!0x1;let _0x25cb7c=_0x22243a[_0x1750b7(0xd9)](_0x43a085[_0x1750b7(0xf4)]),{connectorShapeId:_0x1100e3,width:_0x4de542,height:_0x426c63,left:_0xb0e3d8,top:_0x2d9855,flipX:_0x3123dd,flipY:_0x550dcf,rotation:_0x254963,oldAdjustValues:_0x39ea76,newAdjustValues:_0x647440,oldLineType:_0x7a5a8a,newLineType:_0x222ed5,oldRelation:_0x41ca3e,newRelation:_0x1e8d30}=_0x735199,_0x5d7068=_0x25cb7c['getDrawingByParam']({'unitId':_0x41d3af,'subUnitId':_0x4a9029,'drawingId':_0x1100e3});if(!_0x5d7068)return!0x1;let _0x502249=_0x22243a[_0x1750b7(0xd9)](_0x13c298)[_0x1750b7(0x128)](_0x41d3af,_0x4a9029,_0x1100e3);if(!_0x502249)return!0x1;let _0x30b0cd=_0x22243a[_0x1750b7(0xd9)](_0x59240f['ICommandService']),_0x4bc87f=_0x22243a['get'](_0x59240f[_0x1750b7(0x138)]),_0x435b00=_0x22243a['get'](_0x3b5464['SheetInterceptorService']),_0x58c831={..._0x5d7068[_0x1750b7(0x190)],'width':_0x4de542,'height':_0x426c63,'left':_0xb0e3d8,'top':_0x2d9855,'flipX':_0x3123dd,'flipY':_0x550dcf,'angle':_0x254963??((_0x5ea625=_0x5d7068[_0x1750b7(0x190)])==null?void 0x0:_0x5ea625[_0x1750b7(0x1c3)])??0x0},_0x32353d=(0x0,_0x43a085[_0x1750b7(0x1c9)])(_0x58c831,_0x4122b7),_0xd8854c=(0x0,_0x43a085[_0x1750b7(0x1d6)])(_0x58c831,_0x4122b7),_0x47d161=_0x502249[_0x1750b7(0x173)](),_0x379387=_0x502249['getShapeData'](),_0x519ae7={'unitId':_0x41d3af,'subUnitId':_0x4a9029,'drawingId':_0x1100e3,'drawingType':_0x59240f['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x32353d,'transform':_0x58c831,'data':{'shapeType':_0x222ed5||_0x7a5a8a||_0x47d161,'shapeData':{..._0x379387,'adjustValues':_0x647440||_0x39ea76||(_0x379387==null?void 0x0:_0x379387[_0x1750b7(0xea)]),'relation':_0x1e8d30||_0x41ca3e||(_0x379387==null?void 0x0:_0x379387[_0x1750b7(0x189)])}},'axisAlignSheetTransform':_0xd8854c,'allowTransform':!0x0},{undo:_0x32dc63,redo:_0x5d4c11,objects:_0x338296}=_0x25cb7c['getBatchUpdateOp']([_0x519ae7]),_0xb2fb9e=_0x435b00[_0x1750b7(0xe1)]({'id':_0x43a085[_0x1750b7(0x151)]['id'],'params':{'unitId':_0x41d3af,'drawings':[_0x519ae7]}}),_0x358dc6=[..._0xb2fb9e[_0x1750b7(0x161)]??[],{'id':_0x43a085[_0x1750b7(0x17f)]['id'],'params':{'unitId':_0x41d3af,'subUnitId':_0x4a9029,'op':_0x5d4c11,'objects':_0x338296,'type':_0x43a085['DrawingApplyType'][_0x1750b7(0x1cd)]}},{'id':_0x43a085[_0x1750b7(0x126)]['id'],'params':[_0x41d3af]},..._0xb2fb9e[_0x1750b7(0x187)],{'id':_0x958308['id'],'params':{'unitId':_0x41d3af,'subUnitId':_0x4a9029,'shapeId':_0x1100e3,'shapeType':_0x222ed5,'shapeData':{'adjustValues':_0x647440,'relation':_0x1e8d30}}}],_0x50cf1e=[..._0xb2fb9e[_0x1750b7(0x102)]??[],{'id':_0x43a085[_0x1750b7(0x17f)]['id'],'params':{'unitId':_0x41d3af,'subUnitId':_0x4a9029,'op':_0x32dc63,'objects':_0x338296,'type':_0x43a085['DrawingApplyType'][_0x1750b7(0x1cd)]}},{'id':_0x43a085[_0x1750b7(0x126)]['id'],'params':[_0x41d3af]},..._0xb2fb9e['undos'],{'id':_0x958308['id'],'params':{'unitId':_0x41d3af,'subUnitId':_0x4a9029,'shapeId':_0x1100e3,'shapeType':_0x47d161,'shapeData':{..._0x379387,'adjustValues':_0x39ea76||(_0x379387==null?void 0x0:_0x379387[_0x1750b7(0xea)]),'relation':_0x41ca3e||(_0x379387==null?void 0x0:_0x379387['relation'])}}}];return(0x0,_0x59240f['sequenceExecute'])(_0x358dc6,_0x30b0cd)[_0x1750b7(0x164)]?(_0x4bc87f['pushUndoRedo']({'unitID':_0x41d3af,'undoMutations':_0x50cf1e,'redoMutations':_0x358dc6}),!0x0):!0x1;}},_0x5782d1={'type':_0x59240f['CommandType'][_0xc3989b(0x1ae)],'id':'sheet.command.update-line-shape-resize','handler':(_0x46b02b,_0x589f8c)=>{const _0x46107a=_0xc3989b;let _0x276e89=(0x0,_0x3b5464[_0x46107a(0x179)])(_0x46b02b[_0x46107a(0xd9)](_0x59240f[_0x46107a(0x16f)]),_0x589f8c);if(!_0x276e89)return!0x1;let _0x59b788=_0x46b02b[_0x46107a(0xd9)](_0x3b5464[_0x46107a(0x13b)]),{unitId:_0x350e13,subUnitId:_0x294eef}=_0x276e89,_0x4472e7=_0x59b788[_0x46107a(0x1b9)](_0x350e13,_0x294eef);if(!_0x4472e7)return!0x1;let _0x331dbd=_0x46b02b['get'](_0x43a085['ISheetDrawingService']),{shapeId:_0x852eac,width:_0x5b662b,height:_0xc2a8df,left:_0x86cecb,top:_0x122ec2,flipX:_0x148484,flipY:_0x5ad845,angle:_0x11cda0,oldAdjustValues:_0x8d3c7e,newAdjustValues:_0x385af1,oldLineType:_0x22b900,newLineType:_0xca5163}=_0x589f8c,_0x5dc2ca=_0x331dbd['getDrawingByParam']({'unitId':_0x350e13,'subUnitId':_0x294eef,'drawingId':_0x852eac});if(!_0x5dc2ca)return!0x1;let _0x33ffde=_0x46b02b[_0x46107a(0xd9)](_0x13c298)[_0x46107a(0x128)](_0x350e13,_0x294eef,_0x852eac);if(!_0x33ffde)return!0x1;let _0x2a9ec0=_0x46b02b['get'](_0x59240f[_0x46107a(0x1a5)]),_0xf5dd63=_0x46b02b[_0x46107a(0xd9)](_0x59240f[_0x46107a(0x138)]),_0x155179=_0x46b02b[_0x46107a(0xd9)](_0x3b5464[_0x46107a(0x15c)]),_0x1aae12={..._0x5dc2ca[_0x46107a(0x190)],'width':_0x5b662b,'height':_0xc2a8df,'left':_0x86cecb,'top':_0x122ec2,'flipX':_0x148484,'flipY':_0x5ad845,'angle':_0x11cda0},_0x3faaae=(0x0,_0x43a085['transformToDrawingPosition'])(_0x1aae12,_0x4472e7),_0x300923=(0x0,_0x43a085[_0x46107a(0x1d6)])(_0x1aae12,_0x4472e7),_0x3918ba=_0x33ffde[_0x46107a(0x173)](),_0x2e1055=_0x33ffde['getShapeData'](),_0x5df398={'unitId':_0x350e13,'subUnitId':_0x294eef,'drawingId':_0x852eac,'drawingType':_0x59240f[_0x46107a(0x1de)][_0x46107a(0xe5)],'sheetTransform':_0x3faaae,'transform':_0x1aae12,'data':{'shapeType':_0xca5163||_0x22b900||_0x3918ba,'shapeData':{..._0x2e1055,'adjustValues':_0x385af1||_0x8d3c7e||(_0x2e1055==null?void 0x0:_0x2e1055['adjustValues'])}},'axisAlignSheetTransform':_0x300923,'allowTransform':!0x0},{undo:_0x1c874e,redo:_0x16202c,objects:_0x115c06}=_0x331dbd['getBatchUpdateOp']([_0x5df398]),_0xea83e2=_0x155179[_0x46107a(0xe1)]({'id':_0x43a085[_0x46107a(0x151)]['id'],'params':{'unitId':_0x350e13,'drawings':[_0x5df398]}}),_0x392a38=[..._0xea83e2[_0x46107a(0x161)]??[],{'id':_0x43a085[_0x46107a(0x17f)]['id'],'params':{'unitId':_0x350e13,'subUnitId':_0x294eef,'op':_0x16202c,'objects':_0x115c06,'type':_0x43a085[_0x46107a(0x132)][_0x46107a(0x1cd)]}},{'id':_0x43a085[_0x46107a(0x126)]['id'],'params':[_0x350e13]},..._0xea83e2[_0x46107a(0x187)],{'id':_0x958308['id'],'params':{'unitId':_0x350e13,'subUnitId':_0x294eef,'shapeId':_0x852eac,'shapeType':_0xca5163,'shapeData':{'adjustValues':_0x385af1}}}],_0x12a192=[..._0xea83e2['preUndos']??[],{'id':_0x43a085[_0x46107a(0x17f)]['id'],'params':{'unitId':_0x350e13,'subUnitId':_0x294eef,'op':_0x1c874e,'objects':_0x115c06,'type':_0x43a085[_0x46107a(0x132)][_0x46107a(0x1cd)]}},{'id':_0x43a085[_0x46107a(0x126)]['id'],'params':[_0x350e13]},..._0xea83e2[_0x46107a(0x12c)],{'id':_0x958308['id'],'params':{'unitId':_0x350e13,'subUnitId':_0x294eef,'shapeId':_0x852eac,'shapeType':_0x3918ba,'shapeData':{..._0x2e1055,'adjustValues':_0x8d3c7e||(_0x2e1055==null?void 0x0:_0x2e1055[_0x46107a(0xea)])}}}];return(0x0,_0x59240f[_0x46107a(0x16d)])(_0x392a38,_0x2a9ec0)['result']?(_0xf5dd63[_0x46107a(0x127)]({'unitID':_0x350e13,'undoMutations':_0x12a192,'redoMutations':_0x392a38}),!0x0):!0x1;}},_0x9a3bab={'id':_0xc3989b(0xe6),'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x12b)],'handler':(_0x3dbef3,_0x4ba698)=>{const _0x5a0d50=_0xc3989b;let {unitId:_0xa40e9f,subUnitId:_0x125b60,shapeType:_0x36fb47,shapeId:_0x5111d9,shapeData:_0x2bb51e}=_0x4ba698,_0x6d13ab=_0x3dbef3[_0x5a0d50(0xd9)](_0x13c298)[_0x5a0d50(0x128)](_0xa40e9f,_0x125b60,_0x5111d9);return _0x6d13ab&&(_0x6d13ab['setShapeType'](_0x36fb47),_0x2bb51e&&(_0x6d13ab==null||_0x6d13ab[_0x5a0d50(0xf5)](_0x2bb51e))),!0x0;}};var _0x133b87=_0xc3989b(0xf1),_0x3d51b=_0xc3989b(0x13d);function _0x38e8ef(_0x15444b){const _0x2dda01=_0xc3989b;var _0x467235,_0x4118aa,_0x5962c0,_0x588e73,_0x525fd4,_0x885767,_0x425fa0;return{'left':((_0x467235=_0x15444b[_0x2dda01(0x190)])==null?void 0x0:_0x467235[_0x2dda01(0x18a)])??0x0,'top':((_0x4118aa=_0x15444b['transform'])==null?void 0x0:_0x4118aa[_0x2dda01(0x14e)])??0x0,'width':((_0x5962c0=_0x15444b[_0x2dda01(0x190)])==null?void 0x0:_0x5962c0[_0x2dda01(0xef)])??0xc8,'height':((_0x588e73=_0x15444b[_0x2dda01(0x190)])==null?void 0x0:_0x588e73[_0x2dda01(0x180)])??0xc8,'rotation':((_0x525fd4=_0x15444b[_0x2dda01(0x190)])==null?void 0x0:_0x525fd4[_0x2dda01(0xfa)])??0x0,'flipX':((_0x885767=_0x15444b['transform'])==null?void 0x0:_0x885767['flipX'])??!0x1,'flipY':((_0x425fa0=_0x15444b['transform'])==null?void 0x0:_0x425fa0[_0x2dda01(0x12f)])??!0x1};}let _0x359b2e=class{constructor(_0x218722,_0x37c870,_0x330e0d,_0x4efb17){const _0x45e1fb=_0xc3989b;this[_0x45e1fb(0xeb)]=_0x218722,this[_0x45e1fb(0x18f)]=_0x37c870,this[_0x45e1fb(0x1d1)]=_0x330e0d,this[_0x45e1fb(0x1d0)]=_0x4efb17,_0x7318f0(this,'hostType',_0x59240f['UniverInstanceType'][_0x45e1fb(0x149)]);}get[_0xc3989b(0x1b3)](){return{'subscribe':_0xbf2c19=>{const _0x25b22b=_0x3f84;let _0x1503a0=this[_0x25b22b(0xeb)][_0x25b22b(0x157)](_0x1f582a=>{const _0x2d4bca=_0x25b22b;(_0x1f582a['id']===_0x3a2754['id']||_0x1f582a['id']===_0x3b0254['id']||_0x1f582a['id']===_0x958308['id']||_0x1f582a['id']===_0x9a3bab['id'])&&_0xbf2c19({'unitId':_0x1f582a[_0x2d4bca(0x130)][_0x2d4bca(0x1a8)]});});return{'unsubscribe':()=>_0x1503a0[_0x25b22b(0x1ce)]()};}};}[_0xc3989b(0x12d)](_0x1a7737){const _0x2bcafa=_0xc3989b;var _0x401e36;let _0x8fd05e=(_0x401e36=this['_drawingService'][_0x2bcafa(0x11e)](_0x1a7737[_0x2bcafa(0x1a8)],_0x1a7737[_0x2bcafa(0x1e7)]))==null?void 0x0:_0x401e36[_0x1a7737['shapeId']],_0x47a1f1=this[_0x2bcafa(0x18f)]['getShapeType'](_0x1a7737[_0x2bcafa(0x1a8)],_0x1a7737[_0x2bcafa(0x1e7)],_0x1a7737[_0x2bcafa(0x103)]);if(!_0x8fd05e||_0x8fd05e[_0x2bcafa(0x166)]!==_0x59240f[_0x2bcafa(0x1de)]['DRAWING_SHAPE']||!_0x47a1f1)return null;let _0x569902=_0x8fd05e[_0x2bcafa(0x190)];return{..._0x1a7737,'shapeType':_0x47a1f1,'shapeData':_0x59240f[_0x2bcafa(0x13c)]['deepClone'](this[_0x2bcafa(0x18f)]['getShapeDataById'](_0x1a7737[_0x2bcafa(0x1a8)],_0x1a7737[_0x2bcafa(0x1e7)],_0x1a7737[_0x2bcafa(0x103)])??{}),'name':_0x8fd05e[_0x2bcafa(0x1e8)],'description':_0x8fd05e['description'],'visible':_0x8fd05e['hidden']!==!0x0,'selectable':_0x8fd05e[_0x2bcafa(0x1df)]!==!0x1,'transform':{'left':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0x18a)])??0x0,'top':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0x14e)])??0x0,'width':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0xef)])??0xc8,'height':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0x180)])??0xc8,'rotation':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0x1c3)])??0x0,'flipX':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0x150)])??!0x1,'flipY':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0x12f)])??!0x1}};}[_0xc3989b(0xfd)](_0x1adbf6){const _0x3d4f52=_0xc3989b;let _0x54f7d0=this['_drawingService'][_0x3d4f52(0x11e)](_0x1adbf6[_0x3d4f52(0x1a8)],_0x1adbf6[_0x3d4f52(0x1e7)])??{};return Object['values'](_0x54f7d0)[_0x3d4f52(0x1c5)](_0x2840ec=>(_0x2840ec==null?void 0x0:_0x2840ec[_0x3d4f52(0x166)])===_0x59240f['DrawingTypeEnum']['DRAWING_SHAPE'])[_0x3d4f52(0x1c0)](_0xfb4285=>this['getShape']({..._0x1adbf6,'shapeId':_0xfb4285['drawingId']}))[_0x3d4f52(0x1c5)](_0x2efd45=>!!_0x2efd45);}[_0xc3989b(0x1d8)](_0x872e1c){const _0x3003f3=_0xc3989b;let _0x64e470=this[_0x3003f3(0x1d0)]['getUnit'](_0x872e1c,_0x59240f['UniverInstanceType'][_0x3003f3(0x149)]);return(_0x64e470==null?void 0x0:_0x64e470[_0x3003f3(0x12a)]()['flatMap'](_0x1bb029=>this[_0x3003f3(0xfd)]({'hostType':this[_0x3003f3(0x10b)],'unitId':_0x872e1c,'subUnitId':_0x1bb029[_0x3003f3(0x119)]()})))??[];}[_0xc3989b(0x1d9)](_0x1ce1f3,_0x45a2d7){const _0x81dfa7=_0xc3989b;let _0xabae58=(0x0,_0x59240f[_0x81dfa7(0x193)])(),_0x34714c=_0x38e8ef(_0x45a2d7),_0x161a92=_0x59240f[_0x81dfa7(0x13c)][_0x81dfa7(0x170)](_0x45a2d7[_0x81dfa7(0x1b0)]??(0x0,_0x13ff20[_0x81dfa7(0x18c)])(_0x45a2d7['shapeType']));return this[_0x81dfa7(0xeb)][_0x81dfa7(0x17b)](_0x32a208['id'],{'unitId':_0x1ce1f3[_0x81dfa7(0x1a8)],'subUnitId':_0x1ce1f3[_0x81dfa7(0x1e7)],'shapeId':_0xabae58,'shapeType':_0x45a2d7[_0x81dfa7(0xf9)],'shapeData':_0x161a92,'name':_0x45a2d7['name'],'description':_0x45a2d7[_0x81dfa7(0xed)],'position':{'x':_0x34714c['left'],'y':_0x34714c[_0x81dfa7(0x14e)]},'width':_0x34714c[_0x81dfa7(0xef)],'height':_0x34714c[_0x81dfa7(0x180)],'rotation':_0x34714c[_0x81dfa7(0xfa)],'flipX':_0x34714c[_0x81dfa7(0x150)],'flipY':_0x34714c[_0x81dfa7(0x12f)],'visible':_0x45a2d7[_0x81dfa7(0x1ac)]??!0x0,'selectable':_0x45a2d7[_0x81dfa7(0x1df)]??!0x0})?{..._0x1ce1f3,'shapeId':_0xabae58,'shapeType':_0x45a2d7[_0x81dfa7(0xf9)],'shapeData':_0x161a92,'name':_0x45a2d7[_0x81dfa7(0x1e8)],'description':_0x45a2d7[_0x81dfa7(0xed)],'visible':_0x45a2d7['visible']??!0x0,'selectable':_0x45a2d7[_0x81dfa7(0x1df)]??!0x0,'transform':_0x34714c}:null;}[_0xc3989b(0x19b)](_0x226a50,_0xe56431){const _0x31e646=_0xc3989b;var _0x45a6bb;let _0x3e5b65=this[_0x31e646(0x12d)](_0x226a50);if(!_0x3e5b65)return!0x1;let _0x2249d5={..._0x3e5b65[_0x31e646(0x190)],..._0xe56431['transform']};return this['_commandService']['syncExecuteCommand'](_0x2f1170['id'],{'unitId':_0x226a50[_0x31e646(0x1a8)],'subUnitId':_0x226a50[_0x31e646(0x1e7)],'shapeId':_0x226a50['shapeId'],'shapeType':_0xe56431[_0x31e646(0xf9)]??((_0x45a6bb=_0xe56431[_0x31e646(0x1b0)])==null?void 0x0:_0x45a6bb[_0x31e646(0xf9)])??_0x3e5b65['shapeType'],'shapeData':_0xe56431[_0x31e646(0x1b0)]??_0x3e5b65[_0x31e646(0x1b0)],'position':{'x':_0x2249d5[_0x31e646(0x18a)],'y':_0x2249d5[_0x31e646(0x14e)]},'width':_0x2249d5[_0x31e646(0xef)],'height':_0x2249d5[_0x31e646(0x180)],'rotation':_0x2249d5[_0x31e646(0xfa)],'flipX':_0x2249d5[_0x31e646(0x150)],'flipY':_0x2249d5['flipY'],'name':_0x31e646(0x1e8)in _0xe56431?_0xe56431['name']:_0x3e5b65['name'],'description':_0x31e646(0xed)in _0xe56431?_0xe56431[_0x31e646(0xed)]:_0x3e5b65['description'],'visible':_0xe56431[_0x31e646(0x1ac)]??_0x3e5b65[_0x31e646(0x1ac)],'selectable':_0xe56431[_0x31e646(0x1df)]??_0x3e5b65[_0x31e646(0x1df)]});}[_0xc3989b(0x14a)](_0xd5ad44,_0x525a5a,_0x39bfdd){const _0x33cf67=_0xc3989b;let _0x211ce4=this[_0x33cf67(0x12d)](_0xd5ad44),_0x48d065=_0x211ce4==null?void 0x0:_0x211ce4[_0x33cf67(0x1b0)][_0x33cf67(0x1c2)];return!_0x211ce4||!_0x48d065?null:{'id':_0x958308['id'],'params':{'unitId':_0xd5ad44[_0x33cf67(0x1a8)],'subUnitId':_0xd5ad44['subUnitId'],'shapeId':_0xd5ad44['shapeId'],'shapeData':{..._0x211ce4[_0x33cf67(0x1b0)],'formulaBinding':{..._0x48d065,'lastValue':_0x59240f['Tools'][_0x33cf67(0x170)](_0x39bfdd)}},'replace':!0x0,'formulaLastValueGuard':_0x525a5a}};}[_0xc3989b(0x1a0)](_0x41e08b){const _0x5c718f=_0xc3989b;return this['_commandService'][_0x5c718f(0x17b)](_0x43a085[_0x5c718f(0x181)]['id'],{'unitId':_0x41e08b[_0x5c718f(0x1a8)],'drawings':[{'unitId':_0x41e08b[_0x5c718f(0x1a8)],'subUnitId':_0x41e08b[_0x5c718f(0x1e7)],'drawingId':_0x41e08b[_0x5c718f(0x103)],'drawingType':_0x59240f[_0x5c718f(0x1de)][_0x5c718f(0xe5)]}]});}[_0xc3989b(0x117)](_0x4285ef){const _0x6bd8a7=_0xc3989b;return this[_0x6bd8a7(0x1c6)](_0x4285ef,_0x59240f['ArrangeTypeEnum']['front']);}[_0xc3989b(0x1bb)](_0x2c94cc){const _0x352077=_0xc3989b;return this[_0x352077(0x1c6)](_0x2c94cc,_0x59240f[_0x352077(0x145)]['forward']);}[_0xc3989b(0x11f)](_0x567300){const _0x1c87fd=_0xc3989b;return this[_0x1c87fd(0x1c6)](_0x567300,_0x59240f[_0x1c87fd(0x145)]['backward']);}['sendToBack'](_0x6d48c1){const _0x3d04dd=_0xc3989b;return this[_0x3d04dd(0x1c6)](_0x6d48c1,_0x59240f[_0x3d04dd(0x145)][_0x3d04dd(0x112)]);}['setZOrder'](_0x40aa54,_0x74cd2a){const _0x2f3dab=_0xc3989b;return this['_commandService'][_0x2f3dab(0x17b)](_0x43a085[_0x2f3dab(0xd8)]['id'],{'unitId':_0x40aa54['unitId'],'subUnitId':_0x40aa54[_0x2f3dab(0x1e7)],'drawingIds':[_0x40aa54[_0x2f3dab(0x103)]],'zOrder':_0x74cd2a});}[_0xc3989b(0x1c6)](_0x2f52db,_0x19b1ff){const _0x56e589=_0xc3989b;return this[_0x56e589(0xeb)][_0x56e589(0x17b)](_0x43a085[_0x56e589(0xd8)]['id'],{'unitId':_0x2f52db['unitId'],'subUnitId':_0x2f52db[_0x56e589(0x1e7)],'drawingIds':[_0x2f52db['shapeId']],'arrangeType':_0x19b1ff});}};_0x359b2e=_0x4bde66([_0x4cea80(0x0,_0x59240f['ICommandService']),_0x4cea80(0x1,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x13c298)),_0x4cea80(0x2,_0x43a085[_0xc3989b(0xf4)]),_0x4cea80(0x3,_0x59240f[_0xc3989b(0x16f)])],_0x359b2e);let _0x57bb8e={},_0xf242ae=class extends _0x59240f[_0xc3989b(0x182)]{constructor(_0x559455,_0x10077f,_0x296d64,_0x2d2300,_0x432172,_0x2f8d06,_0x3e28c6){const _0x372cbd=_0xc3989b;super(),this['_commandService']=_0x559455,this[_0x372cbd(0x1b8)]=_0x10077f,this[_0x372cbd(0x188)]=_0x296d64,this[_0x372cbd(0x144)]=_0x2d2300,this[_0x372cbd(0x111)]=_0x432172,this[_0x372cbd(0x14d)]=_0x2f8d06,this[_0x372cbd(0x125)](),this[_0x372cbd(0x1cb)](),this[_0x372cbd(0x167)](this['_shapeHostAdapterRegistry'][_0x372cbd(0x1c4)](_0x3e28c6));}[_0xc3989b(0x125)](){const _0x4dc9b2=_0xc3989b;[_0x32a208,_0x2f1170,_0x137a5c,_0x1f04c5,_0x4fe46e,_0x61905a,_0x5782d1,_0x3a2754,_0x3b0254,_0x9a3bab,_0x958308][_0x4dc9b2(0x196)](_0x20cad1=>this[_0x4dc9b2(0x167)](this[_0x4dc9b2(0xeb)]['registerCommand'](_0x20cad1)));}['_initCommandInterceptor'](){const _0x290f36=_0xc3989b;this[_0x290f36(0x167)](this[_0x290f36(0x1b8)][_0x290f36(0x1e3)]({'getMutations':_0x50a2a8=>{const _0x583b0f=_0x290f36;if(_0x50a2a8['id']===_0x43a085[_0x583b0f(0x181)]['id']){let {drawings:_0x59c870}=_0x50a2a8['params'],_0x570035=_0x59c870[_0x583b0f(0x1c5)](_0x3d2bc0=>_0x3d2bc0[_0x583b0f(0x166)]===_0x59240f[_0x583b0f(0x1de)][_0x583b0f(0xe5)]);if(_0x570035['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x136fa6=[],_0x4a62b6=[];return _0x570035[_0x583b0f(0x196)](_0x4bc26b=>{const _0x22790f=_0x583b0f;let {unitId:_0x87119d,subUnitId:_0x5c0913,drawingId:_0x56aeda}=_0x4bc26b,_0x927d3e=this[_0x22790f(0x144)][_0x22790f(0x128)](_0x87119d,_0x5c0913,_0x56aeda);if(!_0x927d3e)throw TypeError(_0x22790f(0x122)+_0x927d3e);_0x136fa6[_0x22790f(0xdb)]({'id':_0x3b0254['id'],'params':{'unitId':_0x87119d,'subUnitId':_0x5c0913,'shapeId':_0x56aeda}}),_0x4a62b6[_0x22790f(0xdb)]({'id':_0x3a2754['id'],'params':{'unitId':_0x87119d,'subUnitId':_0x5c0913,'shapeId':_0x56aeda,'shapeType':_0x927d3e['getShapeType'](),'shapeData':_0x927d3e[_0x22790f(0x1bd)]()}});let _0x3e2467=this[_0x22790f(0x144)][_0x22790f(0x1d7)](_0x87119d,_0x5c0913,_0x56aeda);if(_0x3e2467)for(let _0x153b72 of _0x3e2467){let _0x1e9312=_0x153b72['lineShapeId'],_0x298a7c=_0x153b72[_0x22790f(0xdf)],_0x4cf788=_0x298a7c?{'from':void 0x0}:{'to':void 0x0},_0x45523f=_0x298a7c?{'from':{'shapeId':_0x153b72[_0x22790f(0x103)],'cxnIndex':_0x153b72['cxnIndex']}}:{'to':{'shapeId':_0x153b72['shapeId'],'cxnIndex':_0x153b72[_0x22790f(0x1dd)]}};_0x136fa6[_0x22790f(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x87119d,'subUnitId':_0x5c0913,'shapeId':_0x1e9312,'shapeData':{'relation':_0x4cf788}}}),_0x4a62b6['push']({'id':_0x958308['id'],'params':{'unitId':_0x87119d,'subUnitId':_0x5c0913,'shapeId':_0x1e9312,'shapeData':{'relation':_0x45523f}}});}}),{'preRedos':_0x136fa6,'redos':[],'preUndos':[],'undos':_0x4a62b6};}if(_0x50a2a8['id']===_0x43a085[_0x583b0f(0x151)]['id']){let {drawings:_0x5c85d3}=_0x50a2a8[_0x583b0f(0x130)],_0x941795=_0x5c85d3[_0x583b0f(0x1c5)](_0x176023=>_0x176023[_0x583b0f(0x166)]===_0x59240f[_0x583b0f(0x1de)][_0x583b0f(0xe5)]);if(_0x941795[_0x583b0f(0x1a1)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1aba85=[],_0x4b52de=[];for(let _0x290b60 of _0x941795){let {unitId:_0x825461,subUnitId:_0x9c5c08,drawingId:_0x2d7d99,transform:_0x58f79b}=_0x290b60;if(!_0x825461||!_0x9c5c08||!_0x2d7d99||!_0x58f79b)continue;let _0x291ad3=this['_sheetsShapeService'][_0x583b0f(0x128)](_0x825461,_0x9c5c08,_0x2d7d99);if(!_0x291ad3)throw TypeError(_0x583b0f(0x122)+_0x291ad3);if((0x0,_0x13ff20['isConnectorShape'])(_0x291ad3[_0x583b0f(0x173)]())){let _0x127b78=this['_sheetsShapeService'][_0x583b0f(0x1dc)](_0x825461,_0x9c5c08,_0x2d7d99);_0x127b78&&(_0x1aba85[_0x583b0f(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x825461,'subUnitId':_0x9c5c08,'shapeId':_0x2d7d99,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4b52de[_0x583b0f(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x825461,'subUnitId':_0x9c5c08,'shapeId':_0x2d7d99,'shapeData':{'relation':_0x127b78}}}));}else{let _0x52f8cb=this['_sheetsShapeService'][_0x583b0f(0x1d7)](_0x825461,_0x9c5c08,_0x2d7d99);if(_0x52f8cb&&_0x52f8cb['length']>0x0)for(let _0x4a3ea9 of _0x52f8cb){let _0x118215=_0x4a3ea9['lineShapeId'],_0x240df3=_0x4a3ea9[_0x583b0f(0xdf)],_0x4380ae=this[_0x583b0f(0x144)][_0x583b0f(0x128)](_0x825461,_0x9c5c08,_0x118215);if(!_0x4380ae)continue;let _0x459e1e=_0x4380ae['getStartConnectInfo'](),_0x166cbb=_0x4380ae['getEndConnectInfo']();_0x459e1e&&_0x166cbb?this[_0x583b0f(0x118)](_0x825461,_0x9c5c08,_0x118215,_0x4380ae,_0x459e1e,_0x166cbb,_0x1aba85,_0x4b52de,_0x2d7d99,_0x58f79b):this[_0x583b0f(0x18d)](_0x825461,_0x9c5c08,_0x118215,_0x4380ae,_0x240df3?_0x459e1e:_0x166cbb,_0x240df3,_0x1aba85,_0x4b52de,_0x2d7d99,_0x58f79b);}}}return{'preRedos':[],'redos':_0x1aba85,'preUndos':_0x4b52de,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0xc3989b(0x155)](_0x594c76,_0x25a3c8,_0x3485b2,_0x32eb7c,_0x5ed3ae){const _0x2e0eef=_0xc3989b;if(!_0x25a3c8||!_0x3485b2)return null;let {shapeId:_0x5a4cd2,cxnIndex:_0x15ff01}=_0x594c76,_0xc14862=this[_0x2e0eef(0x144)]['getShapeModel'](_0x25a3c8,_0x3485b2,_0x5a4cd2);if(!_0xc14862)return null;let _0x27e2d3=this['_drawingManagerService'][_0x2e0eef(0xdd)]({'unitId':_0x25a3c8,'subUnitId':_0x3485b2,'drawingId':_0x5a4cd2});if(!(_0x27e2d3!=null&&_0x27e2d3[_0x2e0eef(0x190)]))return null;let {left:_0xa452e5=0x0,top:_0x11120d=0x0,width:_0x1500e2=0x0,height:_0x5048d1=0x0,flipX:_0x533111=!0x1,flipY:_0x4dae35=!0x1,angle:_0x22a8e2}=_0x27e2d3['transform'];_0x5ed3ae&&_0x32eb7c===_0x5a4cd2&&(_0xa452e5=_0x5ed3ae[_0x2e0eef(0x18a)]??_0xa452e5,_0x11120d=_0x5ed3ae['top']??_0x11120d,_0x1500e2=_0x5ed3ae['width']??_0x1500e2,_0x5048d1=_0x5ed3ae[_0x2e0eef(0x180)]??_0x5048d1,_0x533111=_0x5ed3ae[_0x2e0eef(0x150)]??_0x533111,_0x4dae35=_0x5ed3ae[_0x2e0eef(0x12f)]??_0x4dae35,_0x22a8e2=_0x5ed3ae['angle']??_0x22a8e2),_0xc14862['updateContext']({'width':_0x1500e2,'height':_0x5048d1});let _0x3c303f=_0xc14862[_0x2e0eef(0x134)]()[_0x2e0eef(0x1da)](_0x2f7030=>_0x2f7030[_0x2e0eef(0x154)]===_0x15ff01);if(!_0x3c303f)return null;let _0x4107d9=_0x533111?_0x1500e2-_0x3c303f['x']:_0x3c303f['x'],_0x142743=_0x4dae35?_0x5048d1-_0x3c303f['y']:_0x3c303f['y'];if(_0x22a8e2!==0x0&&_0x22a8e2!=null){let _0x3c30fe=_0x22a8e2*Math['PI']/0xb4,_0x515b31=Math[_0x2e0eef(0xe4)](_0x3c30fe),_0x16a6eb=Math[_0x2e0eef(0x1cc)](_0x3c30fe),_0x58b5f4=_0x1500e2/0x2,_0x48d999=_0x5048d1/0x2,_0x5a2ba7=_0x4107d9-_0x58b5f4,_0x3c7c61=_0x142743-_0x48d999;_0x4107d9=_0x58b5f4+_0x5a2ba7*_0x515b31-_0x3c7c61*_0x16a6eb,_0x142743=_0x48d999+_0x5a2ba7*_0x16a6eb+_0x3c7c61*_0x515b31;}_0x4107d9+=_0xa452e5,_0x142743+=_0x11120d;let _0x11fe2f=_0x3c303f[_0x2e0eef(0xe9)]/0xea60;_0x533111&&(_0x11fe2f=0xb4-_0x11fe2f),_0x4dae35&&(_0x11fe2f=-_0x11fe2f),_0x11fe2f+=_0x22a8e2||0x0,_0x11fe2f=(_0x11fe2f%0x168+0x168)%0x168;let _0x5c462e=(0x0,_0x13ff20[_0x2e0eef(0x177)])({'left':_0xa452e5,'top':_0x11120d,'width':_0x1500e2,'height':_0x5048d1},_0x22a8e2||0x0);return{'point':{'x':_0x4107d9,'y':_0x142743},'angle':_0x11fe2f,'bounds':_0x5c462e};}[_0xc3989b(0x118)](_0x2b5cc3,_0x58aea1,_0x3d4f35,_0x4b2fbd,_0x584a97,_0x4ff6d7,_0x32b05c,_0x43bafa,_0x446083,_0x402291){const _0x55d361=_0xc3989b;let _0x32c917=this[_0x55d361(0x188)]['getSkeleton'](_0x2b5cc3,_0x58aea1);if(!_0x32c917)return;let _0x3f38bb=_0x4b2fbd[_0x55d361(0x147)](),_0x15e3a9=_0x4b2fbd[_0x55d361(0x107)](),_0x393bf0={},_0xac81aa={};_0x15e3a9[_0x55d361(0x196)](_0x2b8c57=>{let _0x245b98=_0x4b2fbd['getAdjustValueByName'](_0x2b8c57);_0xac81aa[_0x2b8c57]=_0x245b98??0x0;});let _0x1959ab=this[_0x55d361(0x155)](_0x584a97,_0x2b5cc3,_0x58aea1,_0x446083,_0x402291),_0x37e30f=this[_0x55d361(0x155)](_0x4ff6d7,_0x2b5cc3,_0x58aea1,_0x446083,_0x402291);if(_0x1959ab&&_0x37e30f){let _0x10e90b=_0x4b2fbd[_0x55d361(0x173)](),_0x2dffbe=(0x0,_0x13ff20['routeConnectorLineShape'])(_0x1959ab,_0x37e30f,_0x10e90b),_0x1ab691=_0x10e90b;if(_0x2dffbe){let _0x5e86c8=(0x0,_0x13ff20[_0x55d361(0x15e)])(_0x2dffbe,_0x4b2fbd['getShapeType']()),_0x4f0727=this[_0x55d361(0x111)]['getDrawingData'](_0x2b5cc3,_0x58aea1);if(_0x4f0727&&_0x4f0727[_0x3d4f35]){let _0x12ffbe=_0x4f0727[_0x3d4f35];_0x1ab691=_0x5e86c8['lineType'];for(let [_0x13e2ae,_0xaf1753]of Object['entries'](_0x5e86c8[_0x55d361(0xea)]))_0x393bf0[_0x13e2ae]=_0xaf1753;let _0x4f926b={..._0x12ffbe[_0x55d361(0x190)],'width':_0x5e86c8[_0x55d361(0x159)][_0x55d361(0xef)],'height':_0x5e86c8[_0x55d361(0x159)][_0x55d361(0x180)],'left':_0x5e86c8[_0x55d361(0x159)][_0x55d361(0x18a)],'top':_0x5e86c8[_0x55d361(0x159)]['top'],'flipX':_0x5e86c8[_0x55d361(0x159)]['flipX'],'flipY':_0x5e86c8[_0x55d361(0x159)][_0x55d361(0x12f)],'angle':_0x5e86c8['rotation']},_0x159e81=(0x0,_0x43a085[_0x55d361(0x1c9)])(_0x4f926b,_0x32c917),_0x332fca=(0x0,_0x43a085[_0x55d361(0x1d6)])(_0x4f926b,_0x32c917),_0x259fe0={'unitId':_0x2b5cc3,'subUnitId':_0x58aea1,'drawingType':_0x59240f[_0x55d361(0x1de)][_0x55d361(0xe5)],'drawingId':_0x3d4f35,'transform':_0x4f926b,'sheetTransform':_0x159e81,'axisAlignSheetTransform':_0x332fca},{unitId:_0x3e6348,subUnitId:_0x4d91d1,undo:_0x46cd46,redo:_0x43ae18,objects:_0x353dd0}=this[_0x55d361(0x111)]['getBatchUpdateOp']([_0x259fe0]);_0x32b05c['push']({'id':_0x43a085[_0x55d361(0x17f)]['id'],'params':{'unitId':_0x3e6348,'subUnitId':_0x4d91d1,'op':_0x43ae18,'objects':_0x353dd0,'type':_0x43a085[_0x55d361(0x132)][_0x55d361(0x1cd)]}}),_0x43bafa[_0x55d361(0xdb)]({'id':_0x43a085[_0x55d361(0x17f)]['id'],'params':{'unitId':_0x3e6348,'subUnitId':_0x4d91d1,'op':_0x46cd46,'objects':_0x353dd0,'type':_0x43a085[_0x55d361(0x132)]['UPDATE']}});}_0x4b2fbd[_0x55d361(0x160)]();}_0x32b05c[_0x55d361(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x2b5cc3,'subUnitId':_0x58aea1,'shapeId':_0x3d4f35,'shapeType':_0x1ab691,'shapeData':{'adjustValues':_0x393bf0,'relation':_0x3f38bb}}}),_0x43bafa[_0x55d361(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x2b5cc3,'subUnitId':_0x58aea1,'shapeId':_0x3d4f35,'shapeType':_0x10e90b,'shapeData':{'adjustValues':_0xac81aa,'relation':_0x3f38bb}}});}}[_0xc3989b(0x18d)](_0x148ba6,_0x2fe32f,_0x54e600,_0x42a554,_0x5c8da5,_0x363b44,_0x52f793,_0x46d5fc,_0x55a752,_0x512758){const _0x4ac8e3=_0xc3989b;var _0x2fa9b1;if(!_0x5c8da5)return;let _0x286989=this[_0x4ac8e3(0x188)][_0x4ac8e3(0x1b9)](_0x148ba6,_0x2fe32f);if(!_0x286989)return;let _0x222dcd=(_0x2fa9b1=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x148ba6,'subUnitId':_0x2fe32f,'drawingId':_0x55a752}))==null?void 0x0:_0x2fa9b1[_0x4ac8e3(0x190)];if(!_0x222dcd)return;let _0x205e3c=_0x222dcd[_0x4ac8e3(0x18a)]!==_0x512758[_0x4ac8e3(0x18a)]||_0x222dcd[_0x4ac8e3(0x14e)]!==_0x512758[_0x4ac8e3(0x14e)],_0x13fd67=_0x222dcd[_0x4ac8e3(0xef)]!==_0x512758['width']||_0x222dcd[_0x4ac8e3(0x180)]!==_0x512758['height'],_0x187127=_0x222dcd[_0x4ac8e3(0x150)]!==_0x512758['flipX']||_0x222dcd[_0x4ac8e3(0x12f)]!==_0x512758['flipY'],_0x475ce2=_0x222dcd[_0x4ac8e3(0x1c3)]!==_0x512758[_0x4ac8e3(0x1c3)];if(_0x205e3c&&!_0x13fd67&&!_0x187127&&!_0x475ce2){let _0x4bdffb=(_0x512758[_0x4ac8e3(0x18a)]??0x0)-(_0x222dcd[_0x4ac8e3(0x18a)]??0x0),_0x3da5f5=(_0x512758[_0x4ac8e3(0x14e)]??0x0)-(_0x222dcd[_0x4ac8e3(0x14e)]??0x0),_0x51d4da=this[_0x4ac8e3(0x111)][_0x4ac8e3(0x11e)](_0x148ba6,_0x2fe32f);if(_0x51d4da&&_0x51d4da[_0x54e600]){var _0x3781cb,_0x2a153e;let _0x563402=_0x51d4da[_0x54e600],_0x5f16f7={..._0x563402[_0x4ac8e3(0x190)],'left':(((_0x3781cb=_0x563402[_0x4ac8e3(0x190)])==null?void 0x0:_0x3781cb[_0x4ac8e3(0x18a)])??0x0)+_0x4bdffb,'top':(((_0x2a153e=_0x563402[_0x4ac8e3(0x190)])==null?void 0x0:_0x2a153e[_0x4ac8e3(0x14e)])??0x0)+_0x3da5f5},_0x150bdf=(0x0,_0x43a085[_0x4ac8e3(0x1c9)])(_0x5f16f7,_0x286989),_0x41d676=(0x0,_0x43a085[_0x4ac8e3(0x1d6)])(_0x5f16f7,_0x286989),_0x5f2175={'unitId':_0x148ba6,'subUnitId':_0x2fe32f,'drawingType':_0x59240f[_0x4ac8e3(0x1de)][_0x4ac8e3(0xe5)],'drawingId':_0x54e600,'transform':_0x5f16f7,'sheetTransform':_0x150bdf,'axisAlignSheetTransform':_0x41d676},{unitId:_0x48fe5c,subUnitId:_0x1e88d7,undo:_0x1f1a8c,redo:_0xcff36d,objects:_0x45b782}=this[_0x4ac8e3(0x111)][_0x4ac8e3(0x1a7)]([_0x5f2175]);_0x52f793['push']({'id':_0x43a085[_0x4ac8e3(0x17f)]['id'],'params':{'unitId':_0x48fe5c,'subUnitId':_0x1e88d7,'op':_0xcff36d,'objects':_0x45b782,'type':_0x43a085[_0x4ac8e3(0x132)][_0x4ac8e3(0x1cd)]}}),_0x46d5fc[_0x4ac8e3(0xdb)]({'id':_0x43a085[_0x4ac8e3(0x17f)]['id'],'params':{'unitId':_0x48fe5c,'subUnitId':_0x1e88d7,'op':_0x1f1a8c,'objects':_0x45b782,'type':_0x43a085[_0x4ac8e3(0x132)]['UPDATE']}});}}else{let _0x294383=_0x42a554[_0x4ac8e3(0x11d)](),_0x1f86a5=_0x42a554[_0x4ac8e3(0x1e2)]();this['_addLineRerouteUpdates'](_0x148ba6,_0x2fe32f,_0x54e600,_0x42a554,_0x294383,_0x1f86a5,_0x52f793,_0x46d5fc,_0x55a752,_0x512758);}}};_0xf242ae=_0x4bde66([_0x4cea80(0x0,_0x59240f[_0xc3989b(0x1a5)]),_0x4cea80(0x1,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x3b5464[_0xc3989b(0x15c)])),_0x4cea80(0x2,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x3b5464['SheetSkeletonService'])),_0x4cea80(0x3,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x13c298)),_0x4cea80(0x4,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x11fd09['IDrawingManagerService'])),_0x4cea80(0x5,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x13ff20[_0xc3989b(0xfb)])),_0x4cea80(0x6,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x359b2e))],_0xf242ae);let _0x1d27ef=class extends _0x59240f[_0xc3989b(0x182)]{constructor(_0x5166d1,_0x232a91,_0x269fff){const _0xb646dc=_0xc3989b;super(),this[_0xb646dc(0x18f)]=_0x5166d1,this[_0xb646dc(0x19a)]=_0x232a91,this[_0xb646dc(0x167)](_0x269fff[_0xb646dc(0x1c4)](this));}[_0xc3989b(0x190)](_0x354e6e){const _0x326187=_0xc3989b;let _0x1ee2c4={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x326187(0xe7)](_0x354e6e,_0x1ee2c4);for(let [_0x3b44f3,_0x491e4c]of _0x354e6e[_0x326187(0x191)])this['_planConnector'](_0x354e6e,_0x3b44f3,_0x491e4c,_0x1ee2c4);return _0x1ee2c4;}[_0xc3989b(0xe7)](_0x373373,_0x165e06){const _0x321676=_0xc3989b;if(_0x373373[_0x321676(0x17e)]===_0x321676(0x19c))for(let _0x53d672 of _0x373373[_0x321676(0x15d)]){let _0x5a8b71=_0x373373['originals'][_0x321676(0xd9)](_0x53d672),_0x4b06c9=this[_0x321676(0x18f)][_0x321676(0x128)](_0x373373[_0x321676(0x1a8)],_0x373373[_0x321676(0x1e7)],_0x53d672);(_0x5a8b71==null?void 0x0:_0x5a8b71[_0x321676(0x166)])!==_0x59240f[_0x321676(0x1de)][_0x321676(0xe5)]||!_0x4b06c9||(_0x165e06['preRedos'][_0x321676(0xdb)]({'id':_0x3b0254['id'],'params':{'unitId':_0x373373['unitId'],'subUnitId':_0x373373['subUnitId'],'shapeId':_0x53d672}}),_0x165e06[_0x321676(0x12c)][_0x321676(0xdb)]({'id':_0x3a2754['id'],'params':{'unitId':_0x373373[_0x321676(0x1a8)],'subUnitId':_0x373373[_0x321676(0x1e7)],'shapeId':_0x53d672,'shapeName':_0x4b06c9[_0x321676(0x11a)](),'shapeType':_0x4b06c9[_0x321676(0x173)](),'shapeData':_0x59240f[_0x321676(0x13c)][_0x321676(0x170)](_0x4b06c9[_0x321676(0x1bd)]())}}));}}[_0xc3989b(0x1e4)](_0x4a71e2,_0x41cd37,_0x5b9f2d,_0x172cf6){const _0x5b20c0=_0xc3989b;if(_0x5b9f2d['drawingType']!==_0x59240f[_0x5b20c0(0x1de)][_0x5b20c0(0xe5)]||_0x4a71e2['deletes'][_0x5b20c0(0x148)](_0x41cd37))return;let _0x50cb9e=this['_shapeService'][_0x5b20c0(0x128)](_0x4a71e2[_0x5b20c0(0x1a8)],_0x4a71e2['subUnitId'],_0x41cd37);if(!_0x50cb9e||!(0x0,_0x13ff20[_0x5b20c0(0x198)])(_0x50cb9e[_0x5b20c0(0x173)]()))return;let _0x8341db=_0x50cb9e[_0x5b20c0(0x147)]();if(!(_0x4a71e2['updates'][_0x5b20c0(0x148)](_0x41cd37)||_0x8341db!=null&&_0x8341db['from']&&(_0x4a71e2['updates'][_0x5b20c0(0x148)](_0x8341db[_0x5b20c0(0x15a)]['shapeId'])||_0x4a71e2[_0x5b20c0(0x15d)][_0x5b20c0(0x148)](_0x8341db['from'][_0x5b20c0(0x103)]))||_0x8341db!=null&&_0x8341db['to']&&(_0x4a71e2[_0x5b20c0(0x156)]['has'](_0x8341db['to'][_0x5b20c0(0x103)])||_0x4a71e2[_0x5b20c0(0x15d)][_0x5b20c0(0x148)](_0x8341db['to']['shapeId']))))return;let _0x13f1f1=_0x4a71e2[_0x5b20c0(0x156)][_0x5b20c0(0xd9)](_0x41cd37)??_0x5b9f2d,_0x52be8a=this[_0x5b20c0(0x1d4)](_0x4a71e2,_0x13f1f1);if(!_0x52be8a)return;let _0x4e704a=(0x0,_0x13ff20['resolveConnectorRoutePoints'])(_0x52be8a);if(_0x4e704a[_0x5b20c0(0x1a1)]<0x2)return;let _0x1a5096=_0x59240f[_0x5b20c0(0x13c)]['deepClone'](_0x8341db??{}),_0x424ffc=_0x1a5096[_0x5b20c0(0x15a)]&&this[_0x5b20c0(0x176)](_0x4a71e2,_0x1a5096[_0x5b20c0(0x15a)][_0x5b20c0(0x103)],_0x1a5096['from']['cxnIndex']),_0x3045c6=_0x1a5096['to']&&this[_0x5b20c0(0x176)](_0x4a71e2,_0x1a5096['to'][_0x5b20c0(0x103)],_0x1a5096['to']['cxnIndex']);_0x1a5096[_0x5b20c0(0x15a)]&&!_0x424ffc&&delete _0x1a5096[_0x5b20c0(0x15a)],_0x1a5096['to']&&!_0x3045c6&&delete _0x1a5096['to'];let _0x442afa=(0x0,_0x13ff20[_0x5b20c0(0x131)])(_0x52be8a,_0x424ffc||(0x0,_0x13ff20[_0x5b20c0(0x1ca)])((_0x3045c6==null?void 0x0:_0x3045c6[_0x5b20c0(0x1b7)])??_0x4e704a[_0x4e704a[_0x5b20c0(0x1a1)]-0x1],_0x4e704a[0x0]),_0x3045c6||(0x0,_0x13ff20[_0x5b20c0(0x1ca)])((_0x424ffc==null?void 0x0:_0x424ffc[_0x5b20c0(0x1b7)])??_0x4e704a[0x0],_0x4e704a[_0x4e704a[_0x5b20c0(0x1a1)]-0x1]),_0x1a5096);if(!(!(_0x442afa!=null&&_0x442afa[_0x5b20c0(0x190)])||!_0x442afa[_0x5b20c0(0xf9)]||!_0x442afa[_0x5b20c0(0x1b0)])){if(this[_0x5b20c0(0x1a2)](_0x4a71e2,_0x13f1f1,_0x442afa),_0x4a71e2[_0x5b20c0(0x17e)]===_0x5b20c0(0x183)){_0x50cb9e['setShapeType'](_0x442afa[_0x5b20c0(0xf9)]),_0x50cb9e[_0x5b20c0(0xf5)](_0x59240f[_0x5b20c0(0x13c)][_0x5b20c0(0x170)](_0x442afa[_0x5b20c0(0x1b0)]),!0x1);return;}_0x172cf6['redos'][_0x5b20c0(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x4a71e2[_0x5b20c0(0x1a8)],'subUnitId':_0x4a71e2[_0x5b20c0(0x1e7)],'shapeId':_0x41cd37,'shapeType':_0x442afa[_0x5b20c0(0xf9)],'shapeData':_0x59240f['Tools'][_0x5b20c0(0x170)](_0x442afa[_0x5b20c0(0x1b0)]),'replace':!0x0}}),_0x172cf6['undos'][_0x5b20c0(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x4a71e2[_0x5b20c0(0x1a8)],'subUnitId':_0x4a71e2[_0x5b20c0(0x1e7)],'shapeId':_0x41cd37,'shapeType':_0x50cb9e[_0x5b20c0(0x173)](),'shapeData':_0x59240f[_0x5b20c0(0x13c)][_0x5b20c0(0x170)](_0x50cb9e[_0x5b20c0(0x1bd)]()),'replace':!0x0}});}}[_0xc3989b(0x176)](_0x1cc5e3,_0x21851c,_0x55fa1d){const _0x11951d=_0xc3989b;if(_0x1cc5e3[_0x11951d(0x15d)]['has'](_0x21851c))return null;let _0x294039=_0x1cc5e3['updates']['get'](_0x21851c)??_0x1cc5e3[_0x11951d(0x191)][_0x11951d(0xd9)](_0x21851c);if(!_0x294039)return null;let _0x27945d=this[_0x11951d(0x1d4)](_0x1cc5e3,_0x294039);return _0x27945d?(0x0,_0x13ff20[_0x11951d(0x18b)])(_0x27945d,_0x55fa1d):null;}[_0xc3989b(0x1d4)](_0x52d40b,_0x4fea41){const _0x9c2f3=_0xc3989b;let _0x170e99={'hostType':_0x59240f['UniverInstanceType']['UNIVER_SHEET'],'unitId':_0x52d40b['unitId'],'subUnitId':_0x52d40b['subUnitId'],'shapeId':_0x4fea41[_0x9c2f3(0x115)]},_0xf42dcd=this['_shapeAdapter']['getShape'](_0x170e99);return!_0xf42dcd||!_0x4fea41[_0x9c2f3(0x190)]?null:{..._0xf42dcd,'transform':{'left':_0x4fea41['transform']['left']??0x0,'top':_0x4fea41['transform'][_0x9c2f3(0x14e)]??0x0,'width':_0x4fea41[_0x9c2f3(0x190)]['width']??0x0,'height':_0x4fea41[_0x9c2f3(0x190)]['height']??0x0,'rotation':_0x4fea41[_0x9c2f3(0x190)]['angle']??0x0,'flipX':_0x4fea41[_0x9c2f3(0x190)][_0x9c2f3(0x150)]??!0x1,'flipY':_0x4fea41[_0x9c2f3(0x190)][_0x9c2f3(0x12f)]??!0x1}};}[_0xc3989b(0x1a2)](_0x3d1180,_0x54c4e1,_0x347f20){const _0x2f3c60=_0xc3989b;let _0x2f246b=_0x54c4e1,_0x4a14f7={..._0x54c4e1[_0x2f3c60(0x190)],'left':_0x347f20[_0x2f3c60(0x190)][_0x2f3c60(0x18a)],'top':_0x347f20[_0x2f3c60(0x190)][_0x2f3c60(0x14e)],'width':_0x347f20[_0x2f3c60(0x190)][_0x2f3c60(0xef)],'height':_0x347f20[_0x2f3c60(0x190)][_0x2f3c60(0x180)],'angle':_0x347f20['transform']['rotation'],'flipX':_0x347f20[_0x2f3c60(0x190)][_0x2f3c60(0x150)],'flipY':_0x347f20[_0x2f3c60(0x190)][_0x2f3c60(0x12f)]},_0x5ce955={..._0x2f246b,'transform':_0x4a14f7,'sheetTransform':(0x0,_0x43a085['transformToDrawingPosition'])(_0x4a14f7,_0x3d1180[_0x2f3c60(0x178)]),'axisAlignSheetTransform':(0x0,_0x43a085['transformToAxisAlignPosition'])(_0x4a14f7,_0x3d1180[_0x2f3c60(0x178)]),'data':{..._0x2f246b['data'],'shapeType':_0x347f20['shapeType'],'shapeData':_0x59240f[_0x2f3c60(0x13c)]['deepClone'](_0x347f20[_0x2f3c60(0x1b0)])}};_0x3d1180[_0x2f3c60(0x156)][_0x2f3c60(0x10c)](_0x54c4e1[_0x2f3c60(0x115)],_0x5ce955);}};_0x1d27ef=_0x4bde66([_0x4cea80(0x0,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x13c298)),_0x4cea80(0x1,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x359b2e)),_0x4cea80(0x2,(0x0,_0x59240f['Inject'])(_0x43a085[_0xc3989b(0x1b5)]))],_0x1d27ef);let _0x21c86e=class extends _0x59240f[_0xc3989b(0x1b2)]{constructor(_0x2c9436=_0x57bb8e,_0x3cbcd8,_0x2cf59f){const _0x2a4b83=_0xc3989b;super(),this[_0x2a4b83(0x100)]=_0x2c9436,this[_0x2a4b83(0x16a)]=_0x3cbcd8,this[_0x2a4b83(0xe8)]=_0x2cf59f;let {..._0x5b0653}=(0x0,_0x59240f[_0x2a4b83(0x16e)])({},_0x57bb8e,this[_0x2a4b83(0x100)]);this[_0x2a4b83(0xe8)][_0x2a4b83(0xf6)](_0x2a4b83(0x199),_0x5b0653);}[_0xc3989b(0x143)](){const _0x325ba1=_0xc3989b;let _0x965269=this['_injector'];[[_0x4c6fe2],[_0x13c298],[_0x359b2e],[_0x1d27ef],[_0xf242ae]][_0x325ba1(0x196)](_0x2aef43=>_0x965269[_0x325ba1(0x1e5)](_0x2aef43)),(0x0,_0x59240f['touchDependencies'])(_0x965269,[[_0x13c298],[_0x1d27ef],[_0xf242ae]]);}};_0x7318f0(_0x21c86e,'type',_0x59240f['UniverInstanceType']['UNIVER_SHEET']),_0x7318f0(_0x21c86e,_0xc3989b(0x172),_0xc3989b(0x1ad)),_0x7318f0(_0x21c86e,_0xc3989b(0x158),_0x133b87),_0x7318f0(_0x21c86e,_0xc3989b(0x11c),_0x3d51b),_0x21c86e=_0x4bde66([(0x0,_0x59240f[_0xc3989b(0x1a3)])(_0x42b016[_0xc3989b(0x11b)],_0x11fd09[_0xc3989b(0x1d5)],_0x13ff20[_0xc3989b(0x124)],_0x3b5464[_0xc3989b(0x1c1)],_0x43a085['UniverSheetsDrawingPlugin']),_0x4cea80(0x1,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x59240f[_0xc3989b(0x114)])),_0x4cea80(0x2,_0x59240f[_0xc3989b(0x1e0)])],_0x21c86e),_0x1a712f[_0xc3989b(0xd5)]=0xc8,_0x1a712f[_0xc3989b(0x1d3)]=0xc8,_0x1a712f[_0xc3989b(0xd3)]=_0x32a208,_0x1a712f[_0xc3989b(0x1ba)]=_0x3a2754,_0x1a712f[_0xc3989b(0x13e)]=_0x3b0254,_0x1a712f['SetShapeDrawingDataCommand']=_0x2f1170,_0x1a712f['SetSheetsShapeRotateCommand']=_0x1f04c5,_0x1a712f[_0xc3989b(0x1c8)]=_0x4fe46e,Object[_0xc3989b(0x104)](_0x1a712f,_0xc3989b(0x14b),{'enumerable':!0x0,'get':function(){return _0x13c298;}}),_0x1a712f['ToggleSheetsShapeFlipCommand']=_0x137a5c,Object[_0xc3989b(0x104)](_0x1a712f,_0xc3989b(0x1e1),{'enumerable':!0x0,'get':function(){return _0x21c86e;}}),_0x1a712f[_0xc3989b(0xde)]=_0x61905a,_0x1a712f[_0xc3989b(0x129)]=_0x5782d1,_0x1a712f[_0xc3989b(0x17c)]=_0x958308,_0x1a712f[_0xc3989b(0xff)]=_0x9a3bab;}));function _0x1e68(){const _0x2ba644=['startX','flipY','params','buildConnectorEndpointUpdate','DrawingApplyType','17117MQdGrM','getConnectionSiteList','data','delete','iterator','IUndoRedoService','getShapeTypeById','_shapeModelManagerMap','SheetSkeletonService','Tools','1.0.0-rc.0','RemoveSheetsShapeMutation','3701466RkhGvS','borderEnabled','SheetDrawingAnchorType','ShapeModel','onStarting','_sheetsShapeService','ArrangeTypeEnum','_linesIds','getShapeRelation','has','UNIVER_SHEET','createFormulaLastValueMutation','SheetsShapeService','_groupIds','_shapeHostAdapterRegistry','top','266MePNWR','flipX','SetSheetDrawingCommand','292405CYOvfp','sheet.command.toggle-shape-flip','index','_getConnectPointInfo','updates','onCommandExecuted','packageName','worldRect','from','517628gsqtCM','SheetInterceptorService','deletes','computeConnectorRouteLayout','UniverProLicense','removeLinePoints','preRedos','function','sheet.mutation.remove-shape','result','_ensureShapeModelManager','drawingType','disposeWithMe','fill','symbol','_injector','_resourcesManagerService','_deserializeShapeForUnit','sequenceExecute','merge','IUniverInstanceService','deepClone','getOwnPropertyDescriptor','pluginName','getShapeType','_serializeShapeForUnit','102jTvPvK','_resolveBinding','getBasicShapeRotateBound','skeleton','getSheetCommandTarget','IResourceManagerService','syncExecuteCommand','UpdateSheetsShapeDataMutation','range','mode','SetDrawingApplyMutation','height','RemoveSheetDrawingCommand','Disposable','refresh','object','toStringTag','getBasicShapeType','redos','_sheetSkeletonService','relation','left','resolveShapeConnectionPoint','createDefaultInsertedShapeData','_addLineFollowShapeUpdates','Inject','_shapeService','transform','originals','startY','generateRandomId','INSERT','REMOVE','forEach','13765990YDShfo','isConnectorShape','sheets-shape.config','_shapeAdapter','updateShape','command','exports','@univerjs/sheets','insertShape','removeShape','length','_applyUpdate','DependentOn','366384eRPBAZ','ICommandService','getShapeDisplayNames','getBatchUpdateOp','unitId','CommandType','sheet.command.set-shape-drawing-data','position','visible','SHEET_SHAPE_PLUGIN','COMMAND','ensureSkeleton','shapeData','stringify','Plugin','shapeChanged$','constructor','SheetDrawingTransformPlanService','prototype','point','_sheetInterceptorService','getSkeleton','InsertSheetsShapeMutation','bringForward','rotateEnabled','getShapeData','sheet.command.insert-shape','getShapeTextData','map','UniverSheetsPlugin','formulaBinding','angle','register','filter','_arrange','9bgMvBE','SetSheetsShapeTextVerticalToggleCommand','transformToDrawingPosition','createFreeConnectorPointInfo','_initCommandInterceptor','sin','UPDATE','dispose','toJSON','_instanceService','_drawingService','@univerjs-pro/license','DEFAULT_SHAPE_WIDTH','_toSnapshot','UniverDrawingPlugin','transformToAxisAlignPosition','getBasicShapeRelation','listShapesInUnit','createShape','find','fromJSON','getLineShapeRelation','cxnIndex','DrawingTypeEnum','selectable','IConfigService','UniverSheetsShapePlugin','getEndConnectInfo','interceptCommand','_planConnector','add','getId','subUnitId','name','InsertShapeCommand','142rxFdki','DEFAULT_SHAPE_HEIGHT','sheet.command.set-shape-rotate','_shapes','SetDrawingArrangeCommand','get','8330399GLflce','push','InsertSheetDrawingCommand','getDrawingByParam','UpdateConnectorRelationCommand','isFrom','UniverProEngineShape','onCommandExecute','parse','12HvxEqJ','cos','DRAWING_SHAPE','sheet.mutation.update-shape-type','_planDeletes','_configService','ang','adjustValues','_commandService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','description','keys','width','@univerjs/core','@univerjs-pro/sheets-shape','registerPluginResource','addShape','ISheetDrawingService','setShapeData','setConfig','hasShape','_initSnapshot','shapeType','rotation','IShapeHostAdapterRegistry','sheet.mutation.insert-shape','listShapes','sheet.mutation.update-shape-data','UpdateSheetsShapeTypeMutation','_config','getCellWithCoordByIndex','preUndos','shapeId','defineProperty','UniverProSheetsShape','UniverSheetsDrawing','getAdjustNames','default','decorate','Both','hostType','set','UniverInstanceType','@univerjs-pro/engine-shape','clear','resizeEnabled','_drawingManagerService','back','string','Injector','drawingId','UniverDrawing','bringToFront','_addLineRerouteUpdates','getSheetId','getName','UniverLicensePlugin','version','getStartConnectInfo','getDrawingData','sendBackward','shapeName','setShapeType','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','toPrimitive','UniverShapePlugin','_initCommands','ClearSheetDrawingTransformerOperation','pushUndoRedo','getShapeModel','UpdateLineShapeResizeCommand','getSheets','MUTATION','undos','getShape'];_0x1e68=function(){return _0x2ba644;};return _0x1e68();}
1
+ function _0x42b5(){const _0xb4f472=['point','visible','_sheetsShapeService','UpdateConnectorRelationCommand','_applyUpdate','push','UPDATE','isFrom','Tools','sin','shapeName','IDrawingManagerService','_ensureShapeModelManager','toPrimitive','top','_planDeletes','listShapes','_shapeModelManagerMap','get','SheetDrawingAnchorType','UniverDrawingPlugin','resolveShapeConnectionPoint','redos','prototype','_shapeService','lineShapeId','InsertSheetDrawingCommand','getCellWithCoordByIndex','COMMAND','@univerjs-pro/engine-shape','26765efyjkJ','sheets-shape.config','811200bTbqSm','flipY','_initCommands','Plugin','removeLinePoints','description','angle','@univerjs-pro/license','getDrawingByParam','parse','generateRandomId','sendToBack','getBatchAddOp','transformToDrawingPosition','UniverProLicense','drawingType','syncExecuteCommand','UniverSheetsShapePlugin','getShapeTextData','computeConnectorRouteLayout','getShapeType','_linesIds','setShapeType','front','getSheetCommandTarget','getDrawingData','data','preUndos','_disposed','add','Disposable','startX','resizeEnabled','range','call','insertShape','fromJSON','function','borderEnabled','Module','refresh','shapeId','listShapesInUnit','_instanceService','SetShapeDrawingDataCommand','deletes','left','hostType','Inject','UpdateSheetsShapeTypeMutation','SetDrawingApplyMutation','SetSheetsShapeTextVerticalToggleCommand','width','_sheetSkeletonService','sheet.command.update-connector-relation','worldRect','REMOVE','getShapeDataById','_config','flatMap','shapeType','selectable','SheetDrawingTransformPlanService','defineProperty','name','getId','values','getBatchUpdateOp','createFreeConnectorPointInfo','position','transform','rotation','getShapeRelation','canApplyShapeFormulaLastValue','removeShape','ISheetDrawingService','getShapeModel','createUniqueShapeName','SetDrawingArrangeCommand','SetSheetsShapeRotateCommand','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getShapeTypeById','DrawingApplyType','sheet.mutation.update-shape-data','forward','114igphWM','_arrange','_serializeShapeForUnit','UniverProEngineShape','_deserializeShapeForUnit','IUndoRedoService','SheetSkeletonService','2808674btXIGN','IResourceManagerService','SheetsShapeService','toJSON','UniverInstanceType','UniverDrawing','6615QcCxrP','@univerjs/sheets-drawing','getBasicShapeRelation','sheet.command.insert-shape','lineType','UniverSheetsDrawingPlugin','setShapeData','UNIVER_SHEET','map','getAdjustNames','unitId','3128RXBLKq','UniverSheetsPlugin','UpdateLineShapeResizeCommand','ang','UniverSheets','clear','preRedos','getConnectionSiteList','iterator','drawingId','addShape','@univerjs/drawing','810462KkTevO','subUnitId','UniverCore','SHEET_SHAPE_PLUGIN','_addLineFollowShapeUpdates','_toSnapshot','startY','_initSnapshot','version','keys','length','rotateEnabled','shapeData','287254QORCQL','sheet.command.update-line-shape-resize','hidden','_initCommandInterceptor','DEFAULT_SHAPE_WIDTH','buildConnectorEndpointUpdate','decorate','pushUndoRedo','hasShape','getSkeleton','result','sendBackward','bringToFront','relation','bringForward','pluginName','createFormulaLastValueMutation','string','getBasicShapeType','getShape','height','ShapeModel','_commandService','IConfigService','isConnectorShape','updateContext','symbol','type','DrawingTypeEnum','1RjsiVR','getSheetId','_injector','INSERT','@univerjs/sheets','has','setConfig','SetSheetDrawingCommand','resolveConnectorRoutePoints','adjustValues','_getConnectPointInfo','index','find','MUTATION','formulaBinding','41881vEjewQ','_planConnector','ICommandService','mode','constructor','_resolveBinding','getAdjustValueByName','filter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onCommandExecute','CommandType','flipX','setZOrder','_shapeAdapter','createDefaultInsertedShapeData','ensureSkeleton','skeleton','_resourcesManagerService','isLineShape','undos','_shapes','_shapeHostAdapterRegistry','registerCommand','getLineShapeRelation','from','forEach','originals','exports','registerPluginResource','getShapeDisplayNames','InsertShapeCommand','fill','_addLineRerouteUpdates','SheetInterceptorService','object','updates','UniverSheetsDrawing','28bTnYgd','isHorizontal','RemoveSheetDrawingCommand','IShapeHostAdapterRegistry','onCommandExecuted','transformToAxisAlignPosition','register','sheet.command.set-shape-rotate','updateShape','sequenceExecute','@univerjs/core','_drawingManagerService','onStarting','dispose','UniverProSheetsShape','sheet.command.set-shape-text-vertical-toggle','getStartConnectInfo','Both','getShapeData','params','cxnIndex','set','ArrangeTypeEnum','_drawingService','_configService','disposeWithMe','ClearSheetDrawingTransformerOperation','delete','getName','DRAWING_SHAPE','IUniverInstanceService','deepClone'];_0x42b5=function(){return _0xb4f472;};return _0x42b5();}function _0x2ede(_0x317b9e,_0x2dbfc1){_0x317b9e=_0x317b9e-0x13b;const _0x42b546=_0x42b5();let _0x2ede79=_0x42b546[_0x317b9e];return _0x2ede79;}(function(_0x3042b0,_0x54604e){const _0x2f2b7e=_0x2ede,_0x435706=_0x3042b0();while(!![]){try{const _0x364515=parseInt(_0x2f2b7e(0x21d))/0x1*(parseInt(_0x2f2b7e(0x200))/0x2)+parseInt(_0x2f2b7e(0x1f3))/0x3+parseInt(_0x2f2b7e(0x251))/0x4*(-parseInt(_0x2f2b7e(0x178))/0x5)+-parseInt(_0x2f2b7e(0x1cf))/0x6*(parseInt(_0x2f2b7e(0x22c))/0x7)+-parseInt(_0x2f2b7e(0x1e7))/0x8*(parseInt(_0x2f2b7e(0x1dc))/0x9)+-parseInt(_0x2f2b7e(0x17a))/0xa+parseInt(_0x2f2b7e(0x1d6))/0xb;if(_0x364515===_0x54604e)break;else _0x435706['push'](_0x435706['shift']());}catch(_0x10edc2){_0x435706['push'](_0x435706['shift']());}}}(_0x42b5,0x247d6),function(_0x5c490c,_0x4de075){const _0x1e692b=_0x2ede;typeof exports=='object'&&typeof module<'u'?_0x4de075(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x1e692b(0x19f)&&define['amd']?define([_0x1e692b(0x247),_0x1e692b(0x177),_0x1e692b(0x144),_0x1e692b(0x221),_0x1e692b(0x1dd),_0x1e692b(0x181),_0x1e692b(0x1f2)],_0x4de075):(_0x5c490c=typeof globalThis<'u'?globalThis:_0x5c490c||self,_0x4de075(_0x5c490c[_0x1e692b(0x148)]={},_0x5c490c[_0x1e692b(0x1d2)],_0x5c490c[_0x1e692b(0x1f5)],_0x5c490c[_0x1e692b(0x1eb)],_0x5c490c[_0x1e692b(0x250)],_0x5c490c[_0x1e692b(0x188)],_0x5c490c[_0x1e692b(0x1db)]));}(this,function(_0x4d09c1,_0x2754e3,_0x1a0f69,_0x7d67a2,_0xe343dc,_0x17e6fd,_0x321ac5){const _0x3d2e97=_0x2ede;Object[_0x3d2e97(0x1b9)](_0x4d09c1,Symbol['toStringTag'],{'value':_0x3d2e97(0x1a1)});function _0x32f6de(_0x25ae9a){'@babel/helpers - typeof';const _0x74c9a9=_0x3d2e97;return _0x32f6de=typeof Symbol==_0x74c9a9(0x19f)&&typeof Symbol[_0x74c9a9(0x1ef)]==_0x74c9a9(0x21a)?function(_0x1bed60){return typeof _0x1bed60;}:function(_0x5476c0){const _0x3eba83=_0x74c9a9;return _0x5476c0&&typeof Symbol==_0x3eba83(0x19f)&&_0x5476c0[_0x3eba83(0x230)]===Symbol&&_0x5476c0!==Symbol[_0x3eba83(0x171)]?_0x3eba83(0x21a):typeof _0x5476c0;},_0x32f6de(_0x25ae9a);}function _0x154db0(_0x3dc04c,_0x4df551){const _0x41c517=_0x3d2e97;if(_0x32f6de(_0x3dc04c)!=_0x41c517(0x24e)||!_0x3dc04c)return _0x3dc04c;var _0x273ec8=_0x3dc04c[Symbol[_0x41c517(0x167)]];if(_0x273ec8!==void 0x0){var _0x2cc85f=_0x273ec8[_0x41c517(0x19c)](_0x3dc04c,_0x4df551||'default');if(_0x32f6de(_0x2cc85f)!=_0x41c517(0x24e))return _0x2cc85f;throw TypeError(_0x41c517(0x234));}return(_0x4df551==='string'?String:Number)(_0x3dc04c);}function _0x383944(_0x3a5724){const _0x55748d=_0x3d2e97;var _0x10a564=_0x154db0(_0x3a5724,_0x55748d(0x211));return _0x32f6de(_0x10a564)=='symbol'?_0x10a564:_0x10a564+'';}function _0x6985a3(_0x49d215,_0x294e28,_0x27faf2){const _0x554819=_0x3d2e97;return(_0x294e28=_0x383944(_0x294e28))in _0x49d215?Object[_0x554819(0x1b9)](_0x49d215,_0x294e28,{'value':_0x27faf2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x49d215[_0x294e28]=_0x27faf2,_0x49d215;}var _0x2dde96=class extends _0x1a0f69[_0x3d2e97(0x198)]{constructor(){const _0x15b756=_0x3d2e97;super(),_0x6985a3(this,_0x15b756(0x240),new Map()),_0x6985a3(this,'_linesIds',new Set()),_0x6985a3(this,'_groupIds',new Set());}[_0x3d2e97(0x1f1)](_0x176695,_0x53d5a1,_0x827929,_0x865184){const _0x20925b=_0x3d2e97;let _0x4bc0fc=new _0x2754e3[(_0x20925b(0x215))](_0x176695,_0x53d5a1,_0x827929,_0x865184);return this[_0x20925b(0x240)]['set'](_0x53d5a1,_0x4bc0fc),(0x0,_0x2754e3[_0x20925b(0x218)])(_0x176695)&&this['_linesIds']['add'](_0x53d5a1),_0x4bc0fc;}['getBasicShapeRelation'](_0x27b0f2){const _0x144536=_0x3d2e97;let _0x3a08da=[];for(let _0x4cd79e of this[_0x144536(0x18f)]){let _0x4ae191=this['_shapes'][_0x144536(0x16c)](_0x4cd79e);if(_0x4ae191){let _0x3cd503=_0x4ae191[_0x144536(0x1c2)]();if(_0x3cd503){var _0x14c42d,_0x51458f;((_0x14c42d=_0x3cd503[_0x144536(0x244)])==null?void 0x0:_0x14c42d[_0x144536(0x1a3)])===_0x27b0f2&&_0x3a08da['push']({..._0x3cd503[_0x144536(0x244)],'lineShapeId':_0x4cd79e,'isFrom':!0x0}),((_0x51458f=_0x3cd503['to'])==null?void 0x0:_0x51458f[_0x144536(0x1a3)])===_0x27b0f2&&_0x3a08da[_0x144536(0x15f)]({..._0x3cd503['to'],'lineShapeId':_0x4cd79e,'isFrom':!0x1});}}}return _0x3a08da;}['getLineShapeRelation'](_0x5bbcf1){const _0x10b187=_0x3d2e97;let _0xf75909=this[_0x10b187(0x240)][_0x10b187(0x16c)](_0x5bbcf1);if(_0xf75909)return _0xf75909[_0x10b187(0x1c2)]();}[_0x3d2e97(0x18e)](_0x4bdcd5){const _0x5aae61=_0x3d2e97;let _0x3962ac=this['_shapes'][_0x5aae61(0x16c)](_0x4bdcd5);if(_0x3962ac)return _0x3962ac[_0x5aae61(0x18e)]();}[_0x3d2e97(0x208)](_0x5a3aac){const _0x7274f7=_0x3d2e97;return this['_shapes'][_0x7274f7(0x222)](_0x5a3aac);}['getShapeDisplayNames'](){const _0x47ca5d=_0x3d2e97;return Array[_0x47ca5d(0x244)](this[_0x47ca5d(0x240)]['values']())[_0x47ca5d(0x1e4)](_0x27ffc4=>_0x27ffc4['getName']()||_0x27ffc4[_0x47ca5d(0x1bb)]());}[_0x3d2e97(0x1c4)](_0xeccf26){const _0x2bb7cd=_0x3d2e97;let _0x127e4d=this[_0x2bb7cd(0x240)][_0x2bb7cd(0x16c)](_0xeccf26);_0x127e4d&&((0x0,_0x2754e3['isConnectorShape'])(_0x127e4d[_0x2bb7cd(0x18e)]())&&this[_0x2bb7cd(0x18f)][_0x2bb7cd(0x155)](_0xeccf26),this['_shapes'][_0x2bb7cd(0x155)](_0xeccf26));}[_0x3d2e97(0x1d9)](){const _0x17a8c0=_0x3d2e97;let _0x4437ef=[];return this['_shapes'][_0x17a8c0(0x245)](_0x48bc44=>{_0x4437ef['push'](_0x48bc44['toJSON']());}),_0x4437ef;}[_0x3d2e97(0x19e)](_0x31fad0){const _0xbc3ae2=_0x3d2e97;for(let _0x5289cb of _0x31fad0){let {id:_0xd95014,shapeType:_0x430640,name:_0x228022}=_0x5289cb,_0x62828d=this[_0xbc3ae2(0x1f1)](_0x430640,_0xd95014,_0x5289cb[_0xbc3ae2(0x1ff)],_0x228022);_0x62828d&&_0x62828d[_0xbc3ae2(0x23e)]()&&this[_0xbc3ae2(0x18f)][_0xbc3ae2(0x197)](_0xd95014);}}[_0x3d2e97(0x147)](){const _0x5b08cf=_0x3d2e97;this[_0x5b08cf(0x196)]||(this[_0x5b08cf(0x240)]['forEach'](_0x8ea124=>{_0x8ea124['dispose']();}),this[_0x5b08cf(0x240)]['clear'](),this[_0x5b08cf(0x18f)][_0x5b08cf(0x1ec)](),this['_groupIds'][_0x5b08cf(0x1ec)](),super[_0x5b08cf(0x147)]());}};function _0x53ca3c(_0x1029bf,_0x236725){return function(_0x597291,_0x2ce823){_0x236725(_0x597291,_0x2ce823,_0x1029bf);};}function _0x1ab055(_0x1f61e0,_0x1a98ca,_0x6aa9e8,_0xd907eb){const _0x2800e4=_0x3d2e97;var _0x565f1f=arguments[_0x2800e4(0x1fd)],_0x402977=_0x565f1f<0x3?_0x1a98ca:_0xd907eb===null?_0xd907eb=Object['getOwnPropertyDescriptor'](_0x1a98ca,_0x6aa9e8):_0xd907eb,_0x408b3c;if(typeof Reflect==_0x2800e4(0x24e)&&typeof Reflect[_0x2800e4(0x206)]==_0x2800e4(0x19f))_0x402977=Reflect[_0x2800e4(0x206)](_0x1f61e0,_0x1a98ca,_0x6aa9e8,_0xd907eb);else{for(var _0x5ef8f3=_0x1f61e0[_0x2800e4(0x1fd)]-0x1;_0x5ef8f3>=0x0;_0x5ef8f3--)(_0x408b3c=_0x1f61e0[_0x5ef8f3])&&(_0x402977=(_0x565f1f<0x3?_0x408b3c(_0x402977):_0x565f1f>0x3?_0x408b3c(_0x1a98ca,_0x6aa9e8,_0x402977):_0x408b3c(_0x1a98ca,_0x6aa9e8))||_0x402977);}return _0x565f1f>0x3&&_0x402977&&Object[_0x2800e4(0x1b9)](_0x1a98ca,_0x6aa9e8,_0x402977),_0x402977;}let _0x3f2849=class extends _0x1a0f69[_0x3d2e97(0x198)]{constructor(_0x5a1d87){const _0x612e1a=_0x3d2e97;super(),this[_0x612e1a(0x23d)]=_0x5a1d87,_0x6985a3(this,_0x612e1a(0x16b),new Map()),this[_0x612e1a(0x1fa)]();}[_0x3d2e97(0x166)](_0x48d255,_0x1a31aa){const _0x2f97a4=_0x3d2e97;let _0x2d891e=this['_shapeModelManagerMap'][_0x2f97a4(0x16c)](_0x48d255);_0x2d891e||(_0x2d891e=new Map(),this[_0x2f97a4(0x16b)]['set'](_0x48d255,_0x2d891e));let _0x4a1672=_0x2d891e[_0x2f97a4(0x16c)](_0x1a31aa);return _0x4a1672||(_0x4a1672=new _0x2dde96(),_0x2d891e[_0x2f97a4(0x14f)](_0x1a31aa,_0x4a1672)),_0x4a1672;}[_0x3d2e97(0x19d)](_0x151642,_0x57feb0,_0x3b6c77,_0x1f0d9d,_0x3f1f7b,_0x735d3d){const _0x4286e0=_0x3d2e97;this[_0x4286e0(0x166)](_0x151642,_0x57feb0)[_0x4286e0(0x1f1)](_0x3b6c77,_0x1f0d9d,_0x3f1f7b,_0x735d3d);}[_0x3d2e97(0x1c4)](_0x3ddd15,_0x24c9ee,_0x4560b9){const _0x3a525d=_0x3d2e97;this[_0x3a525d(0x166)](_0x3ddd15,_0x24c9ee)['removeShape'](_0x4560b9);}[_0x3d2e97(0x212)](_0x56cea1,_0x2a5c8d,_0x2a837e){const _0x343df4=_0x3d2e97;return this['_ensureShapeModelManager'](_0x56cea1,_0x2a5c8d)[_0x343df4(0x18e)](_0x2a837e);}[_0x3d2e97(0x18e)](_0x3b4f2f,_0xb633ec,_0x5d8477){const _0x1d4818=_0x3d2e97;return this['_ensureShapeModelManager'](_0x3b4f2f,_0xb633ec)[_0x1d4818(0x18e)](_0x5d8477);}['hasShape'](_0x1c3d34,_0x7cc961,_0x39f8c3){const _0x13d4a5=_0x3d2e97;return this[_0x13d4a5(0x166)](_0x1c3d34,_0x7cc961)[_0x13d4a5(0x208)](_0x39f8c3);}[_0x3d2e97(0x1cb)](_0x135543,_0x27c3af,_0x1b37c7){const _0x2a5621=_0x3d2e97;return this[_0x2a5621(0x166)](_0x135543,_0x27c3af)[_0x2a5621(0x18e)](_0x1b37c7);}[_0x3d2e97(0x1b3)](_0x4f1914,_0x2dc820,_0x41bc61){const _0x37a501=_0x3d2e97;let _0x5a5769=this['_ensureShapeModelManager'](_0x4f1914,_0x2dc820);if(!_0x5a5769[_0x37a501(0x18e)](_0x41bc61))return;let _0x2b4e40=_0x5a5769[_0x37a501(0x240)][_0x37a501(0x16c)](_0x41bc61);if(_0x2b4e40)return _0x2b4e40[_0x37a501(0x14c)]();}[_0x3d2e97(0x249)](_0x286106,_0x2f1c05){const _0x221bf1=_0x3d2e97;return this[_0x221bf1(0x166)](_0x286106,_0x2f1c05)[_0x221bf1(0x249)]();}['getShapeModel'](_0x5cac88,_0x3270e4,_0x1aa0d6){const _0xa39d59=_0x3d2e97;return this[_0xa39d59(0x166)](_0x5cac88,_0x3270e4)['_shapes'][_0xa39d59(0x16c)](_0x1aa0d6);}[_0x3d2e97(0x1de)](_0xb95a45,_0x1818d7,_0x37d697){const _0x575ec4=_0x3d2e97;return this[_0x575ec4(0x166)](_0xb95a45,_0x1818d7)[_0x575ec4(0x1de)](_0x37d697);}[_0x3d2e97(0x243)](_0x5ad348,_0xe16139,_0x2e48a4){const _0x5dc62b=_0x3d2e97;let _0xe8f58b=this[_0x5dc62b(0x166)](_0x5ad348,_0xe16139)[_0x5dc62b(0x240)]['get'](_0x2e48a4);if(_0xe8f58b)return _0xe8f58b[_0x5dc62b(0x1c2)]();}[_0x3d2e97(0x190)](){}['_serializeShapeForUnit'](_0x238aab){const _0x5b61e3=_0x3d2e97;let _0x519802={},_0x87d33d=this[_0x5b61e3(0x16b)][_0x5b61e3(0x16c)](_0x238aab);return _0x87d33d&&_0x87d33d[_0x5b61e3(0x245)]((_0x2bb8be,_0x58b8a9)=>{const _0xebba91=_0x5b61e3;let _0x30f15a=_0x2bb8be[_0xebba91(0x1d9)]();_0x30f15a[_0xebba91(0x1fd)]>0x0&&(_0x519802[_0x58b8a9]=_0x30f15a);}),JSON['stringify'](_0x519802);}[_0x3d2e97(0x1d3)](_0x213ce4,_0x4cb26e){const _0x35f97b=_0x3d2e97;Object['keys'](_0x4cb26e)[_0x35f97b(0x245)](_0x32cd83=>{const _0x316380=_0x35f97b;this[_0x316380(0x166)](_0x213ce4,_0x32cd83)[_0x316380(0x19e)](_0x4cb26e[_0x32cd83]);});}['toJSON'](){const _0x5e6d17=_0x3d2e97;let _0x1a5248={};return this[_0x5e6d17(0x16b)][_0x5e6d17(0x245)]((_0x3eedc1,_0x50b7e2)=>{const _0x496043=_0x5e6d17;_0x1a5248[_0x50b7e2]={},_0x3eedc1[_0x496043(0x245)]((_0x313185,_0x2ceed4)=>{const _0x5c7db4=_0x496043;_0x1a5248[_0x50b7e2][_0x2ceed4]=_0x313185[_0x5c7db4(0x1d9)]();});}),_0x1a5248;}['fromJSON'](_0x22039a){const _0x5d3c9b=_0x3d2e97;Object[_0x5d3c9b(0x1fc)](_0x22039a)[_0x5d3c9b(0x245)](_0x3d5a33=>{const _0x3cb7db=_0x5d3c9b;let _0x3fd0ba=_0x22039a[_0x3d5a33];Object[_0x3cb7db(0x1fc)](_0x3fd0ba)['forEach'](_0x168ea5=>{const _0x4fd6d8=_0x3cb7db;this[_0x4fd6d8(0x166)](_0x3d5a33,_0x168ea5)['fromJSON'](_0x3fd0ba[_0x168ea5]);});});}[_0x3d2e97(0x1fa)](){const _0xc3e169=_0x3d2e97;this['_resourcesManagerService'][_0xc3e169(0x248)]({'pluginName':_0xc3e169(0x1f6),'businesses':[_0x1a0f69[_0xc3e169(0x1da)][_0xc3e169(0x1e3)]],'toJson':_0x15ceb1=>this[_0xc3e169(0x1d1)](_0x15ceb1),'parseJson':_0x5756d8=>JSON[_0xc3e169(0x183)](_0x5756d8),'onLoad':(_0x2c1979,_0x59cc59)=>{const _0x398179=_0xc3e169;this[_0x398179(0x1d3)](_0x2c1979,_0x59cc59);},'onUnLoad':_0x24f3c8=>{const _0x354613=_0xc3e169;let _0x2658c6=this[_0x354613(0x16b)][_0x354613(0x16c)](_0x24f3c8);_0x2658c6&&(_0x2658c6[_0x354613(0x245)](_0x3b88da=>{const _0x28a1b3=_0x354613;_0x3b88da[_0x28a1b3(0x147)]();}),this[_0x354613(0x16b)][_0x354613(0x155)](_0x24f3c8));}});}['dispose'](){const _0x5b1a2d=_0x3d2e97;this[_0x5b1a2d(0x16b)][_0x5b1a2d(0x245)](_0x5314f0=>{const _0x370abc=_0x5b1a2d;_0x5314f0[_0x370abc(0x245)](_0x5a45f0=>{_0x5a45f0['dispose']();});});}};_0x3f2849=_0x1ab055([_0x53ca3c(0x0,_0x1a0f69[_0x3d2e97(0x1d7)])],_0x3f2849);let _0x79b3a4={'id':'sheet.mutation.insert-shape','type':_0x1a0f69[_0x3d2e97(0x236)]['MUTATION'],'handler':(_0x2926e0,_0x4814f7)=>{const _0x150688=_0x3d2e97;let {unitId:_0x3de307,subUnitId:_0x86a4cd,shapeType:_0x3fe946,shapeId:_0x5ec5fd,shapeName:_0x31ff81,shapeData:_0xc9b06d}=_0x4814f7;return _0x2926e0[_0x150688(0x16c)](_0x3f2849)['insertShape'](_0x3de307,_0x86a4cd,_0x3fe946,_0x5ec5fd,_0x1a0f69[_0x150688(0x162)]['deepClone'](_0xc9b06d),_0x31ff81),!0x0;}},_0x1001e9={'id':'sheet.mutation.remove-shape','type':_0x1a0f69['CommandType'][_0x3d2e97(0x22a)],'handler':(_0x82b86,_0x79dedf)=>{const _0x4c6b4b=_0x3d2e97;let {unitId:_0x3bc4a8,subUnitId:_0x14b6ba,shapeId:_0xf29349}=_0x79dedf;return _0x82b86[_0x4c6b4b(0x16c)](_0x3f2849)[_0x4c6b4b(0x1c4)](_0x3bc4a8,_0x14b6ba,_0xf29349),!0x0;}},_0x33b913={'type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x176)],'id':_0x3d2e97(0x1df),'handler':(_0x270180,_0x4c838f)=>{const _0x4976f9=_0x3d2e97;let _0x353c16=(0x0,_0x7d67a2[_0x4976f9(0x192)])(_0x270180[_0x4976f9(0x16c)](_0x1a0f69[_0x4976f9(0x158)]),_0x4c838f);if(!_0x353c16)return!0x1;let _0x44e4d0=_0x270180['get'](_0x7d67a2['SheetSkeletonService']),{unitId:_0x56766d,subUnitId:_0x1a6337}=_0x353c16,_0x335c6e=_0x44e4d0[_0x4976f9(0x23b)](_0x56766d,_0x1a6337);if(!_0x335c6e)return!0x1;let _0x2f3604=_0x270180['get'](_0x1a0f69[_0x4976f9(0x22e)]),_0x4b87fd=_0x270180[_0x4976f9(0x16c)](_0x1a0f69[_0x4976f9(0x1d4)]),_0x4fa76a=_0x270180[_0x4976f9(0x16c)](_0x7d67a2[_0x4976f9(0x24d)]),_0x23e07b=_0x270180[_0x4976f9(0x16c)](_0xe343dc[_0x4976f9(0x1c5)]),_0x451933=_0x270180[_0x4976f9(0x16c)](_0x3f2849),{shapeType:_0x5eb6f7}=_0x4c838f,_0x5ce63f=_0x4c838f['shapeData']??(0x0,_0x2754e3[_0x4976f9(0x23a)])(_0x5eb6f7),_0x5c9e70=_0x4c838f['shapeId']||(0x0,_0x1a0f69[_0x4976f9(0x184)])(),_0x4243ec={'unitId':_0x56766d,'subUnitId':_0x1a6337,'shapeId':_0x5c9e70,'shapeName':_0x4c838f[_0x4976f9(0x164)]??(0x0,_0x2754e3[_0x4976f9(0x1c7)])(_0x5eb6f7,_0x451933[_0x4976f9(0x249)](_0x56766d,_0x1a6337)),'shapeType':_0x5eb6f7,'shapeData':_0x5ce63f},_0x155aaa=_0x4c838f[_0x4976f9(0x1ae)]||0xc8,_0x5df39e=_0x4c838f[_0x4976f9(0x214)]||0xc8,_0x19fcdb=0x0,_0x145ca1=0x0;if(_0x4c838f[_0x4976f9(0x1bf)]){let {x:_0x4b34d8,y:_0x5325b4}=_0x4c838f[_0x4976f9(0x1bf)];_0x19fcdb=_0x4b34d8,_0x145ca1=_0x5325b4;}else{if(_0x4c838f[_0x4976f9(0x19b)]){let {startRow:_0x17837f,startColumn:_0x536eb8}=_0x4c838f[_0x4976f9(0x19b)],_0x3e4784=_0x335c6e[_0x4976f9(0x175)](_0x17837f,_0x536eb8);_0x19fcdb=_0x3e4784[_0x4976f9(0x199)]+0xa,_0x145ca1=_0x3e4784[_0x4976f9(0x1f9)]+0xa;}}let _0x3a3ceb={'left':_0x19fcdb,'top':_0x145ca1,'width':_0x155aaa,'height':_0x5df39e,'angle':_0x4c838f['rotation']??0x0,'flipX':_0x4c838f[_0x4976f9(0x237)]??!0x1,'flipY':_0x4c838f['flipY']??!0x1},_0x3bed8b=(0x0,_0xe343dc['transformToDrawingPosition'])(_0x3a3ceb,_0x335c6e),_0x330424=(0x0,_0xe343dc[_0x4976f9(0x13f)])(_0x3a3ceb,_0x335c6e),_0x381b47={'unitId':_0x56766d,'subUnitId':_0x1a6337,'drawingId':_0x5c9e70,'drawingType':_0x1a0f69[_0x4976f9(0x21c)][_0x4976f9(0x157)],'anchorType':_0xe343dc[_0x4976f9(0x16d)][_0x4976f9(0x14b)],'name':_0x4c838f['name'],'description':_0x4c838f['description'],'sheetTransform':_0x3bed8b,'transform':_0x3a3ceb,'data':{'shapeType':_0x5eb6f7,'shapeData':_0x5ce63f},'axisAlignSheetTransform':_0x330424,'allowTransform':!0x0,'hidden':_0x4c838f[_0x4976f9(0x15b)]===!0x1,'selectable':_0x4c838f['selectable']??!0x0};(0x0,_0x2754e3[_0x4976f9(0x218)])(_0x5eb6f7)&&(_0x381b47[_0x4976f9(0x194)][_0x4976f9(0x24b)]=!0x1,_0x381b47['data'][_0x4976f9(0x1fe)]=!0x1,_0x381b47[_0x4976f9(0x194)][_0x4976f9(0x19a)]=!0x1,_0x381b47[_0x4976f9(0x194)]['borderEnabled']=!0x1,_0x381b47[_0x4976f9(0x1c0)]['rotateEnabled']=!0x1,_0x381b47[_0x4976f9(0x1c0)][_0x4976f9(0x19a)]=!0x1,_0x381b47[_0x4976f9(0x1c0)][_0x4976f9(0x1a0)]=!0x1);let {undo:_0x1f0b72,redo:_0x5905bd,objects:_0xd24e9a}=_0x23e07b[_0x4976f9(0x186)]([_0x381b47]),_0x3f2439=_0x4fa76a[_0x4976f9(0x235)]({'id':_0xe343dc[_0x4976f9(0x174)]['id'],'params':{'unitId':_0x56766d,'drawings':[_0x381b47]}}),_0x29852b=[..._0x3f2439[_0x4976f9(0x1ed)]??[],{'id':_0xe343dc[_0x4976f9(0x1ac)]['id'],'params':{'unitId':_0x56766d,'subUnitId':_0x1a6337,'op':_0x5905bd,'objects':_0xd24e9a,'type':_0xe343dc['DrawingApplyType'][_0x4976f9(0x220)]}},{'id':_0xe343dc[_0x4976f9(0x154)]['id'],'params':[_0x56766d]},..._0x3f2439[_0x4976f9(0x170)],{'id':_0x79b3a4['id'],'params':_0x4243ec}],_0x4febf2=[{'id':_0x1001e9['id'],'params':{'unitId':_0x56766d,'subUnitId':_0x1a6337,'shapeId':_0x5c9e70}},..._0x3f2439[_0x4976f9(0x195)]??[],{'id':_0xe343dc[_0x4976f9(0x1ac)]['id'],'params':{'unitId':_0x56766d,'subUnitId':_0x1a6337,'op':_0x1f0b72,'objects':_0xd24e9a,'type':_0xe343dc[_0x4976f9(0x1cc)][_0x4976f9(0x1b2)]}},{'id':_0xe343dc['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x56766d]},..._0x3f2439[_0x4976f9(0x23f)]];return(0x0,_0x1a0f69[_0x4976f9(0x143)])(_0x29852b,_0x2f3604)[_0x4976f9(0x20a)]?(_0x4b87fd[_0x4976f9(0x207)]({'unitID':_0x56766d,'undoMutations':_0x4febf2,'redoMutations':_0x29852b}),!0x0):!0x1;}},_0x28b26a={'id':_0x3d2e97(0x1cd),'type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x22a)],'handler':(_0x25e24b,_0x50f28d)=>{const _0x3d458e=_0x3d2e97;let {unitId:_0x21285f,subUnitId:_0x3bb378,shapeType:_0x4eac0b,shapeId:_0x5a05eb,shapeData:_0x27e145,replace:_0x5a0e04,formulaLastValueGuard:_0x8272e1}=_0x50f28d,_0x2a2953=_0x25e24b[_0x3d458e(0x16c)](_0x3f2849)[_0x3d458e(0x1c6)](_0x21285f,_0x3bb378,_0x5a05eb);if(_0x2a2953){var _0x98142c;if(!(0x0,_0x2754e3[_0x3d458e(0x1c3)])(_0x25e24b,{'hostType':_0x1a0f69[_0x3d458e(0x1da)][_0x3d458e(0x1e3)],'unitId':_0x21285f,'subUnitId':_0x3bb378,'shapeId':_0x5a05eb},(_0x98142c=_0x2a2953[_0x3d458e(0x14c)]()[_0x3d458e(0x22b)])==null?void 0x0:_0x98142c['formula'],_0x8272e1))return!0x0;_0x4eac0b!==void 0x0&&_0x2a2953[_0x3d458e(0x190)](_0x4eac0b),_0x27e145&&(_0x2a2953==null||_0x2a2953[_0x3d458e(0x1e2)](_0x1a0f69[_0x3d458e(0x162)]['deepClone'](_0x27e145),!_0x5a0e04));}return!0x0;}},_0x9dc81e={'type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x176)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x5855eb,_0x47cd80)=>{const _0x367473=_0x3d2e97;let _0x954847=(0x0,_0x7d67a2[_0x367473(0x192)])(_0x5855eb['get'](_0x1a0f69['IUniverInstanceService']),_0x47cd80);if(!_0x954847)return!0x1;let _0x57cfb0=_0x5855eb[_0x367473(0x16c)](_0x7d67a2[_0x367473(0x1d5)]),{unitId:_0x51c4c9,subUnitId:_0x1b83f9}=_0x954847,_0x272e1c=_0x57cfb0[_0x367473(0x23b)](_0x51c4c9,_0x1b83f9);if(!_0x272e1c)return!0x1;let _0x27c15b=_0x5855eb[_0x367473(0x16c)](_0x3f2849),{shapeId:_0x54776f,shapeType:_0x1562ec,shapeData:_0x6f1973,position:_0x3443a2,width:_0x4dcf33,height:_0x3579dc}=_0x47cd80,_0x484c7d=_0x27c15b['getShapeModel'](_0x51c4c9,_0x1b83f9,_0x54776f);if(!_0x484c7d)return!0x1;let _0xccda66=_0x5855eb[_0x367473(0x16c)](_0x1a0f69['ICommandService']),_0x3da7c3=_0x5855eb[_0x367473(0x16c)](_0x1a0f69[_0x367473(0x1d4)]),_0x290150=_0x5855eb[_0x367473(0x16c)](_0x7d67a2[_0x367473(0x24d)]),_0x263679=_0x5855eb['get'](_0xe343dc['ISheetDrawingService']),_0x167273={'unitId':_0x51c4c9,'subUnitId':_0x1b83f9,'shapeId':_0x54776f,'shapeType':_0x1562ec,'shapeData':_0x6f1973,'replace':!0x0},_0x3a86bd=_0x484c7d[_0x367473(0x18e)](),_0x4a1ae4=_0x484c7d[_0x367473(0x14c)](),{x:_0x4a4c55,y:_0x131ccd}=_0x3443a2,_0x407a42={'left':_0x4a4c55,'top':_0x131ccd,'width':_0x4dcf33,'height':_0x3579dc,'angle':_0x47cd80[_0x367473(0x1c1)]??0x0,'flipX':_0x47cd80[_0x367473(0x237)]??!0x1,'flipY':_0x47cd80['flipY']??!0x1},_0x4ac907=(0x0,_0xe343dc[_0x367473(0x187)])(_0x407a42,_0x272e1c),_0x17715b=(0x0,_0xe343dc[_0x367473(0x13f)])(_0x407a42,_0x272e1c),_0x172c28={'unitId':_0x51c4c9,'subUnitId':_0x1b83f9,'drawingId':_0x54776f,'drawingType':_0x1a0f69[_0x367473(0x21c)][_0x367473(0x157)],'name':_0x47cd80[_0x367473(0x1ba)],'description':_0x47cd80[_0x367473(0x17f)],'sheetTransform':_0x4ac907,'transform':_0x407a42,'data':{'shapeType':_0x1562ec,'shapeData':_0x6f1973},'axisAlignSheetTransform':_0x17715b,'allowTransform':!0x0,'hidden':!_0x47cd80[_0x367473(0x15b)],'selectable':_0x47cd80[_0x367473(0x1b7)]};(0x0,_0x2754e3[_0x367473(0x218)])(_0x1562ec)&&(_0x172c28[_0x367473(0x194)][_0x367473(0x24b)]=!0x1,_0x172c28['data'][_0x367473(0x1fe)]=!0x1,_0x172c28[_0x367473(0x194)][_0x367473(0x19a)]=!0x1,_0x172c28[_0x367473(0x194)][_0x367473(0x1a0)]=!0x1,_0x172c28[_0x367473(0x1c0)][_0x367473(0x1fe)]=!0x1,_0x172c28[_0x367473(0x1c0)][_0x367473(0x19a)]=!0x1,_0x172c28[_0x367473(0x1c0)][_0x367473(0x1a0)]=!0x1);let {undo:_0x259d7a,redo:_0x44b502,objects:_0x7abd78}=_0x263679[_0x367473(0x1bd)]([_0x172c28]),_0x3beec3=_0x290150[_0x367473(0x235)]({'id':_0xe343dc[_0x367473(0x224)]['id'],'params':{'unitId':_0x51c4c9,'drawings':[_0x172c28]}}),_0x2d05e5=[..._0x3beec3['preRedos']??[],{'id':_0xe343dc[_0x367473(0x1ac)]['id'],'params':{'unitId':_0x51c4c9,'subUnitId':_0x1b83f9,'op':_0x44b502,'objects':_0x7abd78,'type':_0xe343dc['DrawingApplyType']['UPDATE']}},{'id':_0xe343dc['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x51c4c9]},..._0x3beec3[_0x367473(0x170)],{'id':_0x28b26a['id'],'params':_0x167273}],_0x59aeab=[..._0x3beec3['preUndos']??[],{'id':_0xe343dc[_0x367473(0x1ac)]['id'],'params':{'unitId':_0x51c4c9,'subUnitId':_0x1b83f9,'op':_0x259d7a,'objects':_0x7abd78,'type':_0xe343dc[_0x367473(0x1cc)][_0x367473(0x160)]}},{'id':_0xe343dc[_0x367473(0x154)]['id'],'params':[_0x51c4c9]},..._0x3beec3['undos'],{'id':_0x28b26a['id'],'params':{'unitId':_0x51c4c9,'subUnitId':_0x1b83f9,'shapeType':_0x3a86bd,'shapeId':_0x54776f,'shapeData':_0x4a1ae4,'replace':!0x0}}];return(0x0,_0x1a0f69[_0x367473(0x143)])(_0x2d05e5,_0xccda66)[_0x367473(0x20a)]?(_0x3da7c3['pushUndoRedo']({'unitID':_0x51c4c9,'undoMutations':_0x59aeab,'redoMutations':_0x2d05e5}),!0x0):!0x1;}},_0x11ef58={'type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x176)],'id':'sheet.command.toggle-shape-flip','handler':(_0x59563f,_0x70f8b2)=>{const _0x59ce0e=_0x3d2e97;let _0x5c5f1f=(0x0,_0x7d67a2['getSheetCommandTarget'])(_0x59563f['get'](_0x1a0f69[_0x59ce0e(0x158)]),_0x70f8b2);if(!_0x5c5f1f)return!0x1;let _0x215f94=_0x59563f[_0x59ce0e(0x16c)](_0x7d67a2[_0x59ce0e(0x1d5)]),{unitId:_0x4dbc37,subUnitId:_0x578bc9}=_0x5c5f1f,_0x4145c6=_0x215f94[_0x59ce0e(0x209)](_0x4dbc37,_0x578bc9);if(!_0x4145c6)return!0x1;let _0x49280a=_0x59563f[_0x59ce0e(0x16c)](_0xe343dc['ISheetDrawingService']),{shapeId:_0x48da23,flipH:_0x1dd70e,flipV:_0x405b83}=_0x70f8b2,_0x31ff4f=_0x49280a[_0x59ce0e(0x182)]({'unitId':_0x4dbc37,'subUnitId':_0x578bc9,'drawingId':_0x48da23});if(!_0x31ff4f)return!0x1;let _0x2ac26b=_0x59563f['get'](_0x3f2849)[_0x59ce0e(0x1c6)](_0x4dbc37,_0x578bc9,_0x48da23);if(!_0x2ac26b)return!0x1;let _0x17589c=_0x59563f[_0x59ce0e(0x16c)](_0x1a0f69[_0x59ce0e(0x22e)]),_0x6763bb=_0x59563f[_0x59ce0e(0x16c)](_0x1a0f69[_0x59ce0e(0x1d4)]),_0x44a6dc=_0x59563f[_0x59ce0e(0x16c)](_0x7d67a2[_0x59ce0e(0x24d)]),_0x10b076={..._0x31ff4f[_0x59ce0e(0x1c0)]};_0x1dd70e!==void 0x0&&(_0x10b076['flipX']=!_0x10b076[_0x59ce0e(0x237)]),_0x405b83!==void 0x0&&(_0x10b076[_0x59ce0e(0x17b)]=!_0x10b076[_0x59ce0e(0x17b)]);let _0x1ab7c1=(0x0,_0xe343dc['transformToDrawingPosition'])(_0x10b076,_0x4145c6),_0x9cc4c1=(0x0,_0xe343dc[_0x59ce0e(0x13f)])(_0x10b076,_0x4145c6),_0x1cee2c=_0x2ac26b[_0x59ce0e(0x18e)](),_0x40e419=_0x2ac26b[_0x59ce0e(0x14c)](),_0x484dbd={'unitId':_0x4dbc37,'subUnitId':_0x578bc9,'drawingId':_0x48da23,'drawingType':_0x1a0f69['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x1ab7c1,'transform':_0x10b076,'data':{'shapeType':_0x1cee2c,'shapeData':_0x40e419},'axisAlignSheetTransform':_0x9cc4c1,'allowTransform':!0x0},{undo:_0x17d084,redo:_0x54d47a,objects:_0x5333d0}=_0x49280a['getBatchUpdateOp']([_0x484dbd]),_0x4b67a9=_0x44a6dc[_0x59ce0e(0x235)]({'id':_0xe343dc[_0x59ce0e(0x224)]['id'],'params':{'unitId':_0x4dbc37,'drawings':[_0x484dbd]}}),_0x44a2c4=[..._0x4b67a9[_0x59ce0e(0x1ed)]??[],{'id':_0xe343dc[_0x59ce0e(0x1ac)]['id'],'params':{'unitId':_0x4dbc37,'subUnitId':_0x578bc9,'op':_0x54d47a,'objects':_0x5333d0,'type':_0xe343dc[_0x59ce0e(0x1cc)][_0x59ce0e(0x160)]}},{'id':_0xe343dc[_0x59ce0e(0x154)]['id'],'params':[_0x4dbc37]},..._0x4b67a9[_0x59ce0e(0x170)]],_0x342890=[..._0x4b67a9[_0x59ce0e(0x195)]??[],{'id':_0xe343dc['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4dbc37,'subUnitId':_0x578bc9,'op':_0x17d084,'objects':_0x5333d0,'type':_0xe343dc[_0x59ce0e(0x1cc)][_0x59ce0e(0x160)]}},{'id':_0xe343dc[_0x59ce0e(0x154)]['id'],'params':[_0x4dbc37]},..._0x4b67a9['undos']];if((0x0,_0x2754e3[_0x59ce0e(0x218)])(_0x1cee2c)){let _0x38d327=_0x2ac26b['getShapeRelation']();if(_0x38d327){let _0x3ebb55={..._0x38d327};_0x3ebb55[_0x59ce0e(0x244)]=void 0x0,_0x3ebb55['to']=void 0x0,_0x44a2c4[_0x59ce0e(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x4dbc37,'subUnitId':_0x578bc9,'shapeId':_0x48da23,'shapeType':_0x1cee2c,'shapeData':{'relation':_0x3ebb55}}}),_0x342890[_0x59ce0e(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x4dbc37,'subUnitId':_0x578bc9,'shapeId':_0x48da23,'shapeType':_0x1cee2c,'shapeData':{'relation':_0x38d327}}});}}return(0x0,_0x1a0f69[_0x59ce0e(0x143)])(_0x44a2c4,_0x17589c)['result']?(_0x6763bb['pushUndoRedo']({'unitID':_0x4dbc37,'undoMutations':_0x342890,'redoMutations':_0x44a2c4}),!0x0):!0x1;}},_0x5eb3c5={'type':_0x1a0f69['CommandType'][_0x3d2e97(0x176)],'id':_0x3d2e97(0x141),'handler':(_0xa4f463,_0x1dc67b)=>{const _0x2845a0=_0x3d2e97;let _0x224b13=(0x0,_0x7d67a2[_0x2845a0(0x192)])(_0xa4f463[_0x2845a0(0x16c)](_0x1a0f69[_0x2845a0(0x158)]),_0x1dc67b);if(!_0x224b13)return!0x1;let _0x23b8e8=_0xa4f463[_0x2845a0(0x16c)](_0x7d67a2[_0x2845a0(0x1d5)]),{unitId:_0x268e15,subUnitId:_0x2b1f73}=_0x224b13,_0x388d55=_0x23b8e8[_0x2845a0(0x209)](_0x268e15,_0x2b1f73);if(!_0x388d55)return!0x1;let _0x2c807d=_0xa4f463['get'](_0xe343dc[_0x2845a0(0x1c5)]),{shapeId:_0x54c4b5,rotate:_0xde9e90}=_0x1dc67b,_0x41b2ad=_0x2c807d[_0x2845a0(0x182)]({'unitId':_0x268e15,'subUnitId':_0x2b1f73,'drawingId':_0x54c4b5});if(!_0x41b2ad)return!0x1;let _0x188006=_0xa4f463[_0x2845a0(0x16c)](_0x3f2849)[_0x2845a0(0x1c6)](_0x268e15,_0x2b1f73,_0x54c4b5);if(!_0x188006)return!0x1;let _0x305795=_0xa4f463[_0x2845a0(0x16c)](_0x1a0f69['ICommandService']),_0x1f2135=_0xa4f463['get'](_0x1a0f69[_0x2845a0(0x1d4)]),_0x1884c1=_0xa4f463['get'](_0x7d67a2[_0x2845a0(0x24d)]),_0x49f933={..._0x41b2ad[_0x2845a0(0x1c0)]};_0xde9e90!==void 0x0&&(_0x49f933[_0x2845a0(0x180)]=(_0x49f933[_0x2845a0(0x180)]||0x0)+_0xde9e90);let _0x2864cb=(0x0,_0xe343dc[_0x2845a0(0x187)])(_0x49f933,_0x388d55),_0x437a90=(0x0,_0xe343dc['transformToAxisAlignPosition'])(_0x49f933,_0x388d55),_0x481499=_0x188006[_0x2845a0(0x18e)](),_0x5d4047=_0x188006[_0x2845a0(0x14c)](),_0x4664e0={'unitId':_0x268e15,'subUnitId':_0x2b1f73,'drawingId':_0x54c4b5,'drawingType':_0x1a0f69[_0x2845a0(0x21c)][_0x2845a0(0x157)],'sheetTransform':_0x2864cb,'transform':_0x49f933,'data':{'shapeType':_0x481499,'shapeData':_0x5d4047},'axisAlignSheetTransform':_0x437a90,'allowTransform':!0x0},{undo:_0x153afe,redo:_0x4508c4,objects:_0x4ebbe1}=_0x2c807d[_0x2845a0(0x1bd)]([_0x4664e0]),_0x49e0a6=_0x1884c1[_0x2845a0(0x235)]({'id':_0xe343dc['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x268e15,'drawings':[_0x4664e0]}}),_0x3b8435=[..._0x49e0a6[_0x2845a0(0x1ed)]??[],{'id':_0xe343dc['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x268e15,'subUnitId':_0x2b1f73,'op':_0x4508c4,'objects':_0x4ebbe1,'type':_0xe343dc[_0x2845a0(0x1cc)]['UPDATE']}},{'id':_0xe343dc[_0x2845a0(0x154)]['id'],'params':[_0x268e15]},..._0x49e0a6[_0x2845a0(0x170)]],_0x31d4f9=[..._0x49e0a6[_0x2845a0(0x195)]??[],{'id':_0xe343dc[_0x2845a0(0x1ac)]['id'],'params':{'unitId':_0x268e15,'subUnitId':_0x2b1f73,'op':_0x153afe,'objects':_0x4ebbe1,'type':_0xe343dc[_0x2845a0(0x1cc)][_0x2845a0(0x160)]}},{'id':_0xe343dc['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x268e15]},..._0x49e0a6['undos']];return(0x0,_0x1a0f69[_0x2845a0(0x143)])(_0x3b8435,_0x305795)[_0x2845a0(0x20a)]?(_0x1f2135[_0x2845a0(0x207)]({'unitID':_0x268e15,'undoMutations':_0x31d4f9,'redoMutations':_0x3b8435}),!0x0):!0x1;}},_0x11d28a={'type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x176)],'id':_0x3d2e97(0x149),'handler':(_0x406f60,_0x7a31bd)=>{const _0x538577=_0x3d2e97;let _0x136f7d=(0x0,_0x7d67a2['getSheetCommandTarget'])(_0x406f60[_0x538577(0x16c)](_0x1a0f69[_0x538577(0x158)]),_0x7a31bd);if(!_0x136f7d)return!0x1;let {unitId:_0x27ee4d,subUnitId:_0x34a88f}=_0x136f7d,{shapeId:_0x3856b9}=_0x7a31bd,_0x20d177=_0x406f60[_0x538577(0x16c)](_0x3f2849)[_0x538577(0x1c6)](_0x27ee4d,_0x34a88f,_0x3856b9);if(!_0x20d177)return!0x1;let _0x5afa74=_0x20d177[_0x538577(0x18c)](),_0x582aad=(_0x5afa74==null?void 0x0:_0x5afa74[_0x538577(0x13b)])??!0x0,_0x1019ff=!_0x582aad,_0xe3d2cd=_0x406f60['get'](_0x1a0f69[_0x538577(0x22e)]),_0x12f61b=_0x406f60[_0x538577(0x16c)](_0x1a0f69['IUndoRedoService']),_0x1572a2={'unitId':_0x27ee4d,'subUnitId':_0x34a88f,'shapeId':_0x3856b9,'shapeData':{'shapeText':{'isHorizontal':_0x1019ff}}},_0x51c081={'unitId':_0x27ee4d,'subUnitId':_0x34a88f,'shapeId':_0x3856b9,'shapeData':{'shapeText':{'isHorizontal':_0x582aad}}},_0x1e4f9f=[{'id':_0x28b26a['id'],'params':_0x1572a2}],_0x21ad13=[{'id':_0x28b26a['id'],'params':_0x51c081}];return(0x0,_0x1a0f69[_0x538577(0x143)])(_0x1e4f9f,_0xe3d2cd)[_0x538577(0x20a)]?(_0x12f61b[_0x538577(0x207)]({'unitID':_0x27ee4d,'undoMutations':_0x21ad13,'redoMutations':_0x1e4f9f}),!0x0):!0x1;}},_0x118c1f={'type':_0x1a0f69[_0x3d2e97(0x236)]['COMMAND'],'id':_0x3d2e97(0x1b0),'handler':(_0x266478,_0x521c0c)=>{const _0x59a14d=_0x3d2e97;var _0x16a351;let _0x5ea97a=(0x0,_0x7d67a2['getSheetCommandTarget'])(_0x266478[_0x59a14d(0x16c)](_0x1a0f69[_0x59a14d(0x158)]),_0x521c0c);if(!_0x5ea97a)return!0x1;let _0x8984b0=_0x266478[_0x59a14d(0x16c)](_0x7d67a2['SheetSkeletonService']),{unitId:_0x12ae94,subUnitId:_0x57d92a}=_0x5ea97a,_0x19f02c=_0x8984b0[_0x59a14d(0x209)](_0x12ae94,_0x57d92a);if(!_0x19f02c)return!0x1;let _0x43c382=_0x266478[_0x59a14d(0x16c)](_0xe343dc[_0x59a14d(0x1c5)]),{connectorShapeId:_0x4b5bbd,width:_0x420103,height:_0x3975bb,left:_0x330265,top:_0x22aa96,flipX:_0x3a5991,flipY:_0x36b3ec,rotation:_0x1f4183,oldAdjustValues:_0xd6d834,newAdjustValues:_0x2de624,oldLineType:_0x39b611,newLineType:_0x311e2f,oldRelation:_0x4b3a5f,newRelation:_0x73b00c}=_0x521c0c,_0x41e90f=_0x43c382['getDrawingByParam']({'unitId':_0x12ae94,'subUnitId':_0x57d92a,'drawingId':_0x4b5bbd});if(!_0x41e90f)return!0x1;let _0xac381=_0x266478[_0x59a14d(0x16c)](_0x3f2849)[_0x59a14d(0x1c6)](_0x12ae94,_0x57d92a,_0x4b5bbd);if(!_0xac381)return!0x1;let _0x73a6e1=_0x266478[_0x59a14d(0x16c)](_0x1a0f69[_0x59a14d(0x22e)]),_0xebd6d4=_0x266478['get'](_0x1a0f69[_0x59a14d(0x1d4)]),_0x4957c3=_0x266478['get'](_0x7d67a2[_0x59a14d(0x24d)]),_0x5aad6f={..._0x41e90f['transform'],'width':_0x420103,'height':_0x3975bb,'left':_0x330265,'top':_0x22aa96,'flipX':_0x3a5991,'flipY':_0x36b3ec,'angle':_0x1f4183??((_0x16a351=_0x41e90f['transform'])==null?void 0x0:_0x16a351['angle'])??0x0},_0xa9f4b0=(0x0,_0xe343dc[_0x59a14d(0x187)])(_0x5aad6f,_0x19f02c),_0x1aa486=(0x0,_0xe343dc[_0x59a14d(0x13f)])(_0x5aad6f,_0x19f02c),_0x4fa3a4=_0xac381[_0x59a14d(0x18e)](),_0x4aa47b=_0xac381[_0x59a14d(0x14c)](),_0x34d63c={'unitId':_0x12ae94,'subUnitId':_0x57d92a,'drawingId':_0x4b5bbd,'drawingType':_0x1a0f69[_0x59a14d(0x21c)]['DRAWING_SHAPE'],'sheetTransform':_0xa9f4b0,'transform':_0x5aad6f,'data':{'shapeType':_0x311e2f||_0x39b611||_0x4fa3a4,'shapeData':{..._0x4aa47b,'adjustValues':_0x2de624||_0xd6d834||(_0x4aa47b==null?void 0x0:_0x4aa47b[_0x59a14d(0x226)]),'relation':_0x73b00c||_0x4b3a5f||(_0x4aa47b==null?void 0x0:_0x4aa47b['relation'])}},'axisAlignSheetTransform':_0x1aa486,'allowTransform':!0x0},{undo:_0x532aeb,redo:_0x1d7183,objects:_0x3b8450}=_0x43c382[_0x59a14d(0x1bd)]([_0x34d63c]),_0x56e7ea=_0x4957c3[_0x59a14d(0x235)]({'id':_0xe343dc[_0x59a14d(0x224)]['id'],'params':{'unitId':_0x12ae94,'drawings':[_0x34d63c]}}),_0x84745c=[..._0x56e7ea[_0x59a14d(0x1ed)]??[],{'id':_0xe343dc['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x12ae94,'subUnitId':_0x57d92a,'op':_0x1d7183,'objects':_0x3b8450,'type':_0xe343dc[_0x59a14d(0x1cc)]['UPDATE']}},{'id':_0xe343dc[_0x59a14d(0x154)]['id'],'params':[_0x12ae94]},..._0x56e7ea[_0x59a14d(0x170)],{'id':_0x28b26a['id'],'params':{'unitId':_0x12ae94,'subUnitId':_0x57d92a,'shapeId':_0x4b5bbd,'shapeType':_0x311e2f,'shapeData':{'adjustValues':_0x2de624,'relation':_0x73b00c}}}],_0x3ec342=[..._0x56e7ea[_0x59a14d(0x195)]??[],{'id':_0xe343dc['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x12ae94,'subUnitId':_0x57d92a,'op':_0x532aeb,'objects':_0x3b8450,'type':_0xe343dc['DrawingApplyType'][_0x59a14d(0x160)]}},{'id':_0xe343dc['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x12ae94]},..._0x56e7ea[_0x59a14d(0x23f)],{'id':_0x28b26a['id'],'params':{'unitId':_0x12ae94,'subUnitId':_0x57d92a,'shapeId':_0x4b5bbd,'shapeType':_0x4fa3a4,'shapeData':{..._0x4aa47b,'adjustValues':_0xd6d834||(_0x4aa47b==null?void 0x0:_0x4aa47b[_0x59a14d(0x226)]),'relation':_0x4b3a5f||(_0x4aa47b==null?void 0x0:_0x4aa47b[_0x59a14d(0x20d)])}}}];return(0x0,_0x1a0f69[_0x59a14d(0x143)])(_0x84745c,_0x73a6e1)[_0x59a14d(0x20a)]?(_0xebd6d4[_0x59a14d(0x207)]({'unitID':_0x12ae94,'undoMutations':_0x3ec342,'redoMutations':_0x84745c}),!0x0):!0x1;}},_0x246175={'type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x176)],'id':_0x3d2e97(0x201),'handler':(_0x4ddb85,_0x5a445c)=>{const _0x3b8d92=_0x3d2e97;let _0x25a903=(0x0,_0x7d67a2[_0x3b8d92(0x192)])(_0x4ddb85[_0x3b8d92(0x16c)](_0x1a0f69[_0x3b8d92(0x158)]),_0x5a445c);if(!_0x25a903)return!0x1;let _0x5b9a30=_0x4ddb85[_0x3b8d92(0x16c)](_0x7d67a2[_0x3b8d92(0x1d5)]),{unitId:_0x5ed9e5,subUnitId:_0x389100}=_0x25a903,_0x3bbc56=_0x5b9a30[_0x3b8d92(0x209)](_0x5ed9e5,_0x389100);if(!_0x3bbc56)return!0x1;let _0x62b048=_0x4ddb85[_0x3b8d92(0x16c)](_0xe343dc[_0x3b8d92(0x1c5)]),{shapeId:_0x4bac36,width:_0x456a63,height:_0x2e242d,left:_0x16ea4b,top:_0x5b5f1c,flipX:_0x3e7899,flipY:_0x36c4fc,angle:_0x31af68,oldAdjustValues:_0x4cd3d6,newAdjustValues:_0x397c1f,oldLineType:_0x197a8a,newLineType:_0x110d93}=_0x5a445c,_0x550f49=_0x62b048['getDrawingByParam']({'unitId':_0x5ed9e5,'subUnitId':_0x389100,'drawingId':_0x4bac36});if(!_0x550f49)return!0x1;let _0x20230a=_0x4ddb85['get'](_0x3f2849)[_0x3b8d92(0x1c6)](_0x5ed9e5,_0x389100,_0x4bac36);if(!_0x20230a)return!0x1;let _0x47ba97=_0x4ddb85[_0x3b8d92(0x16c)](_0x1a0f69[_0x3b8d92(0x22e)]),_0x2bc899=_0x4ddb85[_0x3b8d92(0x16c)](_0x1a0f69[_0x3b8d92(0x1d4)]),_0x331b0f=_0x4ddb85['get'](_0x7d67a2[_0x3b8d92(0x24d)]),_0x332970={..._0x550f49[_0x3b8d92(0x1c0)],'width':_0x456a63,'height':_0x2e242d,'left':_0x16ea4b,'top':_0x5b5f1c,'flipX':_0x3e7899,'flipY':_0x36c4fc,'angle':_0x31af68},_0x52cca3=(0x0,_0xe343dc[_0x3b8d92(0x187)])(_0x332970,_0x3bbc56),_0xab6e7f=(0x0,_0xe343dc[_0x3b8d92(0x13f)])(_0x332970,_0x3bbc56),_0x309f92=_0x20230a[_0x3b8d92(0x18e)](),_0x47bb54=_0x20230a[_0x3b8d92(0x14c)](),_0x3b4c4a={'unitId':_0x5ed9e5,'subUnitId':_0x389100,'drawingId':_0x4bac36,'drawingType':_0x1a0f69['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x52cca3,'transform':_0x332970,'data':{'shapeType':_0x110d93||_0x197a8a||_0x309f92,'shapeData':{..._0x47bb54,'adjustValues':_0x397c1f||_0x4cd3d6||(_0x47bb54==null?void 0x0:_0x47bb54['adjustValues'])}},'axisAlignSheetTransform':_0xab6e7f,'allowTransform':!0x0},{undo:_0x404f6c,redo:_0x2b249e,objects:_0x3ea9d2}=_0x62b048[_0x3b8d92(0x1bd)]([_0x3b4c4a]),_0x46c8b3=_0x331b0f['onCommandExecute']({'id':_0xe343dc[_0x3b8d92(0x224)]['id'],'params':{'unitId':_0x5ed9e5,'drawings':[_0x3b4c4a]}}),_0x29d342=[..._0x46c8b3[_0x3b8d92(0x1ed)]??[],{'id':_0xe343dc[_0x3b8d92(0x1ac)]['id'],'params':{'unitId':_0x5ed9e5,'subUnitId':_0x389100,'op':_0x2b249e,'objects':_0x3ea9d2,'type':_0xe343dc[_0x3b8d92(0x1cc)][_0x3b8d92(0x160)]}},{'id':_0xe343dc[_0x3b8d92(0x154)]['id'],'params':[_0x5ed9e5]},..._0x46c8b3[_0x3b8d92(0x170)],{'id':_0x28b26a['id'],'params':{'unitId':_0x5ed9e5,'subUnitId':_0x389100,'shapeId':_0x4bac36,'shapeType':_0x110d93,'shapeData':{'adjustValues':_0x397c1f}}}],_0x319e12=[..._0x46c8b3['preUndos']??[],{'id':_0xe343dc[_0x3b8d92(0x1ac)]['id'],'params':{'unitId':_0x5ed9e5,'subUnitId':_0x389100,'op':_0x404f6c,'objects':_0x3ea9d2,'type':_0xe343dc[_0x3b8d92(0x1cc)][_0x3b8d92(0x160)]}},{'id':_0xe343dc['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5ed9e5]},..._0x46c8b3['undos'],{'id':_0x28b26a['id'],'params':{'unitId':_0x5ed9e5,'subUnitId':_0x389100,'shapeId':_0x4bac36,'shapeType':_0x309f92,'shapeData':{..._0x47bb54,'adjustValues':_0x4cd3d6||(_0x47bb54==null?void 0x0:_0x47bb54[_0x3b8d92(0x226)])}}}];return(0x0,_0x1a0f69[_0x3b8d92(0x143)])(_0x29d342,_0x47ba97)[_0x3b8d92(0x20a)]?(_0x2bc899[_0x3b8d92(0x207)]({'unitID':_0x5ed9e5,'undoMutations':_0x319e12,'redoMutations':_0x29d342}),!0x0):!0x1;}},_0x48b8af={'id':'sheet.mutation.update-shape-type','type':_0x1a0f69[_0x3d2e97(0x236)][_0x3d2e97(0x22a)],'handler':(_0x129c83,_0x1fcbb9)=>{const _0xcc5e49=_0x3d2e97;let {unitId:_0x426a08,subUnitId:_0x4adcf0,shapeType:_0x4e1c9f,shapeId:_0x4ca7d3,shapeData:_0x13e2be}=_0x1fcbb9,_0x337365=_0x129c83[_0xcc5e49(0x16c)](_0x3f2849)[_0xcc5e49(0x1c6)](_0x426a08,_0x4adcf0,_0x4ca7d3);return _0x337365&&(_0x337365[_0xcc5e49(0x190)](_0x4e1c9f),_0x13e2be&&(_0x337365==null||_0x337365[_0xcc5e49(0x1e2)](_0x13e2be))),!0x0;}};var _0x514575='@univerjs-pro/sheets-shape',_0x4e7b6c='1.0.0';function _0x1fce4f(_0x47e582){const _0x5b66f2=_0x3d2e97;var _0x252de1,_0x5f391d,_0x37917b,_0xf90866,_0x2390c2,_0x4ca19d,_0x56ee52;return{'left':((_0x252de1=_0x47e582[_0x5b66f2(0x1c0)])==null?void 0x0:_0x252de1[_0x5b66f2(0x1a8)])??0x0,'top':((_0x5f391d=_0x47e582[_0x5b66f2(0x1c0)])==null?void 0x0:_0x5f391d[_0x5b66f2(0x168)])??0x0,'width':((_0x37917b=_0x47e582[_0x5b66f2(0x1c0)])==null?void 0x0:_0x37917b[_0x5b66f2(0x1ae)])??0xc8,'height':((_0xf90866=_0x47e582['transform'])==null?void 0x0:_0xf90866[_0x5b66f2(0x214)])??0xc8,'rotation':((_0x2390c2=_0x47e582[_0x5b66f2(0x1c0)])==null?void 0x0:_0x2390c2[_0x5b66f2(0x1c1)])??0x0,'flipX':((_0x4ca19d=_0x47e582[_0x5b66f2(0x1c0)])==null?void 0x0:_0x4ca19d[_0x5b66f2(0x237)])??!0x1,'flipY':((_0x56ee52=_0x47e582[_0x5b66f2(0x1c0)])==null?void 0x0:_0x56ee52[_0x5b66f2(0x17b)])??!0x1};}let _0x4ed483=class{constructor(_0x204caa,_0x524145,_0x4ce6e4,_0x1d06e5){const _0x514cb8=_0x3d2e97;this[_0x514cb8(0x216)]=_0x204caa,this[_0x514cb8(0x172)]=_0x524145,this[_0x514cb8(0x151)]=_0x4ce6e4,this[_0x514cb8(0x1a5)]=_0x1d06e5,_0x6985a3(this,_0x514cb8(0x1a9),_0x1a0f69[_0x514cb8(0x1da)][_0x514cb8(0x1e3)]);}get['shapeChanged$'](){return{'subscribe':_0x5ab7ab=>{const _0x5461b7=_0x2ede;let _0x14abcf=this[_0x5461b7(0x216)][_0x5461b7(0x13e)](_0x384866=>{const _0x3e6bf2=_0x5461b7;(_0x384866['id']===_0x79b3a4['id']||_0x384866['id']===_0x1001e9['id']||_0x384866['id']===_0x28b26a['id']||_0x384866['id']===_0x48b8af['id'])&&_0x5ab7ab({'unitId':_0x384866[_0x3e6bf2(0x14d)][_0x3e6bf2(0x1e6)]});});return{'unsubscribe':()=>_0x14abcf[_0x5461b7(0x147)]()};}};}[_0x3d2e97(0x213)](_0x158c42){const _0x3e30b1=_0x3d2e97;var _0x5b8016;let _0xa92fb2=(_0x5b8016=this[_0x3e30b1(0x151)]['getDrawingData'](_0x158c42[_0x3e30b1(0x1e6)],_0x158c42[_0x3e30b1(0x1f4)]))==null?void 0x0:_0x5b8016[_0x158c42[_0x3e30b1(0x1a3)]],_0x52b9f7=this['_shapeService'][_0x3e30b1(0x18e)](_0x158c42[_0x3e30b1(0x1e6)],_0x158c42[_0x3e30b1(0x1f4)],_0x158c42[_0x3e30b1(0x1a3)]);if(!_0xa92fb2||_0xa92fb2['drawingType']!==_0x1a0f69[_0x3e30b1(0x21c)][_0x3e30b1(0x157)]||!_0x52b9f7)return null;let _0x50bae0=_0xa92fb2[_0x3e30b1(0x1c0)];return{..._0x158c42,'shapeType':_0x52b9f7,'shapeData':_0x1a0f69['Tools'][_0x3e30b1(0x159)](this[_0x3e30b1(0x172)][_0x3e30b1(0x1b3)](_0x158c42[_0x3e30b1(0x1e6)],_0x158c42[_0x3e30b1(0x1f4)],_0x158c42[_0x3e30b1(0x1a3)])??{}),'name':_0xa92fb2[_0x3e30b1(0x1ba)],'description':_0xa92fb2[_0x3e30b1(0x17f)],'visible':_0xa92fb2[_0x3e30b1(0x202)]!==!0x0,'selectable':_0xa92fb2['selectable']!==!0x1,'transform':{'left':(_0x50bae0==null?void 0x0:_0x50bae0[_0x3e30b1(0x1a8)])??0x0,'top':(_0x50bae0==null?void 0x0:_0x50bae0['top'])??0x0,'width':(_0x50bae0==null?void 0x0:_0x50bae0['width'])??0xc8,'height':(_0x50bae0==null?void 0x0:_0x50bae0['height'])??0xc8,'rotation':(_0x50bae0==null?void 0x0:_0x50bae0[_0x3e30b1(0x180)])??0x0,'flipX':(_0x50bae0==null?void 0x0:_0x50bae0[_0x3e30b1(0x237)])??!0x1,'flipY':(_0x50bae0==null?void 0x0:_0x50bae0['flipY'])??!0x1}};}[_0x3d2e97(0x16a)](_0x52bd79){const _0x4b5273=_0x3d2e97;let _0x396a23=this[_0x4b5273(0x151)][_0x4b5273(0x193)](_0x52bd79['unitId'],_0x52bd79[_0x4b5273(0x1f4)])??{};return Object[_0x4b5273(0x1bc)](_0x396a23)[_0x4b5273(0x233)](_0x5ac9b4=>(_0x5ac9b4==null?void 0x0:_0x5ac9b4['drawingType'])===_0x1a0f69[_0x4b5273(0x21c)]['DRAWING_SHAPE'])['map'](_0x3aeef0=>this['getShape']({..._0x52bd79,'shapeId':_0x3aeef0[_0x4b5273(0x1f0)]}))[_0x4b5273(0x233)](_0x4719a0=>!!_0x4719a0);}[_0x3d2e97(0x1a4)](_0x5bdbdb){const _0x1432ac=_0x3d2e97;let _0x53af92=this[_0x1432ac(0x1a5)]['getUnit'](_0x5bdbdb,_0x1a0f69[_0x1432ac(0x1da)][_0x1432ac(0x1e3)]);return(_0x53af92==null?void 0x0:_0x53af92['getSheets']()[_0x1432ac(0x1b5)](_0x3f6bf4=>this[_0x1432ac(0x16a)]({'hostType':this['hostType'],'unitId':_0x5bdbdb,'subUnitId':_0x3f6bf4[_0x1432ac(0x21e)]()})))??[];}['createShape'](_0x3eb736,_0x355bc3){const _0x47308c=_0x3d2e97;let _0x4a04ed=(0x0,_0x1a0f69[_0x47308c(0x184)])(),_0x7ab188=_0x1fce4f(_0x355bc3),_0x297a1e=_0x1a0f69['Tools'][_0x47308c(0x159)](_0x355bc3['shapeData']??(0x0,_0x2754e3[_0x47308c(0x23a)])(_0x355bc3[_0x47308c(0x1b6)]));return this[_0x47308c(0x216)][_0x47308c(0x18a)](_0x33b913['id'],{'unitId':_0x3eb736['unitId'],'subUnitId':_0x3eb736[_0x47308c(0x1f4)],'shapeId':_0x4a04ed,'shapeType':_0x355bc3['shapeType'],'shapeData':_0x297a1e,'name':_0x355bc3['name'],'description':_0x355bc3[_0x47308c(0x17f)],'position':{'x':_0x7ab188[_0x47308c(0x1a8)],'y':_0x7ab188['top']},'width':_0x7ab188[_0x47308c(0x1ae)],'height':_0x7ab188[_0x47308c(0x214)],'rotation':_0x7ab188[_0x47308c(0x1c1)],'flipX':_0x7ab188[_0x47308c(0x237)],'flipY':_0x7ab188[_0x47308c(0x17b)],'visible':_0x355bc3[_0x47308c(0x15b)]??!0x0,'selectable':_0x355bc3[_0x47308c(0x1b7)]??!0x0})?{..._0x3eb736,'shapeId':_0x4a04ed,'shapeType':_0x355bc3[_0x47308c(0x1b6)],'shapeData':_0x297a1e,'name':_0x355bc3[_0x47308c(0x1ba)],'description':_0x355bc3[_0x47308c(0x17f)],'visible':_0x355bc3[_0x47308c(0x15b)]??!0x0,'selectable':_0x355bc3[_0x47308c(0x1b7)]??!0x0,'transform':_0x7ab188}:null;}[_0x3d2e97(0x142)](_0x44440d,_0x2b7743){const _0x35ea4b=_0x3d2e97;var _0x1e3d2f;let _0x3d8988=this[_0x35ea4b(0x213)](_0x44440d);if(!_0x3d8988)return!0x1;let _0x6ab4eb={..._0x3d8988[_0x35ea4b(0x1c0)],..._0x2b7743[_0x35ea4b(0x1c0)]};return this[_0x35ea4b(0x216)]['syncExecuteCommand'](_0x9dc81e['id'],{'unitId':_0x44440d['unitId'],'subUnitId':_0x44440d[_0x35ea4b(0x1f4)],'shapeId':_0x44440d['shapeId'],'shapeType':_0x2b7743['shapeType']??((_0x1e3d2f=_0x2b7743['shapeData'])==null?void 0x0:_0x1e3d2f[_0x35ea4b(0x1b6)])??_0x3d8988[_0x35ea4b(0x1b6)],'shapeData':_0x2b7743[_0x35ea4b(0x1ff)]??_0x3d8988['shapeData'],'position':{'x':_0x6ab4eb['left'],'y':_0x6ab4eb[_0x35ea4b(0x168)]},'width':_0x6ab4eb[_0x35ea4b(0x1ae)],'height':_0x6ab4eb[_0x35ea4b(0x214)],'rotation':_0x6ab4eb[_0x35ea4b(0x1c1)],'flipX':_0x6ab4eb[_0x35ea4b(0x237)],'flipY':_0x6ab4eb[_0x35ea4b(0x17b)],'name':_0x35ea4b(0x1ba)in _0x2b7743?_0x2b7743[_0x35ea4b(0x1ba)]:_0x3d8988[_0x35ea4b(0x1ba)],'description':_0x35ea4b(0x17f)in _0x2b7743?_0x2b7743[_0x35ea4b(0x17f)]:_0x3d8988[_0x35ea4b(0x17f)],'visible':_0x2b7743[_0x35ea4b(0x15b)]??_0x3d8988['visible'],'selectable':_0x2b7743[_0x35ea4b(0x1b7)]??_0x3d8988[_0x35ea4b(0x1b7)]});}[_0x3d2e97(0x210)](_0x111a17,_0x164206,_0x52a22c){const _0x428266=_0x3d2e97;let _0x9ed0f=this[_0x428266(0x213)](_0x111a17),_0x197fc7=_0x9ed0f==null?void 0x0:_0x9ed0f[_0x428266(0x1ff)][_0x428266(0x22b)];return!_0x9ed0f||!_0x197fc7?null:{'id':_0x28b26a['id'],'params':{'unitId':_0x111a17['unitId'],'subUnitId':_0x111a17[_0x428266(0x1f4)],'shapeId':_0x111a17['shapeId'],'shapeData':{..._0x9ed0f[_0x428266(0x1ff)],'formulaBinding':{..._0x197fc7,'lastValue':_0x1a0f69[_0x428266(0x162)][_0x428266(0x159)](_0x52a22c)}},'replace':!0x0,'formulaLastValueGuard':_0x164206}};}[_0x3d2e97(0x1c4)](_0x5c10c7){const _0x30b92b=_0x3d2e97;return this[_0x30b92b(0x216)][_0x30b92b(0x18a)](_0xe343dc['RemoveSheetDrawingCommand']['id'],{'unitId':_0x5c10c7['unitId'],'drawings':[{'unitId':_0x5c10c7['unitId'],'subUnitId':_0x5c10c7[_0x30b92b(0x1f4)],'drawingId':_0x5c10c7['shapeId'],'drawingType':_0x1a0f69['DrawingTypeEnum'][_0x30b92b(0x157)]}]});}[_0x3d2e97(0x20c)](_0x2128d){const _0xe7305f=_0x3d2e97;return this['_arrange'](_0x2128d,_0x1a0f69['ArrangeTypeEnum'][_0xe7305f(0x191)]);}[_0x3d2e97(0x20e)](_0x1221ad){const _0x296b7a=_0x3d2e97;return this[_0x296b7a(0x1d0)](_0x1221ad,_0x1a0f69[_0x296b7a(0x150)][_0x296b7a(0x1ce)]);}[_0x3d2e97(0x20b)](_0x5ac8f2){const _0x4dd07b=_0x3d2e97;return this[_0x4dd07b(0x1d0)](_0x5ac8f2,_0x1a0f69[_0x4dd07b(0x150)]['backward']);}[_0x3d2e97(0x185)](_0x1718fb){const _0x5a7157=_0x3d2e97;return this['_arrange'](_0x1718fb,_0x1a0f69[_0x5a7157(0x150)]['back']);}[_0x3d2e97(0x238)](_0x2958bb,_0x151830){const _0xd8379c=_0x3d2e97;return this[_0xd8379c(0x216)][_0xd8379c(0x18a)](_0xe343dc[_0xd8379c(0x1c8)]['id'],{'unitId':_0x2958bb[_0xd8379c(0x1e6)],'subUnitId':_0x2958bb['subUnitId'],'drawingIds':[_0x2958bb['shapeId']],'zOrder':_0x151830});}['_arrange'](_0x23f395,_0xc5e5f3){const _0x5109e7=_0x3d2e97;return this[_0x5109e7(0x216)][_0x5109e7(0x18a)](_0xe343dc[_0x5109e7(0x1c8)]['id'],{'unitId':_0x23f395[_0x5109e7(0x1e6)],'subUnitId':_0x23f395[_0x5109e7(0x1f4)],'drawingIds':[_0x23f395[_0x5109e7(0x1a3)]],'arrangeType':_0xc5e5f3});}};_0x4ed483=_0x1ab055([_0x53ca3c(0x0,_0x1a0f69[_0x3d2e97(0x22e)]),_0x53ca3c(0x1,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x3f2849)),_0x53ca3c(0x2,_0xe343dc[_0x3d2e97(0x1c5)]),_0x53ca3c(0x3,_0x1a0f69[_0x3d2e97(0x158)])],_0x4ed483);let _0x380675={},_0x583695=class extends _0x1a0f69[_0x3d2e97(0x198)]{constructor(_0x1df570,_0x315fd7,_0x2869bc,_0x1a6882,_0x3a7f2e,_0x3af7a4,_0x1d51e2){const _0x7fc1a4=_0x3d2e97;super(),this[_0x7fc1a4(0x216)]=_0x1df570,this['_sheetInterceptorService']=_0x315fd7,this[_0x7fc1a4(0x1af)]=_0x2869bc,this[_0x7fc1a4(0x15c)]=_0x1a6882,this['_drawingManagerService']=_0x3a7f2e,this[_0x7fc1a4(0x241)]=_0x3af7a4,this[_0x7fc1a4(0x17c)](),this[_0x7fc1a4(0x203)](),this[_0x7fc1a4(0x153)](this[_0x7fc1a4(0x241)][_0x7fc1a4(0x140)](_0x1d51e2));}[_0x3d2e97(0x17c)](){const _0x12ff6a=_0x3d2e97;[_0x33b913,_0x9dc81e,_0x11ef58,_0x5eb3c5,_0x11d28a,_0x118c1f,_0x246175,_0x79b3a4,_0x1001e9,_0x48b8af,_0x28b26a][_0x12ff6a(0x245)](_0x5791c1=>this[_0x12ff6a(0x153)](this[_0x12ff6a(0x216)][_0x12ff6a(0x242)](_0x5791c1)));}[_0x3d2e97(0x203)](){const _0x5d58ca=_0x3d2e97;this[_0x5d58ca(0x153)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0xc08f25=>{const _0x528508=_0x5d58ca;if(_0xc08f25['id']===_0xe343dc[_0x528508(0x13c)]['id']){let {drawings:_0x18372a}=_0xc08f25[_0x528508(0x14d)],_0x395438=_0x18372a[_0x528508(0x233)](_0x264e73=>_0x264e73['drawingType']===_0x1a0f69[_0x528508(0x21c)][_0x528508(0x157)]);if(_0x395438[_0x528508(0x1fd)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2391d2=[],_0x14dd88=[];return _0x395438[_0x528508(0x245)](_0x3e144a=>{const _0x34f5f9=_0x528508;let {unitId:_0x392a4a,subUnitId:_0x453062,drawingId:_0x101e43}=_0x3e144a,_0x371380=this[_0x34f5f9(0x15c)][_0x34f5f9(0x1c6)](_0x392a4a,_0x453062,_0x101e43);if(!_0x371380)throw TypeError(_0x34f5f9(0x1ca)+_0x371380);_0x2391d2[_0x34f5f9(0x15f)]({'id':_0x1001e9['id'],'params':{'unitId':_0x392a4a,'subUnitId':_0x453062,'shapeId':_0x101e43}}),_0x14dd88[_0x34f5f9(0x15f)]({'id':_0x79b3a4['id'],'params':{'unitId':_0x392a4a,'subUnitId':_0x453062,'shapeId':_0x101e43,'shapeType':_0x371380['getShapeType'](),'shapeData':_0x371380[_0x34f5f9(0x14c)]()}});let _0x221f1b=this[_0x34f5f9(0x15c)][_0x34f5f9(0x1de)](_0x392a4a,_0x453062,_0x101e43);if(_0x221f1b)for(let _0x1f3d45 of _0x221f1b){let _0x505495=_0x1f3d45['lineShapeId'],_0x3cd789=_0x1f3d45[_0x34f5f9(0x161)],_0x3f5790=_0x3cd789?{'from':void 0x0}:{'to':void 0x0},_0x4f0351=_0x3cd789?{'from':{'shapeId':_0x1f3d45[_0x34f5f9(0x1a3)],'cxnIndex':_0x1f3d45['cxnIndex']}}:{'to':{'shapeId':_0x1f3d45[_0x34f5f9(0x1a3)],'cxnIndex':_0x1f3d45[_0x34f5f9(0x14e)]}};_0x2391d2['push']({'id':_0x28b26a['id'],'params':{'unitId':_0x392a4a,'subUnitId':_0x453062,'shapeId':_0x505495,'shapeData':{'relation':_0x3f5790}}}),_0x14dd88['push']({'id':_0x28b26a['id'],'params':{'unitId':_0x392a4a,'subUnitId':_0x453062,'shapeId':_0x505495,'shapeData':{'relation':_0x4f0351}}});}}),{'preRedos':_0x2391d2,'redos':[],'preUndos':[],'undos':_0x14dd88};}if(_0xc08f25['id']===_0xe343dc[_0x528508(0x224)]['id']){let {drawings:_0x5979b0}=_0xc08f25[_0x528508(0x14d)],_0x34f918=_0x5979b0[_0x528508(0x233)](_0x157aaf=>_0x157aaf[_0x528508(0x189)]===_0x1a0f69['DrawingTypeEnum'][_0x528508(0x157)]);if(_0x34f918[_0x528508(0x1fd)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x320908=[],_0x4e69eb=[];for(let _0x472b16 of _0x34f918){let {unitId:_0x9a78d6,subUnitId:_0x5537d8,drawingId:_0x52e4aa,transform:_0x119f1d}=_0x472b16;if(!_0x9a78d6||!_0x5537d8||!_0x52e4aa||!_0x119f1d)continue;let _0x38b7ff=this[_0x528508(0x15c)]['getShapeModel'](_0x9a78d6,_0x5537d8,_0x52e4aa);if(!_0x38b7ff)throw TypeError(_0x528508(0x1ca)+_0x38b7ff);let _0x1d58ea=_0x38b7ff['getShapeType']();if((0x0,_0x2754e3['isConnectorShape'])(_0x1d58ea)){let _0x10f5df=this[_0x528508(0x15c)][_0x528508(0x243)](_0x9a78d6,_0x5537d8,_0x52e4aa);_0x10f5df&&(_0x320908[_0x528508(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x9a78d6,'subUnitId':_0x5537d8,'shapeId':_0x52e4aa,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4e69eb[_0x528508(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x9a78d6,'subUnitId':_0x5537d8,'shapeId':_0x52e4aa,'shapeData':{'relation':_0x10f5df}}}));}else{let _0xc08a3e=this[_0x528508(0x15c)][_0x528508(0x1de)](_0x9a78d6,_0x5537d8,_0x52e4aa);if(_0xc08a3e&&_0xc08a3e[_0x528508(0x1fd)]>0x0)for(let _0x53127b of _0xc08a3e){let _0x24627d=_0x53127b[_0x528508(0x173)],_0x16593e=_0x53127b[_0x528508(0x161)],_0x36db76=this[_0x528508(0x15c)][_0x528508(0x1c6)](_0x9a78d6,_0x5537d8,_0x24627d);if(!_0x36db76)continue;let _0x33bfbf=_0x36db76[_0x528508(0x14a)](),_0x318a6a=_0x36db76['getEndConnectInfo']();_0x33bfbf&&_0x318a6a?this[_0x528508(0x24c)](_0x9a78d6,_0x5537d8,_0x24627d,_0x36db76,_0x33bfbf,_0x318a6a,_0x320908,_0x4e69eb,_0x52e4aa,_0x119f1d):this[_0x528508(0x1f7)](_0x9a78d6,_0x5537d8,_0x24627d,_0x36db76,_0x16593e?_0x33bfbf:_0x318a6a,_0x16593e,_0x320908,_0x4e69eb,_0x52e4aa,_0x119f1d);}}}return{'preRedos':[],'redos':_0x320908,'preUndos':_0x4e69eb,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3d2e97(0x227)](_0x384b50,_0x38b78f,_0x41ecd3,_0x395042,_0xeb34b6){const _0x1e77f3=_0x3d2e97;if(!_0x38b78f||!_0x41ecd3)return null;let {shapeId:_0x28c3d7,cxnIndex:_0x595898}=_0x384b50,_0x341e5b=this[_0x1e77f3(0x15c)]['getShapeModel'](_0x38b78f,_0x41ecd3,_0x28c3d7);if(!_0x341e5b)return null;let _0x5b02ba=this[_0x1e77f3(0x145)][_0x1e77f3(0x182)]({'unitId':_0x38b78f,'subUnitId':_0x41ecd3,'drawingId':_0x28c3d7});if(!(_0x5b02ba!=null&&_0x5b02ba[_0x1e77f3(0x1c0)]))return null;let {left:_0x5d3cf1=0x0,top:_0x2218db=0x0,width:_0x26085c=0x0,height:_0x452f61=0x0,flipX:_0x19078a=!0x1,flipY:_0x98be69=!0x1,angle:_0x5e68c4}=_0x5b02ba[_0x1e77f3(0x1c0)];_0xeb34b6&&_0x395042===_0x28c3d7&&(_0x5d3cf1=_0xeb34b6['left']??_0x5d3cf1,_0x2218db=_0xeb34b6[_0x1e77f3(0x168)]??_0x2218db,_0x26085c=_0xeb34b6[_0x1e77f3(0x1ae)]??_0x26085c,_0x452f61=_0xeb34b6[_0x1e77f3(0x214)]??_0x452f61,_0x19078a=_0xeb34b6[_0x1e77f3(0x237)]??_0x19078a,_0x98be69=_0xeb34b6['flipY']??_0x98be69,_0x5e68c4=_0xeb34b6[_0x1e77f3(0x180)]??_0x5e68c4),_0x341e5b[_0x1e77f3(0x219)]({'width':_0x26085c,'height':_0x452f61});let _0x3a4059=_0x341e5b[_0x1e77f3(0x1ee)]()[_0x1e77f3(0x229)](_0x4197d8=>_0x4197d8[_0x1e77f3(0x228)]===_0x595898);if(!_0x3a4059)return null;let _0x3c357e=_0x19078a?_0x26085c-_0x3a4059['x']:_0x3a4059['x'],_0x13ab0b=_0x98be69?_0x452f61-_0x3a4059['y']:_0x3a4059['y'];if(_0x5e68c4!==0x0&&_0x5e68c4!=null){let _0x1b8754=_0x5e68c4*Math['PI']/0xb4,_0x3336ef=Math['cos'](_0x1b8754),_0x5d38bf=Math[_0x1e77f3(0x163)](_0x1b8754),_0x417afe=_0x26085c/0x2,_0x1c7c9b=_0x452f61/0x2,_0x41559b=_0x3c357e-_0x417afe,_0xb84c4e=_0x13ab0b-_0x1c7c9b;_0x3c357e=_0x417afe+_0x41559b*_0x3336ef-_0xb84c4e*_0x5d38bf,_0x13ab0b=_0x1c7c9b+_0x41559b*_0x5d38bf+_0xb84c4e*_0x3336ef;}_0x3c357e+=_0x5d3cf1,_0x13ab0b+=_0x2218db;let _0x3cf6e3=_0x3a4059[_0x1e77f3(0x1ea)]/0xea60;_0x19078a&&(_0x3cf6e3=0xb4-_0x3cf6e3),_0x98be69&&(_0x3cf6e3=-_0x3cf6e3),_0x3cf6e3+=_0x5e68c4||0x0,_0x3cf6e3=(_0x3cf6e3%0x168+0x168)%0x168;let _0xeac2b6=(0x0,_0x2754e3['getBasicShapeRotateBound'])({'left':_0x5d3cf1,'top':_0x2218db,'width':_0x26085c,'height':_0x452f61},_0x5e68c4||0x0);return{'point':{'x':_0x3c357e,'y':_0x13ab0b},'angle':_0x3cf6e3,'bounds':_0xeac2b6};}['_addLineRerouteUpdates'](_0x523b1e,_0x36abce,_0x1ef84e,_0x3f5366,_0x574ba6,_0x1921e8,_0xfc5baf,_0x137f8a,_0x32cf73,_0x20955d){const _0x139295=_0x3d2e97;let _0x1b9bc4=this['_sheetSkeletonService'][_0x139295(0x209)](_0x523b1e,_0x36abce);if(!_0x1b9bc4)return;let _0x1ee7ed=_0x3f5366['getShapeRelation'](),_0x4b2460=_0x3f5366[_0x139295(0x1e5)](),_0x4d3402={},_0x5e49f6={};_0x4b2460['forEach'](_0x2c56c1=>{const _0x2122e2=_0x139295;let _0xb3da2c=_0x3f5366[_0x2122e2(0x232)](_0x2c56c1);_0x5e49f6[_0x2c56c1]=_0xb3da2c??0x0;});let _0x15201b=this[_0x139295(0x227)](_0x574ba6,_0x523b1e,_0x36abce,_0x32cf73,_0x20955d),_0x5aba62=this['_getConnectPointInfo'](_0x1921e8,_0x523b1e,_0x36abce,_0x32cf73,_0x20955d);if(_0x15201b&&_0x5aba62){let _0x269072=_0x3f5366[_0x139295(0x18e)](),_0x57bb52=(0x0,_0x2754e3['routeConnectorLineShape'])(_0x15201b,_0x5aba62,_0x269072),_0x5cecee=_0x269072;if(_0x57bb52){let _0x5b62b3=(0x0,_0x2754e3[_0x139295(0x18d)])(_0x57bb52,_0x3f5366['getShapeType']()),_0x11a85c=this[_0x139295(0x145)][_0x139295(0x193)](_0x523b1e,_0x36abce);if(_0x11a85c&&_0x11a85c[_0x1ef84e]){let _0x12d1de=_0x11a85c[_0x1ef84e];_0x5cecee=_0x5b62b3[_0x139295(0x1e0)];for(let [_0x189b36,_0x1dd736]of Object['entries'](_0x5b62b3[_0x139295(0x226)]))_0x4d3402[_0x189b36]=_0x1dd736;let _0x245692={..._0x12d1de[_0x139295(0x1c0)],'width':_0x5b62b3[_0x139295(0x1b1)][_0x139295(0x1ae)],'height':_0x5b62b3[_0x139295(0x1b1)][_0x139295(0x214)],'left':_0x5b62b3[_0x139295(0x1b1)][_0x139295(0x1a8)],'top':_0x5b62b3[_0x139295(0x1b1)][_0x139295(0x168)],'flipX':_0x5b62b3[_0x139295(0x1b1)][_0x139295(0x237)],'flipY':_0x5b62b3[_0x139295(0x1b1)][_0x139295(0x17b)],'angle':_0x5b62b3['rotation']},_0x2463a7=(0x0,_0xe343dc[_0x139295(0x187)])(_0x245692,_0x1b9bc4),_0x2aa9c5=(0x0,_0xe343dc[_0x139295(0x13f)])(_0x245692,_0x1b9bc4),_0x450b1e={'unitId':_0x523b1e,'subUnitId':_0x36abce,'drawingType':_0x1a0f69['DrawingTypeEnum'][_0x139295(0x157)],'drawingId':_0x1ef84e,'transform':_0x245692,'sheetTransform':_0x2463a7,'axisAlignSheetTransform':_0x2aa9c5},{unitId:_0x5210b2,subUnitId:_0x324ef8,undo:_0x246979,redo:_0x1e2598,objects:_0x3e7c90}=this[_0x139295(0x145)][_0x139295(0x1bd)]([_0x450b1e]);_0xfc5baf[_0x139295(0x15f)]({'id':_0xe343dc[_0x139295(0x1ac)]['id'],'params':{'unitId':_0x5210b2,'subUnitId':_0x324ef8,'op':_0x1e2598,'objects':_0x3e7c90,'type':_0xe343dc[_0x139295(0x1cc)]['UPDATE']}}),_0x137f8a[_0x139295(0x15f)]({'id':_0xe343dc[_0x139295(0x1ac)]['id'],'params':{'unitId':_0x5210b2,'subUnitId':_0x324ef8,'op':_0x246979,'objects':_0x3e7c90,'type':_0xe343dc['DrawingApplyType']['UPDATE']}});}_0x3f5366[_0x139295(0x17e)]();}_0xfc5baf[_0x139295(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x523b1e,'subUnitId':_0x36abce,'shapeId':_0x1ef84e,'shapeType':_0x5cecee,'shapeData':{'adjustValues':_0x4d3402,'relation':_0x1ee7ed}}}),_0x137f8a[_0x139295(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x523b1e,'subUnitId':_0x36abce,'shapeId':_0x1ef84e,'shapeType':_0x269072,'shapeData':{'adjustValues':_0x5e49f6,'relation':_0x1ee7ed}}});}}[_0x3d2e97(0x1f7)](_0x31b2d5,_0x3c9fbe,_0x55515a,_0x8b6c93,_0x2cec98,_0x486086,_0xd68719,_0x445fb1,_0x15e696,_0x2bcbd5){const _0x3d7256=_0x3d2e97;var _0x1ebb49;if(!_0x2cec98)return;let _0x28e103=this[_0x3d7256(0x1af)][_0x3d7256(0x209)](_0x31b2d5,_0x3c9fbe);if(!_0x28e103)return;let _0x9e0df2=(_0x1ebb49=this[_0x3d7256(0x145)][_0x3d7256(0x182)]({'unitId':_0x31b2d5,'subUnitId':_0x3c9fbe,'drawingId':_0x15e696}))==null?void 0x0:_0x1ebb49[_0x3d7256(0x1c0)];if(!_0x9e0df2)return;let _0x1cf717=_0x9e0df2[_0x3d7256(0x1a8)]!==_0x2bcbd5['left']||_0x9e0df2[_0x3d7256(0x168)]!==_0x2bcbd5[_0x3d7256(0x168)],_0x55cf15=_0x9e0df2[_0x3d7256(0x1ae)]!==_0x2bcbd5['width']||_0x9e0df2[_0x3d7256(0x214)]!==_0x2bcbd5[_0x3d7256(0x214)],_0x302d6d=_0x9e0df2['flipX']!==_0x2bcbd5['flipX']||_0x9e0df2[_0x3d7256(0x17b)]!==_0x2bcbd5[_0x3d7256(0x17b)],_0x47cfbb=_0x9e0df2[_0x3d7256(0x180)]!==_0x2bcbd5[_0x3d7256(0x180)];if(_0x1cf717&&!_0x55cf15&&!_0x302d6d&&!_0x47cfbb){let _0x4e4eab=(_0x2bcbd5[_0x3d7256(0x1a8)]??0x0)-(_0x9e0df2[_0x3d7256(0x1a8)]??0x0),_0x54c97b=(_0x2bcbd5[_0x3d7256(0x168)]??0x0)-(_0x9e0df2['top']??0x0),_0x4a1741=this[_0x3d7256(0x145)][_0x3d7256(0x193)](_0x31b2d5,_0x3c9fbe);if(_0x4a1741&&_0x4a1741[_0x55515a]){var _0x4c68cc,_0x4f2d55;let _0x43db0c=_0x4a1741[_0x55515a],_0x2049ae={..._0x43db0c[_0x3d7256(0x1c0)],'left':(((_0x4c68cc=_0x43db0c[_0x3d7256(0x1c0)])==null?void 0x0:_0x4c68cc[_0x3d7256(0x1a8)])??0x0)+_0x4e4eab,'top':(((_0x4f2d55=_0x43db0c[_0x3d7256(0x1c0)])==null?void 0x0:_0x4f2d55[_0x3d7256(0x168)])??0x0)+_0x54c97b},_0x10ae5c=(0x0,_0xe343dc[_0x3d7256(0x187)])(_0x2049ae,_0x28e103),_0xba2bad=(0x0,_0xe343dc['transformToAxisAlignPosition'])(_0x2049ae,_0x28e103),_0x2dbe41={'unitId':_0x31b2d5,'subUnitId':_0x3c9fbe,'drawingType':_0x1a0f69['DrawingTypeEnum']['DRAWING_SHAPE'],'drawingId':_0x55515a,'transform':_0x2049ae,'sheetTransform':_0x10ae5c,'axisAlignSheetTransform':_0xba2bad},{unitId:_0x4ecaf0,subUnitId:_0x260b0f,undo:_0x2ede4c,redo:_0x744b8a,objects:_0x9c00b1}=this[_0x3d7256(0x145)][_0x3d7256(0x1bd)]([_0x2dbe41]);_0xd68719['push']({'id':_0xe343dc[_0x3d7256(0x1ac)]['id'],'params':{'unitId':_0x4ecaf0,'subUnitId':_0x260b0f,'op':_0x744b8a,'objects':_0x9c00b1,'type':_0xe343dc[_0x3d7256(0x1cc)][_0x3d7256(0x160)]}}),_0x445fb1['push']({'id':_0xe343dc['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4ecaf0,'subUnitId':_0x260b0f,'op':_0x2ede4c,'objects':_0x9c00b1,'type':_0xe343dc['DrawingApplyType'][_0x3d7256(0x160)]}});}}else{let _0x3d642b=_0x8b6c93[_0x3d7256(0x14a)](),_0xfc51c6=_0x8b6c93['getEndConnectInfo']();this['_addLineRerouteUpdates'](_0x31b2d5,_0x3c9fbe,_0x55515a,_0x8b6c93,_0x3d642b,_0xfc51c6,_0xd68719,_0x445fb1,_0x15e696,_0x2bcbd5);}}};_0x583695=_0x1ab055([_0x53ca3c(0x0,_0x1a0f69['ICommandService']),_0x53ca3c(0x1,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x7d67a2[_0x3d2e97(0x24d)])),_0x53ca3c(0x2,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x7d67a2[_0x3d2e97(0x1d5)])),_0x53ca3c(0x3,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x3f2849)),_0x53ca3c(0x4,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x321ac5[_0x3d2e97(0x165)])),_0x53ca3c(0x5,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x2754e3[_0x3d2e97(0x13d)])),_0x53ca3c(0x6,(0x0,_0x1a0f69['Inject'])(_0x4ed483))],_0x583695);let _0x32894e=class extends _0x1a0f69[_0x3d2e97(0x198)]{constructor(_0x5533bf,_0x521f6d,_0x11fdc5){const _0xebf1eb=_0x3d2e97;super(),this[_0xebf1eb(0x172)]=_0x5533bf,this[_0xebf1eb(0x239)]=_0x521f6d,this[_0xebf1eb(0x153)](_0x11fdc5[_0xebf1eb(0x140)](this));}[_0x3d2e97(0x1c0)](_0xb89796){const _0xee2495=_0x3d2e97;let _0x89871b={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0xee2495(0x169)](_0xb89796,_0x89871b);for(let [_0x5c8a0f,_0x79a24]of _0xb89796[_0xee2495(0x246)])this['_planConnector'](_0xb89796,_0x5c8a0f,_0x79a24,_0x89871b);return _0x89871b;}[_0x3d2e97(0x169)](_0x4b46cc,_0x238921){const _0x1032cf=_0x3d2e97;if(_0x4b46cc[_0x1032cf(0x22f)]==='command')for(let _0x2cef75 of _0x4b46cc[_0x1032cf(0x1a7)]){let _0x1657c1=_0x4b46cc[_0x1032cf(0x246)][_0x1032cf(0x16c)](_0x2cef75),_0x2e3042=this['_shapeService'][_0x1032cf(0x1c6)](_0x4b46cc['unitId'],_0x4b46cc[_0x1032cf(0x1f4)],_0x2cef75);(_0x1657c1==null?void 0x0:_0x1657c1['drawingType'])===_0x1a0f69[_0x1032cf(0x21c)]['DRAWING_SHAPE']&&_0x2e3042&&(_0x238921[_0x1032cf(0x1ed)][_0x1032cf(0x15f)]({'id':_0x1001e9['id'],'params':{'unitId':_0x4b46cc[_0x1032cf(0x1e6)],'subUnitId':_0x4b46cc[_0x1032cf(0x1f4)],'shapeId':_0x2cef75}}),_0x238921[_0x1032cf(0x23f)]['push']({'id':_0x79b3a4['id'],'params':{'unitId':_0x4b46cc[_0x1032cf(0x1e6)],'subUnitId':_0x4b46cc['subUnitId'],'shapeId':_0x2cef75,'shapeName':_0x2e3042[_0x1032cf(0x156)](),'shapeType':_0x2e3042['getShapeType'](),'shapeData':_0x1a0f69[_0x1032cf(0x162)][_0x1032cf(0x159)](_0x2e3042['getShapeData']())}}));}}[_0x3d2e97(0x22d)](_0x50323f,_0x5700fe,_0x2f5ded,_0x25ee94){const _0x1d807f=_0x3d2e97;if(_0x2f5ded[_0x1d807f(0x189)]!==_0x1a0f69[_0x1d807f(0x21c)]['DRAWING_SHAPE']||_0x50323f['deletes']['has'](_0x5700fe))return;let _0x3e23b5=this[_0x1d807f(0x172)][_0x1d807f(0x1c6)](_0x50323f[_0x1d807f(0x1e6)],_0x50323f['subUnitId'],_0x5700fe);if(!_0x3e23b5||!(0x0,_0x2754e3['isConnectorShape'])(_0x3e23b5[_0x1d807f(0x18e)]()))return;let _0x291050=_0x3e23b5[_0x1d807f(0x1c2)]();if(!(_0x50323f[_0x1d807f(0x24f)]['has'](_0x5700fe)||_0x291050!=null&&_0x291050[_0x1d807f(0x244)]&&(_0x50323f[_0x1d807f(0x24f)][_0x1d807f(0x222)](_0x291050[_0x1d807f(0x244)][_0x1d807f(0x1a3)])||_0x50323f[_0x1d807f(0x1a7)][_0x1d807f(0x222)](_0x291050['from'][_0x1d807f(0x1a3)]))||_0x291050!=null&&_0x291050['to']&&(_0x50323f[_0x1d807f(0x24f)]['has'](_0x291050['to'][_0x1d807f(0x1a3)])||_0x50323f['deletes']['has'](_0x291050['to'][_0x1d807f(0x1a3)]))))return;let _0x101e66=_0x50323f[_0x1d807f(0x24f)][_0x1d807f(0x16c)](_0x5700fe)??_0x2f5ded,_0x34c42e=this['_toSnapshot'](_0x50323f,_0x101e66);if(!_0x34c42e)return;let _0x242677=(0x0,_0x2754e3[_0x1d807f(0x225)])(_0x34c42e);if(_0x242677[_0x1d807f(0x1fd)]<0x2)return;let _0x32f136=_0x1a0f69[_0x1d807f(0x162)][_0x1d807f(0x159)](_0x291050??{}),_0x36134e=_0x32f136[_0x1d807f(0x244)]&&this[_0x1d807f(0x231)](_0x50323f,_0x32f136[_0x1d807f(0x244)][_0x1d807f(0x1a3)],_0x32f136['from'][_0x1d807f(0x14e)]),_0x5de851=_0x32f136['to']&&this['_resolveBinding'](_0x50323f,_0x32f136['to'][_0x1d807f(0x1a3)],_0x32f136['to']['cxnIndex']);_0x32f136[_0x1d807f(0x244)]&&!_0x36134e&&delete _0x32f136[_0x1d807f(0x244)],_0x32f136['to']&&!_0x5de851&&delete _0x32f136['to'];let _0x578e27=_0x36134e||(0x0,_0x2754e3[_0x1d807f(0x1be)])((_0x5de851==null?void 0x0:_0x5de851['point'])??_0x242677[_0x242677['length']-0x1],_0x242677[0x0]),_0x443ded=_0x5de851||(0x0,_0x2754e3[_0x1d807f(0x1be)])((_0x36134e==null?void 0x0:_0x36134e[_0x1d807f(0x15a)])??_0x242677[0x0],_0x242677[_0x242677[_0x1d807f(0x1fd)]-0x1]),_0x304e99=(0x0,_0x2754e3[_0x1d807f(0x205)])(_0x34c42e,_0x578e27,_0x443ded,_0x32f136);if(_0x304e99!=null&&_0x304e99[_0x1d807f(0x1c0)]&&_0x304e99[_0x1d807f(0x1b6)]&&_0x304e99[_0x1d807f(0x1ff)]){if(this[_0x1d807f(0x15e)](_0x50323f,_0x101e66,_0x304e99),_0x50323f[_0x1d807f(0x22f)]===_0x1d807f(0x1a2)){_0x3e23b5['setShapeType'](_0x304e99[_0x1d807f(0x1b6)]),_0x3e23b5[_0x1d807f(0x1e2)](_0x1a0f69[_0x1d807f(0x162)][_0x1d807f(0x159)](_0x304e99[_0x1d807f(0x1ff)]),!0x1);return;}_0x25ee94[_0x1d807f(0x170)][_0x1d807f(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x50323f[_0x1d807f(0x1e6)],'subUnitId':_0x50323f['subUnitId'],'shapeId':_0x5700fe,'shapeType':_0x304e99[_0x1d807f(0x1b6)],'shapeData':_0x1a0f69['Tools'][_0x1d807f(0x159)](_0x304e99[_0x1d807f(0x1ff)]),'replace':!0x0}}),_0x25ee94['undos'][_0x1d807f(0x15f)]({'id':_0x28b26a['id'],'params':{'unitId':_0x50323f[_0x1d807f(0x1e6)],'subUnitId':_0x50323f['subUnitId'],'shapeId':_0x5700fe,'shapeType':_0x3e23b5[_0x1d807f(0x18e)](),'shapeData':_0x1a0f69[_0x1d807f(0x162)][_0x1d807f(0x159)](_0x3e23b5[_0x1d807f(0x14c)]()),'replace':!0x0}});}}['_resolveBinding'](_0xec2606,_0x38c281,_0x855968){const _0x358fa2=_0x3d2e97;if(_0xec2606[_0x358fa2(0x1a7)]['has'](_0x38c281))return null;let _0x106b58=_0xec2606[_0x358fa2(0x24f)][_0x358fa2(0x16c)](_0x38c281)??_0xec2606[_0x358fa2(0x246)][_0x358fa2(0x16c)](_0x38c281);if(!_0x106b58)return null;let _0x354467=this[_0x358fa2(0x1f8)](_0xec2606,_0x106b58);return _0x354467?(0x0,_0x2754e3[_0x358fa2(0x16f)])(_0x354467,_0x855968):null;}[_0x3d2e97(0x1f8)](_0xea9ea4,_0x237fbf){const _0x284a95=_0x3d2e97;let _0x15c589={'hostType':_0x1a0f69[_0x284a95(0x1da)][_0x284a95(0x1e3)],'unitId':_0xea9ea4[_0x284a95(0x1e6)],'subUnitId':_0xea9ea4[_0x284a95(0x1f4)],'shapeId':_0x237fbf[_0x284a95(0x1f0)]},_0x5c4721=this[_0x284a95(0x239)]['getShape'](_0x15c589);return!_0x5c4721||!_0x237fbf[_0x284a95(0x1c0)]?null:{..._0x5c4721,'transform':{'left':_0x237fbf[_0x284a95(0x1c0)][_0x284a95(0x1a8)]??0x0,'top':_0x237fbf[_0x284a95(0x1c0)][_0x284a95(0x168)]??0x0,'width':_0x237fbf[_0x284a95(0x1c0)][_0x284a95(0x1ae)]??0x0,'height':_0x237fbf[_0x284a95(0x1c0)][_0x284a95(0x214)]??0x0,'rotation':_0x237fbf[_0x284a95(0x1c0)]['angle']??0x0,'flipX':_0x237fbf[_0x284a95(0x1c0)]['flipX']??!0x1,'flipY':_0x237fbf[_0x284a95(0x1c0)]['flipY']??!0x1}};}[_0x3d2e97(0x15e)](_0x915547,_0x575276,_0x29dccd){const _0x4c0b45=_0x3d2e97;let _0x469353=_0x575276,_0x534a5b={..._0x575276['transform'],'left':_0x29dccd[_0x4c0b45(0x1c0)][_0x4c0b45(0x1a8)],'top':_0x29dccd[_0x4c0b45(0x1c0)][_0x4c0b45(0x168)],'width':_0x29dccd['transform'][_0x4c0b45(0x1ae)],'height':_0x29dccd[_0x4c0b45(0x1c0)][_0x4c0b45(0x214)],'angle':_0x29dccd[_0x4c0b45(0x1c0)]['rotation'],'flipX':_0x29dccd[_0x4c0b45(0x1c0)][_0x4c0b45(0x237)],'flipY':_0x29dccd['transform'][_0x4c0b45(0x17b)]},_0x598d36={..._0x469353,'transform':_0x534a5b,'sheetTransform':(0x0,_0xe343dc[_0x4c0b45(0x187)])(_0x534a5b,_0x915547[_0x4c0b45(0x23c)]),'axisAlignSheetTransform':(0x0,_0xe343dc[_0x4c0b45(0x13f)])(_0x534a5b,_0x915547[_0x4c0b45(0x23c)]),'data':{..._0x469353['data'],'shapeType':_0x29dccd[_0x4c0b45(0x1b6)],'shapeData':_0x1a0f69[_0x4c0b45(0x162)]['deepClone'](_0x29dccd[_0x4c0b45(0x1ff)])}};_0x915547[_0x4c0b45(0x24f)][_0x4c0b45(0x14f)](_0x575276[_0x4c0b45(0x1f0)],_0x598d36);}};_0x32894e=_0x1ab055([_0x53ca3c(0x0,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x3f2849)),_0x53ca3c(0x1,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0x4ed483)),_0x53ca3c(0x2,(0x0,_0x1a0f69[_0x3d2e97(0x1aa)])(_0xe343dc[_0x3d2e97(0x1b8)]))],_0x32894e);let _0x36ab7d=class extends _0x1a0f69[_0x3d2e97(0x17d)]{constructor(_0x111ee9=_0x380675,_0xa1321f,_0x22ead2){const _0x216878=_0x3d2e97;super(),this[_0x216878(0x1b4)]=_0x111ee9,this[_0x216878(0x21f)]=_0xa1321f,this[_0x216878(0x152)]=_0x22ead2;let {..._0x2e6bdd}=(0x0,_0x1a0f69['merge'])({},_0x380675,this['_config']);this['_configService'][_0x216878(0x223)](_0x216878(0x179),_0x2e6bdd);}[_0x3d2e97(0x146)](){const _0x49a333=_0x3d2e97;let _0x4aaeab=this[_0x49a333(0x21f)];[[_0x2dde96],[_0x3f2849],[_0x4ed483],[_0x32894e],[_0x583695]][_0x49a333(0x245)](_0x4cfbeb=>_0x4aaeab['add'](_0x4cfbeb)),(0x0,_0x1a0f69['touchDependencies'])(_0x4aaeab,[[_0x3f2849],[_0x32894e],[_0x583695]]);}};_0x6985a3(_0x36ab7d,_0x3d2e97(0x21b),_0x1a0f69[_0x3d2e97(0x1da)][_0x3d2e97(0x1e3)]),_0x6985a3(_0x36ab7d,_0x3d2e97(0x20f),'SHEET_SHAPE_PLUGIN'),_0x6985a3(_0x36ab7d,'packageName',_0x514575),_0x6985a3(_0x36ab7d,_0x3d2e97(0x1fb),_0x4e7b6c),_0x36ab7d=_0x1ab055([(0x0,_0x1a0f69['DependentOn'])(_0x17e6fd['UniverLicensePlugin'],_0x321ac5[_0x3d2e97(0x16e)],_0x2754e3['UniverShapePlugin'],_0x7d67a2[_0x3d2e97(0x1e8)],_0xe343dc[_0x3d2e97(0x1e1)]),_0x53ca3c(0x1,(0x0,_0x1a0f69['Inject'])(_0x1a0f69['Injector'])),_0x53ca3c(0x2,_0x1a0f69[_0x3d2e97(0x217)])],_0x36ab7d),_0x4d09c1['DEFAULT_SHAPE_HEIGHT']=0xc8,_0x4d09c1[_0x3d2e97(0x204)]=0xc8,_0x4d09c1[_0x3d2e97(0x24a)]=_0x33b913,_0x4d09c1['InsertSheetsShapeMutation']=_0x79b3a4,_0x4d09c1['RemoveSheetsShapeMutation']=_0x1001e9,_0x4d09c1[_0x3d2e97(0x1a6)]=_0x9dc81e,_0x4d09c1[_0x3d2e97(0x1c9)]=_0x5eb3c5,_0x4d09c1[_0x3d2e97(0x1ad)]=_0x11d28a,Object[_0x3d2e97(0x1b9)](_0x4d09c1,_0x3d2e97(0x1d8),{'enumerable':!0x0,'get':function(){return _0x3f2849;}}),_0x4d09c1['ToggleSheetsShapeFlipCommand']=_0x11ef58,Object[_0x3d2e97(0x1b9)](_0x4d09c1,_0x3d2e97(0x18b),{'enumerable':!0x0,'get':function(){return _0x36ab7d;}}),_0x4d09c1[_0x3d2e97(0x15d)]=_0x118c1f,_0x4d09c1[_0x3d2e97(0x1e9)]=_0x246175,_0x4d09c1['UpdateSheetsShapeDataMutation']=_0x28b26a,_0x4d09c1[_0x3d2e97(0x1ab)]=_0x48b8af;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-shape",
3
- "version": "1.0.0-rc.0",
3
+ "version": "1.0.0",
4
4
  "private": false,
5
5
  "description": "Shape and drawing model integration for Univer Sheets.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -58,18 +58,18 @@
58
58
  "lib"
59
59
  ],
60
60
  "dependencies": {
61
- "@univerjs-pro/engine-shape": "1.0.0-rc.0",
62
- "@univerjs-pro/license": "1.0.0-rc.0",
63
- "@univerjs/core": "1.0.0-rc.0",
64
- "@univerjs/drawing": "1.0.0-rc.0",
65
- "@univerjs/sheets": "1.0.0-rc.0",
66
- "@univerjs/sheets-drawing": "1.0.0-rc.0"
61
+ "@univerjs-pro/engine-shape": "1.0.0",
62
+ "@univerjs-pro/license": "1.0.0",
63
+ "@univerjs/core": "1.0.0",
64
+ "@univerjs/drawing": "1.0.0",
65
+ "@univerjs/sheets": "1.0.0",
66
+ "@univerjs/sheets-drawing": "1.0.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@univerjs-infra/shared": "1.0.0-rc.0",
70
- "@univerjs/engine-render": "1.0.0-rc.0",
69
+ "@univerjs-infra/shared": "1.0.0",
70
+ "@univerjs/engine-render": "1.0.0",
71
71
  "typescript": "^6.0.3",
72
- "vitest": "^4.1.11"
72
+ "vitest": "^5.0.0"
73
73
  },
74
74
  "scripts": {
75
75
  "test": "vitest run",