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

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/es/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 _0x22a2ef=_0x291d;(function(_0x27c8ba,_0x38d93d){const _0x2105d4=_0x291d,_0x5f14a9=_0x27c8ba();while(!![]){try{const _0x38f3b8=-parseInt(_0x2105d4(0x1ea))/0x1*(-parseInt(_0x2105d4(0x22f))/0x2)+-parseInt(_0x2105d4(0x1eb))/0x3*(-parseInt(_0x2105d4(0x29d))/0x4)+-parseInt(_0x2105d4(0x1d0))/0x5+parseInt(_0x2105d4(0x285))/0x6+-parseInt(_0x2105d4(0x24a))/0x7+-parseInt(_0x2105d4(0x281))/0x8*(-parseInt(_0x2105d4(0x1e3))/0x9)+-parseInt(_0x2105d4(0x1e0))/0xa*(parseInt(_0x2105d4(0x26f))/0xb);if(_0x38f3b8===_0x38d93d)break;else _0x5f14a9['push'](_0x5f14a9['shift']());}catch(_0x18a500){_0x5f14a9['push'](_0x5f14a9['shift']());}}}(_0x43be,0x41794));import{IShapeHostAdapterRegistry as _0x5b4eaa,ShapeModel as _0x1457f1,UniverShapePlugin as _0x30219a,buildConnectorEndpointUpdate as _0x52af10,canApplyShapeFormulaLastValue as _0x246b87,computeConnectorRouteLayout as _0x5a9122,createDefaultInsertedShapeData as _0x3e0f63,createFreeConnectorPointInfo as _0x2687f2,createUniqueShapeName as _0x22d089,getBasicShapeRotateBound as _0x4b3101,isConnectorShape as _0x5a261c,resolveConnectorRoutePoints as _0x5ef8d8,resolveShapeConnectionPoint as _0x989342,routeConnectorLineShape as _0x55d201}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x17642c,CommandType as _0x137eb2,DependentOn as _0x40898a,Disposable as _0x67ef41,DrawingTypeEnum as _0x4fef19,ICommandService as _0x176804,IConfigService as _0x4a22fa,IResourceManagerService as _0x486ac4,IUndoRedoService as _0x2e8924,IUniverInstanceService as _0x1a1e10,Inject as _0x93ad71,Injector as _0x112d6d,Plugin as _0x4512e7,Tools as _0x13cd39,UniverInstanceType as _0x301e36,generateRandomId as _0x1113d4,merge as _0x14cbf7,sequenceExecute as _0x54f666,touchDependencies as _0x2db363}from'@univerjs/core';import{SheetInterceptorService as _0x1be23b,SheetSkeletonService as _0x696088,UniverSheetsPlugin as _0x4433fe,getSheetCommandTarget as _0x13fad5}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x114644,DrawingApplyType as _0x2e2ff5,ISheetDrawingService as _0x2db474,InsertSheetDrawingCommand as _0x104efa,RemoveSheetDrawingCommand as _0x2d34c8,SetDrawingApplyMutation as _0x1f0e5b,SetDrawingArrangeCommand as _0x83cc07,SetSheetDrawingCommand as _0x4576d9,SheetDrawingAnchorType as _0x3a2908,SheetDrawingTransformPlanService as _0x174e68,UniverSheetsDrawingPlugin as _0x14e36c,transformToAxisAlignPosition as _0x140823,transformToDrawingPosition as _0x43a224}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x24798b}from'@univerjs-pro/license';import{IDrawingManagerService as _0x866a4f,UniverDrawingPlugin as _0x3796b4}from'@univerjs/drawing';function _0x291d(_0xd77ca6,_0x29b4b9){_0xd77ca6=_0xd77ca6-0x1ca;const _0x43be38=_0x43be();let _0x291d93=_0x43be38[_0xd77ca6];return _0x291d93;}const re=0xc8,ie=0xc8;function ae(_0x74a941){'@babel/helpers - typeof';const _0x5df836=_0x291d;return ae=typeof Symbol=='function'&&typeof Symbol[_0x5df836(0x26a)]=='symbol'?function(_0x2ccb0e){return typeof _0x2ccb0e;}:function(_0x10e953){const _0x3a5e86=_0x5df836;return _0x10e953&&typeof Symbol==_0x3a5e86(0x1fb)&&_0x10e953[_0x3a5e86(0x251)]===Symbol&&_0x10e953!==Symbol[_0x3a5e86(0x257)]?_0x3a5e86(0x23c):typeof _0x10e953;},ae(_0x74a941);}function oe(_0x71fd79,_0x296093){const _0x4340fb=_0x291d;if(ae(_0x71fd79)!=_0x4340fb(0x1f9)||!_0x71fd79)return _0x71fd79;var _0xa2a39d=_0x71fd79[Symbol['toPrimitive']];if(_0xa2a39d!==void 0x0){var _0xba1dbb=_0xa2a39d[_0x4340fb(0x1f8)](_0x71fd79,_0x296093||_0x4340fb(0x216));if(ae(_0xba1dbb)!=_0x4340fb(0x1f9))return _0xba1dbb;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x296093==='string'?String:Number)(_0x71fd79);}function se(_0x432385){const _0x201d1c=_0x291d;var _0x28056d=oe(_0x432385,_0x201d1c(0x249));return ae(_0x28056d)=='symbol'?_0x28056d:_0x28056d+'';}function X(_0x310847,_0x280554,_0x87f7e3){const _0x161203=_0x291d;return(_0x280554=se(_0x280554))in _0x310847?Object[_0x161203(0x292)](_0x310847,_0x280554,{'value':_0x87f7e3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x310847[_0x280554]=_0x87f7e3,_0x310847;}var ce=class extends _0x67ef41{constructor(){const _0x453924=_0x291d;super(),X(this,_0x453924(0x23f),new Map()),X(this,_0x453924(0x1de),new Set()),X(this,_0x453924(0x284),new Set());}[_0x22a2ef(0x1fc)](_0x11e3cf,_0x484198,_0x42d5e6,_0x3df05b){const _0x5ce1a1=_0x22a2ef;let _0x460cec=new _0x1457f1(_0x11e3cf,_0x484198,_0x42d5e6,_0x3df05b);return this['_shapes'][_0x5ce1a1(0x271)](_0x484198,_0x460cec),_0x5a261c(_0x11e3cf)&&this[_0x5ce1a1(0x1de)][_0x5ce1a1(0x25f)](_0x484198),_0x460cec;}[_0x22a2ef(0x29b)](_0x122353){const _0x3a8a50=_0x22a2ef;let _0x1d9eaa=[];for(let _0x3cd159 of this[_0x3a8a50(0x1de)]){let _0x18bad3=this[_0x3a8a50(0x23f)][_0x3a8a50(0x1dc)](_0x3cd159);if(_0x18bad3){let _0x4ae393=_0x18bad3['getShapeRelation']();if(_0x4ae393){var _0x40f02d,_0x170a39;((_0x40f02d=_0x4ae393[_0x3a8a50(0x245)])==null?void 0x0:_0x40f02d[_0x3a8a50(0x233)])===_0x122353&&_0x1d9eaa[_0x3a8a50(0x21b)]({..._0x4ae393['from'],'lineShapeId':_0x3cd159,'isFrom':!0x0}),((_0x170a39=_0x4ae393['to'])==null?void 0x0:_0x170a39['shapeId'])===_0x122353&&_0x1d9eaa['push']({..._0x4ae393['to'],'lineShapeId':_0x3cd159,'isFrom':!0x1});}}}return _0x1d9eaa;}[_0x22a2ef(0x202)](_0xa92d1e){const _0x33f331=_0x22a2ef;let _0x1541ea=this[_0x33f331(0x23f)]['get'](_0xa92d1e);if(_0x1541ea)return _0x1541ea['getShapeRelation']();}[_0x22a2ef(0x1e7)](_0x28f077){const _0x45f8d7=_0x22a2ef;let _0xd60871=this[_0x45f8d7(0x23f)]['get'](_0x28f077);if(_0xd60871)return _0xd60871[_0x45f8d7(0x1e7)]();}[_0x22a2ef(0x1ef)](_0x1f018b){const _0x3305a7=_0x22a2ef;return this[_0x3305a7(0x23f)][_0x3305a7(0x27f)](_0x1f018b);}[_0x22a2ef(0x1db)](){const _0x127e67=_0x22a2ef;return Array['from'](this[_0x127e67(0x23f)][_0x127e67(0x236)]())[_0x127e67(0x20e)](_0x129112=>_0x129112[_0x127e67(0x28d)]()||_0x129112[_0x127e67(0x259)]());}[_0x22a2ef(0x21c)](_0x10acc8){const _0x11849f=_0x22a2ef;let _0x1f8794=this[_0x11849f(0x23f)]['get'](_0x10acc8);_0x1f8794&&(_0x5a261c(_0x1f8794[_0x11849f(0x1e7)]())&&this['_linesIds'][_0x11849f(0x22e)](_0x10acc8),this[_0x11849f(0x23f)]['delete'](_0x10acc8));}[_0x22a2ef(0x24c)](){const _0x1c8311=_0x22a2ef;let _0x475b72=[];return this[_0x1c8311(0x23f)][_0x1c8311(0x265)](_0x11f6fc=>{const _0x4e1304=_0x1c8311;_0x475b72[_0x4e1304(0x21b)](_0x11f6fc[_0x4e1304(0x24c)]());}),_0x475b72;}[_0x22a2ef(0x260)](_0x543bb1){const _0x183473=_0x22a2ef;for(let _0x1c5fb7 of _0x543bb1){let {id:_0x15ad63,shapeType:_0x4bae98,name:_0x48c67b}=_0x1c5fb7,_0x46c139=this[_0x183473(0x1fc)](_0x4bae98,_0x15ad63,_0x1c5fb7[_0x183473(0x294)],_0x48c67b);_0x46c139&&_0x46c139[_0x183473(0x253)]()&&this['_linesIds'][_0x183473(0x25f)](_0x15ad63);}}[_0x22a2ef(0x218)](){const _0x1f303e=_0x22a2ef;this['_disposed']||(this[_0x1f303e(0x23f)][_0x1f303e(0x265)](_0x213c4d=>{const _0x3a3e5b=_0x1f303e;_0x213c4d[_0x3a3e5b(0x218)]();}),this[_0x1f303e(0x23f)][_0x1f303e(0x263)](),this[_0x1f303e(0x1de)]['clear'](),this['_groupIds'][_0x1f303e(0x263)](),super['dispose']());}};function _0x43be(){const _0x92590f=['description','_commandService','_initSnapshot','delete','6QVsXuQ','originals','range','sheet.command.set-shape-rotate','shapeId','getShapeModel','decorate','values','point','hostType','INSERT','MUTATION','_addLineFollowShapeUpdates','symbol','selectable','getEndConnectInfo','_shapes','lineShapeId','SHEET_SHAPE_PLUGIN','forward','startX','backward','from','sendToBack','cos','flipX','string','1174565CozdMJ','mode','toJSON','worldRect','find','top','angle','constructor','flipY','isLineShape','isHorizontal','onCommandExecuted','_shapeService','prototype','COMMAND','getId','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','transform','getShapeDataById','_shapeModelManagerMap','position','add','fromJSON','_arrange','fill','clear','shapeType','forEach','sheets-shape.config','getBatchUpdateOp','updates','hidden','iterator','entries','getStartConnectInfo','_serializeShapeForUnit','_shapeAdapter','1506901bprnaR','_resourcesManagerService','set','command','shapeName','register','keys','preRedos','listShapesInUnit','subUnitId','undos','ang','@univerjs-pro/sheets-shape','height','1.0.0-beta.2','getConnectionSiteList','has','sheet.command.update-connector-relation','609232sgqKpl','removeLinePoints','sheet.mutation.update-shape-type','_groupIds','2409114TLpaTh','getBatchAddOp','drawingId','UNIVER_SHEET','_planDeletes','_sheetInterceptorService','sheet.mutation.remove-shape','resizeEnabled','getName','sheet.mutation.insert-shape','sheet.command.insert-shape','adjustValues','REMOVE','defineProperty','deepClone','shapeData','left','drawingType','createShape','filter','getAdjustValueByName','registerCommand','getBasicShapeRelation','getDrawingByParam','12GZwlYi','refresh','_resolveBinding','updateShape','bringToFront','unitId','setConfig','packageName','data','1333525bLZguG','syncExecuteCommand','getAdjustNames','_getConnectPointInfo','formula','result','setZOrder','getSkeleton','getShapeTypeById','cxnIndex','startY','getShapeDisplayNames','get','registerPluginResource','_linesIds','borderEnabled','10lJVkEO','getSheets','_planConnector','9lKEaJT','_config','preUndos','getDrawingData','getShapeType','getOwnPropertyDescriptor','length','39163qpZTEe','244509DkFHgq','_toSnapshot','getUnit','pushUndoRedo','hasShape','_drawingService','onCommandExecute','_addLineRerouteUpdates','parse','_initCommands','sendBackward','sheet.command.set-shape-text-vertical-toggle','DRAWING_SHAPE','call','object','updateContext','function','addShape','setShapeData','_configService','isFrom','_sheetsShapeService','type','getLineShapeRelation','insertShape','_initCommandInterceptor','UPDATE','stringify','ensureSkeleton','sin','_ensureShapeModelManager','params','rotateEnabled','relation','getShape','map','back','width','setShapeType','deletes','_deserializeShapeForUnit','getShapeTextData','name','default','_shapeHostAdapterRegistry','dispose','visible','redos','push','removeShape','sheet.command.set-shape-drawing-data','_sheetSkeletonService','_applyUpdate','rotation','formulaBinding','sheet.command.update-line-shape-resize','getShapeRelation','_instanceService','listShapes','_drawingManagerService','getBasicShapeType','disposeWithMe','getShapeData','_injector'];_0x43be=function(){return _0x92590f;};return _0x43be();}function Z(_0x4bf2cb,_0x178df5){return function(_0x20dae2,_0x2db3b8){_0x178df5(_0x20dae2,_0x2db3b8,_0x4bf2cb);};}function le(_0x16ee26,_0x57185a,_0x31c8b8,_0x5dec54){const _0x35e6dd=_0x22a2ef;var _0x1e22c3=arguments[_0x35e6dd(0x1e9)],_0x5922e3=_0x1e22c3<0x3?_0x57185a:_0x5dec54===null?_0x5dec54=Object[_0x35e6dd(0x1e8)](_0x57185a,_0x31c8b8):_0x5dec54,_0x5bbea8;if(typeof Reflect==_0x35e6dd(0x1f9)&&typeof Reflect[_0x35e6dd(0x235)]==_0x35e6dd(0x1fb))_0x5922e3=Reflect[_0x35e6dd(0x235)](_0x16ee26,_0x57185a,_0x31c8b8,_0x5dec54);else{for(var _0x476884=_0x16ee26['length']-0x1;_0x476884>=0x0;_0x476884--)(_0x5bbea8=_0x16ee26[_0x476884])&&(_0x5922e3=(_0x1e22c3<0x3?_0x5bbea8(_0x5922e3):_0x1e22c3>0x3?_0x5bbea8(_0x57185a,_0x31c8b8,_0x5922e3):_0x5bbea8(_0x57185a,_0x31c8b8))||_0x5922e3);}return _0x1e22c3>0x3&&_0x5922e3&&Object[_0x35e6dd(0x292)](_0x57185a,_0x31c8b8,_0x5922e3),_0x5922e3;}let Q=class extends _0x67ef41{constructor(_0x4da6d1){const _0x477f53=_0x22a2ef;super(),this['_resourcesManagerService']=_0x4da6d1,X(this,_0x477f53(0x25d),new Map()),this['_initSnapshot']();}[_0x22a2ef(0x209)](_0xb931f5,_0x15a25d){const _0x4e11da=_0x22a2ef;let _0x1020b7=this[_0x4e11da(0x25d)][_0x4e11da(0x1dc)](_0xb931f5);_0x1020b7||(_0x1020b7=new Map(),this[_0x4e11da(0x25d)][_0x4e11da(0x271)](_0xb931f5,_0x1020b7));let _0x5891bd=_0x1020b7['get'](_0x15a25d);return _0x5891bd||(_0x5891bd=new ce(),_0x1020b7['set'](_0x15a25d,_0x5891bd)),_0x5891bd;}[_0x22a2ef(0x203)](_0x4030d4,_0x533030,_0x3a6c73,_0xb49ea9,_0x4ecf95,_0x4ef76f){const _0x2ad570=_0x22a2ef;this['_ensureShapeModelManager'](_0x4030d4,_0x533030)[_0x2ad570(0x1fc)](_0x3a6c73,_0xb49ea9,_0x4ecf95,_0x4ef76f);}[_0x22a2ef(0x21c)](_0x4a0d1e,_0x3b4c2a,_0x47996d){const _0x178986=_0x22a2ef;this[_0x178986(0x209)](_0x4a0d1e,_0x3b4c2a)[_0x178986(0x21c)](_0x47996d);}[_0x22a2ef(0x227)](_0x38644c,_0x39d479,_0x1d4827){const _0x3bd5c1=_0x22a2ef;return this[_0x3bd5c1(0x209)](_0x38644c,_0x39d479)[_0x3bd5c1(0x1e7)](_0x1d4827);}[_0x22a2ef(0x1e7)](_0xdde21,_0x7480e,_0x36bf91){const _0xa1dafa=_0x22a2ef;return this[_0xa1dafa(0x209)](_0xdde21,_0x7480e)[_0xa1dafa(0x1e7)](_0x36bf91);}[_0x22a2ef(0x1ef)](_0x38bab0,_0x417aac,_0x78c720){const _0xb3ba0e=_0x22a2ef;return this[_0xb3ba0e(0x209)](_0x38bab0,_0x417aac)['hasShape'](_0x78c720);}[_0x22a2ef(0x1d8)](_0x4d4b88,_0x3702b1,_0x1952e6){const _0x544147=_0x22a2ef;return this[_0x544147(0x209)](_0x4d4b88,_0x3702b1)[_0x544147(0x1e7)](_0x1952e6);}[_0x22a2ef(0x25c)](_0x3ec848,_0x3b91e7,_0x506bbb){const _0x3d16b1=_0x22a2ef;let _0x5767fa=this[_0x3d16b1(0x209)](_0x3ec848,_0x3b91e7);if(!_0x5767fa['getShapeType'](_0x506bbb))return;let _0x2c6513=_0x5767fa['_shapes'][_0x3d16b1(0x1dc)](_0x506bbb);if(_0x2c6513)return _0x2c6513[_0x3d16b1(0x229)]();}[_0x22a2ef(0x1db)](_0x176914,_0x165f71){const _0x42502c=_0x22a2ef;return this[_0x42502c(0x209)](_0x176914,_0x165f71)[_0x42502c(0x1db)]();}[_0x22a2ef(0x234)](_0x1de028,_0x41db45,_0x3b07f1){const _0x3afb88=_0x22a2ef;return this[_0x3afb88(0x209)](_0x1de028,_0x41db45)[_0x3afb88(0x23f)][_0x3afb88(0x1dc)](_0x3b07f1);}[_0x22a2ef(0x29b)](_0x29fa90,_0x167d17,_0x22ef1a){const _0x5988be=_0x22a2ef;return this[_0x5988be(0x209)](_0x29fa90,_0x167d17)['getBasicShapeRelation'](_0x22ef1a);}[_0x22a2ef(0x202)](_0x139684,_0x3b7678,_0x1c6d58){const _0x509754=_0x22a2ef;let _0xad0103=this[_0x509754(0x209)](_0x139684,_0x3b7678)[_0x509754(0x23f)][_0x509754(0x1dc)](_0x1c6d58);if(_0xad0103)return _0xad0103[_0x509754(0x223)]();}[_0x22a2ef(0x211)](){}[_0x22a2ef(0x26d)](_0xfc04){const _0x109361=_0x22a2ef;let _0x2450c9={},_0x3fd512=this[_0x109361(0x25d)][_0x109361(0x1dc)](_0xfc04);return _0x3fd512&&_0x3fd512['forEach']((_0x4319dd,_0x16ef7e)=>{const _0x4d45b7=_0x109361;let _0x291639=_0x4319dd[_0x4d45b7(0x24c)]();_0x291639[_0x4d45b7(0x1e9)]>0x0&&(_0x2450c9[_0x16ef7e]=_0x291639);}),JSON[_0x109361(0x206)](_0x2450c9);}[_0x22a2ef(0x213)](_0x332d90,_0x5c4bcf){const _0x3695af=_0x22a2ef;Object[_0x3695af(0x275)](_0x5c4bcf)['forEach'](_0x23fbbc=>{const _0x426c01=_0x3695af;this[_0x426c01(0x209)](_0x332d90,_0x23fbbc)[_0x426c01(0x260)](_0x5c4bcf[_0x23fbbc]);});}[_0x22a2ef(0x24c)](){const _0x4e9acc=_0x22a2ef;let _0x3280da={};return this[_0x4e9acc(0x25d)][_0x4e9acc(0x265)]((_0x430829,_0x183bfd)=>{const _0x18b7bd=_0x4e9acc;_0x3280da[_0x183bfd]={},_0x430829[_0x18b7bd(0x265)]((_0x46d244,_0x1f3108)=>{const _0x4aa693=_0x18b7bd;_0x3280da[_0x183bfd][_0x1f3108]=_0x46d244[_0x4aa693(0x24c)]();});}),_0x3280da;}[_0x22a2ef(0x260)](_0x439e5d){const _0x5db869=_0x22a2ef;Object['keys'](_0x439e5d)[_0x5db869(0x265)](_0x5a0943=>{const _0xf7ce40=_0x5db869;let _0x55149f=_0x439e5d[_0x5a0943];Object['keys'](_0x55149f)[_0xf7ce40(0x265)](_0x297c6f=>{const _0x10ec49=_0xf7ce40;this[_0x10ec49(0x209)](_0x5a0943,_0x297c6f)[_0x10ec49(0x260)](_0x55149f[_0x297c6f]);});});}[_0x22a2ef(0x22d)](){const _0x12b4b0=_0x22a2ef;this[_0x12b4b0(0x270)][_0x12b4b0(0x1dd)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x301e36[_0x12b4b0(0x288)]],'toJson':_0x51969d=>this[_0x12b4b0(0x26d)](_0x51969d),'parseJson':_0x4edc30=>JSON[_0x12b4b0(0x1f3)](_0x4edc30),'onLoad':(_0x59f994,_0x2f971d)=>{const _0x4aaf1f=_0x12b4b0;this[_0x4aaf1f(0x213)](_0x59f994,_0x2f971d);},'onUnLoad':_0x40756c=>{const _0x3f8ab9=_0x12b4b0;let _0x52f176=this['_shapeModelManagerMap']['get'](_0x40756c);_0x52f176&&(_0x52f176[_0x3f8ab9(0x265)](_0x218c63=>{const _0x78e9d9=_0x3f8ab9;_0x218c63[_0x78e9d9(0x218)]();}),this[_0x3f8ab9(0x25d)]['delete'](_0x40756c));}});}[_0x22a2ef(0x218)](){const _0x4531fd=_0x22a2ef;this[_0x4531fd(0x25d)][_0x4531fd(0x265)](_0x413c2e=>{const _0x22fd76=_0x4531fd;_0x413c2e[_0x22fd76(0x265)](_0x57d88c=>{_0x57d88c['dispose']();});});}};Q=le([Z(0x0,_0x486ac4)],Q);const ue={'id':_0x22a2ef(0x28e),'type':_0x137eb2[_0x22a2ef(0x23a)],'handler':(_0x1f3c1b,_0x40661a)=>{const _0x2352e0=_0x22a2ef;let {unitId:_0x3bee2b,subUnitId:_0x372202,shapeType:_0x3751f0,shapeId:_0x4c21ef,shapeName:_0x5f54d3,shapeData:_0xda20b6}=_0x40661a;return _0x1f3c1b[_0x2352e0(0x1dc)](Q)['insertShape'](_0x3bee2b,_0x372202,_0x3751f0,_0x4c21ef,_0x13cd39['deepClone'](_0xda20b6),_0x5f54d3),!0x0;}},de={'id':_0x22a2ef(0x28b),'type':_0x137eb2[_0x22a2ef(0x23a)],'handler':(_0x499fbf,_0x3633c9)=>{const _0x24b548=_0x22a2ef;let {unitId:_0x473b94,subUnitId:_0x4a7c67,shapeId:_0x2d35d4}=_0x3633c9;return _0x499fbf[_0x24b548(0x1dc)](Q)['removeShape'](_0x473b94,_0x4a7c67,_0x2d35d4),!0x0;}},fe={'type':_0x137eb2[_0x22a2ef(0x258)],'id':_0x22a2ef(0x28f),'handler':(_0x5b6b04,_0x75b093)=>{const _0x2418e4=_0x22a2ef;let _0x218740=_0x13fad5(_0x5b6b04[_0x2418e4(0x1dc)](_0x1a1e10),_0x75b093);if(!_0x218740)return!0x1;let _0x3a2750=_0x5b6b04[_0x2418e4(0x1dc)](_0x696088),{unitId:_0x421404,subUnitId:_0x542312}=_0x218740,_0x112a61=_0x3a2750[_0x2418e4(0x207)](_0x421404,_0x542312);if(!_0x112a61)return!0x1;let _0x5cb20b=_0x5b6b04[_0x2418e4(0x1dc)](_0x176804),_0x3bf2ad=_0x5b6b04[_0x2418e4(0x1dc)](_0x2e8924),_0x33d387=_0x5b6b04[_0x2418e4(0x1dc)](_0x1be23b),_0xb5d1db=_0x5b6b04['get'](_0x2db474),_0x30c7a1=_0x5b6b04[_0x2418e4(0x1dc)](Q),{shapeType:_0x574c10}=_0x75b093,_0x30296b=_0x75b093[_0x2418e4(0x294)]??_0x3e0f63(_0x574c10),_0x2eb1f5=_0x75b093[_0x2418e4(0x233)]||_0x1113d4(),_0x228c57={'unitId':_0x421404,'subUnitId':_0x542312,'shapeId':_0x2eb1f5,'shapeName':_0x75b093[_0x2418e4(0x273)]??_0x22d089(_0x574c10,_0x30c7a1[_0x2418e4(0x1db)](_0x421404,_0x542312)),'shapeType':_0x574c10,'shapeData':_0x30296b},_0x32dc48=_0x75b093[_0x2418e4(0x210)]||0xc8,_0x56e134=_0x75b093[_0x2418e4(0x27c)]||0xc8,_0x5af9f0=0x0,_0x5087a0=0x0;if(_0x75b093['position']){let {x:_0x4d5024,y:_0x469b18}=_0x75b093[_0x2418e4(0x25e)];_0x5af9f0=_0x4d5024,_0x5087a0=_0x469b18;}else{if(_0x75b093[_0x2418e4(0x231)]){let {startRow:_0x757982,startColumn:_0x162a5e}=_0x75b093[_0x2418e4(0x231)],_0x160515=_0x112a61['getCellWithCoordByIndex'](_0x757982,_0x162a5e);_0x5af9f0=_0x160515[_0x2418e4(0x243)]+0xa,_0x5087a0=_0x160515[_0x2418e4(0x1da)]+0xa;}}let _0xbddd5b={'left':_0x5af9f0,'top':_0x5087a0,'width':_0x32dc48,'height':_0x56e134,'angle':_0x75b093['rotation']??0x0,'flipX':_0x75b093[_0x2418e4(0x248)]??!0x1,'flipY':_0x75b093[_0x2418e4(0x252)]??!0x1},_0x5b72d0=_0x43a224(_0xbddd5b,_0x112a61),_0x3c0af9=_0x140823(_0xbddd5b,_0x112a61),_0xc3fbc5={'unitId':_0x421404,'subUnitId':_0x542312,'drawingId':_0x2eb1f5,'drawingType':_0x4fef19[_0x2418e4(0x1f7)],'anchorType':_0x3a2908['Both'],'name':_0x75b093[_0x2418e4(0x215)],'description':_0x75b093[_0x2418e4(0x22b)],'sheetTransform':_0x5b72d0,'transform':_0xbddd5b,'data':{'shapeType':_0x574c10,'shapeData':_0x30296b},'axisAlignSheetTransform':_0x3c0af9,'allowTransform':!0x0,'hidden':_0x75b093[_0x2418e4(0x219)]===!0x1,'selectable':_0x75b093[_0x2418e4(0x23d)]??!0x0};_0x5a261c(_0x574c10)&&(_0xc3fbc5[_0x2418e4(0x1cf)][_0x2418e4(0x262)]=!0x1,_0xc3fbc5[_0x2418e4(0x1cf)][_0x2418e4(0x20b)]=!0x1,_0xc3fbc5[_0x2418e4(0x1cf)][_0x2418e4(0x28c)]=!0x1,_0xc3fbc5[_0x2418e4(0x1cf)]['borderEnabled']=!0x1,_0xc3fbc5['transform']['rotateEnabled']=!0x1,_0xc3fbc5[_0x2418e4(0x25b)][_0x2418e4(0x28c)]=!0x1,_0xc3fbc5[_0x2418e4(0x25b)][_0x2418e4(0x1df)]=!0x1);let {undo:_0x3c6f31,redo:_0x198c83,objects:_0x423271}=_0xb5d1db[_0x2418e4(0x286)]([_0xc3fbc5]),_0x47bb97=_0x33d387[_0x2418e4(0x1f1)]({'id':_0x104efa['id'],'params':{'unitId':_0x421404,'drawings':[_0xc3fbc5]}}),_0x5268c3=[..._0x47bb97[_0x2418e4(0x276)]??[],{'id':_0x1f0e5b['id'],'params':{'unitId':_0x421404,'subUnitId':_0x542312,'op':_0x198c83,'objects':_0x423271,'type':_0x2e2ff5[_0x2418e4(0x239)]}},{'id':_0x114644['id'],'params':[_0x421404]},..._0x47bb97['redos'],{'id':ue['id'],'params':_0x228c57}],_0x2d16cf=[{'id':de['id'],'params':{'unitId':_0x421404,'subUnitId':_0x542312,'shapeId':_0x2eb1f5}},..._0x47bb97[_0x2418e4(0x1e5)]??[],{'id':_0x1f0e5b['id'],'params':{'unitId':_0x421404,'subUnitId':_0x542312,'op':_0x3c6f31,'objects':_0x423271,'type':_0x2e2ff5[_0x2418e4(0x291)]}},{'id':_0x114644['id'],'params':[_0x421404]},..._0x47bb97['undos']];return _0x54f666(_0x5268c3,_0x5cb20b)[_0x2418e4(0x1d5)]?(_0x3bf2ad[_0x2418e4(0x1ee)]({'unitID':_0x421404,'undoMutations':_0x2d16cf,'redoMutations':_0x5268c3}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-data','type':_0x137eb2[_0x22a2ef(0x23a)],'handler':(_0x4bedc8,_0x32d982)=>{const _0x304f49=_0x22a2ef;let {unitId:_0x41717a,subUnitId:_0x49e733,shapeType:_0x586a16,shapeId:_0x579652,shapeData:_0x192c59,replace:_0x116168,formulaLastValueGuard:_0xcd4a0e}=_0x32d982,_0xf6fc1f=_0x4bedc8[_0x304f49(0x1dc)](Q)[_0x304f49(0x234)](_0x41717a,_0x49e733,_0x579652);if(_0xf6fc1f){var _0x27c627;if(!_0x246b87(_0x4bedc8,{'hostType':_0x301e36[_0x304f49(0x288)],'unitId':_0x41717a,'subUnitId':_0x49e733,'shapeId':_0x579652},(_0x27c627=_0xf6fc1f[_0x304f49(0x229)]()['formulaBinding'])==null?void 0x0:_0x27c627[_0x304f49(0x1d4)],_0xcd4a0e))return!0x0;_0x586a16!==void 0x0&&_0xf6fc1f[_0x304f49(0x211)](_0x586a16),_0x192c59&&(_0xf6fc1f==null||_0xf6fc1f[_0x304f49(0x1fd)](_0x13cd39[_0x304f49(0x293)](_0x192c59),!_0x116168));}return!0x0;}},pe={'type':_0x137eb2[_0x22a2ef(0x258)],'id':_0x22a2ef(0x21d),'handler':(_0xacc125,_0x579994)=>{const _0x4897ea=_0x22a2ef;let _0x437591=_0x13fad5(_0xacc125['get'](_0x1a1e10),_0x579994);if(!_0x437591)return!0x1;let _0x2f41e3=_0xacc125[_0x4897ea(0x1dc)](_0x696088),{unitId:_0xca91e2,subUnitId:_0x29fd00}=_0x437591,_0x57aacb=_0x2f41e3[_0x4897ea(0x207)](_0xca91e2,_0x29fd00);if(!_0x57aacb)return!0x1;let _0x5dddec=_0xacc125[_0x4897ea(0x1dc)](Q),{shapeId:_0x2532c4,shapeType:_0x463b44,shapeData:_0x51006c,position:_0x4fd0c7,width:_0x55dee9,height:_0x36af94}=_0x579994,_0x423064=_0x5dddec[_0x4897ea(0x234)](_0xca91e2,_0x29fd00,_0x2532c4);if(!_0x423064)return!0x1;let _0x25ecce=_0xacc125[_0x4897ea(0x1dc)](_0x176804),_0x1e06fc=_0xacc125[_0x4897ea(0x1dc)](_0x2e8924),_0x556182=_0xacc125[_0x4897ea(0x1dc)](_0x1be23b),_0x2ab945=_0xacc125[_0x4897ea(0x1dc)](_0x2db474),_0x54369d={'unitId':_0xca91e2,'subUnitId':_0x29fd00,'shapeId':_0x2532c4,'shapeType':_0x463b44,'shapeData':_0x51006c,'replace':!0x0},_0x104c93=_0x423064[_0x4897ea(0x1e7)](),_0x33408e=_0x423064['getShapeData'](),{x:_0x5064b0,y:_0x49ec40}=_0x4fd0c7,_0x524d41={'left':_0x5064b0,'top':_0x49ec40,'width':_0x55dee9,'height':_0x36af94,'angle':_0x579994['rotation']??0x0,'flipX':_0x579994[_0x4897ea(0x248)]??!0x1,'flipY':_0x579994[_0x4897ea(0x252)]??!0x1},_0x4f3764=_0x43a224(_0x524d41,_0x57aacb),_0x22397e=_0x140823(_0x524d41,_0x57aacb),_0x44ea14={'unitId':_0xca91e2,'subUnitId':_0x29fd00,'drawingId':_0x2532c4,'drawingType':_0x4fef19[_0x4897ea(0x1f7)],'name':_0x579994[_0x4897ea(0x215)],'description':_0x579994[_0x4897ea(0x22b)],'sheetTransform':_0x4f3764,'transform':_0x524d41,'data':{'shapeType':_0x463b44,'shapeData':_0x51006c},'axisAlignSheetTransform':_0x22397e,'allowTransform':!0x0,'hidden':!_0x579994['visible'],'selectable':_0x579994[_0x4897ea(0x23d)]};_0x5a261c(_0x463b44)&&(_0x44ea14[_0x4897ea(0x1cf)][_0x4897ea(0x262)]=!0x1,_0x44ea14[_0x4897ea(0x1cf)]['rotateEnabled']=!0x1,_0x44ea14[_0x4897ea(0x1cf)]['resizeEnabled']=!0x1,_0x44ea14[_0x4897ea(0x1cf)][_0x4897ea(0x1df)]=!0x1,_0x44ea14['transform'][_0x4897ea(0x20b)]=!0x1,_0x44ea14['transform'][_0x4897ea(0x28c)]=!0x1,_0x44ea14[_0x4897ea(0x25b)][_0x4897ea(0x1df)]=!0x1);let {undo:_0x1776ab,redo:_0x1467d9,objects:_0xfae38b}=_0x2ab945[_0x4897ea(0x267)]([_0x44ea14]),_0x2d3255=_0x556182[_0x4897ea(0x1f1)]({'id':_0x4576d9['id'],'params':{'unitId':_0xca91e2,'drawings':[_0x44ea14]}}),_0x3bc2f8=[..._0x2d3255['preRedos']??[],{'id':_0x1f0e5b['id'],'params':{'unitId':_0xca91e2,'subUnitId':_0x29fd00,'op':_0x1467d9,'objects':_0xfae38b,'type':_0x2e2ff5[_0x4897ea(0x205)]}},{'id':_0x114644['id'],'params':[_0xca91e2]},..._0x2d3255['redos'],{'id':$['id'],'params':_0x54369d}],_0x3bbf18=[..._0x2d3255[_0x4897ea(0x1e5)]??[],{'id':_0x1f0e5b['id'],'params':{'unitId':_0xca91e2,'subUnitId':_0x29fd00,'op':_0x1776ab,'objects':_0xfae38b,'type':_0x2e2ff5[_0x4897ea(0x205)]}},{'id':_0x114644['id'],'params':[_0xca91e2]},..._0x2d3255[_0x4897ea(0x279)],{'id':$['id'],'params':{'unitId':_0xca91e2,'subUnitId':_0x29fd00,'shapeType':_0x104c93,'shapeId':_0x2532c4,'shapeData':_0x33408e,'replace':!0x0}}];return _0x54f666(_0x3bc2f8,_0x25ecce)[_0x4897ea(0x1d5)]?(_0x1e06fc[_0x4897ea(0x1ee)]({'unitID':_0xca91e2,'undoMutations':_0x3bbf18,'redoMutations':_0x3bc2f8}),!0x0):!0x1;}},me={'type':_0x137eb2['COMMAND'],'id':'sheet.command.toggle-shape-flip','handler':(_0xf4e21,_0x4eeebf)=>{const _0xc98264=_0x22a2ef;let _0xd627fd=_0x13fad5(_0xf4e21[_0xc98264(0x1dc)](_0x1a1e10),_0x4eeebf);if(!_0xd627fd)return!0x1;let _0x49a63b=_0xf4e21[_0xc98264(0x1dc)](_0x696088),{unitId:_0x5249a2,subUnitId:_0x30c48b}=_0xd627fd,_0x2756b3=_0x49a63b['getSkeleton'](_0x5249a2,_0x30c48b);if(!_0x2756b3)return!0x1;let _0x49463d=_0xf4e21[_0xc98264(0x1dc)](_0x2db474),{shapeId:_0x460763,flipH:_0x4ef06c,flipV:_0x86c910}=_0x4eeebf,_0x458d05=_0x49463d[_0xc98264(0x29c)]({'unitId':_0x5249a2,'subUnitId':_0x30c48b,'drawingId':_0x460763});if(!_0x458d05)return!0x1;let _0x39320b=_0xf4e21[_0xc98264(0x1dc)](Q)['getShapeModel'](_0x5249a2,_0x30c48b,_0x460763);if(!_0x39320b)return!0x1;let _0x182f4d=_0xf4e21[_0xc98264(0x1dc)](_0x176804),_0x26f1fd=_0xf4e21[_0xc98264(0x1dc)](_0x2e8924),_0x452f7d=_0xf4e21[_0xc98264(0x1dc)](_0x1be23b),_0x353685={..._0x458d05[_0xc98264(0x25b)]};_0x4ef06c!==void 0x0&&(_0x353685[_0xc98264(0x248)]=!_0x353685[_0xc98264(0x248)]),_0x86c910!==void 0x0&&(_0x353685[_0xc98264(0x252)]=!_0x353685['flipY']);let _0xb1d09f=_0x43a224(_0x353685,_0x2756b3),_0x220c14=_0x140823(_0x353685,_0x2756b3),_0x19a648=_0x39320b[_0xc98264(0x1e7)](),_0x457618=_0x39320b[_0xc98264(0x229)](),_0xdd089={'unitId':_0x5249a2,'subUnitId':_0x30c48b,'drawingId':_0x460763,'drawingType':_0x4fef19['DRAWING_SHAPE'],'sheetTransform':_0xb1d09f,'transform':_0x353685,'data':{'shapeType':_0x19a648,'shapeData':_0x457618},'axisAlignSheetTransform':_0x220c14,'allowTransform':!0x0},{undo:_0x2e360d,redo:_0x150529,objects:_0x134f3b}=_0x49463d[_0xc98264(0x267)]([_0xdd089]),_0x26dd6f=_0x452f7d[_0xc98264(0x1f1)]({'id':_0x4576d9['id'],'params':{'unitId':_0x5249a2,'drawings':[_0xdd089]}}),_0x1e265a=[..._0x26dd6f[_0xc98264(0x276)]??[],{'id':_0x1f0e5b['id'],'params':{'unitId':_0x5249a2,'subUnitId':_0x30c48b,'op':_0x150529,'objects':_0x134f3b,'type':_0x2e2ff5['UPDATE']}},{'id':_0x114644['id'],'params':[_0x5249a2]},..._0x26dd6f[_0xc98264(0x21a)]],_0x463ed5=[..._0x26dd6f[_0xc98264(0x1e5)]??[],{'id':_0x1f0e5b['id'],'params':{'unitId':_0x5249a2,'subUnitId':_0x30c48b,'op':_0x2e360d,'objects':_0x134f3b,'type':_0x2e2ff5[_0xc98264(0x205)]}},{'id':_0x114644['id'],'params':[_0x5249a2]},..._0x26dd6f[_0xc98264(0x279)]];if(_0x5a261c(_0x19a648)){let _0x4805b7=_0x39320b['getShapeRelation']();if(_0x4805b7){let _0xfe3aa5={..._0x4805b7};_0xfe3aa5[_0xc98264(0x245)]=void 0x0,_0xfe3aa5['to']=void 0x0,_0x1e265a[_0xc98264(0x21b)]({'id':$['id'],'params':{'unitId':_0x5249a2,'subUnitId':_0x30c48b,'shapeId':_0x460763,'shapeType':_0x19a648,'shapeData':{'relation':_0xfe3aa5}}}),_0x463ed5[_0xc98264(0x21b)]({'id':$['id'],'params':{'unitId':_0x5249a2,'subUnitId':_0x30c48b,'shapeId':_0x460763,'shapeType':_0x19a648,'shapeData':{'relation':_0x4805b7}}});}}return _0x54f666(_0x1e265a,_0x182f4d)[_0xc98264(0x1d5)]?(_0x26f1fd[_0xc98264(0x1ee)]({'unitID':_0x5249a2,'undoMutations':_0x463ed5,'redoMutations':_0x1e265a}),!0x0):!0x1;}},he={'type':_0x137eb2[_0x22a2ef(0x258)],'id':_0x22a2ef(0x232),'handler':(_0xb7f98c,_0x3e9123)=>{const _0x15c0cf=_0x22a2ef;let _0x2ad90c=_0x13fad5(_0xb7f98c['get'](_0x1a1e10),_0x3e9123);if(!_0x2ad90c)return!0x1;let _0x1491c2=_0xb7f98c['get'](_0x696088),{unitId:_0x544c5b,subUnitId:_0x508018}=_0x2ad90c,_0x390ee7=_0x1491c2[_0x15c0cf(0x1d7)](_0x544c5b,_0x508018);if(!_0x390ee7)return!0x1;let _0x179635=_0xb7f98c[_0x15c0cf(0x1dc)](_0x2db474),{shapeId:_0x4da41a,rotate:_0xb0b92c}=_0x3e9123,_0x19cf15=_0x179635[_0x15c0cf(0x29c)]({'unitId':_0x544c5b,'subUnitId':_0x508018,'drawingId':_0x4da41a});if(!_0x19cf15)return!0x1;let _0x4bb8d6=_0xb7f98c[_0x15c0cf(0x1dc)](Q)['getShapeModel'](_0x544c5b,_0x508018,_0x4da41a);if(!_0x4bb8d6)return!0x1;let _0x41d205=_0xb7f98c[_0x15c0cf(0x1dc)](_0x176804),_0x186252=_0xb7f98c[_0x15c0cf(0x1dc)](_0x2e8924),_0xd930db=_0xb7f98c['get'](_0x1be23b),_0x3c4da2={..._0x19cf15[_0x15c0cf(0x25b)]};_0xb0b92c!==void 0x0&&(_0x3c4da2[_0x15c0cf(0x250)]=(_0x3c4da2[_0x15c0cf(0x250)]||0x0)+_0xb0b92c);let _0x289be9=_0x43a224(_0x3c4da2,_0x390ee7),_0x478450=_0x140823(_0x3c4da2,_0x390ee7),_0xa98d2c=_0x4bb8d6['getShapeType'](),_0x47d50c=_0x4bb8d6[_0x15c0cf(0x229)](),_0x3c1af1={'unitId':_0x544c5b,'subUnitId':_0x508018,'drawingId':_0x4da41a,'drawingType':_0x4fef19[_0x15c0cf(0x1f7)],'sheetTransform':_0x289be9,'transform':_0x3c4da2,'data':{'shapeType':_0xa98d2c,'shapeData':_0x47d50c},'axisAlignSheetTransform':_0x478450,'allowTransform':!0x0},{undo:_0xc61fdf,redo:_0x201978,objects:_0xd9a106}=_0x179635[_0x15c0cf(0x267)]([_0x3c1af1]),_0x32cf0c=_0xd930db[_0x15c0cf(0x1f1)]({'id':_0x4576d9['id'],'params':{'unitId':_0x544c5b,'drawings':[_0x3c1af1]}}),_0x4ae8dc=[..._0x32cf0c[_0x15c0cf(0x276)]??[],{'id':_0x1f0e5b['id'],'params':{'unitId':_0x544c5b,'subUnitId':_0x508018,'op':_0x201978,'objects':_0xd9a106,'type':_0x2e2ff5[_0x15c0cf(0x205)]}},{'id':_0x114644['id'],'params':[_0x544c5b]},..._0x32cf0c[_0x15c0cf(0x21a)]],_0x2082b5=[..._0x32cf0c[_0x15c0cf(0x1e5)]??[],{'id':_0x1f0e5b['id'],'params':{'unitId':_0x544c5b,'subUnitId':_0x508018,'op':_0xc61fdf,'objects':_0xd9a106,'type':_0x2e2ff5[_0x15c0cf(0x205)]}},{'id':_0x114644['id'],'params':[_0x544c5b]},..._0x32cf0c[_0x15c0cf(0x279)]];return _0x54f666(_0x4ae8dc,_0x41d205)[_0x15c0cf(0x1d5)]?(_0x186252[_0x15c0cf(0x1ee)]({'unitID':_0x544c5b,'undoMutations':_0x2082b5,'redoMutations':_0x4ae8dc}),!0x0):!0x1;}},ge={'type':_0x137eb2[_0x22a2ef(0x258)],'id':_0x22a2ef(0x1f6),'handler':(_0x36d718,_0xd60c06)=>{const _0x118b5f=_0x22a2ef;let _0x5863dc=_0x13fad5(_0x36d718[_0x118b5f(0x1dc)](_0x1a1e10),_0xd60c06);if(!_0x5863dc)return!0x1;let {unitId:_0x2bb50f,subUnitId:_0x2e7240}=_0x5863dc,{shapeId:_0xf867e2}=_0xd60c06,_0x949f2a=_0x36d718[_0x118b5f(0x1dc)](Q)[_0x118b5f(0x234)](_0x2bb50f,_0x2e7240,_0xf867e2);if(!_0x949f2a)return!0x1;let _0x1a715f=_0x949f2a[_0x118b5f(0x214)](),_0x18341e=(_0x1a715f==null?void 0x0:_0x1a715f[_0x118b5f(0x254)])??!0x0,_0x489835=!_0x18341e,_0x16b209=_0x36d718[_0x118b5f(0x1dc)](_0x176804),_0x4df9ed=_0x36d718['get'](_0x2e8924),_0x16d5ed={'unitId':_0x2bb50f,'subUnitId':_0x2e7240,'shapeId':_0xf867e2,'shapeData':{'shapeText':{'isHorizontal':_0x489835}}},_0x24d69f={'unitId':_0x2bb50f,'subUnitId':_0x2e7240,'shapeId':_0xf867e2,'shapeData':{'shapeText':{'isHorizontal':_0x18341e}}},_0x1d5dbe=[{'id':$['id'],'params':_0x16d5ed}],_0x31275b=[{'id':$['id'],'params':_0x24d69f}];return _0x54f666(_0x1d5dbe,_0x16b209)['result']?(_0x4df9ed[_0x118b5f(0x1ee)]({'unitID':_0x2bb50f,'undoMutations':_0x31275b,'redoMutations':_0x1d5dbe}),!0x0):!0x1;}},_e={'type':_0x137eb2['COMMAND'],'id':_0x22a2ef(0x280),'handler':(_0x261868,_0x130130)=>{const _0x3b3641=_0x22a2ef;var _0xcaa06b;let _0x16aaf4=_0x13fad5(_0x261868[_0x3b3641(0x1dc)](_0x1a1e10),_0x130130);if(!_0x16aaf4)return!0x1;let _0x595ae6=_0x261868[_0x3b3641(0x1dc)](_0x696088),{unitId:_0x5d685d,subUnitId:_0x2f0f36}=_0x16aaf4,_0x44d3dd=_0x595ae6[_0x3b3641(0x1d7)](_0x5d685d,_0x2f0f36);if(!_0x44d3dd)return!0x1;let _0x7f33cc=_0x261868['get'](_0x2db474),{connectorShapeId:_0x14fa15,width:_0x4848b0,height:_0x2f7804,left:_0x485968,top:_0x3eacff,flipX:_0x118bc3,flipY:_0x297940,rotation:_0x20f13a,oldAdjustValues:_0x12279a,newAdjustValues:_0x43a69c,oldLineType:_0x38a61a,newLineType:_0x37b347,oldRelation:_0x5283aa,newRelation:_0x2dcb3a}=_0x130130,_0x51d9a2=_0x7f33cc[_0x3b3641(0x29c)]({'unitId':_0x5d685d,'subUnitId':_0x2f0f36,'drawingId':_0x14fa15});if(!_0x51d9a2)return!0x1;let _0x1964a4=_0x261868['get'](Q)[_0x3b3641(0x234)](_0x5d685d,_0x2f0f36,_0x14fa15);if(!_0x1964a4)return!0x1;let _0x5111b7=_0x261868[_0x3b3641(0x1dc)](_0x176804),_0x5a4fc1=_0x261868[_0x3b3641(0x1dc)](_0x2e8924),_0x624db9=_0x261868[_0x3b3641(0x1dc)](_0x1be23b),_0x578f10={..._0x51d9a2[_0x3b3641(0x25b)],'width':_0x4848b0,'height':_0x2f7804,'left':_0x485968,'top':_0x3eacff,'flipX':_0x118bc3,'flipY':_0x297940,'angle':_0x20f13a??((_0xcaa06b=_0x51d9a2[_0x3b3641(0x25b)])==null?void 0x0:_0xcaa06b[_0x3b3641(0x250)])??0x0},_0x5a7021=_0x43a224(_0x578f10,_0x44d3dd),_0x164f47=_0x140823(_0x578f10,_0x44d3dd),_0x439aab=_0x1964a4[_0x3b3641(0x1e7)](),_0x4d22f2=_0x1964a4[_0x3b3641(0x229)](),_0x376e02={'unitId':_0x5d685d,'subUnitId':_0x2f0f36,'drawingId':_0x14fa15,'drawingType':_0x4fef19[_0x3b3641(0x1f7)],'sheetTransform':_0x5a7021,'transform':_0x578f10,'data':{'shapeType':_0x37b347||_0x38a61a||_0x439aab,'shapeData':{..._0x4d22f2,'adjustValues':_0x43a69c||_0x12279a||(_0x4d22f2==null?void 0x0:_0x4d22f2[_0x3b3641(0x290)]),'relation':_0x2dcb3a||_0x5283aa||(_0x4d22f2==null?void 0x0:_0x4d22f2[_0x3b3641(0x20c)])}},'axisAlignSheetTransform':_0x164f47,'allowTransform':!0x0},{undo:_0x1d93e0,redo:_0x29ab05,objects:_0x19809e}=_0x7f33cc[_0x3b3641(0x267)]([_0x376e02]),_0x1ca1dc=_0x624db9[_0x3b3641(0x1f1)]({'id':_0x4576d9['id'],'params':{'unitId':_0x5d685d,'drawings':[_0x376e02]}}),_0x2113b7=[..._0x1ca1dc['preRedos']??[],{'id':_0x1f0e5b['id'],'params':{'unitId':_0x5d685d,'subUnitId':_0x2f0f36,'op':_0x29ab05,'objects':_0x19809e,'type':_0x2e2ff5['UPDATE']}},{'id':_0x114644['id'],'params':[_0x5d685d]},..._0x1ca1dc[_0x3b3641(0x21a)],{'id':$['id'],'params':{'unitId':_0x5d685d,'subUnitId':_0x2f0f36,'shapeId':_0x14fa15,'shapeType':_0x37b347,'shapeData':{'adjustValues':_0x43a69c,'relation':_0x2dcb3a}}}],_0x576b14=[..._0x1ca1dc[_0x3b3641(0x1e5)]??[],{'id':_0x1f0e5b['id'],'params':{'unitId':_0x5d685d,'subUnitId':_0x2f0f36,'op':_0x1d93e0,'objects':_0x19809e,'type':_0x2e2ff5[_0x3b3641(0x205)]}},{'id':_0x114644['id'],'params':[_0x5d685d]},..._0x1ca1dc[_0x3b3641(0x279)],{'id':$['id'],'params':{'unitId':_0x5d685d,'subUnitId':_0x2f0f36,'shapeId':_0x14fa15,'shapeType':_0x439aab,'shapeData':{..._0x4d22f2,'adjustValues':_0x12279a||(_0x4d22f2==null?void 0x0:_0x4d22f2[_0x3b3641(0x290)]),'relation':_0x5283aa||(_0x4d22f2==null?void 0x0:_0x4d22f2[_0x3b3641(0x20c)])}}}];return _0x54f666(_0x2113b7,_0x5111b7)[_0x3b3641(0x1d5)]?(_0x5a4fc1['pushUndoRedo']({'unitID':_0x5d685d,'undoMutations':_0x576b14,'redoMutations':_0x2113b7}),!0x0):!0x1;}},ve={'type':_0x137eb2['COMMAND'],'id':_0x22a2ef(0x222),'handler':(_0x1d0b74,_0x4d5f60)=>{const _0x4fc5d8=_0x22a2ef;let _0x5b5e44=_0x13fad5(_0x1d0b74[_0x4fc5d8(0x1dc)](_0x1a1e10),_0x4d5f60);if(!_0x5b5e44)return!0x1;let _0x2885df=_0x1d0b74['get'](_0x696088),{unitId:_0x356c71,subUnitId:_0x22ef10}=_0x5b5e44,_0x339b56=_0x2885df[_0x4fc5d8(0x1d7)](_0x356c71,_0x22ef10);if(!_0x339b56)return!0x1;let _0x311b04=_0x1d0b74[_0x4fc5d8(0x1dc)](_0x2db474),{shapeId:_0x362a35,width:_0x3ec493,height:_0x327d98,left:_0x16e882,top:_0x26398d,flipX:_0x3b8f19,flipY:_0x4d9f01,angle:_0x587ac7,oldAdjustValues:_0x27c854,newAdjustValues:_0x4c5366,oldLineType:_0x42a74b,newLineType:_0x491da3}=_0x4d5f60,_0x16b55f=_0x311b04[_0x4fc5d8(0x29c)]({'unitId':_0x356c71,'subUnitId':_0x22ef10,'drawingId':_0x362a35});if(!_0x16b55f)return!0x1;let _0x1e90c3=_0x1d0b74[_0x4fc5d8(0x1dc)](Q)[_0x4fc5d8(0x234)](_0x356c71,_0x22ef10,_0x362a35);if(!_0x1e90c3)return!0x1;let _0x51971e=_0x1d0b74[_0x4fc5d8(0x1dc)](_0x176804),_0x93c136=_0x1d0b74[_0x4fc5d8(0x1dc)](_0x2e8924),_0x3c6132=_0x1d0b74['get'](_0x1be23b),_0x3bf9be={..._0x16b55f[_0x4fc5d8(0x25b)],'width':_0x3ec493,'height':_0x327d98,'left':_0x16e882,'top':_0x26398d,'flipX':_0x3b8f19,'flipY':_0x4d9f01,'angle':_0x587ac7},_0x393d47=_0x43a224(_0x3bf9be,_0x339b56),_0x1f810f=_0x140823(_0x3bf9be,_0x339b56),_0x31e49f=_0x1e90c3['getShapeType'](),_0x4f97b5=_0x1e90c3[_0x4fc5d8(0x229)](),_0x5cace7={'unitId':_0x356c71,'subUnitId':_0x22ef10,'drawingId':_0x362a35,'drawingType':_0x4fef19[_0x4fc5d8(0x1f7)],'sheetTransform':_0x393d47,'transform':_0x3bf9be,'data':{'shapeType':_0x491da3||_0x42a74b||_0x31e49f,'shapeData':{..._0x4f97b5,'adjustValues':_0x4c5366||_0x27c854||(_0x4f97b5==null?void 0x0:_0x4f97b5[_0x4fc5d8(0x290)])}},'axisAlignSheetTransform':_0x1f810f,'allowTransform':!0x0},{undo:_0x530c3d,redo:_0x2121be,objects:_0x155c65}=_0x311b04[_0x4fc5d8(0x267)]([_0x5cace7]),_0x24406f=_0x3c6132[_0x4fc5d8(0x1f1)]({'id':_0x4576d9['id'],'params':{'unitId':_0x356c71,'drawings':[_0x5cace7]}}),_0x39bfdb=[..._0x24406f[_0x4fc5d8(0x276)]??[],{'id':_0x1f0e5b['id'],'params':{'unitId':_0x356c71,'subUnitId':_0x22ef10,'op':_0x2121be,'objects':_0x155c65,'type':_0x2e2ff5[_0x4fc5d8(0x205)]}},{'id':_0x114644['id'],'params':[_0x356c71]},..._0x24406f['redos'],{'id':$['id'],'params':{'unitId':_0x356c71,'subUnitId':_0x22ef10,'shapeId':_0x362a35,'shapeType':_0x491da3,'shapeData':{'adjustValues':_0x4c5366}}}],_0x3f0e89=[..._0x24406f['preUndos']??[],{'id':_0x1f0e5b['id'],'params':{'unitId':_0x356c71,'subUnitId':_0x22ef10,'op':_0x530c3d,'objects':_0x155c65,'type':_0x2e2ff5[_0x4fc5d8(0x205)]}},{'id':_0x114644['id'],'params':[_0x356c71]},..._0x24406f[_0x4fc5d8(0x279)],{'id':$['id'],'params':{'unitId':_0x356c71,'subUnitId':_0x22ef10,'shapeId':_0x362a35,'shapeType':_0x31e49f,'shapeData':{..._0x4f97b5,'adjustValues':_0x27c854||(_0x4f97b5==null?void 0x0:_0x4f97b5[_0x4fc5d8(0x290)])}}}];return _0x54f666(_0x39bfdb,_0x51971e)[_0x4fc5d8(0x1d5)]?(_0x93c136[_0x4fc5d8(0x1ee)]({'unitID':_0x356c71,'undoMutations':_0x3f0e89,'redoMutations':_0x39bfdb}),!0x0):!0x1;}},ye={'id':_0x22a2ef(0x283),'type':_0x137eb2[_0x22a2ef(0x23a)],'handler':(_0x5b47d4,_0x506ad6)=>{const _0x238cbd=_0x22a2ef;let {unitId:_0xa5bdc0,subUnitId:_0x4f2624,shapeType:_0x352406,shapeId:_0x378006,shapeData:_0x4eebc7}=_0x506ad6,_0x5e215c=_0x5b47d4[_0x238cbd(0x1dc)](Q)['getShapeModel'](_0xa5bdc0,_0x4f2624,_0x378006);return _0x5e215c&&(_0x5e215c[_0x238cbd(0x211)](_0x352406),_0x4eebc7&&(_0x5e215c==null||_0x5e215c['setShapeData'](_0x4eebc7))),!0x0;}};var be=_0x22a2ef(0x27b),xe=_0x22a2ef(0x27d);function Se(_0x58f655){const _0x34b81a=_0x22a2ef;var _0x5d0bcf,_0x35157d,_0x5d901b,_0x2fbeed,_0x2a779b,_0x1fe19c,_0x35bad1;return{'left':((_0x5d0bcf=_0x58f655[_0x34b81a(0x25b)])==null?void 0x0:_0x5d0bcf['left'])??0x0,'top':((_0x35157d=_0x58f655['transform'])==null?void 0x0:_0x35157d[_0x34b81a(0x24f)])??0x0,'width':((_0x5d901b=_0x58f655[_0x34b81a(0x25b)])==null?void 0x0:_0x5d901b[_0x34b81a(0x210)])??0xc8,'height':((_0x2fbeed=_0x58f655[_0x34b81a(0x25b)])==null?void 0x0:_0x2fbeed[_0x34b81a(0x27c)])??0xc8,'rotation':((_0x2a779b=_0x58f655[_0x34b81a(0x25b)])==null?void 0x0:_0x2a779b[_0x34b81a(0x220)])??0x0,'flipX':((_0x1fe19c=_0x58f655[_0x34b81a(0x25b)])==null?void 0x0:_0x1fe19c[_0x34b81a(0x248)])??!0x1,'flipY':((_0x35bad1=_0x58f655[_0x34b81a(0x25b)])==null?void 0x0:_0x35bad1[_0x34b81a(0x252)])??!0x1};}let Ce=class{constructor(_0x5a60ff,_0x16e6bf,_0xe94802,_0x1178ca){const _0x28edeb=_0x22a2ef;this['_commandService']=_0x5a60ff,this['_shapeService']=_0x16e6bf,this[_0x28edeb(0x1f0)]=_0xe94802,this[_0x28edeb(0x224)]=_0x1178ca,X(this,_0x28edeb(0x238),_0x301e36[_0x28edeb(0x288)]);}get['shapeChanged$'](){return{'subscribe':_0x376a41=>{const _0x4b83d8=_0x291d;let _0x90fc23=this[_0x4b83d8(0x22c)][_0x4b83d8(0x255)](_0x11cc82=>{const _0x279fda=_0x4b83d8;(_0x11cc82['id']===ue['id']||_0x11cc82['id']===de['id']||_0x11cc82['id']===$['id']||_0x11cc82['id']===ye['id'])&&_0x376a41({'unitId':_0x11cc82[_0x279fda(0x20a)][_0x279fda(0x1cc)]});});return{'unsubscribe':()=>_0x90fc23[_0x4b83d8(0x218)]()};}};}['getShape'](_0x59df14){const _0x2d0da7=_0x22a2ef;var _0x483971;let _0x586e96=(_0x483971=this[_0x2d0da7(0x1f0)]['getDrawingData'](_0x59df14[_0x2d0da7(0x1cc)],_0x59df14['subUnitId']))==null?void 0x0:_0x483971[_0x59df14['shapeId']],_0x3a059b=this[_0x2d0da7(0x256)][_0x2d0da7(0x1e7)](_0x59df14[_0x2d0da7(0x1cc)],_0x59df14[_0x2d0da7(0x278)],_0x59df14['shapeId']);if(!_0x586e96||_0x586e96['drawingType']!==_0x4fef19[_0x2d0da7(0x1f7)]||!_0x3a059b)return null;let _0x107a67=_0x586e96[_0x2d0da7(0x25b)];return{..._0x59df14,'shapeType':_0x3a059b,'shapeData':_0x13cd39[_0x2d0da7(0x293)](this[_0x2d0da7(0x256)]['getShapeDataById'](_0x59df14['unitId'],_0x59df14[_0x2d0da7(0x278)],_0x59df14[_0x2d0da7(0x233)])??{}),'name':_0x586e96['name'],'description':_0x586e96['description'],'visible':_0x586e96[_0x2d0da7(0x269)]!==!0x0,'selectable':_0x586e96[_0x2d0da7(0x23d)]!==!0x1,'transform':{'left':(_0x107a67==null?void 0x0:_0x107a67[_0x2d0da7(0x295)])??0x0,'top':(_0x107a67==null?void 0x0:_0x107a67[_0x2d0da7(0x24f)])??0x0,'width':(_0x107a67==null?void 0x0:_0x107a67[_0x2d0da7(0x210)])??0xc8,'height':(_0x107a67==null?void 0x0:_0x107a67['height'])??0xc8,'rotation':(_0x107a67==null?void 0x0:_0x107a67[_0x2d0da7(0x250)])??0x0,'flipX':(_0x107a67==null?void 0x0:_0x107a67['flipX'])??!0x1,'flipY':(_0x107a67==null?void 0x0:_0x107a67[_0x2d0da7(0x252)])??!0x1}};}[_0x22a2ef(0x225)](_0xab6803){const _0x9f1379=_0x22a2ef;let _0xe26b32=this[_0x9f1379(0x1f0)]['getDrawingData'](_0xab6803[_0x9f1379(0x1cc)],_0xab6803[_0x9f1379(0x278)])??{};return Object['values'](_0xe26b32)['filter'](_0x20bd70=>(_0x20bd70==null?void 0x0:_0x20bd70['drawingType'])===_0x4fef19[_0x9f1379(0x1f7)])['map'](_0x468f9f=>this[_0x9f1379(0x20d)]({..._0xab6803,'shapeId':_0x468f9f[_0x9f1379(0x287)]}))[_0x9f1379(0x298)](_0xd16bb3=>!!_0xd16bb3);}[_0x22a2ef(0x277)](_0x351e95){const _0x1987a6=_0x22a2ef;let _0x3e7baf=this['_instanceService'][_0x1987a6(0x1ed)](_0x351e95,_0x301e36[_0x1987a6(0x288)]);return(_0x3e7baf==null?void 0x0:_0x3e7baf[_0x1987a6(0x1e1)]()['flatMap'](_0x48ae64=>this['listShapes']({'hostType':this[_0x1987a6(0x238)],'unitId':_0x351e95,'subUnitId':_0x48ae64['getSheetId']()})))??[];}[_0x22a2ef(0x297)](_0x587a2c,_0x19cba6){const _0x13fbab=_0x22a2ef;let _0x1cc0f6=_0x1113d4(),_0x11ee84=Se(_0x19cba6),_0x157410=_0x13cd39[_0x13fbab(0x293)](_0x19cba6[_0x13fbab(0x294)]??_0x3e0f63(_0x19cba6['shapeType']));return this[_0x13fbab(0x22c)][_0x13fbab(0x1d1)](fe['id'],{'unitId':_0x587a2c[_0x13fbab(0x1cc)],'subUnitId':_0x587a2c[_0x13fbab(0x278)],'shapeId':_0x1cc0f6,'shapeType':_0x19cba6[_0x13fbab(0x264)],'shapeData':_0x157410,'name':_0x19cba6[_0x13fbab(0x215)],'description':_0x19cba6[_0x13fbab(0x22b)],'position':{'x':_0x11ee84[_0x13fbab(0x295)],'y':_0x11ee84[_0x13fbab(0x24f)]},'width':_0x11ee84['width'],'height':_0x11ee84[_0x13fbab(0x27c)],'rotation':_0x11ee84[_0x13fbab(0x220)],'flipX':_0x11ee84['flipX'],'flipY':_0x11ee84[_0x13fbab(0x252)],'visible':_0x19cba6['visible']??!0x0,'selectable':_0x19cba6[_0x13fbab(0x23d)]??!0x0})?{..._0x587a2c,'shapeId':_0x1cc0f6,'shapeType':_0x19cba6[_0x13fbab(0x264)],'shapeData':_0x157410,'name':_0x19cba6[_0x13fbab(0x215)],'description':_0x19cba6[_0x13fbab(0x22b)],'visible':_0x19cba6[_0x13fbab(0x219)]??!0x0,'selectable':_0x19cba6['selectable']??!0x0,'transform':_0x11ee84}:null;}[_0x22a2ef(0x1ca)](_0x582c82,_0x50c47f){const _0xc1155b=_0x22a2ef;var _0x5f4b50;let _0x5947f0=this[_0xc1155b(0x20d)](_0x582c82);if(!_0x5947f0)return!0x1;let _0x5eb871={..._0x5947f0[_0xc1155b(0x25b)],..._0x50c47f[_0xc1155b(0x25b)]};return this[_0xc1155b(0x22c)][_0xc1155b(0x1d1)](pe['id'],{'unitId':_0x582c82[_0xc1155b(0x1cc)],'subUnitId':_0x582c82[_0xc1155b(0x278)],'shapeId':_0x582c82[_0xc1155b(0x233)],'shapeType':_0x50c47f['shapeType']??((_0x5f4b50=_0x50c47f[_0xc1155b(0x294)])==null?void 0x0:_0x5f4b50[_0xc1155b(0x264)])??_0x5947f0[_0xc1155b(0x264)],'shapeData':_0x50c47f[_0xc1155b(0x294)]??_0x5947f0[_0xc1155b(0x294)],'position':{'x':_0x5eb871[_0xc1155b(0x295)],'y':_0x5eb871[_0xc1155b(0x24f)]},'width':_0x5eb871['width'],'height':_0x5eb871[_0xc1155b(0x27c)],'rotation':_0x5eb871[_0xc1155b(0x220)],'flipX':_0x5eb871['flipX'],'flipY':_0x5eb871['flipY'],'name':'name'in _0x50c47f?_0x50c47f[_0xc1155b(0x215)]:_0x5947f0[_0xc1155b(0x215)],'description':_0xc1155b(0x22b)in _0x50c47f?_0x50c47f['description']:_0x5947f0[_0xc1155b(0x22b)],'visible':_0x50c47f['visible']??_0x5947f0['visible'],'selectable':_0x50c47f[_0xc1155b(0x23d)]??_0x5947f0[_0xc1155b(0x23d)]});}['createFormulaLastValueMutation'](_0x21fa5e,_0x1a5456,_0x450acc){const _0x17c9e0=_0x22a2ef;let _0x5dd28b=this[_0x17c9e0(0x20d)](_0x21fa5e),_0xf9d858=_0x5dd28b==null?void 0x0:_0x5dd28b[_0x17c9e0(0x294)][_0x17c9e0(0x221)];return!_0x5dd28b||!_0xf9d858?null:{'id':$['id'],'params':{'unitId':_0x21fa5e[_0x17c9e0(0x1cc)],'subUnitId':_0x21fa5e[_0x17c9e0(0x278)],'shapeId':_0x21fa5e[_0x17c9e0(0x233)],'shapeData':{..._0x5dd28b[_0x17c9e0(0x294)],'formulaBinding':{..._0xf9d858,'lastValue':_0x13cd39[_0x17c9e0(0x293)](_0x450acc)}},'replace':!0x0,'formulaLastValueGuard':_0x1a5456}};}[_0x22a2ef(0x21c)](_0x396482){const _0x4d64b2=_0x22a2ef;return this['_commandService'][_0x4d64b2(0x1d1)](_0x2d34c8['id'],{'unitId':_0x396482[_0x4d64b2(0x1cc)],'drawings':[{'unitId':_0x396482[_0x4d64b2(0x1cc)],'subUnitId':_0x396482[_0x4d64b2(0x278)],'drawingId':_0x396482['shapeId'],'drawingType':_0x4fef19[_0x4d64b2(0x1f7)]}]});}[_0x22a2ef(0x1cb)](_0x251bea){const _0x50e897=_0x22a2ef;return this[_0x50e897(0x261)](_0x251bea,_0x17642c['front']);}['bringForward'](_0x30646d){const _0x19011c=_0x22a2ef;return this['_arrange'](_0x30646d,_0x17642c[_0x19011c(0x242)]);}[_0x22a2ef(0x1f5)](_0x4656dc){const _0x10f535=_0x22a2ef;return this[_0x10f535(0x261)](_0x4656dc,_0x17642c[_0x10f535(0x244)]);}[_0x22a2ef(0x246)](_0x3f98c4){const _0x183c14=_0x22a2ef;return this[_0x183c14(0x261)](_0x3f98c4,_0x17642c[_0x183c14(0x20f)]);}[_0x22a2ef(0x1d6)](_0x3e8670,_0x5829f8){const _0x3827ad=_0x22a2ef;return this[_0x3827ad(0x22c)][_0x3827ad(0x1d1)](_0x83cc07['id'],{'unitId':_0x3e8670[_0x3827ad(0x1cc)],'subUnitId':_0x3e8670[_0x3827ad(0x278)],'drawingIds':[_0x3e8670['shapeId']],'zOrder':_0x5829f8});}['_arrange'](_0x2aad71,_0x2b0c11){const _0x201e21=_0x22a2ef;return this['_commandService'][_0x201e21(0x1d1)](_0x83cc07['id'],{'unitId':_0x2aad71[_0x201e21(0x1cc)],'subUnitId':_0x2aad71[_0x201e21(0x278)],'drawingIds':[_0x2aad71['shapeId']],'arrangeType':_0x2b0c11});}};Ce=le([Z(0x0,_0x176804),Z(0x1,_0x93ad71(Q)),Z(0x2,_0x2db474),Z(0x3,_0x1a1e10)],Ce);const we={};let Te=class extends _0x67ef41{constructor(_0x7652f7,_0x32547f,_0x2ffdfb,_0x55f396,_0x1fe15f,_0x2b49d3,_0x1cf2e7){const _0x22e859=_0x22a2ef;super(),this[_0x22e859(0x22c)]=_0x7652f7,this[_0x22e859(0x28a)]=_0x32547f,this[_0x22e859(0x21e)]=_0x2ffdfb,this['_sheetsShapeService']=_0x55f396,this[_0x22e859(0x226)]=_0x1fe15f,this['_shapeHostAdapterRegistry']=_0x2b49d3,this[_0x22e859(0x1f4)](),this[_0x22e859(0x204)](),this[_0x22e859(0x228)](this[_0x22e859(0x217)][_0x22e859(0x274)](_0x1cf2e7));}['_initCommands'](){const _0x290eae=_0x22a2ef;[fe,pe,me,he,ge,_e,ve,ue,de,ye,$][_0x290eae(0x265)](_0x438c5a=>this[_0x290eae(0x228)](this[_0x290eae(0x22c)][_0x290eae(0x29a)](_0x438c5a)));}['_initCommandInterceptor'](){const _0x3aff51=_0x22a2ef;this[_0x3aff51(0x228)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x59b924=>{const _0x553add=_0x3aff51;if(_0x59b924['id']===_0x2d34c8['id']){let {drawings:_0x5750ff}=_0x59b924[_0x553add(0x20a)],_0x255b69=_0x5750ff['filter'](_0x28fc51=>_0x28fc51[_0x553add(0x296)]===_0x4fef19[_0x553add(0x1f7)]);if(_0x255b69['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3af34b=[],_0x585356=[];return _0x255b69[_0x553add(0x265)](_0x52e128=>{const _0x152e12=_0x553add;let {unitId:_0x4c40e7,subUnitId:_0x712543,drawingId:_0x6f17a1}=_0x52e128,_0x48f6da=this[_0x152e12(0x200)][_0x152e12(0x234)](_0x4c40e7,_0x712543,_0x6f17a1);if(!_0x48f6da)throw TypeError(_0x152e12(0x25a)+_0x48f6da);_0x3af34b[_0x152e12(0x21b)]({'id':de['id'],'params':{'unitId':_0x4c40e7,'subUnitId':_0x712543,'shapeId':_0x6f17a1}}),_0x585356[_0x152e12(0x21b)]({'id':ue['id'],'params':{'unitId':_0x4c40e7,'subUnitId':_0x712543,'shapeId':_0x6f17a1,'shapeType':_0x48f6da[_0x152e12(0x1e7)](),'shapeData':_0x48f6da[_0x152e12(0x229)]()}});let _0x3e185c=this[_0x152e12(0x200)][_0x152e12(0x29b)](_0x4c40e7,_0x712543,_0x6f17a1);if(_0x3e185c)for(let _0x1c7b98 of _0x3e185c){let _0x4834c1=_0x1c7b98['lineShapeId'],_0x1c4d48=_0x1c7b98[_0x152e12(0x1ff)],_0x14770b=_0x1c4d48?{'from':void 0x0}:{'to':void 0x0},_0x551482=_0x1c4d48?{'from':{'shapeId':_0x1c7b98['shapeId'],'cxnIndex':_0x1c7b98[_0x152e12(0x1d9)]}}:{'to':{'shapeId':_0x1c7b98['shapeId'],'cxnIndex':_0x1c7b98[_0x152e12(0x1d9)]}};_0x3af34b[_0x152e12(0x21b)]({'id':$['id'],'params':{'unitId':_0x4c40e7,'subUnitId':_0x712543,'shapeId':_0x4834c1,'shapeData':{'relation':_0x14770b}}}),_0x585356[_0x152e12(0x21b)]({'id':$['id'],'params':{'unitId':_0x4c40e7,'subUnitId':_0x712543,'shapeId':_0x4834c1,'shapeData':{'relation':_0x551482}}});}}),{'preRedos':_0x3af34b,'redos':[],'preUndos':[],'undos':_0x585356};}if(_0x59b924['id']===_0x4576d9['id']){let {drawings:_0x178829}=_0x59b924[_0x553add(0x20a)],_0x259026=_0x178829[_0x553add(0x298)](_0x464437=>_0x464437[_0x553add(0x296)]===_0x4fef19['DRAWING_SHAPE']);if(_0x259026['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x155ff3=[],_0x45b8b5=[];for(let _0x2a50b8 of _0x259026){let {unitId:_0x18c23c,subUnitId:_0x260286,drawingId:_0x5adfb0,transform:_0x5238df}=_0x2a50b8;if(!_0x18c23c||!_0x260286||!_0x5adfb0||!_0x5238df)continue;let _0x5a62c9=this['_sheetsShapeService']['getShapeModel'](_0x18c23c,_0x260286,_0x5adfb0);if(!_0x5a62c9)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x5a62c9);if(_0x5a261c(_0x5a62c9[_0x553add(0x1e7)]())){let _0x44277e=this['_sheetsShapeService']['getLineShapeRelation'](_0x18c23c,_0x260286,_0x5adfb0);_0x44277e&&(_0x155ff3['push']({'id':$['id'],'params':{'unitId':_0x18c23c,'subUnitId':_0x260286,'shapeId':_0x5adfb0,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x45b8b5['push']({'id':$['id'],'params':{'unitId':_0x18c23c,'subUnitId':_0x260286,'shapeId':_0x5adfb0,'shapeData':{'relation':_0x44277e}}}));}else{let _0x8d9ded=this[_0x553add(0x200)][_0x553add(0x29b)](_0x18c23c,_0x260286,_0x5adfb0);if(_0x8d9ded&&_0x8d9ded[_0x553add(0x1e9)]>0x0)for(let _0x122442 of _0x8d9ded){let _0x4f8bc0=_0x122442[_0x553add(0x240)],_0x41ca85=_0x122442['isFrom'],_0x51908a=this[_0x553add(0x200)][_0x553add(0x234)](_0x18c23c,_0x260286,_0x4f8bc0);if(!_0x51908a)continue;let _0xe6ac8c=_0x51908a[_0x553add(0x26c)](),_0x519a81=_0x51908a[_0x553add(0x23e)]();_0xe6ac8c&&_0x519a81?this[_0x553add(0x1f2)](_0x18c23c,_0x260286,_0x4f8bc0,_0x51908a,_0xe6ac8c,_0x519a81,_0x155ff3,_0x45b8b5,_0x5adfb0,_0x5238df):this['_addLineFollowShapeUpdates'](_0x18c23c,_0x260286,_0x4f8bc0,_0x51908a,_0x41ca85?_0xe6ac8c:_0x519a81,_0x41ca85,_0x155ff3,_0x45b8b5,_0x5adfb0,_0x5238df);}}}return{'preRedos':[],'redos':_0x155ff3,'preUndos':_0x45b8b5,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x256633,_0x5cb325,_0x56e54d,_0x29963a,_0x3bf44e){const _0x190bc1=_0x22a2ef;if(!_0x5cb325||!_0x56e54d)return null;let {shapeId:_0x54325d,cxnIndex:_0x405222}=_0x256633,_0x19f0e9=this[_0x190bc1(0x200)][_0x190bc1(0x234)](_0x5cb325,_0x56e54d,_0x54325d);if(!_0x19f0e9)return null;let _0x176eb7=this['_drawingManagerService'][_0x190bc1(0x29c)]({'unitId':_0x5cb325,'subUnitId':_0x56e54d,'drawingId':_0x54325d});if(!(_0x176eb7!=null&&_0x176eb7[_0x190bc1(0x25b)]))return null;let {left:_0x12cd2c=0x0,top:_0x5f1c43=0x0,width:_0x54bb46=0x0,height:_0x160672=0x0,flipX:_0x5260c7=!0x1,flipY:_0x7f9d67=!0x1,angle:_0x5392fd}=_0x176eb7[_0x190bc1(0x25b)];_0x3bf44e&&_0x29963a===_0x54325d&&(_0x12cd2c=_0x3bf44e[_0x190bc1(0x295)]??_0x12cd2c,_0x5f1c43=_0x3bf44e[_0x190bc1(0x24f)]??_0x5f1c43,_0x54bb46=_0x3bf44e['width']??_0x54bb46,_0x160672=_0x3bf44e[_0x190bc1(0x27c)]??_0x160672,_0x5260c7=_0x3bf44e[_0x190bc1(0x248)]??_0x5260c7,_0x7f9d67=_0x3bf44e['flipY']??_0x7f9d67,_0x5392fd=_0x3bf44e[_0x190bc1(0x250)]??_0x5392fd),_0x19f0e9[_0x190bc1(0x1fa)]({'width':_0x54bb46,'height':_0x160672});let _0x19b1e7=_0x19f0e9[_0x190bc1(0x27e)]()[_0x190bc1(0x24e)](_0x19c573=>_0x19c573['index']===_0x405222);if(!_0x19b1e7)return null;let _0x9c741c=_0x5260c7?_0x54bb46-_0x19b1e7['x']:_0x19b1e7['x'],_0x57c331=_0x7f9d67?_0x160672-_0x19b1e7['y']:_0x19b1e7['y'];if(_0x5392fd!==0x0&&_0x5392fd!=null){let _0x5462df=_0x5392fd*Math['PI']/0xb4,_0xe4ee7b=Math[_0x190bc1(0x247)](_0x5462df),_0x54e3cd=Math[_0x190bc1(0x208)](_0x5462df),_0xda0636=_0x54bb46/0x2,_0x3016c3=_0x160672/0x2,_0x59f06f=_0x9c741c-_0xda0636,_0x5d5605=_0x57c331-_0x3016c3;_0x9c741c=_0xda0636+_0x59f06f*_0xe4ee7b-_0x5d5605*_0x54e3cd,_0x57c331=_0x3016c3+_0x59f06f*_0x54e3cd+_0x5d5605*_0xe4ee7b;}_0x9c741c+=_0x12cd2c,_0x57c331+=_0x5f1c43;let _0x43dd1a=_0x19b1e7[_0x190bc1(0x27a)]/0xea60;_0x5260c7&&(_0x43dd1a=0xb4-_0x43dd1a),_0x7f9d67&&(_0x43dd1a=-_0x43dd1a),_0x43dd1a+=_0x5392fd||0x0,_0x43dd1a=(_0x43dd1a%0x168+0x168)%0x168;let _0x3674e7=_0x4b3101({'left':_0x12cd2c,'top':_0x5f1c43,'width':_0x54bb46,'height':_0x160672},_0x5392fd||0x0);return{'point':{'x':_0x9c741c,'y':_0x57c331},'angle':_0x43dd1a,'bounds':_0x3674e7};}[_0x22a2ef(0x1f2)](_0x362e8d,_0x3ded3a,_0x5c3af5,_0x417f97,_0x451187,_0x56458c,_0x577c7c,_0x279df2,_0x4d74b2,_0x537467){const _0x246e1e=_0x22a2ef;let _0x3ed767=this['_sheetSkeletonService']['getSkeleton'](_0x362e8d,_0x3ded3a);if(!_0x3ed767)return;let _0x25b0fe=_0x417f97[_0x246e1e(0x223)](),_0x52e495=_0x417f97[_0x246e1e(0x1d2)](),_0x331c72={},_0xa7ab66={};_0x52e495[_0x246e1e(0x265)](_0x57b002=>{const _0x19555b=_0x246e1e;let _0x5d94fa=_0x417f97[_0x19555b(0x299)](_0x57b002);_0xa7ab66[_0x57b002]=_0x5d94fa??0x0;});let _0x158822=this[_0x246e1e(0x1d3)](_0x451187,_0x362e8d,_0x3ded3a,_0x4d74b2,_0x537467),_0x86fe17=this['_getConnectPointInfo'](_0x56458c,_0x362e8d,_0x3ded3a,_0x4d74b2,_0x537467);if(_0x158822&&_0x86fe17){let _0x32fbc4=_0x417f97['getShapeType'](),_0x30da9f=_0x55d201(_0x158822,_0x86fe17,_0x32fbc4),_0x152c88=_0x32fbc4;if(_0x30da9f){let _0x22320f=_0x5a9122(_0x30da9f,_0x417f97[_0x246e1e(0x1e7)]()),_0x1f878c=this[_0x246e1e(0x226)][_0x246e1e(0x1e6)](_0x362e8d,_0x3ded3a);if(_0x1f878c&&_0x1f878c[_0x5c3af5]){let _0x163d74=_0x1f878c[_0x5c3af5];_0x152c88=_0x22320f['lineType'];for(let [_0x136660,_0x1caaf5]of Object[_0x246e1e(0x26b)](_0x22320f[_0x246e1e(0x290)]))_0x331c72[_0x136660]=_0x1caaf5;let _0x1767e0={..._0x163d74[_0x246e1e(0x25b)],'width':_0x22320f[_0x246e1e(0x24d)][_0x246e1e(0x210)],'height':_0x22320f[_0x246e1e(0x24d)][_0x246e1e(0x27c)],'left':_0x22320f[_0x246e1e(0x24d)][_0x246e1e(0x295)],'top':_0x22320f[_0x246e1e(0x24d)][_0x246e1e(0x24f)],'flipX':_0x22320f[_0x246e1e(0x24d)][_0x246e1e(0x248)],'flipY':_0x22320f['worldRect']['flipY'],'angle':_0x22320f[_0x246e1e(0x220)]},_0x38d364=_0x43a224(_0x1767e0,_0x3ed767),_0x10c2bd=_0x140823(_0x1767e0,_0x3ed767),_0x4f6a15={'unitId':_0x362e8d,'subUnitId':_0x3ded3a,'drawingType':_0x4fef19[_0x246e1e(0x1f7)],'drawingId':_0x5c3af5,'transform':_0x1767e0,'sheetTransform':_0x38d364,'axisAlignSheetTransform':_0x10c2bd},{unitId:_0x27609d,subUnitId:_0x2f9257,undo:_0xb33a88,redo:_0x116416,objects:_0x594ca2}=this['_drawingManagerService'][_0x246e1e(0x267)]([_0x4f6a15]);_0x577c7c[_0x246e1e(0x21b)]({'id':_0x1f0e5b['id'],'params':{'unitId':_0x27609d,'subUnitId':_0x2f9257,'op':_0x116416,'objects':_0x594ca2,'type':_0x2e2ff5[_0x246e1e(0x205)]}}),_0x279df2[_0x246e1e(0x21b)]({'id':_0x1f0e5b['id'],'params':{'unitId':_0x27609d,'subUnitId':_0x2f9257,'op':_0xb33a88,'objects':_0x594ca2,'type':_0x2e2ff5['UPDATE']}});}_0x417f97[_0x246e1e(0x282)]();}_0x577c7c['push']({'id':$['id'],'params':{'unitId':_0x362e8d,'subUnitId':_0x3ded3a,'shapeId':_0x5c3af5,'shapeType':_0x152c88,'shapeData':{'adjustValues':_0x331c72,'relation':_0x25b0fe}}}),_0x279df2[_0x246e1e(0x21b)]({'id':$['id'],'params':{'unitId':_0x362e8d,'subUnitId':_0x3ded3a,'shapeId':_0x5c3af5,'shapeType':_0x32fbc4,'shapeData':{'adjustValues':_0xa7ab66,'relation':_0x25b0fe}}});}}[_0x22a2ef(0x23b)](_0x4396b1,_0x4694b8,_0x7aa672,_0x2fae65,_0x4ddbb1,_0xc1fdb7,_0x54aa15,_0x1896b5,_0x3cb0fc,_0xe28efc){const _0x59307d=_0x22a2ef;var _0x227750;if(!_0x4ddbb1)return;let _0x5a7822=this[_0x59307d(0x21e)][_0x59307d(0x1d7)](_0x4396b1,_0x4694b8);if(!_0x5a7822)return;let _0x240f98=(_0x227750=this[_0x59307d(0x226)][_0x59307d(0x29c)]({'unitId':_0x4396b1,'subUnitId':_0x4694b8,'drawingId':_0x3cb0fc}))==null?void 0x0:_0x227750['transform'];if(!_0x240f98)return;let _0xec849a=_0x240f98['left']!==_0xe28efc[_0x59307d(0x295)]||_0x240f98[_0x59307d(0x24f)]!==_0xe28efc[_0x59307d(0x24f)],_0x2908a8=_0x240f98[_0x59307d(0x210)]!==_0xe28efc[_0x59307d(0x210)]||_0x240f98[_0x59307d(0x27c)]!==_0xe28efc[_0x59307d(0x27c)],_0xa68e64=_0x240f98[_0x59307d(0x248)]!==_0xe28efc[_0x59307d(0x248)]||_0x240f98[_0x59307d(0x252)]!==_0xe28efc['flipY'],_0x51ffd4=_0x240f98[_0x59307d(0x250)]!==_0xe28efc[_0x59307d(0x250)];if(_0xec849a&&!_0x2908a8&&!_0xa68e64&&!_0x51ffd4){let _0x453d50=(_0xe28efc[_0x59307d(0x295)]??0x0)-(_0x240f98[_0x59307d(0x295)]??0x0),_0x5bc9b1=(_0xe28efc['top']??0x0)-(_0x240f98[_0x59307d(0x24f)]??0x0),_0x25436b=this[_0x59307d(0x226)][_0x59307d(0x1e6)](_0x4396b1,_0x4694b8);if(_0x25436b&&_0x25436b[_0x7aa672]){var _0x5f392f,_0x996b22;let _0x4a65ca=_0x25436b[_0x7aa672],_0x334f00={..._0x4a65ca[_0x59307d(0x25b)],'left':(((_0x5f392f=_0x4a65ca['transform'])==null?void 0x0:_0x5f392f['left'])??0x0)+_0x453d50,'top':(((_0x996b22=_0x4a65ca[_0x59307d(0x25b)])==null?void 0x0:_0x996b22[_0x59307d(0x24f)])??0x0)+_0x5bc9b1},_0x323ab6=_0x43a224(_0x334f00,_0x5a7822),_0x1cdefc=_0x140823(_0x334f00,_0x5a7822),_0x26db3b={'unitId':_0x4396b1,'subUnitId':_0x4694b8,'drawingType':_0x4fef19[_0x59307d(0x1f7)],'drawingId':_0x7aa672,'transform':_0x334f00,'sheetTransform':_0x323ab6,'axisAlignSheetTransform':_0x1cdefc},{unitId:_0x3589e5,subUnitId:_0x402eb7,undo:_0x4e221b,redo:_0x2e9ab1,objects:_0x123f76}=this[_0x59307d(0x226)][_0x59307d(0x267)]([_0x26db3b]);_0x54aa15[_0x59307d(0x21b)]({'id':_0x1f0e5b['id'],'params':{'unitId':_0x3589e5,'subUnitId':_0x402eb7,'op':_0x2e9ab1,'objects':_0x123f76,'type':_0x2e2ff5[_0x59307d(0x205)]}}),_0x1896b5['push']({'id':_0x1f0e5b['id'],'params':{'unitId':_0x3589e5,'subUnitId':_0x402eb7,'op':_0x4e221b,'objects':_0x123f76,'type':_0x2e2ff5[_0x59307d(0x205)]}});}}else{let _0x1366f7=_0x2fae65['getStartConnectInfo'](),_0x1596f7=_0x2fae65[_0x59307d(0x23e)]();this['_addLineRerouteUpdates'](_0x4396b1,_0x4694b8,_0x7aa672,_0x2fae65,_0x1366f7,_0x1596f7,_0x54aa15,_0x1896b5,_0x3cb0fc,_0xe28efc);}}};Te=le([Z(0x0,_0x176804),Z(0x1,_0x93ad71(_0x1be23b)),Z(0x2,_0x93ad71(_0x696088)),Z(0x3,_0x93ad71(Q)),Z(0x4,_0x93ad71(_0x866a4f)),Z(0x5,_0x93ad71(_0x5b4eaa)),Z(0x6,_0x93ad71(Ce))],Te);let Ee=class extends _0x67ef41{constructor(_0xfe2af8,_0x11a552,_0x23028e){const _0x3f618c=_0x22a2ef;super(),this[_0x3f618c(0x256)]=_0xfe2af8,this[_0x3f618c(0x26e)]=_0x11a552,this[_0x3f618c(0x228)](_0x23028e[_0x3f618c(0x274)](this));}[_0x22a2ef(0x25b)](_0x2c746d){const _0x3575fe=_0x22a2ef;let _0xda8b22={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this['_planDeletes'](_0x2c746d,_0xda8b22);for(let [_0x4cf7fe,_0x5c3066]of _0x2c746d['originals'])this[_0x3575fe(0x1e2)](_0x2c746d,_0x4cf7fe,_0x5c3066,_0xda8b22);return _0xda8b22;}[_0x22a2ef(0x289)](_0x37bdef,_0xa560dd){const _0x4c5c95=_0x22a2ef;if(_0x37bdef[_0x4c5c95(0x24b)]===_0x4c5c95(0x272))for(let _0x5ac110 of _0x37bdef[_0x4c5c95(0x212)]){let _0x4e7583=_0x37bdef[_0x4c5c95(0x230)][_0x4c5c95(0x1dc)](_0x5ac110),_0x2200a7=this[_0x4c5c95(0x256)]['getShapeModel'](_0x37bdef['unitId'],_0x37bdef['subUnitId'],_0x5ac110);(_0x4e7583==null?void 0x0:_0x4e7583[_0x4c5c95(0x296)])!==_0x4fef19[_0x4c5c95(0x1f7)]||!_0x2200a7||(_0xa560dd['preRedos'][_0x4c5c95(0x21b)]({'id':de['id'],'params':{'unitId':_0x37bdef['unitId'],'subUnitId':_0x37bdef[_0x4c5c95(0x278)],'shapeId':_0x5ac110}}),_0xa560dd['undos'][_0x4c5c95(0x21b)]({'id':ue['id'],'params':{'unitId':_0x37bdef['unitId'],'subUnitId':_0x37bdef[_0x4c5c95(0x278)],'shapeId':_0x5ac110,'shapeName':_0x2200a7[_0x4c5c95(0x28d)](),'shapeType':_0x2200a7[_0x4c5c95(0x1e7)](),'shapeData':_0x13cd39[_0x4c5c95(0x293)](_0x2200a7[_0x4c5c95(0x229)]())}}));}}['_planConnector'](_0x596bea,_0xd97e12,_0x5f03b4,_0x3b23b2){const _0x39931a=_0x22a2ef;if(_0x5f03b4['drawingType']!==_0x4fef19[_0x39931a(0x1f7)]||_0x596bea[_0x39931a(0x212)][_0x39931a(0x27f)](_0xd97e12))return;let _0x4170eb=this[_0x39931a(0x256)][_0x39931a(0x234)](_0x596bea[_0x39931a(0x1cc)],_0x596bea['subUnitId'],_0xd97e12);if(!_0x4170eb||!_0x5a261c(_0x4170eb[_0x39931a(0x1e7)]()))return;let _0x26cb6d=_0x4170eb[_0x39931a(0x223)]();if(!(_0x596bea[_0x39931a(0x268)]['has'](_0xd97e12)||_0x26cb6d!=null&&_0x26cb6d[_0x39931a(0x245)]&&(_0x596bea[_0x39931a(0x268)][_0x39931a(0x27f)](_0x26cb6d[_0x39931a(0x245)][_0x39931a(0x233)])||_0x596bea[_0x39931a(0x212)]['has'](_0x26cb6d[_0x39931a(0x245)]['shapeId']))||_0x26cb6d!=null&&_0x26cb6d['to']&&(_0x596bea['updates']['has'](_0x26cb6d['to'][_0x39931a(0x233)])||_0x596bea[_0x39931a(0x212)][_0x39931a(0x27f)](_0x26cb6d['to'][_0x39931a(0x233)]))))return;let _0x2c64cc=_0x596bea['updates'][_0x39931a(0x1dc)](_0xd97e12)??_0x5f03b4,_0x3be8cf=this[_0x39931a(0x1ec)](_0x596bea,_0x2c64cc);if(!_0x3be8cf)return;let _0x58b908=_0x5ef8d8(_0x3be8cf);if(_0x58b908[_0x39931a(0x1e9)]<0x2)return;let _0x38dcae=_0x13cd39[_0x39931a(0x293)](_0x26cb6d??{}),_0x536437=_0x38dcae[_0x39931a(0x245)]&&this[_0x39931a(0x29f)](_0x596bea,_0x38dcae['from'][_0x39931a(0x233)],_0x38dcae[_0x39931a(0x245)]['cxnIndex']),_0x4cab2b=_0x38dcae['to']&&this[_0x39931a(0x29f)](_0x596bea,_0x38dcae['to'][_0x39931a(0x233)],_0x38dcae['to'][_0x39931a(0x1d9)]);_0x38dcae['from']&&!_0x536437&&delete _0x38dcae[_0x39931a(0x245)],_0x38dcae['to']&&!_0x4cab2b&&delete _0x38dcae['to'];let _0x463e13=_0x52af10(_0x3be8cf,_0x536437||_0x2687f2((_0x4cab2b==null?void 0x0:_0x4cab2b[_0x39931a(0x237)])??_0x58b908[_0x58b908[_0x39931a(0x1e9)]-0x1],_0x58b908[0x0]),_0x4cab2b||_0x2687f2((_0x536437==null?void 0x0:_0x536437[_0x39931a(0x237)])??_0x58b908[0x0],_0x58b908[_0x58b908[_0x39931a(0x1e9)]-0x1]),_0x38dcae);if(!(!(_0x463e13!=null&&_0x463e13[_0x39931a(0x25b)])||!_0x463e13[_0x39931a(0x264)]||!_0x463e13[_0x39931a(0x294)])){if(this[_0x39931a(0x21f)](_0x596bea,_0x2c64cc,_0x463e13),_0x596bea['mode']===_0x39931a(0x29e)){_0x4170eb[_0x39931a(0x211)](_0x463e13['shapeType']),_0x4170eb[_0x39931a(0x1fd)](_0x13cd39[_0x39931a(0x293)](_0x463e13[_0x39931a(0x294)]),!0x1);return;}_0x3b23b2['redos'][_0x39931a(0x21b)]({'id':$['id'],'params':{'unitId':_0x596bea[_0x39931a(0x1cc)],'subUnitId':_0x596bea[_0x39931a(0x278)],'shapeId':_0xd97e12,'shapeType':_0x463e13[_0x39931a(0x264)],'shapeData':_0x13cd39[_0x39931a(0x293)](_0x463e13['shapeData']),'replace':!0x0}}),_0x3b23b2[_0x39931a(0x279)][_0x39931a(0x21b)]({'id':$['id'],'params':{'unitId':_0x596bea[_0x39931a(0x1cc)],'subUnitId':_0x596bea[_0x39931a(0x278)],'shapeId':_0xd97e12,'shapeType':_0x4170eb['getShapeType'](),'shapeData':_0x13cd39[_0x39931a(0x293)](_0x4170eb[_0x39931a(0x229)]()),'replace':!0x0}});}}[_0x22a2ef(0x29f)](_0x39eb7d,_0x11c3fb,_0x23feb6){const _0x5934f0=_0x22a2ef;if(_0x39eb7d[_0x5934f0(0x212)][_0x5934f0(0x27f)](_0x11c3fb))return null;let _0x1f1c58=_0x39eb7d[_0x5934f0(0x268)][_0x5934f0(0x1dc)](_0x11c3fb)??_0x39eb7d[_0x5934f0(0x230)][_0x5934f0(0x1dc)](_0x11c3fb);if(!_0x1f1c58)return null;let _0x2c3502=this[_0x5934f0(0x1ec)](_0x39eb7d,_0x1f1c58);return _0x2c3502?_0x989342(_0x2c3502,_0x23feb6):null;}[_0x22a2ef(0x1ec)](_0x1a3bfd,_0x2fbe1c){const _0x6ac4b2=_0x22a2ef;let _0x980df3={'hostType':_0x301e36[_0x6ac4b2(0x288)],'unitId':_0x1a3bfd[_0x6ac4b2(0x1cc)],'subUnitId':_0x1a3bfd[_0x6ac4b2(0x278)],'shapeId':_0x2fbe1c['drawingId']},_0x2fab74=this['_shapeAdapter']['getShape'](_0x980df3);return!_0x2fab74||!_0x2fbe1c[_0x6ac4b2(0x25b)]?null:{..._0x2fab74,'transform':{'left':_0x2fbe1c['transform'][_0x6ac4b2(0x295)]??0x0,'top':_0x2fbe1c[_0x6ac4b2(0x25b)][_0x6ac4b2(0x24f)]??0x0,'width':_0x2fbe1c[_0x6ac4b2(0x25b)][_0x6ac4b2(0x210)]??0x0,'height':_0x2fbe1c['transform'][_0x6ac4b2(0x27c)]??0x0,'rotation':_0x2fbe1c[_0x6ac4b2(0x25b)]['angle']??0x0,'flipX':_0x2fbe1c['transform'][_0x6ac4b2(0x248)]??!0x1,'flipY':_0x2fbe1c['transform'][_0x6ac4b2(0x252)]??!0x1}};}[_0x22a2ef(0x21f)](_0x5bfad5,_0x490d45,_0x59ada6){const _0x4a357d=_0x22a2ef;let _0x5931e4=_0x490d45,_0x3568e4={..._0x490d45['transform'],'left':_0x59ada6['transform'][_0x4a357d(0x295)],'top':_0x59ada6['transform'][_0x4a357d(0x24f)],'width':_0x59ada6[_0x4a357d(0x25b)][_0x4a357d(0x210)],'height':_0x59ada6[_0x4a357d(0x25b)]['height'],'angle':_0x59ada6[_0x4a357d(0x25b)][_0x4a357d(0x220)],'flipX':_0x59ada6[_0x4a357d(0x25b)][_0x4a357d(0x248)],'flipY':_0x59ada6['transform'][_0x4a357d(0x252)]},_0x2ed88c={..._0x5931e4,'transform':_0x3568e4,'sheetTransform':_0x43a224(_0x3568e4,_0x5bfad5['skeleton']),'axisAlignSheetTransform':_0x140823(_0x3568e4,_0x5bfad5['skeleton']),'data':{..._0x5931e4['data'],'shapeType':_0x59ada6['shapeType'],'shapeData':_0x13cd39[_0x4a357d(0x293)](_0x59ada6[_0x4a357d(0x294)])}};_0x5bfad5[_0x4a357d(0x268)][_0x4a357d(0x271)](_0x490d45[_0x4a357d(0x287)],_0x2ed88c);}};Ee=le([Z(0x0,_0x93ad71(Q)),Z(0x1,_0x93ad71(Ce)),Z(0x2,_0x93ad71(_0x174e68))],Ee);let De=class extends _0x4512e7{constructor(_0x4544de=we,_0xa0c5ab,_0x540d32){const _0x35be5a=_0x22a2ef;super(),this[_0x35be5a(0x1e4)]=_0x4544de,this[_0x35be5a(0x22a)]=_0xa0c5ab,this['_configService']=_0x540d32;let {..._0x3f43fc}=_0x14cbf7({},we,this[_0x35be5a(0x1e4)]);this[_0x35be5a(0x1fe)][_0x35be5a(0x1cd)](_0x35be5a(0x266),_0x3f43fc);}['onStarting'](){const _0x3a33d5=_0x22a2ef;let _0x513366=this[_0x3a33d5(0x22a)];[[ce],[Q],[Ce],[Ee],[Te]][_0x3a33d5(0x265)](_0x3ce83e=>_0x513366[_0x3a33d5(0x25f)](_0x3ce83e)),_0x2db363(_0x513366,[[Q],[Ee],[Te]]);}};X(De,_0x22a2ef(0x201),_0x301e36['UNIVER_SHEET']),X(De,'pluginName',_0x22a2ef(0x241)),X(De,_0x22a2ef(0x1ce),be),X(De,'version',xe),De=le([_0x40898a(_0x24798b,_0x3796b4,_0x30219a,_0x4433fe,_0x14e36c),Z(0x1,_0x93ad71(_0x112d6d)),Z(0x2,_0x4a22fa)],De);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,Q as SheetsShapeService,me as ToggleSheetsShapeFlipCommand,De as UniverSheetsShapePlugin,_e as UpdateConnectorRelationCommand,ve as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,ye as UpdateSheetsShapeTypeMutation};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x536dbe=_0x514a;(function(_0x1b7d1c,_0x4355a9){const _0x1db74c=_0x514a,_0x565d93=_0x1b7d1c();while(!![]){try{const _0x23e12c=parseInt(_0x1db74c(0x162))/0x1*(parseInt(_0x1db74c(0x15f))/0x2)+-parseInt(_0x1db74c(0x14d))/0x3+-parseInt(_0x1db74c(0x148))/0x4+-parseInt(_0x1db74c(0x173))/0x5+-parseInt(_0x1db74c(0x15e))/0x6*(-parseInt(_0x1db74c(0x144))/0x7)+-parseInt(_0x1db74c(0x16d))/0x8+parseInt(_0x1db74c(0x157))/0x9;if(_0x23e12c===_0x4355a9)break;else _0x565d93['push'](_0x565d93['shift']());}catch(_0x2e849b){_0x565d93['push'](_0x565d93['shift']());}}}(_0x30f0,0x31f8c));import{IShapeHostAdapterRegistry as _0x94c81f,isConnectorShape as _0x5e6c7f}from'@univerjs-pro/engine-shape';import{FConnectorShape as _0x4e5f98,FShape as _0x273327}from'@univerjs-pro/engine-shape/facade';import{ICommandService as _0x271a12,UniverInstanceType as _0xac1a42}from'@univerjs/core';function _0x514a(_0x2746d2,_0x4cfbd1){_0x2746d2=_0x2746d2-0x142;const _0x30f016=_0x30f0();let _0x514ab9=_0x30f016[_0x2746d2];return _0x514ab9;}import{FWorksheet as _0x1012f3}from'@univerjs/sheets/facade';function _0x30f0(){const _0x21bb76=['67uMAHOk','getSheetId','createShape','syncExecuteCommand','object','\x22\x20has\x20no\x20transform\x20extent.','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','UNIVER_SHEET','_sheetDrawingService','transform','\x22\x20was\x20not\x20found.','77832feRvQC','setPlacement','shapeType','extend','_shapeRef','height','702040GkDDKC','defineProperty','function','listShapes','_commandService','562499QRGvWH','createInstance','subUnitId','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','965744GEGokH','getDrawingByParam','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','length','getShapes','213648IGnSIY','_injector','getPlacement','insertShape','getOwnPropertyDescriptor','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','decorate','get','getShape','Position','3941550wQzzeh','width','_getShapeScope','unitId','warn','shapeId','getWorkbook','12wlobxy','2054HeIVJY','_getShapeAdapter','_createShapeHandle'];_0x30f0=function(){return _0x21bb76;};return _0x30f0();}import{ISheetDrawingService as _0x3f174f,SetSheetDrawingPlacementCommand as _0x467803,SheetDrawingAnchorType as _0xdb6594,getSheetDrawingPlacement as _0x69c630}from'@univerjs/sheets-drawing';function d(_0x39b02d,_0x27df5f){return function(_0x41b723,_0x3b96c1){_0x27df5f(_0x41b723,_0x3b96c1,_0x39b02d);};}function f(_0x2afbaa,_0x336281,_0x576c32,_0x7e09bc){const _0x5cd09d=_0x514a;var _0x55d656=arguments[_0x5cd09d(0x14b)],_0x377f6a=_0x55d656<0x3?_0x336281:_0x7e09bc===null?_0x7e09bc=Object[_0x5cd09d(0x151)](_0x336281,_0x576c32):_0x7e09bc,_0x4b02cd;if(typeof Reflect==_0x5cd09d(0x166)&&typeof Reflect[_0x5cd09d(0x153)]==_0x5cd09d(0x175))_0x377f6a=Reflect[_0x5cd09d(0x153)](_0x2afbaa,_0x336281,_0x576c32,_0x7e09bc);else{for(var _0x202ae3=_0x2afbaa[_0x5cd09d(0x14b)]-0x1;_0x202ae3>=0x0;_0x202ae3--)(_0x4b02cd=_0x2afbaa[_0x202ae3])&&(_0x377f6a=(_0x55d656<0x3?_0x4b02cd(_0x377f6a):_0x55d656>0x3?_0x4b02cd(_0x336281,_0x576c32,_0x377f6a):_0x4b02cd(_0x336281,_0x576c32))||_0x377f6a);}return _0x55d656>0x3&&_0x377f6a&&Object[_0x5cd09d(0x174)](_0x336281,_0x576c32,_0x377f6a),_0x377f6a;}let p=class extends _0x273327{constructor(_0x207cd1,_0x238e9a,_0x22171a,_0x56eed6,_0x5d7ae5){const _0x27c180=_0x514a;super(_0x207cd1,_0x238e9a,_0x22171a,_0x56eed6),this[_0x27c180(0x16a)]=_0x5d7ae5;}[_0x536dbe(0x14f)](){const _0x2b3dc5=_0x536dbe;let _0x302f0d=this[_0x2b3dc5(0x16a)][_0x2b3dc5(0x149)]({'unitId':this['_shapeRef'][_0x2b3dc5(0x15a)],'subUnitId':this['_shapeRef']['subUnitId'],'drawingId':this['_shapeRef']['shapeId']});return _0x302f0d?_0x69c630(_0x302f0d):null;}[_0x536dbe(0x16e)](_0x169a56){const _0x5ea2a8=_0x536dbe;return this[_0x5ea2a8(0x143)][_0x5ea2a8(0x165)](_0x467803['id'],{'unitId':this[_0x5ea2a8(0x171)][_0x5ea2a8(0x15a)],'subUnitId':this[_0x5ea2a8(0x171)]['subUnitId'],'drawings':[{'drawingId':this[_0x5ea2a8(0x171)]['shapeId'],'placement':_0x169a56}]});}['setPosition'](_0xe92282,_0x371fb4,_0x1ad5e0,_0x558f59){const _0x2370df=_0x536dbe;var _0x5a3e14,_0x1f9ba6;let _0x1227e4=this[_0x2370df(0x16a)][_0x2370df(0x149)]({'unitId':this[_0x2370df(0x171)][_0x2370df(0x15a)],'subUnitId':this[_0x2370df(0x171)][_0x2370df(0x146)],'drawingId':this[_0x2370df(0x171)][_0x2370df(0x15c)]});if(!_0x1227e4)return console['warn'](_0x2370df(0x168)+this[_0x2370df(0x171)][_0x2370df(0x15c)]+_0x2370df(0x16c)),this;let _0x50b209=(_0x5a3e14=_0x1227e4[_0x2370df(0x16b)])==null?void 0x0:_0x5a3e14[_0x2370df(0x158)],_0x13e5e6=(_0x1f9ba6=_0x1227e4[_0x2370df(0x16b)])==null?void 0x0:_0x1f9ba6[_0x2370df(0x172)];return _0x50b209==null||_0x13e5e6==null?(console['warn']('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+this['_shapeRef'][_0x2370df(0x15c)]+_0x2370df(0x167)),this):(this[_0x2370df(0x143)]['syncExecuteCommand'](_0x467803['id'],{'unitId':this[_0x2370df(0x171)][_0x2370df(0x15a)],'subUnitId':this[_0x2370df(0x171)][_0x2370df(0x146)],'drawings':[{'drawingId':this[_0x2370df(0x171)][_0x2370df(0x15c)],'placement':{'kind':_0xdb6594[_0x2370df(0x156)],'from':{'row':_0xe92282,'column':_0x371fb4,'rowOffset':_0x1ad5e0,'columnOffset':_0x558f59},'width':_0x50b209,'height':_0x13e5e6}}]}),this);}};p=f([d(0x2,_0x94c81f),d(0x3,_0x271a12),d(0x4,_0x3f174f)],p);var m=class extends _0x1012f3{[_0x536dbe(0x150)](_0x283917){const _0x1484f6=_0x536dbe;let _0x5489c8=this['_getShapeAdapter']();if(!_0x5489c8)return null;try{let _0x3c2294=_0x5489c8[_0x1484f6(0x164)](this[_0x1484f6(0x159)](),_0x283917);return _0x3c2294?this['_createShapeHandle'](_0x3c2294):(console[_0x1484f6(0x15b)](_0x1484f6(0x147)),null);}catch(_0x5e3443){return console['warn'](_0x1484f6(0x147),_0x5e3443),null;}}['getShape'](_0x5817c8){const _0x1a3b64=_0x536dbe;let _0x216436=this[_0x1a3b64(0x160)]();if(!_0x216436)return null;try{let _0x3352c6={...this['_getShapeScope'](),'shapeId':_0x5817c8},_0x2bd65d=_0x216436[_0x1a3b64(0x155)](_0x3352c6);return _0x2bd65d?this[_0x1a3b64(0x161)](_0x2bd65d):(console[_0x1a3b64(0x15b)](_0x1a3b64(0x168)+_0x5817c8+_0x1a3b64(0x16c)),null);}catch(_0x2a35ff){return console[_0x1a3b64(0x15b)](_0x1a3b64(0x14a)+_0x5817c8+'\x22.',_0x2a35ff),null;}}[_0x536dbe(0x14c)](){const _0x2c6539=_0x536dbe;let _0x2895c6=this[_0x2c6539(0x160)]();if(!_0x2895c6)return[];try{return _0x2895c6[_0x2c6539(0x142)](this[_0x2c6539(0x159)]())['map'](_0x48ec4f=>this[_0x2c6539(0x161)](_0x48ec4f));}catch(_0x99ce5f){return console[_0x2c6539(0x15b)](_0x2c6539(0x152),_0x99ce5f),[];}}[_0x536dbe(0x159)](){const _0x2c2a63=_0x536dbe;return{'hostType':_0xac1a42[_0x2c2a63(0x169)],'unitId':this[_0x2c2a63(0x15d)]()['getUnitId'](),'subUnitId':this[_0x2c2a63(0x163)]()};}[_0x536dbe(0x160)](){const _0x181ca9=_0x536dbe;return this[_0x181ca9(0x14e)][_0x181ca9(0x154)](_0x94c81f)[_0x181ca9(0x154)](_0xac1a42[_0x181ca9(0x169)]);}['_createShapeHandle'](_0x8e2ab0){const _0x1cae54=_0x536dbe;let {unitId:_0xd47315,subUnitId:_0x375976,shapeId:_0x43545d}=_0x8e2ab0,_0x55aace={'unitId':_0xd47315,'subUnitId':_0x375976,'shapeId':_0x43545d,'hostType':_0xac1a42[_0x1cae54(0x169)]};return _0x5e6c7f(_0x8e2ab0[_0x1cae54(0x16f)])?this[_0x1cae54(0x14e)]['createInstance'](_0x4e5f98,_0x55aace,this[_0x1cae54(0x14e)]):this[_0x1cae54(0x14e)][_0x1cae54(0x145)](p,_0x55aace,this[_0x1cae54(0x14e)]);}};_0x1012f3[_0x536dbe(0x170)](m);export{p as FSheetShape};
1
+ const _0x57ffba=_0x1fae;(function(_0x5de90e,_0x4a2186){const _0x57abd3=_0x1fae,_0x581526=_0x5de90e();while(!![]){try{const _0x532450=-parseInt(_0x57abd3(0xab))/0x1*(parseInt(_0x57abd3(0xcf))/0x2)+parseInt(_0x57abd3(0xae))/0x3*(-parseInt(_0x57abd3(0xba))/0x4)+-parseInt(_0x57abd3(0xc5))/0x5*(parseInt(_0x57abd3(0xc6))/0x6)+-parseInt(_0x57abd3(0xc8))/0x7*(-parseInt(_0x57abd3(0xb6))/0x8)+-parseInt(_0x57abd3(0xb7))/0x9*(parseInt(_0x57abd3(0xaa))/0xa)+parseInt(_0x57abd3(0xb8))/0xb+parseInt(_0x57abd3(0xb4))/0xc*(parseInt(_0x57abd3(0xcc))/0xd);if(_0x532450===_0x4a2186)break;else _0x581526['push'](_0x581526['shift']());}catch(_0x293328){_0x581526['push'](_0x581526['shift']());}}}(_0x93bb,0xaa7ba));function _0x1fae(_0x15eeda,_0x2b7918){_0x15eeda=_0x15eeda-0x9e;const _0x93bbd0=_0x93bb();let _0x1fae1e=_0x93bbd0[_0x15eeda];return _0x1fae1e;}import{IShapeHostAdapterRegistry as _0x34898e,isConnectorShape as _0xf2894e}from'@univerjs-pro/engine-shape';function _0x93bb(){const _0xd76034=['shapeId','_commandService','setPosition','object','_injector','970XIJnID','16794ZwDXiI','width','14SQfmOf','unitId','createShape','get','1686243HSBnqq','height','\x22\x20was\x20not\x20found.','638XjmsnN','getSheetId','subUnitId','getDrawingByParam','_createShapeHandle','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','\x22\x20has\x20no\x20transform\x20extent.','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','Position','insertShape','shapeType','createInstance','syncExecuteCommand','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','_sheetDrawingService','decorate','20Tukhni','1814oJgAyy','getShape','getWorkbook','45WkZNhx','_shapeRef','extend','_getShapeAdapter','setPlacement','_getShapeScope','204TPncIX','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','1999328NWYQJT','2839752ofsIPr','9468492VRddYZ','UNIVER_SHEET','297244yFuAIk','getUnitId','getOwnPropertyDescriptor','length','listShapes','warn'];_0x93bb=function(){return _0xd76034;};return _0x93bb();}import{FConnectorShape as _0x21abd5,FShape as _0x99da2d}from'@univerjs-pro/engine-shape/facade';import{ICommandService as _0x4131db,UniverInstanceType as _0x1a5314}from'@univerjs/core';import{FWorksheet as _0x55d33c}from'@univerjs/sheets/facade';import{ISheetDrawingService as _0x375e28,SetSheetDrawingPlacementCommand as _0x210237,SheetDrawingAnchorType as _0x24dbcd,getSheetDrawingPlacement as _0x1ad0b1}from'@univerjs/sheets-drawing';function d(_0x285ef0,_0x3c5b98){return function(_0x57fa1f,_0x336aff){_0x3c5b98(_0x57fa1f,_0x336aff,_0x285ef0);};}function f(_0x395b46,_0x4e2268,_0x1a13b3,_0x4da393){const _0x396f6e=_0x1fae;var _0x1a7df9=arguments[_0x396f6e(0xbd)],_0x1748eb=_0x1a7df9<0x3?_0x4e2268:_0x4da393===null?_0x4da393=Object[_0x396f6e(0xbc)](_0x4e2268,_0x1a13b3):_0x4da393,_0x4369b8;if(typeof Reflect==_0x396f6e(0xc3)&&typeof Reflect[_0x396f6e(0xa9)]=='function')_0x1748eb=Reflect['decorate'](_0x395b46,_0x4e2268,_0x1a13b3,_0x4da393);else{for(var _0x10f421=_0x395b46[_0x396f6e(0xbd)]-0x1;_0x10f421>=0x0;_0x10f421--)(_0x4369b8=_0x395b46[_0x10f421])&&(_0x1748eb=(_0x1a7df9<0x3?_0x4369b8(_0x1748eb):_0x1a7df9>0x3?_0x4369b8(_0x4e2268,_0x1a13b3,_0x1748eb):_0x4369b8(_0x4e2268,_0x1a13b3))||_0x1748eb);}return _0x1a7df9>0x3&&_0x1748eb&&Object['defineProperty'](_0x4e2268,_0x1a13b3,_0x1748eb),_0x1748eb;}let p=class extends _0x99da2d{constructor(_0x82758a,_0x54812a,_0x18e7d6,_0xeec347,_0xeb2d56){const _0x1b3684=_0x1fae;super(_0x82758a,_0x54812a,_0x18e7d6,_0xeec347),this[_0x1b3684(0xa8)]=_0xeb2d56;}['getPlacement'](){const _0xa2272=_0x1fae;let _0x3e21f2=this[_0xa2272(0xa8)][_0xa2272(0xd2)]({'unitId':this[_0xa2272(0xaf)][_0xa2272(0xc9)],'subUnitId':this[_0xa2272(0xaf)]['subUnitId'],'drawingId':this['_shapeRef'][_0xa2272(0xc0)]});return _0x3e21f2?_0x1ad0b1(_0x3e21f2):null;}[_0x57ffba(0xb2)](_0x493e82){const _0x11aa28=_0x57ffba;return this[_0x11aa28(0xc1)]['syncExecuteCommand'](_0x210237['id'],{'unitId':this['_shapeRef'][_0x11aa28(0xc9)],'subUnitId':this['_shapeRef'][_0x11aa28(0xd1)],'drawings':[{'drawingId':this[_0x11aa28(0xaf)][_0x11aa28(0xc0)],'placement':_0x493e82}]});}[_0x57ffba(0xc2)](_0x32b153,_0x4a1365,_0x34e164,_0x335125){const _0x287300=_0x57ffba;var _0x419bee,_0x4ecd24;let _0x381049=this[_0x287300(0xa8)][_0x287300(0xd2)]({'unitId':this['_shapeRef'][_0x287300(0xc9)],'subUnitId':this[_0x287300(0xaf)]['subUnitId'],'drawingId':this['_shapeRef'][_0x287300(0xc0)]});if(!_0x381049)return console[_0x287300(0xbf)](_0x287300(0xa1)+this[_0x287300(0xaf)][_0x287300(0xc0)]+_0x287300(0xce)),this;let _0x2076da=(_0x419bee=_0x381049['transform'])==null?void 0x0:_0x419bee[_0x287300(0xc7)],_0x4d4f7f=(_0x4ecd24=_0x381049['transform'])==null?void 0x0:_0x4ecd24[_0x287300(0xcd)];return _0x2076da==null||_0x4d4f7f==null?(console[_0x287300(0xbf)](_0x287300(0xa1)+this[_0x287300(0xaf)][_0x287300(0xc0)]+_0x287300(0xa0)),this):(this[_0x287300(0xc1)][_0x287300(0xa6)](_0x210237['id'],{'unitId':this[_0x287300(0xaf)][_0x287300(0xc9)],'subUnitId':this[_0x287300(0xaf)][_0x287300(0xd1)],'drawings':[{'drawingId':this['_shapeRef'][_0x287300(0xc0)],'placement':{'kind':_0x24dbcd[_0x287300(0xa2)],'from':{'row':_0x32b153,'column':_0x4a1365,'rowOffset':_0x34e164,'columnOffset':_0x335125},'width':_0x2076da,'height':_0x4d4f7f}}]}),this);}};p=f([d(0x2,_0x34898e),d(0x3,_0x4131db),d(0x4,_0x375e28)],p);var m=class extends _0x55d33c{[_0x57ffba(0xa3)](_0x4a4b7b){const _0x5a88f2=_0x57ffba;let _0x3891d1=this[_0x5a88f2(0xb1)]();if(!_0x3891d1)return null;try{let _0x512712=_0x3891d1[_0x5a88f2(0xca)](this[_0x5a88f2(0xb3)](),_0x4a4b7b);return _0x512712?this[_0x5a88f2(0x9e)](_0x512712):(console[_0x5a88f2(0xbf)](_0x5a88f2(0xa7)),null);}catch(_0x188dde){return console[_0x5a88f2(0xbf)](_0x5a88f2(0xa7),_0x188dde),null;}}[_0x57ffba(0xac)](_0x57d179){const _0x3abe97=_0x57ffba;let _0x57557b=this['_getShapeAdapter']();if(!_0x57557b)return null;try{let _0x51152b={...this[_0x3abe97(0xb3)](),'shapeId':_0x57d179},_0xa3bf42=_0x57557b[_0x3abe97(0xac)](_0x51152b);return _0xa3bf42?this['_createShapeHandle'](_0xa3bf42):(console['warn']('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+_0x57d179+_0x3abe97(0xce)),null);}catch(_0xf72ff7){return console[_0x3abe97(0xbf)](_0x3abe97(0x9f)+_0x57d179+'\x22.',_0xf72ff7),null;}}['getShapes'](){const _0x3704c9=_0x57ffba;let _0x368d7f=this[_0x3704c9(0xb1)]();if(!_0x368d7f)return[];try{return _0x368d7f[_0x3704c9(0xbe)](this[_0x3704c9(0xb3)]())['map'](_0x3d87b5=>this[_0x3704c9(0x9e)](_0x3d87b5));}catch(_0x23ee08){return console[_0x3704c9(0xbf)](_0x3704c9(0xb5),_0x23ee08),[];}}['_getShapeScope'](){const _0x8fb28d=_0x57ffba;return{'hostType':_0x1a5314[_0x8fb28d(0xb9)],'unitId':this[_0x8fb28d(0xad)]()[_0x8fb28d(0xbb)](),'subUnitId':this[_0x8fb28d(0xd0)]()};}[_0x57ffba(0xb1)](){const _0x2a4199=_0x57ffba;return this[_0x2a4199(0xc4)][_0x2a4199(0xcb)](_0x34898e)[_0x2a4199(0xcb)](_0x1a5314[_0x2a4199(0xb9)]);}[_0x57ffba(0x9e)](_0x4e13a5){const _0x2301a7=_0x57ffba;let {unitId:_0x32c703,subUnitId:_0x1266b4,shapeId:_0x1d480e}=_0x4e13a5,_0x2ae430={'unitId':_0x32c703,'subUnitId':_0x1266b4,'shapeId':_0x1d480e,'hostType':_0x1a5314['UNIVER_SHEET']};return _0xf2894e(_0x4e13a5[_0x2301a7(0xa4)])?this['_injector']['createInstance'](_0x21abd5,_0x2ae430,this[_0x2301a7(0xc4)]):this[_0x2301a7(0xc4)][_0x2301a7(0xa5)](p,_0x2ae430,this[_0x2301a7(0xc4)]);}};_0x55d33c[_0x57ffba(0xb0)](m);export{p as FSheetShape};