@univerjs-pro/sheets-shape 1.0.0-beta.0 → 1.0.0-beta.1

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/index.js CHANGED
@@ -1 +1 @@
1
- const _0x269913=_0x1902;function _0x1902(_0x5aa59d,_0x66a351){_0x5aa59d=_0x5aa59d-0x1a1;const _0x49b33d=_0x49b3();let _0x1902a8=_0x49b33d[_0x5aa59d];return _0x1902a8;}(function(_0x3885c9,_0x1e8ee3){const _0x2e1f23=_0x1902,_0x44ea38=_0x3885c9();while(!![]){try{const _0x2d1c55=-parseInt(_0x2e1f23(0x1af))/0x1*(-parseInt(_0x2e1f23(0x24a))/0x2)+-parseInt(_0x2e1f23(0x25d))/0x3*(parseInt(_0x2e1f23(0x264))/0x4)+-parseInt(_0x2e1f23(0x1d4))/0x5*(parseInt(_0x2e1f23(0x1d6))/0x6)+parseInt(_0x2e1f23(0x235))/0x7*(parseInt(_0x2e1f23(0x276))/0x8)+parseInt(_0x2e1f23(0x24b))/0x9*(-parseInt(_0x2e1f23(0x1d3))/0xa)+parseInt(_0x2e1f23(0x1ac))/0xb*(parseInt(_0x2e1f23(0x1e4))/0xc)+parseInt(_0x2e1f23(0x266))/0xd*(parseInt(_0x2e1f23(0x261))/0xe);if(_0x2d1c55===_0x1e8ee3)break;else _0x44ea38['push'](_0x44ea38['shift']());}catch(_0x2e0cf7){_0x44ea38['push'](_0x44ea38['shift']());}}}(_0x49b3,0x3c891));import{IShapeHostAdapterRegistry as _0x58111b,ShapeModel as _0x417b84,UniverShapePlugin as _0x52cb78,buildConnectorEndpointUpdate as _0x16dda2,canApplyShapeFormulaLastValue as _0x4ee096,computeConnectorRouteLayout as _0x3c3b6b,createFreeConnectorPointInfo as _0x20f186,createUniqueShapeName as _0x159718,getBasicShapeRotateBound as _0x3c8648,isConnectorShape as _0x62453b,resolveConnectorRoutePoints as _0x68e3a9,resolveShapeConnectionPoint as _0x4a2c60,routeConnectorLineShape as _0x37bc97}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x522172,CommandType as _0x38403f,DependentOn as _0x4c72a1,Disposable as _0x3cd302,DrawingTypeEnum as _0xec03e0,ICommandService as _0x23198b,IConfigService as _0x5e9a3c,IResourceManagerService as _0x217d51,IUndoRedoService as _0x2ec5d9,IUniverInstanceService as _0xa7a488,Inject as _0xf697fc,Injector as _0x57f6a0,Plugin as _0x300a01,Tools as _0x25b5f7,UniverInstanceType as _0x25d19a,generateRandomId as _0x57defd,merge as _0x320a72,sequenceExecute as _0x101bc9,touchDependencies as _0x42ba55}from'@univerjs/core';import{SheetInterceptorService as _0x50f767,SheetSkeletonService as _0x5b25ce,UniverSheetsPlugin as _0x47797d,getSheetCommandTarget as _0x21a15c}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x15e2a8,DrawingApplyType as _0x426f20,ISheetDrawingService as _0x5b63ed,InsertSheetDrawingCommand as _0x3d8b20,RemoveSheetDrawingCommand as _0x2d8f12,SetDrawingApplyMutation as _0x326082,SetDrawingArrangeCommand as _0x63833c,SetSheetDrawingCommand as _0x178098,SheetDrawingAnchorType as _0x3a7b27,SheetDrawingTransformPlanService as _0x82530f,UniverSheetsDrawingPlugin as _0x41c3f5,transformToAxisAlignPosition as _0x3930ef,transformToDrawingPosition as _0x5d3f3a}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x5a2bf2}from'@univerjs-pro/license';import{IDrawingManagerService as _0x519085,UniverDrawingPlugin as _0x4f22a9}from'@univerjs/drawing';const re=0xc8,ie=0xc8;function ae(_0x3dc8da){'@babel/helpers - typeof';const _0x52a447=_0x1902;return ae=typeof Symbol==_0x52a447(0x23d)&&typeof Symbol[_0x52a447(0x247)]==_0x52a447(0x1ca)?function(_0x222d5e){return typeof _0x222d5e;}:function(_0x5ee107){const _0x584cba=_0x52a447;return _0x5ee107&&typeof Symbol==_0x584cba(0x23d)&&_0x5ee107[_0x584cba(0x234)]===Symbol&&_0x5ee107!==Symbol[_0x584cba(0x217)]?'symbol':typeof _0x5ee107;},ae(_0x3dc8da);}function oe(_0x3dd43f,_0x317352){const _0x29b367=_0x1902;if(ae(_0x3dd43f)!='object'||!_0x3dd43f)return _0x3dd43f;var _0x1ed102=_0x3dd43f[Symbol[_0x29b367(0x229)]];if(_0x1ed102!==void 0x0){var _0x41d47c=_0x1ed102[_0x29b367(0x1ee)](_0x3dd43f,_0x317352||_0x29b367(0x23a));if(ae(_0x41d47c)!=_0x29b367(0x1c2))return _0x41d47c;throw TypeError(_0x29b367(0x1f9));}return(_0x317352===_0x29b367(0x258)?String:Number)(_0x3dd43f);}function se(_0x597512){const _0x4cfc1a=_0x1902;var _0x32028f=oe(_0x597512,'string');return ae(_0x32028f)==_0x4cfc1a(0x1ca)?_0x32028f:_0x32028f+'';}function Y(_0x180b78,_0x3401d9,_0x6970e8){const _0x20b458=_0x1902;return(_0x3401d9=se(_0x3401d9))in _0x180b78?Object[_0x20b458(0x1cc)](_0x180b78,_0x3401d9,{'value':_0x6970e8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x180b78[_0x3401d9]=_0x6970e8,_0x180b78;}var ce=class extends _0x3cd302{constructor(){const _0x1bed44=_0x1902;super(),Y(this,_0x1bed44(0x1a2),new Map()),Y(this,_0x1bed44(0x269),new Set()),Y(this,_0x1bed44(0x1a6),new Set());}[_0x269913(0x1bb)](_0xef44d3,_0x118d0b,_0x289fa5,_0x2e0c51){const _0x7fed04=_0x269913;let _0x5c4ad2=new _0x417b84(_0xef44d3,_0x118d0b,_0x289fa5,_0x2e0c51);return this[_0x7fed04(0x1a2)]['set'](_0x118d0b,_0x5c4ad2),_0x62453b(_0xef44d3)&&this[_0x7fed04(0x269)][_0x7fed04(0x201)](_0x118d0b),_0x5c4ad2;}[_0x269913(0x1e8)](_0x5eb4e6){const _0x15fbcc=_0x269913;let _0x5a2bfa=[];for(let _0x3d0488 of this[_0x15fbcc(0x269)]){let _0x246cd5=this[_0x15fbcc(0x1a2)][_0x15fbcc(0x1b5)](_0x3d0488);if(_0x246cd5){let _0xcb07f2=_0x246cd5[_0x15fbcc(0x249)]();if(_0xcb07f2){var _0x46ab15,_0x3e35b3;((_0x46ab15=_0xcb07f2['from'])==null?void 0x0:_0x46ab15[_0x15fbcc(0x207)])===_0x5eb4e6&&_0x5a2bfa['push']({..._0xcb07f2[_0x15fbcc(0x1f3)],'lineShapeId':_0x3d0488,'isFrom':!0x0}),((_0x3e35b3=_0xcb07f2['to'])==null?void 0x0:_0x3e35b3[_0x15fbcc(0x207)])===_0x5eb4e6&&_0x5a2bfa[_0x15fbcc(0x1eb)]({..._0xcb07f2['to'],'lineShapeId':_0x3d0488,'isFrom':!0x1});}}}return _0x5a2bfa;}[_0x269913(0x1da)](_0x1b6488){const _0x550052=_0x269913;let _0xe806fe=this[_0x550052(0x1a2)][_0x550052(0x1b5)](_0x1b6488);if(_0xe806fe)return _0xe806fe[_0x550052(0x249)]();}[_0x269913(0x273)](_0x554c12){const _0x43be2f=_0x269913;let _0x280b52=this[_0x43be2f(0x1a2)]['get'](_0x554c12);if(_0x280b52)return _0x280b52[_0x43be2f(0x273)]();}[_0x269913(0x231)](_0x13005d){const _0x4631c3=_0x269913;return this[_0x4631c3(0x1a2)][_0x4631c3(0x253)](_0x13005d);}[_0x269913(0x210)](){const _0x4d9812=_0x269913;return Array[_0x4d9812(0x1f3)](this['_shapes'][_0x4d9812(0x1e2)]())[_0x4d9812(0x243)](_0x413249=>_0x413249[_0x4d9812(0x1bc)]()||_0x413249['getId']());}[_0x269913(0x211)](_0x2a0be0){const _0xe1f7b1=_0x269913;let _0x14efe7=this[_0xe1f7b1(0x1a2)]['get'](_0x2a0be0);_0x14efe7&&(_0x62453b(_0x14efe7[_0xe1f7b1(0x273)]())&&this[_0xe1f7b1(0x269)][_0xe1f7b1(0x1a1)](_0x2a0be0),this[_0xe1f7b1(0x1a2)][_0xe1f7b1(0x1a1)](_0x2a0be0));}['toJSON'](){const _0x3cdafa=_0x269913;let _0x2722f7=[];return this[_0x3cdafa(0x1a2)][_0x3cdafa(0x1fe)](_0x807021=>{const _0x41075=_0x3cdafa;_0x2722f7[_0x41075(0x1eb)](_0x807021[_0x41075(0x224)]());}),_0x2722f7;}[_0x269913(0x1d7)](_0x34738c){const _0x2d0c1c=_0x269913;for(let _0x32d50b of _0x34738c){let {id:_0x424fa2,shapeType:_0x325ec0,name:_0x53a8a9}=_0x32d50b,_0x1ba45c=this[_0x2d0c1c(0x1bb)](_0x325ec0,_0x424fa2,_0x32d50b[_0x2d0c1c(0x245)],_0x53a8a9);_0x1ba45c&&_0x1ba45c[_0x2d0c1c(0x248)]()&&this['_linesIds']['add'](_0x424fa2);}}[_0x269913(0x200)](){const _0xbc7c4f=_0x269913;this['_disposed']||(this[_0xbc7c4f(0x1a2)][_0xbc7c4f(0x1fe)](_0xb41a12=>{_0xb41a12['dispose']();}),this['_shapes'][_0xbc7c4f(0x1c7)](),this[_0xbc7c4f(0x269)][_0xbc7c4f(0x1c7)](),this[_0xbc7c4f(0x1a6)][_0xbc7c4f(0x1c7)](),super[_0xbc7c4f(0x200)]());}};function X(_0x3be602,_0xb70c00){return function(_0x44b690,_0x4cf593){_0xb70c00(_0x44b690,_0x4cf593,_0x3be602);};}function le(_0x40de0d,_0x50655e,_0x3b848d,_0x20cd71){const _0x3afb28=_0x269913;var _0xc62d92=arguments[_0x3afb28(0x26b)],_0x83dae2=_0xc62d92<0x3?_0x50655e:_0x20cd71===null?_0x20cd71=Object[_0x3afb28(0x21e)](_0x50655e,_0x3b848d):_0x20cd71,_0x2ca63f;if(typeof Reflect==_0x3afb28(0x1c2)&&typeof Reflect[_0x3afb28(0x212)]==_0x3afb28(0x23d))_0x83dae2=Reflect[_0x3afb28(0x212)](_0x40de0d,_0x50655e,_0x3b848d,_0x20cd71);else{for(var _0x2f915c=_0x40de0d[_0x3afb28(0x26b)]-0x1;_0x2f915c>=0x0;_0x2f915c--)(_0x2ca63f=_0x40de0d[_0x2f915c])&&(_0x83dae2=(_0xc62d92<0x3?_0x2ca63f(_0x83dae2):_0xc62d92>0x3?_0x2ca63f(_0x50655e,_0x3b848d,_0x83dae2):_0x2ca63f(_0x50655e,_0x3b848d))||_0x83dae2);}return _0xc62d92>0x3&&_0x83dae2&&Object[_0x3afb28(0x1cc)](_0x50655e,_0x3b848d,_0x83dae2),_0x83dae2;}let Z=class extends _0x3cd302{constructor(_0x5cf22c){const _0x20d6d1=_0x269913;super(),this['_resourcesManagerService']=_0x5cf22c,Y(this,_0x20d6d1(0x24e),new Map()),this[_0x20d6d1(0x267)]();}[_0x269913(0x206)](_0x3e7dc4,_0x1f43f2){const _0x52e2d5=_0x269913;let _0x26e5f1=this[_0x52e2d5(0x24e)][_0x52e2d5(0x1b5)](_0x3e7dc4);_0x26e5f1||(_0x26e5f1=new Map(),this[_0x52e2d5(0x24e)]['set'](_0x3e7dc4,_0x26e5f1));let _0x35cc25=_0x26e5f1[_0x52e2d5(0x1b5)](_0x1f43f2);return _0x35cc25||(_0x35cc25=new ce(),_0x26e5f1[_0x52e2d5(0x238)](_0x1f43f2,_0x35cc25)),_0x35cc25;}[_0x269913(0x26e)](_0x1c68d2,_0x438a43,_0x34405a,_0x332676,_0x3f92aa,_0x635db7){const _0x329834=_0x269913;this['_ensureShapeModelManager'](_0x1c68d2,_0x438a43)[_0x329834(0x1bb)](_0x34405a,_0x332676,_0x3f92aa,_0x635db7);}[_0x269913(0x211)](_0x4154ec,_0x458d93,_0x480eae){const _0x2bbc04=_0x269913;this[_0x2bbc04(0x206)](_0x4154ec,_0x458d93)['removeShape'](_0x480eae);}[_0x269913(0x277)](_0x4a32cc,_0x336506,_0x879180){const _0xf82ec6=_0x269913;return this[_0xf82ec6(0x206)](_0x4a32cc,_0x336506)[_0xf82ec6(0x273)](_0x879180);}[_0x269913(0x273)](_0x2966f2,_0x8637dd,_0x59f450){const _0x58dff3=_0x269913;return this[_0x58dff3(0x206)](_0x2966f2,_0x8637dd)[_0x58dff3(0x273)](_0x59f450);}[_0x269913(0x231)](_0x46b59a,_0x3cf46d,_0xbf7ca2){const _0x16ca57=_0x269913;return this[_0x16ca57(0x206)](_0x46b59a,_0x3cf46d)[_0x16ca57(0x231)](_0xbf7ca2);}[_0x269913(0x222)](_0x1875a3,_0x18d47d,_0x2c2021){const _0xe4b363=_0x269913;return this[_0xe4b363(0x206)](_0x1875a3,_0x18d47d)[_0xe4b363(0x273)](_0x2c2021);}[_0x269913(0x1ed)](_0x5d9905,_0x2a5325,_0x18db1e){const _0x274f54=_0x269913;let _0x35efa5=this[_0x274f54(0x206)](_0x5d9905,_0x2a5325);if(!_0x35efa5[_0x274f54(0x273)](_0x18db1e))return;let _0x57e028=_0x35efa5['_shapes'][_0x274f54(0x1b5)](_0x18db1e);if(_0x57e028)return _0x57e028['getShapeData']();}[_0x269913(0x210)](_0x43a02e,_0x57a194){const _0x3e453f=_0x269913;return this['_ensureShapeModelManager'](_0x43a02e,_0x57a194)[_0x3e453f(0x210)]();}['getShapeModel'](_0x2d1905,_0x3b0a89,_0x41d644){const _0x67d077=_0x269913;return this[_0x67d077(0x206)](_0x2d1905,_0x3b0a89)[_0x67d077(0x1a2)][_0x67d077(0x1b5)](_0x41d644);}[_0x269913(0x1e8)](_0x3c90bc,_0x5cd9de,_0x1fdb9d){const _0x214ba4=_0x269913;return this[_0x214ba4(0x206)](_0x3c90bc,_0x5cd9de)[_0x214ba4(0x1e8)](_0x1fdb9d);}[_0x269913(0x1da)](_0x512457,_0x47a1e3,_0x29d0db){const _0x1d077f=_0x269913;let _0x194078=this[_0x1d077f(0x206)](_0x512457,_0x47a1e3)[_0x1d077f(0x1a2)][_0x1d077f(0x1b5)](_0x29d0db);if(_0x194078)return _0x194078[_0x1d077f(0x249)]();}[_0x269913(0x259)](){}['_serializeShapeForUnit'](_0x9b087d){const _0x33a743=_0x269913;let _0x52bb8b={},_0x19d89c=this['_shapeModelManagerMap'][_0x33a743(0x1b5)](_0x9b087d);return _0x19d89c&&_0x19d89c[_0x33a743(0x1fe)]((_0x442525,_0x1ff0a3)=>{const _0x58d385=_0x33a743;let _0x247c84=_0x442525[_0x58d385(0x224)]();_0x247c84['length']>0x0&&(_0x52bb8b[_0x1ff0a3]=_0x247c84);}),JSON[_0x33a743(0x1cd)](_0x52bb8b);}[_0x269913(0x25f)](_0x24a639,_0x171512){const _0x3f3c0c=_0x269913;Object[_0x3f3c0c(0x270)](_0x171512)[_0x3f3c0c(0x1fe)](_0x18130e=>{const _0x4ed52e=_0x3f3c0c;this[_0x4ed52e(0x206)](_0x24a639,_0x18130e)[_0x4ed52e(0x1d7)](_0x171512[_0x18130e]);});}['toJSON'](){const _0x4d2f7e=_0x269913;let _0x22c5e3={};return this[_0x4d2f7e(0x24e)]['forEach']((_0x326614,_0x4d4473)=>{const _0x435c9b=_0x4d2f7e;_0x22c5e3[_0x4d4473]={},_0x326614[_0x435c9b(0x1fe)]((_0x26c891,_0x4130d6)=>{const _0x1be68b=_0x435c9b;_0x22c5e3[_0x4d4473][_0x4130d6]=_0x26c891[_0x1be68b(0x224)]();});}),_0x22c5e3;}[_0x269913(0x1d7)](_0x279222){const _0xae6bb1=_0x269913;Object[_0xae6bb1(0x270)](_0x279222)[_0xae6bb1(0x1fe)](_0x284cb0=>{let _0x2d706d=_0x279222[_0x284cb0];Object['keys'](_0x2d706d)['forEach'](_0x4322cc=>{const _0x79378a=_0x1902;this['_ensureShapeModelManager'](_0x284cb0,_0x4322cc)[_0x79378a(0x1d7)](_0x2d706d[_0x4322cc]);});});}['_initSnapshot'](){const _0x5a345c=_0x269913;this['_resourcesManagerService'][_0x5a345c(0x1c5)]({'pluginName':_0x5a345c(0x242),'businesses':[_0x25d19a['UNIVER_SHEET']],'toJson':_0x31aab6=>this[_0x5a345c(0x1a8)](_0x31aab6),'parseJson':_0x2c8b6b=>JSON[_0x5a345c(0x1ae)](_0x2c8b6b),'onLoad':(_0x379647,_0x4f4a86)=>{const _0x14120b=_0x5a345c;this[_0x14120b(0x25f)](_0x379647,_0x4f4a86);},'onUnLoad':_0x2f88c2=>{const _0x97bc16=_0x5a345c;let _0x5abc83=this['_shapeModelManagerMap'][_0x97bc16(0x1b5)](_0x2f88c2);_0x5abc83&&(_0x5abc83['forEach'](_0x3a8009=>{const _0x5edc61=_0x97bc16;_0x3a8009[_0x5edc61(0x200)]();}),this[_0x97bc16(0x24e)][_0x97bc16(0x1a1)](_0x2f88c2));}});}['dispose'](){const _0x5d6479=_0x269913;this['_shapeModelManagerMap'][_0x5d6479(0x1fe)](_0x44ac50=>{_0x44ac50['forEach'](_0x428383=>{_0x428383['dispose']();});});}};Z=le([X(0x0,_0x217d51)],Z);const ue={'id':'sheet.mutation.insert-shape','type':_0x38403f[_0x269913(0x26a)],'handler':(_0x128e89,_0x383338)=>{const _0x4dd9ef=_0x269913;let {unitId:_0x13c2b9,subUnitId:_0x41e73e,shapeType:_0x51a75c,shapeId:_0x361497,shapeName:_0x52bd30,shapeData:_0x368f1e}=_0x383338;return _0x128e89[_0x4dd9ef(0x1b5)](Z)['insertShape'](_0x13c2b9,_0x41e73e,_0x51a75c,_0x361497,_0x25b5f7[_0x4dd9ef(0x223)](_0x368f1e),_0x52bd30),!0x0;}},de={'id':_0x269913(0x1fa),'type':_0x38403f[_0x269913(0x26a)],'handler':(_0x1b44c7,_0x3e0e8d)=>{const _0x3f1cd8=_0x269913;let {unitId:_0x2b65d1,subUnitId:_0x165887,shapeId:_0x148175}=_0x3e0e8d;return _0x1b44c7[_0x3f1cd8(0x1b5)](Z)[_0x3f1cd8(0x211)](_0x2b65d1,_0x165887,_0x148175),!0x0;}},fe={'type':_0x38403f[_0x269913(0x1a5)],'id':_0x269913(0x233),'handler':(_0x521fb5,_0x2acd9b)=>{const _0x45838f=_0x269913;let _0x19f4ae=_0x21a15c(_0x521fb5[_0x45838f(0x1b5)](_0xa7a488),_0x2acd9b);if(!_0x19f4ae)return!0x1;let _0x1deee2=_0x521fb5[_0x45838f(0x1b5)](_0x5b25ce),{unitId:_0xb523c0,subUnitId:_0x5357b2}=_0x19f4ae,_0x189302=_0x1deee2[_0x45838f(0x1c0)](_0xb523c0,_0x5357b2);if(!_0x189302)return!0x1;let _0x51244c=_0x521fb5[_0x45838f(0x1b5)](_0x23198b),_0x2ac9ec=_0x521fb5[_0x45838f(0x1b5)](_0x2ec5d9),_0x2c58b3=_0x521fb5[_0x45838f(0x1b5)](_0x50f767),_0x2793e4=_0x521fb5[_0x45838f(0x1b5)](_0x5b63ed),_0x400658=_0x521fb5[_0x45838f(0x1b5)](Z),{shapeType:_0x284e20,shapeData:_0xc0f090}=_0x2acd9b,_0x13cde2=_0x2acd9b[_0x45838f(0x207)]||_0x57defd(),_0x297d92={'unitId':_0xb523c0,'subUnitId':_0x5357b2,'shapeId':_0x13cde2,'shapeName':_0x2acd9b[_0x45838f(0x23b)]??_0x159718(_0x284e20,_0x400658[_0x45838f(0x210)](_0xb523c0,_0x5357b2)),'shapeType':_0x284e20,'shapeData':_0xc0f090},_0x41bcd1=_0x2acd9b[_0x45838f(0x1b3)]||0xc8,_0x4ff993=_0x2acd9b[_0x45838f(0x1b6)]||0xc8,_0x4d9804=0x0,_0x141787=0x0;if(_0x2acd9b[_0x45838f(0x1ea)]){let {x:_0x5b57c5,y:_0x37cdce}=_0x2acd9b['position'];_0x4d9804=_0x5b57c5,_0x141787=_0x37cdce;}else{if(_0x2acd9b[_0x45838f(0x241)]){let {startRow:_0x4fe35d,startColumn:_0x33edbd}=_0x2acd9b[_0x45838f(0x241)],_0x49c5e5=_0x189302[_0x45838f(0x24f)](_0x4fe35d,_0x33edbd);_0x4d9804=_0x49c5e5[_0x45838f(0x1b1)]+0xa,_0x141787=_0x49c5e5[_0x45838f(0x1bf)]+0xa;}}let _0x592f47={'left':_0x4d9804,'top':_0x141787,'width':_0x41bcd1,'height':_0x4ff993,'angle':_0x2acd9b[_0x45838f(0x1d8)]??0x0,'flipX':_0x2acd9b['flipX']??!0x1,'flipY':_0x2acd9b['flipY']??!0x1},_0x811ad8=_0x5d3f3a(_0x592f47,_0x189302),_0x3fe23b=_0x3930ef(_0x592f47,_0x189302),_0x36a4e6={'unitId':_0xb523c0,'subUnitId':_0x5357b2,'drawingId':_0x13cde2,'drawingType':_0xec03e0['DRAWING_SHAPE'],'anchorType':_0x3a7b27['Both'],'name':_0x2acd9b[_0x45838f(0x1e3)],'description':_0x2acd9b[_0x45838f(0x22d)],'sheetTransform':_0x811ad8,'transform':_0x592f47,'data':{'shapeType':_0x284e20,'shapeData':_0xc0f090},'axisAlignSheetTransform':_0x3fe23b,'allowTransform':!0x0,'hidden':_0x2acd9b[_0x45838f(0x256)]===!0x1,'selectable':_0x2acd9b[_0x45838f(0x20b)]??!0x0};_0x62453b(_0x284e20)&&(_0x36a4e6['data']['fill']=!0x1,_0x36a4e6[_0x45838f(0x1e7)][_0x45838f(0x219)]=!0x1,_0x36a4e6[_0x45838f(0x1e7)][_0x45838f(0x213)]=!0x1,_0x36a4e6[_0x45838f(0x1e7)][_0x45838f(0x236)]=!0x1,_0x36a4e6[_0x45838f(0x252)][_0x45838f(0x219)]=!0x1,_0x36a4e6[_0x45838f(0x252)]['resizeEnabled']=!0x1,_0x36a4e6[_0x45838f(0x252)][_0x45838f(0x236)]=!0x1);let {undo:_0x5c41b0,redo:_0x1c172d,objects:_0x385dae}=_0x2793e4[_0x45838f(0x1a4)]([_0x36a4e6]),_0x237edd=_0x2c58b3[_0x45838f(0x23f)]({'id':_0x3d8b20['id'],'params':{'unitId':_0xb523c0,'drawings':[_0x36a4e6]}}),_0x35a818=[..._0x237edd['preRedos']??[],{'id':_0x326082['id'],'params':{'unitId':_0xb523c0,'subUnitId':_0x5357b2,'op':_0x1c172d,'objects':_0x385dae,'type':_0x426f20[_0x45838f(0x1a9)]}},{'id':_0x15e2a8['id'],'params':[_0xb523c0]},..._0x237edd['redos'],{'id':ue['id'],'params':_0x297d92}],_0x45aa1d=[{'id':de['id'],'params':{'unitId':_0xb523c0,'subUnitId':_0x5357b2,'shapeId':_0x13cde2}},..._0x237edd['preUndos']??[],{'id':_0x326082['id'],'params':{'unitId':_0xb523c0,'subUnitId':_0x5357b2,'op':_0x5c41b0,'objects':_0x385dae,'type':_0x426f20['REMOVE']}},{'id':_0x15e2a8['id'],'params':[_0xb523c0]},..._0x237edd[_0x45838f(0x26d)]];return _0x101bc9(_0x35a818,_0x51244c)[_0x45838f(0x1c9)]?(_0x2ac9ec[_0x45838f(0x1c6)]({'unitID':_0xb523c0,'undoMutations':_0x45aa1d,'redoMutations':_0x35a818}),!0x0):!0x1;}},Q={'id':_0x269913(0x226),'type':_0x38403f[_0x269913(0x26a)],'handler':(_0x32059c,_0x1eb5b2)=>{const _0x3cf2f5=_0x269913;let {unitId:_0x1fa30b,subUnitId:_0x48a24f,shapeType:_0x18dae2,shapeId:_0x4a7889,shapeData:_0x20fd55,replace:_0xd7915a,formulaLastValueGuard:_0x2c42f6}=_0x1eb5b2,_0x186101=_0x32059c[_0x3cf2f5(0x1b5)](Z)[_0x3cf2f5(0x1d5)](_0x1fa30b,_0x48a24f,_0x4a7889);if(_0x186101){var _0x1b1b5d;if(!_0x4ee096(_0x32059c,{'hostType':_0x25d19a[_0x3cf2f5(0x1d9)],'unitId':_0x1fa30b,'subUnitId':_0x48a24f,'shapeId':_0x4a7889},(_0x1b1b5d=_0x186101[_0x3cf2f5(0x1f1)]()[_0x3cf2f5(0x20f)])==null?void 0x0:_0x1b1b5d[_0x3cf2f5(0x25c)],_0x2c42f6))return!0x0;_0x18dae2!==void 0x0&&_0x186101[_0x3cf2f5(0x259)](_0x18dae2),_0x20fd55&&(_0x186101==null||_0x186101[_0x3cf2f5(0x21c)](_0x25b5f7[_0x3cf2f5(0x223)](_0x20fd55),!_0xd7915a));}return!0x0;}},pe={'type':_0x38403f[_0x269913(0x1a5)],'id':_0x269913(0x239),'handler':(_0x3ea433,_0xb95e10)=>{const _0x5d78c1=_0x269913;let _0x59d25b=_0x21a15c(_0x3ea433[_0x5d78c1(0x1b5)](_0xa7a488),_0xb95e10);if(!_0x59d25b)return!0x1;let _0x4a3b68=_0x3ea433[_0x5d78c1(0x1b5)](_0x5b25ce),{unitId:_0x5c2351,subUnitId:_0x26df62}=_0x59d25b,_0x58d6b9=_0x4a3b68[_0x5d78c1(0x1c0)](_0x5c2351,_0x26df62);if(!_0x58d6b9)return!0x1;let _0x3068f9=_0x3ea433[_0x5d78c1(0x1b5)](Z),{shapeId:_0x34c3f2,shapeType:_0x2d2d57,shapeData:_0x39ac9e,position:_0x1987f1,width:_0x21df68,height:_0x26bd89}=_0xb95e10,_0x379d99=_0x3068f9[_0x5d78c1(0x1d5)](_0x5c2351,_0x26df62,_0x34c3f2);if(!_0x379d99)return!0x1;let _0x3ba4d8=_0x3ea433[_0x5d78c1(0x1b5)](_0x23198b),_0x3583ba=_0x3ea433[_0x5d78c1(0x1b5)](_0x2ec5d9),_0x53c8ec=_0x3ea433[_0x5d78c1(0x1b5)](_0x50f767),_0xdd9c2d=_0x3ea433[_0x5d78c1(0x1b5)](_0x5b63ed),_0x3dea10={'unitId':_0x5c2351,'subUnitId':_0x26df62,'shapeId':_0x34c3f2,'shapeType':_0x2d2d57,'shapeData':_0x39ac9e,'replace':!0x0},_0x3498aa=_0x379d99[_0x5d78c1(0x273)](),_0xf44b32=_0x379d99[_0x5d78c1(0x1f1)](),{x:_0x36dbee,y:_0x4d27a9}=_0x1987f1,_0x91dbd1={'left':_0x36dbee,'top':_0x4d27a9,'width':_0x21df68,'height':_0x26bd89,'angle':_0xb95e10['rotation']??0x0,'flipX':_0xb95e10[_0x5d78c1(0x24d)]??!0x1,'flipY':_0xb95e10[_0x5d78c1(0x1b4)]??!0x1},_0x157efc=_0x5d3f3a(_0x91dbd1,_0x58d6b9),_0x404f29=_0x3930ef(_0x91dbd1,_0x58d6b9),_0x3834ad={'unitId':_0x5c2351,'subUnitId':_0x26df62,'drawingId':_0x34c3f2,'drawingType':_0xec03e0['DRAWING_SHAPE'],'name':_0xb95e10[_0x5d78c1(0x1e3)],'description':_0xb95e10[_0x5d78c1(0x22d)],'sheetTransform':_0x157efc,'transform':_0x91dbd1,'data':{'shapeType':_0x2d2d57,'shapeData':_0x39ac9e},'axisAlignSheetTransform':_0x404f29,'allowTransform':!0x0,'hidden':!_0xb95e10[_0x5d78c1(0x256)],'selectable':_0xb95e10[_0x5d78c1(0x20b)]};_0x62453b(_0x2d2d57)&&(_0x3834ad['data'][_0x5d78c1(0x1e0)]=!0x1,_0x3834ad['data']['rotateEnabled']=!0x1,_0x3834ad[_0x5d78c1(0x1e7)][_0x5d78c1(0x213)]=!0x1,_0x3834ad[_0x5d78c1(0x1e7)][_0x5d78c1(0x236)]=!0x1,_0x3834ad['transform']['rotateEnabled']=!0x1,_0x3834ad['transform'][_0x5d78c1(0x213)]=!0x1,_0x3834ad['transform'][_0x5d78c1(0x236)]=!0x1);let {undo:_0x46c541,redo:_0x1dc0e0,objects:_0x43d678}=_0xdd9c2d['getBatchUpdateOp']([_0x3834ad]),_0x2679ef=_0x53c8ec[_0x5d78c1(0x23f)]({'id':_0x178098['id'],'params':{'unitId':_0x5c2351,'drawings':[_0x3834ad]}}),_0x3731d1=[..._0x2679ef['preRedos']??[],{'id':_0x326082['id'],'params':{'unitId':_0x5c2351,'subUnitId':_0x26df62,'op':_0x1dc0e0,'objects':_0x43d678,'type':_0x426f20['UPDATE']}},{'id':_0x15e2a8['id'],'params':[_0x5c2351]},..._0x2679ef[_0x5d78c1(0x1bd)],{'id':Q['id'],'params':_0x3dea10}],_0xe7246=[..._0x2679ef[_0x5d78c1(0x1aa)]??[],{'id':_0x326082['id'],'params':{'unitId':_0x5c2351,'subUnitId':_0x26df62,'op':_0x46c541,'objects':_0x43d678,'type':_0x426f20[_0x5d78c1(0x1a3)]}},{'id':_0x15e2a8['id'],'params':[_0x5c2351]},..._0x2679ef[_0x5d78c1(0x26d)],{'id':Q['id'],'params':{'unitId':_0x5c2351,'subUnitId':_0x26df62,'shapeType':_0x3498aa,'shapeId':_0x34c3f2,'shapeData':_0xf44b32,'replace':!0x0}}];return _0x101bc9(_0x3731d1,_0x3ba4d8)[_0x5d78c1(0x1c9)]?(_0x3583ba[_0x5d78c1(0x1c6)]({'unitID':_0x5c2351,'undoMutations':_0xe7246,'redoMutations':_0x3731d1}),!0x0):!0x1;}},me={'type':_0x38403f['COMMAND'],'id':_0x269913(0x25e),'handler':(_0xb6ca3a,_0x5ea2e5)=>{const _0x20084a=_0x269913;let _0x1bf998=_0x21a15c(_0xb6ca3a[_0x20084a(0x1b5)](_0xa7a488),_0x5ea2e5);if(!_0x1bf998)return!0x1;let _0x304a11=_0xb6ca3a[_0x20084a(0x1b5)](_0x5b25ce),{unitId:_0x3bdee9,subUnitId:_0x2d2a56}=_0x1bf998,_0x3e0a6c=_0x304a11[_0x20084a(0x1b0)](_0x3bdee9,_0x2d2a56);if(!_0x3e0a6c)return!0x1;let _0x389df7=_0xb6ca3a[_0x20084a(0x1b5)](_0x5b63ed),{shapeId:_0x30dabe,flipH:_0x137730,flipV:_0x18230f}=_0x5ea2e5,_0x17638a=_0x389df7['getDrawingByParam']({'unitId':_0x3bdee9,'subUnitId':_0x2d2a56,'drawingId':_0x30dabe});if(!_0x17638a)return!0x1;let _0x59242b=_0xb6ca3a['get'](Z)[_0x20084a(0x1d5)](_0x3bdee9,_0x2d2a56,_0x30dabe);if(!_0x59242b)return!0x1;let _0x43ed00=_0xb6ca3a[_0x20084a(0x1b5)](_0x23198b),_0x47f367=_0xb6ca3a[_0x20084a(0x1b5)](_0x2ec5d9),_0x48b82d=_0xb6ca3a[_0x20084a(0x1b5)](_0x50f767),_0x9d97e={..._0x17638a[_0x20084a(0x252)]};_0x137730!==void 0x0&&(_0x9d97e['flipX']=!_0x9d97e[_0x20084a(0x24d)]),_0x18230f!==void 0x0&&(_0x9d97e['flipY']=!_0x9d97e[_0x20084a(0x1b4)]);let _0x2db785=_0x5d3f3a(_0x9d97e,_0x3e0a6c),_0x41aaba=_0x3930ef(_0x9d97e,_0x3e0a6c),_0x5b18f0=_0x59242b['getShapeType'](),_0x19bc0b=_0x59242b['getShapeData'](),_0x15d7cf={'unitId':_0x3bdee9,'subUnitId':_0x2d2a56,'drawingId':_0x30dabe,'drawingType':_0xec03e0[_0x20084a(0x1ba)],'sheetTransform':_0x2db785,'transform':_0x9d97e,'data':{'shapeType':_0x5b18f0,'shapeData':_0x19bc0b},'axisAlignSheetTransform':_0x41aaba,'allowTransform':!0x0},{undo:_0x5dac30,redo:_0x516275,objects:_0x2780c8}=_0x389df7[_0x20084a(0x204)]([_0x15d7cf]),_0x1e97f2=_0x48b82d[_0x20084a(0x23f)]({'id':_0x178098['id'],'params':{'unitId':_0x3bdee9,'drawings':[_0x15d7cf]}}),_0x2c6fc9=[..._0x1e97f2[_0x20084a(0x24c)]??[],{'id':_0x326082['id'],'params':{'unitId':_0x3bdee9,'subUnitId':_0x2d2a56,'op':_0x516275,'objects':_0x2780c8,'type':_0x426f20[_0x20084a(0x1a3)]}},{'id':_0x15e2a8['id'],'params':[_0x3bdee9]},..._0x1e97f2[_0x20084a(0x1bd)]],_0x9afa53=[..._0x1e97f2[_0x20084a(0x1aa)]??[],{'id':_0x326082['id'],'params':{'unitId':_0x3bdee9,'subUnitId':_0x2d2a56,'op':_0x5dac30,'objects':_0x2780c8,'type':_0x426f20[_0x20084a(0x1a3)]}},{'id':_0x15e2a8['id'],'params':[_0x3bdee9]},..._0x1e97f2[_0x20084a(0x26d)]];if(_0x62453b(_0x5b18f0)){let _0x154e6b=_0x59242b[_0x20084a(0x249)]();if(_0x154e6b){let _0x18ed99={..._0x154e6b};_0x18ed99[_0x20084a(0x1f3)]=void 0x0,_0x18ed99['to']=void 0x0,_0x2c6fc9[_0x20084a(0x1eb)]({'id':Q['id'],'params':{'unitId':_0x3bdee9,'subUnitId':_0x2d2a56,'shapeId':_0x30dabe,'shapeType':_0x5b18f0,'shapeData':{'relation':_0x18ed99}}}),_0x9afa53['push']({'id':Q['id'],'params':{'unitId':_0x3bdee9,'subUnitId':_0x2d2a56,'shapeId':_0x30dabe,'shapeType':_0x5b18f0,'shapeData':{'relation':_0x154e6b}}});}}return _0x101bc9(_0x2c6fc9,_0x43ed00)[_0x20084a(0x1c9)]?(_0x47f367['pushUndoRedo']({'unitID':_0x3bdee9,'undoMutations':_0x9afa53,'redoMutations':_0x2c6fc9}),!0x0):!0x1;}},he={'type':_0x38403f[_0x269913(0x1a5)],'id':_0x269913(0x25a),'handler':(_0x5aa2d5,_0x48ada4)=>{const _0x293801=_0x269913;let _0x4772e3=_0x21a15c(_0x5aa2d5['get'](_0xa7a488),_0x48ada4);if(!_0x4772e3)return!0x1;let _0x29526f=_0x5aa2d5['get'](_0x5b25ce),{unitId:_0x58b900,subUnitId:_0x53e6ff}=_0x4772e3,_0x2ed97a=_0x29526f['getSkeleton'](_0x58b900,_0x53e6ff);if(!_0x2ed97a)return!0x1;let _0x282eb7=_0x5aa2d5['get'](_0x5b63ed),{shapeId:_0x2eee78,rotate:_0x400130}=_0x48ada4,_0x5bdadf=_0x282eb7[_0x293801(0x20a)]({'unitId':_0x58b900,'subUnitId':_0x53e6ff,'drawingId':_0x2eee78});if(!_0x5bdadf)return!0x1;let _0x1d0bc8=_0x5aa2d5['get'](Z)[_0x293801(0x1d5)](_0x58b900,_0x53e6ff,_0x2eee78);if(!_0x1d0bc8)return!0x1;let _0x840065=_0x5aa2d5[_0x293801(0x1b5)](_0x23198b),_0x10dbf9=_0x5aa2d5[_0x293801(0x1b5)](_0x2ec5d9),_0x25bf29=_0x5aa2d5[_0x293801(0x1b5)](_0x50f767),_0x21bf98={..._0x5bdadf[_0x293801(0x252)]};_0x400130!==void 0x0&&(_0x21bf98[_0x293801(0x209)]=(_0x21bf98[_0x293801(0x209)]||0x0)+_0x400130);let _0x3aa1d0=_0x5d3f3a(_0x21bf98,_0x2ed97a),_0x4689e0=_0x3930ef(_0x21bf98,_0x2ed97a),_0x399d2a=_0x1d0bc8[_0x293801(0x273)](),_0x680c9=_0x1d0bc8[_0x293801(0x1f1)](),_0x553df3={'unitId':_0x58b900,'subUnitId':_0x53e6ff,'drawingId':_0x2eee78,'drawingType':_0xec03e0['DRAWING_SHAPE'],'sheetTransform':_0x3aa1d0,'transform':_0x21bf98,'data':{'shapeType':_0x399d2a,'shapeData':_0x680c9},'axisAlignSheetTransform':_0x4689e0,'allowTransform':!0x0},{undo:_0x285444,redo:_0x32665d,objects:_0x305872}=_0x282eb7[_0x293801(0x204)]([_0x553df3]),_0x4b5190=_0x25bf29[_0x293801(0x23f)]({'id':_0x178098['id'],'params':{'unitId':_0x58b900,'drawings':[_0x553df3]}}),_0x217495=[..._0x4b5190[_0x293801(0x24c)]??[],{'id':_0x326082['id'],'params':{'unitId':_0x58b900,'subUnitId':_0x53e6ff,'op':_0x32665d,'objects':_0x305872,'type':_0x426f20['UPDATE']}},{'id':_0x15e2a8['id'],'params':[_0x58b900]},..._0x4b5190[_0x293801(0x1bd)]],_0x466a79=[..._0x4b5190[_0x293801(0x1aa)]??[],{'id':_0x326082['id'],'params':{'unitId':_0x58b900,'subUnitId':_0x53e6ff,'op':_0x285444,'objects':_0x305872,'type':_0x426f20[_0x293801(0x1a3)]}},{'id':_0x15e2a8['id'],'params':[_0x58b900]},..._0x4b5190[_0x293801(0x26d)]];return _0x101bc9(_0x217495,_0x840065)['result']?(_0x10dbf9['pushUndoRedo']({'unitID':_0x58b900,'undoMutations':_0x466a79,'redoMutations':_0x217495}),!0x0):!0x1;}},ge={'type':_0x38403f['COMMAND'],'id':_0x269913(0x262),'handler':(_0x3c9552,_0x2b9f79)=>{const _0x291e47=_0x269913;let _0x39a40b=_0x21a15c(_0x3c9552[_0x291e47(0x1b5)](_0xa7a488),_0x2b9f79);if(!_0x39a40b)return!0x1;let {unitId:_0x142878,subUnitId:_0x38df8e}=_0x39a40b,{shapeId:_0x1e7dd7}=_0x2b9f79,_0x1a410a=_0x3c9552[_0x291e47(0x1b5)](Z)[_0x291e47(0x1d5)](_0x142878,_0x38df8e,_0x1e7dd7);if(!_0x1a410a)return!0x1;let _0x567d78=_0x1a410a[_0x291e47(0x22f)](),_0x1444a7=(_0x567d78==null?void 0x0:_0x567d78[_0x291e47(0x255)])??!0x0,_0x140fd7=!_0x1444a7,_0x500f58=_0x3c9552[_0x291e47(0x1b5)](_0x23198b),_0x2c07d7=_0x3c9552[_0x291e47(0x1b5)](_0x2ec5d9),_0x5a1f93={'unitId':_0x142878,'subUnitId':_0x38df8e,'shapeId':_0x1e7dd7,'shapeData':{'shapeText':{'isHorizontal':_0x140fd7}}},_0x12a287={'unitId':_0x142878,'subUnitId':_0x38df8e,'shapeId':_0x1e7dd7,'shapeData':{'shapeText':{'isHorizontal':_0x1444a7}}},_0x2d173d=[{'id':Q['id'],'params':_0x5a1f93}],_0x3b8723=[{'id':Q['id'],'params':_0x12a287}];return _0x101bc9(_0x2d173d,_0x500f58)[_0x291e47(0x1c9)]?(_0x2c07d7[_0x291e47(0x1c6)]({'unitID':_0x142878,'undoMutations':_0x3b8723,'redoMutations':_0x2d173d}),!0x0):!0x1;}},_e={'type':_0x38403f['COMMAND'],'id':_0x269913(0x1d2),'handler':(_0x1efdf1,_0x1303de)=>{const _0x1af45e=_0x269913;var _0x5403fc;let _0x3706e9=_0x21a15c(_0x1efdf1['get'](_0xa7a488),_0x1303de);if(!_0x3706e9)return!0x1;let _0x1e3827=_0x1efdf1['get'](_0x5b25ce),{unitId:_0x5f02d8,subUnitId:_0xb27c3e}=_0x3706e9,_0x58638c=_0x1e3827['getSkeleton'](_0x5f02d8,_0xb27c3e);if(!_0x58638c)return!0x1;let _0x3ab952=_0x1efdf1[_0x1af45e(0x1b5)](_0x5b63ed),{connectorShapeId:_0xa8f2be,width:_0x24a916,height:_0xc8d552,left:_0x48df3a,top:_0x2a4544,flipX:_0x1b09b9,flipY:_0xfde5c1,rotation:_0x2c324a,oldAdjustValues:_0x20786c,newAdjustValues:_0x5d61f8,oldLineType:_0x1d9500,newLineType:_0x378cd0,oldRelation:_0x529f51,newRelation:_0x4e1b5a}=_0x1303de,_0x295134=_0x3ab952[_0x1af45e(0x20a)]({'unitId':_0x5f02d8,'subUnitId':_0xb27c3e,'drawingId':_0xa8f2be});if(!_0x295134)return!0x1;let _0x5df69c=_0x1efdf1[_0x1af45e(0x1b5)](Z)[_0x1af45e(0x1d5)](_0x5f02d8,_0xb27c3e,_0xa8f2be);if(!_0x5df69c)return!0x1;let _0x74afbe=_0x1efdf1[_0x1af45e(0x1b5)](_0x23198b),_0x66b4f1=_0x1efdf1[_0x1af45e(0x1b5)](_0x2ec5d9),_0x4b2171=_0x1efdf1[_0x1af45e(0x1b5)](_0x50f767),_0x1c1497={..._0x295134[_0x1af45e(0x252)],'width':_0x24a916,'height':_0xc8d552,'left':_0x48df3a,'top':_0x2a4544,'flipX':_0x1b09b9,'flipY':_0xfde5c1,'angle':_0x2c324a??((_0x5403fc=_0x295134[_0x1af45e(0x252)])==null?void 0x0:_0x5403fc[_0x1af45e(0x209)])??0x0},_0x44847a=_0x5d3f3a(_0x1c1497,_0x58638c),_0x13c9b2=_0x3930ef(_0x1c1497,_0x58638c),_0x129377=_0x5df69c[_0x1af45e(0x273)](),_0x5b4d1a=_0x5df69c['getShapeData'](),_0x5b48ec={'unitId':_0x5f02d8,'subUnitId':_0xb27c3e,'drawingId':_0xa8f2be,'drawingType':_0xec03e0['DRAWING_SHAPE'],'sheetTransform':_0x44847a,'transform':_0x1c1497,'data':{'shapeType':_0x378cd0||_0x1d9500||_0x129377,'shapeData':{..._0x5b4d1a,'adjustValues':_0x5d61f8||_0x20786c||(_0x5b4d1a==null?void 0x0:_0x5b4d1a[_0x1af45e(0x254)]),'relation':_0x4e1b5a||_0x529f51||(_0x5b4d1a==null?void 0x0:_0x5b4d1a['relation'])}},'axisAlignSheetTransform':_0x13c9b2,'allowTransform':!0x0},{undo:_0x37a3aa,redo:_0x5ca4f8,objects:_0x18f4e2}=_0x3ab952[_0x1af45e(0x204)]([_0x5b48ec]),_0xa65cd0=_0x4b2171[_0x1af45e(0x23f)]({'id':_0x178098['id'],'params':{'unitId':_0x5f02d8,'drawings':[_0x5b48ec]}}),_0x12d49c=[..._0xa65cd0['preRedos']??[],{'id':_0x326082['id'],'params':{'unitId':_0x5f02d8,'subUnitId':_0xb27c3e,'op':_0x5ca4f8,'objects':_0x18f4e2,'type':_0x426f20[_0x1af45e(0x1a3)]}},{'id':_0x15e2a8['id'],'params':[_0x5f02d8]},..._0xa65cd0[_0x1af45e(0x1bd)],{'id':Q['id'],'params':{'unitId':_0x5f02d8,'subUnitId':_0xb27c3e,'shapeId':_0xa8f2be,'shapeType':_0x378cd0,'shapeData':{'adjustValues':_0x5d61f8,'relation':_0x4e1b5a}}}],_0x292ef2=[..._0xa65cd0[_0x1af45e(0x1aa)]??[],{'id':_0x326082['id'],'params':{'unitId':_0x5f02d8,'subUnitId':_0xb27c3e,'op':_0x37a3aa,'objects':_0x18f4e2,'type':_0x426f20[_0x1af45e(0x1a3)]}},{'id':_0x15e2a8['id'],'params':[_0x5f02d8]},..._0xa65cd0[_0x1af45e(0x26d)],{'id':Q['id'],'params':{'unitId':_0x5f02d8,'subUnitId':_0xb27c3e,'shapeId':_0xa8f2be,'shapeType':_0x129377,'shapeData':{..._0x5b4d1a,'adjustValues':_0x20786c||(_0x5b4d1a==null?void 0x0:_0x5b4d1a[_0x1af45e(0x254)]),'relation':_0x529f51||(_0x5b4d1a==null?void 0x0:_0x5b4d1a['relation'])}}}];return _0x101bc9(_0x12d49c,_0x74afbe)[_0x1af45e(0x1c9)]?(_0x66b4f1[_0x1af45e(0x1c6)]({'unitID':_0x5f02d8,'undoMutations':_0x292ef2,'redoMutations':_0x12d49c}),!0x0):!0x1;}},ve={'type':_0x38403f[_0x269913(0x1a5)],'id':_0x269913(0x22a),'handler':(_0x2d92ba,_0xcfa8be)=>{const _0x2b09fe=_0x269913;let _0x7f61c4=_0x21a15c(_0x2d92ba[_0x2b09fe(0x1b5)](_0xa7a488),_0xcfa8be);if(!_0x7f61c4)return!0x1;let _0x193525=_0x2d92ba[_0x2b09fe(0x1b5)](_0x5b25ce),{unitId:_0x50e655,subUnitId:_0x42bab1}=_0x7f61c4,_0x3a7844=_0x193525[_0x2b09fe(0x1b0)](_0x50e655,_0x42bab1);if(!_0x3a7844)return!0x1;let _0xa9d9e1=_0x2d92ba[_0x2b09fe(0x1b5)](_0x5b63ed),{shapeId:_0x691b71,width:_0x26879c,height:_0x48ccf9,left:_0x40c93f,top:_0x324d5c,flipX:_0x4eb07a,flipY:_0x4c7d88,angle:_0xaf080d,oldAdjustValues:_0x1c46e7,newAdjustValues:_0x4810ab,oldLineType:_0x426af1,newLineType:_0x5588aa}=_0xcfa8be,_0x351d6c=_0xa9d9e1[_0x2b09fe(0x20a)]({'unitId':_0x50e655,'subUnitId':_0x42bab1,'drawingId':_0x691b71});if(!_0x351d6c)return!0x1;let _0x54f768=_0x2d92ba['get'](Z)['getShapeModel'](_0x50e655,_0x42bab1,_0x691b71);if(!_0x54f768)return!0x1;let _0x1eceac=_0x2d92ba[_0x2b09fe(0x1b5)](_0x23198b),_0x2cc8bd=_0x2d92ba[_0x2b09fe(0x1b5)](_0x2ec5d9),_0x23ba27=_0x2d92ba[_0x2b09fe(0x1b5)](_0x50f767),_0x586ff8={..._0x351d6c[_0x2b09fe(0x252)],'width':_0x26879c,'height':_0x48ccf9,'left':_0x40c93f,'top':_0x324d5c,'flipX':_0x4eb07a,'flipY':_0x4c7d88,'angle':_0xaf080d},_0x27826b=_0x5d3f3a(_0x586ff8,_0x3a7844),_0x12c7aa=_0x3930ef(_0x586ff8,_0x3a7844),_0x21ae2c=_0x54f768[_0x2b09fe(0x273)](),_0x55b7f0=_0x54f768[_0x2b09fe(0x1f1)](),_0x1c6fb1={'unitId':_0x50e655,'subUnitId':_0x42bab1,'drawingId':_0x691b71,'drawingType':_0xec03e0['DRAWING_SHAPE'],'sheetTransform':_0x27826b,'transform':_0x586ff8,'data':{'shapeType':_0x5588aa||_0x426af1||_0x21ae2c,'shapeData':{..._0x55b7f0,'adjustValues':_0x4810ab||_0x1c46e7||(_0x55b7f0==null?void 0x0:_0x55b7f0['adjustValues'])}},'axisAlignSheetTransform':_0x12c7aa,'allowTransform':!0x0},{undo:_0x25c63e,redo:_0xcf277c,objects:_0x887835}=_0xa9d9e1[_0x2b09fe(0x204)]([_0x1c6fb1]),_0x1e2b61=_0x23ba27[_0x2b09fe(0x23f)]({'id':_0x178098['id'],'params':{'unitId':_0x50e655,'drawings':[_0x1c6fb1]}}),_0x427f97=[..._0x1e2b61['preRedos']??[],{'id':_0x326082['id'],'params':{'unitId':_0x50e655,'subUnitId':_0x42bab1,'op':_0xcf277c,'objects':_0x887835,'type':_0x426f20[_0x2b09fe(0x1a3)]}},{'id':_0x15e2a8['id'],'params':[_0x50e655]},..._0x1e2b61[_0x2b09fe(0x1bd)],{'id':Q['id'],'params':{'unitId':_0x50e655,'subUnitId':_0x42bab1,'shapeId':_0x691b71,'shapeType':_0x5588aa,'shapeData':{'adjustValues':_0x4810ab}}}],_0x2b1427=[..._0x1e2b61[_0x2b09fe(0x1aa)]??[],{'id':_0x326082['id'],'params':{'unitId':_0x50e655,'subUnitId':_0x42bab1,'op':_0x25c63e,'objects':_0x887835,'type':_0x426f20[_0x2b09fe(0x1a3)]}},{'id':_0x15e2a8['id'],'params':[_0x50e655]},..._0x1e2b61[_0x2b09fe(0x26d)],{'id':Q['id'],'params':{'unitId':_0x50e655,'subUnitId':_0x42bab1,'shapeId':_0x691b71,'shapeType':_0x21ae2c,'shapeData':{..._0x55b7f0,'adjustValues':_0x1c46e7||(_0x55b7f0==null?void 0x0:_0x55b7f0[_0x2b09fe(0x254)])}}}];return _0x101bc9(_0x427f97,_0x1eceac)[_0x2b09fe(0x1c9)]?(_0x2cc8bd[_0x2b09fe(0x1c6)]({'unitID':_0x50e655,'undoMutations':_0x2b1427,'redoMutations':_0x427f97}),!0x0):!0x1;}},ye={'id':_0x269913(0x20e),'type':_0x38403f[_0x269913(0x26a)],'handler':(_0x296e31,_0x505c5a)=>{const _0x1ddb8a=_0x269913;let {unitId:_0x17daa2,subUnitId:_0xb7b9b5,shapeType:_0x2da98d,shapeId:_0x74a11c,shapeData:_0x5cd408}=_0x505c5a,_0x1d55cf=_0x296e31[_0x1ddb8a(0x1b5)](Z)[_0x1ddb8a(0x1d5)](_0x17daa2,_0xb7b9b5,_0x74a11c);return _0x1d55cf&&(_0x1d55cf[_0x1ddb8a(0x259)](_0x2da98d),_0x5cd408&&(_0x1d55cf==null||_0x1d55cf[_0x1ddb8a(0x21c)](_0x5cd408))),!0x0;}};var be=_0x269913(0x202),xe=_0x269913(0x274);function Se(_0x5c0aac){const _0x2a1433=_0x269913;var _0x2641a3,_0x3578e2,_0x5d012d,_0x5051e4,_0x44cb77,_0x4089cf,_0x6ceb6e;return{'left':((_0x2641a3=_0x5c0aac[_0x2a1433(0x252)])==null?void 0x0:_0x2641a3[_0x2a1433(0x221)])??0x0,'top':((_0x3578e2=_0x5c0aac['transform'])==null?void 0x0:_0x3578e2[_0x2a1433(0x21a)])??0x0,'width':((_0x5d012d=_0x5c0aac['transform'])==null?void 0x0:_0x5d012d['width'])??0xc8,'height':((_0x5051e4=_0x5c0aac[_0x2a1433(0x252)])==null?void 0x0:_0x5051e4[_0x2a1433(0x1b6)])??0xc8,'rotation':((_0x44cb77=_0x5c0aac[_0x2a1433(0x252)])==null?void 0x0:_0x44cb77[_0x2a1433(0x1d8)])??0x0,'flipX':((_0x4089cf=_0x5c0aac[_0x2a1433(0x252)])==null?void 0x0:_0x4089cf[_0x2a1433(0x24d)])??!0x1,'flipY':((_0x6ceb6e=_0x5c0aac[_0x2a1433(0x252)])==null?void 0x0:_0x6ceb6e[_0x2a1433(0x1b4)])??!0x1};}let Ce=class{constructor(_0x227729,_0x45a25b,_0x44bfd5,_0x56fcdf){const _0x47bd7e=_0x269913;this['_commandService']=_0x227729,this[_0x47bd7e(0x23e)]=_0x45a25b,this[_0x47bd7e(0x21f)]=_0x44bfd5,this[_0x47bd7e(0x230)]=_0x56fcdf,Y(this,_0x47bd7e(0x1ef),_0x25d19a['UNIVER_SHEET']);}get[_0x269913(0x1ab)](){return{'subscribe':_0x120513=>{const _0x4d7de5=_0x1902;let _0x3085a4=this[_0x4d7de5(0x1fd)][_0x4d7de5(0x1d1)](_0x5e5f95=>{const _0x28f290=_0x4d7de5;(_0x5e5f95['id']===ue['id']||_0x5e5f95['id']===de['id']||_0x5e5f95['id']===Q['id']||_0x5e5f95['id']===ye['id'])&&_0x120513({'unitId':_0x5e5f95['params'][_0x28f290(0x1be)]});});return{'unsubscribe':()=>_0x3085a4[_0x4d7de5(0x200)]()};}};}[_0x269913(0x1cf)](_0x18f216){const _0x456821=_0x269913;var _0x29283f;let _0x1d5df3=(_0x29283f=this[_0x456821(0x21f)][_0x456821(0x1dc)](_0x18f216[_0x456821(0x1be)],_0x18f216['subUnitId']))==null?void 0x0:_0x29283f[_0x18f216[_0x456821(0x207)]],_0x6a3b54=this[_0x456821(0x23e)][_0x456821(0x273)](_0x18f216[_0x456821(0x1be)],_0x18f216[_0x456821(0x1dd)],_0x18f216[_0x456821(0x207)]);if(!_0x1d5df3||_0x1d5df3[_0x456821(0x1b2)]!==_0xec03e0[_0x456821(0x1ba)]||!_0x6a3b54)return null;let _0x48177b=_0x1d5df3[_0x456821(0x252)];return{..._0x18f216,'shapeType':_0x6a3b54,'shapeData':_0x25b5f7[_0x456821(0x223)](this['_shapeService'][_0x456821(0x1ed)](_0x18f216[_0x456821(0x1be)],_0x18f216[_0x456821(0x1dd)],_0x18f216['shapeId'])??{}),'name':_0x1d5df3[_0x456821(0x1e3)],'description':_0x1d5df3[_0x456821(0x22d)],'visible':_0x1d5df3[_0x456821(0x20d)]!==!0x0,'selectable':_0x1d5df3[_0x456821(0x20b)]!==!0x1,'transform':{'left':(_0x48177b==null?void 0x0:_0x48177b[_0x456821(0x221)])??0x0,'top':(_0x48177b==null?void 0x0:_0x48177b[_0x456821(0x21a)])??0x0,'width':(_0x48177b==null?void 0x0:_0x48177b[_0x456821(0x1b3)])??0xc8,'height':(_0x48177b==null?void 0x0:_0x48177b[_0x456821(0x1b6)])??0xc8,'rotation':(_0x48177b==null?void 0x0:_0x48177b[_0x456821(0x209)])??0x0,'flipX':(_0x48177b==null?void 0x0:_0x48177b[_0x456821(0x24d)])??!0x1,'flipY':(_0x48177b==null?void 0x0:_0x48177b[_0x456821(0x1b4)])??!0x1}};}['listShapes'](_0xa6f3b5){const _0x2d58b2=_0x269913;let _0x22ad1e=this['_drawingService'][_0x2d58b2(0x1dc)](_0xa6f3b5['unitId'],_0xa6f3b5[_0x2d58b2(0x1dd)])??{};return Object[_0x2d58b2(0x1e2)](_0x22ad1e)[_0x2d58b2(0x1c1)](_0x4f6808=>(_0x4f6808==null?void 0x0:_0x4f6808[_0x2d58b2(0x1b2)])===_0xec03e0[_0x2d58b2(0x1ba)])[_0x2d58b2(0x243)](_0x55ac79=>this['getShape']({..._0xa6f3b5,'shapeId':_0x55ac79[_0x2d58b2(0x257)]}))['filter'](_0x26ffd8=>!!_0x26ffd8);}[_0x269913(0x263)](_0x770a98){const _0x29ec7d=_0x269913;let _0x136977=this[_0x29ec7d(0x230)][_0x29ec7d(0x1e5)](_0x770a98,_0x25d19a['UNIVER_SHEET']);return(_0x136977==null?void 0x0:_0x136977[_0x29ec7d(0x1db)]()['flatMap'](_0x84f694=>this[_0x29ec7d(0x203)]({'hostType':this[_0x29ec7d(0x1ef)],'unitId':_0x770a98,'subUnitId':_0x84f694[_0x29ec7d(0x1b8)]()})))??[];}[_0x269913(0x268)](_0x499943,_0x3cd683){const _0xd7cbd6=_0x269913;let _0x46e548=_0x57defd(),_0x22df38=Se(_0x3cd683);return this[_0xd7cbd6(0x1fd)][_0xd7cbd6(0x1d0)](fe['id'],{'unitId':_0x499943[_0xd7cbd6(0x1be)],'subUnitId':_0x499943[_0xd7cbd6(0x1dd)],'shapeId':_0x46e548,'shapeType':_0x3cd683['shapeType'],'shapeData':_0x3cd683[_0xd7cbd6(0x245)],'name':_0x3cd683[_0xd7cbd6(0x1e3)],'description':_0x3cd683['description'],'position':{'x':_0x22df38[_0xd7cbd6(0x221)],'y':_0x22df38[_0xd7cbd6(0x21a)]},'width':_0x22df38[_0xd7cbd6(0x1b3)],'height':_0x22df38[_0xd7cbd6(0x1b6)],'rotation':_0x22df38['rotation'],'flipX':_0x22df38[_0xd7cbd6(0x24d)],'flipY':_0x22df38[_0xd7cbd6(0x1b4)],'visible':_0x3cd683[_0xd7cbd6(0x256)]??!0x0,'selectable':_0x3cd683[_0xd7cbd6(0x20b)]??!0x0})?{..._0x499943,'shapeId':_0x46e548,'shapeType':_0x3cd683['shapeType'],'shapeData':_0x25b5f7['deepClone'](_0x3cd683[_0xd7cbd6(0x245)]??{}),'name':_0x3cd683[_0xd7cbd6(0x1e3)],'description':_0x3cd683[_0xd7cbd6(0x22d)],'visible':_0x3cd683[_0xd7cbd6(0x256)]??!0x0,'selectable':_0x3cd683['selectable']??!0x0,'transform':_0x22df38}:null;}[_0x269913(0x25b)](_0x36ae92,_0x55bb45){const _0x4f90f5=_0x269913;var _0x506dbe;let _0x13a664=this[_0x4f90f5(0x1cf)](_0x36ae92);if(!_0x13a664)return!0x1;let _0x3e0e59={..._0x13a664['transform'],..._0x55bb45[_0x4f90f5(0x252)]};return this[_0x4f90f5(0x1fd)][_0x4f90f5(0x1d0)](pe['id'],{'unitId':_0x36ae92['unitId'],'subUnitId':_0x36ae92['subUnitId'],'shapeId':_0x36ae92[_0x4f90f5(0x207)],'shapeType':_0x55bb45[_0x4f90f5(0x1ec)]??((_0x506dbe=_0x55bb45[_0x4f90f5(0x245)])==null?void 0x0:_0x506dbe['shapeType'])??_0x13a664[_0x4f90f5(0x1ec)],'shapeData':_0x55bb45['shapeData']??_0x13a664[_0x4f90f5(0x245)],'position':{'x':_0x3e0e59[_0x4f90f5(0x221)],'y':_0x3e0e59[_0x4f90f5(0x21a)]},'width':_0x3e0e59['width'],'height':_0x3e0e59[_0x4f90f5(0x1b6)],'rotation':_0x3e0e59[_0x4f90f5(0x1d8)],'flipX':_0x3e0e59[_0x4f90f5(0x24d)],'flipY':_0x3e0e59[_0x4f90f5(0x1b4)],'name':'name'in _0x55bb45?_0x55bb45[_0x4f90f5(0x1e3)]:_0x13a664['name'],'description':_0x4f90f5(0x22d)in _0x55bb45?_0x55bb45[_0x4f90f5(0x22d)]:_0x13a664['description'],'visible':_0x55bb45['visible']??_0x13a664[_0x4f90f5(0x256)],'selectable':_0x55bb45[_0x4f90f5(0x20b)]??_0x13a664['selectable']});}[_0x269913(0x1f0)](_0x3b56df,_0x353e7b,_0x450d17){const _0x16f90d=_0x269913;let _0x16c2a3=this[_0x16f90d(0x1cf)](_0x3b56df),_0x42c513=_0x16c2a3==null?void 0x0:_0x16c2a3[_0x16f90d(0x245)]['formulaBinding'];return!_0x16c2a3||!_0x42c513?null:{'id':Q['id'],'params':{'unitId':_0x3b56df[_0x16f90d(0x1be)],'subUnitId':_0x3b56df[_0x16f90d(0x1dd)],'shapeId':_0x3b56df[_0x16f90d(0x207)],'shapeData':{..._0x16c2a3[_0x16f90d(0x245)],'formulaBinding':{..._0x42c513,'lastValue':_0x25b5f7[_0x16f90d(0x223)](_0x450d17)}},'replace':!0x0,'formulaLastValueGuard':_0x353e7b}};}['removeShape'](_0x461cf0){const _0x30e0f3=_0x269913;return this[_0x30e0f3(0x1fd)][_0x30e0f3(0x1d0)](_0x2d8f12['id'],{'unitId':_0x461cf0['unitId'],'drawings':[{'unitId':_0x461cf0[_0x30e0f3(0x1be)],'subUnitId':_0x461cf0['subUnitId'],'drawingId':_0x461cf0[_0x30e0f3(0x207)],'drawingType':_0xec03e0[_0x30e0f3(0x1ba)]}]});}['bringToFront'](_0x1c28ae){const _0x4851fd=_0x269913;return this[_0x4851fd(0x22c)](_0x1c28ae,_0x522172[_0x4851fd(0x228)]);}[_0x269913(0x220)](_0xca1868){const _0x2db1d6=_0x269913;return this[_0x2db1d6(0x22c)](_0xca1868,_0x522172[_0x2db1d6(0x275)]);}['sendBackward'](_0x52e118){const _0x144068=_0x269913;return this[_0x144068(0x22c)](_0x52e118,_0x522172[_0x144068(0x1f5)]);}['sendToBack'](_0x25ff45){const _0x51f60e=_0x269913;return this[_0x51f60e(0x22c)](_0x25ff45,_0x522172['back']);}['_arrange'](_0xe3fc5f,_0x25bab0){const _0x7e9317=_0x269913;return this[_0x7e9317(0x1fd)]['syncExecuteCommand'](_0x63833c['id'],{'unitId':_0xe3fc5f[_0x7e9317(0x1be)],'subUnitId':_0xe3fc5f[_0x7e9317(0x1dd)],'drawingIds':[_0xe3fc5f[_0x7e9317(0x207)]],'arrangeType':_0x25bab0});}};function _0x49b3(){const _0x244460=['getShapeModel','30cClRsO','fromJSON','rotation','UNIVER_SHEET','getLineShapeRelation','getSheets','getDrawingData','subUnitId','mode','sheets-shape.config','fill','_planConnector','values','name','75648uHyNgq','getUnit','originals','data','getBasicShapeRelation','_initCommandInterceptor','position','push','shapeType','getShapeDataById','call','hostType','createFormulaLastValueMutation','getShapeData','register','from','point','backward','getConnectionSiteList','params','_addLineRerouteUpdates','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','sheet.mutation.remove-shape','_sheetSkeletonService','index','_commandService','forEach','_sheetsShapeService','dispose','add','@univerjs-pro/sheets-shape','listShapes','getBatchUpdateOp','updateContext','_ensureShapeModelManager','shapeId','_sheetInterceptorService','angle','getDrawingByParam','selectable','updates','hidden','sheet.mutation.update-shape-type','formulaBinding','getShapeDisplayNames','removeShape','decorate','resizeEnabled','setConfig','_config','skeleton','prototype','isFrom','rotateEnabled','top','_shapeAdapter','setShapeData','_resolveBinding','getOwnPropertyDescriptor','_drawingService','bringForward','left','getShapeTypeById','deepClone','toJSON','_planDeletes','sheet.mutation.update-shape-data','pluginName','front','toPrimitive','sheet.command.update-line-shape-resize','_drawingManagerService','_arrange','description','sin','getShapeTextData','_instanceService','hasShape','type','sheet.command.insert-shape','constructor','28GEHwze','borderEnabled','deletes','set','sheet.command.set-shape-drawing-data','default','shapeName','_injector','function','_shapeService','onCommandExecute','cos','range','SHEET_SHAPE_PLUGIN','map','lineShapeId','shapeData','refresh','iterator','isLineShape','getShapeRelation','94mdxihk','1391229GWRMNy','preRedos','flipX','_shapeModelManagerMap','getCellWithCoordByIndex','onStarting','_addLineFollowShapeUpdates','transform','has','adjustValues','isHorizontal','visible','drawingId','string','setShapeType','sheet.command.set-shape-rotate','updateShape','formula','353643NRQStd','sheet.command.toggle-shape-flip','_deserializeShapeForUnit','getStartConnectInfo','98966Rvlqcu','sheet.command.set-shape-text-vertical-toggle','listShapesInUnit','12HnFnVS','lineType','689zFMsqv','_initSnapshot','createShape','_linesIds','MUTATION','length','entries','undos','insertShape','cxnIndex','keys','worldRect','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getShapeType','1.0.0-beta.0','forward','634960TgRXLL','getBasicShapeType','delete','_shapes','UPDATE','getBatchAddOp','COMMAND','_groupIds','version','_serializeShapeForUnit','INSERT','preUndos','shapeChanged$','319rNmQbQ','_toSnapshot','parse','9773fWgsFF','getSkeleton','startX','drawingType','width','flipY','get','height','getAdjustNames','getSheetId','_getConnectPointInfo','DRAWING_SHAPE','addShape','getName','redos','unitId','startY','ensureSkeleton','filter','object','getEndConnectInfo','disposeWithMe','registerPluginResource','pushUndoRedo','clear','getAdjustValueByName','result','symbol','registerCommand','defineProperty','stringify','_initCommands','getShape','syncExecuteCommand','onCommandExecuted','sheet.command.update-connector-relation','30hapFZI','268945NBEufC'];_0x49b3=function(){return _0x244460;};return _0x49b3();}Ce=le([X(0x0,_0x23198b),X(0x1,_0xf697fc(Z)),X(0x2,_0x5b63ed),X(0x3,_0xa7a488)],Ce);const we={};let Te=class extends _0x3cd302{constructor(_0x172940,_0x10c9d6,_0x2070f5,_0x100abb,_0x32bbcd,_0x50deb4,_0x51b7fd){const _0x3ac8b8=_0x269913;super(),this[_0x3ac8b8(0x1fd)]=_0x172940,this[_0x3ac8b8(0x208)]=_0x10c9d6,this[_0x3ac8b8(0x1fb)]=_0x2070f5,this[_0x3ac8b8(0x1ff)]=_0x100abb,this['_drawingManagerService']=_0x32bbcd,this['_shapeHostAdapterRegistry']=_0x50deb4,this[_0x3ac8b8(0x1ce)](),this['_initCommandInterceptor'](),this[_0x3ac8b8(0x1c4)](this['_shapeHostAdapterRegistry']['register'](_0x51b7fd));}[_0x269913(0x1ce)](){const _0xec1bbf=_0x269913;[fe,pe,me,he,ge,_e,ve,ue,de,ye,Q][_0xec1bbf(0x1fe)](_0x51eaff=>this[_0xec1bbf(0x1c4)](this[_0xec1bbf(0x1fd)][_0xec1bbf(0x1cb)](_0x51eaff)));}[_0x269913(0x1e9)](){const _0x49ad05=_0x269913;this[_0x49ad05(0x1c4)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x55a653=>{const _0x8edb9=_0x49ad05;if(_0x55a653['id']===_0x2d8f12['id']){let {drawings:_0x11e993}=_0x55a653[_0x8edb9(0x1f7)],_0x5a6e70=_0x11e993[_0x8edb9(0x1c1)](_0x2738e7=>_0x2738e7[_0x8edb9(0x1b2)]===_0xec03e0[_0x8edb9(0x1ba)]);if(_0x5a6e70[_0x8edb9(0x26b)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x182a93=[],_0x3a78c1=[];return _0x5a6e70[_0x8edb9(0x1fe)](_0x515ddd=>{const _0x21186a=_0x8edb9;let {unitId:_0x289f80,subUnitId:_0x32d8cc,drawingId:_0x183f42}=_0x515ddd,_0x76693e=this[_0x21186a(0x1ff)][_0x21186a(0x1d5)](_0x289f80,_0x32d8cc,_0x183f42);if(!_0x76693e)throw TypeError(_0x21186a(0x272)+_0x76693e);_0x182a93[_0x21186a(0x1eb)]({'id':de['id'],'params':{'unitId':_0x289f80,'subUnitId':_0x32d8cc,'shapeId':_0x183f42}}),_0x3a78c1[_0x21186a(0x1eb)]({'id':ue['id'],'params':{'unitId':_0x289f80,'subUnitId':_0x32d8cc,'shapeId':_0x183f42,'shapeType':_0x76693e[_0x21186a(0x273)](),'shapeData':_0x76693e[_0x21186a(0x1f1)]()}});let _0x317d8a=this[_0x21186a(0x1ff)]['getBasicShapeRelation'](_0x289f80,_0x32d8cc,_0x183f42);if(_0x317d8a)for(let _0x70a28f of _0x317d8a){let _0x5dc435=_0x70a28f['lineShapeId'],_0x2119bf=_0x70a28f[_0x21186a(0x218)],_0x2f0631=_0x2119bf?{'from':void 0x0}:{'to':void 0x0},_0x1193f5=_0x2119bf?{'from':{'shapeId':_0x70a28f[_0x21186a(0x207)],'cxnIndex':_0x70a28f[_0x21186a(0x26f)]}}:{'to':{'shapeId':_0x70a28f['shapeId'],'cxnIndex':_0x70a28f[_0x21186a(0x26f)]}};_0x182a93[_0x21186a(0x1eb)]({'id':Q['id'],'params':{'unitId':_0x289f80,'subUnitId':_0x32d8cc,'shapeId':_0x5dc435,'shapeData':{'relation':_0x2f0631}}}),_0x3a78c1['push']({'id':Q['id'],'params':{'unitId':_0x289f80,'subUnitId':_0x32d8cc,'shapeId':_0x5dc435,'shapeData':{'relation':_0x1193f5}}});}}),{'preRedos':_0x182a93,'redos':[],'preUndos':[],'undos':_0x3a78c1};}if(_0x55a653['id']===_0x178098['id']){let {drawings:_0x459eb0}=_0x55a653[_0x8edb9(0x1f7)],_0x243df0=_0x459eb0['filter'](_0x56c71f=>_0x56c71f['drawingType']===_0xec03e0[_0x8edb9(0x1ba)]);if(_0x243df0[_0x8edb9(0x26b)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2b9818=[],_0x245de0=[];for(let _0x566b51 of _0x243df0){let {unitId:_0x109f8c,subUnitId:_0x4f1573,drawingId:_0x90b06,transform:_0x37a1d3}=_0x566b51;if(!_0x109f8c||!_0x4f1573||!_0x90b06||!_0x37a1d3)continue;let _0x371999=this[_0x8edb9(0x1ff)][_0x8edb9(0x1d5)](_0x109f8c,_0x4f1573,_0x90b06);if(!_0x371999)throw TypeError(_0x8edb9(0x272)+_0x371999);if(_0x62453b(_0x371999[_0x8edb9(0x273)]())){let _0x21061a=this[_0x8edb9(0x1ff)][_0x8edb9(0x1da)](_0x109f8c,_0x4f1573,_0x90b06);_0x21061a&&(_0x2b9818['push']({'id':Q['id'],'params':{'unitId':_0x109f8c,'subUnitId':_0x4f1573,'shapeId':_0x90b06,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x245de0[_0x8edb9(0x1eb)]({'id':Q['id'],'params':{'unitId':_0x109f8c,'subUnitId':_0x4f1573,'shapeId':_0x90b06,'shapeData':{'relation':_0x21061a}}}));}else{let _0x5d9e56=this[_0x8edb9(0x1ff)][_0x8edb9(0x1e8)](_0x109f8c,_0x4f1573,_0x90b06);if(_0x5d9e56&&_0x5d9e56[_0x8edb9(0x26b)]>0x0)for(let _0xf36d67 of _0x5d9e56){let _0x5297a6=_0xf36d67[_0x8edb9(0x244)],_0x3261e9=_0xf36d67[_0x8edb9(0x218)],_0x5869fb=this[_0x8edb9(0x1ff)][_0x8edb9(0x1d5)](_0x109f8c,_0x4f1573,_0x5297a6);if(!_0x5869fb)continue;let _0x17d397=_0x5869fb[_0x8edb9(0x260)](),_0x4b87b0=_0x5869fb[_0x8edb9(0x1c3)]();_0x17d397&&_0x4b87b0?this['_addLineRerouteUpdates'](_0x109f8c,_0x4f1573,_0x5297a6,_0x5869fb,_0x17d397,_0x4b87b0,_0x2b9818,_0x245de0,_0x90b06,_0x37a1d3):this[_0x8edb9(0x251)](_0x109f8c,_0x4f1573,_0x5297a6,_0x5869fb,_0x3261e9?_0x17d397:_0x4b87b0,_0x3261e9,_0x2b9818,_0x245de0,_0x90b06,_0x37a1d3);}}}return{'preRedos':[],'redos':_0x2b9818,'preUndos':_0x245de0,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x269913(0x1b9)](_0x4beee8,_0x6d70f1,_0x2ef167,_0x4614a5,_0x5d9a8d){const _0x5e4a42=_0x269913;if(!_0x6d70f1||!_0x2ef167)return null;let {shapeId:_0x22e66d,cxnIndex:_0x4252bf}=_0x4beee8,_0x5801ae=this['_sheetsShapeService']['getShapeModel'](_0x6d70f1,_0x2ef167,_0x22e66d);if(!_0x5801ae)return null;let _0x43f601=this['_drawingManagerService'][_0x5e4a42(0x20a)]({'unitId':_0x6d70f1,'subUnitId':_0x2ef167,'drawingId':_0x22e66d});if(!(_0x43f601!=null&&_0x43f601[_0x5e4a42(0x252)]))return null;let {left:_0x4a0601=0x0,top:_0x1459ef=0x0,width:_0x25a22c=0x0,height:_0x506357=0x0,flipX:_0x1efdc5=!0x1,flipY:_0x1f90b5=!0x1,angle:_0x21ba56}=_0x43f601[_0x5e4a42(0x252)];_0x5d9a8d&&_0x4614a5===_0x22e66d&&(_0x4a0601=_0x5d9a8d[_0x5e4a42(0x221)]??_0x4a0601,_0x1459ef=_0x5d9a8d['top']??_0x1459ef,_0x25a22c=_0x5d9a8d[_0x5e4a42(0x1b3)]??_0x25a22c,_0x506357=_0x5d9a8d[_0x5e4a42(0x1b6)]??_0x506357,_0x1efdc5=_0x5d9a8d[_0x5e4a42(0x24d)]??_0x1efdc5,_0x1f90b5=_0x5d9a8d[_0x5e4a42(0x1b4)]??_0x1f90b5,_0x21ba56=_0x5d9a8d[_0x5e4a42(0x209)]??_0x21ba56),_0x5801ae[_0x5e4a42(0x205)]({'width':_0x25a22c,'height':_0x506357});let _0x455bbb=_0x5801ae[_0x5e4a42(0x1f6)]()['find'](_0x180b51=>_0x180b51[_0x5e4a42(0x1fc)]===_0x4252bf);if(!_0x455bbb)return null;let _0x99d6b4=_0x1efdc5?_0x25a22c-_0x455bbb['x']:_0x455bbb['x'],_0x2abf69=_0x1f90b5?_0x506357-_0x455bbb['y']:_0x455bbb['y'];if(_0x21ba56!==0x0&&_0x21ba56!=null){let _0x1d56e0=_0x21ba56*Math['PI']/0xb4,_0x591815=Math[_0x5e4a42(0x240)](_0x1d56e0),_0x40ccb5=Math[_0x5e4a42(0x22e)](_0x1d56e0),_0x4e1a4a=_0x25a22c/0x2,_0x548ab8=_0x506357/0x2,_0x5b7434=_0x99d6b4-_0x4e1a4a,_0x572397=_0x2abf69-_0x548ab8;_0x99d6b4=_0x4e1a4a+_0x5b7434*_0x591815-_0x572397*_0x40ccb5,_0x2abf69=_0x548ab8+_0x5b7434*_0x40ccb5+_0x572397*_0x591815;}_0x99d6b4+=_0x4a0601,_0x2abf69+=_0x1459ef;let _0x4c3040=_0x455bbb['ang']/0xea60;_0x1efdc5&&(_0x4c3040=0xb4-_0x4c3040),_0x1f90b5&&(_0x4c3040=-_0x4c3040),_0x4c3040+=_0x21ba56||0x0,_0x4c3040=(_0x4c3040%0x168+0x168)%0x168;let _0x50306e=_0x3c8648({'left':_0x4a0601,'top':_0x1459ef,'width':_0x25a22c,'height':_0x506357},_0x21ba56||0x0);return{'point':{'x':_0x99d6b4,'y':_0x2abf69},'angle':_0x4c3040,'bounds':_0x50306e};}['_addLineRerouteUpdates'](_0x596867,_0x9aa321,_0x110d31,_0x238f85,_0x544d75,_0x5740f1,_0x16d0a6,_0x156c59,_0x1e8a6e,_0x444ad0){const _0x597b08=_0x269913;let _0x5ba697=this['_sheetSkeletonService'][_0x597b08(0x1b0)](_0x596867,_0x9aa321);if(!_0x5ba697)return;let _0x28fdf2=_0x238f85[_0x597b08(0x249)](),_0x4e69b5=_0x238f85[_0x597b08(0x1b7)](),_0x5282a3={},_0x3ec9ee={};_0x4e69b5[_0x597b08(0x1fe)](_0x4e4906=>{const _0x598874=_0x597b08;let _0x4704af=_0x238f85[_0x598874(0x1c8)](_0x4e4906);_0x3ec9ee[_0x4e4906]=_0x4704af??0x0;});let _0x85d714=this[_0x597b08(0x1b9)](_0x544d75,_0x596867,_0x9aa321,_0x1e8a6e,_0x444ad0),_0x46b3e1=this[_0x597b08(0x1b9)](_0x5740f1,_0x596867,_0x9aa321,_0x1e8a6e,_0x444ad0);if(_0x85d714&&_0x46b3e1){let _0x5a7c90=_0x238f85[_0x597b08(0x273)](),_0x5563ce=_0x37bc97(_0x85d714,_0x46b3e1,_0x5a7c90),_0x140336=_0x5a7c90;if(_0x5563ce){let _0x29fae4=_0x3c3b6b(_0x5563ce,_0x238f85[_0x597b08(0x273)]()),_0x32c527=this['_drawingManagerService'][_0x597b08(0x1dc)](_0x596867,_0x9aa321);if(_0x32c527&&_0x32c527[_0x110d31]){let _0x24c6c3=_0x32c527[_0x110d31];_0x140336=_0x29fae4[_0x597b08(0x265)];for(let [_0x105d8d,_0x42b68d]of Object[_0x597b08(0x26c)](_0x29fae4['adjustValues']))_0x5282a3[_0x105d8d]=_0x42b68d;let _0x51e1ff={..._0x24c6c3[_0x597b08(0x252)],'width':_0x29fae4[_0x597b08(0x271)][_0x597b08(0x1b3)],'height':_0x29fae4[_0x597b08(0x271)]['height'],'left':_0x29fae4[_0x597b08(0x271)]['left'],'top':_0x29fae4[_0x597b08(0x271)]['top'],'flipX':_0x29fae4[_0x597b08(0x271)][_0x597b08(0x24d)],'flipY':_0x29fae4[_0x597b08(0x271)][_0x597b08(0x1b4)],'angle':_0x29fae4['rotation']},_0x3cfb36=_0x5d3f3a(_0x51e1ff,_0x5ba697),_0x452ebc=_0x3930ef(_0x51e1ff,_0x5ba697),_0x4ffe4c={'unitId':_0x596867,'subUnitId':_0x9aa321,'drawingType':_0xec03e0[_0x597b08(0x1ba)],'drawingId':_0x110d31,'transform':_0x51e1ff,'sheetTransform':_0x3cfb36,'axisAlignSheetTransform':_0x452ebc},{unitId:_0x71d761,subUnitId:_0x57dcb0,undo:_0x3b4946,redo:_0x40b4a2,objects:_0x27a64c}=this[_0x597b08(0x22b)][_0x597b08(0x204)]([_0x4ffe4c]);_0x16d0a6['push']({'id':_0x326082['id'],'params':{'unitId':_0x71d761,'subUnitId':_0x57dcb0,'op':_0x40b4a2,'objects':_0x27a64c,'type':_0x426f20['UPDATE']}}),_0x156c59['push']({'id':_0x326082['id'],'params':{'unitId':_0x71d761,'subUnitId':_0x57dcb0,'op':_0x3b4946,'objects':_0x27a64c,'type':_0x426f20[_0x597b08(0x1a3)]}});}_0x238f85['removeLinePoints']();}_0x16d0a6['push']({'id':Q['id'],'params':{'unitId':_0x596867,'subUnitId':_0x9aa321,'shapeId':_0x110d31,'shapeType':_0x140336,'shapeData':{'adjustValues':_0x5282a3,'relation':_0x28fdf2}}}),_0x156c59[_0x597b08(0x1eb)]({'id':Q['id'],'params':{'unitId':_0x596867,'subUnitId':_0x9aa321,'shapeId':_0x110d31,'shapeType':_0x5a7c90,'shapeData':{'adjustValues':_0x3ec9ee,'relation':_0x28fdf2}}});}}[_0x269913(0x251)](_0x4d526a,_0x99c8bc,_0x26b405,_0x20391b,_0x4ff308,_0xbf9d58,_0x1f1071,_0x19c50e,_0x13677b,_0x4705ea){const _0x3097eb=_0x269913;var _0x27bf1e;if(!_0x4ff308)return;let _0x11855f=this[_0x3097eb(0x1fb)][_0x3097eb(0x1b0)](_0x4d526a,_0x99c8bc);if(!_0x11855f)return;let _0x1a9275=(_0x27bf1e=this[_0x3097eb(0x22b)]['getDrawingByParam']({'unitId':_0x4d526a,'subUnitId':_0x99c8bc,'drawingId':_0x13677b}))==null?void 0x0:_0x27bf1e['transform'];if(!_0x1a9275)return;let _0x3bd259=_0x1a9275['left']!==_0x4705ea[_0x3097eb(0x221)]||_0x1a9275[_0x3097eb(0x21a)]!==_0x4705ea[_0x3097eb(0x21a)],_0x5bf9eb=_0x1a9275[_0x3097eb(0x1b3)]!==_0x4705ea[_0x3097eb(0x1b3)]||_0x1a9275[_0x3097eb(0x1b6)]!==_0x4705ea['height'],_0x17e2c7=_0x1a9275[_0x3097eb(0x24d)]!==_0x4705ea[_0x3097eb(0x24d)]||_0x1a9275[_0x3097eb(0x1b4)]!==_0x4705ea[_0x3097eb(0x1b4)],_0x377e53=_0x1a9275[_0x3097eb(0x209)]!==_0x4705ea['angle'];if(_0x3bd259&&!_0x5bf9eb&&!_0x17e2c7&&!_0x377e53){let _0xe3989e=(_0x4705ea[_0x3097eb(0x221)]??0x0)-(_0x1a9275[_0x3097eb(0x221)]??0x0),_0x5bb6b1=(_0x4705ea[_0x3097eb(0x21a)]??0x0)-(_0x1a9275[_0x3097eb(0x21a)]??0x0),_0x258471=this['_drawingManagerService'][_0x3097eb(0x1dc)](_0x4d526a,_0x99c8bc);if(_0x258471&&_0x258471[_0x26b405]){var _0x445f98,_0x5ec0f1;let _0x61e083=_0x258471[_0x26b405],_0x5e9fb9={..._0x61e083[_0x3097eb(0x252)],'left':(((_0x445f98=_0x61e083[_0x3097eb(0x252)])==null?void 0x0:_0x445f98[_0x3097eb(0x221)])??0x0)+_0xe3989e,'top':(((_0x5ec0f1=_0x61e083[_0x3097eb(0x252)])==null?void 0x0:_0x5ec0f1[_0x3097eb(0x21a)])??0x0)+_0x5bb6b1},_0x2e2771=_0x5d3f3a(_0x5e9fb9,_0x11855f),_0x11be42=_0x3930ef(_0x5e9fb9,_0x11855f),_0x14447a={'unitId':_0x4d526a,'subUnitId':_0x99c8bc,'drawingType':_0xec03e0[_0x3097eb(0x1ba)],'drawingId':_0x26b405,'transform':_0x5e9fb9,'sheetTransform':_0x2e2771,'axisAlignSheetTransform':_0x11be42},{unitId:_0x176376,subUnitId:_0x490bf8,undo:_0x62bbd7,redo:_0x470631,objects:_0x315dc8}=this['_drawingManagerService'][_0x3097eb(0x204)]([_0x14447a]);_0x1f1071[_0x3097eb(0x1eb)]({'id':_0x326082['id'],'params':{'unitId':_0x176376,'subUnitId':_0x490bf8,'op':_0x470631,'objects':_0x315dc8,'type':_0x426f20['UPDATE']}}),_0x19c50e['push']({'id':_0x326082['id'],'params':{'unitId':_0x176376,'subUnitId':_0x490bf8,'op':_0x62bbd7,'objects':_0x315dc8,'type':_0x426f20[_0x3097eb(0x1a3)]}});}}else{let _0x11f0ea=_0x20391b[_0x3097eb(0x260)](),_0x5925a1=_0x20391b[_0x3097eb(0x1c3)]();this[_0x3097eb(0x1f8)](_0x4d526a,_0x99c8bc,_0x26b405,_0x20391b,_0x11f0ea,_0x5925a1,_0x1f1071,_0x19c50e,_0x13677b,_0x4705ea);}}};Te=le([X(0x0,_0x23198b),X(0x1,_0xf697fc(_0x50f767)),X(0x2,_0xf697fc(_0x5b25ce)),X(0x3,_0xf697fc(Z)),X(0x4,_0xf697fc(_0x519085)),X(0x5,_0xf697fc(_0x58111b)),X(0x6,_0xf697fc(Ce))],Te);let Ee=class extends _0x3cd302{constructor(_0x5dd7cb,_0x49acaf,_0x54cb19){const _0x434ad5=_0x269913;super(),this[_0x434ad5(0x23e)]=_0x5dd7cb,this[_0x434ad5(0x21b)]=_0x49acaf,this[_0x434ad5(0x1c4)](_0x54cb19[_0x434ad5(0x1f2)](this));}[_0x269913(0x252)](_0x445a78){const _0x4b2315=_0x269913;let _0x35033b={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x4b2315(0x225)](_0x445a78,_0x35033b);for(let [_0x447b1f,_0x58b166]of _0x445a78[_0x4b2315(0x1e6)])this[_0x4b2315(0x1e1)](_0x445a78,_0x447b1f,_0x58b166,_0x35033b);return _0x35033b;}[_0x269913(0x225)](_0x5b3e4e,_0x2aec79){const _0x557801=_0x269913;if(_0x5b3e4e[_0x557801(0x1de)]==='command')for(let _0x26281d of _0x5b3e4e[_0x557801(0x237)]){let _0x587c7e=_0x5b3e4e['originals']['get'](_0x26281d),_0x4924bd=this['_shapeService']['getShapeModel'](_0x5b3e4e[_0x557801(0x1be)],_0x5b3e4e[_0x557801(0x1dd)],_0x26281d);(_0x587c7e==null?void 0x0:_0x587c7e[_0x557801(0x1b2)])!==_0xec03e0[_0x557801(0x1ba)]||!_0x4924bd||(_0x2aec79['preRedos'][_0x557801(0x1eb)]({'id':de['id'],'params':{'unitId':_0x5b3e4e[_0x557801(0x1be)],'subUnitId':_0x5b3e4e[_0x557801(0x1dd)],'shapeId':_0x26281d}}),_0x2aec79[_0x557801(0x26d)]['push']({'id':ue['id'],'params':{'unitId':_0x5b3e4e[_0x557801(0x1be)],'subUnitId':_0x5b3e4e['subUnitId'],'shapeId':_0x26281d,'shapeName':_0x4924bd[_0x557801(0x1bc)](),'shapeType':_0x4924bd[_0x557801(0x273)](),'shapeData':_0x25b5f7['deepClone'](_0x4924bd['getShapeData']())}}));}}['_planConnector'](_0x5003db,_0x536ed5,_0x3a630c,_0x4ce2ba){const _0x171290=_0x269913;if(_0x3a630c['drawingType']!==_0xec03e0[_0x171290(0x1ba)]||_0x5003db[_0x171290(0x237)]['has'](_0x536ed5))return;let _0x45d3f8=this[_0x171290(0x23e)][_0x171290(0x1d5)](_0x5003db[_0x171290(0x1be)],_0x5003db[_0x171290(0x1dd)],_0x536ed5);if(!_0x45d3f8||!_0x62453b(_0x45d3f8[_0x171290(0x273)]()))return;let _0x36ef3a=_0x45d3f8[_0x171290(0x249)]();if(!(_0x5003db[_0x171290(0x20c)][_0x171290(0x253)](_0x536ed5)||_0x36ef3a!=null&&_0x36ef3a[_0x171290(0x1f3)]&&(_0x5003db[_0x171290(0x20c)][_0x171290(0x253)](_0x36ef3a[_0x171290(0x1f3)][_0x171290(0x207)])||_0x5003db[_0x171290(0x237)]['has'](_0x36ef3a[_0x171290(0x1f3)][_0x171290(0x207)]))||_0x36ef3a!=null&&_0x36ef3a['to']&&(_0x5003db[_0x171290(0x20c)][_0x171290(0x253)](_0x36ef3a['to'][_0x171290(0x207)])||_0x5003db[_0x171290(0x237)]['has'](_0x36ef3a['to'][_0x171290(0x207)]))))return;let _0x1499bc=_0x5003db['updates'][_0x171290(0x1b5)](_0x536ed5)??_0x3a630c,_0x34c9d6=this['_toSnapshot'](_0x5003db,_0x1499bc);if(!_0x34c9d6)return;let _0x1ef24c=_0x68e3a9(_0x34c9d6);if(_0x1ef24c[_0x171290(0x26b)]<0x2)return;let _0x3f81d8=_0x25b5f7[_0x171290(0x223)](_0x36ef3a??{}),_0x2c3d7c=_0x3f81d8[_0x171290(0x1f3)]&&this[_0x171290(0x21d)](_0x5003db,_0x3f81d8['from'][_0x171290(0x207)],_0x3f81d8[_0x171290(0x1f3)][_0x171290(0x26f)]),_0xd4fea8=_0x3f81d8['to']&&this['_resolveBinding'](_0x5003db,_0x3f81d8['to'][_0x171290(0x207)],_0x3f81d8['to'][_0x171290(0x26f)]);_0x3f81d8[_0x171290(0x1f3)]&&!_0x2c3d7c&&delete _0x3f81d8[_0x171290(0x1f3)],_0x3f81d8['to']&&!_0xd4fea8&&delete _0x3f81d8['to'];let _0x255556=_0x16dda2(_0x34c9d6,_0x2c3d7c||_0x20f186((_0xd4fea8==null?void 0x0:_0xd4fea8[_0x171290(0x1f4)])??_0x1ef24c[_0x1ef24c[_0x171290(0x26b)]-0x1],_0x1ef24c[0x0]),_0xd4fea8||_0x20f186((_0x2c3d7c==null?void 0x0:_0x2c3d7c[_0x171290(0x1f4)])??_0x1ef24c[0x0],_0x1ef24c[_0x1ef24c[_0x171290(0x26b)]-0x1]),_0x3f81d8);if(!(!(_0x255556!=null&&_0x255556[_0x171290(0x252)])||!_0x255556[_0x171290(0x1ec)]||!_0x255556[_0x171290(0x245)])){if(this['_applyUpdate'](_0x5003db,_0x1499bc,_0x255556),_0x5003db[_0x171290(0x1de)]===_0x171290(0x246)){_0x45d3f8[_0x171290(0x259)](_0x255556[_0x171290(0x1ec)]),_0x45d3f8[_0x171290(0x21c)](_0x25b5f7[_0x171290(0x223)](_0x255556[_0x171290(0x245)]),!0x1);return;}_0x4ce2ba[_0x171290(0x1bd)][_0x171290(0x1eb)]({'id':Q['id'],'params':{'unitId':_0x5003db[_0x171290(0x1be)],'subUnitId':_0x5003db[_0x171290(0x1dd)],'shapeId':_0x536ed5,'shapeType':_0x255556[_0x171290(0x1ec)],'shapeData':_0x25b5f7[_0x171290(0x223)](_0x255556[_0x171290(0x245)]),'replace':!0x0}}),_0x4ce2ba[_0x171290(0x26d)][_0x171290(0x1eb)]({'id':Q['id'],'params':{'unitId':_0x5003db[_0x171290(0x1be)],'subUnitId':_0x5003db[_0x171290(0x1dd)],'shapeId':_0x536ed5,'shapeType':_0x45d3f8['getShapeType'](),'shapeData':_0x25b5f7[_0x171290(0x223)](_0x45d3f8[_0x171290(0x1f1)]()),'replace':!0x0}});}}[_0x269913(0x21d)](_0x80d687,_0x377334,_0x3200cf){const _0x23fb35=_0x269913;if(_0x80d687[_0x23fb35(0x237)]['has'](_0x377334))return null;let _0x7623bc=_0x80d687['updates'][_0x23fb35(0x1b5)](_0x377334)??_0x80d687[_0x23fb35(0x1e6)]['get'](_0x377334);if(!_0x7623bc)return null;let _0x5cb98b=this['_toSnapshot'](_0x80d687,_0x7623bc);return _0x5cb98b?_0x4a2c60(_0x5cb98b,_0x3200cf):null;}[_0x269913(0x1ad)](_0x44c6cb,_0x5d2e87){const _0x1598a3=_0x269913;let _0x287b37={'hostType':_0x25d19a[_0x1598a3(0x1d9)],'unitId':_0x44c6cb['unitId'],'subUnitId':_0x44c6cb[_0x1598a3(0x1dd)],'shapeId':_0x5d2e87[_0x1598a3(0x257)]},_0x55ca4d=this[_0x1598a3(0x21b)][_0x1598a3(0x1cf)](_0x287b37);return!_0x55ca4d||!_0x5d2e87[_0x1598a3(0x252)]?null:{..._0x55ca4d,'transform':{'left':_0x5d2e87[_0x1598a3(0x252)][_0x1598a3(0x221)]??0x0,'top':_0x5d2e87[_0x1598a3(0x252)]['top']??0x0,'width':_0x5d2e87['transform'][_0x1598a3(0x1b3)]??0x0,'height':_0x5d2e87[_0x1598a3(0x252)][_0x1598a3(0x1b6)]??0x0,'rotation':_0x5d2e87[_0x1598a3(0x252)][_0x1598a3(0x209)]??0x0,'flipX':_0x5d2e87[_0x1598a3(0x252)]['flipX']??!0x1,'flipY':_0x5d2e87['transform']['flipY']??!0x1}};}['_applyUpdate'](_0x3a7c27,_0x5d6ce2,_0x1c4e9f){const _0x3abbc3=_0x269913;let _0x4ca527=_0x5d6ce2,_0x2ffd73={..._0x5d6ce2[_0x3abbc3(0x252)],'left':_0x1c4e9f[_0x3abbc3(0x252)][_0x3abbc3(0x221)],'top':_0x1c4e9f['transform'][_0x3abbc3(0x21a)],'width':_0x1c4e9f[_0x3abbc3(0x252)][_0x3abbc3(0x1b3)],'height':_0x1c4e9f[_0x3abbc3(0x252)][_0x3abbc3(0x1b6)],'angle':_0x1c4e9f[_0x3abbc3(0x252)][_0x3abbc3(0x1d8)],'flipX':_0x1c4e9f[_0x3abbc3(0x252)][_0x3abbc3(0x24d)],'flipY':_0x1c4e9f[_0x3abbc3(0x252)][_0x3abbc3(0x1b4)]},_0x15c214={..._0x4ca527,'transform':_0x2ffd73,'sheetTransform':_0x5d3f3a(_0x2ffd73,_0x3a7c27[_0x3abbc3(0x216)]),'axisAlignSheetTransform':_0x3930ef(_0x2ffd73,_0x3a7c27[_0x3abbc3(0x216)]),'data':{..._0x4ca527['data'],'shapeType':_0x1c4e9f[_0x3abbc3(0x1ec)],'shapeData':_0x25b5f7[_0x3abbc3(0x223)](_0x1c4e9f[_0x3abbc3(0x245)])}};_0x3a7c27[_0x3abbc3(0x20c)][_0x3abbc3(0x238)](_0x5d6ce2[_0x3abbc3(0x257)],_0x15c214);}};Ee=le([X(0x0,_0xf697fc(Z)),X(0x1,_0xf697fc(Ce)),X(0x2,_0xf697fc(_0x82530f))],Ee);let $=class extends _0x300a01{constructor(_0x593c8f=we,_0x3e7a69,_0x14ed06){const _0x25ac3b=_0x269913;super(),this[_0x25ac3b(0x215)]=_0x593c8f,this[_0x25ac3b(0x23c)]=_0x3e7a69,this['_configService']=_0x14ed06;let {..._0x146b69}=_0x320a72({},we,this[_0x25ac3b(0x215)]);this['_configService'][_0x25ac3b(0x214)](_0x25ac3b(0x1df),_0x146b69);}[_0x269913(0x250)](){const _0x15fbbd=_0x269913;let _0x4e95f6=this['_injector'];[[ce],[Z],[Ce],[Ee],[Te]]['forEach'](_0xea9b66=>_0x4e95f6[_0x15fbbd(0x201)](_0xea9b66)),_0x42ba55(_0x4e95f6,[[Z],[Ee],[Te]]);}};Y($,_0x269913(0x232),_0x25d19a[_0x269913(0x1d9)]),Y($,_0x269913(0x227),'SHEET_SHAPE_PLUGIN'),Y($,'packageName',be),Y($,_0x269913(0x1a7),xe),$=le([_0x4c72a1(_0x5a2bf2,_0x4f22a9,_0x52cb78,_0x47797d,_0x41c3f5),X(0x1,_0xf697fc(_0x57f6a0)),X(0x2,_0x5e9a3c)],$);export{ie as DEFAULT_SHAPE_HEIGHT,re as DEFAULT_SHAPE_WIDTH,fe as InsertShapeCommand,ue as InsertSheetsShapeMutation,de as RemoveSheetsShapeMutation,pe as SetShapeDrawingDataCommand,he as SetSheetsShapeRotateCommand,ge as SetSheetsShapeTextVerticalToggleCommand,Z as SheetsShapeService,me as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,_e as UpdateConnectorRelationCommand,ve as UpdateLineShapeResizeCommand,Q as UpdateSheetsShapeDataMutation,ye as UpdateSheetsShapeTypeMutation};
1
+ const _0x318f8d=_0x195e;(function(_0x1e60e5,_0x3d6ab6){const _0x29f840=_0x195e,_0x51c6c5=_0x1e60e5();while(!![]){try{const _0x6fbb19=parseInt(_0x29f840(0x175))/0x1*(parseInt(_0x29f840(0x12e))/0x2)+-parseInt(_0x29f840(0xfd))/0x3+parseInt(_0x29f840(0x16b))/0x4+-parseInt(_0x29f840(0x13d))/0x5*(-parseInt(_0x29f840(0x188))/0x6)+parseInt(_0x29f840(0x11a))/0x7+parseInt(_0x29f840(0xce))/0x8*(parseInt(_0x29f840(0xd9))/0x9)+-parseInt(_0x29f840(0x120))/0xa;if(_0x6fbb19===_0x3d6ab6)break;else _0x51c6c5['push'](_0x51c6c5['shift']());}catch(_0x407c87){_0x51c6c5['push'](_0x51c6c5['shift']());}}}(_0x5222,0x5d034));import{IShapeHostAdapterRegistry as _0x2df937,ShapeModel as _0x2f0946,UniverShapePlugin as _0x2842f2,buildConnectorEndpointUpdate as _0x2ded11,canApplyShapeFormulaLastValue as _0x5ecc62,computeConnectorRouteLayout as _0x2dada7,createFreeConnectorPointInfo as _0x3840a7,createUniqueShapeName as _0x507190,getBasicShapeRotateBound as _0x3b0a2,isConnectorShape as _0x2b34a7,resolveConnectorRoutePoints as _0x3be74b,resolveShapeConnectionPoint as _0x1151d6,routeConnectorLineShape as _0x2cd747}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x44b4ab,CommandType as _0x3ca940,DependentOn as _0x1b7e82,Disposable as _0x130970,DrawingTypeEnum as _0x19746e,ICommandService as _0x284dd9,IConfigService as _0x4d6ad0,IResourceManagerService as _0x47c011,IUndoRedoService as _0x5cea01,IUniverInstanceService as _0x3841c4,Inject as _0xab1f83,Injector as _0x1c83bd,Plugin as _0xb4a149,Tools as _0x3b1473,UniverInstanceType as _0x1d598f,generateRandomId as _0x307e0b,merge as _0xffa337,sequenceExecute as _0x190c41,touchDependencies as _0x45e5ee}from'@univerjs/core';import{SheetInterceptorService as _0x5a1116,SheetSkeletonService as _0x54030d,UniverSheetsPlugin as _0x59c084,getSheetCommandTarget as _0x35b812}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x17646c,DrawingApplyType as _0x140f2f,ISheetDrawingService as _0x410389,InsertSheetDrawingCommand as _0x282f0e,RemoveSheetDrawingCommand as _0x293fe8,SetDrawingApplyMutation as _0x348df4,SetDrawingArrangeCommand as _0x29706e,SetSheetDrawingCommand as _0x3e690f,SheetDrawingAnchorType as _0x4fdfb9,SheetDrawingTransformPlanService as _0x5cc45b,UniverSheetsDrawingPlugin as _0x359a1a,transformToAxisAlignPosition as _0x2fc0e6,transformToDrawingPosition as _0x5ce281}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0xd5e84e}from'@univerjs-pro/license';import{IDrawingManagerService as _0x5f2880,UniverDrawingPlugin as _0x5d2b80}from'@univerjs/drawing';function _0x195e(_0x30514a,_0xc94b92){_0x30514a=_0x30514a-0xc4;const _0x522235=_0x5222();let _0x195ee2=_0x522235[_0x30514a];return _0x195ee2;}const re=0xc8,ie=0xc8;function ae(_0x5a066e){'@babel/helpers - typeof';const _0x310257=_0x195e;return ae=typeof Symbol==_0x310257(0x113)&&typeof Symbol['iterator']==_0x310257(0x170)?function(_0x233169){return typeof _0x233169;}:function(_0x42693a){const _0x4f172b=_0x310257;return _0x42693a&&typeof Symbol==_0x4f172b(0x113)&&_0x42693a[_0x4f172b(0xc9)]===Symbol&&_0x42693a!==Symbol[_0x4f172b(0x15d)]?'symbol':typeof _0x42693a;},ae(_0x5a066e);}function oe(_0x523d6e,_0x2f458d){const _0x5e5da7=_0x195e;if(ae(_0x523d6e)!=_0x5e5da7(0xe2)||!_0x523d6e)return _0x523d6e;var _0x54e5bf=_0x523d6e[Symbol[_0x5e5da7(0x107)]];if(_0x54e5bf!==void 0x0){var _0x4fa76b=_0x54e5bf[_0x5e5da7(0x16d)](_0x523d6e,_0x2f458d||_0x5e5da7(0xd1));if(ae(_0x4fa76b)!='object')return _0x4fa76b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2f458d===_0x5e5da7(0xfc)?String:Number)(_0x523d6e);}function se(_0x5d2a75){const _0x391012=_0x195e;var _0x3bebd0=oe(_0x5d2a75,_0x391012(0xfc));return ae(_0x3bebd0)==_0x391012(0x170)?_0x3bebd0:_0x3bebd0+'';}function Y(_0x2ed47e,_0x10a5de,_0x3d62d2){const _0x316a88=_0x195e;return(_0x10a5de=se(_0x10a5de))in _0x2ed47e?Object[_0x316a88(0xdf)](_0x2ed47e,_0x10a5de,{'value':_0x3d62d2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2ed47e[_0x10a5de]=_0x3d62d2,_0x2ed47e;}var ce=class extends _0x130970{constructor(){const _0x595cb3=_0x195e;super(),Y(this,'_shapes',new Map()),Y(this,_0x595cb3(0x134),new Set()),Y(this,'_groupIds',new Set());}[_0x318f8d(0xf0)](_0x1bf994,_0x3110b0,_0x165494,_0xd0c282){const _0x55052e=_0x318f8d;let _0x334775=new _0x2f0946(_0x1bf994,_0x3110b0,_0x165494,_0xd0c282);return this[_0x55052e(0x160)][_0x55052e(0x10f)](_0x3110b0,_0x334775),_0x2b34a7(_0x1bf994)&&this[_0x55052e(0x134)][_0x55052e(0xc7)](_0x3110b0),_0x334775;}[_0x318f8d(0xe9)](_0x3a71d4){const _0xdf0545=_0x318f8d;let _0x5520fc=[];for(let _0x458664 of this[_0xdf0545(0x134)]){let _0x1867fc=this[_0xdf0545(0x160)][_0xdf0545(0xc4)](_0x458664);if(_0x1867fc){let _0x2d938b=_0x1867fc[_0xdf0545(0x150)]();if(_0x2d938b){var _0x2226bd,_0x344898;((_0x2226bd=_0x2d938b[_0xdf0545(0x17d)])==null?void 0x0:_0x2226bd[_0xdf0545(0x12f)])===_0x3a71d4&&_0x5520fc[_0xdf0545(0x13c)]({..._0x2d938b[_0xdf0545(0x17d)],'lineShapeId':_0x458664,'isFrom':!0x0}),((_0x344898=_0x2d938b['to'])==null?void 0x0:_0x344898[_0xdf0545(0x12f)])===_0x3a71d4&&_0x5520fc[_0xdf0545(0x13c)]({..._0x2d938b['to'],'lineShapeId':_0x458664,'isFrom':!0x1});}}}return _0x5520fc;}[_0x318f8d(0x168)](_0x26f85c){const _0x555031=_0x318f8d;let _0x3495c5=this[_0x555031(0x160)][_0x555031(0xc4)](_0x26f85c);if(_0x3495c5)return _0x3495c5[_0x555031(0x150)]();}[_0x318f8d(0x13a)](_0x2524f9){let _0x3bdc46=this['_shapes']['get'](_0x2524f9);if(_0x3bdc46)return _0x3bdc46['getShapeType']();}[_0x318f8d(0x136)](_0x570649){const _0x21fc3e=_0x318f8d;return this[_0x21fc3e(0x160)]['has'](_0x570649);}['getShapeDisplayNames'](){const _0x326892=_0x318f8d;return Array['from'](this[_0x326892(0x160)][_0x326892(0x127)]())[_0x326892(0x164)](_0x4b0ac4=>_0x4b0ac4[_0x326892(0x15c)]()||_0x4b0ac4[_0x326892(0x12c)]());}[_0x318f8d(0xed)](_0x3562d3){const _0x4ce73d=_0x318f8d;let _0x5842a2=this[_0x4ce73d(0x160)][_0x4ce73d(0xc4)](_0x3562d3);_0x5842a2&&(_0x2b34a7(_0x5842a2['getShapeType']())&&this[_0x4ce73d(0x134)][_0x4ce73d(0x149)](_0x3562d3),this[_0x4ce73d(0x160)][_0x4ce73d(0x149)](_0x3562d3));}[_0x318f8d(0x189)](){const _0x2b48ea=_0x318f8d;let _0x14f4c1=[];return this[_0x2b48ea(0x160)]['forEach'](_0x747113=>{const _0x1cf026=_0x2b48ea;_0x14f4c1[_0x1cf026(0x13c)](_0x747113[_0x1cf026(0x189)]());}),_0x14f4c1;}[_0x318f8d(0x133)](_0x569f02){const _0x5dbb61=_0x318f8d;for(let _0x5415f6 of _0x569f02){let {id:_0x402d5d,shapeType:_0x596065,name:_0x30b313}=_0x5415f6,_0x43b7b5=this[_0x5dbb61(0xf0)](_0x596065,_0x402d5d,_0x5415f6[_0x5dbb61(0x153)],_0x30b313);_0x43b7b5&&_0x43b7b5[_0x5dbb61(0x152)]()&&this[_0x5dbb61(0x134)]['add'](_0x402d5d);}}[_0x318f8d(0xfb)](){const _0x54eb71=_0x318f8d;this[_0x54eb71(0x145)]||(this[_0x54eb71(0x160)]['forEach'](_0x3ecd2c=>{const _0x177a4a=_0x54eb71;_0x3ecd2c[_0x177a4a(0xfb)]();}),this['_shapes'][_0x54eb71(0xd2)](),this[_0x54eb71(0x134)][_0x54eb71(0xd2)](),this[_0x54eb71(0x12d)][_0x54eb71(0xd2)](),super[_0x54eb71(0xfb)]());}};function X(_0x1cf58c,_0x4f25ec){return function(_0x487379,_0x4c4640){_0x4f25ec(_0x487379,_0x4c4640,_0x1cf58c);};}function le(_0x1bf641,_0x208283,_0x531e35,_0x5c0133){const _0x533ec1=_0x318f8d;var _0x37b4b8=arguments[_0x533ec1(0xef)],_0x2daa8c=_0x37b4b8<0x3?_0x208283:_0x5c0133===null?_0x5c0133=Object[_0x533ec1(0x14e)](_0x208283,_0x531e35):_0x5c0133,_0x44a039;if(typeof Reflect==_0x533ec1(0xe2)&&typeof Reflect[_0x533ec1(0x16f)]==_0x533ec1(0x113))_0x2daa8c=Reflect[_0x533ec1(0x16f)](_0x1bf641,_0x208283,_0x531e35,_0x5c0133);else{for(var _0x24d597=_0x1bf641[_0x533ec1(0xef)]-0x1;_0x24d597>=0x0;_0x24d597--)(_0x44a039=_0x1bf641[_0x24d597])&&(_0x2daa8c=(_0x37b4b8<0x3?_0x44a039(_0x2daa8c):_0x37b4b8>0x3?_0x44a039(_0x208283,_0x531e35,_0x2daa8c):_0x44a039(_0x208283,_0x531e35))||_0x2daa8c);}return _0x37b4b8>0x3&&_0x2daa8c&&Object[_0x533ec1(0xdf)](_0x208283,_0x531e35,_0x2daa8c),_0x2daa8c;}let Z=class extends _0x130970{constructor(_0x18e4ec){const _0x412c04=_0x318f8d;super(),this[_0x412c04(0x14f)]=_0x18e4ec,Y(this,_0x412c04(0xc8),new Map()),this[_0x412c04(0x158)]();}[_0x318f8d(0xd3)](_0x338cff,_0x17d20a){const _0x5e9235=_0x318f8d;let _0x11cb8f=this[_0x5e9235(0xc8)][_0x5e9235(0xc4)](_0x338cff);_0x11cb8f||(_0x11cb8f=new Map(),this[_0x5e9235(0xc8)]['set'](_0x338cff,_0x11cb8f));let _0x63a517=_0x11cb8f[_0x5e9235(0xc4)](_0x17d20a);return _0x63a517||(_0x63a517=new ce(),_0x11cb8f['set'](_0x17d20a,_0x63a517)),_0x63a517;}[_0x318f8d(0x172)](_0xfc15d,_0x52a2be,_0x2a585a,_0x4b4274,_0x1c883b,_0x6f5ffe){const _0x589bee=_0x318f8d;this[_0x589bee(0xd3)](_0xfc15d,_0x52a2be)[_0x589bee(0xf0)](_0x2a585a,_0x4b4274,_0x1c883b,_0x6f5ffe);}['removeShape'](_0x516474,_0x263fa1,_0x39849e){const _0x306298=_0x318f8d;this[_0x306298(0xd3)](_0x516474,_0x263fa1)[_0x306298(0xed)](_0x39849e);}[_0x318f8d(0x179)](_0x21942e,_0x4a43a6,_0x10c66f){const _0x520d0a=_0x318f8d;return this['_ensureShapeModelManager'](_0x21942e,_0x4a43a6)[_0x520d0a(0x13a)](_0x10c66f);}['getShapeType'](_0x5b6091,_0x4e4183,_0x27e046){const _0x18d7f5=_0x318f8d;return this['_ensureShapeModelManager'](_0x5b6091,_0x4e4183)[_0x18d7f5(0x13a)](_0x27e046);}[_0x318f8d(0x136)](_0x4372b7,_0x4574a2,_0x2d1ba7){const _0x85bab4=_0x318f8d;return this[_0x85bab4(0xd3)](_0x4372b7,_0x4574a2)[_0x85bab4(0x136)](_0x2d1ba7);}[_0x318f8d(0x143)](_0x5f0456,_0x2c61e0,_0x40a993){const _0x259e9c=_0x318f8d;return this['_ensureShapeModelManager'](_0x5f0456,_0x2c61e0)[_0x259e9c(0x13a)](_0x40a993);}[_0x318f8d(0xe3)](_0x448ef7,_0xe669b2,_0x406735){const _0x478605=_0x318f8d;let _0x4c1c55=this[_0x478605(0xd3)](_0x448ef7,_0xe669b2);if(!_0x4c1c55[_0x478605(0x13a)](_0x406735))return;let _0x2829e7=_0x4c1c55[_0x478605(0x160)][_0x478605(0xc4)](_0x406735);if(_0x2829e7)return _0x2829e7['getShapeData']();}[_0x318f8d(0x128)](_0x3cbcfe,_0x22a599){const _0x1f4a4f=_0x318f8d;return this[_0x1f4a4f(0xd3)](_0x3cbcfe,_0x22a599)[_0x1f4a4f(0x128)]();}[_0x318f8d(0x101)](_0x5a8d95,_0x463c06,_0x52c071){const _0x403f47=_0x318f8d;return this['_ensureShapeModelManager'](_0x5a8d95,_0x463c06)[_0x403f47(0x160)][_0x403f47(0xc4)](_0x52c071);}['getBasicShapeRelation'](_0x244522,_0x426343,_0x525730){const _0xa83b01=_0x318f8d;return this[_0xa83b01(0xd3)](_0x244522,_0x426343)[_0xa83b01(0xe9)](_0x525730);}[_0x318f8d(0x168)](_0x24fbd5,_0x3cc43e,_0x437a2e){const _0x1140bb=_0x318f8d;let _0x114062=this[_0x1140bb(0xd3)](_0x24fbd5,_0x3cc43e)[_0x1140bb(0x160)][_0x1140bb(0xc4)](_0x437a2e);if(_0x114062)return _0x114062[_0x1140bb(0x150)]();}[_0x318f8d(0x18b)](){}[_0x318f8d(0x140)](_0xb0151e){const _0x45c471=_0x318f8d;let _0x1f76cd={},_0x299063=this['_shapeModelManagerMap'][_0x45c471(0xc4)](_0xb0151e);return _0x299063&&_0x299063['forEach']((_0xb8189a,_0x39f0fa)=>{const _0x587108=_0x45c471;let _0x484442=_0xb8189a['toJSON']();_0x484442[_0x587108(0xef)]>0x0&&(_0x1f76cd[_0x39f0fa]=_0x484442);}),JSON['stringify'](_0x1f76cd);}['_deserializeShapeForUnit'](_0x4b9ea0,_0x5ae642){const _0xfe99df=_0x318f8d;Object[_0xfe99df(0x124)](_0x5ae642)[_0xfe99df(0x178)](_0x31ec4b=>{const _0x34ead9=_0xfe99df;this[_0x34ead9(0xd3)](_0x4b9ea0,_0x31ec4b)[_0x34ead9(0x133)](_0x5ae642[_0x31ec4b]);});}['toJSON'](){const _0x167d4b=_0x318f8d;let _0x3040c3={};return this[_0x167d4b(0xc8)][_0x167d4b(0x178)]((_0x576de4,_0xb76201)=>{const _0x231812=_0x167d4b;_0x3040c3[_0xb76201]={},_0x576de4[_0x231812(0x178)]((_0x2ed2b4,_0x12d431)=>{const _0x543c56=_0x231812;_0x3040c3[_0xb76201][_0x12d431]=_0x2ed2b4[_0x543c56(0x189)]();});}),_0x3040c3;}[_0x318f8d(0x133)](_0x423e00){const _0x2a7ba3=_0x318f8d;Object['keys'](_0x423e00)[_0x2a7ba3(0x178)](_0x2addcd=>{const _0x5ceba4=_0x2a7ba3;let _0x38cf49=_0x423e00[_0x2addcd];Object[_0x5ceba4(0x124)](_0x38cf49)[_0x5ceba4(0x178)](_0x48d67c=>{const _0xdf6253=_0x5ceba4;this['_ensureShapeModelManager'](_0x2addcd,_0x48d67c)[_0xdf6253(0x133)](_0x38cf49[_0x48d67c]);});});}['_initSnapshot'](){const _0x59f24f=_0x318f8d;this[_0x59f24f(0x14f)][_0x59f24f(0x11f)]({'pluginName':_0x59f24f(0x14d),'businesses':[_0x1d598f[_0x59f24f(0x105)]],'toJson':_0x3bf437=>this[_0x59f24f(0x140)](_0x3bf437),'parseJson':_0x441f18=>JSON[_0x59f24f(0xe7)](_0x441f18),'onLoad':(_0xe88cbe,_0x188418)=>{const _0xffd405=_0x59f24f;this[_0xffd405(0x192)](_0xe88cbe,_0x188418);},'onUnLoad':_0x5d925b=>{const _0x2a8420=_0x59f24f;let _0x36ff5e=this[_0x2a8420(0xc8)]['get'](_0x5d925b);_0x36ff5e&&(_0x36ff5e[_0x2a8420(0x178)](_0x49bb66=>{_0x49bb66['dispose']();}),this[_0x2a8420(0xc8)]['delete'](_0x5d925b));}});}['dispose'](){const _0x453b61=_0x318f8d;this[_0x453b61(0xc8)]['forEach'](_0x1a0828=>{_0x1a0828['forEach'](_0x480e68=>{const _0x2fc38d=_0x195e;_0x480e68[_0x2fc38d(0xfb)]();});});}};function _0x5222(){const _0x5d6d7f=['hostType','getShapeTextData','syncExecuteCommand','getShapeModel','visible','preUndos','sheet.command.toggle-shape-flip','UNIVER_SHEET','sheet.command.update-connector-relation','toPrimitive','_shapeService','lineType','@univerjs-pro/sheets-shape','pushUndoRedo','pluginName','createShape','getSkeleton','set','getDrawingData','bringForward','result','function','width','_sheetsShapeService','getConnectionSiteList','refresh','worldRect','INSERT','1597302eCZAuz','REMOVE','setConfig','top','subUnitId','registerPluginResource','13681450ItPhOI','sheet.command.insert-shape','getAdjustValueByName','position','keys','unitId','1.0.0-beta.1','values','getShapeDisplayNames','formulaBinding','getBatchAddOp','getAdjustNames','getId','_groupIds','177104pMVDjT','shapeId','point','command','preRedos','fromJSON','_linesIds','_drawingManagerService','hasShape','setShapeData','_shapeAdapter','getDrawingByParam','getShapeType','sheets-shape.config','push','1395745SXdrdA','skeleton','_sheetInterceptorService','_serializeShapeForUnit','cxnIndex','_resolveBinding','getShapeTypeById','bringToFront','_disposed','filter','drawingType','_applyUpdate','delete','range','registerCommand','DRAWING_SHAPE','SHEET_SHAPE_PLUGIN','getOwnPropertyDescriptor','_resourcesManagerService','getShapeRelation','angle','isLineShape','shapeData','sheet.command.set-shape-text-vertical-toggle','getShape','_instanceService','updates','_initSnapshot','adjustValues','_injector','_sheetSkeletonService','getName','prototype','sendBackward','getStartConnectInfo','_shapes','onCommandExecute','rotation','name','map','originals','getSheetId','shapeChanged$','getLineShapeRelation','removeLinePoints','COMMAND','1966356ChVDLH','_addLineFollowShapeUpdates','call','getBatchUpdateOp','decorate','symbol','borderEnabled','insertShape','_planConnector','cos','7vHUHjr','deepClone','MUTATION','forEach','getBasicShapeType','shapeType','_addLineRerouteUpdates','sin','from','sheet.command.set-shape-rotate','_drawingService','formula','index','packageName','entries','transform','rotateEnabled','undos','mode','6Giecan','toJSON','left','setShapeType','flipX','ensureSkeleton','has','height','data','fill','_deserializeShapeForUnit','startY','_planDeletes','lineShapeId','sheet.mutation.update-shape-data','_initCommandInterceptor','onStarting','onCommandExecuted','get','getShapeData','sheet.command.set-shape-drawing-data','add','_shapeModelManagerMap','constructor','UPDATE','updateContext','resizeEnabled','description','240TWwrNI','sendToBack','relation','default','clear','_ensureShapeModelManager','backward','disposeWithMe','getCellWithCoordByIndex','forward','_initCommands','57150BaqIYD','_shapeHostAdapterRegistry','drawingId','type','isHorizontal','redos','defineProperty','back','getEndConnectInfo','object','getShapeDataById','flipY','getUnit','updateShape','parse','flatMap','getBasicShapeRelation','selectable','shapeName','getSheets','removeShape','_arrange','length','addShape','_toSnapshot','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','_commandService','params','Both','_getConnectPointInfo','listShapesInUnit','listShapes','deletes','register','dispose','string','180489GpjoMF'];_0x5222=function(){return _0x5d6d7f;};return _0x5222();}Z=le([X(0x0,_0x47c011)],Z);const ue={'id':'sheet.mutation.insert-shape','type':_0x3ca940[_0x318f8d(0x177)],'handler':(_0x45ee45,_0x2c9a1f)=>{const _0x3645bd=_0x318f8d;let {unitId:_0x4bfa9e,subUnitId:_0x274b3c,shapeType:_0x17384e,shapeId:_0x3f8eaa,shapeName:_0x32044c,shapeData:_0x2de14c}=_0x2c9a1f;return _0x45ee45['get'](Z)[_0x3645bd(0x172)](_0x4bfa9e,_0x274b3c,_0x17384e,_0x3f8eaa,_0x3b1473[_0x3645bd(0x176)](_0x2de14c),_0x32044c),!0x0;}},de={'id':'sheet.mutation.remove-shape','type':_0x3ca940[_0x318f8d(0x177)],'handler':(_0xa4fcf6,_0x234874)=>{let {unitId:_0x3c3333,subUnitId:_0x3109f3,shapeId:_0x5a4c7e}=_0x234874;return _0xa4fcf6['get'](Z)['removeShape'](_0x3c3333,_0x3109f3,_0x5a4c7e),!0x0;}},fe={'type':_0x3ca940[_0x318f8d(0x16a)],'id':_0x318f8d(0x121),'handler':(_0x1a064a,_0x1d4b05)=>{const _0x1c57c4=_0x318f8d;let _0x5b87b1=_0x35b812(_0x1a064a[_0x1c57c4(0xc4)](_0x3841c4),_0x1d4b05);if(!_0x5b87b1)return!0x1;let _0xb8a5f9=_0x1a064a[_0x1c57c4(0xc4)](_0x54030d),{unitId:_0x500ab6,subUnitId:_0x429d98}=_0x5b87b1,_0x201a60=_0xb8a5f9[_0x1c57c4(0x18d)](_0x500ab6,_0x429d98);if(!_0x201a60)return!0x1;let _0x5cb135=_0x1a064a['get'](_0x284dd9),_0x447816=_0x1a064a[_0x1c57c4(0xc4)](_0x5cea01),_0x43e32d=_0x1a064a[_0x1c57c4(0xc4)](_0x5a1116),_0x2e3d70=_0x1a064a[_0x1c57c4(0xc4)](_0x410389),_0xb333dc=_0x1a064a['get'](Z),{shapeType:_0x5da1d7,shapeData:_0x15c53f}=_0x1d4b05,_0x312448=_0x1d4b05['shapeId']||_0x307e0b(),_0x48efad={'unitId':_0x500ab6,'subUnitId':_0x429d98,'shapeId':_0x312448,'shapeName':_0x1d4b05[_0x1c57c4(0xeb)]??_0x507190(_0x5da1d7,_0xb333dc[_0x1c57c4(0x128)](_0x500ab6,_0x429d98)),'shapeType':_0x5da1d7,'shapeData':_0x15c53f},_0xef5609=_0x1d4b05[_0x1c57c4(0x114)]||0xc8,_0x36bf16=_0x1d4b05['height']||0xc8,_0x38f9b0=0x0,_0x4a9105=0x0;if(_0x1d4b05[_0x1c57c4(0x123)]){let {x:_0x5239a5,y:_0x2c378d}=_0x1d4b05[_0x1c57c4(0x123)];_0x38f9b0=_0x5239a5,_0x4a9105=_0x2c378d;}else{if(_0x1d4b05[_0x1c57c4(0x14a)]){let {startRow:_0x217d01,startColumn:_0x1a4b96}=_0x1d4b05[_0x1c57c4(0x14a)],_0x11afde=_0x201a60[_0x1c57c4(0xd6)](_0x217d01,_0x1a4b96);_0x38f9b0=_0x11afde['startX']+0xa,_0x4a9105=_0x11afde[_0x1c57c4(0x193)]+0xa;}}let _0x375c3b={'left':_0x38f9b0,'top':_0x4a9105,'width':_0xef5609,'height':_0x36bf16,'angle':_0x1d4b05['rotation']??0x0,'flipX':_0x1d4b05[_0x1c57c4(0x18c)]??!0x1,'flipY':_0x1d4b05[_0x1c57c4(0xe4)]??!0x1},_0x1940bd=_0x5ce281(_0x375c3b,_0x201a60),_0x3431f5=_0x2fc0e6(_0x375c3b,_0x201a60),_0x13fb2d={'unitId':_0x500ab6,'subUnitId':_0x429d98,'drawingId':_0x312448,'drawingType':_0x19746e[_0x1c57c4(0x14c)],'anchorType':_0x4fdfb9[_0x1c57c4(0xf5)],'name':_0x1d4b05[_0x1c57c4(0x163)],'description':_0x1d4b05[_0x1c57c4(0xcd)],'sheetTransform':_0x1940bd,'transform':_0x375c3b,'data':{'shapeType':_0x5da1d7,'shapeData':_0x15c53f},'axisAlignSheetTransform':_0x3431f5,'allowTransform':!0x0,'hidden':_0x1d4b05['visible']===!0x1,'selectable':_0x1d4b05[_0x1c57c4(0xea)]??!0x0};_0x2b34a7(_0x5da1d7)&&(_0x13fb2d[_0x1c57c4(0x190)][_0x1c57c4(0x191)]=!0x1,_0x13fb2d[_0x1c57c4(0x190)][_0x1c57c4(0x185)]=!0x1,_0x13fb2d[_0x1c57c4(0x190)]['resizeEnabled']=!0x1,_0x13fb2d[_0x1c57c4(0x190)][_0x1c57c4(0x171)]=!0x1,_0x13fb2d[_0x1c57c4(0x184)][_0x1c57c4(0x185)]=!0x1,_0x13fb2d[_0x1c57c4(0x184)][_0x1c57c4(0xcc)]=!0x1,_0x13fb2d['transform'][_0x1c57c4(0x171)]=!0x1);let {undo:_0x26d3ad,redo:_0x174d7f,objects:_0x2a767}=_0x2e3d70[_0x1c57c4(0x12a)]([_0x13fb2d]),_0x2898e5=_0x43e32d[_0x1c57c4(0x161)]({'id':_0x282f0e['id'],'params':{'unitId':_0x500ab6,'drawings':[_0x13fb2d]}}),_0xe36eff=[..._0x2898e5[_0x1c57c4(0x132)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x500ab6,'subUnitId':_0x429d98,'op':_0x174d7f,'objects':_0x2a767,'type':_0x140f2f[_0x1c57c4(0x119)]}},{'id':_0x17646c['id'],'params':[_0x500ab6]},..._0x2898e5[_0x1c57c4(0xde)],{'id':ue['id'],'params':_0x48efad}],_0x4ef44e=[{'id':de['id'],'params':{'unitId':_0x500ab6,'subUnitId':_0x429d98,'shapeId':_0x312448}},..._0x2898e5[_0x1c57c4(0x103)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x500ab6,'subUnitId':_0x429d98,'op':_0x26d3ad,'objects':_0x2a767,'type':_0x140f2f[_0x1c57c4(0x11b)]}},{'id':_0x17646c['id'],'params':[_0x500ab6]},..._0x2898e5[_0x1c57c4(0x186)]];return _0x190c41(_0xe36eff,_0x5cb135)['result']?(_0x447816[_0x1c57c4(0x10b)]({'unitID':_0x500ab6,'undoMutations':_0x4ef44e,'redoMutations':_0xe36eff}),!0x0):!0x1;}},Q={'id':_0x318f8d(0x196),'type':_0x3ca940[_0x318f8d(0x177)],'handler':(_0x4a44cf,_0x20e695)=>{const _0x164c42=_0x318f8d;let {unitId:_0x42edc9,subUnitId:_0x5b1b44,shapeType:_0x41db11,shapeId:_0x1b6250,shapeData:_0x3fe737,replace:_0x33bf14,formulaLastValueGuard:_0x5b14f1}=_0x20e695,_0x1480fe=_0x4a44cf['get'](Z)[_0x164c42(0x101)](_0x42edc9,_0x5b1b44,_0x1b6250);if(_0x1480fe){var _0x2ae2f0;if(!_0x5ecc62(_0x4a44cf,{'hostType':_0x1d598f[_0x164c42(0x105)],'unitId':_0x42edc9,'subUnitId':_0x5b1b44,'shapeId':_0x1b6250},(_0x2ae2f0=_0x1480fe[_0x164c42(0xc5)]()[_0x164c42(0x129)])==null?void 0x0:_0x2ae2f0[_0x164c42(0x180)],_0x5b14f1))return!0x0;_0x41db11!==void 0x0&&_0x1480fe[_0x164c42(0x18b)](_0x41db11),_0x3fe737&&(_0x1480fe==null||_0x1480fe['setShapeData'](_0x3b1473[_0x164c42(0x176)](_0x3fe737),!_0x33bf14));}return!0x0;}},pe={'type':_0x3ca940[_0x318f8d(0x16a)],'id':_0x318f8d(0xc6),'handler':(_0x3a150c,_0x48eba8)=>{const _0x2982c9=_0x318f8d;let _0x8fc00f=_0x35b812(_0x3a150c['get'](_0x3841c4),_0x48eba8);if(!_0x8fc00f)return!0x1;let _0x23125b=_0x3a150c['get'](_0x54030d),{unitId:_0xfdb92d,subUnitId:_0x420dc8}=_0x8fc00f,_0x7a183f=_0x23125b['ensureSkeleton'](_0xfdb92d,_0x420dc8);if(!_0x7a183f)return!0x1;let _0xa45192=_0x3a150c['get'](Z),{shapeId:_0x3a5b71,shapeType:_0x35dcd0,shapeData:_0x335b3c,position:_0x20f310,width:_0x4a500b,height:_0x4fc9ce}=_0x48eba8,_0x23227a=_0xa45192[_0x2982c9(0x101)](_0xfdb92d,_0x420dc8,_0x3a5b71);if(!_0x23227a)return!0x1;let _0x44d311=_0x3a150c[_0x2982c9(0xc4)](_0x284dd9),_0x557ee3=_0x3a150c['get'](_0x5cea01),_0x3bc6ad=_0x3a150c[_0x2982c9(0xc4)](_0x5a1116),_0x4df7c4=_0x3a150c[_0x2982c9(0xc4)](_0x410389),_0x38869b={'unitId':_0xfdb92d,'subUnitId':_0x420dc8,'shapeId':_0x3a5b71,'shapeType':_0x35dcd0,'shapeData':_0x335b3c,'replace':!0x0},_0x4684b2=_0x23227a['getShapeType'](),_0xe9feee=_0x23227a[_0x2982c9(0xc5)](),{x:_0xf31ab9,y:_0x3a5969}=_0x20f310,_0x383363={'left':_0xf31ab9,'top':_0x3a5969,'width':_0x4a500b,'height':_0x4fc9ce,'angle':_0x48eba8[_0x2982c9(0x162)]??0x0,'flipX':_0x48eba8[_0x2982c9(0x18c)]??!0x1,'flipY':_0x48eba8[_0x2982c9(0xe4)]??!0x1},_0xd2de49=_0x5ce281(_0x383363,_0x7a183f),_0x47f6d6=_0x2fc0e6(_0x383363,_0x7a183f),_0x3c17fd={'unitId':_0xfdb92d,'subUnitId':_0x420dc8,'drawingId':_0x3a5b71,'drawingType':_0x19746e['DRAWING_SHAPE'],'name':_0x48eba8[_0x2982c9(0x163)],'description':_0x48eba8['description'],'sheetTransform':_0xd2de49,'transform':_0x383363,'data':{'shapeType':_0x35dcd0,'shapeData':_0x335b3c},'axisAlignSheetTransform':_0x47f6d6,'allowTransform':!0x0,'hidden':!_0x48eba8[_0x2982c9(0x102)],'selectable':_0x48eba8[_0x2982c9(0xea)]};_0x2b34a7(_0x35dcd0)&&(_0x3c17fd['data'][_0x2982c9(0x191)]=!0x1,_0x3c17fd[_0x2982c9(0x190)][_0x2982c9(0x185)]=!0x1,_0x3c17fd[_0x2982c9(0x190)][_0x2982c9(0xcc)]=!0x1,_0x3c17fd[_0x2982c9(0x190)][_0x2982c9(0x171)]=!0x1,_0x3c17fd[_0x2982c9(0x184)][_0x2982c9(0x185)]=!0x1,_0x3c17fd[_0x2982c9(0x184)][_0x2982c9(0xcc)]=!0x1,_0x3c17fd[_0x2982c9(0x184)][_0x2982c9(0x171)]=!0x1);let {undo:_0x53c9db,redo:_0x3b317e,objects:_0x35cdb2}=_0x4df7c4[_0x2982c9(0x16e)]([_0x3c17fd]),_0x256b72=_0x3bc6ad[_0x2982c9(0x161)]({'id':_0x3e690f['id'],'params':{'unitId':_0xfdb92d,'drawings':[_0x3c17fd]}}),_0x2087d6=[..._0x256b72[_0x2982c9(0x132)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0xfdb92d,'subUnitId':_0x420dc8,'op':_0x3b317e,'objects':_0x35cdb2,'type':_0x140f2f['UPDATE']}},{'id':_0x17646c['id'],'params':[_0xfdb92d]},..._0x256b72['redos'],{'id':Q['id'],'params':_0x38869b}],_0x5dcdb7=[..._0x256b72[_0x2982c9(0x103)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0xfdb92d,'subUnitId':_0x420dc8,'op':_0x53c9db,'objects':_0x35cdb2,'type':_0x140f2f[_0x2982c9(0xca)]}},{'id':_0x17646c['id'],'params':[_0xfdb92d]},..._0x256b72['undos'],{'id':Q['id'],'params':{'unitId':_0xfdb92d,'subUnitId':_0x420dc8,'shapeType':_0x4684b2,'shapeId':_0x3a5b71,'shapeData':_0xe9feee,'replace':!0x0}}];return _0x190c41(_0x2087d6,_0x44d311)['result']?(_0x557ee3[_0x2982c9(0x10b)]({'unitID':_0xfdb92d,'undoMutations':_0x5dcdb7,'redoMutations':_0x2087d6}),!0x0):!0x1;}},me={'type':_0x3ca940[_0x318f8d(0x16a)],'id':_0x318f8d(0x104),'handler':(_0x369d03,_0x17ac8d)=>{const _0x96028b=_0x318f8d;let _0x8f10e2=_0x35b812(_0x369d03[_0x96028b(0xc4)](_0x3841c4),_0x17ac8d);if(!_0x8f10e2)return!0x1;let _0x13faf6=_0x369d03[_0x96028b(0xc4)](_0x54030d),{unitId:_0x28e9a1,subUnitId:_0x11bb78}=_0x8f10e2,_0x56fd1a=_0x13faf6[_0x96028b(0x10e)](_0x28e9a1,_0x11bb78);if(!_0x56fd1a)return!0x1;let _0xaf513f=_0x369d03[_0x96028b(0xc4)](_0x410389),{shapeId:_0x2583a6,flipH:_0xcc9d34,flipV:_0x5f32ff}=_0x17ac8d,_0x4a2469=_0xaf513f[_0x96028b(0x139)]({'unitId':_0x28e9a1,'subUnitId':_0x11bb78,'drawingId':_0x2583a6});if(!_0x4a2469)return!0x1;let _0x100b11=_0x369d03[_0x96028b(0xc4)](Z)[_0x96028b(0x101)](_0x28e9a1,_0x11bb78,_0x2583a6);if(!_0x100b11)return!0x1;let _0x376f3c=_0x369d03[_0x96028b(0xc4)](_0x284dd9),_0x4d97d4=_0x369d03['get'](_0x5cea01),_0x38aee2=_0x369d03['get'](_0x5a1116),_0x3d846a={..._0x4a2469[_0x96028b(0x184)]};_0xcc9d34!==void 0x0&&(_0x3d846a['flipX']=!_0x3d846a[_0x96028b(0x18c)]),_0x5f32ff!==void 0x0&&(_0x3d846a[_0x96028b(0xe4)]=!_0x3d846a['flipY']);let _0x42f109=_0x5ce281(_0x3d846a,_0x56fd1a),_0x2c7b3b=_0x2fc0e6(_0x3d846a,_0x56fd1a),_0xa2a208=_0x100b11[_0x96028b(0x13a)](),_0x1e7381=_0x100b11[_0x96028b(0xc5)](),_0x3332dc={'unitId':_0x28e9a1,'subUnitId':_0x11bb78,'drawingId':_0x2583a6,'drawingType':_0x19746e[_0x96028b(0x14c)],'sheetTransform':_0x42f109,'transform':_0x3d846a,'data':{'shapeType':_0xa2a208,'shapeData':_0x1e7381},'axisAlignSheetTransform':_0x2c7b3b,'allowTransform':!0x0},{undo:_0x21667b,redo:_0x3cfad6,objects:_0x478525}=_0xaf513f[_0x96028b(0x16e)]([_0x3332dc]),_0x1d51d4=_0x38aee2[_0x96028b(0x161)]({'id':_0x3e690f['id'],'params':{'unitId':_0x28e9a1,'drawings':[_0x3332dc]}}),_0x264e93=[..._0x1d51d4[_0x96028b(0x132)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x28e9a1,'subUnitId':_0x11bb78,'op':_0x3cfad6,'objects':_0x478525,'type':_0x140f2f[_0x96028b(0xca)]}},{'id':_0x17646c['id'],'params':[_0x28e9a1]},..._0x1d51d4[_0x96028b(0xde)]],_0x21100a=[..._0x1d51d4['preUndos']??[],{'id':_0x348df4['id'],'params':{'unitId':_0x28e9a1,'subUnitId':_0x11bb78,'op':_0x21667b,'objects':_0x478525,'type':_0x140f2f[_0x96028b(0xca)]}},{'id':_0x17646c['id'],'params':[_0x28e9a1]},..._0x1d51d4[_0x96028b(0x186)]];if(_0x2b34a7(_0xa2a208)){let _0x90788d=_0x100b11[_0x96028b(0x150)]();if(_0x90788d){let _0x31e0aa={..._0x90788d};_0x31e0aa[_0x96028b(0x17d)]=void 0x0,_0x31e0aa['to']=void 0x0,_0x264e93[_0x96028b(0x13c)]({'id':Q['id'],'params':{'unitId':_0x28e9a1,'subUnitId':_0x11bb78,'shapeId':_0x2583a6,'shapeType':_0xa2a208,'shapeData':{'relation':_0x31e0aa}}}),_0x21100a[_0x96028b(0x13c)]({'id':Q['id'],'params':{'unitId':_0x28e9a1,'subUnitId':_0x11bb78,'shapeId':_0x2583a6,'shapeType':_0xa2a208,'shapeData':{'relation':_0x90788d}}});}}return _0x190c41(_0x264e93,_0x376f3c)[_0x96028b(0x112)]?(_0x4d97d4[_0x96028b(0x10b)]({'unitID':_0x28e9a1,'undoMutations':_0x21100a,'redoMutations':_0x264e93}),!0x0):!0x1;}},he={'type':_0x3ca940[_0x318f8d(0x16a)],'id':_0x318f8d(0x17e),'handler':(_0x858a7,_0x3e2514)=>{const _0x33fcc6=_0x318f8d;let _0x2e3bf1=_0x35b812(_0x858a7[_0x33fcc6(0xc4)](_0x3841c4),_0x3e2514);if(!_0x2e3bf1)return!0x1;let _0x3c95a7=_0x858a7[_0x33fcc6(0xc4)](_0x54030d),{unitId:_0x8c2fe2,subUnitId:_0x1689ee}=_0x2e3bf1,_0xbe68c5=_0x3c95a7[_0x33fcc6(0x10e)](_0x8c2fe2,_0x1689ee);if(!_0xbe68c5)return!0x1;let _0x9ccad2=_0x858a7[_0x33fcc6(0xc4)](_0x410389),{shapeId:_0x44b2b0,rotate:_0x5e8081}=_0x3e2514,_0x5b5225=_0x9ccad2[_0x33fcc6(0x139)]({'unitId':_0x8c2fe2,'subUnitId':_0x1689ee,'drawingId':_0x44b2b0});if(!_0x5b5225)return!0x1;let _0x25b726=_0x858a7[_0x33fcc6(0xc4)](Z)[_0x33fcc6(0x101)](_0x8c2fe2,_0x1689ee,_0x44b2b0);if(!_0x25b726)return!0x1;let _0x5066ef=_0x858a7[_0x33fcc6(0xc4)](_0x284dd9),_0x413d2c=_0x858a7[_0x33fcc6(0xc4)](_0x5cea01),_0x5a6e14=_0x858a7[_0x33fcc6(0xc4)](_0x5a1116),_0x195e4a={..._0x5b5225[_0x33fcc6(0x184)]};_0x5e8081!==void 0x0&&(_0x195e4a[_0x33fcc6(0x151)]=(_0x195e4a[_0x33fcc6(0x151)]||0x0)+_0x5e8081);let _0x5a487b=_0x5ce281(_0x195e4a,_0xbe68c5),_0x1ff52b=_0x2fc0e6(_0x195e4a,_0xbe68c5),_0x655359=_0x25b726['getShapeType'](),_0x769b5c=_0x25b726[_0x33fcc6(0xc5)](),_0x582a2e={'unitId':_0x8c2fe2,'subUnitId':_0x1689ee,'drawingId':_0x44b2b0,'drawingType':_0x19746e['DRAWING_SHAPE'],'sheetTransform':_0x5a487b,'transform':_0x195e4a,'data':{'shapeType':_0x655359,'shapeData':_0x769b5c},'axisAlignSheetTransform':_0x1ff52b,'allowTransform':!0x0},{undo:_0x155ae6,redo:_0x14230d,objects:_0x40c5f9}=_0x9ccad2[_0x33fcc6(0x16e)]([_0x582a2e]),_0x4c976c=_0x5a6e14['onCommandExecute']({'id':_0x3e690f['id'],'params':{'unitId':_0x8c2fe2,'drawings':[_0x582a2e]}}),_0x4403c1=[..._0x4c976c[_0x33fcc6(0x132)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x8c2fe2,'subUnitId':_0x1689ee,'op':_0x14230d,'objects':_0x40c5f9,'type':_0x140f2f[_0x33fcc6(0xca)]}},{'id':_0x17646c['id'],'params':[_0x8c2fe2]},..._0x4c976c[_0x33fcc6(0xde)]],_0x171a91=[..._0x4c976c[_0x33fcc6(0x103)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x8c2fe2,'subUnitId':_0x1689ee,'op':_0x155ae6,'objects':_0x40c5f9,'type':_0x140f2f[_0x33fcc6(0xca)]}},{'id':_0x17646c['id'],'params':[_0x8c2fe2]},..._0x4c976c[_0x33fcc6(0x186)]];return _0x190c41(_0x4403c1,_0x5066ef)[_0x33fcc6(0x112)]?(_0x413d2c[_0x33fcc6(0x10b)]({'unitID':_0x8c2fe2,'undoMutations':_0x171a91,'redoMutations':_0x4403c1}),!0x0):!0x1;}},ge={'type':_0x3ca940[_0x318f8d(0x16a)],'id':_0x318f8d(0x154),'handler':(_0x220ac3,_0x243739)=>{const _0x5a2e69=_0x318f8d;let _0x3faf69=_0x35b812(_0x220ac3[_0x5a2e69(0xc4)](_0x3841c4),_0x243739);if(!_0x3faf69)return!0x1;let {unitId:_0xc4a9d5,subUnitId:_0x596383}=_0x3faf69,{shapeId:_0x369fce}=_0x243739,_0x1a52b5=_0x220ac3[_0x5a2e69(0xc4)](Z)[_0x5a2e69(0x101)](_0xc4a9d5,_0x596383,_0x369fce);if(!_0x1a52b5)return!0x1;let _0x2ba047=_0x1a52b5[_0x5a2e69(0xff)](),_0xd55762=(_0x2ba047==null?void 0x0:_0x2ba047[_0x5a2e69(0xdd)])??!0x0,_0x27dba3=!_0xd55762,_0x1f3c63=_0x220ac3['get'](_0x284dd9),_0x27e4c9=_0x220ac3[_0x5a2e69(0xc4)](_0x5cea01),_0x143940={'unitId':_0xc4a9d5,'subUnitId':_0x596383,'shapeId':_0x369fce,'shapeData':{'shapeText':{'isHorizontal':_0x27dba3}}},_0x4a2459={'unitId':_0xc4a9d5,'subUnitId':_0x596383,'shapeId':_0x369fce,'shapeData':{'shapeText':{'isHorizontal':_0xd55762}}},_0x4a08d1=[{'id':Q['id'],'params':_0x143940}],_0x243904=[{'id':Q['id'],'params':_0x4a2459}];return _0x190c41(_0x4a08d1,_0x1f3c63)[_0x5a2e69(0x112)]?(_0x27e4c9['pushUndoRedo']({'unitID':_0xc4a9d5,'undoMutations':_0x243904,'redoMutations':_0x4a08d1}),!0x0):!0x1;}},_e={'type':_0x3ca940[_0x318f8d(0x16a)],'id':_0x318f8d(0x106),'handler':(_0x41c70d,_0x50415a)=>{const _0x15dcbc=_0x318f8d;var _0x58af3e;let _0xacc8c6=_0x35b812(_0x41c70d[_0x15dcbc(0xc4)](_0x3841c4),_0x50415a);if(!_0xacc8c6)return!0x1;let _0x28835f=_0x41c70d[_0x15dcbc(0xc4)](_0x54030d),{unitId:_0x5502c9,subUnitId:_0x6d25d2}=_0xacc8c6,_0x31078d=_0x28835f['getSkeleton'](_0x5502c9,_0x6d25d2);if(!_0x31078d)return!0x1;let _0x3852d9=_0x41c70d[_0x15dcbc(0xc4)](_0x410389),{connectorShapeId:_0x4bb1c2,width:_0x204973,height:_0x45d899,left:_0x4e20cb,top:_0x1bc2cd,flipX:_0x45a065,flipY:_0xb2c025,rotation:_0x56abac,oldAdjustValues:_0x57130d,newAdjustValues:_0x18b5ac,oldLineType:_0x13543c,newLineType:_0x576d53,oldRelation:_0x1529ce,newRelation:_0x172330}=_0x50415a,_0x202d6d=_0x3852d9[_0x15dcbc(0x139)]({'unitId':_0x5502c9,'subUnitId':_0x6d25d2,'drawingId':_0x4bb1c2});if(!_0x202d6d)return!0x1;let _0x44d821=_0x41c70d[_0x15dcbc(0xc4)](Z)[_0x15dcbc(0x101)](_0x5502c9,_0x6d25d2,_0x4bb1c2);if(!_0x44d821)return!0x1;let _0x292cdf=_0x41c70d[_0x15dcbc(0xc4)](_0x284dd9),_0xbf11a8=_0x41c70d[_0x15dcbc(0xc4)](_0x5cea01),_0x5f58b1=_0x41c70d['get'](_0x5a1116),_0x2985c4={..._0x202d6d[_0x15dcbc(0x184)],'width':_0x204973,'height':_0x45d899,'left':_0x4e20cb,'top':_0x1bc2cd,'flipX':_0x45a065,'flipY':_0xb2c025,'angle':_0x56abac??((_0x58af3e=_0x202d6d[_0x15dcbc(0x184)])==null?void 0x0:_0x58af3e[_0x15dcbc(0x151)])??0x0},_0x2f5209=_0x5ce281(_0x2985c4,_0x31078d),_0x37508e=_0x2fc0e6(_0x2985c4,_0x31078d),_0x33feb5=_0x44d821[_0x15dcbc(0x13a)](),_0x40ae99=_0x44d821['getShapeData'](),_0x1e4b8d={'unitId':_0x5502c9,'subUnitId':_0x6d25d2,'drawingId':_0x4bb1c2,'drawingType':_0x19746e['DRAWING_SHAPE'],'sheetTransform':_0x2f5209,'transform':_0x2985c4,'data':{'shapeType':_0x576d53||_0x13543c||_0x33feb5,'shapeData':{..._0x40ae99,'adjustValues':_0x18b5ac||_0x57130d||(_0x40ae99==null?void 0x0:_0x40ae99[_0x15dcbc(0x159)]),'relation':_0x172330||_0x1529ce||(_0x40ae99==null?void 0x0:_0x40ae99[_0x15dcbc(0xd0)])}},'axisAlignSheetTransform':_0x37508e,'allowTransform':!0x0},{undo:_0x3e2e63,redo:_0xe93f21,objects:_0x3abefc}=_0x3852d9['getBatchUpdateOp']([_0x1e4b8d]),_0x16f384=_0x5f58b1['onCommandExecute']({'id':_0x3e690f['id'],'params':{'unitId':_0x5502c9,'drawings':[_0x1e4b8d]}}),_0x544475=[..._0x16f384['preRedos']??[],{'id':_0x348df4['id'],'params':{'unitId':_0x5502c9,'subUnitId':_0x6d25d2,'op':_0xe93f21,'objects':_0x3abefc,'type':_0x140f2f['UPDATE']}},{'id':_0x17646c['id'],'params':[_0x5502c9]},..._0x16f384['redos'],{'id':Q['id'],'params':{'unitId':_0x5502c9,'subUnitId':_0x6d25d2,'shapeId':_0x4bb1c2,'shapeType':_0x576d53,'shapeData':{'adjustValues':_0x18b5ac,'relation':_0x172330}}}],_0x1e060d=[..._0x16f384[_0x15dcbc(0x103)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x5502c9,'subUnitId':_0x6d25d2,'op':_0x3e2e63,'objects':_0x3abefc,'type':_0x140f2f[_0x15dcbc(0xca)]}},{'id':_0x17646c['id'],'params':[_0x5502c9]},..._0x16f384[_0x15dcbc(0x186)],{'id':Q['id'],'params':{'unitId':_0x5502c9,'subUnitId':_0x6d25d2,'shapeId':_0x4bb1c2,'shapeType':_0x33feb5,'shapeData':{..._0x40ae99,'adjustValues':_0x57130d||(_0x40ae99==null?void 0x0:_0x40ae99['adjustValues']),'relation':_0x1529ce||(_0x40ae99==null?void 0x0:_0x40ae99[_0x15dcbc(0xd0)])}}}];return _0x190c41(_0x544475,_0x292cdf)[_0x15dcbc(0x112)]?(_0xbf11a8[_0x15dcbc(0x10b)]({'unitID':_0x5502c9,'undoMutations':_0x1e060d,'redoMutations':_0x544475}),!0x0):!0x1;}},ve={'type':_0x3ca940['COMMAND'],'id':'sheet.command.update-line-shape-resize','handler':(_0x34fc2a,_0x28fac8)=>{const _0x267da0=_0x318f8d;let _0x2c556d=_0x35b812(_0x34fc2a[_0x267da0(0xc4)](_0x3841c4),_0x28fac8);if(!_0x2c556d)return!0x1;let _0xb601a6=_0x34fc2a['get'](_0x54030d),{unitId:_0x579e01,subUnitId:_0x181128}=_0x2c556d,_0x4a393f=_0xb601a6['getSkeleton'](_0x579e01,_0x181128);if(!_0x4a393f)return!0x1;let _0x305388=_0x34fc2a['get'](_0x410389),{shapeId:_0x3b95a5,width:_0x21fa1f,height:_0x2637f7,left:_0x2a5eac,top:_0x57ad8e,flipX:_0x478f70,flipY:_0xc5e657,angle:_0xa5250c,oldAdjustValues:_0x2e9f94,newAdjustValues:_0x10c2eb,oldLineType:_0x231b40,newLineType:_0x343738}=_0x28fac8,_0x2a5229=_0x305388[_0x267da0(0x139)]({'unitId':_0x579e01,'subUnitId':_0x181128,'drawingId':_0x3b95a5});if(!_0x2a5229)return!0x1;let _0x1f911b=_0x34fc2a['get'](Z)[_0x267da0(0x101)](_0x579e01,_0x181128,_0x3b95a5);if(!_0x1f911b)return!0x1;let _0x5382b7=_0x34fc2a[_0x267da0(0xc4)](_0x284dd9),_0x207db2=_0x34fc2a[_0x267da0(0xc4)](_0x5cea01),_0x4b7c0c=_0x34fc2a['get'](_0x5a1116),_0x52990e={..._0x2a5229['transform'],'width':_0x21fa1f,'height':_0x2637f7,'left':_0x2a5eac,'top':_0x57ad8e,'flipX':_0x478f70,'flipY':_0xc5e657,'angle':_0xa5250c},_0x2d939f=_0x5ce281(_0x52990e,_0x4a393f),_0x594f5b=_0x2fc0e6(_0x52990e,_0x4a393f),_0x2851e6=_0x1f911b[_0x267da0(0x13a)](),_0x20582d=_0x1f911b[_0x267da0(0xc5)](),_0xd58a7a={'unitId':_0x579e01,'subUnitId':_0x181128,'drawingId':_0x3b95a5,'drawingType':_0x19746e['DRAWING_SHAPE'],'sheetTransform':_0x2d939f,'transform':_0x52990e,'data':{'shapeType':_0x343738||_0x231b40||_0x2851e6,'shapeData':{..._0x20582d,'adjustValues':_0x10c2eb||_0x2e9f94||(_0x20582d==null?void 0x0:_0x20582d['adjustValues'])}},'axisAlignSheetTransform':_0x594f5b,'allowTransform':!0x0},{undo:_0x33d887,redo:_0x373c3e,objects:_0x5cc72e}=_0x305388[_0x267da0(0x16e)]([_0xd58a7a]),_0x36923d=_0x4b7c0c[_0x267da0(0x161)]({'id':_0x3e690f['id'],'params':{'unitId':_0x579e01,'drawings':[_0xd58a7a]}}),_0x145d60=[..._0x36923d[_0x267da0(0x132)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x579e01,'subUnitId':_0x181128,'op':_0x373c3e,'objects':_0x5cc72e,'type':_0x140f2f[_0x267da0(0xca)]}},{'id':_0x17646c['id'],'params':[_0x579e01]},..._0x36923d[_0x267da0(0xde)],{'id':Q['id'],'params':{'unitId':_0x579e01,'subUnitId':_0x181128,'shapeId':_0x3b95a5,'shapeType':_0x343738,'shapeData':{'adjustValues':_0x10c2eb}}}],_0x53b125=[..._0x36923d[_0x267da0(0x103)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x579e01,'subUnitId':_0x181128,'op':_0x33d887,'objects':_0x5cc72e,'type':_0x140f2f[_0x267da0(0xca)]}},{'id':_0x17646c['id'],'params':[_0x579e01]},..._0x36923d[_0x267da0(0x186)],{'id':Q['id'],'params':{'unitId':_0x579e01,'subUnitId':_0x181128,'shapeId':_0x3b95a5,'shapeType':_0x2851e6,'shapeData':{..._0x20582d,'adjustValues':_0x2e9f94||(_0x20582d==null?void 0x0:_0x20582d[_0x267da0(0x159)])}}}];return _0x190c41(_0x145d60,_0x5382b7)[_0x267da0(0x112)]?(_0x207db2[_0x267da0(0x10b)]({'unitID':_0x579e01,'undoMutations':_0x53b125,'redoMutations':_0x145d60}),!0x0):!0x1;}},ye={'id':'sheet.mutation.update-shape-type','type':_0x3ca940[_0x318f8d(0x177)],'handler':(_0x137519,_0x5d2f64)=>{const _0x42c79e=_0x318f8d;let {unitId:_0x33e1fc,subUnitId:_0x514ea5,shapeType:_0x25aab9,shapeId:_0x4ef37c,shapeData:_0x24c6fc}=_0x5d2f64,_0x103987=_0x137519[_0x42c79e(0xc4)](Z)[_0x42c79e(0x101)](_0x33e1fc,_0x514ea5,_0x4ef37c);return _0x103987&&(_0x103987[_0x42c79e(0x18b)](_0x25aab9),_0x24c6fc&&(_0x103987==null||_0x103987[_0x42c79e(0x137)](_0x24c6fc))),!0x0;}};var be=_0x318f8d(0x10a),xe=_0x318f8d(0x126);function Se(_0x3e32df){const _0x3dbf77=_0x318f8d;var _0x233f4a,_0x53f736,_0x3a85aa,_0x2553a9,_0x16d294,_0x137f40,_0x334bec;return{'left':((_0x233f4a=_0x3e32df[_0x3dbf77(0x184)])==null?void 0x0:_0x233f4a[_0x3dbf77(0x18a)])??0x0,'top':((_0x53f736=_0x3e32df[_0x3dbf77(0x184)])==null?void 0x0:_0x53f736[_0x3dbf77(0x11d)])??0x0,'width':((_0x3a85aa=_0x3e32df[_0x3dbf77(0x184)])==null?void 0x0:_0x3a85aa[_0x3dbf77(0x114)])??0xc8,'height':((_0x2553a9=_0x3e32df[_0x3dbf77(0x184)])==null?void 0x0:_0x2553a9[_0x3dbf77(0x18f)])??0xc8,'rotation':((_0x16d294=_0x3e32df[_0x3dbf77(0x184)])==null?void 0x0:_0x16d294[_0x3dbf77(0x162)])??0x0,'flipX':((_0x137f40=_0x3e32df['transform'])==null?void 0x0:_0x137f40[_0x3dbf77(0x18c)])??!0x1,'flipY':((_0x334bec=_0x3e32df[_0x3dbf77(0x184)])==null?void 0x0:_0x334bec[_0x3dbf77(0xe4)])??!0x1};}let Ce=class{constructor(_0x1641e5,_0x15814d,_0x185329,_0x1dfc1d){const _0x29856c=_0x318f8d;this['_commandService']=_0x1641e5,this[_0x29856c(0x108)]=_0x15814d,this[_0x29856c(0x17f)]=_0x185329,this[_0x29856c(0x156)]=_0x1dfc1d,Y(this,_0x29856c(0xfe),_0x1d598f[_0x29856c(0x105)]);}get[_0x318f8d(0x167)](){return{'subscribe':_0x5c7b6e=>{const _0x41931c=_0x195e;let _0x5949e9=this[_0x41931c(0xf3)][_0x41931c(0x199)](_0x2e2368=>{const _0x554d26=_0x41931c;(_0x2e2368['id']===ue['id']||_0x2e2368['id']===de['id']||_0x2e2368['id']===Q['id']||_0x2e2368['id']===ye['id'])&&_0x5c7b6e({'unitId':_0x2e2368['params'][_0x554d26(0x125)]});});return{'unsubscribe':()=>_0x5949e9[_0x41931c(0xfb)]()};}};}['getShape'](_0x12a592){const _0x4b3fb5=_0x318f8d;var _0x4938c5;let _0x2fdb79=(_0x4938c5=this[_0x4b3fb5(0x17f)][_0x4b3fb5(0x110)](_0x12a592[_0x4b3fb5(0x125)],_0x12a592['subUnitId']))==null?void 0x0:_0x4938c5[_0x12a592['shapeId']],_0x550a85=this[_0x4b3fb5(0x108)][_0x4b3fb5(0x13a)](_0x12a592[_0x4b3fb5(0x125)],_0x12a592[_0x4b3fb5(0x11e)],_0x12a592[_0x4b3fb5(0x12f)]);if(!_0x2fdb79||_0x2fdb79[_0x4b3fb5(0x147)]!==_0x19746e[_0x4b3fb5(0x14c)]||!_0x550a85)return null;let _0xfdffdc=_0x2fdb79[_0x4b3fb5(0x184)];return{..._0x12a592,'shapeType':_0x550a85,'shapeData':_0x3b1473['deepClone'](this[_0x4b3fb5(0x108)][_0x4b3fb5(0xe3)](_0x12a592[_0x4b3fb5(0x125)],_0x12a592['subUnitId'],_0x12a592[_0x4b3fb5(0x12f)])??{}),'name':_0x2fdb79[_0x4b3fb5(0x163)],'description':_0x2fdb79[_0x4b3fb5(0xcd)],'visible':_0x2fdb79['hidden']!==!0x0,'selectable':_0x2fdb79['selectable']!==!0x1,'transform':{'left':(_0xfdffdc==null?void 0x0:_0xfdffdc['left'])??0x0,'top':(_0xfdffdc==null?void 0x0:_0xfdffdc['top'])??0x0,'width':(_0xfdffdc==null?void 0x0:_0xfdffdc[_0x4b3fb5(0x114)])??0xc8,'height':(_0xfdffdc==null?void 0x0:_0xfdffdc[_0x4b3fb5(0x18f)])??0xc8,'rotation':(_0xfdffdc==null?void 0x0:_0xfdffdc[_0x4b3fb5(0x151)])??0x0,'flipX':(_0xfdffdc==null?void 0x0:_0xfdffdc['flipX'])??!0x1,'flipY':(_0xfdffdc==null?void 0x0:_0xfdffdc[_0x4b3fb5(0xe4)])??!0x1}};}[_0x318f8d(0xf8)](_0x4bbdcc){const _0x49b412=_0x318f8d;let _0x165b70=this[_0x49b412(0x17f)][_0x49b412(0x110)](_0x4bbdcc['unitId'],_0x4bbdcc[_0x49b412(0x11e)])??{};return Object[_0x49b412(0x127)](_0x165b70)[_0x49b412(0x146)](_0x22bb6d=>(_0x22bb6d==null?void 0x0:_0x22bb6d[_0x49b412(0x147)])===_0x19746e[_0x49b412(0x14c)])['map'](_0x1bc204=>this['getShape']({..._0x4bbdcc,'shapeId':_0x1bc204[_0x49b412(0xdb)]}))[_0x49b412(0x146)](_0x489ba3=>!!_0x489ba3);}[_0x318f8d(0xf7)](_0x5d8e8e){const _0x3a9cb8=_0x318f8d;let _0x2e2317=this[_0x3a9cb8(0x156)][_0x3a9cb8(0xe5)](_0x5d8e8e,_0x1d598f[_0x3a9cb8(0x105)]);return(_0x2e2317==null?void 0x0:_0x2e2317[_0x3a9cb8(0xec)]()[_0x3a9cb8(0xe8)](_0x57a2a9=>this['listShapes']({'hostType':this['hostType'],'unitId':_0x5d8e8e,'subUnitId':_0x57a2a9[_0x3a9cb8(0x166)]()})))??[];}[_0x318f8d(0x10d)](_0x1ded25,_0x4d8afc){const _0x54ea4e=_0x318f8d;let _0x590d52=_0x307e0b(),_0x5b61e0=Se(_0x4d8afc);return this['_commandService'][_0x54ea4e(0x100)](fe['id'],{'unitId':_0x1ded25['unitId'],'subUnitId':_0x1ded25[_0x54ea4e(0x11e)],'shapeId':_0x590d52,'shapeType':_0x4d8afc[_0x54ea4e(0x17a)],'shapeData':_0x4d8afc[_0x54ea4e(0x153)],'name':_0x4d8afc['name'],'description':_0x4d8afc[_0x54ea4e(0xcd)],'position':{'x':_0x5b61e0[_0x54ea4e(0x18a)],'y':_0x5b61e0[_0x54ea4e(0x11d)]},'width':_0x5b61e0[_0x54ea4e(0x114)],'height':_0x5b61e0[_0x54ea4e(0x18f)],'rotation':_0x5b61e0[_0x54ea4e(0x162)],'flipX':_0x5b61e0[_0x54ea4e(0x18c)],'flipY':_0x5b61e0['flipY'],'visible':_0x4d8afc['visible']??!0x0,'selectable':_0x4d8afc[_0x54ea4e(0xea)]??!0x0})?{..._0x1ded25,'shapeId':_0x590d52,'shapeType':_0x4d8afc[_0x54ea4e(0x17a)],'shapeData':_0x3b1473[_0x54ea4e(0x176)](_0x4d8afc[_0x54ea4e(0x153)]??{}),'name':_0x4d8afc['name'],'description':_0x4d8afc[_0x54ea4e(0xcd)],'visible':_0x4d8afc[_0x54ea4e(0x102)]??!0x0,'selectable':_0x4d8afc[_0x54ea4e(0xea)]??!0x0,'transform':_0x5b61e0}:null;}[_0x318f8d(0xe6)](_0x41a2dd,_0x1d72ab){const _0x88840b=_0x318f8d;var _0x1ca842;let _0xf876b6=this[_0x88840b(0x155)](_0x41a2dd);if(!_0xf876b6)return!0x1;let _0x34baba={..._0xf876b6[_0x88840b(0x184)],..._0x1d72ab[_0x88840b(0x184)]};return this['_commandService'][_0x88840b(0x100)](pe['id'],{'unitId':_0x41a2dd[_0x88840b(0x125)],'subUnitId':_0x41a2dd[_0x88840b(0x11e)],'shapeId':_0x41a2dd[_0x88840b(0x12f)],'shapeType':_0x1d72ab[_0x88840b(0x17a)]??((_0x1ca842=_0x1d72ab[_0x88840b(0x153)])==null?void 0x0:_0x1ca842[_0x88840b(0x17a)])??_0xf876b6[_0x88840b(0x17a)],'shapeData':_0x1d72ab[_0x88840b(0x153)]??_0xf876b6[_0x88840b(0x153)],'position':{'x':_0x34baba['left'],'y':_0x34baba['top']},'width':_0x34baba[_0x88840b(0x114)],'height':_0x34baba['height'],'rotation':_0x34baba[_0x88840b(0x162)],'flipX':_0x34baba[_0x88840b(0x18c)],'flipY':_0x34baba[_0x88840b(0xe4)],'name':_0x88840b(0x163)in _0x1d72ab?_0x1d72ab[_0x88840b(0x163)]:_0xf876b6[_0x88840b(0x163)],'description':'description'in _0x1d72ab?_0x1d72ab[_0x88840b(0xcd)]:_0xf876b6[_0x88840b(0xcd)],'visible':_0x1d72ab['visible']??_0xf876b6[_0x88840b(0x102)],'selectable':_0x1d72ab[_0x88840b(0xea)]??_0xf876b6[_0x88840b(0xea)]});}['createFormulaLastValueMutation'](_0x137abf,_0x54e56a,_0x2ac6ea){const _0x5e1673=_0x318f8d;let _0x66b8f=this['getShape'](_0x137abf),_0x16e441=_0x66b8f==null?void 0x0:_0x66b8f[_0x5e1673(0x153)]['formulaBinding'];return!_0x66b8f||!_0x16e441?null:{'id':Q['id'],'params':{'unitId':_0x137abf[_0x5e1673(0x125)],'subUnitId':_0x137abf['subUnitId'],'shapeId':_0x137abf[_0x5e1673(0x12f)],'shapeData':{..._0x66b8f[_0x5e1673(0x153)],'formulaBinding':{..._0x16e441,'lastValue':_0x3b1473[_0x5e1673(0x176)](_0x2ac6ea)}},'replace':!0x0,'formulaLastValueGuard':_0x54e56a}};}[_0x318f8d(0xed)](_0x207329){const _0x4505f9=_0x318f8d;return this[_0x4505f9(0xf3)]['syncExecuteCommand'](_0x293fe8['id'],{'unitId':_0x207329[_0x4505f9(0x125)],'drawings':[{'unitId':_0x207329['unitId'],'subUnitId':_0x207329[_0x4505f9(0x11e)],'drawingId':_0x207329[_0x4505f9(0x12f)],'drawingType':_0x19746e[_0x4505f9(0x14c)]}]});}[_0x318f8d(0x144)](_0x138055){const _0x19d73b=_0x318f8d;return this[_0x19d73b(0xee)](_0x138055,_0x44b4ab['front']);}[_0x318f8d(0x111)](_0xa8ab6f){const _0x2c403d=_0x318f8d;return this[_0x2c403d(0xee)](_0xa8ab6f,_0x44b4ab[_0x2c403d(0xd7)]);}[_0x318f8d(0x15e)](_0x37745e){const _0x50a381=_0x318f8d;return this[_0x50a381(0xee)](_0x37745e,_0x44b4ab[_0x50a381(0xd4)]);}[_0x318f8d(0xcf)](_0x35e4e8){const _0x41de76=_0x318f8d;return this[_0x41de76(0xee)](_0x35e4e8,_0x44b4ab[_0x41de76(0xe0)]);}['setZOrder'](_0xf21bfc,_0x32caee){const _0x494324=_0x318f8d;return this[_0x494324(0xf3)][_0x494324(0x100)](_0x29706e['id'],{'unitId':_0xf21bfc[_0x494324(0x125)],'subUnitId':_0xf21bfc[_0x494324(0x11e)],'drawingIds':[_0xf21bfc[_0x494324(0x12f)]],'zOrder':_0x32caee});}[_0x318f8d(0xee)](_0x4dcba7,_0x2bbd70){const _0x157351=_0x318f8d;return this[_0x157351(0xf3)][_0x157351(0x100)](_0x29706e['id'],{'unitId':_0x4dcba7['unitId'],'subUnitId':_0x4dcba7[_0x157351(0x11e)],'drawingIds':[_0x4dcba7[_0x157351(0x12f)]],'arrangeType':_0x2bbd70});}};Ce=le([X(0x0,_0x284dd9),X(0x1,_0xab1f83(Z)),X(0x2,_0x410389),X(0x3,_0x3841c4)],Ce);const we={};let Te=class extends _0x130970{constructor(_0x5b2ceb,_0xdc3f2f,_0x13c5aa,_0x5ace62,_0x378fec,_0x2e6290,_0x40b622){const _0x318bba=_0x318f8d;super(),this['_commandService']=_0x5b2ceb,this[_0x318bba(0x13f)]=_0xdc3f2f,this[_0x318bba(0x15b)]=_0x13c5aa,this[_0x318bba(0x115)]=_0x5ace62,this['_drawingManagerService']=_0x378fec,this['_shapeHostAdapterRegistry']=_0x2e6290,this['_initCommands'](),this[_0x318bba(0x197)](),this[_0x318bba(0xd5)](this[_0x318bba(0xda)]['register'](_0x40b622));}[_0x318f8d(0xd8)](){const _0x20129d=_0x318f8d;[fe,pe,me,he,ge,_e,ve,ue,de,ye,Q][_0x20129d(0x178)](_0x385054=>this[_0x20129d(0xd5)](this[_0x20129d(0xf3)][_0x20129d(0x14b)](_0x385054)));}[_0x318f8d(0x197)](){const _0x47bec1=_0x318f8d;this[_0x47bec1(0xd5)](this[_0x47bec1(0x13f)]['interceptCommand']({'getMutations':_0x3d46d4=>{const _0x490f56=_0x47bec1;if(_0x3d46d4['id']===_0x293fe8['id']){let {drawings:_0x46114c}=_0x3d46d4[_0x490f56(0xf4)],_0x22e14f=_0x46114c['filter'](_0x28824e=>_0x28824e[_0x490f56(0x147)]===_0x19746e[_0x490f56(0x14c)]);if(_0x22e14f[_0x490f56(0xef)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3aa290=[],_0x645878=[];return _0x22e14f[_0x490f56(0x178)](_0x73f09a=>{const _0x22ff83=_0x490f56;let {unitId:_0x29f369,subUnitId:_0x563548,drawingId:_0x18933f}=_0x73f09a,_0x343a6e=this[_0x22ff83(0x115)][_0x22ff83(0x101)](_0x29f369,_0x563548,_0x18933f);if(!_0x343a6e)throw TypeError(_0x22ff83(0xf2)+_0x343a6e);_0x3aa290['push']({'id':de['id'],'params':{'unitId':_0x29f369,'subUnitId':_0x563548,'shapeId':_0x18933f}}),_0x645878['push']({'id':ue['id'],'params':{'unitId':_0x29f369,'subUnitId':_0x563548,'shapeId':_0x18933f,'shapeType':_0x343a6e['getShapeType'](),'shapeData':_0x343a6e[_0x22ff83(0xc5)]()}});let _0x211ff7=this[_0x22ff83(0x115)][_0x22ff83(0xe9)](_0x29f369,_0x563548,_0x18933f);if(_0x211ff7)for(let _0x32d5ce of _0x211ff7){let _0x3a5b02=_0x32d5ce[_0x22ff83(0x195)],_0x290789=_0x32d5ce['isFrom'],_0x2f2045=_0x290789?{'from':void 0x0}:{'to':void 0x0},_0x34e396=_0x290789?{'from':{'shapeId':_0x32d5ce[_0x22ff83(0x12f)],'cxnIndex':_0x32d5ce[_0x22ff83(0x141)]}}:{'to':{'shapeId':_0x32d5ce['shapeId'],'cxnIndex':_0x32d5ce['cxnIndex']}};_0x3aa290[_0x22ff83(0x13c)]({'id':Q['id'],'params':{'unitId':_0x29f369,'subUnitId':_0x563548,'shapeId':_0x3a5b02,'shapeData':{'relation':_0x2f2045}}}),_0x645878[_0x22ff83(0x13c)]({'id':Q['id'],'params':{'unitId':_0x29f369,'subUnitId':_0x563548,'shapeId':_0x3a5b02,'shapeData':{'relation':_0x34e396}}});}}),{'preRedos':_0x3aa290,'redos':[],'preUndos':[],'undos':_0x645878};}if(_0x3d46d4['id']===_0x3e690f['id']){let {drawings:_0x105425}=_0x3d46d4['params'],_0x2fe56e=_0x105425['filter'](_0x4ef950=>_0x4ef950['drawingType']===_0x19746e[_0x490f56(0x14c)]);if(_0x2fe56e['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x463a75=[],_0x375844=[];for(let _0x55a291 of _0x2fe56e){let {unitId:_0x79f4ce,subUnitId:_0x3a6ed3,drawingId:_0x20b81b,transform:_0x2aa006}=_0x55a291;if(!_0x79f4ce||!_0x3a6ed3||!_0x20b81b||!_0x2aa006)continue;let _0x155fe7=this[_0x490f56(0x115)][_0x490f56(0x101)](_0x79f4ce,_0x3a6ed3,_0x20b81b);if(!_0x155fe7)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x155fe7);if(_0x2b34a7(_0x155fe7[_0x490f56(0x13a)]())){let _0x494993=this['_sheetsShapeService'][_0x490f56(0x168)](_0x79f4ce,_0x3a6ed3,_0x20b81b);_0x494993&&(_0x463a75['push']({'id':Q['id'],'params':{'unitId':_0x79f4ce,'subUnitId':_0x3a6ed3,'shapeId':_0x20b81b,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x375844[_0x490f56(0x13c)]({'id':Q['id'],'params':{'unitId':_0x79f4ce,'subUnitId':_0x3a6ed3,'shapeId':_0x20b81b,'shapeData':{'relation':_0x494993}}}));}else{let _0x6fa0c1=this[_0x490f56(0x115)][_0x490f56(0xe9)](_0x79f4ce,_0x3a6ed3,_0x20b81b);if(_0x6fa0c1&&_0x6fa0c1[_0x490f56(0xef)]>0x0)for(let _0x1cd15f of _0x6fa0c1){let _0x1bafc2=_0x1cd15f[_0x490f56(0x195)],_0x3bdca4=_0x1cd15f['isFrom'],_0x2ddee4=this['_sheetsShapeService'][_0x490f56(0x101)](_0x79f4ce,_0x3a6ed3,_0x1bafc2);if(!_0x2ddee4)continue;let _0x4f1f44=_0x2ddee4[_0x490f56(0x15f)](),_0x11288e=_0x2ddee4[_0x490f56(0xe1)]();_0x4f1f44&&_0x11288e?this[_0x490f56(0x17b)](_0x79f4ce,_0x3a6ed3,_0x1bafc2,_0x2ddee4,_0x4f1f44,_0x11288e,_0x463a75,_0x375844,_0x20b81b,_0x2aa006):this[_0x490f56(0x16c)](_0x79f4ce,_0x3a6ed3,_0x1bafc2,_0x2ddee4,_0x3bdca4?_0x4f1f44:_0x11288e,_0x3bdca4,_0x463a75,_0x375844,_0x20b81b,_0x2aa006);}}}return{'preRedos':[],'redos':_0x463a75,'preUndos':_0x375844,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x318f8d(0xf6)](_0x4da9b4,_0x5e78de,_0x2c8b49,_0x2da817,_0x36b87e){const _0x1390ed=_0x318f8d;if(!_0x5e78de||!_0x2c8b49)return null;let {shapeId:_0x3d8413,cxnIndex:_0x1a8272}=_0x4da9b4,_0x1175a0=this[_0x1390ed(0x115)][_0x1390ed(0x101)](_0x5e78de,_0x2c8b49,_0x3d8413);if(!_0x1175a0)return null;let _0xf5c31a=this[_0x1390ed(0x135)][_0x1390ed(0x139)]({'unitId':_0x5e78de,'subUnitId':_0x2c8b49,'drawingId':_0x3d8413});if(!(_0xf5c31a!=null&&_0xf5c31a['transform']))return null;let {left:_0x2bbded=0x0,top:_0x44205b=0x0,width:_0x477451=0x0,height:_0x22b181=0x0,flipX:_0x29d677=!0x1,flipY:_0x13b02c=!0x1,angle:_0x3c920c}=_0xf5c31a[_0x1390ed(0x184)];_0x36b87e&&_0x2da817===_0x3d8413&&(_0x2bbded=_0x36b87e[_0x1390ed(0x18a)]??_0x2bbded,_0x44205b=_0x36b87e['top']??_0x44205b,_0x477451=_0x36b87e[_0x1390ed(0x114)]??_0x477451,_0x22b181=_0x36b87e[_0x1390ed(0x18f)]??_0x22b181,_0x29d677=_0x36b87e['flipX']??_0x29d677,_0x13b02c=_0x36b87e['flipY']??_0x13b02c,_0x3c920c=_0x36b87e[_0x1390ed(0x151)]??_0x3c920c),_0x1175a0[_0x1390ed(0xcb)]({'width':_0x477451,'height':_0x22b181});let _0x4513fb=_0x1175a0[_0x1390ed(0x116)]()['find'](_0x39311b=>_0x39311b[_0x1390ed(0x181)]===_0x1a8272);if(!_0x4513fb)return null;let _0x190efd=_0x29d677?_0x477451-_0x4513fb['x']:_0x4513fb['x'],_0x54f937=_0x13b02c?_0x22b181-_0x4513fb['y']:_0x4513fb['y'];if(_0x3c920c!==0x0&&_0x3c920c!=null){let _0x5c3db6=_0x3c920c*Math['PI']/0xb4,_0x1b042b=Math[_0x1390ed(0x174)](_0x5c3db6),_0x449090=Math[_0x1390ed(0x17c)](_0x5c3db6),_0x35eca6=_0x477451/0x2,_0x1fe1ee=_0x22b181/0x2,_0x4d3064=_0x190efd-_0x35eca6,_0x19f7d7=_0x54f937-_0x1fe1ee;_0x190efd=_0x35eca6+_0x4d3064*_0x1b042b-_0x19f7d7*_0x449090,_0x54f937=_0x1fe1ee+_0x4d3064*_0x449090+_0x19f7d7*_0x1b042b;}_0x190efd+=_0x2bbded,_0x54f937+=_0x44205b;let _0x511cf6=_0x4513fb['ang']/0xea60;_0x29d677&&(_0x511cf6=0xb4-_0x511cf6),_0x13b02c&&(_0x511cf6=-_0x511cf6),_0x511cf6+=_0x3c920c||0x0,_0x511cf6=(_0x511cf6%0x168+0x168)%0x168;let _0x40bc38=_0x3b0a2({'left':_0x2bbded,'top':_0x44205b,'width':_0x477451,'height':_0x22b181},_0x3c920c||0x0);return{'point':{'x':_0x190efd,'y':_0x54f937},'angle':_0x511cf6,'bounds':_0x40bc38};}[_0x318f8d(0x17b)](_0x46d29e,_0x317e18,_0x2cf1d5,_0x50f7a4,_0x1906a4,_0x43c46e,_0x3bd2df,_0x35663b,_0x562971,_0x5779cb){const _0x4decb7=_0x318f8d;let _0x56dd21=this['_sheetSkeletonService'][_0x4decb7(0x10e)](_0x46d29e,_0x317e18);if(!_0x56dd21)return;let _0x348a73=_0x50f7a4['getShapeRelation'](),_0x4eaa85=_0x50f7a4[_0x4decb7(0x12b)](),_0x23c010={},_0x53e9d={};_0x4eaa85[_0x4decb7(0x178)](_0x2af03a=>{const _0x17a95a=_0x4decb7;let _0xd28af1=_0x50f7a4[_0x17a95a(0x122)](_0x2af03a);_0x53e9d[_0x2af03a]=_0xd28af1??0x0;});let _0x306256=this[_0x4decb7(0xf6)](_0x1906a4,_0x46d29e,_0x317e18,_0x562971,_0x5779cb),_0x5038d1=this['_getConnectPointInfo'](_0x43c46e,_0x46d29e,_0x317e18,_0x562971,_0x5779cb);if(_0x306256&&_0x5038d1){let _0x465d2c=_0x50f7a4[_0x4decb7(0x13a)](),_0x4070bb=_0x2cd747(_0x306256,_0x5038d1,_0x465d2c),_0x356a5d=_0x465d2c;if(_0x4070bb){let _0xea0f43=_0x2dada7(_0x4070bb,_0x50f7a4[_0x4decb7(0x13a)]()),_0x3449ce=this[_0x4decb7(0x135)]['getDrawingData'](_0x46d29e,_0x317e18);if(_0x3449ce&&_0x3449ce[_0x2cf1d5]){let _0x3cd431=_0x3449ce[_0x2cf1d5];_0x356a5d=_0xea0f43[_0x4decb7(0x109)];for(let [_0x134961,_0x76a3fe]of Object[_0x4decb7(0x183)](_0xea0f43['adjustValues']))_0x23c010[_0x134961]=_0x76a3fe;let _0x1a2e1d={..._0x3cd431[_0x4decb7(0x184)],'width':_0xea0f43['worldRect'][_0x4decb7(0x114)],'height':_0xea0f43[_0x4decb7(0x118)][_0x4decb7(0x18f)],'left':_0xea0f43['worldRect'][_0x4decb7(0x18a)],'top':_0xea0f43[_0x4decb7(0x118)][_0x4decb7(0x11d)],'flipX':_0xea0f43[_0x4decb7(0x118)]['flipX'],'flipY':_0xea0f43[_0x4decb7(0x118)][_0x4decb7(0xe4)],'angle':_0xea0f43[_0x4decb7(0x162)]},_0x153b8b=_0x5ce281(_0x1a2e1d,_0x56dd21),_0x340573=_0x2fc0e6(_0x1a2e1d,_0x56dd21),_0x385287={'unitId':_0x46d29e,'subUnitId':_0x317e18,'drawingType':_0x19746e[_0x4decb7(0x14c)],'drawingId':_0x2cf1d5,'transform':_0x1a2e1d,'sheetTransform':_0x153b8b,'axisAlignSheetTransform':_0x340573},{unitId:_0x22e0f7,subUnitId:_0x1839a1,undo:_0x1c239e,redo:_0x55ee09,objects:_0x17feed}=this[_0x4decb7(0x135)][_0x4decb7(0x16e)]([_0x385287]);_0x3bd2df[_0x4decb7(0x13c)]({'id':_0x348df4['id'],'params':{'unitId':_0x22e0f7,'subUnitId':_0x1839a1,'op':_0x55ee09,'objects':_0x17feed,'type':_0x140f2f['UPDATE']}}),_0x35663b[_0x4decb7(0x13c)]({'id':_0x348df4['id'],'params':{'unitId':_0x22e0f7,'subUnitId':_0x1839a1,'op':_0x1c239e,'objects':_0x17feed,'type':_0x140f2f[_0x4decb7(0xca)]}});}_0x50f7a4[_0x4decb7(0x169)]();}_0x3bd2df[_0x4decb7(0x13c)]({'id':Q['id'],'params':{'unitId':_0x46d29e,'subUnitId':_0x317e18,'shapeId':_0x2cf1d5,'shapeType':_0x356a5d,'shapeData':{'adjustValues':_0x23c010,'relation':_0x348a73}}}),_0x35663b['push']({'id':Q['id'],'params':{'unitId':_0x46d29e,'subUnitId':_0x317e18,'shapeId':_0x2cf1d5,'shapeType':_0x465d2c,'shapeData':{'adjustValues':_0x53e9d,'relation':_0x348a73}}});}}['_addLineFollowShapeUpdates'](_0x538b1b,_0x4a877b,_0x1473a9,_0x4db2cd,_0x66ef62,_0x8b2972,_0x438276,_0x401f12,_0x55fea9,_0x313f59){const _0x62e20b=_0x318f8d;var _0x4ece6e;if(!_0x66ef62)return;let _0x51ad49=this['_sheetSkeletonService']['getSkeleton'](_0x538b1b,_0x4a877b);if(!_0x51ad49)return;let _0x2d2904=(_0x4ece6e=this[_0x62e20b(0x135)][_0x62e20b(0x139)]({'unitId':_0x538b1b,'subUnitId':_0x4a877b,'drawingId':_0x55fea9}))==null?void 0x0:_0x4ece6e[_0x62e20b(0x184)];if(!_0x2d2904)return;let _0x150ea8=_0x2d2904['left']!==_0x313f59['left']||_0x2d2904['top']!==_0x313f59[_0x62e20b(0x11d)],_0x1f358f=_0x2d2904[_0x62e20b(0x114)]!==_0x313f59[_0x62e20b(0x114)]||_0x2d2904[_0x62e20b(0x18f)]!==_0x313f59['height'],_0x34e9dd=_0x2d2904['flipX']!==_0x313f59[_0x62e20b(0x18c)]||_0x2d2904[_0x62e20b(0xe4)]!==_0x313f59['flipY'],_0x3b80b0=_0x2d2904[_0x62e20b(0x151)]!==_0x313f59[_0x62e20b(0x151)];if(_0x150ea8&&!_0x1f358f&&!_0x34e9dd&&!_0x3b80b0){let _0x121c95=(_0x313f59[_0x62e20b(0x18a)]??0x0)-(_0x2d2904['left']??0x0),_0x4311e9=(_0x313f59[_0x62e20b(0x11d)]??0x0)-(_0x2d2904[_0x62e20b(0x11d)]??0x0),_0x3070d4=this[_0x62e20b(0x135)]['getDrawingData'](_0x538b1b,_0x4a877b);if(_0x3070d4&&_0x3070d4[_0x1473a9]){var _0x43cbf2,_0x4b8117;let _0x3234b9=_0x3070d4[_0x1473a9],_0x315f1d={..._0x3234b9[_0x62e20b(0x184)],'left':(((_0x43cbf2=_0x3234b9[_0x62e20b(0x184)])==null?void 0x0:_0x43cbf2[_0x62e20b(0x18a)])??0x0)+_0x121c95,'top':(((_0x4b8117=_0x3234b9[_0x62e20b(0x184)])==null?void 0x0:_0x4b8117[_0x62e20b(0x11d)])??0x0)+_0x4311e9},_0x12466c=_0x5ce281(_0x315f1d,_0x51ad49),_0x4de1d1=_0x2fc0e6(_0x315f1d,_0x51ad49),_0x2b8de5={'unitId':_0x538b1b,'subUnitId':_0x4a877b,'drawingType':_0x19746e[_0x62e20b(0x14c)],'drawingId':_0x1473a9,'transform':_0x315f1d,'sheetTransform':_0x12466c,'axisAlignSheetTransform':_0x4de1d1},{unitId:_0x250fd7,subUnitId:_0x2da025,undo:_0x241c09,redo:_0x44d155,objects:_0x5ea9b8}=this[_0x62e20b(0x135)][_0x62e20b(0x16e)]([_0x2b8de5]);_0x438276[_0x62e20b(0x13c)]({'id':_0x348df4['id'],'params':{'unitId':_0x250fd7,'subUnitId':_0x2da025,'op':_0x44d155,'objects':_0x5ea9b8,'type':_0x140f2f[_0x62e20b(0xca)]}}),_0x401f12['push']({'id':_0x348df4['id'],'params':{'unitId':_0x250fd7,'subUnitId':_0x2da025,'op':_0x241c09,'objects':_0x5ea9b8,'type':_0x140f2f['UPDATE']}});}}else{let _0x3f865d=_0x4db2cd[_0x62e20b(0x15f)](),_0x4570f1=_0x4db2cd[_0x62e20b(0xe1)]();this[_0x62e20b(0x17b)](_0x538b1b,_0x4a877b,_0x1473a9,_0x4db2cd,_0x3f865d,_0x4570f1,_0x438276,_0x401f12,_0x55fea9,_0x313f59);}}};Te=le([X(0x0,_0x284dd9),X(0x1,_0xab1f83(_0x5a1116)),X(0x2,_0xab1f83(_0x54030d)),X(0x3,_0xab1f83(Z)),X(0x4,_0xab1f83(_0x5f2880)),X(0x5,_0xab1f83(_0x2df937)),X(0x6,_0xab1f83(Ce))],Te);let Ee=class extends _0x130970{constructor(_0x4f9ee5,_0x14e400,_0x2acffb){const _0x47632e=_0x318f8d;super(),this[_0x47632e(0x108)]=_0x4f9ee5,this[_0x47632e(0x138)]=_0x14e400,this[_0x47632e(0xd5)](_0x2acffb[_0x47632e(0xfa)](this));}[_0x318f8d(0x184)](_0x29a64f){const _0x463f4e=_0x318f8d;let _0x3511fc={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x463f4e(0x194)](_0x29a64f,_0x3511fc);for(let [_0x1a468f,_0x2b3b57]of _0x29a64f[_0x463f4e(0x165)])this[_0x463f4e(0x173)](_0x29a64f,_0x1a468f,_0x2b3b57,_0x3511fc);return _0x3511fc;}[_0x318f8d(0x194)](_0x488295,_0x1b7e46){const _0x420c9c=_0x318f8d;if(_0x488295[_0x420c9c(0x187)]===_0x420c9c(0x131))for(let _0x403df4 of _0x488295[_0x420c9c(0xf9)]){let _0x16ccc0=_0x488295[_0x420c9c(0x165)][_0x420c9c(0xc4)](_0x403df4),_0x4ccf5d=this['_shapeService'][_0x420c9c(0x101)](_0x488295['unitId'],_0x488295[_0x420c9c(0x11e)],_0x403df4);(_0x16ccc0==null?void 0x0:_0x16ccc0['drawingType'])!==_0x19746e[_0x420c9c(0x14c)]||!_0x4ccf5d||(_0x1b7e46[_0x420c9c(0x132)][_0x420c9c(0x13c)]({'id':de['id'],'params':{'unitId':_0x488295[_0x420c9c(0x125)],'subUnitId':_0x488295[_0x420c9c(0x11e)],'shapeId':_0x403df4}}),_0x1b7e46[_0x420c9c(0x186)]['push']({'id':ue['id'],'params':{'unitId':_0x488295[_0x420c9c(0x125)],'subUnitId':_0x488295[_0x420c9c(0x11e)],'shapeId':_0x403df4,'shapeName':_0x4ccf5d['getName'](),'shapeType':_0x4ccf5d['getShapeType'](),'shapeData':_0x3b1473[_0x420c9c(0x176)](_0x4ccf5d[_0x420c9c(0xc5)]())}}));}}[_0x318f8d(0x173)](_0x3c0ab8,_0x25190b,_0xa8c98f,_0x1bed12){const _0x502dc1=_0x318f8d;if(_0xa8c98f[_0x502dc1(0x147)]!==_0x19746e[_0x502dc1(0x14c)]||_0x3c0ab8[_0x502dc1(0xf9)]['has'](_0x25190b))return;let _0x347918=this[_0x502dc1(0x108)][_0x502dc1(0x101)](_0x3c0ab8[_0x502dc1(0x125)],_0x3c0ab8[_0x502dc1(0x11e)],_0x25190b);if(!_0x347918||!_0x2b34a7(_0x347918['getShapeType']()))return;let _0x2801e3=_0x347918[_0x502dc1(0x150)]();if(!(_0x3c0ab8['updates'][_0x502dc1(0x18e)](_0x25190b)||_0x2801e3!=null&&_0x2801e3[_0x502dc1(0x17d)]&&(_0x3c0ab8['updates'][_0x502dc1(0x18e)](_0x2801e3['from']['shapeId'])||_0x3c0ab8[_0x502dc1(0xf9)]['has'](_0x2801e3['from']['shapeId']))||_0x2801e3!=null&&_0x2801e3['to']&&(_0x3c0ab8[_0x502dc1(0x157)][_0x502dc1(0x18e)](_0x2801e3['to'][_0x502dc1(0x12f)])||_0x3c0ab8[_0x502dc1(0xf9)][_0x502dc1(0x18e)](_0x2801e3['to'][_0x502dc1(0x12f)]))))return;let _0x52b8ec=_0x3c0ab8[_0x502dc1(0x157)]['get'](_0x25190b)??_0xa8c98f,_0x20f7c2=this[_0x502dc1(0xf1)](_0x3c0ab8,_0x52b8ec);if(!_0x20f7c2)return;let _0x489014=_0x3be74b(_0x20f7c2);if(_0x489014[_0x502dc1(0xef)]<0x2)return;let _0x32448a=_0x3b1473[_0x502dc1(0x176)](_0x2801e3??{}),_0x2d0c57=_0x32448a[_0x502dc1(0x17d)]&&this[_0x502dc1(0x142)](_0x3c0ab8,_0x32448a['from'][_0x502dc1(0x12f)],_0x32448a[_0x502dc1(0x17d)]['cxnIndex']),_0x344c95=_0x32448a['to']&&this[_0x502dc1(0x142)](_0x3c0ab8,_0x32448a['to']['shapeId'],_0x32448a['to'][_0x502dc1(0x141)]);_0x32448a[_0x502dc1(0x17d)]&&!_0x2d0c57&&delete _0x32448a[_0x502dc1(0x17d)],_0x32448a['to']&&!_0x344c95&&delete _0x32448a['to'];let _0x4c7d67=_0x2ded11(_0x20f7c2,_0x2d0c57||_0x3840a7((_0x344c95==null?void 0x0:_0x344c95[_0x502dc1(0x130)])??_0x489014[_0x489014[_0x502dc1(0xef)]-0x1],_0x489014[0x0]),_0x344c95||_0x3840a7((_0x2d0c57==null?void 0x0:_0x2d0c57[_0x502dc1(0x130)])??_0x489014[0x0],_0x489014[_0x489014['length']-0x1]),_0x32448a);if(!(!(_0x4c7d67!=null&&_0x4c7d67[_0x502dc1(0x184)])||!_0x4c7d67['shapeType']||!_0x4c7d67[_0x502dc1(0x153)])){if(this[_0x502dc1(0x148)](_0x3c0ab8,_0x52b8ec,_0x4c7d67),_0x3c0ab8[_0x502dc1(0x187)]===_0x502dc1(0x117)){_0x347918[_0x502dc1(0x18b)](_0x4c7d67['shapeType']),_0x347918[_0x502dc1(0x137)](_0x3b1473[_0x502dc1(0x176)](_0x4c7d67[_0x502dc1(0x153)]),!0x1);return;}_0x1bed12[_0x502dc1(0xde)]['push']({'id':Q['id'],'params':{'unitId':_0x3c0ab8[_0x502dc1(0x125)],'subUnitId':_0x3c0ab8[_0x502dc1(0x11e)],'shapeId':_0x25190b,'shapeType':_0x4c7d67[_0x502dc1(0x17a)],'shapeData':_0x3b1473[_0x502dc1(0x176)](_0x4c7d67[_0x502dc1(0x153)]),'replace':!0x0}}),_0x1bed12[_0x502dc1(0x186)]['push']({'id':Q['id'],'params':{'unitId':_0x3c0ab8[_0x502dc1(0x125)],'subUnitId':_0x3c0ab8[_0x502dc1(0x11e)],'shapeId':_0x25190b,'shapeType':_0x347918[_0x502dc1(0x13a)](),'shapeData':_0x3b1473['deepClone'](_0x347918[_0x502dc1(0xc5)]()),'replace':!0x0}});}}[_0x318f8d(0x142)](_0x1d44d9,_0x23b256,_0x35b565){const _0x8c72a8=_0x318f8d;if(_0x1d44d9[_0x8c72a8(0xf9)][_0x8c72a8(0x18e)](_0x23b256))return null;let _0x2346b4=_0x1d44d9[_0x8c72a8(0x157)]['get'](_0x23b256)??_0x1d44d9[_0x8c72a8(0x165)][_0x8c72a8(0xc4)](_0x23b256);if(!_0x2346b4)return null;let _0x2fb42c=this[_0x8c72a8(0xf1)](_0x1d44d9,_0x2346b4);return _0x2fb42c?_0x1151d6(_0x2fb42c,_0x35b565):null;}[_0x318f8d(0xf1)](_0x534eb1,_0x1824c0){const _0x36e784=_0x318f8d;let _0x3f3400={'hostType':_0x1d598f[_0x36e784(0x105)],'unitId':_0x534eb1['unitId'],'subUnitId':_0x534eb1[_0x36e784(0x11e)],'shapeId':_0x1824c0[_0x36e784(0xdb)]},_0x3b0308=this[_0x36e784(0x138)][_0x36e784(0x155)](_0x3f3400);return!_0x3b0308||!_0x1824c0['transform']?null:{..._0x3b0308,'transform':{'left':_0x1824c0[_0x36e784(0x184)]['left']??0x0,'top':_0x1824c0[_0x36e784(0x184)]['top']??0x0,'width':_0x1824c0['transform'][_0x36e784(0x114)]??0x0,'height':_0x1824c0[_0x36e784(0x184)][_0x36e784(0x18f)]??0x0,'rotation':_0x1824c0[_0x36e784(0x184)]['angle']??0x0,'flipX':_0x1824c0[_0x36e784(0x184)][_0x36e784(0x18c)]??!0x1,'flipY':_0x1824c0[_0x36e784(0x184)][_0x36e784(0xe4)]??!0x1}};}['_applyUpdate'](_0x430dcb,_0x172367,_0x5163e9){const _0x37e190=_0x318f8d;let _0x29bcbf=_0x172367,_0x3838f5={..._0x172367[_0x37e190(0x184)],'left':_0x5163e9['transform'][_0x37e190(0x18a)],'top':_0x5163e9[_0x37e190(0x184)][_0x37e190(0x11d)],'width':_0x5163e9[_0x37e190(0x184)]['width'],'height':_0x5163e9[_0x37e190(0x184)][_0x37e190(0x18f)],'angle':_0x5163e9[_0x37e190(0x184)][_0x37e190(0x162)],'flipX':_0x5163e9[_0x37e190(0x184)]['flipX'],'flipY':_0x5163e9[_0x37e190(0x184)][_0x37e190(0xe4)]},_0xc5b38a={..._0x29bcbf,'transform':_0x3838f5,'sheetTransform':_0x5ce281(_0x3838f5,_0x430dcb['skeleton']),'axisAlignSheetTransform':_0x2fc0e6(_0x3838f5,_0x430dcb[_0x37e190(0x13e)]),'data':{..._0x29bcbf[_0x37e190(0x190)],'shapeType':_0x5163e9['shapeType'],'shapeData':_0x3b1473[_0x37e190(0x176)](_0x5163e9[_0x37e190(0x153)])}};_0x430dcb[_0x37e190(0x157)][_0x37e190(0x10f)](_0x172367[_0x37e190(0xdb)],_0xc5b38a);}};Ee=le([X(0x0,_0xab1f83(Z)),X(0x1,_0xab1f83(Ce)),X(0x2,_0xab1f83(_0x5cc45b))],Ee);let $=class extends _0xb4a149{constructor(_0x3c3794=we,_0x20e6ed,_0x4876b3){const _0x448c4c=_0x318f8d;super(),this['_config']=_0x3c3794,this[_0x448c4c(0x15a)]=_0x20e6ed,this['_configService']=_0x4876b3;let {..._0x16269a}=_0xffa337({},we,this['_config']);this['_configService'][_0x448c4c(0x11c)](_0x448c4c(0x13b),_0x16269a);}[_0x318f8d(0x198)](){const _0x4eca79=_0x318f8d;let _0x377c6e=this['_injector'];[[ce],[Z],[Ce],[Ee],[Te]]['forEach'](_0x9f2c94=>_0x377c6e[_0x4eca79(0xc7)](_0x9f2c94)),_0x45e5ee(_0x377c6e,[[Z],[Ee],[Te]]);}};Y($,_0x318f8d(0xdc),_0x1d598f['UNIVER_SHEET']),Y($,_0x318f8d(0x10c),_0x318f8d(0x14d)),Y($,_0x318f8d(0x182),be),Y($,'version',xe),$=le([_0x1b7e82(_0xd5e84e,_0x5d2b80,_0x2842f2,_0x59c084,_0x359a1a),X(0x1,_0xab1f83(_0x1c83bd)),X(0x2,_0x4d6ad0)],$);export{ie as DEFAULT_SHAPE_HEIGHT,re as DEFAULT_SHAPE_WIDTH,fe as InsertShapeCommand,ue as InsertSheetsShapeMutation,de as RemoveSheetsShapeMutation,pe as SetShapeDrawingDataCommand,he as SetSheetsShapeRotateCommand,ge as SetSheetsShapeTextVerticalToggleCommand,Z as SheetsShapeService,me as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,_e as UpdateConnectorRelationCommand,ve as UpdateLineShapeResizeCommand,Q as UpdateSheetsShapeDataMutation,ye as UpdateSheetsShapeTypeMutation};
@@ -22,5 +22,6 @@ export declare class SheetShapeHostAdapter implements IShapeHostAdapter {
22
22
  bringForward(ref: IShapeRef): boolean;
23
23
  sendBackward(ref: IShapeRef): boolean;
24
24
  sendToBack(ref: IShapeRef): boolean;
25
+ setZOrder(ref: IShapeRef, index: number): boolean;
25
26
  private _arrange;
26
27
  }
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5548(){const _0x1b8257=['_sheetDrawingService','_commandService','defineProperty','getUnitId','getPlacement','_getShapeScope','UniverProEngineShapeFacade','setPlacement','toStringTag','exports','27027nZHdJe','UniverCore','@univerjs-pro/engine-shape','@univerjs/sheets-drawing','amd','shapeType','UniverInstanceType','width','UNIVER_SHEET','UniverProSheetsShapeFacade','Position','_injector','setPosition','unitId','86793fxiSkh','getDrawingByParam','getShape','4896740neiTXf','SetSheetDrawingPlacementCommand','length','5415846OcHIEZ','listShapes','18TouCqz','shapeId','Module','14fwTXjk','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','4681998GsMfNg','decorate','_shapeRef','subUnitId','function','_createShapeHandle','2904363zcHirU','FWorksheet','getShapes','@univerjs/core','UniverProEngineShape','extend','isConnectorShape','createInstance','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','IShapeHostAdapterRegistry','get','5xETvNd','@univerjs/sheets/facade','UniverSheetsFacade','790IEzfbL','FShape','getOwnPropertyDescriptor','height','syncExecuteCommand','FSheetShape','transform','_getShapeAdapter','object','ICommandService','2081672VslWAv','warn','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','SheetDrawingAnchorType','getSheetDrawingPlacement','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','\x22\x20was\x20not\x20found.'];_0x5548=function(){return _0x1b8257;};return _0x5548();}function _0x4cb0(_0x2ff451,_0x282fb8){_0x2ff451=_0x2ff451-0x89;const _0x5548ff=_0x5548();let _0x4cb0a2=_0x5548ff[_0x2ff451];return _0x4cb0a2;}(function(_0x5ccac1,_0x55d72a){const _0x4e44d2=_0x4cb0,_0x2137d3=_0x5ccac1();while(!![]){try{const _0x41228b=-parseInt(_0x4e44d2(0xca))/0x1*(parseInt(_0x4e44d2(0xd2))/0x2)+parseInt(_0x4e44d2(0x93))/0x3+-parseInt(_0x4e44d2(0xcd))/0x4*(parseInt(_0x4e44d2(0x9e))/0x5)+parseInt(_0x4e44d2(0xd0))/0x6+parseInt(_0x4e44d2(0x8b))/0x7*(parseInt(_0x4e44d2(0xab))/0x8)+parseInt(_0x4e44d2(0x8d))/0x9+parseInt(_0x4e44d2(0xa1))/0xa*(-parseInt(_0x4e44d2(0xbc))/0xb);if(_0x41228b===_0x55d72a)break;else _0x2137d3['push'](_0x2137d3['shift']());}catch(_0x380ded){_0x2137d3['push'](_0x2137d3['shift']());}}}(_0x5548,0xadd29),function(_0x3b5e37,_0x177bb1){const _0x3d8fb4=_0x4cb0;typeof exports=='object'&&typeof module<'u'?_0x177bb1(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/engine-shape/facade'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/sheets-drawing')):typeof define==_0x3d8fb4(0x91)&&define[_0x3d8fb4(0xc0)]?define([_0x3d8fb4(0xbb),_0x3d8fb4(0xbe),'@univerjs-pro/engine-shape/facade',_0x3d8fb4(0x96),_0x3d8fb4(0x9f),_0x3d8fb4(0xbf)],_0x177bb1):(_0x3b5e37=typeof globalThis<'u'?globalThis:_0x3b5e37||self,_0x177bb1(_0x3b5e37[_0x3d8fb4(0xc5)]={},_0x3b5e37[_0x3d8fb4(0x97)],_0x3b5e37[_0x3d8fb4(0xb8)],_0x3b5e37[_0x3d8fb4(0xbd)],_0x3b5e37[_0x3d8fb4(0xa0)],_0x3b5e37['UniverSheetsDrawing']));}(this,function(_0x4d1d7a,_0x103d62,_0x5af91f,_0x13cb7a,_0x324582,_0x1aa628){const _0xe787d2=_0x4cb0;Object[_0xe787d2(0xb4)](_0x4d1d7a,Symbol[_0xe787d2(0xba)],{'value':_0xe787d2(0x8a)});function _0x1e062e(_0x277f75,_0x13c0bc){return function(_0x2bc1ab,_0x2a5589){_0x13c0bc(_0x2bc1ab,_0x2a5589,_0x277f75);};}function _0x4923b6(_0x4b5647,_0x44db0d,_0x51c5a9,_0x30a1cd){const _0x3c1782=_0xe787d2;var _0x31af39=arguments[_0x3c1782(0xcf)],_0x167149=_0x31af39<0x3?_0x44db0d:_0x30a1cd===null?_0x30a1cd=Object[_0x3c1782(0xa3)](_0x44db0d,_0x51c5a9):_0x30a1cd,_0x5d8597;if(typeof Reflect==_0x3c1782(0xa9)&&typeof Reflect[_0x3c1782(0x8e)]==_0x3c1782(0x91))_0x167149=Reflect[_0x3c1782(0x8e)](_0x4b5647,_0x44db0d,_0x51c5a9,_0x30a1cd);else{for(var _0xe30283=_0x4b5647['length']-0x1;_0xe30283>=0x0;_0xe30283--)(_0x5d8597=_0x4b5647[_0xe30283])&&(_0x167149=(_0x31af39<0x3?_0x5d8597(_0x167149):_0x31af39>0x3?_0x5d8597(_0x44db0d,_0x51c5a9,_0x167149):_0x5d8597(_0x44db0d,_0x51c5a9))||_0x167149);}return _0x31af39>0x3&&_0x167149&&Object[_0x3c1782(0xb4)](_0x44db0d,_0x51c5a9,_0x167149),_0x167149;}let _0x5a45c0=class extends _0x5af91f[_0xe787d2(0xa2)]{constructor(_0x1d5a84,_0x3d814b,_0x55d553,_0x44b00c,_0x176b0b){super(_0x1d5a84,_0x3d814b,_0x55d553,_0x44b00c),this['_sheetDrawingService']=_0x176b0b;}[_0xe787d2(0xb6)](){const _0x22f003=_0xe787d2;let _0x3c8b6d=this[_0x22f003(0xb2)][_0x22f003(0xcb)]({'unitId':this[_0x22f003(0x8f)]['unitId'],'subUnitId':this[_0x22f003(0x8f)][_0x22f003(0x90)],'drawingId':this[_0x22f003(0x8f)][_0x22f003(0x89)]});return _0x3c8b6d?(0x0,_0x1aa628[_0x22f003(0xaf)])(_0x3c8b6d):null;}[_0xe787d2(0xb9)](_0x554aaa){const _0x19db76=_0xe787d2;return this[_0x19db76(0xb3)][_0x19db76(0xa5)](_0x1aa628[_0x19db76(0xce)]['id'],{'unitId':this[_0x19db76(0x8f)][_0x19db76(0xc9)],'subUnitId':this[_0x19db76(0x8f)][_0x19db76(0x90)],'drawings':[{'drawingId':this[_0x19db76(0x8f)][_0x19db76(0x89)],'placement':_0x554aaa}]});}[_0xe787d2(0xc8)](_0x479cbd,_0x49517e,_0x308d1e,_0x1e566d){const _0x4c8564=_0xe787d2;var _0x1cb8cf,_0x26d4bc;let _0x38b148=this['_sheetDrawingService'][_0x4c8564(0xcb)]({'unitId':this['_shapeRef'][_0x4c8564(0xc9)],'subUnitId':this['_shapeRef'][_0x4c8564(0x90)],'drawingId':this['_shapeRef'][_0x4c8564(0x89)]});if(!_0x38b148)return console['warn'](_0x4c8564(0x8c)+this[_0x4c8564(0x8f)][_0x4c8564(0x89)]+_0x4c8564(0xb1)),this;let _0x829f70=(_0x1cb8cf=_0x38b148[_0x4c8564(0xa7)])==null?void 0x0:_0x1cb8cf[_0x4c8564(0xc3)],_0x1c0a1d=(_0x26d4bc=_0x38b148[_0x4c8564(0xa7)])==null?void 0x0:_0x26d4bc[_0x4c8564(0xa4)];return _0x829f70==null||_0x1c0a1d==null?(console['warn'](_0x4c8564(0x8c)+this[_0x4c8564(0x8f)][_0x4c8564(0x89)]+'\x22\x20has\x20no\x20transform\x20extent.'),this):(this[_0x4c8564(0xb3)][_0x4c8564(0xa5)](_0x1aa628[_0x4c8564(0xce)]['id'],{'unitId':this[_0x4c8564(0x8f)]['unitId'],'subUnitId':this[_0x4c8564(0x8f)][_0x4c8564(0x90)],'drawings':[{'drawingId':this[_0x4c8564(0x8f)]['shapeId'],'placement':{'kind':_0x1aa628[_0x4c8564(0xae)][_0x4c8564(0xc6)],'from':{'row':_0x479cbd,'column':_0x49517e,'rowOffset':_0x308d1e,'columnOffset':_0x1e566d},'width':_0x829f70,'height':_0x1c0a1d}}]}),this);}};_0x5a45c0=_0x4923b6([_0x1e062e(0x2,_0x103d62[_0xe787d2(0x9c)]),_0x1e062e(0x3,_0x13cb7a[_0xe787d2(0xaa)]),_0x1e062e(0x4,_0x1aa628['ISheetDrawingService'])],_0x5a45c0);var _0x4379ca=class extends _0x324582[_0xe787d2(0x94)]{['insertShape'](_0x36c09f){const _0x21251b=_0xe787d2;let _0x4d6452=this['_getShapeAdapter']();if(!_0x4d6452)return null;try{let _0x21ca5d=_0x4d6452['createShape'](this[_0x21251b(0xb7)](),_0x36c09f);return _0x21ca5d?this['_createShapeHandle'](_0x21ca5d):(console[_0x21251b(0xac)](_0x21251b(0x9b)),null);}catch(_0x50e5da){return console['warn'](_0x21251b(0x9b),_0x50e5da),null;}}[_0xe787d2(0xcc)](_0x33be6b){const _0x45c2cb=_0xe787d2;let _0x33bea7=this[_0x45c2cb(0xa8)]();if(!_0x33bea7)return null;try{let _0x1fbc0e={...this[_0x45c2cb(0xb7)](),'shapeId':_0x33be6b},_0x2beb87=_0x33bea7[_0x45c2cb(0xcc)](_0x1fbc0e);return _0x2beb87?this['_createShapeHandle'](_0x2beb87):(console[_0x45c2cb(0xac)](_0x45c2cb(0x8c)+_0x33be6b+_0x45c2cb(0xb1)),null);}catch(_0x57d51b){return console[_0x45c2cb(0xac)](_0x45c2cb(0xad)+_0x33be6b+'\x22.',_0x57d51b),null;}}[_0xe787d2(0x95)](){const _0x3b85f9=_0xe787d2;let _0x259b5c=this['_getShapeAdapter']();if(!_0x259b5c)return[];try{return _0x259b5c[_0x3b85f9(0xd1)](this[_0x3b85f9(0xb7)]())['map'](_0x2cd169=>this[_0x3b85f9(0x92)](_0x2cd169));}catch(_0x607233){return console[_0x3b85f9(0xac)](_0x3b85f9(0xb0),_0x607233),[];}}[_0xe787d2(0xb7)](){const _0x264153=_0xe787d2;return{'hostType':_0x13cb7a['UniverInstanceType'][_0x264153(0xc4)],'unitId':this['getWorkbook']()[_0x264153(0xb5)](),'subUnitId':this['getSheetId']()};}['_getShapeAdapter'](){const _0x880307=_0xe787d2;return this[_0x880307(0xc7)]['get'](_0x103d62[_0x880307(0x9c)])[_0x880307(0x9d)](_0x13cb7a[_0x880307(0xc2)][_0x880307(0xc4)]);}[_0xe787d2(0x92)](_0x16fcf6){const _0x32531b=_0xe787d2;let {unitId:_0x5844b6,subUnitId:_0x348493,shapeId:_0x46ef14}=_0x16fcf6,_0x463470={'unitId':_0x5844b6,'subUnitId':_0x348493,'shapeId':_0x46ef14,'hostType':_0x13cb7a['UniverInstanceType']['UNIVER_SHEET']};return(0x0,_0x103d62[_0x32531b(0x99)])(_0x16fcf6[_0x32531b(0xc1)])?this[_0x32531b(0xc7)][_0x32531b(0x9a)](_0x5af91f['FConnectorShape'],_0x463470,this[_0x32531b(0xc7)]):this[_0x32531b(0xc7)][_0x32531b(0x9a)](_0x5a45c0,_0x463470,this[_0x32531b(0xc7)]);}};_0x324582[_0xe787d2(0x94)][_0xe787d2(0x98)](_0x4379ca),Object[_0xe787d2(0xb4)](_0x4d1d7a,_0xe787d2(0xa6),{'enumerable':!0x0,'get':function(){return _0x5a45c0;}});}));
1
+ function _0x1b9d(){const _0x10156b=['getShape','FConnectorShape','FSheetShape','IShapeHostAdapterRegistry','_injector','\x22\x20has\x20no\x20transform\x20extent.','SetSheetDrawingPlacementCommand','length','FWorksheet','setPlacement','UniverProSheetsShapeFacade','listShapes','UNIVER_SHEET','1520906MiCmoi','_getShapeAdapter','@univerjs-pro/engine-shape/facade','68090hRZOgN','getOwnPropertyDescriptor','function','exports','object','getDrawingByParam','119EebrYY','insertShape','subUnitId','UniverInstanceType','warn','_createShapeHandle','179274JFHuVl','amd','5AWMkwQ','UniverSheetsDrawing','transform','getSheetId','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','UniverProEngineShapeFacade','isConnectorShape','createInstance','9490970wRYjNE','extend','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','\x22\x20was\x20not\x20found.','ICommandService','UniverCore','_sheetDrawingService','shapeType','523992EyHNFh','8131023rfgQrL','@univerjs/sheets-drawing','UniverSheetsFacade','3hcoEKx','FShape','_getShapeScope','@univerjs-pro/engine-shape','shapeId','6981096YuOacf','_shapeRef','syncExecuteCommand','UniverProEngineShape','getWorkbook','width','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','height','map','decorate','@univerjs/sheets/facade','_commandService','defineProperty','get','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','unitId','Position'];_0x1b9d=function(){return _0x10156b;};return _0x1b9d();}function _0x5de3(_0x544fb8,_0x513757){_0x544fb8=_0x544fb8-0x17e;const _0x1b9ded=_0x1b9d();let _0x5de3f6=_0x1b9ded[_0x544fb8];return _0x5de3f6;}(function(_0x425bb7,_0x18bb39){const _0x4f4517=_0x5de3,_0x2513a7=_0x425bb7();while(!![]){try{const _0x3c032f=-parseInt(_0x4f4517(0x190))/0x1+parseInt(_0x4f4517(0x18d))/0x2*(parseInt(_0x4f4517(0x1b2))/0x3)+parseInt(_0x4f4517(0x1ae))/0x4*(parseInt(_0x4f4517(0x19e))/0x5)+parseInt(_0x4f4517(0x19c))/0x6*(parseInt(_0x4f4517(0x196))/0x7)+-parseInt(_0x4f4517(0x1b7))/0x8+-parseInt(_0x4f4517(0x1af))/0x9+parseInt(_0x4f4517(0x1a6))/0xa;if(_0x3c032f===_0x18bb39)break;else _0x2513a7['push'](_0x2513a7['shift']());}catch(_0x19e6dc){_0x2513a7['push'](_0x2513a7['shift']());}}}(_0x1b9d,0x7b1fd),function(_0xfb0bc4,_0x60dad2){const _0x503b46=_0x5de3;typeof exports==_0x503b46(0x194)&&typeof module<'u'?_0x60dad2(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/engine-shape/facade'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/sheets-drawing')):typeof define==_0x503b46(0x192)&&define[_0x503b46(0x19d)]?define([_0x503b46(0x193),_0x503b46(0x1b5),_0x503b46(0x18f),'@univerjs/core',_0x503b46(0x1c1),_0x503b46(0x1b0)],_0x60dad2):(_0xfb0bc4=typeof globalThis<'u'?globalThis:_0xfb0bc4||self,_0x60dad2(_0xfb0bc4[_0x503b46(0x18a)]={},_0xfb0bc4[_0x503b46(0x1ba)],_0xfb0bc4[_0x503b46(0x1a3)],_0xfb0bc4[_0x503b46(0x1ab)],_0xfb0bc4[_0x503b46(0x1b1)],_0xfb0bc4[_0x503b46(0x19f)]));}(this,function(_0x84ef5c,_0x232f6b,_0x18c1a4,_0x510c65,_0xc1321,_0x349086){const _0x17de36=_0x5de3;Object[_0x17de36(0x1c3)](_0x84ef5c,Symbol['toStringTag'],{'value':'Module'});function _0x34a9fd(_0xaf54d1,_0x3a2158){return function(_0x221ee8,_0x510864){_0x3a2158(_0x221ee8,_0x510864,_0xaf54d1);};}function _0x2445bc(_0x4a9b91,_0x33bfa6,_0x449285,_0x2c96ee){const _0x3cf96e=_0x17de36;var _0x2f9489=arguments[_0x3cf96e(0x187)],_0x169701=_0x2f9489<0x3?_0x33bfa6:_0x2c96ee===null?_0x2c96ee=Object[_0x3cf96e(0x191)](_0x33bfa6,_0x449285):_0x2c96ee,_0xd2aaf4;if(typeof Reflect==_0x3cf96e(0x194)&&typeof Reflect[_0x3cf96e(0x1c0)]==_0x3cf96e(0x192))_0x169701=Reflect[_0x3cf96e(0x1c0)](_0x4a9b91,_0x33bfa6,_0x449285,_0x2c96ee);else{for(var _0x2eca84=_0x4a9b91[_0x3cf96e(0x187)]-0x1;_0x2eca84>=0x0;_0x2eca84--)(_0xd2aaf4=_0x4a9b91[_0x2eca84])&&(_0x169701=(_0x2f9489<0x3?_0xd2aaf4(_0x169701):_0x2f9489>0x3?_0xd2aaf4(_0x33bfa6,_0x449285,_0x169701):_0xd2aaf4(_0x33bfa6,_0x449285))||_0x169701);}return _0x2f9489>0x3&&_0x169701&&Object[_0x3cf96e(0x1c3)](_0x33bfa6,_0x449285,_0x169701),_0x169701;}let _0x59188f=class extends _0x18c1a4[_0x17de36(0x1b3)]{constructor(_0x21dc3f,_0x5a47cf,_0x3ed66c,_0x269e0e,_0x270a9d){const _0x5cdee3=_0x17de36;super(_0x21dc3f,_0x5a47cf,_0x3ed66c,_0x269e0e),this[_0x5cdee3(0x1ac)]=_0x270a9d;}['getPlacement'](){const _0x5f43d4=_0x17de36;let _0x2c0d63=this[_0x5f43d4(0x1ac)]['getDrawingByParam']({'unitId':this[_0x5f43d4(0x1b8)]['unitId'],'subUnitId':this[_0x5f43d4(0x1b8)][_0x5f43d4(0x198)],'drawingId':this[_0x5f43d4(0x1b8)]['shapeId']});return _0x2c0d63?(0x0,_0x349086['getSheetDrawingPlacement'])(_0x2c0d63):null;}[_0x17de36(0x189)](_0x1d05fc){const _0x4ea0ed=_0x17de36;return this[_0x4ea0ed(0x1c2)]['syncExecuteCommand'](_0x349086[_0x4ea0ed(0x186)]['id'],{'unitId':this[_0x4ea0ed(0x1b8)]['unitId'],'subUnitId':this['_shapeRef']['subUnitId'],'drawings':[{'drawingId':this[_0x4ea0ed(0x1b8)][_0x4ea0ed(0x1b6)],'placement':_0x1d05fc}]});}['setPosition'](_0x265c16,_0x23086f,_0x3c8e0a,_0x419252){const _0x2c7f6f=_0x17de36;var _0x1a3e80,_0xcfa74c;let _0x14f207=this[_0x2c7f6f(0x1ac)][_0x2c7f6f(0x195)]({'unitId':this[_0x2c7f6f(0x1b8)][_0x2c7f6f(0x17e)],'subUnitId':this[_0x2c7f6f(0x1b8)][_0x2c7f6f(0x198)],'drawingId':this[_0x2c7f6f(0x1b8)]['shapeId']});if(!_0x14f207)return console['warn'](_0x2c7f6f(0x1a2)+this[_0x2c7f6f(0x1b8)][_0x2c7f6f(0x1b6)]+_0x2c7f6f(0x1a9)),this;let _0xc663d5=(_0x1a3e80=_0x14f207['transform'])==null?void 0x0:_0x1a3e80[_0x2c7f6f(0x1bc)],_0x13fe01=(_0xcfa74c=_0x14f207[_0x2c7f6f(0x1a0)])==null?void 0x0:_0xcfa74c[_0x2c7f6f(0x1be)];return _0xc663d5==null||_0x13fe01==null?(console[_0x2c7f6f(0x19a)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+this['_shapeRef'][_0x2c7f6f(0x1b6)]+_0x2c7f6f(0x185)),this):(this[_0x2c7f6f(0x1c2)][_0x2c7f6f(0x1b9)](_0x349086[_0x2c7f6f(0x186)]['id'],{'unitId':this['_shapeRef']['unitId'],'subUnitId':this[_0x2c7f6f(0x1b8)][_0x2c7f6f(0x198)],'drawings':[{'drawingId':this[_0x2c7f6f(0x1b8)]['shapeId'],'placement':{'kind':_0x349086['SheetDrawingAnchorType'][_0x2c7f6f(0x17f)],'from':{'row':_0x265c16,'column':_0x23086f,'rowOffset':_0x3c8e0a,'columnOffset':_0x419252},'width':_0xc663d5,'height':_0x13fe01}}]}),this);}};_0x59188f=_0x2445bc([_0x34a9fd(0x2,_0x232f6b[_0x17de36(0x183)]),_0x34a9fd(0x3,_0x510c65[_0x17de36(0x1aa)]),_0x34a9fd(0x4,_0x349086['ISheetDrawingService'])],_0x59188f);var _0x226c83=class extends _0xc1321[_0x17de36(0x188)]{[_0x17de36(0x197)](_0x507eb7){const _0x3d5ad9=_0x17de36;let _0x1461ef=this[_0x3d5ad9(0x18e)]();if(!_0x1461ef)return null;try{let _0x28014b=_0x1461ef['createShape'](this['_getShapeScope'](),_0x507eb7);return _0x28014b?this[_0x3d5ad9(0x19b)](_0x28014b):(console[_0x3d5ad9(0x19a)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.'),null);}catch(_0x45206c){return console[_0x3d5ad9(0x19a)](_0x3d5ad9(0x1a8),_0x45206c),null;}}['getShape'](_0x52afbf){const _0x4c52ee=_0x17de36;let _0x408269=this['_getShapeAdapter']();if(!_0x408269)return null;try{let _0x5c2962={...this[_0x4c52ee(0x1b4)](),'shapeId':_0x52afbf},_0x2e0934=_0x408269[_0x4c52ee(0x180)](_0x5c2962);return _0x2e0934?this[_0x4c52ee(0x19b)](_0x2e0934):(console[_0x4c52ee(0x19a)](_0x4c52ee(0x1a2)+_0x52afbf+'\x22\x20was\x20not\x20found.'),null);}catch(_0x11a391){return console['warn'](_0x4c52ee(0x1c5)+_0x52afbf+'\x22.',_0x11a391),null;}}['getShapes'](){const _0x49d98e=_0x17de36;let _0x39ee34=this['_getShapeAdapter']();if(!_0x39ee34)return[];try{return _0x39ee34[_0x49d98e(0x18b)](this[_0x49d98e(0x1b4)]())[_0x49d98e(0x1bf)](_0x37554d=>this[_0x49d98e(0x19b)](_0x37554d));}catch(_0xdc3b40){return console[_0x49d98e(0x19a)](_0x49d98e(0x1bd),_0xdc3b40),[];}}['_getShapeScope'](){const _0x529c2d=_0x17de36;return{'hostType':_0x510c65['UniverInstanceType']['UNIVER_SHEET'],'unitId':this[_0x529c2d(0x1bb)]()['getUnitId'](),'subUnitId':this[_0x529c2d(0x1a1)]()};}[_0x17de36(0x18e)](){const _0x3c727c=_0x17de36;return this['_injector'][_0x3c727c(0x1c4)](_0x232f6b[_0x3c727c(0x183)])['get'](_0x510c65[_0x3c727c(0x199)][_0x3c727c(0x18c)]);}[_0x17de36(0x19b)](_0x25f91b){const _0xb4348=_0x17de36;let {unitId:_0x106368,subUnitId:_0x38cd88,shapeId:_0x23452e}=_0x25f91b,_0x4ca933={'unitId':_0x106368,'subUnitId':_0x38cd88,'shapeId':_0x23452e,'hostType':_0x510c65[_0xb4348(0x199)]['UNIVER_SHEET']};return(0x0,_0x232f6b[_0xb4348(0x1a4)])(_0x25f91b[_0xb4348(0x1ad)])?this[_0xb4348(0x184)][_0xb4348(0x1a5)](_0x18c1a4[_0xb4348(0x181)],_0x4ca933,this['_injector']):this['_injector'][_0xb4348(0x1a5)](_0x59188f,_0x4ca933,this[_0xb4348(0x184)]);}};_0xc1321[_0x17de36(0x188)][_0x17de36(0x1a7)](_0x226c83),Object[_0x17de36(0x1c3)](_0x84ef5c,_0x17de36(0x182),{'enumerable':!0x0,'get':function(){return _0x59188f;}});}));